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_libgdiagnostics
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_libgdiagnostics
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-libgdiagnostics
1584 build libgdiagnostics shared library
1585 --enable-stage1-languages[=all
]
1586 choose additional languages to build during stage1.
1587 Mostly useful
for compiler development
1588 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1590 --enable-vtable-verify Enable vtable verification feature
1591 --enable-serial-[{host,target,build}-]configure
1592 force sequential configuration of sub-packages for
1593 the host, target or build machine, or all
1595 --enable-maintainer-mode
1596 enable make rules and dependencies not useful (and
1597 sometimes confusing) to the casual installer
1598 --enable-stage1-checking[=all]
1599 choose additional checking for stage1 of the
1601 --enable-werror enable -Werror in bootstrap stage2 and later
1604 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1605 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1606 --with-build-libsubdir=DIR Directory where to find libraries for build system
1607 --with-system-zlib use installed libz
1608 --with-zstd Support zstd compressed debug sections
1610 --with-mpc=PATH specify prefix directory for installed MPC package.
1611 Equivalent to --with-mpc-include=PATH/include plus
1612 --with-mpc-lib=PATH/lib
1613 --with-mpc-include=PATH specify directory for installed MPC include files
1614 --with-mpc-lib=PATH specify directory for the installed MPC library
1615 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1616 Equivalent to --with-mpfr-include=PATH/include plus
1617 --with-mpfr-lib=PATH/lib
1618 --with-mpfr-include=PATH
1619 specify directory for installed MPFR include files
1620 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1621 --with-gmp=PATH specify prefix directory for the installed GMP
1622 package. Equivalent to
1623 --with-gmp-include=PATH/include plus
1624 --with-gmp-lib=PATH/lib
1625 --with-gmp-include=PATH specify directory for installed GMP include files
1626 --with-gmp-lib=PATH specify directory for the installed GMP library
1627 --with-stage1-libs=LIBS libraries for stage1
1628 --with-static-standard-libraries
1629 use -static-libstdc++ and -static-libgcc
1631 --with-stage1-ldflags=FLAGS
1632 linker flags for stage1
1633 --with-boot-libs=LIBS libraries for stage2 and later
1634 --with-boot-ldflags=FLAGS
1635 linker flags for stage2 and later
1636 --with-isl=PATH Specify prefix directory for the installed isl
1637 package. Equivalent to
1638 --with-isl-include=PATH/include plus
1639 --with-isl-lib=PATH/lib
1640 --with-isl-include=PATH Specify directory for installed isl include files
1641 --with-isl-lib=PATH Specify the directory for the installed isl library
1642 --with-target-bdw-gc=PATHLIST
1643 specify prefix directory for installed bdw-gc
1644 package. Equivalent to
1645 --with-target-bdw-gc-include=PATH/include plus
1646 --with-target-bdw-gc-lib=PATH/lib
1647 --with-target-bdw-gc-include=PATHLIST
1648 specify directories for installed bdw-gc include
1650 --with-target-bdw-gc-lib=PATHLIST
1651 specify directories for installed bdw-gc library
1652 --with-gcc-major-version-only
1653 use only GCC major number in filesystem paths
1654 --with-build-sysroot=SYSROOT
1655 use sysroot as the system root during the build
1656 --with-debug-prefix-map='A
=B C
=D ...
'
1657 map A to B, C to D ... in debug information
1658 --with-build-config='NAME NAME2...
'
1659 use config/NAME.mk build configuration
1660 --with-build-time-tools=PATH
1661 use given path to find target tools during the build
1663 Some influential environment variables:
1664 CC C compiler command
1665 CFLAGS C compiler flags
1666 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1667 nonstandard directory <lib dir>
1668 LIBS libraries to pass to the linker, e.g. -l<library>
1669 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1670 you have headers in a nonstandard directory <include dir>
1671 CXX C++ compiler command
1672 CXXFLAGS C++ compiler flags
1674 additional configure arguments for build directories
1676 additional configure arguments for host directories
1678 additional configure arguments for target directories
1681 DLLTOOL DLLTOOL for the host
1682 DSYMUTIL DSYMUTIL for the host
1684 LIPO LIPO for the host
1686 RANLIB RANLIB for the host
1687 STRIP STRIP for the host
1688 WINDRES WINDRES for the host
1689 WINDMC WINDMC for the host
1690 OBJCOPY OBJCOPY for the host
1691 OBJDUMP OBJDUMP for the host
1692 OTOOL OTOOL for the host
1693 READELF READELF for the host
1701 GFORTRAN for the target
1713 DLLTOOL for the target
1715 DSYMUTIL for the target
1723 OBJCOPY for the target
1725 OBJDUMP for the target
1727 OTOOL for the target
1729 RANLIB for the target
1731 READELF for the target
1733 STRIP for the target
1735 WINDRES for the target
1737 WINDMC for the target
1739 Use these variables to override the choices made by `configure' or to
help
1740 it to
find libraries and programs with nonstandard names
/locations.
1742 Report bugs to the package provider.
1747 if test "$ac_init_help" = "recursive"; then
1748 # If there are subdirs, report their specific --help.
1749 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1750 test -d "$ac_dir" ||
1751 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1756 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1758 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1759 # A ".." for each directory in $ac_dir_suffix.
1760 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1761 case $ac_top_builddir_sub in
1762 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1763 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1766 ac_abs_top_builddir
=$ac_pwd
1767 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1768 # for backward compatibility:
1769 ac_top_builddir
=$ac_top_build_prefix
1772 .
) # We are building in place.
1774 ac_top_srcdir
=$ac_top_builddir_sub
1775 ac_abs_top_srcdir
=$ac_pwd ;;
1776 [\\/]* | ?
:[\\/]* ) # Absolute name.
1777 ac_srcdir
=$srcdir$ac_dir_suffix;
1778 ac_top_srcdir
=$srcdir
1779 ac_abs_top_srcdir
=$srcdir ;;
1781 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1782 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1783 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1785 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1787 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1788 # Check for guested configure.
1789 if test -f "$ac_srcdir/configure.gnu"; then
1791 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1792 elif test -f "$ac_srcdir/configure"; then
1794 $SHELL "$ac_srcdir/configure" --help=recursive
1796 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1798 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1802 test -n "$ac_init_help" && exit $ac_status
1803 if $ac_init_version; then
1806 generated by GNU Autoconf
2.69
1808 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1809 This configure
script is free software
; the Free Software Foundation
1810 gives unlimited permission to copy
, distribute and modify it.
1815 ## ------------------------ ##
1816 ## Autoconf initialization. ##
1817 ## ------------------------ ##
1819 # ac_fn_c_try_compile LINENO
1820 # --------------------------
1821 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1822 ac_fn_c_try_compile
()
1824 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1825 rm -f conftest.
$ac_objext
1826 if { { ac_try
="$ac_compile"
1828 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1829 *) ac_try_echo=$ac_try;;
1831 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1832 $as_echo "$ac_try_echo"; } >&5
1833 (eval "$ac_compile") 2>conftest.err
1835 if test -s conftest.err; then
1836 grep -v '^ *+' conftest.err >conftest.er1
1837 cat conftest.er1 >&5
1838 mv -f conftest.er1 conftest.err
1840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1841 test $ac_status = 0; } && {
1842 test -z "$ac_c_werror_flag" ||
1843 test ! -s conftest.err
1844 } && test -s conftest.$ac_objext; then :
1847 $as_echo "$as_me: failed program was:" >&5
1848 sed 's/^/| /' conftest.$ac_ext >&5
1852 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1853 as_fn_set_status $ac_retval
1855 } # ac_fn_c_try_compile
1857 # ac_fn_cxx_try_compile LINENO
1858 # ----------------------------
1859 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1860 ac_fn_cxx_try_compile ()
1862 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1863 rm -f conftest.$ac_objext
1864 if { { ac_try="$ac_compile"
1866 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1867 *) ac_try_echo
=$ac_try;;
1869 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1870 $as_echo "$ac_try_echo"; } >&5
1871 (eval "$ac_compile") 2>conftest.err
1873 if test -s conftest.err
; then
1874 grep -v '^ *+' conftest.err
>conftest.er1
1875 cat conftest.er1
>&5
1876 mv -f conftest.er1 conftest.err
1878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1879 test $ac_status = 0; } && {
1880 test -z "$ac_cxx_werror_flag" ||
1881 test ! -s conftest.err
1882 } && test -s conftest.
$ac_objext; then :
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.
$ac_ext >&5
1890 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1891 as_fn_set_status
$ac_retval
1893 } # ac_fn_cxx_try_compile
1895 # ac_fn_cxx_try_link LINENO
1896 # -------------------------
1897 # Try to link conftest.$ac_ext, and return whether this succeeded.
1898 ac_fn_cxx_try_link
()
1900 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1901 rm -f conftest.
$ac_objext conftest
$ac_exeext
1902 if { { ac_try
="$ac_link"
1904 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1905 *) ac_try_echo=$ac_try;;
1907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1908 $as_echo "$ac_try_echo"; } >&5
1909 (eval "$ac_link") 2>conftest.err
1911 if test -s conftest.err; then
1912 grep -v '^ *+' conftest.err >conftest.er1
1913 cat conftest.er1 >&5
1914 mv -f conftest.er1 conftest.err
1916 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1917 test $ac_status = 0; } && {
1918 test -z "$ac_cxx_werror_flag" ||
1919 test ! -s conftest.err
1920 } && test -s conftest$ac_exeext && {
1921 test "$cross_compiling" = yes ||
1922 test -x conftest$ac_exeext
1926 $as_echo "$as_me: failed program was:" >&5
1927 sed 's/^/| /' conftest.$ac_ext >&5
1931 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1932 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1933 # interfere with the next link command; also delete a directory that is
1934 # left behind by Apple's compiler. We do this before executing the actions.
1935 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1936 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1937 as_fn_set_status $ac_retval
1939 } # ac_fn_cxx_try_link
1941 # ac_fn_c_try_link LINENO
1942 # -----------------------
1943 # Try to link conftest.$ac_ext, and return whether this succeeded.
1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1947 rm -f conftest.$ac_objext conftest$ac_exeext
1948 if { { ac_try="$ac_link"
1950 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1951 *) ac_try_echo
=$ac_try;;
1953 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1954 $as_echo "$ac_try_echo"; } >&5
1955 (eval "$ac_link") 2>conftest.err
1957 if test -s conftest.err
; then
1958 grep -v '^ *+' conftest.err
>conftest.er1
1959 cat conftest.er1
>&5
1960 mv -f conftest.er1 conftest.err
1962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1963 test $ac_status = 0; } && {
1964 test -z "$ac_c_werror_flag" ||
1965 test ! -s conftest.err
1966 } && test -s conftest
$ac_exeext && {
1967 test "$cross_compiling" = yes ||
1968 test -x conftest
$ac_exeext
1972 $as_echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.
$ac_ext >&5
1977 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1978 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1979 # interfere with the next link command; also delete a directory that is
1980 # left behind by Apple's compiler. We do this before executing the actions.
1981 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status
$ac_retval
1985 } # ac_fn_c_try_link
1986 cat >config.log
<<_ACEOF
1987 This file contains any messages produced by compilers while
1988 running configure, to aid debugging if configure makes a mistake.
1990 It was created by $as_me, which was
1991 generated by GNU Autoconf 2.69. Invocation command line was
2003 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2004 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2005 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2006 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2007 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2009 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2010 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2012 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2013 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2014 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2015 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2016 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2017 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2018 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2022 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2026 test -z "$as_dir" && as_dir
=.
2027 $as_echo "PATH: $as_dir"
2043 # Keep a trace of the command line.
2044 # Strip out --no-create and --no-recursion so they do not pile up.
2045 # Strip out --silent because we don't want to record it for future runs.
2046 # Also quote any args containing shell meta-characters.
2047 # Make two passes to allow for proper duplicate-argument suppression.
2051 ac_must_keep_next
=false
2057 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2058 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2059 |
-silent |
--silent |
--silen |
--sile |
--sil)
2062 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2065 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2067 as_fn_append ac_configure_args1
" '$ac_arg'"
2068 if test $ac_must_keep_next = true
; then
2069 ac_must_keep_next
=false
# Got value, back to normal.
2072 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2073 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2074 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2075 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2076 case "$ac_configure_args0 " in
2077 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2080 -* ) ac_must_keep_next
=true
;;
2083 as_fn_append ac_configure_args
" '$ac_arg'"
2088 { ac_configure_args0
=; unset ac_configure_args0
;}
2089 { ac_configure_args1
=; unset ac_configure_args1
;}
2091 # When interrupted or exit'd, cleanup temporary files, and complete
2092 # config.log. We remove comments because anyway the quotes in there
2093 # would cause problems or look ugly.
2094 # WARNING: Use '\'' to represent an apostrophe within the trap.
2095 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2096 trap 'exit_status=$?
2097 # Save into config.log some information that might help in debugging.
2101 $as_echo "## ---------------- ##
2102 ## Cache variables. ##
2103 ## ---------------- ##"
2105 # The following way of writing the cache mishandles newlines in values,
2107 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2108 eval ac_val=\$$ac_var
2112 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2113 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2116 _ | IFS | as_nl) ;; #(
2117 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2118 *) { eval $ac_var=; unset $ac_var;} ;;
2123 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2124 *${as_nl}ac_space=\ *)
2126 "s/'\''/'\''\\\\'\'''\''/g;
2127 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2130 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2137 $as_echo "## ----------------- ##
2138 ## Output variables. ##
2139 ## ----------------- ##"
2141 for ac_var in $ac_subst_vars
2143 eval ac_val=\$$ac_var
2145 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147 $as_echo "$ac_var='\''$ac_val'\''"
2151 if test -n "$ac_subst_files"; then
2152 $as_echo "## ------------------- ##
2153 ## File substitutions. ##
2154 ## ------------------- ##"
2156 for ac_var
in $ac_subst_files
2158 eval ac_val
=\$
$ac_var
2160 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2162 $as_echo "$ac_var='\''$ac_val'\''"
2167 if test -s confdefs.h; then
2168 $as_echo "## ----------- ##
2175 test "$ac_signal" != 0 &&
2176 $as_echo "$as_me: caught signal $ac_signal"
2177 $as_echo "$as_me: exit $exit_status"
2179 rm -f core *.core core.conftest.* &&
2180 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2183 for ac_signal
in 1 2 13 15; do
2184 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2188 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2189 rm -f -r conftest
* confdefs.h
2191 $as_echo "/* confdefs.h */" > confdefs.h
2193 # Predefined preprocessor variables.
2195 cat >>confdefs.h
<<_ACEOF
2196 #define PACKAGE_NAME "$PACKAGE_NAME"
2199 cat >>confdefs.h
<<_ACEOF
2200 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2203 cat >>confdefs.h
<<_ACEOF
2204 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2207 cat >>confdefs.h
<<_ACEOF
2208 #define PACKAGE_STRING "$PACKAGE_STRING"
2211 cat >>confdefs.h
<<_ACEOF
2212 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2215 cat >>confdefs.h
<<_ACEOF
2216 #define PACKAGE_URL "$PACKAGE_URL"
2220 # Let the site file select an alternate cache file if it wants to.
2221 # Prefer an explicitly selected file to automatically selected ones.
2224 if test -n "$CONFIG_SITE"; then
2225 # We do not want a PATH search for config.site.
2226 case $CONFIG_SITE in #((
2227 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2228 */*) ac_site_file1
=$CONFIG_SITE;;
2229 *) ac_site_file1
=.
/$CONFIG_SITE;;
2231 elif test "x$prefix" != xNONE
; then
2232 ac_site_file1
=$prefix/share
/config.site
2233 ac_site_file2
=$prefix/etc
/config.site
2235 ac_site_file1
=$ac_default_prefix/share
/config.site
2236 ac_site_file2
=$ac_default_prefix/etc
/config.site
2238 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2240 test "x$ac_site_file" = xNONE
&& continue
2241 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2243 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2244 sed 's/^/| /' "$ac_site_file" >&5
2246 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2247 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2248 as_fn_error $?
"failed to load site script $ac_site_file
2249 See \`config.log' for more details" "$LINENO" 5; }
2253 if test -r "$cache_file"; then
2254 # Some versions of bash will fail to source /dev/null (special files
2255 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2256 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2257 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2258 $as_echo "$as_me: loading cache $cache_file" >&6;}
2260 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2261 *) .
"./$cache_file";;
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2266 $as_echo "$as_me: creating cache $cache_file" >&6;}
2270 # Check that the precious variables saved in the cache have kept the same
2272 ac_cache_corrupted
=false
2273 for ac_var
in $ac_precious_vars; do
2274 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2275 eval ac_new_set
=\
$ac_env_${ac_var}_set
2276 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2277 eval ac_new_val
=\
$ac_env_${ac_var}_value
2278 case $ac_old_set,$ac_new_set in
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2281 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2282 ac_cache_corrupted
=: ;;
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2285 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2286 ac_cache_corrupted
=: ;;
2289 if test "x$ac_old_val" != "x$ac_new_val"; then
2290 # differences in whitespace do not lead to failure.
2291 ac_old_val_w
=`echo x $ac_old_val`
2292 ac_new_val_w
=`echo x $ac_new_val`
2293 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2295 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2296 ac_cache_corrupted
=:
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2299 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2300 eval $ac_var=\
$ac_old_val
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2303 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2305 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2308 # Pass precious variables to config.status.
2309 if test "$ac_new_set" = set; then
2311 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2312 *) ac_arg
=$ac_var=$ac_new_val ;;
2314 case " $ac_configure_args " in
2315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2316 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2320 if $ac_cache_corrupted; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2324 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2325 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2327 ## -------------------- ##
2328 ## Main body of script. ##
2329 ## -------------------- ##
2332 ac_cpp
='$CPP $CPPFLAGS'
2333 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 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}-
2540 test "$program_prefix" != NONE
&&
2541 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2542 # Use a double $ so make ignores it.
2543 test "$program_suffix" != NONE
&&
2544 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2545 # Double any \ or $.
2546 # By default was `s,x,x', remove it if useless.
2547 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2548 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2552 # Get 'install' or 'install-sh' and its variants.
2553 # Find a good install program. We prefer a C program (faster),
2554 # so one script is as good as another. But avoid the broken or
2555 # incompatible versions:
2556 # SysV /etc/install, /usr/sbin/install
2557 # SunOS /usr/etc/install
2558 # IRIX /sbin/install
2560 # AmigaOS /C/install, which installs bootblocks on floppy discs
2561 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2562 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2563 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2564 # OS/2's system install, which has a completely different semantic
2565 # ./install, which can be erroneously created by make from ./install.sh.
2566 # Reject install programs that cannot install multiple files.
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2568 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2569 if test -z "$INSTALL"; then
2570 if ${ac_cv_path_install+:} false
; then :
2571 $as_echo_n "(cached) " >&6
2573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2577 test -z "$as_dir" && as_dir
=.
2578 # Account for people who put trailing slashes in PATH elements.
2579 case $as_dir/ in #((
2580 .
/ | .
// |
/[cC
]/* | \
2581 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2582 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2585 # OSF1 and SCO ODT 3.0 have their own names for install.
2586 # Don't use installbsd from OSF since it installs stuff as root
2588 for ac_prog
in ginstall scoinst
install; do
2589 for ac_exec_ext
in '' $ac_executable_extensions; do
2590 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2591 if test $ac_prog = install &&
2592 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2593 # AIX install. It has an incompatible calling convention.
2595 elif test $ac_prog = install &&
2596 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2597 # program-specific install script used by HP pwplus--don't use.
2600 rm -rf conftest.one conftest.two conftest.dir
2601 echo one
> conftest.one
2602 echo two
> conftest.two
2604 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2605 test -s conftest.one
&& test -s conftest.two
&&
2606 test -s conftest.dir
/conftest.one
&&
2607 test -s conftest.dir
/conftest.two
2609 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2622 rm -rf conftest.one conftest.two conftest.dir
2625 if test "${ac_cv_path_install+set}" = set; then
2626 INSTALL
=$ac_cv_path_install
2628 # As a last resort, use the slow shell script. Don't cache a
2629 # value for INSTALL within a source directory, because that will
2630 # break other packages using the cache if that directory is
2631 # removed, or if the value is a relative name.
2632 INSTALL
=$ac_install_sh
2635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2636 $as_echo "$INSTALL" >&6; }
2638 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2639 # It thinks the first close brace ends the variable substitution.
2640 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2642 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2644 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2647 $as_echo_n "checking whether ln works... " >&6; }
2648 if ${acx_cv_prog_LN+:} false
; then :
2649 $as_echo_n "(cached) " >&6
2651 rm -f conftestdata_t
2652 echo >conftestdata_f
2653 if ln conftestdata_f conftestdata_t
2>/dev
/null
2659 rm -f conftestdata_f conftestdata_t
2662 if test $acx_cv_prog_LN = no
; then
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2665 $as_echo "no, using $LN" >&6; }
2667 LN
="$acx_cv_prog_LN"
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2669 $as_echo "yes" >&6; }
2672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2673 $as_echo_n "checking whether ln -s works... " >&6; }
2675 if test "$LN_S" = "ln -s"; then
2676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2677 $as_echo "yes" >&6; }
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2680 $as_echo "no, using $LN_S" >&6; }
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2684 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2685 if ${ac_cv_path_SED+:} false
; then :
2686 $as_echo_n "(cached) " >&6
2688 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2689 for ac_i
in 1 2 3 4 5 6 7; do
2690 ac_script
="$ac_script$as_nl$ac_script"
2692 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2693 { ac_script
=; unset ac_script
;}
2694 if test -z "$SED"; then
2695 ac_path_SED_found
=false
2696 # Loop through the user's path and test for each of PROGNAME-LIST
2697 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2701 test -z "$as_dir" && as_dir
=.
2702 for ac_prog
in sed gsed
; do
2703 for ac_exec_ext
in '' $ac_executable_extensions; do
2704 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2705 as_fn_executable_p
"$ac_path_SED" ||
continue
2706 # Check for GNU ac_path_SED and select it if it is found.
2707 # Check for GNU $ac_path_SED
2708 case `"$ac_path_SED" --version 2>&1` in
2710 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2713 $as_echo_n 0123456789 >"conftest.in"
2716 cat "conftest.in" "conftest.in" >"conftest.tmp"
2717 mv "conftest.tmp" "conftest.in"
2718 cp "conftest.in" "conftest.nl"
2719 $as_echo '' >> "conftest.nl"
2720 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2721 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2722 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2723 if test $ac_count -gt ${ac_path_SED_max-0}; then
2724 # Best one so far, save it but keep looking for a better one
2725 ac_cv_path_SED
="$ac_path_SED"
2726 ac_path_SED_max
=$ac_count
2728 # 10*(2^10) chars as input seems more than enough
2729 test $ac_count -gt 10 && break
2731 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2734 $ac_path_SED_found && break 3
2739 if test -z "$ac_cv_path_SED"; then
2740 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2748 $as_echo "$ac_cv_path_SED" >&6; }
2749 SED
="$ac_cv_path_SED"
2752 for ac_prog
in gawk mawk nawk
awk
2754 # Extract the first word of "$ac_prog", so it can be a program name with args.
2755 set dummy
$ac_prog; ac_word
=$2
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2757 $as_echo_n "checking for $ac_word... " >&6; }
2758 if ${ac_cv_prog_AWK+:} false
; then :
2759 $as_echo_n "(cached) " >&6
2761 if test -n "$AWK"; then
2762 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2764 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2768 test -z "$as_dir" && as_dir
=.
2769 for ac_exec_ext
in '' $ac_executable_extensions; do
2770 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2771 ac_cv_prog_AWK
="$ac_prog"
2772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2782 if test -n "$AWK"; then
2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2784 $as_echo "$AWK" >&6; }
2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2787 $as_echo "no" >&6; }
2791 test -n "$AWK" && break
2795 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2797 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2799 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2800 INSTALL
="${srcpwd}/install-sh -c"
2803 # Set srcdir to "." if that's what it is.
2804 # This is important for multilib support.
2806 if test "${pwd}" = "${srcpwd}" ; then
2814 ### To add a new directory to the tree, first choose whether it is a target
2815 ### or a host dependent tool. Then put it into the appropriate list
2816 ### (library or tools, host or target), doing a dependency sort.
2818 # Subdirs will be configured in the order listed in build_configdirs,
2819 # configdirs, or target_configdirs; see the serialization section below.
2821 # Dependency sorting is only needed when *configuration* must be done in
2822 # a particular order. In all cases a dependency should be specified in
2823 # the Makefile, whether or not it's implicitly specified here.
2825 # Double entries in build_configdirs, configdirs, or target_configdirs may
2826 # cause circular dependencies and break everything horribly.
2828 # these library is used by various programs built for the build
2831 build_libs
="build-libiberty build-libcpp"
2833 # these tools are built for the build environment
2834 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2836 # these libraries are used by various programs built for the host environment
2838 host_libs
="gettext libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe libgrust "
2840 # these tools are built for the host environment
2841 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2842 # know that we are building the simulator.
2843 # binutils, gas and ld appear in that order because it makes sense to run
2844 # "make check" in that particular order.
2845 # If --enable-gold is used, "gold" may replace "ld".
2846 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"
2848 # these libraries are built for the target environment, and are built after
2849 # the host libraries and the host tools (which may be a cross compiler)
2850 # Note that libiberty is not a target library.
2851 target_libraries
="target-libgcc \
2852 target-libbacktrace \
2858 target-libstdc++-v3 \
2859 target-libsanitizer \
2862 target-libquadmath \
2863 target-libgfortran \
2873 # these tools are built using the target libraries, and are intended to
2874 # run only in the target environment
2876 # note: any program that *uses* libraries that are in the "target_libraries"
2877 # list belongs in this list.
2879 target_tools
="target-rda"
2881 ################################################################################
2883 ## All tools belong in one of the four categories, and are assigned above
2884 ## We assign ${configdirs} this way to remove all embedded newlines. This
2885 ## is important because configure will choke if they ever get through.
2886 ## ${configdirs} is directories we build using the host tools.
2887 ## ${target_configdirs} is directories we build using the target tools.
2888 configdirs
=`echo ${host_libs} ${host_tools}`
2889 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2890 build_configdirs
=`echo ${build_libs} ${build_tools}`
2894 ################################################################################
2896 srcname
="gnu development package"
2898 # This gets set non-empty for some net releases of packages.
2901 # Define is_cross_compiler to save on calls to 'test'.
2903 if test x
"${host}" = x
"${target}" ; then
2904 is_cross_compiler
=no
2906 is_cross_compiler
=yes
2909 # Find the build and target subdir names.
2911 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2912 # have matching libraries, they should use host libraries: Makefile.tpl
2913 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2914 # However, they still use the build modules, because the corresponding
2915 # host modules (e.g. bison) are only built for the host when bootstrap
2917 # - build_subdir is where we find build modules, and never changes.
2918 # - build_libsubdir is where we find build libraries, and can be overridden.
2920 # Prefix 'build-' so this never conflicts with target_subdir.
2921 build_subdir
="build-${build_noncanonical}"
2923 # Check whether --with-build-libsubdir was given.
2924 if test "${with_build_libsubdir+set}" = set; then :
2925 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2927 build_libsubdir
="$build_subdir"
2930 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2931 if ( test $srcdir = .
&& test -d gcc
) \
2932 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2933 host_subdir
="host-${host_noncanonical}"
2938 target_subdir
=${target_noncanonical}
2940 # Be sure to cover against remnants of an in-tree build.
2941 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2942 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2943 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2946 # Skipdirs are removed silently.
2948 # Noconfigdirs are removed loudly.
2952 # Make sure we don't let GNU ld be added if we didn't want it.
2953 if test x
$with_gnu_ld = xno
; then
2955 noconfigdirs
="$noconfigdirs ld gold"
2959 # Make sure we don't let GNU as be added if we didn't want it.
2960 if test x
$with_gnu_as = xno
; then
2962 noconfigdirs
="$noconfigdirs gas"
2967 # Check whether --with-system-zlib was given.
2968 if test "${with_system_zlib+set}" = set; then :
2969 withval
=$with_system_zlib;
2972 # Make sure we don't let ZLIB be added if we didn't want it.
2973 if test x
$with_system_zlib = xyes
; then
2974 use_included_zlib
=no
2975 noconfigdirs
="$noconfigdirs zlib"
2978 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2980 if test x
$with_system_readline = xyes
; then
2981 noconfigdirs
="$noconfigdirs readline"
2985 # Check whether --with-zstd was given.
2986 if test "${with_zstd+set}" = set; then :
2991 # some tools are so dependent upon X11 that if we're not building with X,
2992 # it's not even worth trying to configure, much less build, that tool.
2995 yes |
"") ;; # the default value for this tree is that X11 is available
2997 skipdirs
="${skipdirs} tk itcl libgui"
2998 # We won't be able to build gdbtk without X.
3001 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
3004 # Some are only suitable for cross toolchains.
3005 # Remove these if host=target.
3006 cross_only
="target-libgloss target-newlib target-opcodes"
3008 case $is_cross_compiler in
3009 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
3012 # If both --with-headers and --with-libs are specified, default to
3014 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
3015 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
3016 if test x
"${with_newlib}" = x
; then
3021 # Recognize --with-newlib/--without-newlib.
3022 case ${with_newlib} in
3023 no
) skipdirs
="${skipdirs} target-newlib" ;;
3024 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3027 # Check whether --enable-as-accelerator-for was given.
3028 if test "${enable_as_accelerator_for+set}" = set; then :
3029 enableval
=$enable_as_accelerator_for;
3033 # Check whether --enable-offload-targets was given.
3034 if test "${enable_offload_targets+set}" = set; then :
3035 enableval
=$enable_offload_targets;
3036 if test x
"$enable_offload_targets" = x
; then
3037 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3041 enable_offload_targets
=
3045 # Check whether --enable-offload-defaulted was given.
3046 if test "${enable_offload_defaulted+set}" = set; then :
3047 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3049 enable_offload_defaulted
=
3053 # Handle --enable-gold, --enable-ld.
3054 # --disable-gold [--enable-ld]
3055 # Build only ld. Default option.
3056 # --enable-gold [--enable-ld]
3057 # Build both gold and ld. Install gold as "ld.gold", install ld
3058 # as "ld.bfd" and "ld".
3059 # --enable-gold=default [--enable-ld]
3060 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3061 # install ld as "ld.bfd".
3062 # --enable-gold[=default] --disable-ld
3063 # Build only gold, which is then installed as both "ld.gold" and "ld".
3064 # --enable-gold --enable-ld=default
3065 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3067 # In other words, ld is default
3068 # --enable-gold=default --enable-ld=default
3072 # Check whether --enable-gold was given.
3073 if test "${enable_gold+set}" = set; then :
3074 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3079 case "${ENABLE_GOLD}" in
3081 # Check for ELF target.
3084 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3085 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3086 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3087 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl* |
*-*-haiku*)
3089 *-*-linux*aout
* |
*-*-linux*oldld
*)
3097 if test "$is_elf" = "yes"; then
3098 # Check for target supported by gold.
3100 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3101 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-*)
3102 configdirs
="$configdirs gold"
3103 if test x
${ENABLE_GOLD} = xdefault
; then
3114 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3118 # Check whether --enable-ld was given.
3119 if test "${enable_ld+set}" = set; then :
3120 enableval
=$enable_ld; ENABLE_LD
=$enableval
3126 case "${ENABLE_LD}" in
3128 if test x
${default_ld} != x
; then
3129 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3135 if test x
${ENABLE_GOLD} != xyes
; then
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3137 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3139 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3142 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3146 # Check whether --enable-gprofng was given.
3147 if test "${enable_gprofng+set}" = set; then :
3148 enableval
=$enable_gprofng; enable_gprofng
=$enableval
3153 if test "$enable_gprofng" = "yes"; then
3157 x86_64-
*-linux* | i?
86-*-linux* | aarch64-
*-linux* | riscv64-
*-linux*)
3158 configdirs
="$configdirs gprofng"
3165 # Decide the default method for compressing debug sections.
3166 # Provide a configure time option to override our default.
3167 # Check whether --enable-compressed_debug_sections was given.
3168 if test "${enable_compressed_debug_sections+set}" = set; then :
3169 enableval
=$enable_compressed_debug_sections;
3170 if test x
"$enable_compressed_debug_sections" = xyes
; then
3171 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3175 enable_compressed_debug_sections
=
3179 # Select default compression algorithm.
3180 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3181 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3182 enableval
=$enable_default_compressed_debug_sections_algorithm;
3184 default_compressed_debug_sections_algorithm
=
3188 # Configure extra directories which are host specific
3192 configdirs
="$configdirs libtermcap" ;;
3195 # A target can indicate whether a language isn't supported for some reason.
3196 # Only spaces may be used in this macro; not newlines or tabs.
3197 unsupported_languages
=
3199 # Remove more programs from consideration, based on the host or
3200 # target this usually means that a port of the program doesn't
3204 i
[3456789]86-*-msdosdjgpp*)
3205 noconfigdirs
="$noconfigdirs tcl tk itcl"
3209 # Default to --disable-year2038 until we can handle differences between
3210 # projects that use gnulib (which understands year 2038) and projects that
3211 # do not (like BFD).
3212 # Check whether --enable-year2038 was given.
3213 if test "${enable_year2038+set}" = set; then :
3214 enableval
=$enable_year2038; ENABLE_YEAR2038
=$enableval
3220 if test "${ENABLE_YEAR2038}" = "no" ; then
3224 # Check whether --enable-libquadmath was given.
3225 if test "${enable_libquadmath+set}" = set; then :
3226 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3228 ENABLE_LIBQUADMATH
=yes
3231 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3232 noconfigdirs
="$noconfigdirs target-libquadmath"
3236 # Check whether --enable-libquadmath-support was given.
3237 if test "${enable_libquadmath_support+set}" = set; then :
3238 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3240 ENABLE_LIBQUADMATH_SUPPORT
=yes
3243 enable_libquadmath_support
=
3244 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3245 enable_libquadmath_support
=no
3249 # Check whether --enable-libada was given.
3250 if test "${enable_libada+set}" = set; then :
3251 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3256 if test "${ENABLE_LIBADA}" != "yes" ; then
3257 noconfigdirs
="$noconfigdirs gnattools"
3260 # Check whether --enable-libgm2 was given.
3261 if test "${enable_libgm2+set}" = set; then :
3262 enableval
=$enable_libgm2; ENABLE_LIBGM2
=$enableval
3267 if test "${ENABLE_LIBGM2}" != "yes" ; then
3268 noconfigdirs
="$noconfigdirs gm2tools"
3271 # Check whether --enable-libssp was given.
3272 if test "${enable_libssp+set}" = set; then :
3273 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3279 # Check whether --enable-libstdcxx was given.
3280 if test "${enable_libstdcxx+set}" = set; then :
3281 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3283 ENABLE_LIBSTDCXX
=default
3286 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3287 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3290 # Enable libgomp by default on hosted POSIX systems, and a few others.
3291 if test x
$enable_libgomp = x
; then
3293 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3295 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3297 *-*-solaris2* |
*-*-hpux11*)
3299 *-*-darwin* |
*-*-aix*)
3301 nvptx
*-*-* | amdgcn
*-*-*)
3304 noconfigdirs
="$noconfigdirs target-libgomp"
3309 # Disable libatomic on unsupported systems.
3310 if test -d ${srcdir}/libatomic
; then
3311 if test x
$enable_libatomic = x
; then
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3313 $as_echo_n "checking for libatomic support... " >&6; }
3314 if (srcdir
=${srcdir}/libatomic
; \
3315 .
${srcdir}/configure.tgt
; \
3316 test -n "$UNSUPPORTED")
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3319 $as_echo "no" >&6; }
3320 noconfigdirs
="$noconfigdirs target-libatomic"
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3323 $as_echo "yes" >&6; }
3328 # Disable libitm on unsupported systems.
3329 if test -d ${srcdir}/libitm
; then
3330 if test x
$enable_libitm = x
; then
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3332 $as_echo_n "checking for libitm support... " >&6; }
3333 if (srcdir
=${srcdir}/libitm
; \
3334 .
${srcdir}/configure.tgt
; \
3335 test -n "$UNSUPPORTED")
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3338 $as_echo "no" >&6; }
3339 noconfigdirs
="$noconfigdirs target-libitm"
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3342 $as_echo "yes" >&6; }
3347 # Disable libsanitizer on unsupported systems.
3348 if test -d ${srcdir}/libsanitizer
; then
3349 if test x
$enable_libsanitizer = x
; then
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3351 $as_echo_n "checking for libsanitizer support... " >&6; }
3352 if (srcdir
=${srcdir}/libsanitizer
; \
3353 .
${srcdir}/configure.tgt
; \
3354 test -n "$UNSUPPORTED")
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3357 $as_echo "no" >&6; }
3358 noconfigdirs
="$noconfigdirs target-libsanitizer"
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3361 $as_echo "yes" >&6; }
3366 # Disable libvtv on unsupported systems.
3367 if test -d ${srcdir}/libvtv
; then
3368 if test x
$enable_libvtv = x
; then
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3370 $as_echo_n "checking for libvtv support... " >&6; }
3371 if (srcdir
=${srcdir}/libvtv
; \
3372 .
${srcdir}/configure.tgt
; \
3373 test "$VTV_SUPPORTED" != "yes")
3375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3376 $as_echo "no" >&6; }
3377 noconfigdirs
="$noconfigdirs target-libvtv"
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3380 $as_echo "yes" >&6; }
3385 # Disable libquadmath for some systems.
3388 noconfigdirs
="$noconfigdirs target-libquadmath"
3390 # libquadmath is unused on AIX and libquadmath build process use of
3391 # LD_LIBRARY_PATH can break AIX bootstrap.
3392 powerpc-
*-aix* | rs6000-
*-aix*)
3393 noconfigdirs
="$noconfigdirs target-libquadmath"
3397 # Disable libssp for some systems.
3400 # No hosted I/O support.
3401 noconfigdirs
="$noconfigdirs target-libssp"
3404 noconfigdirs
="$noconfigdirs target-libssp"
3406 powerpc-
*-aix* | rs6000-
*-aix*)
3407 noconfigdirs
="$noconfigdirs target-libssp"
3410 # No hosted I/O support.
3411 noconfigdirs
="$noconfigdirs target-libssp"
3414 # libssp uses a misaligned load to trigger a fault, but the RL78
3415 # doesn't fault for those - instead, it gives a build-time error
3416 # for explicit misaligned loads.
3417 noconfigdirs
="$noconfigdirs target-libssp"
3420 # No hosted I/O support.
3421 noconfigdirs
="$noconfigdirs target-libssp"
3425 # Disable libstdc++-v3 for some systems.
3426 # Allow user to override this if they pass --enable-libstdcxx
3427 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3430 # VxWorks uses the Dinkumware C++ library.
3431 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3434 # Not ported/fails to build when using newlib.
3435 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3438 # the C++ libraries don't build on top of CE's C libraries
3439 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3442 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3445 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3448 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3453 # Disable C++ on systems where it is known to not work.
3454 # For testing, you can override this with --enable-languages=c++.
3455 case ,${enable_languages}, in
3461 unsupported_languages
="$unsupported_languages c++"
3467 # Disable Objc on systems where it is known to not work.
3468 # For testing, you can override this with --enable-languages=objc.
3469 case ,${enable_languages}, in
3475 unsupported_languages
="$unsupported_languages objc"
3481 # Disable D on systems where it is known to not work.
3482 # For testing, you can override this with --enable-languages=d.
3483 case ,${enable_languages}, in
3489 unsupported_languages
="$unsupported_languages d"
3495 # Disable libphobos on unsupported systems.
3496 # For testing, you can override this with --enable-libphobos.
3497 if test -d ${srcdir}/libphobos
; then
3498 if test x
$enable_libphobos = x
; then
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3500 $as_echo_n "checking for libphobos support... " >&6; }
3501 if (srcdir
=${srcdir}/libphobos
; \
3502 .
${srcdir}/configure.tgt
; \
3503 test "$LIBPHOBOS_SUPPORTED" != "yes")
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3506 $as_echo "no" >&6; }
3507 noconfigdirs
="$noconfigdirs target-libphobos"
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3510 $as_echo "yes" >&6; }
3515 # Disable Fortran for some systems.
3518 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3519 unsupported_languages
="$unsupported_languages fortran"
3522 unsupported_languages
="$unsupported_languages fortran"
3526 # Disable libffi for some systems.
3530 i
[3456789]86-*-darwin*)
3532 x86_64-
*-darwin[912]*)
3535 noconfigdirs
="$noconfigdirs target-libffi"
3538 noconfigdirs
="$noconfigdirs target-libffi"
3541 noconfigdirs
="$noconfigdirs target-libffi"
3544 noconfigdirs
="$noconfigdirs target-libffi"
3547 noconfigdirs
="$noconfigdirs target-libffi"
3550 noconfigdirs
="$noconfigdirs target-libffi"
3553 noconfigdirs
="$noconfigdirs target-libffi"
3555 aarch64
*-*-freebsd*)
3556 noconfigdirs
="$noconfigdirs target-libffi"
3559 noconfigdirs
="$noconfigdirs target-libffi"
3562 noconfigdirs
="$noconfigdirs target-libffi"
3565 noconfigdirs
="$noconfigdirs target-libffi"
3568 noconfigdirs
="$noconfigdirs target-libffi"
3571 noconfigdirs
="$noconfigdirs target-libffi"
3573 cris-
*-* | crisv32-
*-*)
3577 *) # See PR46792 regarding target-libffi.
3578 noconfigdirs
="$noconfigdirs target-libffi";;
3582 noconfigdirs
="$noconfigdirs target-libffi"
3587 noconfigdirs
="$noconfigdirs target-libffi"
3590 noconfigdirs
="$noconfigdirs target-libffi"
3592 i
[3456789]86-w64-mingw*)
3593 noconfigdirs
="$noconfigdirs target-libffi"
3595 i
[3456789]86-*-mingw*)
3596 noconfigdirs
="$noconfigdirs target-libffi"
3599 noconfigdirs
="$noconfigdirs target-libffi"
3602 noconfigdirs
="$noconfigdirs target-libffi"
3609 noconfigdirs
="$noconfigdirs target-libffi"
3612 noconfigdirs
="$noconfigdirs target-libffi"
3616 # Disable the go frontend on systems where it is known to not work. Please keep
3617 # this in sync with contrib/config-list.mk.
3619 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3620 unsupported_languages
="$unsupported_languages go"
3624 # Only allow gdbserver on some systems.
3625 if test -d ${srcdir}/gdbserver
; then
3626 if test x
$enable_gdbserver = x
; then
3627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3628 $as_echo_n "checking for gdbserver support... " >&6; }
3629 if (srcdir
=${srcdir}/gdbserver
; \
3630 .
${srcdir}/configure.srv
; \
3631 test -n "$UNSUPPORTED")
3633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3634 $as_echo "no" >&6; }
3635 noconfigdirs
="$noconfigdirs gdbserver"
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3638 $as_echo "yes" >&6; }
3643 # Disable libgo for some systems where it is known to not work.
3644 # For testing, you can easily override this with --enable-libgo.
3645 if test x
$enable_libgo = x
; then
3649 noconfigdirs
="$noconfigdirs target-libgo"
3651 *-*-cygwin* |
*-*-mingw*)
3652 noconfigdirs
="$noconfigdirs target-libgo"
3655 noconfigdirs
="$noconfigdirs target-libgo"
3660 # Default libgloss CPU subdirectory.
3661 libgloss_dir
="$target_cpu"
3664 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3668 libgloss_dir
=aarch64
3673 cris-
*-* | crisv32-
*-*)
3677 libgloss_dir
=kvx-elf
3680 libgloss_dir
=kvx-mbr
3683 libgloss_dir
=kvx-cos
3692 libgloss_dir
=loongarch
3694 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3695 libgloss_dir
=m68hc11
3697 m68
*-*-* | fido-
*-*)
3714 # Disable newlib and libgloss for various target OSes.
3717 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3719 i
[3456789]86-*-linux*)
3720 # This section makes it possible to build newlib natively on linux.
3721 # If we are using a cross compiler then don't configure newlib.
3722 if test x
${is_cross_compiler} != xno
; then
3723 noconfigdirs
="$noconfigdirs target-newlib"
3725 noconfigdirs
="$noconfigdirs target-libgloss"
3726 # If we are not using a cross compiler, do configure newlib.
3727 # Note however, that newlib will only be configured in this situation
3728 # if the --with-newlib option has been given, because otherwise
3729 # 'target-newlib' will appear in skipdirs.
3731 i
[3456789]86-*-rdos*)
3732 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3734 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3735 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3738 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3741 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3744 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3747 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3750 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3753 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3756 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3758 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3759 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3762 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3765 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3768 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3771 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3774 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3777 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3780 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3784 # The ARM simulator has been deprecated for all ARM targets.
3787 noconfigdirs
="$noconfigdirs sim"
3795 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3796 noconfigdirs
="$noconfigdirs sim target-rda"
3801 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3802 noconfigdirs
="$noconfigdirs target-rda"
3805 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3806 noconfigdirs
="$noconfigdirs sim target-rda"
3808 i
[3456789]86-*-darwin*)
3809 noconfigdirs
="$noconfigdirs ld gprof"
3810 noconfigdirs
="$noconfigdirs sim target-rda"
3812 x86_64-
*-darwin[912]*)
3813 noconfigdirs
="$noconfigdirs ld gas gprof"
3814 noconfigdirs
="$noconfigdirs sim target-rda"
3817 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3818 noconfigdirs
="$noconfigdirs sim target-rda"
3823 if test "x$with_gmp" = x \
3824 && ! test -d ${srcdir}/gmp \
3825 && test -f /usr
/local
/include
/gmp.h
; then
3830 # Remove unsupported stuff on all kaOS configurations.
3831 noconfigdirs
="$noconfigdirs target-libgloss"
3838 noconfigdirs
="$noconfigdirs target-libgloss"
3841 noconfigdirs
="$noconfigdirs target-libgloss"
3843 # The tpf target doesn't support gdb yet.
3845 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3848 noconfigdirs
="$noconfigdirs target-rda"
3853 # ld works, but does not support shared libraries.
3854 # gas doesn't generate exception information.
3855 noconfigdirs
="$noconfigdirs gas ld"
3858 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3861 # newlib is not 64 bit ready
3862 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3865 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3867 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3868 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3871 noconfigdirs
="$noconfigdirs sim"
3874 noconfigdirs
="$noconfigdirs target-libgloss"
3877 noconfigdirs
="$noconfigdirs ld target-libgloss"
3880 if test x
${with_avrlibc} != xno
; then
3881 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3884 c4x-
*-* | tic4x-
*-*)
3885 noconfigdirs
="$noconfigdirs target-libgloss"
3888 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3891 noconfigdirs
="$noconfigdirs target-libgloss"
3894 noconfigdirs
="$noconfigdirs gdb"
3897 noconfigdirs
="$noconfigdirs gdb"
3900 noconfigdirs
="$noconfigdirs target-rda gprof"
3903 noconfigdirs
="$noconfigdirs"
3906 noconfigdirs
="$noconfigdirs target-libgloss"
3909 noconfigdirs
="$noconfigdirs target-libgloss"
3911 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3914 noconfigdirs
="$noconfigdirs gdb"
3917 noconfigdirs
="$noconfigdirs gdb ld"
3925 hppa
*-*-openbsd* | \
3931 noconfigdirs
="$noconfigdirs ld"
3934 noconfigdirs
="$noconfigdirs gdb"
3937 # No gdb support yet.
3938 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3941 # No ld support yet.
3942 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3945 # No ld support yet.
3946 noconfigdirs
="$noconfigdirs libgui itcl ld"
3948 i
[3456789]86-w64-mingw*)
3950 i
[3456789]86-*-mingw*)
3951 target_configdirs
="$target_configdirs target-winsup"
3954 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3955 noconfigdirs
="$noconfigdirs target-libgloss"
3956 # always build newlib if winsup directory is present.
3957 if test -d "$srcdir/winsup/cygwin"; then
3958 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3959 elif test -d "$srcdir/newlib"; then
3960 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3964 noconfigdirs
="$noconfigdirs target-libgloss"
3966 i
[3456789]86-*-sco3.2v5
*)
3967 # The linker does not yet know about weak symbols in COFF,
3968 # and is not configured to handle mixed ELF and COFF.
3969 noconfigdirs
="$noconfigdirs ld target-libgloss"
3971 i
[3456789]86-*-sco*)
3972 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3974 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3975 noconfigdirs
="$noconfigdirs target-libgloss"
3977 i
[3456789]86-*-sysv4*)
3978 noconfigdirs
="$noconfigdirs target-libgloss"
3980 i
[3456789]86-*-beos*)
3981 noconfigdirs
="$noconfigdirs gdb"
3983 i
[3456789]86-*-rdos*)
3984 noconfigdirs
="$noconfigdirs gdb"
3987 noconfigdirs
="$noconfigdirs gdb gdbserver sim"
3990 noconfigdirs
="$noconfigdirs gdb"
3993 noconfigdirs
="$noconfigdirs sim"
3996 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3997 noconfigdirs
="$noconfigdirs $target_libraries"
4000 noconfigdirs
="$noconfigdirs gdb gprof"
4003 # copied from rs6000-*-* entry
4004 noconfigdirs
="$noconfigdirs gprof"
4006 powerpc
*-*-winnt* | powerpc
*-*-pe*)
4007 target_configdirs
="$target_configdirs target-winsup"
4008 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
4009 # always build newlib.
4010 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4012 # This is temporary until we can link against shared libraries
4013 powerpcle-
*-solaris*)
4014 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
4017 noconfigdirs
="$noconfigdirs gdb"
4020 noconfigdirs
="$noconfigdirs gprof"
4023 noconfigdirs
="$noconfigdirs gprof"
4026 noconfigdirs
="$noconfigdirs gprof"
4029 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
4032 noconfigdirs
="$noconfigdirs gprof"
4034 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
4035 if test x
$with_newlib = xyes
; then
4036 noconfigdirs
="$noconfigdirs gprof"
4040 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4043 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4046 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
4050 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
4051 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
4052 noconfigdirs
="$noconfigdirs ld gas gprof"
4055 noconfigdirs
="$noconfigdirs gprof"
4058 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4065 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4069 if test x
${is_cross_compiler} = xno
; then
4074 noconfigdirs
="$noconfigdirs sim"
4076 tilepro
*-*-* | tilegx
*-*-*)
4077 noconfigdirs
="$noconfigdirs sim"
4080 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4083 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4086 noconfigdirs
="$noconfigdirs ld"
4088 loongarch
*-*-linux*)
4091 noconfigdirs
="$noconfigdirs gprof"
4095 # If we aren't building newlib, then don't build libgloss, since libgloss
4096 # depends upon some newlib header files.
4097 case "${noconfigdirs}" in
4098 *target-libgloss
*) ;;
4099 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4102 # Work in distributions that contain no compiler tools, like Autoconf.
4103 host_makefile_frag
=/dev
/null
4104 if test -d ${srcdir}/config
; then
4106 i
[3456789]86-*-msdosdjgpp*)
4107 host_makefile_frag
="config/mh-djgpp"
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4112 $as_echo_n "checking to see if cat works as expected... " >&6; }
4113 echo a
>cygwin-cat-check
4114 if test `cat cygwin-cat-check` = a
; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4117 $as_echo "yes" >&6; }
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4121 $as_echo "no" >&6; }
4122 as_fn_error $?
"The cat command does not ignore carriage return characters.
4123 Please either mount the build directory in binary mode or run the following
4124 commands before running any configure script:
4130 host_makefile_frag
="config/mh-cygwin"
4133 host_makefile_frag
="config/mh-mingw"
4136 host_makefile_frag
="config/mh-alpha-linux"
4139 host_makefile_frag
="config/mh-pa"
4142 host_makefile_frag
="config/mh-pa"
4144 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4145 host_makefile_frag
="config/mh-darwin"
4148 host_makefile_frag
="config/mh-ppc-aix"
4151 host_makefile_frag
="config/mh-ppc-aix"
4156 if test "${build}" != "${host}" ; then
4157 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4158 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4159 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4160 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4161 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4162 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4163 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4164 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4165 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4166 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4167 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4168 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4169 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4170 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4171 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4173 AR_FOR_BUILD
="\$(AR)"
4174 AS_FOR_BUILD
="\$(AS)"
4175 CC_FOR_BUILD
="\$(CC)"
4176 CXX_FOR_BUILD
="\$(CXX)"
4177 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4178 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4179 GOC_FOR_BUILD
="\$(GOC)"
4180 GDC_FOR_BUILD
="\$(GDC)"
4181 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4182 LD_FOR_BUILD
="\$(LD)"
4183 NM_FOR_BUILD
="\$(NM)"
4184 RANLIB_FOR_BUILD
="\$(RANLIB)"
4185 WINDRES_FOR_BUILD
="\$(WINDRES)"
4186 WINDMC_FOR_BUILD
="\$(WINDMC)"
4190 ac_cpp
='$CPP $CPPFLAGS'
4191 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4192 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4193 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4194 if test -n "$ac_tool_prefix"; then
4195 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4196 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4198 $as_echo_n "checking for $ac_word... " >&6; }
4199 if ${ac_cv_prog_CC+:} false
; then :
4200 $as_echo_n "(cached) " >&6
4202 if test -n "$CC"; then
4203 ac_cv_prog_CC
="$CC" # Let the user override the test.
4205 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4209 test -z "$as_dir" && as_dir
=.
4210 for ac_exec_ext
in '' $ac_executable_extensions; do
4211 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4212 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4223 if test -n "$CC"; then
4224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4225 $as_echo "$CC" >&6; }
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4228 $as_echo "no" >&6; }
4233 if test -z "$ac_cv_prog_CC"; then
4235 # Extract the first word of "gcc", so it can be a program name with args.
4236 set dummy gcc
; ac_word
=$2
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4238 $as_echo_n "checking for $ac_word... " >&6; }
4239 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4240 $as_echo_n "(cached) " >&6
4242 if test -n "$ac_ct_CC"; then
4243 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4245 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4249 test -z "$as_dir" && as_dir
=.
4250 for ac_exec_ext
in '' $ac_executable_extensions; do
4251 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4252 ac_cv_prog_ac_ct_CC
="gcc"
4253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4263 if test -n "$ac_ct_CC"; then
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4265 $as_echo "$ac_ct_CC" >&6; }
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4268 $as_echo "no" >&6; }
4271 if test "x$ac_ct_CC" = x
; then
4274 case $cross_compiling:$ac_tool_warned in
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4277 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4278 ac_tool_warned
=yes ;;
4286 if test -z "$CC"; then
4287 if test -n "$ac_tool_prefix"; then
4288 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4289 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if ${ac_cv_prog_CC+:} false
; then :
4293 $as_echo_n "(cached) " >&6
4295 if test -n "$CC"; then
4296 ac_cv_prog_CC
="$CC" # Let the user override the test.
4298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir
=.
4303 for ac_exec_ext
in '' $ac_executable_extensions; do
4304 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4305 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 if test -n "$CC"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4318 $as_echo "$CC" >&6; }
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4327 if test -z "$CC"; then
4328 # Extract the first word of "cc", so it can be a program name with args.
4329 set dummy cc
; ac_word
=$2
4330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4331 $as_echo_n "checking for $ac_word... " >&6; }
4332 if ${ac_cv_prog_CC+:} false
; then :
4333 $as_echo_n "(cached) " >&6
4335 if test -n "$CC"; then
4336 ac_cv_prog_CC
="$CC" # Let the user override the test.
4339 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4343 test -z "$as_dir" && as_dir
=.
4344 for ac_exec_ext
in '' $ac_executable_extensions; do
4345 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4346 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4347 ac_prog_rejected
=yes
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4358 if test $ac_prog_rejected = yes; then
4359 # We found a bogon in the path, so make sure we never use it.
4360 set dummy
$ac_cv_prog_CC
4362 if test $# != 0; then
4363 # We chose a different compiler from the bogus one.
4364 # However, it has the same basename, so the bogon will be chosen
4365 # first if we set CC to just the basename; use the full file name.
4367 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4373 if test -n "$CC"; then
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4375 $as_echo "$CC" >&6; }
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4378 $as_echo "no" >&6; }
4383 if test -z "$CC"; then
4384 if test -n "$ac_tool_prefix"; then
4385 for ac_prog
in cl.exe
4387 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4388 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4390 $as_echo_n "checking for $ac_word... " >&6; }
4391 if ${ac_cv_prog_CC+:} false
; then :
4392 $as_echo_n "(cached) " >&6
4394 if test -n "$CC"; then
4395 ac_cv_prog_CC
="$CC" # Let the user override the test.
4397 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4401 test -z "$as_dir" && as_dir
=.
4402 for ac_exec_ext
in '' $ac_executable_extensions; do
4403 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4404 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4415 if test -n "$CC"; then
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4417 $as_echo "$CC" >&6; }
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4420 $as_echo "no" >&6; }
4424 test -n "$CC" && break
4427 if test -z "$CC"; then
4429 for ac_prog
in cl.exe
4431 # Extract the first word of "$ac_prog", so it can be a program name with args.
4432 set dummy
$ac_prog; ac_word
=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4436 $as_echo_n "(cached) " >&6
4438 if test -n "$ac_ct_CC"; then
4439 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4441 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4445 test -z "$as_dir" && as_dir
=.
4446 for ac_exec_ext
in '' $ac_executable_extensions; do
4447 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4448 ac_cv_prog_ac_ct_CC
="$ac_prog"
4449 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4458 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4459 if test -n "$ac_ct_CC"; then
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4461 $as_echo "$ac_ct_CC" >&6; }
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4464 $as_echo "no" >&6; }
4468 test -n "$ac_ct_CC" && break
4471 if test "x$ac_ct_CC" = x
; then
4474 case $cross_compiling:$ac_tool_warned in
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4477 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4478 ac_tool_warned
=yes ;;
4487 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4488 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4489 as_fn_error $?
"no acceptable C compiler found in \$PATH
4490 See \`config.log' for more details" "$LINENO" 5; }
4492 # Provide some information about the compiler.
4493 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4496 for ac_option
in --version -v -V -qversion; do
4497 { { ac_try
="$ac_compiler $ac_option >&5"
4499 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4500 *) ac_try_echo=$ac_try;;
4502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4503 $as_echo "$ac_try_echo"; } >&5
4504 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4506 if test -s conftest.err; then
4508 ... rest of stderr output deleted ...
4509 10q' conftest.err >conftest.er1
4510 cat conftest.er1 >&5
4512 rm -f conftest.er1 conftest.err
4513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4514 test $ac_status = 0; }
4517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4518 /* end confdefs.h. */
4528 ac_clean_files_save=$ac_clean_files
4529 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4530 # Try to create an executable without -o first, disregard a.out.
4531 # It will help us diagnose broken compilers, and finding out an intuition
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4534 $as_echo_n "checking whether the C compiler works... " >&6; }
4535 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4537 # The possible output files:
4538 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4541 for ac_file in $ac_files
4544 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4545 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4550 if { { ac_try="$ac_link_default"
4552 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4553 *) ac_try_echo
=$ac_try;;
4555 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4556 $as_echo "$ac_try_echo"; } >&5
4557 (eval "$ac_link_default") 2>&5
4559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4560 test $ac_status = 0; }; then :
4561 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4562 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4563 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4564 # so that the user can short-circuit this test for compilers unknown to
4566 for ac_file
in $ac_files ''
4568 test -f "$ac_file" ||
continue
4570 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4573 # We found the default executable, but exeext='' is most
4577 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4579 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4581 # We set ac_cv_exeext here because the later test for it is not
4582 # safe: cross compilers may not add the suffix if given an `-o'
4583 # argument, so we may need to know it at that point already.
4584 # Even if this section looks crufty: it has the advantage of
4591 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4596 if test -z "$ac_file"; then :
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4598 $as_echo "no" >&6; }
4599 $as_echo "$as_me: failed program was:" >&5
4600 sed 's/^/| /' conftest.
$ac_ext >&5
4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error
77 "C compiler cannot create executables
4605 See \`config.log' for more details" "$LINENO" 5; }
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4608 $as_echo "yes" >&6; }
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4611 $as_echo_n "checking for C compiler default output file name... " >&6; }
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4613 $as_echo "$ac_file" >&6; }
4614 ac_exeext
=$ac_cv_exeext
4616 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4617 ac_clean_files
=$ac_clean_files_save
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4619 $as_echo_n "checking for suffix of executables... " >&6; }
4620 if { { ac_try
="$ac_link"
4622 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4623 *) ac_try_echo=$ac_try;;
4625 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4626 $as_echo "$ac_try_echo"; } >&5
4627 (eval "$ac_link") 2>&5
4629 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4630 test $ac_status = 0; }; then :
4631 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4632 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4633 # work properly (i.e., refer to `conftest.exe'), while it won't with
4635 for ac_file
in conftest.exe conftest conftest.
*; do
4636 test -f "$ac_file" ||
continue
4638 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4639 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4647 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4648 See \`config.log' for more details" "$LINENO" 5; }
4650 rm -f conftest conftest
$ac_cv_exeext
4651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4652 $as_echo "$ac_cv_exeext" >&6; }
4654 rm -f conftest.
$ac_ext
4655 EXEEXT
=$ac_cv_exeext
4657 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4663 FILE *f = fopen ("conftest.out", "w");
4664 return ferror (f) || fclose (f) != 0;
4670 ac_clean_files
="$ac_clean_files conftest.out"
4671 # Check that the compiler produces executables we can run. If not, either
4672 # the compiler is broken, or we cross compile.
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4674 $as_echo_n "checking whether we are cross compiling... " >&6; }
4675 if test "$cross_compiling" != yes; then
4676 { { ac_try
="$ac_link"
4678 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4679 *) ac_try_echo=$ac_try;;
4681 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4682 $as_echo "$ac_try_echo"; } >&5
4683 (eval "$ac_link") 2>&5
4685 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4686 test $ac_status = 0; }
4687 if { ac_try='./conftest$ac_cv_exeext'
4688 { { case "(($ac_try" in
4689 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4690 *) ac_try_echo
=$ac_try;;
4692 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4693 $as_echo "$ac_try_echo"; } >&5
4694 (eval "$ac_try") 2>&5
4696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4697 test $ac_status = 0; }; }; then
4700 if test "$cross_compiling" = maybe
; then
4703 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4704 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4705 as_fn_error $?
"cannot run C compiled programs.
4706 If you meant to cross compile, use \`--host'.
4707 See \`config.log' for more details" "$LINENO" 5; }
4711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4712 $as_echo "$cross_compiling" >&6; }
4714 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4715 ac_clean_files
=$ac_clean_files_save
4716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4717 $as_echo_n "checking for suffix of object files... " >&6; }
4718 if ${ac_cv_objext+:} false
; then :
4719 $as_echo_n "(cached) " >&6
4721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4722 /* end confdefs.h. */
4732 rm -f conftest.o conftest.obj
4733 if { { ac_try
="$ac_compile"
4735 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4736 *) ac_try_echo=$ac_try;;
4738 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4739 $as_echo "$ac_try_echo"; } >&5
4740 (eval "$ac_compile") 2>&5
4742 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4743 test $ac_status = 0; }; then :
4744 for ac_file in conftest.o conftest.obj conftest.*; do
4745 test -f "$ac_file" || continue;
4747 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4748 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4753 $as_echo "$as_me: failed program was:" >&5
4754 sed 's/^/| /' conftest.$ac_ext >&5
4756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4758 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4759 See \
`config.log' for more details" "$LINENO" 5; }
4761 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4764 $as_echo "$ac_cv_objext" >&6; }
4765 OBJEXT=$ac_cv_objext
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4768 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4769 if ${ac_cv_c_compiler_gnu+:} false; then :
4770 $as_echo_n "(cached) " >&6
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4786 if ac_fn_c_try_compile "$LINENO"; then :
4791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4796 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4797 if test $ac_compiler_gnu = yes; then
4802 ac_test_CFLAGS=${CFLAGS+set}
4803 ac_save_CFLAGS=$CFLAGS
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4805 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4806 if ${ac_cv_prog_cc_g+:} false; then :
4807 $as_echo_n "(cached) " >&6
4809 ac_save_c_werror_flag=$ac_c_werror_flag
4810 ac_c_werror_flag=yes
4813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4814 /* end confdefs.h. */
4824 if ac_fn_c_try_compile "$LINENO"; then :
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4839 if ac_fn_c_try_compile "$LINENO"; then :
4842 ac_c_werror_flag=$ac_save_c_werror_flag
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4855 if ac_fn_c_try_compile "$LINENO"; then :
4858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4863 ac_c_werror_flag=$ac_save_c_werror_flag
4865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4866 $as_echo "$ac_cv_prog_cc_g" >&6; }
4867 if test "$ac_test_CFLAGS" = set; then
4868 CFLAGS=$ac_save_CFLAGS
4869 elif test $ac_cv_prog_cc_g = yes; then
4870 if test "$GCC" = yes; then
4876 if test "$GCC" = yes; then
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4883 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4884 if ${ac_cv_prog_cc_c89+:} false; then :
4885 $as_echo_n "(cached) " >&6
4887 ac_cv_prog_cc_c89=no
4889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4890 /* end confdefs.h. */
4894 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4895 struct buf { int x; };
4896 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4897 static char *e (p, i)
4903 static char *f (char * (*g) (char **, int), char **p, ...)
4908 s = g (p, va_arg (v,int));
4913 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4914 function prototypes and stuff, but not '\xHH' hex character constants.
4915 These don't provoke an error unfortunately, instead are silently treated
4916 as 'x'. The following induces an error, until -std is added to get
4917 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4918 array size at least. It's necessary to write '\x00'==0 to get something
4919 that's true only with -std. */
4920 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4922 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4923 inside strings and character constants. */
4925 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4927 int test (int i, double x);
4928 struct s1 {int (*f) (int a);};
4929 struct s2 {int (*f) (double a);};
4930 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4936 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4941 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4942 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4944 CC="$ac_save_CC $ac_arg"
4945 if ac_fn_c_try_compile "$LINENO"; then :
4946 ac_cv_prog_cc_c89=$ac_arg
4948 rm -f core conftest.err conftest.$ac_objext
4949 test "x$ac_cv_prog_cc_c89" != "xno" && break
4951 rm -f conftest.$ac_ext
4956 case "x$ac_cv_prog_cc_c89" in
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4959 $as_echo "none needed" >&6; } ;;
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4962 $as_echo "unsupported" >&6; } ;;
4964 CC="$CC $ac_cv_prog_cc_c89"
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4966 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4968 if test "x$ac_cv_prog_cc_c89" != xno; then :
4973 ac_cpp='$CPP $CPPFLAGS'
4974 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4975 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4976 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4979 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4980 if ${ac_cv_prog_cc_c99+:} false; then :
4981 $as_echo_n "(cached) " >&6
4983 ac_cv_prog_cc_c99=no
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4988 #include <stdbool.h>
4993 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4994 #define debug(...) fprintf (stderr, __VA_ARGS__)
4995 #define showlist(...) puts (#__VA_ARGS__)
4996 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4998 test_varargs_macros (void)
5003 debug ("X = %d\n", x);
5004 showlist (The first, second, and third items.);
5005 report (x>y, "x is %d but y is %d", x, y);
5008 // Check long long types.
5009 #define BIG64 18446744073709551615ull
5010 #define BIG32 4294967295ul
5011 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5013 your preprocessor is broken;
5017 your preprocessor is broken;
5019 static long long int bignum = -9223372036854775807LL;
5020 static unsigned long long int ubignum = BIG64;
5022 struct incomplete_array
5030 const wchar_t *name;
5034 typedef const char *ccp;
5037 test_restrict (ccp restrict text)
5039 // See if C++-style comments work.
5040 // Iterate through items via the restricted pointer.
5041 // Also check for declarations in for loops.
5042 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5047 // Check varargs and va_copy.
5049 test_varargs (const char *format, ...)
5052 va_start (args, format);
5054 va_copy (args_copy, args);
5065 str = va_arg (args_copy, const char *);
5068 number = va_arg (args_copy, int);
5071 fnumber = va_arg (args_copy, double);
5086 _Bool success = false;
5089 if (test_restrict ("String literal") == 0)
5091 char *restrict newvar = "Another string";
5094 test_varargs ("s, d' f .", "string", 65, 34.234);
5095 test_varargs_macros ();
5097 // Check flexible array members.
5098 struct incomplete_array *ia =
5099 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5101 for (int i = 0; i < ia->datasize; ++i)
5102 ia->data[i] = i * 1.234;
5104 // Check named initializers.
5105 struct named_init ni = {
5107 .name = L"Test wide string",
5108 .average = 543.34343,
5113 int dynamic_array[ni.number];
5114 dynamic_array[ni.number - 1] = 543;
5116 // work around unused variable warnings
5117 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5118 || dynamic_array[ni.number - 1] != 543);
5124 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5126 CC="$ac_save_CC $ac_arg"
5127 if ac_fn_c_try_compile "$LINENO"; then :
5128 ac_cv_prog_cc_c99=$ac_arg
5130 rm -f core conftest.err conftest.$ac_objext
5131 test "x$ac_cv_prog_cc_c99" != "xno" && break
5133 rm -f conftest.$ac_ext
5138 case "x$ac_cv_prog_cc_c99" in
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5141 $as_echo "none needed" >&6; } ;;
5143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5144 $as_echo "unsupported" >&6; } ;;
5146 CC="$CC $ac_cv_prog_cc_c99"
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5148 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5150 if test "x$ac_cv_prog_cc_c99" != xno; then :
5156 ac_cpp='$CXXCPP $CPPFLAGS'
5157 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5158 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5159 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5160 if test -z "$CXX"; then
5161 if test -n "$CCC"; then
5164 if test -n "$ac_tool_prefix"; then
5165 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5167 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5168 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if ${ac_cv_prog_CXX+:} false; then :
5172 $as_echo_n "(cached) " >&6
5174 if test -n "$CXX"; then
5175 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5184 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 if test -n "$CXX"; then
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5197 $as_echo "$CXX" >&6; }
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5200 $as_echo "no" >&6; }
5204 test -n "$CXX" && break
5207 if test -z "$CXX"; then
5209 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5211 # Extract the first word of "$ac_prog", so it can be a program name with args.
5212 set dummy $ac_prog; ac_word=$2
5213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5214 $as_echo_n "checking for $ac_word... " >&6; }
5215 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5216 $as_echo_n "(cached) " >&6
5218 if test -n "$ac_ct_CXX"; then
5219 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5228 ac_cv_prog_ac_ct_CXX="$ac_prog"
5229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5238 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5239 if test -n "$ac_ct_CXX"; then
5240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5241 $as_echo "$ac_ct_CXX" >&6; }
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5244 $as_echo "no" >&6; }
5248 test -n "$ac_ct_CXX" && break
5251 if test "x$ac_ct_CXX" = x; then
5254 case $cross_compiling:$ac_tool_warned in
5256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5258 ac_tool_warned=yes ;;
5266 # Provide some information about the compiler.
5267 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5270 for ac_option in --version -v -V -qversion; do
5271 { { ac_try="$ac_compiler $ac_option >&5"
5273 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5274 *) ac_try_echo
=$ac_try;;
5276 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5277 $as_echo "$ac_try_echo"; } >&5
5278 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5280 if test -s conftest.err
; then
5282 ... rest of stderr output deleted ...
5283 10q' conftest.err
>conftest.er1
5284 cat conftest.er1
>&5
5286 rm -f conftest.er1 conftest.err
5287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5288 test $ac_status = 0; }
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5292 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5293 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5294 $as_echo_n "(cached) " >&6
5296 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5297 /* end confdefs.h. */
5310 if ac_fn_cxx_try_compile
"$LINENO"; then :
5315 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5316 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5320 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5321 if test $ac_compiler_gnu = yes; then
5326 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5327 ac_save_CXXFLAGS
=$CXXFLAGS
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5329 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5330 if ${ac_cv_prog_cxx_g+:} false
; then :
5331 $as_echo_n "(cached) " >&6
5333 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5334 ac_cxx_werror_flag
=yes
5337 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5338 /* end confdefs.h. */
5348 if ac_fn_cxx_try_compile
"$LINENO"; then :
5349 ac_cv_prog_cxx_g
=yes
5352 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5353 /* end confdefs.h. */
5363 if ac_fn_cxx_try_compile
"$LINENO"; then :
5366 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5368 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5369 /* end confdefs.h. */
5379 if ac_fn_cxx_try_compile
"$LINENO"; then :
5380 ac_cv_prog_cxx_g
=yes
5382 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5384 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5386 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5387 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5390 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5391 if test "$ac_test_CXXFLAGS" = set; then
5392 CXXFLAGS
=$ac_save_CXXFLAGS
5393 elif test $ac_cv_prog_cxx_g = yes; then
5394 if test "$GXX" = yes; then
5400 if test "$GXX" = yes; then
5407 ac_cpp
='$CPP $CPPFLAGS'
5408 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5409 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5410 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5413 # We must set the default linker to the linker used by gcc for the correct
5414 # operation of libtool. If LD is not defined and we are using gcc, try to
5415 # set the LD default to the ld used by gcc.
5416 if test -z "$LD"; then
5417 if test "$GCC" = yes; then
5420 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5422 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5424 case $gcc_prog_ld in
5425 # Accept absolute paths.
5426 [\\/]* |
[A-Za-z
]:[\\/]*)
5427 LD
="$gcc_prog_ld" ;;
5432 # Check whether -static-libstdc++ -static-libgcc is supported.
5434 if test "$GCC" = yes; then
5435 saved_LDFLAGS
="$LDFLAGS"
5437 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5439 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5441 ac_cpp
='$CXXCPP $CPPFLAGS'
5442 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5443 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5444 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5448 /* end confdefs.h. */
5450 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5451 #error -static-libstdc++ not implemented
5455 if ac_fn_cxx_try_link
"$LINENO"; then :
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5457 $as_echo "yes" >&6; }; have_static_libs
=yes
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5460 $as_echo "no" >&6; }
5462 rm -f core conftest.err conftest.
$ac_objext \
5463 conftest
$ac_exeext conftest.
$ac_ext
5465 ac_cpp
='$CPP $CPPFLAGS'
5466 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5467 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5468 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5471 LDFLAGS
="$saved_LDFLAGS"
5477 if test -n "$ac_tool_prefix"; then
5478 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5479 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5481 $as_echo_n "checking for $ac_word... " >&6; }
5482 if ${ac_cv_prog_GNATBIND+:} false
; then :
5483 $as_echo_n "(cached) " >&6
5485 if test -n "$GNATBIND"; then
5486 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5488 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5492 test -z "$as_dir" && as_dir
=.
5493 for ac_exec_ext
in '' $ac_executable_extensions; do
5494 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5495 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5505 GNATBIND
=$ac_cv_prog_GNATBIND
5506 if test -n "$GNATBIND"; then
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5508 $as_echo "$GNATBIND" >&6; }
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5511 $as_echo "no" >&6; }
5516 if test -z "$ac_cv_prog_GNATBIND"; then
5517 ac_ct_GNATBIND
=$GNATBIND
5518 # Extract the first word of "gnatbind", so it can be a program name with args.
5519 set dummy gnatbind
; ac_word
=$2
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5521 $as_echo_n "checking for $ac_word... " >&6; }
5522 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5523 $as_echo_n "(cached) " >&6
5525 if test -n "$ac_ct_GNATBIND"; then
5526 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5532 test -z "$as_dir" && as_dir
=.
5533 for ac_exec_ext
in '' $ac_executable_extensions; do
5534 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5535 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5545 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5546 if test -n "$ac_ct_GNATBIND"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5548 $as_echo "$ac_ct_GNATBIND" >&6; }
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5551 $as_echo "no" >&6; }
5554 if test "x$ac_ct_GNATBIND" = x
; then
5557 case $cross_compiling:$ac_tool_warned in
5559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5561 ac_tool_warned
=yes ;;
5563 GNATBIND
=$ac_ct_GNATBIND
5566 GNATBIND
="$ac_cv_prog_GNATBIND"
5569 if test -n "$ac_tool_prefix"; then
5570 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5571 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5573 $as_echo_n "checking for $ac_word... " >&6; }
5574 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5575 $as_echo_n "(cached) " >&6
5577 if test -n "$GNATMAKE"; then
5578 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5580 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5584 test -z "$as_dir" && as_dir
=.
5585 for ac_exec_ext
in '' $ac_executable_extensions; do
5586 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5587 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5597 GNATMAKE
=$ac_cv_prog_GNATMAKE
5598 if test -n "$GNATMAKE"; then
5599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5600 $as_echo "$GNATMAKE" >&6; }
5602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5603 $as_echo "no" >&6; }
5608 if test -z "$ac_cv_prog_GNATMAKE"; then
5609 ac_ct_GNATMAKE
=$GNATMAKE
5610 # Extract the first word of "gnatmake", so it can be a program name with args.
5611 set dummy gnatmake
; ac_word
=$2
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5613 $as_echo_n "checking for $ac_word... " >&6; }
5614 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5615 $as_echo_n "(cached) " >&6
5617 if test -n "$ac_ct_GNATMAKE"; then
5618 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5620 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5624 test -z "$as_dir" && as_dir
=.
5625 for ac_exec_ext
in '' $ac_executable_extensions; do
5626 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5627 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5637 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5638 if test -n "$ac_ct_GNATMAKE"; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5640 $as_echo "$ac_ct_GNATMAKE" >&6; }
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5643 $as_echo "no" >&6; }
5646 if test "x$ac_ct_GNATMAKE" = x
; then
5649 case $cross_compiling:$ac_tool_warned in
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5653 ac_tool_warned
=yes ;;
5655 GNATMAKE
=$ac_ct_GNATMAKE
5658 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5662 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5663 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5664 $as_echo_n "(cached) " >&6
5666 cat >conftest.adb
<<EOF
5667 pragma Warnings (Off);
5669 pragma Warnings (On);
5670 use type System.CRTL.int64;
5671 procedure conftest is begin null; end conftest;
5673 acx_cv_cc_gcc_supports_ada
=no
5674 # There is a bug in old released versions of GCC which causes the
5675 # driver to exit successfully when the appropriate language module
5676 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5677 # Therefore we must check for the error message as well as an
5678 # unsuccessful exit.
5679 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5680 # given a .adb file, but produce no object file. So we must check
5681 # if an object file was really produced to guard against this.
5682 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5683 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5684 acx_cv_cc_gcc_supports_ada
=yes
5688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5689 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5691 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5699 if test -n "$ac_tool_prefix"; then
5700 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5701 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5703 $as_echo_n "checking for $ac_word... " >&6; }
5704 if ${ac_cv_prog_GDC+:} false
; then :
5705 $as_echo_n "(cached) " >&6
5707 if test -n "$GDC"; then
5708 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5710 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5714 test -z "$as_dir" && as_dir
=.
5715 for ac_exec_ext
in '' $ac_executable_extensions; do
5716 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5717 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5728 if test -n "$GDC"; then
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5730 $as_echo "$GDC" >&6; }
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5733 $as_echo "no" >&6; }
5738 if test -z "$ac_cv_prog_GDC"; then
5740 # Extract the first word of "gdc", so it can be a program name with args.
5741 set dummy gdc
; ac_word
=$2
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5743 $as_echo_n "checking for $ac_word... " >&6; }
5744 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5745 $as_echo_n "(cached) " >&6
5747 if test -n "$ac_ct_GDC"; then
5748 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5754 test -z "$as_dir" && as_dir
=.
5755 for ac_exec_ext
in '' $ac_executable_extensions; do
5756 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5757 ac_cv_prog_ac_ct_GDC
="gdc"
5758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5767 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5768 if test -n "$ac_ct_GDC"; then
5769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5770 $as_echo "$ac_ct_GDC" >&6; }
5772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5773 $as_echo "no" >&6; }
5776 if test "x$ac_ct_GDC" = x
; then
5779 case $cross_compiling:$ac_tool_warned in
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5782 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5783 ac_tool_warned
=yes ;;
5788 GDC
="$ac_cv_prog_GDC"
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5792 $as_echo_n "checking whether the D compiler works... " >&6; }
5793 if ${acx_cv_d_compiler_works+:} false
; then :
5794 $as_echo_n "(cached) " >&6
5796 cat >conftest.d
<<EOF
5797 module conftest; int main() { return 0; }
5799 acx_cv_d_compiler_works
=no
5800 if test "x$GDC" != xno
; then
5801 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5802 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5803 acx_cv_d_compiler_works
=yes
5808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5809 $as_echo "$acx_cv_d_compiler_works" >&6; }
5810 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5816 for ac_prog
in cargo
5818 # Extract the first word of "$ac_prog", so it can be a program name with args.
5819 set dummy
$ac_prog; ac_word
=$2
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5821 $as_echo_n "checking for $ac_word... " >&6; }
5822 if ${ac_cv_prog_CARGO+:} false
; then :
5823 $as_echo_n "(cached) " >&6
5825 if test -n "$CARGO"; then
5826 ac_cv_prog_CARGO
="$CARGO" # Let the user override the test.
5828 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5832 test -z "$as_dir" && as_dir
=.
5833 for ac_exec_ext
in '' $ac_executable_extensions; do
5834 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5835 ac_cv_prog_CARGO
="$ac_prog"
5836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5845 CARGO
=$ac_cv_prog_CARGO
5846 if test -n "$CARGO"; then
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CARGO" >&5
5848 $as_echo "$CARGO" >&6; }
5850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5851 $as_echo "no" >&6; }
5855 test -n "$CARGO" && break
5857 test -n "$CARGO" || CARGO
="no"
5859 if test "x$CARGO" != xno
; then
5864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5865 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5866 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5867 $as_echo_n "(cached) " >&6
5871 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5872 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5873 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5876 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5879 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5880 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5883 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5890 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5891 do_compare
="$gcc_cv_prog_cmp_skip"
5895 # Check whether --enable-bootstrap was given.
5896 if test "${enable_bootstrap+set}" = set; then :
5897 enableval
=$enable_bootstrap;
5899 enable_bootstrap
=default
5903 # Issue errors and warnings for invalid/strange bootstrap combinations.
5904 if test -r $srcdir/gcc
/configure
; then
5910 case "$have_compiler:$host:$target:$enable_bootstrap" in
5913 # Default behavior. Enable bootstrap if we have a compiler
5914 # and we are in a native configuration.
5915 yes:$build:$build:default
)
5916 enable_bootstrap
=yes ;;
5919 enable_bootstrap
=no
;;
5921 # We have a compiler and we are in a native configuration, bootstrap is ok
5922 yes:$build:$build:yes)
5925 # Other configurations, but we have a compiler. Assume the user knows
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5929 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5932 # No compiler: if they passed --enable-bootstrap explicitly, fail
5934 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5936 # Fail if wrong command line
5938 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5942 # When bootstrapping with GCC, build stage 1 in C++14 mode to ensure that a
5943 # C++14 compiler can still start the bootstrap. Otherwise, if building GCC,
5944 # require C++14 (or higher).
5945 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5946 CXX
="$CXX -std=c++14"
5947 elif test "$have_compiler" = yes; then
5948 ax_cxx_compile_alternatives
="14 1y" ax_cxx_compile_cxx14_required
=true
5950 ac_cpp
='$CXXCPP $CPPFLAGS'
5951 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5952 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5953 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
5957 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
5958 if ${ax_cv_cxx_compile_cxx14+:} false
; then :
5959 $as_echo_n "(cached) " >&6
5961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5965 // If the compiler admits that it is not ready for C++11, why torture it?
5966 // Hopefully, this will speed up the test.
5970 #error "This is not a C++ compiler"
5972 #elif __cplusplus < 201103L
5974 #error "This is not a C++11 compiler"
5981 namespace test_static_assert
5984 template <typename T>
5987 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5992 namespace test_final_override
6001 struct Derived : public Base
6003 virtual ~Derived() override {}
6004 virtual void f() override {}
6009 namespace test_double_right_angle_brackets
6012 template < typename T >
6015 typedef check<void> single_type;
6016 typedef check<check<void>> double_type;
6017 typedef check<check<check<void>>> triple_type;
6018 typedef check<check<check<check<void>>>> quadruple_type;
6022 namespace test_decltype
6035 namespace test_type_deduction
6038 template < typename T1, typename T2 >
6041 static const bool value = false;
6044 template < typename T >
6045 struct is_same<T, T>
6047 static const bool value = true;
6050 template < typename T1, typename T2 >
6052 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6058 test(const int c, volatile int v)
6060 static_assert(is_same<int, decltype(0)>::value == true, "");
6061 static_assert(is_same<int, decltype(c)>::value == false, "");
6062 static_assert(is_same<int, decltype(v)>::value == false, "");
6065 auto sumi = ac + av + 'x';
6066 auto sumf = ac + av + 1.0;
6067 static_assert(is_same<int, decltype(ac)>::value == true, "");
6068 static_assert(is_same<int, decltype(av)>::value == true, "");
6069 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6070 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6071 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6072 return (sumf > 0.0) ? sumi : add(c, v);
6077 namespace test_noexcept
6080 int f() { return 0; }
6081 int g() noexcept { return 0; }
6083 static_assert(noexcept(f()) == false, "");
6084 static_assert(noexcept(g()) == true, "");
6088 namespace test_constexpr
6091 template < typename CharT >
6092 unsigned long constexpr
6093 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6095 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6098 template < typename CharT >
6099 unsigned long constexpr
6100 strlen_c(const CharT *const s) noexcept
6102 return strlen_c_r(s, 0UL);
6105 static_assert(strlen_c("") == 0UL, "");
6106 static_assert(strlen_c("1") == 1UL, "");
6107 static_assert(strlen_c("example") == 7UL, "");
6108 static_assert(strlen_c("another\0example") == 7UL, "");
6112 namespace test_rvalue_references
6118 static constexpr int value = N;
6121 answer<1> f(int&) { return answer<1>(); }
6122 answer<2> f(const int&) { return answer<2>(); }
6123 answer<3> f(int&&) { return answer<3>(); }
6130 static_assert(decltype(f(i))::value == 1, "");
6131 static_assert(decltype(f(c))::value == 2, "");
6132 static_assert(decltype(f(0))::value == 3, "");
6137 namespace test_uniform_initialization
6142 static const int zero {};
6143 static const int one {1};
6146 static_assert(test::zero == 0, "");
6147 static_assert(test::one == 1, "");
6151 namespace test_lambdas
6157 auto lambda1 = [](){};
6158 auto lambda2 = lambda1;
6166 auto a = [](int i, int j){ return i + j; }(1, 2);
6167 auto b = []() -> int { return '0'; }();
6168 auto c = [=](){ return a + b; }();
6169 auto d = [&](){ return c; }();
6170 auto e = [a, &b](int x) mutable {
6171 const auto identity = [](int y){ return y; };
6172 for (auto i = 0; i < a; ++i)
6174 return x + identity(a + b);
6176 return a + b + c + d + e;
6182 const auto nullary = [](){ return 0; };
6183 const auto unary = [](int x){ return x; };
6184 using nullary_t = decltype(nullary);
6185 using unary_t = decltype(unary);
6186 const auto higher1st = [](nullary_t f){ return f(); };
6187 const auto higher2nd = [unary](nullary_t f1){
6188 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6190 return higher1st(nullary) + higher2nd(nullary)(unary);
6195 namespace test_variadic_templates
6201 template <int N0, int... N1toN>
6202 struct sum<N0, N1toN...>
6204 static constexpr auto value = N0 + sum<N1toN...>::value;
6210 static constexpr auto value = 0;
6213 static_assert(sum<>::value == 0, "");
6214 static_assert(sum<1>::value == 1, "");
6215 static_assert(sum<23>::value == 23, "");
6216 static_assert(sum<1, 2>::value == 3, "");
6217 static_assert(sum<5, 5, 11>::value == 21, "");
6218 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6222 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6223 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6225 namespace test_template_alias_sfinae
6230 template<typename T>
6231 using member = typename T::member_type;
6233 template<typename T>
6236 template<typename T>
6237 void func(member<T>*) {}
6241 void test() { func<foo>(0); }
6245 } // namespace cxx11
6247 #endif // __cplusplus >= 201103L
6252 // If the compiler admits that it is not ready for C++14, why torture it?
6253 // Hopefully, this will speed up the test.
6257 #error "This is not a C++ compiler"
6259 #elif __cplusplus < 201402L
6261 #error "This is not a C++14 compiler"
6268 namespace test_polymorphic_lambdas
6274 const auto lambda = [](auto&&... args){
6275 const auto istiny = [](auto x){
6276 return (sizeof(x) == 1UL) ? 1 : 0;
6278 const int aretiny[] = { istiny(args)... };
6281 return lambda(1, 1L, 1.0f, '1');
6286 namespace test_binary_literals
6289 constexpr auto ivii = 0b0000000000101010;
6290 static_assert(ivii == 42, "wrong value");
6294 namespace test_generalized_constexpr
6297 template < typename CharT >
6298 constexpr unsigned long
6299 strlen_c(const CharT *const s) noexcept
6302 for (auto p = s; *p; ++p)
6307 static_assert(strlen_c("") == 0UL, "");
6308 static_assert(strlen_c("x") == 1UL, "");
6309 static_assert(strlen_c("test") == 4UL, "");
6310 static_assert(strlen_c("another\0test") == 7UL, "");
6314 namespace test_lambda_init_capture
6321 const auto lambda1 = [a = x](int b){ return a + b; };
6322 const auto lambda2 = [a = lambda1(x)](){ return a; };
6328 namespace test_digit_separators
6331 constexpr auto ten_million = 100'000'000;
6332 static_assert(ten_million == 100000000, "");
6336 namespace test_return_type_deduction
6339 auto f(int& x) { return x; }
6340 decltype(auto) g(int& x) { return x; }
6342 template < typename T1, typename T2 >
6345 static constexpr auto value = false;
6348 template < typename T >
6349 struct is_same<T, T>
6351 static constexpr auto value = true;
6358 static_assert(is_same<int, decltype(f(x))>::value, "");
6359 static_assert(is_same<int&, decltype(g(x))>::value, "");
6365 } // namespace cxx14
6367 #endif // __cplusplus >= 201402L
6372 if ac_fn_cxx_try_compile
"$LINENO"; then :
6373 ax_cv_cxx_compile_cxx14
=yes
6375 ax_cv_cxx_compile_cxx14
=no
6377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14" >&5
6380 $as_echo "$ax_cv_cxx_compile_cxx14" >&6; }
6381 if test x
$ax_cv_cxx_compile_cxx14 = xyes
; then
6385 if test x
$ac_success = xno
; then
6386 for alternative
in ${ax_cxx_compile_alternatives}; do
6387 switch
="-std=gnu++${alternative}"
6388 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx14_$switch" | $as_tr_sh`
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
6390 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
6391 if eval \
${$cachevar+:} false
; then :
6392 $as_echo_n "(cached) " >&6
6396 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6397 /* end confdefs.h. */
6400 // If the compiler admits that it is not ready for C++11, why torture it?
6401 // Hopefully, this will speed up the test.
6405 #error "This is not a C++ compiler"
6407 #elif __cplusplus < 201103L
6409 #error "This is not a C++11 compiler"
6416 namespace test_static_assert
6419 template <typename T>
6422 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6427 namespace test_final_override
6436 struct Derived : public Base
6438 virtual ~Derived() override {}
6439 virtual void f() override {}
6444 namespace test_double_right_angle_brackets
6447 template < typename T >
6450 typedef check<void> single_type;
6451 typedef check<check<void>> double_type;
6452 typedef check<check<check<void>>> triple_type;
6453 typedef check<check<check<check<void>>>> quadruple_type;
6457 namespace test_decltype
6470 namespace test_type_deduction
6473 template < typename T1, typename T2 >
6476 static const bool value = false;
6479 template < typename T >
6480 struct is_same<T, T>
6482 static const bool value = true;
6485 template < typename T1, typename T2 >
6487 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6493 test(const int c, volatile int v)
6495 static_assert(is_same<int, decltype(0)>::value == true, "");
6496 static_assert(is_same<int, decltype(c)>::value == false, "");
6497 static_assert(is_same<int, decltype(v)>::value == false, "");
6500 auto sumi = ac + av + 'x';
6501 auto sumf = ac + av + 1.0;
6502 static_assert(is_same<int, decltype(ac)>::value == true, "");
6503 static_assert(is_same<int, decltype(av)>::value == true, "");
6504 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6505 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6506 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6507 return (sumf > 0.0) ? sumi : add(c, v);
6512 namespace test_noexcept
6515 int f() { return 0; }
6516 int g() noexcept { return 0; }
6518 static_assert(noexcept(f()) == false, "");
6519 static_assert(noexcept(g()) == true, "");
6523 namespace test_constexpr
6526 template < typename CharT >
6527 unsigned long constexpr
6528 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6530 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6533 template < typename CharT >
6534 unsigned long constexpr
6535 strlen_c(const CharT *const s) noexcept
6537 return strlen_c_r(s, 0UL);
6540 static_assert(strlen_c("") == 0UL, "");
6541 static_assert(strlen_c("1") == 1UL, "");
6542 static_assert(strlen_c("example") == 7UL, "");
6543 static_assert(strlen_c("another\0example") == 7UL, "");
6547 namespace test_rvalue_references
6553 static constexpr int value = N;
6556 answer<1> f(int&) { return answer<1>(); }
6557 answer<2> f(const int&) { return answer<2>(); }
6558 answer<3> f(int&&) { return answer<3>(); }
6565 static_assert(decltype(f(i))::value == 1, "");
6566 static_assert(decltype(f(c))::value == 2, "");
6567 static_assert(decltype(f(0))::value == 3, "");
6572 namespace test_uniform_initialization
6577 static const int zero {};
6578 static const int one {1};
6581 static_assert(test::zero == 0, "");
6582 static_assert(test::one == 1, "");
6586 namespace test_lambdas
6592 auto lambda1 = [](){};
6593 auto lambda2 = lambda1;
6601 auto a = [](int i, int j){ return i + j; }(1, 2);
6602 auto b = []() -> int { return '0'; }();
6603 auto c = [=](){ return a + b; }();
6604 auto d = [&](){ return c; }();
6605 auto e = [a, &b](int x) mutable {
6606 const auto identity = [](int y){ return y; };
6607 for (auto i = 0; i < a; ++i)
6609 return x + identity(a + b);
6611 return a + b + c + d + e;
6617 const auto nullary = [](){ return 0; };
6618 const auto unary = [](int x){ return x; };
6619 using nullary_t = decltype(nullary);
6620 using unary_t = decltype(unary);
6621 const auto higher1st = [](nullary_t f){ return f(); };
6622 const auto higher2nd = [unary](nullary_t f1){
6623 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6625 return higher1st(nullary) + higher2nd(nullary)(unary);
6630 namespace test_variadic_templates
6636 template <int N0, int... N1toN>
6637 struct sum<N0, N1toN...>
6639 static constexpr auto value = N0 + sum<N1toN...>::value;
6645 static constexpr auto value = 0;
6648 static_assert(sum<>::value == 0, "");
6649 static_assert(sum<1>::value == 1, "");
6650 static_assert(sum<23>::value == 23, "");
6651 static_assert(sum<1, 2>::value == 3, "");
6652 static_assert(sum<5, 5, 11>::value == 21, "");
6653 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6657 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6658 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6660 namespace test_template_alias_sfinae
6665 template<typename T>
6666 using member = typename T::member_type;
6668 template<typename T>
6671 template<typename T>
6672 void func(member<T>*) {}
6676 void test() { func<foo>(0); }
6680 } // namespace cxx11
6682 #endif // __cplusplus >= 201103L
6687 // If the compiler admits that it is not ready for C++14, why torture it?
6688 // Hopefully, this will speed up the test.
6692 #error "This is not a C++ compiler"
6694 #elif __cplusplus < 201402L
6696 #error "This is not a C++14 compiler"
6703 namespace test_polymorphic_lambdas
6709 const auto lambda = [](auto&&... args){
6710 const auto istiny = [](auto x){
6711 return (sizeof(x) == 1UL) ? 1 : 0;
6713 const int aretiny[] = { istiny(args)... };
6716 return lambda(1, 1L, 1.0f, '1');
6721 namespace test_binary_literals
6724 constexpr auto ivii = 0b0000000000101010;
6725 static_assert(ivii == 42, "wrong value");
6729 namespace test_generalized_constexpr
6732 template < typename CharT >
6733 constexpr unsigned long
6734 strlen_c(const CharT *const s) noexcept
6737 for (auto p = s; *p; ++p)
6742 static_assert(strlen_c("") == 0UL, "");
6743 static_assert(strlen_c("x") == 1UL, "");
6744 static_assert(strlen_c("test") == 4UL, "");
6745 static_assert(strlen_c("another\0test") == 7UL, "");
6749 namespace test_lambda_init_capture
6756 const auto lambda1 = [a = x](int b){ return a + b; };
6757 const auto lambda2 = [a = lambda1(x)](){ return a; };
6763 namespace test_digit_separators
6766 constexpr auto ten_million = 100'000'000;
6767 static_assert(ten_million == 100000000, "");
6771 namespace test_return_type_deduction
6774 auto f(int& x) { return x; }
6775 decltype(auto) g(int& x) { return x; }
6777 template < typename T1, typename T2 >
6780 static constexpr auto value = false;
6783 template < typename T >
6784 struct is_same<T, T>
6786 static constexpr auto value = true;
6793 static_assert(is_same<int, decltype(f(x))>::value, "");
6794 static_assert(is_same<int&, decltype(g(x))>::value, "");
6800 } // namespace cxx14
6802 #endif // __cplusplus >= 201402L
6807 if ac_fn_cxx_try_compile
"$LINENO"; then :
6812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6815 eval ac_res
=\$
$cachevar
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6817 $as_echo "$ac_res" >&6; }
6818 if eval test x\$
$cachevar = xyes
; then
6820 if test -n "$CXXCPP" ; then
6821 CXXCPP
="$CXXCPP $switch"
6829 if test x
$ac_success = xno
; then
6830 for alternative
in ${ax_cxx_compile_alternatives}; do
6831 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6832 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_
$switch" | $as_tr_sh`
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++14 features with
$switch" >&5
6834 $as_echo_n "checking whether
$CXX supports C
++14 features with
$switch...
" >&6; }
6835 if eval \${$cachevar+:} false; then :
6836 $as_echo_n "(cached
) " >&6
6840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6841 /* end confdefs.h. */
6844 // If the compiler admits that it is not ready for C++11, why torture it?
6845 // Hopefully, this will speed up the test.
6849 #error "This is not a C
++ compiler
"
6851 #elif __cplusplus < 201103L
6853 #error "This is not a C
++11 compiler
"
6860 namespace test_static_assert
6863 template <typename T>
6866 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6871 namespace test_final_override
6880 struct Derived : public Base
6882 virtual ~Derived() override {}
6883 virtual void f() override {}
6888 namespace test_double_right_angle_brackets
6891 template < typename T >
6894 typedef check<void> single_type;
6895 typedef check<check<void>> double_type;
6896 typedef check<check<check<void>>> triple_type;
6897 typedef check<check<check<check<void>>>> quadruple_type;
6901 namespace test_decltype
6914 namespace test_type_deduction
6917 template < typename T1, typename T2 >
6920 static const bool value = false;
6923 template < typename T >
6924 struct is_same<T, T>
6926 static const bool value = true;
6929 template < typename T1, typename T2 >
6931 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6937 test(const int c, volatile int v)
6939 static_assert(is_same<int, decltype(0)>::value == true, "");
6940 static_assert(is_same<int, decltype(c)>::value == false, "");
6941 static_assert(is_same<int, decltype(v)>::value == false, "");
6944 auto sumi = ac + av + 'x';
6945 auto sumf = ac + av + 1.0;
6946 static_assert(is_same<int, decltype(ac)>::value == true, "");
6947 static_assert(is_same<int, decltype(av)>::value == true, "");
6948 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6949 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6950 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6951 return (sumf > 0.0) ? sumi : add(c, v);
6956 namespace test_noexcept
6959 int f() { return 0; }
6960 int g() noexcept { return 0; }
6962 static_assert(noexcept(f()) == false, "");
6963 static_assert(noexcept(g()) == true, "");
6967 namespace test_constexpr
6970 template < typename CharT >
6971 unsigned long constexpr
6972 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6974 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6977 template < typename CharT >
6978 unsigned long constexpr
6979 strlen_c(const CharT *const s) noexcept
6981 return strlen_c_r(s, 0UL);
6984 static_assert(strlen_c("") == 0UL, "");
6985 static_assert(strlen_c("1") == 1UL, "");
6986 static_assert(strlen_c("example
") == 7UL, "");
6987 static_assert(strlen_c("another\
0example
") == 7UL, "");
6991 namespace test_rvalue_references
6997 static constexpr int value = N;
7000 answer<1> f(int&) { return answer<1>(); }
7001 answer<2> f(const int&) { return answer<2>(); }
7002 answer<3> f(int&&) { return answer<3>(); }
7009 static_assert(decltype(f(i))::value == 1, "");
7010 static_assert(decltype(f(c))::value == 2, "");
7011 static_assert(decltype(f(0))::value == 3, "");
7016 namespace test_uniform_initialization
7021 static const int zero {};
7022 static const int one {1};
7025 static_assert(test::zero == 0, "");
7026 static_assert(test::one == 1, "");
7030 namespace test_lambdas
7036 auto lambda1 = [](){};
7037 auto lambda2 = lambda1;
7045 auto a = [](int i, int j){ return i + j; }(1, 2);
7046 auto b = []() -> int { return '0'; }();
7047 auto c = [=](){ return a + b; }();
7048 auto d = [&](){ return c; }();
7049 auto e = [a, &b](int x) mutable {
7050 const auto identity = [](int y){ return y; };
7051 for (auto i = 0; i < a; ++i)
7053 return x + identity(a + b);
7055 return a + b + c + d + e;
7061 const auto nullary = [](){ return 0; };
7062 const auto unary = [](int x){ return x; };
7063 using nullary_t = decltype(nullary);
7064 using unary_t = decltype(unary);
7065 const auto higher1st = [](nullary_t f){ return f(); };
7066 const auto higher2nd = [unary](nullary_t f1){
7067 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7069 return higher1st(nullary) + higher2nd(nullary)(unary);
7074 namespace test_variadic_templates
7080 template <int N0, int... N1toN>
7081 struct sum<N0, N1toN...>
7083 static constexpr auto value = N0 + sum<N1toN...>::value;
7089 static constexpr auto value = 0;
7092 static_assert(sum<>::value == 0, "");
7093 static_assert(sum<1>::value == 1, "");
7094 static_assert(sum<23>::value == 23, "");
7095 static_assert(sum<1, 2>::value == 3, "");
7096 static_assert(sum<5, 5, 11>::value == 21, "");
7097 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7101 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7102 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7104 namespace test_template_alias_sfinae
7109 template<typename T>
7110 using member = typename T::member_type;
7112 template<typename T>
7115 template<typename T>
7116 void func(member<T>*) {}
7120 void test() { func<foo>(0); }
7124 } // namespace cxx11
7126 #endif // __cplusplus >= 201103L
7131 // If the compiler admits that it is not ready for C++14, why torture it?
7132 // Hopefully, this will speed up the test.
7136 #error "This is not a C
++ compiler
"
7138 #elif __cplusplus < 201402L
7140 #error "This is not a C
++14 compiler
"
7147 namespace test_polymorphic_lambdas
7153 const auto lambda = [](auto&&... args){
7154 const auto istiny = [](auto x){
7155 return (sizeof(x) == 1UL) ? 1 : 0;
7157 const int aretiny[] = { istiny(args)... };
7160 return lambda(1, 1L, 1.0f, '1');
7165 namespace test_binary_literals
7168 constexpr auto ivii = 0b0000000000101010;
7169 static_assert(ivii == 42, "wrong value
");
7173 namespace test_generalized_constexpr
7176 template < typename CharT >
7177 constexpr unsigned long
7178 strlen_c(const CharT *const s) noexcept
7181 for (auto p = s; *p; ++p)
7186 static_assert(strlen_c("") == 0UL, "");
7187 static_assert(strlen_c("x
") == 1UL, "");
7188 static_assert(strlen_c("test") == 4UL, "");
7189 static_assert(strlen_c("another\
0test") == 7UL, "");
7193 namespace test_lambda_init_capture
7200 const auto lambda1 = [a = x](int b){ return a + b; };
7201 const auto lambda2 = [a = lambda1(x)](){ return a; };
7207 namespace test_digit_separators
7210 constexpr auto ten_million = 100'000'000;
7211 static_assert(ten_million == 100000000, "");
7215 namespace test_return_type_deduction
7218 auto f(int& x) { return x; }
7219 decltype(auto) g(int& x) { return x; }
7221 template < typename T1, typename T2 >
7224 static constexpr auto value = false;
7227 template < typename T >
7228 struct is_same<T, T>
7230 static constexpr auto value = true;
7237 static_assert(is_same<int, decltype(f(x))>::value, "");
7238 static_assert(is_same<int&, decltype(g(x))>::value, "");
7244 } // namespace cxx14
7246 #endif // __cplusplus >= 201402L
7251 if ac_fn_cxx_try_compile "$LINENO"; then :
7256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7259 eval ac_res=\$$cachevar
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7261 $as_echo "$ac_res" >&6; }
7262 if eval test x\$$cachevar = xyes; then
7264 if test -n "$CXXCPP" ; then
7265 CXXCPP="$CXXCPP $switch"
7271 if test x$ac_success = xyes; then
7278 ac_cpp='$CPP $CPPFLAGS'
7279 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7280 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7281 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7283 if test x$ax_cxx_compile_cxx14_required = xtrue; then
7284 if test x$ac_success = xno; then
7285 as_fn_error $? "*** A compiler with support
for C
++14 language features is required.
" "$LINENO" 5
7288 if test x$ac_success = xno; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++14 support was found
" >&5
7291 $as_echo "$as_me: No compiler with C
++14 support was found
" >&6;}
7295 $as_echo "#define HAVE_CXX14 1" >>confdefs.h
7301 if test "${build}" != "${host}"; then
7302 ax_cxx_compile_alternatives
="14 1y" ax_cxx_compile_cxx14_required
=true
7304 ac_cpp
='$CXXCPP $CPPFLAGS'
7305 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7306 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7307 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
7309 ax_cv_cxx_compile_cxx14_orig_cxx
="$CXX"
7310 ax_cv_cxx_compile_cxx14_orig_cxxflags
="$CXXFLAGS"
7311 ax_cv_cxx_compile_cxx14_orig_cppflags
="$CPPFLAGS"
7312 CXX
="$CXX_FOR_BUILD"
7313 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
7314 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features by default" >&5
7316 $as_echo_n "checking whether $CXX supports C++14 features by default... " >&6; }
7317 if ${ax_cv_cxx_compile_cxx14_FOR_BUILD+:} false
; then :
7318 $as_echo_n "(cached) " >&6
7320 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7321 /* end confdefs.h. */
7324 // If the compiler admits that it is not ready for C++11, why torture it?
7325 // Hopefully, this will speed up the test.
7329 #error "This is not a C++ compiler"
7331 #elif __cplusplus < 201103L
7333 #error "This is not a C++11 compiler"
7340 namespace test_static_assert
7343 template <typename T>
7346 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7351 namespace test_final_override
7360 struct Derived : public Base
7362 virtual ~Derived() override {}
7363 virtual void f() override {}
7368 namespace test_double_right_angle_brackets
7371 template < typename T >
7374 typedef check<void> single_type;
7375 typedef check<check<void>> double_type;
7376 typedef check<check<check<void>>> triple_type;
7377 typedef check<check<check<check<void>>>> quadruple_type;
7381 namespace test_decltype
7394 namespace test_type_deduction
7397 template < typename T1, typename T2 >
7400 static const bool value = false;
7403 template < typename T >
7404 struct is_same<T, T>
7406 static const bool value = true;
7409 template < typename T1, typename T2 >
7411 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7417 test(const int c, volatile int v)
7419 static_assert(is_same<int, decltype(0)>::value == true, "");
7420 static_assert(is_same<int, decltype(c)>::value == false, "");
7421 static_assert(is_same<int, decltype(v)>::value == false, "");
7424 auto sumi = ac + av + 'x';
7425 auto sumf = ac + av + 1.0;
7426 static_assert(is_same<int, decltype(ac)>::value == true, "");
7427 static_assert(is_same<int, decltype(av)>::value == true, "");
7428 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7429 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7430 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7431 return (sumf > 0.0) ? sumi : add(c, v);
7436 namespace test_noexcept
7439 int f() { return 0; }
7440 int g() noexcept { return 0; }
7442 static_assert(noexcept(f()) == false, "");
7443 static_assert(noexcept(g()) == true, "");
7447 namespace test_constexpr
7450 template < typename CharT >
7451 unsigned long constexpr
7452 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7454 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7457 template < typename CharT >
7458 unsigned long constexpr
7459 strlen_c(const CharT *const s) noexcept
7461 return strlen_c_r(s, 0UL);
7464 static_assert(strlen_c("") == 0UL, "");
7465 static_assert(strlen_c("1") == 1UL, "");
7466 static_assert(strlen_c("example") == 7UL, "");
7467 static_assert(strlen_c("another\0example") == 7UL, "");
7471 namespace test_rvalue_references
7477 static constexpr int value = N;
7480 answer<1> f(int&) { return answer<1>(); }
7481 answer<2> f(const int&) { return answer<2>(); }
7482 answer<3> f(int&&) { return answer<3>(); }
7489 static_assert(decltype(f(i))::value == 1, "");
7490 static_assert(decltype(f(c))::value == 2, "");
7491 static_assert(decltype(f(0))::value == 3, "");
7496 namespace test_uniform_initialization
7501 static const int zero {};
7502 static const int one {1};
7505 static_assert(test::zero == 0, "");
7506 static_assert(test::one == 1, "");
7510 namespace test_lambdas
7516 auto lambda1 = [](){};
7517 auto lambda2 = lambda1;
7525 auto a = [](int i, int j){ return i + j; }(1, 2);
7526 auto b = []() -> int { return '0'; }();
7527 auto c = [=](){ return a + b; }();
7528 auto d = [&](){ return c; }();
7529 auto e = [a, &b](int x) mutable {
7530 const auto identity = [](int y){ return y; };
7531 for (auto i = 0; i < a; ++i)
7533 return x + identity(a + b);
7535 return a + b + c + d + e;
7541 const auto nullary = [](){ return 0; };
7542 const auto unary = [](int x){ return x; };
7543 using nullary_t = decltype(nullary);
7544 using unary_t = decltype(unary);
7545 const auto higher1st = [](nullary_t f){ return f(); };
7546 const auto higher2nd = [unary](nullary_t f1){
7547 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7549 return higher1st(nullary) + higher2nd(nullary)(unary);
7554 namespace test_variadic_templates
7560 template <int N0, int... N1toN>
7561 struct sum<N0, N1toN...>
7563 static constexpr auto value = N0 + sum<N1toN...>::value;
7569 static constexpr auto value = 0;
7572 static_assert(sum<>::value == 0, "");
7573 static_assert(sum<1>::value == 1, "");
7574 static_assert(sum<23>::value == 23, "");
7575 static_assert(sum<1, 2>::value == 3, "");
7576 static_assert(sum<5, 5, 11>::value == 21, "");
7577 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7581 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7582 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7584 namespace test_template_alias_sfinae
7589 template<typename T>
7590 using member = typename T::member_type;
7592 template<typename T>
7595 template<typename T>
7596 void func(member<T>*) {}
7600 void test() { func<foo>(0); }
7604 } // namespace cxx11
7606 #endif // __cplusplus >= 201103L
7611 // If the compiler admits that it is not ready for C++14, why torture it?
7612 // Hopefully, this will speed up the test.
7616 #error "This is not a C++ compiler"
7618 #elif __cplusplus < 201402L
7620 #error "This is not a C++14 compiler"
7627 namespace test_polymorphic_lambdas
7633 const auto lambda = [](auto&&... args){
7634 const auto istiny = [](auto x){
7635 return (sizeof(x) == 1UL) ? 1 : 0;
7637 const int aretiny[] = { istiny(args)... };
7640 return lambda(1, 1L, 1.0f, '1');
7645 namespace test_binary_literals
7648 constexpr auto ivii = 0b0000000000101010;
7649 static_assert(ivii == 42, "wrong value");
7653 namespace test_generalized_constexpr
7656 template < typename CharT >
7657 constexpr unsigned long
7658 strlen_c(const CharT *const s) noexcept
7661 for (auto p = s; *p; ++p)
7666 static_assert(strlen_c("") == 0UL, "");
7667 static_assert(strlen_c("x") == 1UL, "");
7668 static_assert(strlen_c("test") == 4UL, "");
7669 static_assert(strlen_c("another\0test") == 7UL, "");
7673 namespace test_lambda_init_capture
7680 const auto lambda1 = [a = x](int b){ return a + b; };
7681 const auto lambda2 = [a = lambda1(x)](){ return a; };
7687 namespace test_digit_separators
7690 constexpr auto ten_million = 100'000'000;
7691 static_assert(ten_million == 100000000, "");
7695 namespace test_return_type_deduction
7698 auto f(int& x) { return x; }
7699 decltype(auto) g(int& x) { return x; }
7701 template < typename T1, typename T2 >
7704 static constexpr auto value = false;
7707 template < typename T >
7708 struct is_same<T, T>
7710 static constexpr auto value = true;
7717 static_assert(is_same<int, decltype(f(x))>::value, "");
7718 static_assert(is_same<int&, decltype(g(x))>::value, "");
7724 } // namespace cxx14
7726 #endif // __cplusplus >= 201402L
7731 if ac_fn_cxx_try_compile
"$LINENO"; then :
7732 ax_cv_cxx_compile_cxx14_FOR_BUILD
=yes
7734 ax_cv_cxx_compile_cxx14_FOR_BUILD
=no
7736 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx14_FOR_BUILD" >&5
7739 $as_echo "$ax_cv_cxx_compile_cxx14_FOR_BUILD" >&6; }
7740 if test x
$ax_cv_cxx_compile_cxx14_FOR_BUILD = xyes
; then
7744 if test x
$ac_success = xno
; then
7745 for alternative
in ${ax_cxx_compile_alternatives}; do
7746 switch
="-std=gnu++${alternative}"
7747 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_$switch" | $as_tr_sh`
7748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++14 features with $switch" >&5
7749 $as_echo_n "checking whether $CXX supports C++14 features with $switch... " >&6; }
7750 if eval \
${$cachevar+:} false
; then :
7751 $as_echo_n "(cached) " >&6
7755 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7756 /* end confdefs.h. */
7759 // If the compiler admits that it is not ready for C++11, why torture it?
7760 // Hopefully, this will speed up the test.
7764 #error "This is not a C++ compiler"
7766 #elif __cplusplus < 201103L
7768 #error "This is not a C++11 compiler"
7775 namespace test_static_assert
7778 template <typename T>
7781 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7786 namespace test_final_override
7795 struct Derived : public Base
7797 virtual ~Derived() override {}
7798 virtual void f() override {}
7803 namespace test_double_right_angle_brackets
7806 template < typename T >
7809 typedef check<void> single_type;
7810 typedef check<check<void>> double_type;
7811 typedef check<check<check<void>>> triple_type;
7812 typedef check<check<check<check<void>>>> quadruple_type;
7816 namespace test_decltype
7829 namespace test_type_deduction
7832 template < typename T1, typename T2 >
7835 static const bool value = false;
7838 template < typename T >
7839 struct is_same<T, T>
7841 static const bool value = true;
7844 template < typename T1, typename T2 >
7846 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7852 test(const int c, volatile int v)
7854 static_assert(is_same<int, decltype(0)>::value == true, "");
7855 static_assert(is_same<int, decltype(c)>::value == false, "");
7856 static_assert(is_same<int, decltype(v)>::value == false, "");
7859 auto sumi = ac + av + 'x';
7860 auto sumf = ac + av + 1.0;
7861 static_assert(is_same<int, decltype(ac)>::value == true, "");
7862 static_assert(is_same<int, decltype(av)>::value == true, "");
7863 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7864 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7865 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7866 return (sumf > 0.0) ? sumi : add(c, v);
7871 namespace test_noexcept
7874 int f() { return 0; }
7875 int g() noexcept { return 0; }
7877 static_assert(noexcept(f()) == false, "");
7878 static_assert(noexcept(g()) == true, "");
7882 namespace test_constexpr
7885 template < typename CharT >
7886 unsigned long constexpr
7887 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7889 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7892 template < typename CharT >
7893 unsigned long constexpr
7894 strlen_c(const CharT *const s) noexcept
7896 return strlen_c_r(s, 0UL);
7899 static_assert(strlen_c("") == 0UL, "");
7900 static_assert(strlen_c("1") == 1UL, "");
7901 static_assert(strlen_c("example") == 7UL, "");
7902 static_assert(strlen_c("another\0example") == 7UL, "");
7906 namespace test_rvalue_references
7912 static constexpr int value = N;
7915 answer<1> f(int&) { return answer<1>(); }
7916 answer<2> f(const int&) { return answer<2>(); }
7917 answer<3> f(int&&) { return answer<3>(); }
7924 static_assert(decltype(f(i))::value == 1, "");
7925 static_assert(decltype(f(c))::value == 2, "");
7926 static_assert(decltype(f(0))::value == 3, "");
7931 namespace test_uniform_initialization
7936 static const int zero {};
7937 static const int one {1};
7940 static_assert(test::zero == 0, "");
7941 static_assert(test::one == 1, "");
7945 namespace test_lambdas
7951 auto lambda1 = [](){};
7952 auto lambda2 = lambda1;
7960 auto a = [](int i, int j){ return i + j; }(1, 2);
7961 auto b = []() -> int { return '0'; }();
7962 auto c = [=](){ return a + b; }();
7963 auto d = [&](){ return c; }();
7964 auto e = [a, &b](int x) mutable {
7965 const auto identity = [](int y){ return y; };
7966 for (auto i = 0; i < a; ++i)
7968 return x + identity(a + b);
7970 return a + b + c + d + e;
7976 const auto nullary = [](){ return 0; };
7977 const auto unary = [](int x){ return x; };
7978 using nullary_t = decltype(nullary);
7979 using unary_t = decltype(unary);
7980 const auto higher1st = [](nullary_t f){ return f(); };
7981 const auto higher2nd = [unary](nullary_t f1){
7982 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7984 return higher1st(nullary) + higher2nd(nullary)(unary);
7989 namespace test_variadic_templates
7995 template <int N0, int... N1toN>
7996 struct sum<N0, N1toN...>
7998 static constexpr auto value = N0 + sum<N1toN...>::value;
8004 static constexpr auto value = 0;
8007 static_assert(sum<>::value == 0, "");
8008 static_assert(sum<1>::value == 1, "");
8009 static_assert(sum<23>::value == 23, "");
8010 static_assert(sum<1, 2>::value == 3, "");
8011 static_assert(sum<5, 5, 11>::value == 21, "");
8012 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8016 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8017 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8019 namespace test_template_alias_sfinae
8024 template<typename T>
8025 using member = typename T::member_type;
8027 template<typename T>
8030 template<typename T>
8031 void func(member<T>*) {}
8035 void test() { func<foo>(0); }
8039 } // namespace cxx11
8041 #endif // __cplusplus >= 201103L
8046 // If the compiler admits that it is not ready for C++14, why torture it?
8047 // Hopefully, this will speed up the test.
8051 #error "This is not a C++ compiler"
8053 #elif __cplusplus < 201402L
8055 #error "This is not a C++14 compiler"
8062 namespace test_polymorphic_lambdas
8068 const auto lambda = [](auto&&... args){
8069 const auto istiny = [](auto x){
8070 return (sizeof(x) == 1UL) ? 1 : 0;
8072 const int aretiny[] = { istiny(args)... };
8075 return lambda(1, 1L, 1.0f, '1');
8080 namespace test_binary_literals
8083 constexpr auto ivii = 0b0000000000101010;
8084 static_assert(ivii == 42, "wrong value");
8088 namespace test_generalized_constexpr
8091 template < typename CharT >
8092 constexpr unsigned long
8093 strlen_c(const CharT *const s) noexcept
8096 for (auto p = s; *p; ++p)
8101 static_assert(strlen_c("") == 0UL, "");
8102 static_assert(strlen_c("x") == 1UL, "");
8103 static_assert(strlen_c("test") == 4UL, "");
8104 static_assert(strlen_c("another\0test") == 7UL, "");
8108 namespace test_lambda_init_capture
8115 const auto lambda1 = [a = x](int b){ return a + b; };
8116 const auto lambda2 = [a = lambda1(x)](){ return a; };
8122 namespace test_digit_separators
8125 constexpr auto ten_million = 100'000'000;
8126 static_assert(ten_million == 100000000, "");
8130 namespace test_return_type_deduction
8133 auto f(int& x) { return x; }
8134 decltype(auto) g(int& x) { return x; }
8136 template < typename T1, typename T2 >
8139 static constexpr auto value = false;
8142 template < typename T >
8143 struct is_same<T, T>
8145 static constexpr auto value = true;
8152 static_assert(is_same<int, decltype(f(x))>::value, "");
8153 static_assert(is_same<int&, decltype(g(x))>::value, "");
8159 } // namespace cxx14
8161 #endif // __cplusplus >= 201402L
8166 if ac_fn_cxx_try_compile
"$LINENO"; then :
8171 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8174 eval ac_res
=\$
$cachevar
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8176 $as_echo "$ac_res" >&6; }
8177 if eval test x\$
$cachevar = xyes
; then
8179 if test -n "$CXXCPP" ; then
8180 CXXCPP
="$CXXCPP $switch"
8188 if test x
$ac_success = xno
; then
8189 for alternative
in ${ax_cxx_compile_alternatives}; do
8190 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
8191 cachevar=`$as_echo "ax_cv_cxx_compile_cxx14_FOR_BUILD_
$switch" | $as_tr_sh`
8192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++14 features with
$switch" >&5
8193 $as_echo_n "checking whether
$CXX supports C
++14 features with
$switch...
" >&6; }
8194 if eval \${$cachevar+:} false; then :
8195 $as_echo_n "(cached
) " >&6
8199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8200 /* end confdefs.h. */
8203 // If the compiler admits that it is not ready for C++11, why torture it?
8204 // Hopefully, this will speed up the test.
8208 #error "This is not a C
++ compiler
"
8210 #elif __cplusplus < 201103L
8212 #error "This is not a C
++11 compiler
"
8219 namespace test_static_assert
8222 template <typename T>
8225 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
8230 namespace test_final_override
8239 struct Derived : public Base
8241 virtual ~Derived() override {}
8242 virtual void f() override {}
8247 namespace test_double_right_angle_brackets
8250 template < typename T >
8253 typedef check<void> single_type;
8254 typedef check<check<void>> double_type;
8255 typedef check<check<check<void>>> triple_type;
8256 typedef check<check<check<check<void>>>> quadruple_type;
8260 namespace test_decltype
8273 namespace test_type_deduction
8276 template < typename T1, typename T2 >
8279 static const bool value = false;
8282 template < typename T >
8283 struct is_same<T, T>
8285 static const bool value = true;
8288 template < typename T1, typename T2 >
8290 add(T1 a1, T2 a2) -> decltype(a1 + a2)
8296 test(const int c, volatile int v)
8298 static_assert(is_same<int, decltype(0)>::value == true, "");
8299 static_assert(is_same<int, decltype(c)>::value == false, "");
8300 static_assert(is_same<int, decltype(v)>::value == false, "");
8303 auto sumi = ac + av + 'x';
8304 auto sumf = ac + av + 1.0;
8305 static_assert(is_same<int, decltype(ac)>::value == true, "");
8306 static_assert(is_same<int, decltype(av)>::value == true, "");
8307 static_assert(is_same<int, decltype(sumi)>::value == true, "");
8308 static_assert(is_same<int, decltype(sumf)>::value == false, "");
8309 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
8310 return (sumf > 0.0) ? sumi : add(c, v);
8315 namespace test_noexcept
8318 int f() { return 0; }
8319 int g() noexcept { return 0; }
8321 static_assert(noexcept(f()) == false, "");
8322 static_assert(noexcept(g()) == true, "");
8326 namespace test_constexpr
8329 template < typename CharT >
8330 unsigned long constexpr
8331 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
8333 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
8336 template < typename CharT >
8337 unsigned long constexpr
8338 strlen_c(const CharT *const s) noexcept
8340 return strlen_c_r(s, 0UL);
8343 static_assert(strlen_c("") == 0UL, "");
8344 static_assert(strlen_c("1") == 1UL, "");
8345 static_assert(strlen_c("example
") == 7UL, "");
8346 static_assert(strlen_c("another\
0example
") == 7UL, "");
8350 namespace test_rvalue_references
8356 static constexpr int value = N;
8359 answer<1> f(int&) { return answer<1>(); }
8360 answer<2> f(const int&) { return answer<2>(); }
8361 answer<3> f(int&&) { return answer<3>(); }
8368 static_assert(decltype(f(i))::value == 1, "");
8369 static_assert(decltype(f(c))::value == 2, "");
8370 static_assert(decltype(f(0))::value == 3, "");
8375 namespace test_uniform_initialization
8380 static const int zero {};
8381 static const int one {1};
8384 static_assert(test::zero == 0, "");
8385 static_assert(test::one == 1, "");
8389 namespace test_lambdas
8395 auto lambda1 = [](){};
8396 auto lambda2 = lambda1;
8404 auto a = [](int i, int j){ return i + j; }(1, 2);
8405 auto b = []() -> int { return '0'; }();
8406 auto c = [=](){ return a + b; }();
8407 auto d = [&](){ return c; }();
8408 auto e = [a, &b](int x) mutable {
8409 const auto identity = [](int y){ return y; };
8410 for (auto i = 0; i < a; ++i)
8412 return x + identity(a + b);
8414 return a + b + c + d + e;
8420 const auto nullary = [](){ return 0; };
8421 const auto unary = [](int x){ return x; };
8422 using nullary_t = decltype(nullary);
8423 using unary_t = decltype(unary);
8424 const auto higher1st = [](nullary_t f){ return f(); };
8425 const auto higher2nd = [unary](nullary_t f1){
8426 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
8428 return higher1st(nullary) + higher2nd(nullary)(unary);
8433 namespace test_variadic_templates
8439 template <int N0, int... N1toN>
8440 struct sum<N0, N1toN...>
8442 static constexpr auto value = N0 + sum<N1toN...>::value;
8448 static constexpr auto value = 0;
8451 static_assert(sum<>::value == 0, "");
8452 static_assert(sum<1>::value == 1, "");
8453 static_assert(sum<23>::value == 23, "");
8454 static_assert(sum<1, 2>::value == 3, "");
8455 static_assert(sum<5, 5, 11>::value == 21, "");
8456 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
8460 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
8461 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
8463 namespace test_template_alias_sfinae
8468 template<typename T>
8469 using member = typename T::member_type;
8471 template<typename T>
8474 template<typename T>
8475 void func(member<T>*) {}
8479 void test() { func<foo>(0); }
8483 } // namespace cxx11
8485 #endif // __cplusplus >= 201103L
8490 // If the compiler admits that it is not ready for C++14, why torture it?
8491 // Hopefully, this will speed up the test.
8495 #error "This is not a C
++ compiler
"
8497 #elif __cplusplus < 201402L
8499 #error "This is not a C
++14 compiler
"
8506 namespace test_polymorphic_lambdas
8512 const auto lambda = [](auto&&... args){
8513 const auto istiny = [](auto x){
8514 return (sizeof(x) == 1UL) ? 1 : 0;
8516 const int aretiny[] = { istiny(args)... };
8519 return lambda(1, 1L, 1.0f, '1');
8524 namespace test_binary_literals
8527 constexpr auto ivii = 0b0000000000101010;
8528 static_assert(ivii == 42, "wrong value
");
8532 namespace test_generalized_constexpr
8535 template < typename CharT >
8536 constexpr unsigned long
8537 strlen_c(const CharT *const s) noexcept
8540 for (auto p = s; *p; ++p)
8545 static_assert(strlen_c("") == 0UL, "");
8546 static_assert(strlen_c("x
") == 1UL, "");
8547 static_assert(strlen_c("test") == 4UL, "");
8548 static_assert(strlen_c("another\
0test") == 7UL, "");
8552 namespace test_lambda_init_capture
8559 const auto lambda1 = [a = x](int b){ return a + b; };
8560 const auto lambda2 = [a = lambda1(x)](){ return a; };
8566 namespace test_digit_separators
8569 constexpr auto ten_million = 100'000'000;
8570 static_assert(ten_million == 100000000, "");
8574 namespace test_return_type_deduction
8577 auto f(int& x) { return x; }
8578 decltype(auto) g(int& x) { return x; }
8580 template < typename T1, typename T2 >
8583 static constexpr auto value = false;
8586 template < typename T >
8587 struct is_same<T, T>
8589 static constexpr auto value = true;
8596 static_assert(is_same<int, decltype(f(x))>::value, "");
8597 static_assert(is_same<int&, decltype(g(x))>::value, "");
8603 } // namespace cxx14
8605 #endif // __cplusplus >= 201402L
8610 if ac_fn_cxx_try_compile "$LINENO"; then :
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8618 eval ac_res=\$$cachevar
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
8620 $as_echo "$ac_res" >&6; }
8621 if eval test x\$$cachevar = xyes; then
8623 if test -n "$CXXCPP" ; then
8624 CXXCPP="$CXXCPP $switch"
8630 if test x$ac_success = xyes; then
8635 CXX_FOR_BUILD="$CXX"
8636 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
8637 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
8638 CXX="$ax_cv_cxx_compile_cxx14_orig_cxx"
8639 CXXFLAGS="$ax_cv_cxx_compile_cxx14_orig_cxxflags"
8640 CPPFLAGS="$ax_cv_cxx_compile_cxx14_orig_cppflags"
8642 ac_cpp='$CPP $CPPFLAGS'
8643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8647 if test x$ax_cxx_compile_cxx14_required = xtrue; then
8648 if test x$ac_success = xno; then
8649 as_fn_error $? "*** A compiler with support
for C
++14 language features is required.
" "$LINENO" 5
8652 if test x$ac_success = xno; then
8653 HAVE_CXX14_FOR_BUILD=0
8654 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++14 support was found
" >&5
8655 $as_echo "$as_me: No compiler with C
++14 support was found
" >&6;}
8657 HAVE_CXX14_FOR_BUILD=1
8659 $as_echo "#define HAVE_CXX14_FOR_BUILD 1" >>confdefs.h
8667 # Check whether --enable-pgo-build was given.
8668 if test "${enable_pgo_build+set}" = set; then :
8669 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
8675 # Issue errors and warnings for invalid/strange PGO build combinations.
8676 case "$have_compiler:$host:$target:$enable_pgo_build" in
8679 # Allow the PGO build only if we aren't building a compiler and
8680 # we are in a native configuration.
8681 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
8683 # Disallow the PGO bootstrap if we are building a compiler.
8684 yes:*:*:yes |
yes:*:*:lto
)
8685 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
8688 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
8692 if test "$enable_pgo_build" != "no"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
8694 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
8695 old_CFLAGS
="$CFLAGS"
8696 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
8697 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
8699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8700 /* end confdefs.h. */
8703 if ac_fn_c_try_compile
"$LINENO"; then :
8706 PGO_BUILD_GEN_CFLAGS
=
8708 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8709 CFLAGS
="$old_CFLAGS"
8710 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8712 $as_echo "yes" >&6; }
8713 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8716 $as_echo "no" >&6; }
8717 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
8720 if test "$enable_pgo_build" = "lto"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
8722 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
8723 old_CFLAGS
="$CFLAGS"
8724 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
8725 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
8726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8727 /* end confdefs.h. */
8730 if ac_fn_c_try_compile
"$LINENO"; then :
8733 PGO_BUILD_LTO_CFLAGS
=
8735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8736 CFLAGS
="$old_CFLAGS"
8737 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
8738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8739 $as_echo "yes" >&6; }
8741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8742 $as_echo "no" >&6; }
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
8744 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
8752 # Used for setting $lt_cv_objdir
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8754 $as_echo_n "checking for objdir... " >&6; }
8755 if ${lt_cv_objdir+:} false
; then :
8756 $as_echo_n "(cached) " >&6
8758 rm -f .libs
2>/dev
/null
8759 mkdir .libs
2>/dev
/null
8760 if test -d .libs
; then
8763 # MS-DOS does not allow filenames that begin with a dot.
8766 rmdir .libs
2>/dev
/null
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8769 $as_echo "$lt_cv_objdir" >&6; }
8770 objdir
=$lt_cv_objdir
8776 cat >>confdefs.h
<<_ACEOF
8777 #define LT_OBJDIR "$lt_cv_objdir/"
8782 # Check for GMP, MPFR and MPC
8785 if test -d ${srcdir}/gcc
; then
8789 if test -d ${srcdir}/gdb
; then
8790 if test "x$enable_gdb" != xno
; then
8795 gmplibs
="-lmpfr -lgmp"
8796 if test x
"$require_mpc" = "xyes" ; then
8797 gmplibs
="-lmpc $gmplibs"
8802 # Specify a location for mpc
8803 # check for this first so it ends up on the link line before mpfr.
8805 # Check whether --with-mpc was given.
8806 if test "${with_mpc+set}" = set; then :
8811 # Check whether --with-mpc-include was given.
8812 if test "${with_mpc_include+set}" = set; then :
8813 withval
=$with_mpc_include;
8817 # Check whether --with-mpc-lib was given.
8818 if test "${with_mpc_lib+set}" = set; then :
8819 withval
=$with_mpc_lib;
8823 if test "x$with_mpc" != x
; then
8824 gmplibs
="-L$with_mpc/lib $gmplibs"
8825 gmpinc
="-I$with_mpc/include $gmpinc"
8827 if test "x$with_mpc_include" != x
; then
8828 gmpinc
="-I$with_mpc_include $gmpinc"
8830 if test "x$with_mpc_lib" != x
; then
8831 gmplibs
="-L$with_mpc_lib $gmplibs"
8833 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
8834 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8835 gmpinc
='-I$$s/mpc/src '"$gmpinc"
8836 # Do not test the mpc version. Assume that it is sufficient, since
8837 # it is in the source tree, and the library has not been built yet
8838 # but it would be included on the link line in the version check below
8839 # hence making the test fail.
8843 # Specify a location for mpfr
8844 # check for this first so it ends up on the link line before gmp.
8846 # Check whether --with-mpfr was given.
8847 if test "${with_mpfr+set}" = set; then :
8852 # Check whether --with-mpfr-include was given.
8853 if test "${with_mpfr_include+set}" = set; then :
8854 withval
=$with_mpfr_include;
8858 # Check whether --with-mpfr-lib was given.
8859 if test "${with_mpfr_lib+set}" = set; then :
8860 withval
=$with_mpfr_lib;
8864 if test "x$with_mpfr" != x
; then
8865 gmplibs
="-L$with_mpfr/lib $gmplibs"
8866 gmpinc
="-I$with_mpfr/include $gmpinc"
8868 if test "x$with_mpfr_include" != x
; then
8869 gmpinc
="-I$with_mpfr_include $gmpinc"
8871 if test "x$with_mpfr_lib" != x
; then
8872 gmplibs
="-L$with_mpfr_lib $gmplibs"
8874 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8875 # MPFR v3.1.0 moved the sources into a src sub-directory.
8876 if ! test -d ${srcdir}/mpfr
/src
; then
8877 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8879 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8880 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8881 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8882 # Do not test the mpfr version. Assume that it is sufficient, since
8883 # it is in the source tree, and the library has not been built yet
8884 # but it would be included on the link line in the version check below
8885 # hence making the test fail.
8889 # Specify a location for gmp
8891 # Check whether --with-gmp was given.
8892 if test "${with_gmp+set}" = set; then :
8897 # Check whether --with-gmp-include was given.
8898 if test "${with_gmp_include+set}" = set; then :
8899 withval
=$with_gmp_include;
8903 # Check whether --with-gmp-lib was given.
8904 if test "${with_gmp_lib+set}" = set; then :
8905 withval
=$with_gmp_lib;
8910 if test "x$with_gmp" != x
; then
8911 gmplibs
="-L$with_gmp/lib $gmplibs"
8912 gmpinc
="-I$with_gmp/include $gmpinc"
8914 if test "x$with_gmp_include" != x
; then
8915 gmpinc
="-I$with_gmp_include $gmpinc"
8917 if test "x$with_gmp_lib" != x
; then
8918 gmplibs
="-L$with_gmp_lib $gmplibs"
8920 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8921 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8922 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8923 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8924 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8925 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8926 # Do not test the gmp version. Assume that it is sufficient, since
8927 # it is in the source tree, and the library has not been built yet
8928 # but it would be included on the link line in the version check below
8929 # hence making the test fail.
8933 if test "x$require_gmp" = xyes
&& test "x$have_gmp" = xno
; then
8935 saved_CFLAGS
="$CFLAGS"
8936 CFLAGS
="$CFLAGS $gmpinc"
8937 # Check for the recommended and required versions of GMP.
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8939 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8940 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8941 /* end confdefs.h. */
8947 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8948 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8949 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8957 if ac_fn_c_try_compile
"$LINENO"; then :
8958 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8959 /* end confdefs.h. */
8965 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8966 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8967 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8975 if ac_fn_c_try_compile
"$LINENO"; then :
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8977 $as_echo "yes" >&6; }
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8980 $as_echo "buggy but acceptable" >&6; }
8982 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8985 $as_echo "no" >&6; }; have_gmp
=no
8987 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8989 # If we have GMP, check the MPFR version.
8990 if test x
"$have_gmp" = xyes
; then
8991 # Check for the recommended and required versions of MPFR.
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8993 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8994 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8995 /* end confdefs.h. */
9002 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
9010 if ac_fn_c_try_compile
"$LINENO"; then :
9011 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9012 /* end confdefs.h. */
9019 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
9027 if ac_fn_c_try_compile
"$LINENO"; then :
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9029 $as_echo "yes" >&6; }
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9032 $as_echo "buggy but acceptable" >&6; }
9034 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9037 $as_echo "no" >&6; }; have_gmp
=no
9039 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9042 # Check for the MPC header version.
9043 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
9044 # Check for the recommended and required versions of MPC.
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
9046 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
9047 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9048 /* end confdefs.h. */
9054 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
9062 if ac_fn_c_try_compile
"$LINENO"; then :
9063 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9064 /* end confdefs.h. */
9070 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
9078 if ac_fn_c_try_compile
"$LINENO"; then :
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9080 $as_echo "yes" >&6; }
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
9083 $as_echo "buggy but acceptable" >&6; }
9085 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9088 $as_echo "no" >&6; }; have_gmp
=no
9090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9093 # Now check the MPFR library.
9094 if test x
"$have_gmp" = xyes
; then
9096 LIBS
="$LIBS $gmplibs"
9097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
9098 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
9099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9100 /* end confdefs.h. */
9111 mpfr_atan2 (n, n, x, MPFR_RNDN);
9112 mpfr_erfc (n, x, MPFR_RNDN);
9113 mpfr_subnormalize (x, t, MPFR_RNDN);
9121 if ac_fn_c_try_link
"$LINENO"; then :
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9123 $as_echo "yes" >&6; }
9125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9126 $as_echo "no" >&6; }; have_gmp
=no
9128 rm -f core conftest.err conftest.
$ac_objext \
9129 conftest
$ac_exeext conftest.
$ac_ext
9133 # Now check the MPC library
9134 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
9136 LIBS
="$LIBS $gmplibs"
9137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
9138 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
9139 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9140 /* end confdefs.h. */
9148 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
9149 mpc_cosh (c, c, MPC_RNDNN);
9150 mpc_pow (c, c, c, MPC_RNDNN);
9151 mpc_acosh (c, c, MPC_RNDNN);
9158 if ac_fn_c_try_link
"$LINENO"; then :
9159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9160 $as_echo "yes" >&6; }
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9163 $as_echo "no" >&6; }; have_gmp
=no
9165 rm -f core conftest.err conftest.
$ac_objext \
9166 conftest
$ac_exeext conftest.
$ac_ext
9170 CFLAGS
="$saved_CFLAGS"
9172 # The library versions listed in the error message below should match
9173 # the HARD-minimums enforced above.
9174 if test x
$have_gmp != xyes
; then
9175 if test -d ${srcdir}/gcc
; then
9176 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
9177 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
9178 their locations. Source code for these libraries can be found at
9179 their respective hosting sites as well as at
9180 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
9181 http://gcc.gnu.org/install/prerequisites.html for additional info. If
9182 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
9183 make sure that you have installed both the libraries and the header
9184 files. They may be located in separate packages." "$LINENO" 5
9186 as_fn_error $?
"Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
9187 Try the --with-gmp and/or --with-mpfr options to specify
9188 their locations. If you obtained GMP and/or MPFR from a vendor
9189 distribution package, make sure that you have installed both the libraries
9190 and the header files. They may be located in separate packages." "$LINENO" 5
9195 # Flags needed for both GMP, MPFR and/or MPC.
9203 # Libraries to use for stage1 or when not bootstrapping.
9205 # Check whether --with-stage1-libs was given.
9206 if test "${with_stage1_libs+set}" = set; then :
9207 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9210 stage1_libs
=$withval
9218 # Whether or not to use -static-libstdc++ and -static-libgcc. The
9219 # default is yes if gcc is being built; no otherwise. The reason for
9220 # this default is that gdb is sometimes linked against GNU Source
9221 # Highlight, which is a shared library that uses C++ exceptions. In
9222 # this case, -static-libstdc++ will cause crashes.
9224 # Check whether --with-static-standard-libraries was given.
9225 if test "${with_static_standard_libraries+set}" = set; then :
9226 withval
=$with_static_standard_libraries;
9228 with_static_standard_libraries
=auto
9231 if test "$with_static_standard_libraries" = auto
; then
9232 with_static_standard_libraries
=$have_compiler
9235 # Linker flags to use for stage1 or when not bootstrapping.
9237 # Check whether --with-stage1-ldflags was given.
9238 if test "${with_stage1_ldflags+set}" = set; then :
9239 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9242 stage1_ldflags
=$withval
9246 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
9247 # if supported. But if the user explicitly specified the libraries to use,
9248 # trust that they are doing what they want.
9249 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
9250 -a "$have_static_libs" = yes; then
9251 stage1_ldflags
="-static-libstdc++ -static-libgcc"
9257 # Libraries to use for stage2 and later builds.
9259 # Check whether --with-boot-libs was given.
9260 if test "${with_boot_libs+set}" = set; then :
9261 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
9264 poststage1_libs
=$withval
9272 # Linker flags to use for stage2 and later builds.
9274 # Check whether --with-boot-ldflags was given.
9275 if test "${with_boot_ldflags+set}" = set; then :
9276 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
9279 poststage1_ldflags
=$withval
9283 # In stages 2 and 3, default to linking libstdc++ and libgcc
9284 # statically. But if the user explicitly specified the libraries to
9285 # use, trust that they are doing what they want.
9286 if test "$poststage1_libs" = ""; then
9287 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
9292 *-darwin2* |
*-darwin1[56789]*)
9293 # For these versions, we default to using embedded rpaths.
9294 if test "x$enable_darwin_at_rpath" != "xno"; then
9295 poststage1_ldflags
="$poststage1_ldflags -nodefaultrpaths"
9299 # For these versions, we only use embedded rpaths on demand.
9300 if test "x$enable_darwin_at_rpath" = "xyes"; then
9301 poststage1_ldflags
="$poststage1_ldflags -nodefaultrpaths"
9307 # GCC GRAPHITE dependency isl.
9308 # Basic setup is inlined here, actual checks are in config/isl.m4
9311 # Check whether --with-isl was given.
9312 if test "${with_isl+set}" = set; then :
9317 # Treat --without-isl as a request to disable
9318 # GRAPHITE support and skip all following checks.
9319 if test "x$with_isl" != "xno"; then
9323 # Check whether --with-isl-include was given.
9324 if test "${with_isl_include+set}" = set; then :
9325 withval
=$with_isl_include;
9329 # Check whether --with-isl-lib was given.
9330 if test "${with_isl_lib+set}" = set; then :
9331 withval
=$with_isl_lib;
9335 # Check whether --enable-isl-version-check was given.
9336 if test "${enable_isl_version_check+set}" = set; then :
9337 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
9339 ENABLE_ISL_CHECK
=yes
9343 # Initialize isllibs and islinc.
9352 isllibs
="-L$with_isl/lib"
9353 islinc
="-I$with_isl/include"
9356 if test "x${with_isl_include}" != x
; then
9357 islinc
="-I$with_isl_include"
9359 if test "x${with_isl_lib}" != x
; then
9360 isllibs
="-L$with_isl_lib"
9362 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
9363 && test -d ${srcdir}/isl
; then
9364 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
9365 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
9367 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
9368 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
9371 isllibs
="${isllibs} -lisl"
9375 if test "${ENABLE_ISL_CHECK}" = yes ; then
9376 _isl_saved_CFLAGS
=$CFLAGS
9377 _isl_saved_LDFLAGS
=$LDFLAGS
9378 _isl_saved_LIBS
=$LIBS
9380 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
9381 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
9382 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
9384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
9385 $as_echo_n "checking for isl 0.15 or later... " >&6; }
9386 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9387 /* end confdefs.h. */
9388 #include <isl/schedule.h>
9392 isl_options_set_schedule_serialize_sccs (NULL, 0);
9397 if ac_fn_c_try_link
"$LINENO"; then :
9402 rm -f core conftest.err conftest.
$ac_objext \
9403 conftest
$ac_exeext conftest.
$ac_ext
9404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
9405 $as_echo "$gcc_cv_isl" >&6; }
9407 if test "${gcc_cv_isl}" = no
; then
9408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
9409 $as_echo "required isl version is 0.15 or later" >&6; }
9412 CFLAGS
=$_isl_saved_CFLAGS
9413 LDFLAGS
=$_isl_saved_LDFLAGS
9414 LIBS
=$_isl_saved_LIBS
9422 if test "x${with_isl}" = xno
; then
9423 graphite_requested
=no
9424 elif test "x${with_isl}" != x \
9425 ||
test "x${with_isl_include}" != x \
9426 ||
test "x${with_isl_lib}" != x
; then
9427 graphite_requested
=yes
9429 graphite_requested
=no
9434 if test "${gcc_cv_isl}" = no
; then
9439 if test "${graphite_requested}" = yes \
9440 && test "x${isllibs}" = x \
9441 && test "x${islinc}" = x
; then
9443 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
9449 # If the isl check failed, disable builds of in-tree variant of isl
9450 if test "x$with_isl" = xno ||
9451 test "x$gcc_cv_isl" = xno
; then
9452 noconfigdirs
="$noconfigdirs isl"
9459 # Check for LTO support.
9460 # Check whether --enable-lto was given.
9461 if test "${enable_lto+set}" = set; then :
9462 enableval
=$enable_lto; enable_lto
=$enableval
9464 enable_lto
=yes; default_enable_lto
=yes
9473 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
9474 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
9475 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
9484 if test $target_elf = yes; then :
9485 # ELF platforms build the lto-plugin always.
9486 build_lto_plugin
=yes
9489 if test x
"$default_enable_lto" = x
"yes" ; then
9491 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
9492 # On other non-ELF platforms, LTO has yet to be validated.
9496 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
9497 # It would also be nice to check the binutils support, but we don't
9498 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
9499 # warn during gcc/ subconfigure; unless you're bootstrapping with
9500 # -flto it won't be needed until after installation anyway.
9502 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
9503 *) if test x
"$enable_lto" = x
"yes"; then
9504 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
9509 # Among non-ELF, only Windows platforms support the lto-plugin so far.
9510 # Build it unless LTO was explicitly disabled.
9512 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
9519 # Check whether --enable-linker-plugin-configure-flags was given.
9520 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
9521 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
9523 extra_linker_plugin_configure_flags
=
9527 # Check whether --enable-linker-plugin-flags was given.
9528 if test "${enable_linker_plugin_flags+set}" = set; then :
9529 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
9531 extra_linker_plugin_flags
=
9536 # Handle --enable-host-pie
9537 # If host PIE executables are the default (or must be forced on) for some host,
9538 # we must pass that configuration to the gcc directory.
9540 # Check whether --enable-host-pie was given.
9541 if test "${enable_host_pie+set}" = set; then :
9542 enableval
=$enable_host_pie; host_pie
=$enableval
9545 if test x
$host_pie != xyes
; then
9546 # for Darwin20+ this is required.
9547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
9548 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
9550 gcc_host_pie
=--enable-host-pie
9557 # Default to PIE (mandatory for aarch64).
9559 gcc_host_pie
=--enable-host-pie
9569 # Enable --enable-host-shared.
9570 # Checked early to determine whether jit is an 'all' language
9571 # Check whether --enable-host-shared was given.
9572 if test "${enable_host_shared+set}" = set; then :
9573 enableval
=$enable_host_shared; host_shared
=$enableval
9575 x86_64-
*-darwin* | aarch64-
*-darwin*)
9576 if test x
$host_shared != xyes
; then
9577 # PIC is the default, and actually cannot be switched off.
9578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
9579 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
9583 if test x
$host_pie = xyes
-a x
$host_shared != xyes
; then
9584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
9585 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
9592 # 64B x86_64 and Aarch64 Darwin default to PIC.
9593 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
9594 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
9595 *-*-darwin*) host_shared
=$host_pie ;;
9603 if test x
$host_shared = xyes
; then
9606 # Since host shared is the default for 64b Darwin, and also enabled for
9607 # host_pie, ensure that we present the PIE flag when host_pie is active.
9608 if test x
$host_pie = xyes
; then
9616 elif test x
$host_pie = xyes
; then
9625 # Check for libgdiagnostics support.
9626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable libgdiagnostics" >&5
9627 $as_echo_n "checking whether to enable libgdiagnostics... " >&6; }
9628 # Check whether --enable-libgdiagnostics was given.
9629 if test "${enable_libgdiagnostics+set}" = set; then :
9630 enableval
=$enable_libgdiagnostics; enable_libgdiagnostics
=$enableval
9632 enable_libgdiagnostics
=no
9636 if test x
$enable_libgdiagnostics = xyes
; then
9637 # Disable libgdiagnostics if -enable-host-shared not specified
9638 # but not if building for Mingw. All code in Windows
9639 # is position independent code (PIC).
9643 if test x
$host_shared != xyes
; then
9645 Enabling libgdiagnostics requires --enable-host-shared.
9647 --enable-host-shared typically slows the rest of the compiler down by
9648 a few %, so you must explicitly enable it.
9650 If you want to build both libgdiagnostics and the regular compiler, it is often
9651 best to do this via two separate configure/builds, in separate
9652 directories, to avoid imposing the performance cost of
9653 --enable-host-shared on the regular compiler." "$LINENO" 5
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_libgdiagnostics" >&5
9659 $as_echo "$enable_libgdiagnostics" >&6; }
9663 # Rust requires -ldl and -lpthread if you are using an old glibc that does not include them by
9664 # default, so we check for them here
9665 # We are doing the test here and not in the gcc/configure to be able to nicely disable the
9666 # build of the Rust frontend in case a dep is missing.
9667 missing_rust_dynlibs
=none
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
9672 $as_echo_n "checking for library containing dlopen... " >&6; }
9673 if ${ac_cv_search_dlopen+:} false
; then :
9674 $as_echo_n "(cached) " >&6
9676 ac_func_search_save_LIBS
=$LIBS
9677 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9678 /* end confdefs.h. */
9680 /* Override any GCC internal prototype to avoid an error.
9681 Use char because int might match the return type of a GCC
9682 builtin and then its argument prototype would still apply. */
9695 for ac_lib
in '' dl
; do
9696 if test -z "$ac_lib"; then
9697 ac_res
="none required"
9700 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9702 if ac_fn_c_try_link
"$LINENO"; then :
9703 ac_cv_search_dlopen
=$ac_res
9705 rm -f core conftest.err conftest.
$ac_objext \
9707 if ${ac_cv_search_dlopen+:} false
; then :
9711 if ${ac_cv_search_dlopen+:} false
; then :
9714 ac_cv_search_dlopen
=no
9717 LIBS
=$ac_func_search_save_LIBS
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
9720 $as_echo "$ac_cv_search_dlopen" >&6; }
9721 ac_res
=$ac_cv_search_dlopen
9722 if test "$ac_res" != no
; then :
9723 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing pthread_create" >&5
9728 $as_echo_n "checking for library containing pthread_create... " >&6; }
9729 if ${ac_cv_search_pthread_create+:} false
; then :
9730 $as_echo_n "(cached) " >&6
9732 ac_func_search_save_LIBS
=$LIBS
9733 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9734 /* end confdefs.h. */
9736 /* Override any GCC internal prototype to avoid an error.
9737 Use char because int might match the return type of a GCC
9738 builtin and then its argument prototype would still apply. */
9742 char pthread_create ();
9746 return pthread_create ();
9751 for ac_lib
in '' pthread
; do
9752 if test -z "$ac_lib"; then
9753 ac_res
="none required"
9756 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9758 if ac_fn_c_try_link
"$LINENO"; then :
9759 ac_cv_search_pthread_create
=$ac_res
9761 rm -f core conftest.err conftest.
$ac_objext \
9763 if ${ac_cv_search_pthread_create+:} false
; then :
9767 if ${ac_cv_search_pthread_create+:} false
; then :
9770 ac_cv_search_pthread_create
=no
9773 LIBS
=$ac_func_search_save_LIBS
9775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_pthread_create" >&5
9776 $as_echo "$ac_cv_search_pthread_create" >&6; }
9777 ac_res
=$ac_cv_search_pthread_create
9778 if test "$ac_res" != no
; then :
9779 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9786 if test "$ac_cv_search_dlopen" = no
; then
9787 missing_rust_dynlibs
="libdl"
9790 if test "$ac_cv_search_pthread_create" = no
; then
9791 missing_rust_dynlibs
="$missing_rust_dynlibs, libpthread"
9794 CRAB1_LIBS
="$CRAB1_LIBS"
9797 # If we are building PIC/PIE host executables, and we are building dependent
9798 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
9801 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
9802 host_libs_picflag
='--with-pic'
9806 # By default, C and C++ are the only stage 1 languages.
9807 stage1_languages
=,c
,
9809 # Target libraries that we bootstrap.
9810 bootstrap_target_libs
=,target-libgcc
,
9812 # Figure out what language subdirectories are present.
9813 # Look if the user specified --enable-languages="..."; if not, use
9814 # the environment variable $LANGUAGES if defined. $LANGUAGES might
9816 # NB: embedded tabs in this IF block -- do not untabify
9817 if test -d ${srcdir}/gcc
; then
9818 if test x
"${enable_languages+set}" != xset
; then
9819 if test x
"${LANGUAGES+set}" = xset
; then
9820 enable_languages
="${LANGUAGES}"
9821 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
9823 enable_languages
=default
9826 if test x
"${enable_languages}" = x ||
9827 test x
"${enable_languages}" = xyes
;
9829 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
9833 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
9835 # 'f95' is the old name for the 'fortran' language. We issue a warning
9836 # and make the substitution.
9837 case ,${enable_languages}, in
9839 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
9840 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
9844 # If bootstrapping, C++ must be enabled.
9845 case ",$enable_languages,:$enable_bootstrap" in
9848 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
9849 enable_languages
="${enable_languages},c++"
9851 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
9856 # First scan to see if an enabled language requires some other language.
9857 # We assume that a given config-lang.in will list all the language
9858 # front ends it requires, even if some are required indirectly.
9859 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
9860 case ${lang_frag} in
9862 # The odd quoting in the next line works around
9863 # an apparent bug in bash 1.12 on linux.
9864 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
9866 # From the config-lang.in, get $language, $lang_requires, and
9867 # $lang_requires_boot_languages.
9870 lang_requires_boot_languages
=
9871 # set srcdir during sourcing lang_frag to the gcc dir.
9872 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
9873 # pollutes this shell
9874 saved_srcdir
=${srcdir}
9875 srcdir
=${srcdir}/gcc .
${lang_frag}
9876 srcdir
=${saved_srcdir}
9877 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
9878 case ,${enable_languages}, in
9883 echo " \`$other' language required by \`$language'; enabling" 1>&2
9884 enable_languages
="${enable_languages},${other}"
9888 for other
in ${lang_requires_boot_languages} ; do
9889 if test "$other" != "c"; then
9890 case ,${enable_stage1_languages}, in
9895 case ,${enable_languages}, in
9897 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
9898 enable_stage1_languages
="$enable_stage1_languages,${other}"
9909 new_enable_languages
=,c
,
9911 # If LTO is enabled, add the LTO front end.
9912 if test "$enable_lto" = "yes" ; then
9913 case ,${enable_languages}, in
9915 *) enable_languages
="${enable_languages},lto" ;;
9917 if test "${build_lto_plugin}" = "yes" ; then
9918 configdirs
="$configdirs lto-plugin"
9922 # If we're building an offloading compiler, add the LTO front end.
9923 if test x
"$enable_as_accelerator_for" != x
; then
9924 case ,${enable_languages}, in
9926 *) enable_languages
="${enable_languages},lto" ;;
9930 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
9931 potential_languages
=,c
,
9933 enabled_target_libs
=
9934 disabled_target_libs
=
9936 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
9937 case ${lang_frag} in
9939 # The odd quoting in the next line works around
9940 # an apparent bug in bash 1.12 on linux.
9941 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
9943 # From the config-lang.in, get $language, $target_libs,
9944 # $lang_dirs, $boot_language, and $build_by_default
9950 build_by_default
=yes
9951 # set srcdir during sourcing. See above about save & restore
9952 saved_srcdir
=${srcdir}
9953 srcdir
=${srcdir}/gcc .
${lang_frag}
9954 srcdir
=${saved_srcdir}
9955 if test x
${language} = x
; then
9956 echo "${lang_frag} doesn't set \$language." 1>&2
9960 if test "$language" = "c++"; then
9965 # C is always enabled, so no need to add it again
9966 if test "$language" != "c"; then
9967 case ,${enable_languages}, in
9969 # Language was explicitly selected; include it
9973 # All languages are enabled
9977 # 'default' was selected, select it if it is a default language
9978 add_this_lang
=${build_by_default}
9983 # Disable languages that need other directories if these aren't available.
9984 for i
in $subdir_requires; do
9985 test -f "$srcdir/gcc/$i/config-lang.in" && continue
9986 case ${add_this_lang} in
9988 # Specifically requested language; tell them.
9989 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9993 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9994 add_this_lang
=unsupported
9998 add_this_lang
=unsupported
10003 # Disable Ada if no preexisting GNAT is available.
10004 case ${add_this_lang}:${language}:${have_gnat} in
10006 # Specifically requested language; tell them.
10007 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
10011 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
10012 add_this_lang
=unsupported
10015 # Silently disable.
10016 add_this_lang
=unsupported
10020 # Disable D if no preexisting GDC is available.
10021 case ${add_this_lang}:${language}:${have_gdc} in
10023 # Specifically requested language; tell them.
10024 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
10027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
10028 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
10029 add_this_lang
=unsupported
10032 # Silently disable.
10033 add_this_lang
=unsupported
10037 # Disable Rust if we are missing some required C libraries for the Rust runtime.
10038 case ${add_this_lang}:${language}:${missing_rust_dynlibs} in
10040 # Nothing to do - we're not missing any C libraries
10043 as_fn_error $?
"some C libraries are required to build $language: $missing_rust_dynlibs" "$LINENO" 5
10044 add_this_lang
=unsupported
10047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&5
10048 $as_echo "$as_me: WARNING: some C libraries are required to build $language: $missing_rust_dynlibs" >&2;}
10049 add_this_lang
=unsupported
10052 # Silently disable.
10053 add_this_lang
=unsupported
10057 # Disable jit if -enable-host-shared not specified
10058 # but not if building for Mingw. All code in Windows
10059 # is position independent code (PIC).
10063 case ${add_this_lang}:${language}:${host_shared} in
10065 # PR jit/64780: explicitly specify --enable-host-shared
10067 Enabling language \"jit\" requires --enable-host-shared.
10069 --enable-host-shared typically slows the rest of the compiler down by
10070 a few %, so you must explicitly enable it.
10072 If you want to build both the jit and the regular compiler, it is often
10073 best to do this via two separate configure/builds, in separate
10074 directories, to avoid imposing the performance cost of
10075 --enable-host-shared on the regular compiler." "$LINENO" 5
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
10079 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
10080 add_this_lang
=unsupported
10083 # Silently disable.
10084 add_this_lang
=unsupported
10090 # Pre-conditions to consider whether cargo being supported.
10091 if test x
"$have_cargo" = xyes \
10092 && test x
"$build" != x
"$host"; then
10093 # Until <https://github.com/Rust-GCC/gccrs/issues/2898>
10094 # "'cargo' should build for the host system" is resolved:
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&5
10096 $as_echo "$as_me: WARNING: use of cargo not yet supported here in Canadian cross configurations" >&2;}
10099 # Assume that cargo-produced object files are compatible with what
10100 # we're going to build here.
10103 # Disable Rust if cargo is unavailable.
10104 case ${add_this_lang}:${language}:${have_cargo} in
10106 # Specifically requested language; tell them.
10107 as_fn_error $?
"cargo is required to build $language" "$LINENO" 5
10110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cargo is required to build $language" >&5
10111 $as_echo "$as_me: WARNING: cargo is required to build $language" >&2;}
10112 add_this_lang
=unsupported
10115 # Silently disable.
10116 add_this_lang
=unsupported
10121 # Disable a language that is unsupported by the target.
10122 case "${add_this_lang}: $unsupported_languages " in
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
10127 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
10128 add_this_lang
=unsupported
10132 case $add_this_lang in
10134 # Remove language-dependent dirs.
10135 disabled_target_libs
="$disabled_target_libs $target_libs"
10136 noconfigdirs
="$noconfigdirs $lang_dirs"
10139 # Remove language-dependent dirs; still show language as supported.
10140 disabled_target_libs
="$disabled_target_libs $target_libs"
10141 noconfigdirs
="$noconfigdirs $lang_dirs"
10142 potential_languages
="${potential_languages}${language},"
10145 new_enable_languages
="${new_enable_languages}${language},"
10146 potential_languages
="${potential_languages}${language},"
10147 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
10148 enabled_target_libs
="$enabled_target_libs $target_libs"
10149 case "${boot_language}:,$enable_stage1_languages," in
10150 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
10151 # Add to (comma-separated) list of stage 1 languages.
10152 case ",$stage1_languages," in
10153 *,$language,* |
,yes, |
,all
,) ;;
10154 *) stage1_languages
="${stage1_languages}${language}," ;;
10156 # We need to bootstrap any supporting libraries.
10157 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
10166 # Add target libraries which are only needed for disabled languages
10168 if test -n "$disabled_target_libs"; then
10169 for dir
in $disabled_target_libs; do
10170 case " $enabled_target_libs " in
10172 *) noconfigdirs
="$noconfigdirs $dir" ;;
10177 # Check whether --enable-stage1-languages was given.
10178 if test "${enable_stage1_languages+set}" = set; then :
10179 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
10181 # Set it to something that will have no effect in the loop below
10182 enable_stage1_languages
=c
;;
10184 enable_stage1_languages
=`echo $new_enable_languages | \
10185 sed -e "s/^,//" -e "s/,$//" ` ;;
10187 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
10188 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
10191 # Add "good" languages from enable_stage1_languages to stage1_languages,
10192 # while "bad" languages go in missing_languages. Leave no duplicates.
10193 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
10194 case $potential_languages in
10196 case $stage1_languages in
10198 *) stage1_languages
="$stage1_languages$i," ;;
10201 case $missing_languages in
10203 *) missing_languages
="$missing_languages$i," ;;
10210 # Remove leading/trailing commas that were added for simplicity
10211 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
10212 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
10213 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
10214 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
10216 if test "x$missing_languages" != x
; then
10218 The following requested languages could not be built: ${missing_languages}
10219 Supported languages are: ${potential_languages}" "$LINENO" 5
10221 if test "x$new_enable_languages" != "x$enable_languages"; then
10222 echo The following languages will be built
: ${new_enable_languages}
10223 enable_languages
="$new_enable_languages"
10227 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
10230 # Handle --disable-<component> generically.
10231 for dir
in $configdirs $build_configdirs $target_configdirs ; do
10232 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
10233 varname
=`echo $dirname | sed -e s/+/_/g`
10234 if eval test x\
${enable_${varname}} "=" xno
; then
10235 noconfigdirs
="$noconfigdirs $dir"
10239 # Check for Boehm's garbage collector
10240 # Check whether --enable-objc-gc was given.
10241 if test "${enable_objc_gc+set}" = set; then :
10242 enableval
=$enable_objc_gc;
10246 # Check whether --with-target-bdw-gc was given.
10247 if test "${with_target_bdw_gc+set}" = set; then :
10248 withval
=$with_target_bdw_gc;
10252 # Check whether --with-target-bdw-gc-include was given.
10253 if test "${with_target_bdw_gc_include+set}" = set; then :
10254 withval
=$with_target_bdw_gc_include;
10258 # Check whether --with-target-bdw-gc-lib was given.
10259 if test "${with_target_bdw_gc_lib+set}" = set; then :
10260 withval
=$with_target_bdw_gc_lib;
10264 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
10265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
10266 $as_echo_n "checking for bdw garbage collector... " >&6; }
10267 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
10269 $as_echo "using bdw-gc in default locations" >&6; }
10271 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
10272 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
10273 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
10274 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
10276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
10277 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
10282 # Disable libitm, libsanitizer, libvtv if we're not building C++
10283 case ,${enable_languages}, in
10285 # Disable libitm, libsanitizer if we're not building libstdc++
10286 case "${noconfigdirs}" in
10287 *target-libstdc
++-v3*)
10288 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
10294 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
10298 case ,${enable_languages}, in
10300 case " ${noconfigdirs} " in
10301 *\ target-libstdc
++-v3\
*)
10302 # Disable target libgrust if we're not building target libstdc++.
10303 noconfigdirs
="$noconfigdirs target-libgrust"
10309 # If gcc/ is not in the source tree then we'll not be building a
10310 # target compiler, assume in that case we don't want to build any
10311 # target libraries or tools.
10313 # This was added primarily for the benefit for binutils-gdb who reuse
10314 # this configure script, but don't always have target tools available.
10315 if test ! -d ${srcdir}/gcc
; then
10316 skipdirs
="${skipdirs} ${target_configdirs}"
10319 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
10320 # $build_configdirs and $target_configdirs.
10321 # If we have the source for $noconfigdirs entries, add them to $notsupp.
10324 for dir
in .
$skipdirs $noconfigdirs ; do
10325 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
10326 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10327 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
10328 if test -r $srcdir/$dirname/configure
; then
10329 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10332 notsupp
="$notsupp $dir"
10336 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10337 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
10338 if test -r $srcdir/$dirname/configure
; then
10339 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10342 notsupp
="$notsupp $dir"
10346 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10347 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
10348 if test -r $srcdir/$dirname/configure
; then
10349 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10352 notsupp
="$notsupp $dir"
10358 # Quietly strip out all directories which aren't configurable in this tree.
10359 # This relies on all configurable subdirectories being autoconfiscated, which
10361 build_configdirs_all
="$build_configdirs"
10363 for i
in ${build_configdirs_all} ; do
10364 j
=`echo $i | sed -e s/build-//g`
10365 if test -f ${srcdir}/$j/configure
; then
10366 build_configdirs
="${build_configdirs} $i"
10370 configdirs_all
="$configdirs"
10372 for i
in ${configdirs_all} ; do
10373 if test -f ${srcdir}/$i/configure
; then
10374 configdirs
="${configdirs} $i"
10378 target_configdirs_all
="$target_configdirs"
10380 for i
in ${target_configdirs_all} ; do
10381 j
=`echo $i | sed -e s/target-//g`
10382 if test -f ${srcdir}/$j/configure
; then
10383 target_configdirs
="${target_configdirs} $i"
10387 # libiberty-linker-plugin is special: it doesn't have its own source directory,
10388 # so we have to add it after the preceding checks.
10389 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
10391 case " $configdirs " in
10393 # If we can build libiberty, we can also build libiberty-linker-plugin.
10394 configdirs
="$configdirs libiberty-linker-plugin"
10395 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
10396 --with-libiberty=../libiberty-linker-plugin";;
10398 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
10402 # Sometimes we have special requirements for the host libiberty.
10403 extra_host_libiberty_configure_flags
=
10404 case " $configdirs " in
10405 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
10406 # When these are to be built as shared libraries, the same applies to
10408 extra_host_libiberty_configure_flags
=--enable-shared
10413 # Sometimes we have special requirements for the host zlib.
10414 extra_host_zlib_configure_flags
=
10415 case " $configdirs " in
10417 # When bfd is to be built as a shared library, the same applies to
10419 if test "$enable_shared" = "yes"; then
10420 extra_host_zlib_configure_flags
=--enable-host-shared
10426 # Produce a warning message for the subdirs we can't configure.
10427 # This isn't especially interesting in the Cygnus tree, but in the individual
10428 # FSF releases, it's important to let people know when their machine isn't
10429 # supported by the one or two programs in a package.
10431 if test -n "${notsupp}" && test -z "${norecursion}" ; then
10432 # If $appdirs is non-empty, at least one of those directories must still
10433 # be configured, or we error out. (E.g., if the gas release supports a
10434 # specified target in some subdirs but not the gas subdir, we shouldn't
10435 # pretend that all is well.)
10436 if test -n "$appdirs" ; then
10437 for dir
in $appdirs ; do
10438 if test -r $dir/Makefile.
in ; then
10439 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
10443 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
10449 if test -n "$appdirs" ; then
10450 echo "*** This configuration is not supported by this package." 1>&2
10454 # Okay, some application will build, or we don't care to check. Still
10455 # notify of subdirs not getting built.
10456 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
10457 echo " ${notsupp}" 1>&2
10458 echo " (Any other directories should still work fine.)" 1>&2
10466 # To find our prefix, in gcc_cv_tool_prefix.
10468 # The user is always right.
10469 if test "${PATH_SEPARATOR+set}" != set; then
10470 echo "#! /bin/sh" >conf$$.sh
10471 echo "exit 0" >>conf$$.sh
10473 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
10482 get_gcc_base_ver
="cat"
10484 # Check whether --with-gcc-major-version-only was given.
10485 if test "${with_gcc_major_version_only+set}" = set; then :
10486 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
10487 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
10497 if test "x$exec_prefix" = xNONE
; then
10498 if test "x$prefix" = xNONE
; then
10499 gcc_cv_tool_prefix
=$ac_default_prefix
10501 gcc_cv_tool_prefix
=$prefix
10504 gcc_cv_tool_prefix
=$exec_prefix
10507 # If there is no compiler in the tree, use the PATH only. In any
10508 # case, if there is no compiler in the tree nobody should use
10509 # AS_FOR_TARGET and LD_FOR_TARGET.
10510 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
10511 if test x
$with_gcc_major_version_only = xyes
; then
10512 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
10514 gcc_version
=`cat $srcdir/gcc/BASE-VER`
10516 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10517 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
10518 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10519 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
10520 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
10521 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
10526 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
10527 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
10535 # Check whether --with-build-sysroot was given.
10536 if test "${with_build_sysroot+set}" = set; then :
10537 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
10538 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
10541 SYSROOT_CFLAGS_FOR_TARGET
=
10547 # Check whether --with-debug-prefix-map was given.
10548 if test "${with_debug_prefix_map+set}" = set; then :
10549 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
10550 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
10551 for debug_map
in $withval; do
10552 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
10556 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
10561 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
10562 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
10563 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
10564 # We want to ensure that TARGET libraries (which we know are built with
10565 # gcc) are built with "-O2 -g", so include those options when setting
10566 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
10567 if test "x$CFLAGS_FOR_TARGET" = x
; then
10568 if test "x${is_cross_compiler}" = xyes
; then
10569 CFLAGS_FOR_TARGET
="-g -O2"
10571 CFLAGS_FOR_TARGET
=$CFLAGS
10572 case " $CFLAGS " in
10574 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
10576 case " $CFLAGS " in
10577 *" -g "* |
*" -g3 "*) ;;
10578 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
10584 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
10585 if test "x${is_cross_compiler}" = xyes
; then
10586 CXXFLAGS_FOR_TARGET
="-g -O2"
10588 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
10589 case " $CXXFLAGS " in
10591 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
10593 case " $CXXFLAGS " in
10594 *" -g "* |
*" -g3 "*) ;;
10595 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
10603 # Handle --with-headers=XXX. If the value is not "yes", the contents of
10604 # the named directory are copied to $(tooldir)/sys-include.
10605 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
10606 if test x
${is_cross_compiler} = xno
; then
10607 echo 1>&2 '***' --with-headers is only supported when cross compiling
10610 if test x
"${with_headers}" != xyes
; then
10611 x
=${gcc_cv_tool_prefix}
10612 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
10616 # Handle --with-libs=XXX. If the value is not "yes", the contents of
10617 # the name directories are copied to $(tooldir)/lib. Multiple directories
10619 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
10620 if test x
${is_cross_compiler} = xno
; then
10621 echo 1>&2 '***' --with-libs is only supported when cross compiling
10624 if test x
"${with_libs}" != xyes
; then
10625 # Copy the libraries in reverse order, so that files in the first named
10626 # library override files in subsequent libraries.
10627 x
=${gcc_cv_tool_prefix}
10628 for l
in ${with_libs}; do
10629 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
10634 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
10636 # This is done by determining whether or not the appropriate directory
10637 # is available, and by checking whether or not specific configurations
10638 # have requested that this magic not happen.
10640 # The command line options always override the explicit settings in
10641 # configure.ac, and the settings in configure.ac override this magic.
10643 # If the default for a toolchain is to use GNU as and ld, and you don't
10644 # want to do that, then you should use the --without-gnu-as and
10645 # --without-gnu-ld options for the configure script. Similarly, if
10646 # the default is to use the included zlib and you don't want to do that,
10647 # you should use the --with-system-zlib option for the configure script.
10649 if test x
${use_gnu_as} = x
&&
10650 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
10652 extra_host_args
="$extra_host_args --with-gnu-as"
10655 if test x
${use_gnu_ld} = x
&&
10656 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
10658 extra_host_args
="$extra_host_args --with-gnu-ld"
10661 if test x
${use_included_zlib} = x
&&
10662 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
10665 with_system_zlib
=yes
10666 extra_host_args
="$extra_host_args --with-system-zlib"
10669 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
10670 # can detect this case.
10672 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
10674 extra_host_args
="$extra_host_args --with-newlib"
10677 # Handle ${copy_dirs}
10678 set fnord
${copy_dirs}
10680 while test $# != 0 ; do
10681 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
10684 echo Copying
$1 to
$2
10686 # Use the install script to create the directory and all required
10687 # parent directories.
10688 if test -d $2 ; then
10692 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
10695 # Copy the directory, assuming we have tar.
10696 # FIXME: Should we use B in the second tar? Not all systems support it.
10697 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
10699 # It is the responsibility of the user to correctly adjust all
10700 # symlinks. If somebody can figure out how to handle them correctly
10701 # here, feel free to add the code.
10703 echo $1 > $2/COPIED
10708 # Determine a target-dependent exec_prefix that the installed
10709 # gcc will search in. Keep this list sorted by triplet, with
10710 # the *-*-osname triplets last.
10712 case "${target}" in
10713 i
[34567]86-pc-msdosdjgpp*)
10714 md_exec_prefix
=/dev
/env
/DJDIR
/bin
10719 md_exec_prefix
=/usr
/ccs
/bin
10723 extra_arflags_for_target
=
10724 extra_nmflags_for_target
=
10725 extra_ranlibflags_for_target
=
10726 target_makefile_frag
=/dev
/null
10727 case "${target}" in
10729 target_makefile_frag
="config/mt-spu"
10731 loongarch
*-*linux
* | loongarch
*-*gnu
*)
10732 target_makefile_frag
="config/mt-loongarch-gnu"
10735 target_makefile_frag
="config/mt-loongarch-elf"
10737 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
10738 target_makefile_frag
="config/mt-sde"
10740 mipsisa
*-*-elfoabi*)
10741 target_makefile_frag
="config/mt-mips-elfoabi"
10743 mips
*-*-*linux
* | mips
*-*-gnu*)
10744 target_makefile_frag
="config/mt-mips-gnu"
10746 *-*-linux-android*)
10747 target_makefile_frag
="config/mt-android"
10749 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
10750 target_makefile_frag
="config/mt-gnu"
10752 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
10753 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
10754 # commands to handle both 32-bit and 64-bit objects. These flags are
10755 # harmless if we're using GNU nm or ar.
10756 extra_arflags_for_target
=" -X32_64"
10757 extra_nmflags_for_target
=" -B -X32_64"
10761 alphaieee_frag
=/dev
/null
10764 # This just makes sure to use the -mieee option to build target libs.
10765 # This should probably be set individually by each library.
10766 alphaieee_frag
="config/mt-alphaieee"
10770 # If --enable-target-optspace always use -Os instead of -O2 to build
10771 # the target libraries, similarly if it is not specified, use -Os
10772 # on selected platforms.
10773 ospace_frag
=/dev
/null
10774 case "${enable_target_optspace}:${target}" in
10776 ospace_frag
="config/mt-ospace"
10779 ospace_frag
="config/mt-d30v"
10781 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
10782 ospace_frag
="config/mt-ospace"
10787 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
10791 # Some systems (e.g., one of the i386-aix systems the gas testers are
10792 # using) don't handle "\$" correctly, so don't use it here.
10793 tooldir
='${exec_prefix}'/${target_noncanonical}
10794 build_tooldir
=${tooldir}
10796 # Create a .gdbinit file which runs the one in srcdir
10797 # and tells GDB to look there for source files.
10799 if test -r ${srcdir}/.gdbinit
; then
10802 *) cat > .
/.gdbinit
<<EOF
10806 source ${srcdir}/.gdbinit
10812 # Make sure that the compiler is able to generate an executable. If it
10813 # can't, we are probably in trouble. We don't care whether we can run the
10814 # executable--we might be using a cross compiler--we only care whether it
10815 # can be created. At this point the main configure script has set CC.
10817 echo "int main () { return 0; }" > conftest.c
10818 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10819 if test $?
= 0 ; then
10820 if test -s conftest ||
test -s conftest.exe
; then
10826 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
10827 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
10834 # Decide which environment variable is used to find dynamic libraries.
10836 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
10837 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
10838 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
10839 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
10842 # On systems where the dynamic library environment variable is PATH,
10843 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
10844 # built executables to PATH.
10845 if test "$RPATH_ENVVAR" = PATH
; then
10846 GCC_SHLIB_SUBDIR
=/shlib
10851 # Adjust the toplevel makefile according to whether bootstrap was selected.
10852 case $enable_bootstrap in
10854 bootstrap_suffix
=bootstrap
10855 BUILD_CONFIG
=bootstrap-debug
10858 bootstrap_suffix
=no-bootstrap
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
10864 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
10867 # Check whether --with-build-config was given.
10868 if test "${with_build_config+set}" = set; then :
10869 withval
=$with_build_config; case $with_build_config in
10870 yes) with_build_config
= ;;
10871 no
) with_build_config
= BUILD_CONFIG
= ;;
10876 if test "x${with_build_config}" != x
; then
10877 BUILD_CONFIG
=$with_build_config
10879 case $BUILD_CONFIG in
10881 if echo "int f (void) { return 0; }" > conftest.c
&&
10882 ${CC} -c conftest.c
&&
10883 mv conftest.o conftest.o.g0
&&
10884 ${CC} -c -g conftest.c
&&
10885 mv conftest.o conftest.o.g
&&
10886 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
10891 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
10896 $as_echo "$BUILD_CONFIG" >&6; }
10899 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
10900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
10901 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
10902 # Check whether --enable-vtable-verify was given.
10903 if test "${enable_vtable_verify+set}" = set; then :
10904 enableval
=$enable_vtable_verify; case "$enableval" in
10905 yes) enable_vtable_verify
=yes ;;
10906 no
) enable_vtable_verify
=no
;;
10907 *) enable_vtable_verify
=no
;;
10910 enable_vtable_verify
=no
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
10914 $as_echo "$enable_vtable_verify" >&6; }
10916 # Record target_configdirs and the configure arguments for target and
10917 # build configuration in Makefile.
10918 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
10919 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
10920 bootstrap_fixincludes
=no
10922 # If we are building libgomp, bootstrap it.
10923 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
10924 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
10927 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
10928 # or bootstrap-ubsan, bootstrap it.
10929 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
10930 case "$BUILD_CONFIG" in
10931 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
10932 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
10933 bootstrap_fixincludes
=yes
10938 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
10939 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
10940 test "$enable_vtable_verify" != no
; then
10941 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
10944 # If we are building libatomic and the list of enabled languages includes the
10945 # D frontend, bootstrap it.
10946 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
10947 case ,${enable_languages}, in
10949 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
10954 # Determine whether gdb needs tk/tcl or not.
10955 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
10956 # and in that case we want gdb to be built without tk. Ugh!
10957 # In fact I believe gdb is the *only* package directly dependent on tk,
10958 # so we should be able to put the 'maybe's in unconditionally and
10959 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
10960 # 100% sure that that's safe though.
10962 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
10963 case "$enable_gdbtk" in
10967 GDB_TK
="${gdb_tk}" ;;
10969 # Only add the dependency on gdbtk when GDBtk is part of the gdb
10970 # distro. Eventually someone will fix this and move Insight, nee
10971 # gdbtk to a separate directory.
10972 if test -d ${srcdir}/gdb
/gdbtk
; then
10979 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
10980 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
10982 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
10983 # else does, only include them if one of these is built. The Makefile
10984 # provides the ordering, so it's enough here to add to the list.
10985 case " ${configdirs} " in
10987 configdirs
="${configdirs} gnulib gdbsupport"
10990 configdirs
="${configdirs} gnulib gdbsupport"
10993 configdirs
="${configdirs} gnulib"
10997 # Strip out unwanted targets.
10999 # While at that, we remove Makefiles if we were started for recursive
11000 # configuration, so that the top-level Makefile reconfigures them,
11001 # like we used to do when configure itself was recursive.
11003 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
11004 # but now we're fixing up the Makefile ourselves with the additional
11005 # commands passed to AC_CONFIG_FILES. Use separate variables
11006 # extrasub-{build,host,target} not because there is any reason to split
11007 # the substitutions up that way, but only to remain below the limit of
11008 # 99 commands in a script, for HP-UX sed.
11010 # Do not nest @if/@endif or @unless/@endunless pairs, because
11011 # configure will not warn you at all.
11013 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
11014 yes:yes:*\ gold\
*:*,c
++,*) ;;
11015 yes:yes:*\ gold\
*:*)
11016 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
11020 # Bootstrapping GCC requires libstdc++-v3 so error out if libstdc++ is disabled with bootstrapping
11021 # Note C++ is always enabled for stage1 now.
11022 case "$enable_bootstrap:${noconfigdirs}" in
11023 yes:*target-libstdc
++-v3*)
11024 as_fn_error $?
"bootstrapping with --disable-libstdcxx is not supported" "$LINENO" 5
11030 for module
in ${build_configdirs} ; do
11031 if test -z "${no_recursion}" \
11032 && test -f ${build_subdir}/${module}/Makefile
; then
11033 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
11034 rm -f ${build_subdir}/${module}/Makefile
11036 extrasub_build
="$extrasub_build
11037 /^@if build-$module\$/d
11038 /^@endif build-$module\$/d
11039 /^@unless build-$module\$/,/^@endunless build-$module\$/d
11040 /^@if build-$module-$bootstrap_suffix\$/d
11041 /^@endif build-$module-$bootstrap_suffix\$/d
11042 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
11045 for module
in ${configdirs} ; do
11046 if test -z "${no_recursion}"; then
11047 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
11048 if test -f ${file}; then
11049 echo 1>&2 "*** removing ${file} to force reconfigure"
11054 case ${module},${bootstrap_fixincludes} in
11055 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
11056 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
11058 extrasub_host
="$extrasub_host
11060 /^@endif $module\$/d
11061 /^@unless $module\$/,/^@endunless $module\$/d
11062 /^@if $module-$host_bootstrap_suffix\$/d
11063 /^@endif $module-$host_bootstrap_suffix\$/d
11064 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
11067 for module
in ${target_configdirs} ; do
11068 if test -z "${no_recursion}" \
11069 && test -f ${target_subdir}/${module}/Makefile
; then
11070 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
11071 rm -f ${target_subdir}/${module}/Makefile
11074 # We only bootstrap target libraries listed in bootstrap_target_libs.
11075 case $bootstrap_target_libs in
11076 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
11077 *) target_bootstrap_suffix
=no-bootstrap
;;
11080 extrasub_target
="$extrasub_target
11081 /^@if target-$module\$/d
11082 /^@endif target-$module\$/d
11083 /^@unless target-$module\$/,/^@endunless target-$module\$/d
11084 /^@if target-$module-$target_bootstrap_suffix\$/d
11085 /^@endif target-$module-$target_bootstrap_suffix\$/d
11086 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
11089 # Do the final fixup along with target modules.
11090 extrasub_target
="$extrasub_target
11091 /^@if /,/^@endif /d
11095 if test "$enable_pgo_build" != "no"; then
11096 extrasub_build
="$extrasub_build
11097 /^@if pgo-build\$/d
11098 /^@endif pgo-build\$/d"
11101 # Create the serialization dependencies. This uses a temporary file.
11103 # Check whether --enable-serial-configure was given.
11104 if test "${enable_serial_configure+set}" = set; then :
11105 enableval
=$enable_serial_configure;
11109 case ${enable_serial_configure} in
11111 enable_serial_build_configure
=yes
11112 enable_serial_host_configure
=yes
11113 enable_serial_target_configure
=yes
11117 # These force 'configure's to be done one at a time, to avoid problems
11118 # with contention over a shared config.cache.
11120 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes
; then
11121 echo '# serdep.tmp' > serdep.tmp
11124 test "x${enable_serial_build_configure}" = xyes
&&
11125 for item
in ${build_configdirs} ; do
11128 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
11133 test "x${enable_serial_host_configure}" = xyes
&&
11134 for item
in ${configdirs} ; do
11137 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
11142 test "x${enable_serial_target_configure}" = xyes
&&
11143 for item
in ${target_configdirs} ; do
11146 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
11150 serialization_dependencies
=serdep.tmp
11153 # Base args. Strip norecursion, cache-file, srcdir, host, build,
11154 # target, nonopt, and variable assignments. These are the ones we
11155 # might not want to pass down to subconfigures. The exception being
11156 # --cache-file=/dev/null, which is used to turn off the use of cache
11157 # files altogether, and which should be passed on to subconfigures.
11158 # Also strip program-prefix, program-suffix, and program-transform-name,
11159 # so that we can pass down a consistent program-transform-name.
11165 eval "set -- $ac_configure_args"
11168 if test X
"$skip_next" = X
"yes"; then
11172 if test X
"$keep_next" = X
"yes"; then
11175 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11177 hbaseargs
="$hbaseargs '$ac_arg'"
11178 bbaseargs
="$bbaseargs '$ac_arg'"
11179 tbaseargs
="$tbaseargs '$ac_arg'"
11184 # Handle separated arguments. Based on the logic generated by
11187 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
11188 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
11189 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
11190 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
11205 --with-* |
--without-*)
11206 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
11210 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
11213 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
11216 lib
=`echo "$libopt" | sed 's,[-_]prefix$,,'`
11219 lib
=`echo "$libopt" | sed 's,[-_]type$,,'`
11228 mpc | mpfr | gmp | isl
)
11229 # If we're processing --with-$lib, --with-$lib-include or
11230 # --with-$lib-lib, for one of the libs above, and target is
11231 # different from host, don't pass the current argument to any
11232 # target library's configure.
11233 if test x
$is_cross_compiler = xyes
; then
11237 libintl | libiconv
)
11238 # We don't want libintl (and co.) in anything but the host arguments.
11247 --cache-file=/dev
/null | \
11248 -cache-file=/dev
/null
)
11249 # Handled here to avoid the test to skip args below.
11250 hbaseargs
="$hbaseargs '$ac_arg'"
11251 bbaseargs
="$bbaseargs '$ac_arg'"
11252 tbaseargs
="$tbaseargs '$ac_arg'"
11253 # Assert: $separate_arg should always be no.
11254 keep_next
=$separate_arg
11270 -program-prefix* | \
11271 -program-suffix* | \
11272 -program-transform-name* )
11273 skip_next
=$separate_arg
11277 # An option. Add it.
11280 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
11282 hbaseargs
="$hbaseargs '$ac_arg'"
11283 if test X
"$skip_barg" = Xno
; then
11284 bbaseargs
="$bbaseargs '$ac_arg'"
11286 if test X
"$skip_targ" = Xno
; then
11287 tbaseargs
="$tbaseargs '$ac_arg'"
11289 keep_next
=$separate_arg
11292 # Either a variable assignment, or a nonopt (triplet). Don't
11293 # pass it down; let the Makefile handle this.
11298 # Remove the initial space we just introduced and, as these will be
11299 # expanded by make, quote '$'.
11300 hbaseargs
=`echo "x$hbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11301 bbaseargs
=`echo "x$bbaseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
11303 # Add in --program-transform-name, after --program-prefix and
11304 # --program-suffix have been applied to it. Autoconf has already
11305 # doubled dollar signs and backslashes in program_transform_name; we want
11306 # the backslashes un-doubled, and then the entire thing wrapped in single
11307 # quotes, because this will be expanded first by make and then by the shell.
11308 # Also, because we want to override the logic in subdir configure scripts to
11309 # choose program_transform_name, replace any s,x,x, with s,y,y,.
11310 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
11311 ${program_transform_name}
11313 gcc_transform_name
=`cat conftestsed.out`
11314 rm -f conftestsed.out
11315 hbaseargs
="$hbaseargs --program-transform-name='${gcc_transform_name}'"
11316 bbaseargs
="$bbaseargs --program-transform-name='${gcc_transform_name}'"
11317 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
11318 if test "$silent" = yes; then
11319 bbaseargs
="$bbaseargs --silent"
11320 hbaseargs
="$hbaseargs --silent"
11321 tbaseargs
="$tbaseargs --silent"
11324 bbaseargs
="$bbaseargs --disable-option-checking"
11325 hbaseargs
="$hbaseargs --disable-option-checking"
11326 tbaseargs
="$tbaseargs --disable-option-checking"
11328 if test "$enable_year2038" = no
; then
11329 bbaseargs
="$bbaseargs --disable-year2038"
11330 hbaseargs
="$hbaseargs --disable-year2038"
11331 tbaseargs
="$tbaseargs --disable-year2038"
11334 # Record and document user additions to sub configure arguments.
11339 # For the build-side libraries, we just need to pretend we're native,
11340 # and not use the same cache file. Multilibs are neither needed nor
11341 # desired. We can't even use the same cache file for all build-side
11342 # libraries, as they're compiled differently; some with C, some with
11343 # C++ or with different feature-enabling options.
11344 build_configargs
="$build_configargs --cache-file=./config.cache ${bbaseargs}"
11346 # For host modules, accept cache file option, or specification as blank.
11347 case "${cache_file}" in
11349 cache_file_option
="" ;;
11350 /* |
[A-Za-z
]:[\\/]* ) # absolute path
11351 cache_file_option
="--cache-file=${cache_file}" ;;
11353 cache_file_option
="--cache-file=../${cache_file}" ;;
11356 # Host dirs don't like to share a cache file either, horribly enough.
11357 # This seems to be due to autoconf 2.5x stupidity.
11358 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${hbaseargs}"
11360 target_configargs
="$target_configargs ${tbaseargs}"
11362 # Passing a --with-cross-host argument lets the target libraries know
11363 # whether they are being built with a cross-compiler or being built
11364 # native. However, it would be better to use other mechanisms to make the
11365 # sorts of decisions they want to make on this basis. Please consider
11366 # this option to be deprecated. FIXME.
11367 if test x
${is_cross_compiler} = xyes
; then
11368 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
11371 # Special user-friendly check for native x86_64-linux build, if
11372 # multilib is not explicitly enabled.
11373 case "$target:$have_compiler:$host:$target:$enable_multilib" in
11374 x86_64-
*linux
*:yes:$build:$build:)
11375 # Make sure we have a development environment that handles 32-bit
11377 echo "int main () { return 0; }" > conftest.c
11378 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
11379 if test $?
= 0 ; then
11380 if test -s conftest ||
test -s conftest.exe
; then
11385 if test x
${dev64} != xyes
; then
11386 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
11391 # Default to --enable-multilib.
11392 if test x
${enable_multilib} = x
; then
11393 target_configargs
="--enable-multilib ${target_configargs}"
11396 # Pass --with-newlib if appropriate. Note that target_configdirs has
11397 # changed from the earlier setting of with_newlib.
11398 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
11399 target_configargs
="--with-newlib ${target_configargs}"
11402 # Different target subdirs use different values of certain variables
11403 # (notably CXX). Worse, multilibs use *lots* of different values.
11404 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
11405 # it doesn't automatically accept command-line overrides of them.
11406 # This means it's not safe for target subdirs to share a cache file,
11407 # which is disgusting, but there you have it. Hopefully this can be
11408 # fixed in future. It's still worthwhile to use a cache file for each
11409 # directory. I think.
11411 # Pass the appropriate --build, --host, --target and --cache-file arguments.
11412 # We need to pass --target, as newer autoconf's requires consistency
11413 # for target_alias and gcc doesn't manage it consistently.
11414 target_configargs
="--cache-file=./config.cache ${target_configargs}"
11417 case " $target_configdirs " in
11419 case " $target_configargs " in
11420 *" --with-newlib "*)
11423 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
11427 # If we're not building GCC, don't discard standard headers.
11428 if test -d ${srcdir}/gcc
; then
11429 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
11431 if test "${build}" != "${host}"; then
11432 # On Canadian crosses, CC_FOR_TARGET will have already been set
11433 # by `configure', so we won't have an opportunity to add -Bgcc/
11434 # to it. This is right: we don't want to search that directory
11435 # for binaries, but we want the header files in there, so add
11437 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
11439 # Someone might think of using the pre-installed headers on
11440 # Canadian crosses, in case the installed compiler is not fully
11441 # compatible with the compiler being built. In this case, it
11442 # would be better to flag an error than risking having
11443 # incompatible object files being constructed. We can't
11444 # guarantee that an error will be flagged, but let's hope the
11445 # compiler will do it, when presented with incompatible header
11450 case "${target}-${is_cross_compiler}" in
11451 i
[3456789]86-*-linux*-no)
11452 # Here host == target, so we don't need to build gcc,
11453 # so we don't want to discard standard headers.
11454 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
11457 # If we're building newlib, use its generic headers last, but search
11458 # for any libc-related directories first (so make it the last -B
11460 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
11462 # If we're building libgloss, find the startup file, simulator library
11463 # and linker script.
11464 case " $target_configdirs " in
11466 # Look for startup file, simulator library and maybe linker script.
11467 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
11468 # Look for libnosys.a in case the target needs it.
11469 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
11470 # Most targets have the linker script in the source directory.
11471 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
11482 x86_64-
*mingw
* |
*-w64-mingw*)
11483 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
11484 # however, use a symlink named 'mingw' in ${prefix} .
11485 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
11488 # MinGW can't be handled as Cygwin above since it does not use newlib.
11489 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'
11493 # Allow the user to override the flags for
11494 # our build compiler if desired.
11495 if test x
"${build}" = x
"${host}" ; then
11496 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
11497 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
11498 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
11499 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
11502 # On Canadian crosses, we'll be searching the right directories for
11503 # the previously-installed cross compiler, so don't bother to add
11504 # flags for directories within the install tree of the compiler
11505 # being built; programs in there won't even run.
11506 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
11507 # Search for pre-installed headers if nothing else fits.
11508 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
11511 if test "x
${use_gnu_ld}" = x &&
11512 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
11513 # Arrange for us to find uninstalled linker scripts.
11514 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
11517 # Search for other target-specific linker scripts and such.
11518 case "${target}" in
11520 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
11522 # The VxWorks support for shared libraries is getting in
11523 # incrementally. Make sure it doesn't get activated implicitly:
11525 if test "${enable_shared-unset}" = unset ; then
11527 # So the build of libraries knows ...
11528 target_configargs="${target_configargs} --disable-shared"
11530 host_configargs="${host_configargs} --disable-shared"
11535 # Makefile fragments.
11536 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
11538 eval fragval=\$$frag
11539 if test $fragval != /dev/null; then
11540 eval $frag=${srcdir}/$fragval
11548 # Miscellanea: directories, flags, etc.
11557 # Build module lists & subconfigure args.
11561 # Host module lists & subconfigure args.
11566 # Target module lists & subconfigure args.
11591 # Generate default definitions for YACC, M4, LEX and other programs that run
11592 # on the build machine. These are used if the Makefile can't locate these
11593 # programs in objdir.
11594 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
11596 for ac_prog in 'bison -y' byacc yacc
11598 # Extract the first word of "$ac_prog", so it can be a program name with args.
11599 set dummy $ac_prog; ac_word=$2
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11601 $as_echo_n "checking
for $ac_word...
" >&6; }
11602 if ${ac_cv_prog_YACC+:} false; then :
11603 $as_echo_n "(cached
) " >&6
11605 if test -n "$YACC"; then
11606 ac_cv_prog_YACC="$YACC" # Let the user override the test.
11608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11612 test -z "$as_dir" && as_dir=.
11613 for ac_exec_ext in '' $ac_executable_extensions; do
11614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11615 ac_cv_prog_YACC="$ac_prog"
11616 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11625 YACC=$ac_cv_prog_YACC
11626 if test -n "$YACC"; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
11628 $as_echo "$YACC" >&6; }
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11631 $as_echo "no
" >&6; }
11635 test -n "$YACC" && break
11637 test -n "$YACC" || YACC="$MISSING bison
-y"
11639 case " $build_configdirs " in
11640 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
11643 for ac_prog in bison
11645 # Extract the first word of "$ac_prog", so it can be a program name with args.
11646 set dummy $ac_prog; ac_word=$2
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11648 $as_echo_n "checking
for $ac_word...
" >&6; }
11649 if ${ac_cv_prog_BISON+:} false; then :
11650 $as_echo_n "(cached
) " >&6
11652 if test -n "$BISON"; then
11653 ac_cv_prog_BISON="$BISON" # Let the user override the test.
11655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656 for as_dir in $PATH
11659 test -z "$as_dir" && as_dir=.
11660 for ac_exec_ext in '' $ac_executable_extensions; do
11661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11662 ac_cv_prog_BISON="$ac_prog"
11663 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11672 BISON=$ac_cv_prog_BISON
11673 if test -n "$BISON"; then
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
11675 $as_echo "$BISON" >&6; }
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11678 $as_echo "no
" >&6; }
11682 test -n "$BISON" && break
11684 test -n "$BISON" || BISON="$MISSING bison
"
11686 case " $build_configdirs " in
11687 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
11690 for ac_prog in gm4 gnum4 m4
11692 # Extract the first word of "$ac_prog", so it can be a program name with args.
11693 set dummy $ac_prog; ac_word=$2
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11695 $as_echo_n "checking
for $ac_word...
" >&6; }
11696 if ${ac_cv_prog_M4+:} false; then :
11697 $as_echo_n "(cached
) " >&6
11699 if test -n "$M4"; then
11700 ac_cv_prog_M4="$M4" # Let the user override the test.
11702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11703 for as_dir in $PATH
11706 test -z "$as_dir" && as_dir=.
11707 for ac_exec_ext in '' $ac_executable_extensions; do
11708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11709 ac_cv_prog_M4="$ac_prog"
11710 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11720 if test -n "$M4"; then
11721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
11722 $as_echo "$M4" >&6; }
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11725 $as_echo "no
" >&6; }
11729 test -n "$M4" && break
11731 test -n "$M4" || M4="$MISSING m4"
11733 case " $build_configdirs " in
11734 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
11737 for ac_prog in flex lex
11739 # Extract the first word of "$ac_prog", so it can be a program name with args.
11740 set dummy $ac_prog; ac_word=$2
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11742 $as_echo_n "checking
for $ac_word...
" >&6; }
11743 if ${ac_cv_prog_LEX+:} false; then :
11744 $as_echo_n "(cached
) " >&6
11746 if test -n "$LEX"; then
11747 ac_cv_prog_LEX="$LEX" # Let the user override the test.
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11756 ac_cv_prog_LEX="$ac_prog"
11757 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11766 LEX=$ac_cv_prog_LEX
11767 if test -n "$LEX"; then
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
11769 $as_echo "$LEX" >&6; }
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11772 $as_echo "no
" >&6; }
11776 test -n "$LEX" && break
11778 test -n "$LEX" || LEX="$MISSING flex
"
11780 case " $build_configdirs " in
11781 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11782 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
11785 for ac_prog in flex
11787 # Extract the first word of "$ac_prog", so it can be a program name with args.
11788 set dummy $ac_prog; ac_word=$2
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11790 $as_echo_n "checking
for $ac_word...
" >&6; }
11791 if ${ac_cv_prog_FLEX+:} false; then :
11792 $as_echo_n "(cached
) " >&6
11794 if test -n "$FLEX"; then
11795 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
11797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11798 for as_dir in $PATH
11801 test -z "$as_dir" && as_dir=.
11802 for ac_exec_ext in '' $ac_executable_extensions; do
11803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11804 ac_cv_prog_FLEX="$ac_prog"
11805 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11814 FLEX=$ac_cv_prog_FLEX
11815 if test -n "$FLEX"; then
11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
11817 $as_echo "$FLEX" >&6; }
11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11820 $as_echo "no
" >&6; }
11824 test -n "$FLEX" && break
11826 test -n "$FLEX" || FLEX="$MISSING flex
"
11828 case " $build_configdirs " in
11829 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
11832 for ac_prog in makeinfo
11834 # Extract the first word of "$ac_prog", so it can be a program name with args.
11835 set dummy $ac_prog; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11837 $as_echo_n "checking
for $ac_word...
" >&6; }
11838 if ${ac_cv_prog_MAKEINFO+:} false; then :
11839 $as_echo_n "(cached
) " >&6
11841 if test -n "$MAKEINFO"; then
11842 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH
11848 test -z "$as_dir" && as_dir=.
11849 for ac_exec_ext in '' $ac_executable_extensions; do
11850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11851 ac_cv_prog_MAKEINFO="$ac_prog"
11852 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11861 MAKEINFO=$ac_cv_prog_MAKEINFO
11862 if test -n "$MAKEINFO"; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
11864 $as_echo "$MAKEINFO" >&6; }
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11867 $as_echo "no
" >&6; }
11871 test -n "$MAKEINFO" && break
11873 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
11875 case " $build_configdirs " in
11876 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
11879 # For an installed makeinfo, we require it to be from texinfo 4.7 or
11880 # higher, else we use the "missing
" dummy.
11881 if ${MAKEINFO} --version \
11882 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
11885 MAKEINFO="$MISSING makeinfo
"
11891 # FIXME: expect and dejagnu may become build tools?
11893 for ac_prog in expect
11895 # Extract the first word of "$ac_prog", so it can be a program name with args.
11896 set dummy $ac_prog; ac_word=$2
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11898 $as_echo_n "checking
for $ac_word...
" >&6; }
11899 if ${ac_cv_prog_EXPECT+:} false; then :
11900 $as_echo_n "(cached
) " >&6
11902 if test -n "$EXPECT"; then
11903 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
11905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11906 for as_dir in $PATH
11909 test -z "$as_dir" && as_dir=.
11910 for ac_exec_ext in '' $ac_executable_extensions; do
11911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11912 ac_cv_prog_EXPECT="$ac_prog"
11913 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11922 EXPECT=$ac_cv_prog_EXPECT
11923 if test -n "$EXPECT"; then
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
11925 $as_echo "$EXPECT" >&6; }
11927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11928 $as_echo "no
" >&6; }
11932 test -n "$EXPECT" && break
11934 test -n "$EXPECT" || EXPECT="expect
"
11936 case " $configdirs " in
11938 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
11942 for ac_prog in runtest
11944 # Extract the first word of "$ac_prog", so it can be a program name with args.
11945 set dummy $ac_prog; ac_word=$2
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11947 $as_echo_n "checking
for $ac_word...
" >&6; }
11948 if ${ac_cv_prog_RUNTEST+:} false; then :
11949 $as_echo_n "(cached
) " >&6
11951 if test -n "$RUNTEST"; then
11952 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
11954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11955 for as_dir in $PATH
11958 test -z "$as_dir" && as_dir=.
11959 for ac_exec_ext in '' $ac_executable_extensions; do
11960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11961 ac_cv_prog_RUNTEST="$ac_prog"
11962 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11971 RUNTEST=$ac_cv_prog_RUNTEST
11972 if test -n "$RUNTEST"; then
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
11974 $as_echo "$RUNTEST" >&6; }
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11977 $as_echo "no
" >&6; }
11981 test -n "$RUNTEST" && break
11983 test -n "$RUNTEST" || RUNTEST="runtest
"
11985 case " $configdirs " in
11987 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
11994 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
11995 ncn_target_tool_prefix=
11996 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
12000 if test -n "$AR"; then
12002 elif test -n "$ac_cv_prog_AR"; then
12006 if test -n "$ac_cv_prog_AR"; then
12007 for ncn_progname in ar; do
12008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12009 set dummy ${ncn_progname}; ac_word=$2
12010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12011 $as_echo_n "checking
for $ac_word...
" >&6; }
12012 if ${ac_cv_prog_AR+:} false; then :
12013 $as_echo_n "(cached
) " >&6
12015 if test -n "$AR"; then
12016 ac_cv_prog_AR="$AR" # Let the user override the test.
12018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12019 for as_dir in $PATH
12022 test -z "$as_dir" && as_dir=.
12023 for ac_exec_ext in '' $ac_executable_extensions; do
12024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12025 ac_cv_prog_AR="${ncn_progname}"
12026 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12036 if test -n "$AR"; then
12037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12038 $as_echo "$AR" >&6; }
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12041 $as_echo "no
" >&6; }
12048 for ncn_progname in ar; do
12049 if test -n "$ncn_tool_prefix"; then
12050 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12051 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12053 $as_echo_n "checking
for $ac_word...
" >&6; }
12054 if ${ac_cv_prog_AR+:} false; then :
12055 $as_echo_n "(cached
) " >&6
12057 if test -n "$AR"; then
12058 ac_cv_prog_AR="$AR" # Let the user override the test.
12060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12061 for as_dir in $PATH
12064 test -z "$as_dir" && as_dir=.
12065 for ac_exec_ext in '' $ac_executable_extensions; do
12066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12067 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
12068 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12078 if test -n "$AR"; then
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12080 $as_echo "$AR" >&6; }
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12083 $as_echo "no
" >&6; }
12088 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
12089 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12090 set dummy ${ncn_progname}; ac_word=$2
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12092 $as_echo_n "checking
for $ac_word...
" >&6; }
12093 if ${ac_cv_prog_AR+:} false; then :
12094 $as_echo_n "(cached
) " >&6
12096 if test -n "$AR"; then
12097 ac_cv_prog_AR="$AR" # Let the user override the test.
12099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12100 for as_dir in $PATH
12103 test -z "$as_dir" && as_dir=.
12104 for ac_exec_ext in '' $ac_executable_extensions; do
12105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12106 ac_cv_prog_AR="${ncn_progname}"
12107 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12117 if test -n "$AR"; then
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12119 $as_echo "$AR" >&6; }
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12122 $as_echo "no
" >&6; }
12127 test -n "$ac_cv_prog_AR" && break
12130 if test -z "$ac_cv_prog_AR" ; then
12132 if test $build = $host ; then
12135 AR="${ncn_tool_prefix}$2"
12141 if test -n "$AS"; then
12143 elif test -n "$ac_cv_prog_AS"; then
12147 if test -n "$ac_cv_prog_AS"; then
12148 for ncn_progname in as; do
12149 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12150 set dummy ${ncn_progname}; ac_word=$2
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12152 $as_echo_n "checking
for $ac_word...
" >&6; }
12153 if ${ac_cv_prog_AS+:} false; then :
12154 $as_echo_n "(cached
) " >&6
12156 if test -n "$AS"; then
12157 ac_cv_prog_AS="$AS" # Let the user override the test.
12159 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12160 for as_dir in $PATH
12163 test -z "$as_dir" && as_dir=.
12164 for ac_exec_ext in '' $ac_executable_extensions; do
12165 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12166 ac_cv_prog_AS="${ncn_progname}"
12167 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12177 if test -n "$AS"; then
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
12179 $as_echo "$AS" >&6; }
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12182 $as_echo "no
" >&6; }
12189 for ncn_progname in as; do
12190 if test -n "$ncn_tool_prefix"; then
12191 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12192 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12194 $as_echo_n "checking
for $ac_word...
" >&6; }
12195 if ${ac_cv_prog_AS+:} false; then :
12196 $as_echo_n "(cached
) " >&6
12198 if test -n "$AS"; then
12199 ac_cv_prog_AS="$AS" # Let the user override the test.
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12208 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
12209 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12219 if test -n "$AS"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
12221 $as_echo "$AS" >&6; }
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12224 $as_echo "no
" >&6; }
12229 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
12230 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12231 set dummy ${ncn_progname}; ac_word=$2
12232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12233 $as_echo_n "checking
for $ac_word...
" >&6; }
12234 if ${ac_cv_prog_AS+:} false; then :
12235 $as_echo_n "(cached
) " >&6
12237 if test -n "$AS"; then
12238 ac_cv_prog_AS="$AS" # Let the user override the test.
12240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12241 for as_dir in $PATH
12244 test -z "$as_dir" && as_dir=.
12245 for ac_exec_ext in '' $ac_executable_extensions; do
12246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12247 ac_cv_prog_AS="${ncn_progname}"
12248 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12258 if test -n "$AS"; then
12259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
12260 $as_echo "$AS" >&6; }
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12263 $as_echo "no
" >&6; }
12268 test -n "$ac_cv_prog_AS" && break
12271 if test -z "$ac_cv_prog_AS" ; then
12273 if test $build = $host ; then
12276 AS="${ncn_tool_prefix}$2"
12282 if test -n "$DLLTOOL"; then
12283 ac_cv_prog_DLLTOOL=$DLLTOOL
12284 elif test -n "$ac_cv_prog_DLLTOOL"; then
12285 DLLTOOL=$ac_cv_prog_DLLTOOL
12288 if test -n "$ac_cv_prog_DLLTOOL"; then
12289 for ncn_progname in dlltool; do
12290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12291 set dummy ${ncn_progname}; ac_word=$2
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12293 $as_echo_n "checking
for $ac_word...
" >&6; }
12294 if ${ac_cv_prog_DLLTOOL+:} false; then :
12295 $as_echo_n "(cached
) " >&6
12297 if test -n "$DLLTOOL"; then
12298 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12301 for as_dir in $PATH
12304 test -z "$as_dir" && as_dir=.
12305 for ac_exec_ext in '' $ac_executable_extensions; do
12306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12307 ac_cv_prog_DLLTOOL="${ncn_progname}"
12308 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12317 DLLTOOL=$ac_cv_prog_DLLTOOL
12318 if test -n "$DLLTOOL"; then
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
12320 $as_echo "$DLLTOOL" >&6; }
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12323 $as_echo "no
" >&6; }
12330 for ncn_progname in dlltool; do
12331 if test -n "$ncn_tool_prefix"; then
12332 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12333 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12335 $as_echo_n "checking
for $ac_word...
" >&6; }
12336 if ${ac_cv_prog_DLLTOOL+:} false; then :
12337 $as_echo_n "(cached
) " >&6
12339 if test -n "$DLLTOOL"; then
12340 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12346 test -z "$as_dir" && as_dir=.
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12349 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
12350 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12359 DLLTOOL=$ac_cv_prog_DLLTOOL
12360 if test -n "$DLLTOOL"; then
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
12362 $as_echo "$DLLTOOL" >&6; }
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12365 $as_echo "no
" >&6; }
12370 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
12371 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12372 set dummy ${ncn_progname}; ac_word=$2
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12374 $as_echo_n "checking
for $ac_word...
" >&6; }
12375 if ${ac_cv_prog_DLLTOOL+:} false; then :
12376 $as_echo_n "(cached
) " >&6
12378 if test -n "$DLLTOOL"; then
12379 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
12381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12382 for as_dir in $PATH
12385 test -z "$as_dir" && as_dir=.
12386 for ac_exec_ext in '' $ac_executable_extensions; do
12387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12388 ac_cv_prog_DLLTOOL="${ncn_progname}"
12389 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12398 DLLTOOL=$ac_cv_prog_DLLTOOL
12399 if test -n "$DLLTOOL"; then
12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
12401 $as_echo "$DLLTOOL" >&6; }
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12404 $as_echo "no
" >&6; }
12409 test -n "$ac_cv_prog_DLLTOOL" && break
12412 if test -z "$ac_cv_prog_DLLTOOL" ; then
12414 if test $build = $host ; then
12417 DLLTOOL="${ncn_tool_prefix}$2"
12423 if test -n "$DSYMUTIL"; then
12424 ac_cv_prog_DSYMUTIL=$DSYMUTIL
12425 elif test -n "$ac_cv_prog_DSYMUTIL"; then
12426 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12429 if test -n "$ac_cv_prog_DSYMUTIL"; then
12430 for ncn_progname in dsymutil; do
12431 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12432 set dummy ${ncn_progname}; ac_word=$2
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12434 $as_echo_n "checking
for $ac_word...
" >&6; }
12435 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12436 $as_echo_n "(cached
) " >&6
12438 if test -n "$DSYMUTIL"; then
12439 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12442 for as_dir in $PATH
12445 test -z "$as_dir" && as_dir=.
12446 for ac_exec_ext in '' $ac_executable_extensions; do
12447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12448 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12449 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12458 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12459 if test -n "$DSYMUTIL"; then
12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
12461 $as_echo "$DSYMUTIL" >&6; }
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12464 $as_echo "no
" >&6; }
12471 for ncn_progname in dsymutil; do
12472 if test -n "$ncn_tool_prefix"; then
12473 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12474 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12476 $as_echo_n "checking
for $ac_word...
" >&6; }
12477 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12478 $as_echo_n "(cached
) " >&6
12480 if test -n "$DSYMUTIL"; then
12481 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12490 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
12491 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12500 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12501 if test -n "$DSYMUTIL"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
12503 $as_echo "$DSYMUTIL" >&6; }
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12506 $as_echo "no
" >&6; }
12511 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
12512 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12513 set dummy ${ncn_progname}; ac_word=$2
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12515 $as_echo_n "checking
for $ac_word...
" >&6; }
12516 if ${ac_cv_prog_DSYMUTIL+:} false; then :
12517 $as_echo_n "(cached
) " >&6
12519 if test -n "$DSYMUTIL"; then
12520 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12523 for as_dir in $PATH
12526 test -z "$as_dir" && as_dir=.
12527 for ac_exec_ext in '' $ac_executable_extensions; do
12528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12529 ac_cv_prog_DSYMUTIL="${ncn_progname}"
12530 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12539 DSYMUTIL=$ac_cv_prog_DSYMUTIL
12540 if test -n "$DSYMUTIL"; then
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
12542 $as_echo "$DSYMUTIL" >&6; }
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12545 $as_echo "no
" >&6; }
12550 test -n "$ac_cv_prog_DSYMUTIL" && break
12553 if test -z "$ac_cv_prog_DSYMUTIL" ; then
12555 if test $build = $host ; then
12558 DSYMUTIL="${ncn_tool_prefix}$2"
12564 if test -n "$LD"; then
12566 elif test -n "$ac_cv_prog_LD"; then
12570 if test -n "$ac_cv_prog_LD"; then
12571 for ncn_progname in ld; do
12572 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12573 set dummy ${ncn_progname}; ac_word=$2
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12575 $as_echo_n "checking
for $ac_word...
" >&6; }
12576 if ${ac_cv_prog_LD+:} false; then :
12577 $as_echo_n "(cached
) " >&6
12579 if test -n "$LD"; then
12580 ac_cv_prog_LD="$LD" # Let the user override the test.
12582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12583 for as_dir in $PATH
12586 test -z "$as_dir" && as_dir=.
12587 for ac_exec_ext in '' $ac_executable_extensions; do
12588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12589 ac_cv_prog_LD="${ncn_progname}"
12590 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12600 if test -n "$LD"; then
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
12602 $as_echo "$LD" >&6; }
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12605 $as_echo "no
" >&6; }
12612 for ncn_progname in ld; do
12613 if test -n "$ncn_tool_prefix"; then
12614 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12615 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12617 $as_echo_n "checking
for $ac_word...
" >&6; }
12618 if ${ac_cv_prog_LD+:} false; then :
12619 $as_echo_n "(cached
) " >&6
12621 if test -n "$LD"; then
12622 ac_cv_prog_LD="$LD" # Let the user override the test.
12624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
12630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12631 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
12632 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12642 if test -n "$LD"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
12644 $as_echo "$LD" >&6; }
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12647 $as_echo "no
" >&6; }
12652 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
12653 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12654 set dummy ${ncn_progname}; ac_word=$2
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12656 $as_echo_n "checking
for $ac_word...
" >&6; }
12657 if ${ac_cv_prog_LD+:} false; then :
12658 $as_echo_n "(cached
) " >&6
12660 if test -n "$LD"; then
12661 ac_cv_prog_LD="$LD" # Let the user override the test.
12663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12664 for as_dir in $PATH
12667 test -z "$as_dir" && as_dir=.
12668 for ac_exec_ext in '' $ac_executable_extensions; do
12669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12670 ac_cv_prog_LD="${ncn_progname}"
12671 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12681 if test -n "$LD"; then
12682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
12683 $as_echo "$LD" >&6; }
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12686 $as_echo "no
" >&6; }
12691 test -n "$ac_cv_prog_LD" && break
12694 if test -z "$ac_cv_prog_LD" ; then
12696 if test $build = $host ; then
12699 LD="${ncn_tool_prefix}$2"
12705 if test -n "$LIPO"; then
12706 ac_cv_prog_LIPO=$LIPO
12707 elif test -n "$ac_cv_prog_LIPO"; then
12708 LIPO=$ac_cv_prog_LIPO
12711 if test -n "$ac_cv_prog_LIPO"; then
12712 for ncn_progname in lipo; do
12713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12714 set dummy ${ncn_progname}; ac_word=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12716 $as_echo_n "checking
for $ac_word...
" >&6; }
12717 if ${ac_cv_prog_LIPO+:} false; then :
12718 $as_echo_n "(cached
) " >&6
12720 if test -n "$LIPO"; then
12721 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in $PATH
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12730 ac_cv_prog_LIPO="${ncn_progname}"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12740 LIPO=$ac_cv_prog_LIPO
12741 if test -n "$LIPO"; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
12743 $as_echo "$LIPO" >&6; }
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12746 $as_echo "no
" >&6; }
12753 for ncn_progname in lipo; do
12754 if test -n "$ncn_tool_prefix"; then
12755 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12756 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12758 $as_echo_n "checking
for $ac_word...
" >&6; }
12759 if ${ac_cv_prog_LIPO+:} false; then :
12760 $as_echo_n "(cached
) " >&6
12762 if test -n "$LIPO"; then
12763 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766 for as_dir in $PATH
12769 test -z "$as_dir" && as_dir=.
12770 for ac_exec_ext in '' $ac_executable_extensions; do
12771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12772 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
12773 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12782 LIPO=$ac_cv_prog_LIPO
12783 if test -n "$LIPO"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
12785 $as_echo "$LIPO" >&6; }
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12788 $as_echo "no
" >&6; }
12793 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
12794 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12795 set dummy ${ncn_progname}; ac_word=$2
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12797 $as_echo_n "checking
for $ac_word...
" >&6; }
12798 if ${ac_cv_prog_LIPO+:} false; then :
12799 $as_echo_n "(cached
) " >&6
12801 if test -n "$LIPO"; then
12802 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12805 for as_dir in $PATH
12808 test -z "$as_dir" && as_dir=.
12809 for ac_exec_ext in '' $ac_executable_extensions; do
12810 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12811 ac_cv_prog_LIPO="${ncn_progname}"
12812 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12821 LIPO=$ac_cv_prog_LIPO
12822 if test -n "$LIPO"; then
12823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
12824 $as_echo "$LIPO" >&6; }
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12827 $as_echo "no
" >&6; }
12832 test -n "$ac_cv_prog_LIPO" && break
12835 if test -z "$ac_cv_prog_LIPO" ; then
12837 if test $build = $host ; then
12840 LIPO="${ncn_tool_prefix}$2"
12846 if test -n "$NM"; then
12848 elif test -n "$ac_cv_prog_NM"; then
12852 if test -n "$ac_cv_prog_NM"; then
12853 for ncn_progname in nm; do
12854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12855 set dummy ${ncn_progname}; ac_word=$2
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12857 $as_echo_n "checking
for $ac_word...
" >&6; }
12858 if ${ac_cv_prog_NM+:} false; then :
12859 $as_echo_n "(cached
) " >&6
12861 if test -n "$NM"; then
12862 ac_cv_prog_NM="$NM" # Let the user override the test.
12864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12865 for as_dir in $PATH
12868 test -z "$as_dir" && as_dir=.
12869 for ac_exec_ext in '' $ac_executable_extensions; do
12870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12871 ac_cv_prog_NM="${ncn_progname}"
12872 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12882 if test -n "$NM"; then
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
12884 $as_echo "$NM" >&6; }
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12887 $as_echo "no
" >&6; }
12894 for ncn_progname in nm; do
12895 if test -n "$ncn_tool_prefix"; then
12896 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12897 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12899 $as_echo_n "checking
for $ac_word...
" >&6; }
12900 if ${ac_cv_prog_NM+:} false; then :
12901 $as_echo_n "(cached
) " >&6
12903 if test -n "$NM"; then
12904 ac_cv_prog_NM="$NM" # Let the user override the test.
12906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907 for as_dir in $PATH
12910 test -z "$as_dir" && as_dir=.
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12913 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
12914 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12924 if test -n "$NM"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
12926 $as_echo "$NM" >&6; }
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12929 $as_echo "no
" >&6; }
12934 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
12935 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12936 set dummy ${ncn_progname}; ac_word=$2
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12938 $as_echo_n "checking
for $ac_word...
" >&6; }
12939 if ${ac_cv_prog_NM+:} false; then :
12940 $as_echo_n "(cached
) " >&6
12942 if test -n "$NM"; then
12943 ac_cv_prog_NM="$NM" # Let the user override the test.
12945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12946 for as_dir in $PATH
12949 test -z "$as_dir" && as_dir=.
12950 for ac_exec_ext in '' $ac_executable_extensions; do
12951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12952 ac_cv_prog_NM="${ncn_progname}"
12953 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12963 if test -n "$NM"; then
12964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
12965 $as_echo "$NM" >&6; }
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12968 $as_echo "no
" >&6; }
12973 test -n "$ac_cv_prog_NM" && break
12976 if test -z "$ac_cv_prog_NM" ; then
12978 if test $build = $host ; then
12981 NM="${ncn_tool_prefix}$2"
12987 if test -n "$RANLIB"; then
12988 ac_cv_prog_RANLIB=$RANLIB
12989 elif test -n "$ac_cv_prog_RANLIB"; then
12990 RANLIB=$ac_cv_prog_RANLIB
12993 if test -n "$ac_cv_prog_RANLIB"; then
12994 for ncn_progname in ranlib; do
12995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12996 set dummy ${ncn_progname}; ac_word=$2
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12998 $as_echo_n "checking
for $ac_word...
" >&6; }
12999 if ${ac_cv_prog_RANLIB+:} false; then :
13000 $as_echo_n "(cached
) " >&6
13002 if test -n "$RANLIB"; then
13003 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13006 for as_dir in $PATH
13009 test -z "$as_dir" && as_dir=.
13010 for ac_exec_ext in '' $ac_executable_extensions; do
13011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13012 ac_cv_prog_RANLIB="${ncn_progname}"
13013 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13022 RANLIB=$ac_cv_prog_RANLIB
13023 if test -n "$RANLIB"; then
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13025 $as_echo "$RANLIB" >&6; }
13027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13028 $as_echo "no
" >&6; }
13035 for ncn_progname in ranlib; do
13036 if test -n "$ncn_tool_prefix"; then
13037 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13038 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13040 $as_echo_n "checking
for $ac_word...
" >&6; }
13041 if ${ac_cv_prog_RANLIB+:} false; then :
13042 $as_echo_n "(cached
) " >&6
13044 if test -n "$RANLIB"; then
13045 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13064 RANLIB=$ac_cv_prog_RANLIB
13065 if test -n "$RANLIB"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13067 $as_echo "$RANLIB" >&6; }
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13070 $as_echo "no
" >&6; }
13075 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
13076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13077 set dummy ${ncn_progname}; ac_word=$2
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13079 $as_echo_n "checking
for $ac_word...
" >&6; }
13080 if ${ac_cv_prog_RANLIB+:} false; then :
13081 $as_echo_n "(cached
) " >&6
13083 if test -n "$RANLIB"; then
13084 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13090 test -z "$as_dir" && as_dir=.
13091 for ac_exec_ext in '' $ac_executable_extensions; do
13092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13093 ac_cv_prog_RANLIB="${ncn_progname}"
13094 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13103 RANLIB=$ac_cv_prog_RANLIB
13104 if test -n "$RANLIB"; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
13106 $as_echo "$RANLIB" >&6; }
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13109 $as_echo "no
" >&6; }
13114 test -n "$ac_cv_prog_RANLIB" && break
13117 if test -z "$ac_cv_prog_RANLIB" ; then
13123 if test -n "$STRIP"; then
13124 ac_cv_prog_STRIP=$STRIP
13125 elif test -n "$ac_cv_prog_STRIP"; then
13126 STRIP=$ac_cv_prog_STRIP
13129 if test -n "$ac_cv_prog_STRIP"; then
13130 for ncn_progname in strip; do
13131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13132 set dummy ${ncn_progname}; ac_word=$2
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13134 $as_echo_n "checking
for $ac_word...
" >&6; }
13135 if ${ac_cv_prog_STRIP+:} false; then :
13136 $as_echo_n "(cached
) " >&6
13138 if test -n "$STRIP"; then
13139 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13142 for as_dir in $PATH
13145 test -z "$as_dir" && as_dir=.
13146 for ac_exec_ext in '' $ac_executable_extensions; do
13147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13148 ac_cv_prog_STRIP="${ncn_progname}"
13149 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13158 STRIP=$ac_cv_prog_STRIP
13159 if test -n "$STRIP"; then
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13161 $as_echo "$STRIP" >&6; }
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13164 $as_echo "no
" >&6; }
13171 for ncn_progname in strip; do
13172 if test -n "$ncn_tool_prefix"; then
13173 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13174 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13176 $as_echo_n "checking
for $ac_word...
" >&6; }
13177 if ${ac_cv_prog_STRIP+:} false; then :
13178 $as_echo_n "(cached
) " >&6
13180 if test -n "$STRIP"; then
13181 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13184 for as_dir in $PATH
13187 test -z "$as_dir" && as_dir=.
13188 for ac_exec_ext in '' $ac_executable_extensions; do
13189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13190 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
13191 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13200 STRIP=$ac_cv_prog_STRIP
13201 if test -n "$STRIP"; then
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13203 $as_echo "$STRIP" >&6; }
13205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13206 $as_echo "no
" >&6; }
13211 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
13212 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13213 set dummy ${ncn_progname}; ac_word=$2
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13215 $as_echo_n "checking
for $ac_word...
" >&6; }
13216 if ${ac_cv_prog_STRIP+:} false; then :
13217 $as_echo_n "(cached
) " >&6
13219 if test -n "$STRIP"; then
13220 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13223 for as_dir in $PATH
13226 test -z "$as_dir" && as_dir=.
13227 for ac_exec_ext in '' $ac_executable_extensions; do
13228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13229 ac_cv_prog_STRIP="${ncn_progname}"
13230 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13239 STRIP=$ac_cv_prog_STRIP
13240 if test -n "$STRIP"; then
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
13242 $as_echo "$STRIP" >&6; }
13244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13245 $as_echo "no
" >&6; }
13250 test -n "$ac_cv_prog_STRIP" && break
13253 if test -z "$ac_cv_prog_STRIP" ; then
13259 if test -n "$WINDRES"; then
13260 ac_cv_prog_WINDRES=$WINDRES
13261 elif test -n "$ac_cv_prog_WINDRES"; then
13262 WINDRES=$ac_cv_prog_WINDRES
13265 if test -n "$ac_cv_prog_WINDRES"; then
13266 for ncn_progname in windres; do
13267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13268 set dummy ${ncn_progname}; ac_word=$2
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13270 $as_echo_n "checking
for $ac_word...
" >&6; }
13271 if ${ac_cv_prog_WINDRES+:} false; then :
13272 $as_echo_n "(cached
) " >&6
13274 if test -n "$WINDRES"; then
13275 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278 for as_dir in $PATH
13281 test -z "$as_dir" && as_dir=.
13282 for ac_exec_ext in '' $ac_executable_extensions; do
13283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13284 ac_cv_prog_WINDRES="${ncn_progname}"
13285 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13294 WINDRES=$ac_cv_prog_WINDRES
13295 if test -n "$WINDRES"; then
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
13297 $as_echo "$WINDRES" >&6; }
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13300 $as_echo "no
" >&6; }
13307 for ncn_progname in windres; do
13308 if test -n "$ncn_tool_prefix"; then
13309 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13310 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13312 $as_echo_n "checking
for $ac_word...
" >&6; }
13313 if ${ac_cv_prog_WINDRES+:} false; then :
13314 $as_echo_n "(cached
) " >&6
13316 if test -n "$WINDRES"; then
13317 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13320 for as_dir in $PATH
13323 test -z "$as_dir" && as_dir=.
13324 for ac_exec_ext in '' $ac_executable_extensions; do
13325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13326 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
13327 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13336 WINDRES=$ac_cv_prog_WINDRES
13337 if test -n "$WINDRES"; then
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
13339 $as_echo "$WINDRES" >&6; }
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13342 $as_echo "no
" >&6; }
13347 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
13348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13349 set dummy ${ncn_progname}; ac_word=$2
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13351 $as_echo_n "checking
for $ac_word...
" >&6; }
13352 if ${ac_cv_prog_WINDRES+:} false; then :
13353 $as_echo_n "(cached
) " >&6
13355 if test -n "$WINDRES"; then
13356 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
13358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359 for as_dir in $PATH
13362 test -z "$as_dir" && as_dir=.
13363 for ac_exec_ext in '' $ac_executable_extensions; do
13364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13365 ac_cv_prog_WINDRES="${ncn_progname}"
13366 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13375 WINDRES=$ac_cv_prog_WINDRES
13376 if test -n "$WINDRES"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
13378 $as_echo "$WINDRES" >&6; }
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13381 $as_echo "no
" >&6; }
13386 test -n "$ac_cv_prog_WINDRES" && break
13389 if test -z "$ac_cv_prog_WINDRES" ; then
13391 if test $build = $host ; then
13394 WINDRES="${ncn_tool_prefix}$2"
13400 if test -n "$WINDMC"; then
13401 ac_cv_prog_WINDMC=$WINDMC
13402 elif test -n "$ac_cv_prog_WINDMC"; then
13403 WINDMC=$ac_cv_prog_WINDMC
13406 if test -n "$ac_cv_prog_WINDMC"; then
13407 for ncn_progname in windmc; do
13408 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13409 set dummy ${ncn_progname}; ac_word=$2
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13411 $as_echo_n "checking
for $ac_word...
" >&6; }
13412 if ${ac_cv_prog_WINDMC+:} false; then :
13413 $as_echo_n "(cached
) " >&6
13415 if test -n "$WINDMC"; then
13416 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13419 for as_dir in $PATH
13422 test -z "$as_dir" && as_dir=.
13423 for ac_exec_ext in '' $ac_executable_extensions; do
13424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13425 ac_cv_prog_WINDMC="${ncn_progname}"
13426 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13435 WINDMC=$ac_cv_prog_WINDMC
13436 if test -n "$WINDMC"; then
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
13438 $as_echo "$WINDMC" >&6; }
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13441 $as_echo "no
" >&6; }
13448 for ncn_progname in windmc; do
13449 if test -n "$ncn_tool_prefix"; then
13450 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13451 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13453 $as_echo_n "checking
for $ac_word...
" >&6; }
13454 if ${ac_cv_prog_WINDMC+:} false; then :
13455 $as_echo_n "(cached
) " >&6
13457 if test -n "$WINDMC"; then
13458 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13461 for as_dir in $PATH
13464 test -z "$as_dir" && as_dir=.
13465 for ac_exec_ext in '' $ac_executable_extensions; do
13466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13467 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
13468 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13477 WINDMC=$ac_cv_prog_WINDMC
13478 if test -n "$WINDMC"; then
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
13480 $as_echo "$WINDMC" >&6; }
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13483 $as_echo "no
" >&6; }
13488 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
13489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13490 set dummy ${ncn_progname}; ac_word=$2
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13492 $as_echo_n "checking
for $ac_word...
" >&6; }
13493 if ${ac_cv_prog_WINDMC+:} false; then :
13494 $as_echo_n "(cached
) " >&6
13496 if test -n "$WINDMC"; then
13497 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
13499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13500 for as_dir in $PATH
13503 test -z "$as_dir" && as_dir=.
13504 for ac_exec_ext in '' $ac_executable_extensions; do
13505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13506 ac_cv_prog_WINDMC="${ncn_progname}"
13507 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13516 WINDMC=$ac_cv_prog_WINDMC
13517 if test -n "$WINDMC"; then
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
13519 $as_echo "$WINDMC" >&6; }
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13522 $as_echo "no
" >&6; }
13527 test -n "$ac_cv_prog_WINDMC" && break
13530 if test -z "$ac_cv_prog_WINDMC" ; then
13532 if test $build = $host ; then
13535 WINDMC="${ncn_tool_prefix}$2"
13541 if test -n "$OBJCOPY"; then
13542 ac_cv_prog_OBJCOPY=$OBJCOPY
13543 elif test -n "$ac_cv_prog_OBJCOPY"; then
13544 OBJCOPY=$ac_cv_prog_OBJCOPY
13547 if test -n "$ac_cv_prog_OBJCOPY"; then
13548 for ncn_progname in objcopy; do
13549 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13550 set dummy ${ncn_progname}; ac_word=$2
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13552 $as_echo_n "checking
for $ac_word...
" >&6; }
13553 if ${ac_cv_prog_OBJCOPY+:} false; then :
13554 $as_echo_n "(cached
) " >&6
13556 if test -n "$OBJCOPY"; then
13557 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13560 for as_dir in $PATH
13563 test -z "$as_dir" && as_dir=.
13564 for ac_exec_ext in '' $ac_executable_extensions; do
13565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13566 ac_cv_prog_OBJCOPY="${ncn_progname}"
13567 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13576 OBJCOPY=$ac_cv_prog_OBJCOPY
13577 if test -n "$OBJCOPY"; then
13578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
13579 $as_echo "$OBJCOPY" >&6; }
13581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13582 $as_echo "no
" >&6; }
13589 for ncn_progname in objcopy; do
13590 if test -n "$ncn_tool_prefix"; then
13591 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13592 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13594 $as_echo_n "checking
for $ac_word...
" >&6; }
13595 if ${ac_cv_prog_OBJCOPY+:} false; then :
13596 $as_echo_n "(cached
) " >&6
13598 if test -n "$OBJCOPY"; then
13599 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13602 for as_dir in $PATH
13605 test -z "$as_dir" && as_dir=.
13606 for ac_exec_ext in '' $ac_executable_extensions; do
13607 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13608 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
13609 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13618 OBJCOPY=$ac_cv_prog_OBJCOPY
13619 if test -n "$OBJCOPY"; then
13620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
13621 $as_echo "$OBJCOPY" >&6; }
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13624 $as_echo "no
" >&6; }
13629 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
13630 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13631 set dummy ${ncn_progname}; ac_word=$2
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13633 $as_echo_n "checking
for $ac_word...
" >&6; }
13634 if ${ac_cv_prog_OBJCOPY+:} false; then :
13635 $as_echo_n "(cached
) " >&6
13637 if test -n "$OBJCOPY"; then
13638 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
13640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13641 for as_dir in $PATH
13644 test -z "$as_dir" && as_dir=.
13645 for ac_exec_ext in '' $ac_executable_extensions; do
13646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13647 ac_cv_prog_OBJCOPY="${ncn_progname}"
13648 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13657 OBJCOPY=$ac_cv_prog_OBJCOPY
13658 if test -n "$OBJCOPY"; then
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
13660 $as_echo "$OBJCOPY" >&6; }
13662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13663 $as_echo "no
" >&6; }
13668 test -n "$ac_cv_prog_OBJCOPY" && break
13671 if test -z "$ac_cv_prog_OBJCOPY" ; then
13673 if test $build = $host ; then
13676 OBJCOPY="${ncn_tool_prefix}$2"
13682 if test -n "$OBJDUMP"; then
13683 ac_cv_prog_OBJDUMP=$OBJDUMP
13684 elif test -n "$ac_cv_prog_OBJDUMP"; then
13685 OBJDUMP=$ac_cv_prog_OBJDUMP
13688 if test -n "$ac_cv_prog_OBJDUMP"; then
13689 for ncn_progname in objdump; do
13690 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13691 set dummy ${ncn_progname}; ac_word=$2
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13693 $as_echo_n "checking
for $ac_word...
" >&6; }
13694 if ${ac_cv_prog_OBJDUMP+:} false; then :
13695 $as_echo_n "(cached
) " >&6
13697 if test -n "$OBJDUMP"; then
13698 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13701 for as_dir in $PATH
13704 test -z "$as_dir" && as_dir=.
13705 for ac_exec_ext in '' $ac_executable_extensions; do
13706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13707 ac_cv_prog_OBJDUMP="${ncn_progname}"
13708 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13717 OBJDUMP=$ac_cv_prog_OBJDUMP
13718 if test -n "$OBJDUMP"; then
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13720 $as_echo "$OBJDUMP" >&6; }
13722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13723 $as_echo "no
" >&6; }
13730 for ncn_progname in objdump; do
13731 if test -n "$ncn_tool_prefix"; then
13732 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13733 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13735 $as_echo_n "checking
for $ac_word...
" >&6; }
13736 if ${ac_cv_prog_OBJDUMP+:} false; then :
13737 $as_echo_n "(cached
) " >&6
13739 if test -n "$OBJDUMP"; then
13740 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13743 for as_dir in $PATH
13746 test -z "$as_dir" && as_dir=.
13747 for ac_exec_ext in '' $ac_executable_extensions; do
13748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13749 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
13750 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13759 OBJDUMP=$ac_cv_prog_OBJDUMP
13760 if test -n "$OBJDUMP"; then
13761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13762 $as_echo "$OBJDUMP" >&6; }
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13765 $as_echo "no
" >&6; }
13770 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
13771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13772 set dummy ${ncn_progname}; ac_word=$2
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13774 $as_echo_n "checking
for $ac_word...
" >&6; }
13775 if ${ac_cv_prog_OBJDUMP+:} false; then :
13776 $as_echo_n "(cached
) " >&6
13778 if test -n "$OBJDUMP"; then
13779 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13782 for as_dir in $PATH
13785 test -z "$as_dir" && as_dir=.
13786 for ac_exec_ext in '' $ac_executable_extensions; do
13787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13788 ac_cv_prog_OBJDUMP="${ncn_progname}"
13789 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13798 OBJDUMP=$ac_cv_prog_OBJDUMP
13799 if test -n "$OBJDUMP"; then
13800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
13801 $as_echo "$OBJDUMP" >&6; }
13803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13804 $as_echo "no
" >&6; }
13809 test -n "$ac_cv_prog_OBJDUMP" && break
13812 if test -z "$ac_cv_prog_OBJDUMP" ; then
13814 if test $build = $host ; then
13817 OBJDUMP="${ncn_tool_prefix}$2"
13823 if test -n "$OTOOL"; then
13824 ac_cv_prog_OTOOL=$OTOOL
13825 elif test -n "$ac_cv_prog_OTOOL"; then
13826 OTOOL=$ac_cv_prog_OTOOL
13829 if test -n "$ac_cv_prog_OTOOL"; then
13830 for ncn_progname in otool; do
13831 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13832 set dummy ${ncn_progname}; ac_word=$2
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13834 $as_echo_n "checking
for $ac_word...
" >&6; }
13835 if ${ac_cv_prog_OTOOL+:} false; then :
13836 $as_echo_n "(cached
) " >&6
13838 if test -n "$OTOOL"; then
13839 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13842 for as_dir in $PATH
13845 test -z "$as_dir" && as_dir=.
13846 for ac_exec_ext in '' $ac_executable_extensions; do
13847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13848 ac_cv_prog_OTOOL="${ncn_progname}"
13849 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13858 OTOOL=$ac_cv_prog_OTOOL
13859 if test -n "$OTOOL"; then
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13861 $as_echo "$OTOOL" >&6; }
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13864 $as_echo "no
" >&6; }
13871 for ncn_progname in otool; do
13872 if test -n "$ncn_tool_prefix"; then
13873 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
13874 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
13875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13876 $as_echo_n "checking
for $ac_word...
" >&6; }
13877 if ${ac_cv_prog_OTOOL+:} false; then :
13878 $as_echo_n "(cached
) " >&6
13880 if test -n "$OTOOL"; then
13881 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13884 for as_dir in $PATH
13887 test -z "$as_dir" && as_dir=.
13888 for ac_exec_ext in '' $ac_executable_extensions; do
13889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13890 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
13891 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13900 OTOOL=$ac_cv_prog_OTOOL
13901 if test -n "$OTOOL"; then
13902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13903 $as_echo "$OTOOL" >&6; }
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13906 $as_echo "no
" >&6; }
13911 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
13912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13913 set dummy ${ncn_progname}; ac_word=$2
13914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13915 $as_echo_n "checking
for $ac_word...
" >&6; }
13916 if ${ac_cv_prog_OTOOL+:} false; then :
13917 $as_echo_n "(cached
) " >&6
13919 if test -n "$OTOOL"; then
13920 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13923 for as_dir in $PATH
13926 test -z "$as_dir" && as_dir=.
13927 for ac_exec_ext in '' $ac_executable_extensions; do
13928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13929 ac_cv_prog_OTOOL="${ncn_progname}"
13930 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13939 OTOOL=$ac_cv_prog_OTOOL
13940 if test -n "$OTOOL"; then
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
13942 $as_echo "$OTOOL" >&6; }
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13945 $as_echo "no
" >&6; }
13950 test -n "$ac_cv_prog_OTOOL" && break
13953 if test -z "$ac_cv_prog_OTOOL" ; then
13955 if test $build = $host ; then
13958 OTOOL="${ncn_tool_prefix}$2"
13964 if test -n "$READELF"; then
13965 ac_cv_prog_READELF=$READELF
13966 elif test -n "$ac_cv_prog_READELF"; then
13967 READELF=$ac_cv_prog_READELF
13970 if test -n "$ac_cv_prog_READELF"; then
13971 for ncn_progname in readelf; do
13972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13973 set dummy ${ncn_progname}; ac_word=$2
13974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13975 $as_echo_n "checking
for $ac_word...
" >&6; }
13976 if ${ac_cv_prog_READELF+:} false; then :
13977 $as_echo_n "(cached
) " >&6
13979 if test -n "$READELF"; then
13980 ac_cv_prog_READELF="$READELF" # Let the user override the test.
13982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13983 for as_dir in $PATH
13986 test -z "$as_dir" && as_dir=.
13987 for ac_exec_ext in '' $ac_executable_extensions; do
13988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13989 ac_cv_prog_READELF="${ncn_progname}"
13990 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13999 READELF=$ac_cv_prog_READELF
14000 if test -n "$READELF"; then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
14002 $as_echo "$READELF" >&6; }
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14005 $as_echo "no
" >&6; }
14012 for ncn_progname in readelf; do
14013 if test -n "$ncn_tool_prefix"; then
14014 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
14015 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
14016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14017 $as_echo_n "checking
for $ac_word...
" >&6; }
14018 if ${ac_cv_prog_READELF+:} false; then :
14019 $as_echo_n "(cached
) " >&6
14021 if test -n "$READELF"; then
14022 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14025 for as_dir in $PATH
14028 test -z "$as_dir" && as_dir=.
14029 for ac_exec_ext in '' $ac_executable_extensions; do
14030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14031 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
14032 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14041 READELF=$ac_cv_prog_READELF
14042 if test -n "$READELF"; then
14043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
14044 $as_echo "$READELF" >&6; }
14046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14047 $as_echo "no
" >&6; }
14052 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
14053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14054 set dummy ${ncn_progname}; ac_word=$2
14055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14056 $as_echo_n "checking
for $ac_word...
" >&6; }
14057 if ${ac_cv_prog_READELF+:} false; then :
14058 $as_echo_n "(cached
) " >&6
14060 if test -n "$READELF"; then
14061 ac_cv_prog_READELF="$READELF" # Let the user override the test.
14063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14064 for as_dir in $PATH
14067 test -z "$as_dir" && as_dir=.
14068 for ac_exec_ext in '' $ac_executable_extensions; do
14069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14070 ac_cv_prog_READELF="${ncn_progname}"
14071 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14080 READELF=$ac_cv_prog_READELF
14081 if test -n "$READELF"; then
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
14083 $as_echo "$READELF" >&6; }
14085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14086 $as_echo "no
" >&6; }
14091 test -n "$ac_cv_prog_READELF" && break
14094 if test -z "$ac_cv_prog_READELF" ; then
14096 if test $build = $host ; then
14099 READELF="${ncn_tool_prefix}$2"
14109 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
14113 $as_echo_n "checking
for -plugin option...
" >&6; }
14115 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
14117 for plugin in $plugin_names; do
14118 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
14119 if test x$plugin_so = x$plugin; then
14120 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
14122 if test x$plugin_so != x$plugin; then
14123 plugin_option="--plugin $plugin_so"
14127 if test -n "$ac_tool_prefix"; then
14128 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
14129 set dummy ${ac_tool_prefix}ar; ac_word=$2
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14131 $as_echo_n "checking
for $ac_word...
" >&6; }
14132 if ${ac_cv_prog_AR+:} false; then :
14133 $as_echo_n "(cached
) " >&6
14135 if test -n "$AR"; then
14136 ac_cv_prog_AR="$AR" # Let the user override the test.
14138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139 for as_dir in $PATH
14142 test -z "$as_dir" && as_dir=.
14143 for ac_exec_ext in '' $ac_executable_extensions; do
14144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14145 ac_cv_prog_AR="${ac_tool_prefix}ar"
14146 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14156 if test -n "$AR"; then
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
14158 $as_echo "$AR" >&6; }
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14161 $as_echo "no
" >&6; }
14166 if test -z "$ac_cv_prog_AR"; then
14168 # Extract the first word of "ar", so it can be a program name with args.
14169 set dummy ar; ac_word=$2
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14171 $as_echo_n "checking
for $ac_word...
" >&6; }
14172 if ${ac_cv_prog_ac_ct_AR+:} false; then :
14173 $as_echo_n "(cached
) " >&6
14175 if test -n "$ac_ct_AR"; then
14176 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
14178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14179 for as_dir in $PATH
14182 test -z "$as_dir" && as_dir=.
14183 for ac_exec_ext in '' $ac_executable_extensions; do
14184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14185 ac_cv_prog_ac_ct_AR="ar"
14186 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14195 ac_ct_AR=$ac_cv_prog_ac_ct_AR
14196 if test -n "$ac_ct_AR"; then
14197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
14198 $as_echo "$ac_ct_AR" >&6; }
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14201 $as_echo "no
" >&6; }
14204 if test "x
$ac_ct_AR" = x; then
14207 case $cross_compiling:$ac_tool_warned in
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
14210 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
14211 ac_tool_warned=yes ;;
14216 AR="$ac_cv_prog_AR"
14219 if test "${AR}" = "" ; then
14220 as_fn_error $? "Required archive tool
'ar' not found on PATH.
" "$LINENO" 5
14223 ${AR} $plugin_option rc conftest.a conftest.c
14224 if test "$?
" != 0; then
14225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
14226 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
14230 if test -n "$plugin_option"; then
14231 PLUGIN_OPTION="$plugin_option"
14232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
14233 $as_echo "$plugin_option" >&6; }
14235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14236 $as_echo "no
" >&6; }
14240 RANLIB_PLUGIN_OPTION=
14241 if test -n "$PLUGIN_OPTION"; then
14242 if $AR --help 2>&1 | grep -q "\
--plugin"; then
14243 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
14245 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
14246 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
14254 # Check whether --with-build-time-tools was given.
14255 if test "${with_build_time_tools+set}" = set; then :
14256 withval=$with_build_time_tools; case x"$withval" in
14259 with_build_time_tools=
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
14261 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
14265 with_build_time_tools=
14271 if test -n "$CC_FOR_TARGET"; then
14272 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
14273 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14274 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14277 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
14278 for ncn_progname in cc gcc; do
14279 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14280 set dummy ${ncn_progname}; ac_word=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14282 $as_echo_n "checking
for $ac_word...
" >&6; }
14283 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14284 $as_echo_n "(cached
) " >&6
14286 if test -n "$CC_FOR_TARGET"; then
14287 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14293 test -z "$as_dir" && as_dir=.
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14296 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14297 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14306 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14307 if test -n "$CC_FOR_TARGET"; then
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
14309 $as_echo "$CC_FOR_TARGET" >&6; }
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14312 $as_echo "no
" >&6; }
14319 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14320 for ncn_progname in cc gcc; do
14321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14322 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14323 if test -x $with_build_time_tools/${ncn_progname}; then
14324 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14326 $as_echo "yes" >&6; }
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14330 $as_echo "no
" >&6; }
14335 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
14336 for ncn_progname in cc gcc; do
14337 if test -n "$ncn_target_tool_prefix"; then
14338 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14339 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14341 $as_echo_n "checking
for $ac_word...
" >&6; }
14342 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14343 $as_echo_n "(cached
) " >&6
14345 if test -n "$CC_FOR_TARGET"; then
14346 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14349 for as_dir in $PATH
14352 test -z "$as_dir" && as_dir=.
14353 for ac_exec_ext in '' $ac_executable_extensions; do
14354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14355 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14356 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14365 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14366 if test -n "$CC_FOR_TARGET"; then
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
14368 $as_echo "$CC_FOR_TARGET" >&6; }
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14371 $as_echo "no
" >&6; }
14376 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
14377 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14378 set dummy ${ncn_progname}; ac_word=$2
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14380 $as_echo_n "checking
for $ac_word...
" >&6; }
14381 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
14382 $as_echo_n "(cached
) " >&6
14384 if test -n "$CC_FOR_TARGET"; then
14385 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
14387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14388 for as_dir in $PATH
14391 test -z "$as_dir" && as_dir=.
14392 for ac_exec_ext in '' $ac_executable_extensions; do
14393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14394 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
14395 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14404 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
14405 if test -n "$CC_FOR_TARGET"; then
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
14407 $as_echo "$CC_FOR_TARGET" >&6; }
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14410 $as_echo "no
" >&6; }
14415 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
14419 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
14421 if test $build = $target ; then
14424 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14427 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
14432 if test -n "$CXX_FOR_TARGET"; then
14433 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
14434 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14435 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14438 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
14439 for ncn_progname in c++ g++ cxx gxx; do
14440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14441 set dummy ${ncn_progname}; ac_word=$2
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14443 $as_echo_n "checking
for $ac_word...
" >&6; }
14444 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14445 $as_echo_n "(cached
) " >&6
14447 if test -n "$CXX_FOR_TARGET"; then
14448 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14451 for as_dir in $PATH
14454 test -z "$as_dir" && as_dir=.
14455 for ac_exec_ext in '' $ac_executable_extensions; do
14456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14457 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14458 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14467 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14468 if test -n "$CXX_FOR_TARGET"; then
14469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
14470 $as_echo "$CXX_FOR_TARGET" >&6; }
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14473 $as_echo "no
" >&6; }
14480 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
14481 for ncn_progname in c++ g++ cxx gxx; do
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14483 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14484 if test -x $with_build_time_tools/${ncn_progname}; then
14485 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14487 $as_echo "yes" >&6; }
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14491 $as_echo "no
" >&6; }
14496 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
14497 for ncn_progname in c++ g++ cxx gxx; do
14498 if test -n "$ncn_target_tool_prefix"; then
14499 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14500 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14502 $as_echo_n "checking
for $ac_word...
" >&6; }
14503 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14504 $as_echo_n "(cached
) " >&6
14506 if test -n "$CXX_FOR_TARGET"; then
14507 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14510 for as_dir in $PATH
14513 test -z "$as_dir" && as_dir=.
14514 for ac_exec_ext in '' $ac_executable_extensions; do
14515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14516 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14517 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14526 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14527 if test -n "$CXX_FOR_TARGET"; then
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
14529 $as_echo "$CXX_FOR_TARGET" >&6; }
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14532 $as_echo "no
" >&6; }
14537 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
14538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14539 set dummy ${ncn_progname}; ac_word=$2
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14541 $as_echo_n "checking
for $ac_word...
" >&6; }
14542 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
14543 $as_echo_n "(cached
) " >&6
14545 if test -n "$CXX_FOR_TARGET"; then
14546 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
14548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14549 for as_dir in $PATH
14552 test -z "$as_dir" && as_dir=.
14553 for ac_exec_ext in '' $ac_executable_extensions; do
14554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14555 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
14556 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14565 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
14566 if test -n "$CXX_FOR_TARGET"; then
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
14568 $as_echo "$CXX_FOR_TARGET" >&6; }
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14571 $as_echo "no
" >&6; }
14576 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
14580 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
14581 set dummy c++ g++ cxx gxx
14582 if test $build = $target ; then
14583 CXX_FOR_TARGET="$2"
14585 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
14588 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
14593 if test -n "$GCC_FOR_TARGET"; then
14594 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
14595 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14596 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14599 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
14600 for ncn_progname in gcc; do
14601 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14602 set dummy ${ncn_progname}; ac_word=$2
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14604 $as_echo_n "checking
for $ac_word...
" >&6; }
14605 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14606 $as_echo_n "(cached
) " >&6
14608 if test -n "$GCC_FOR_TARGET"; then
14609 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14612 for as_dir in $PATH
14615 test -z "$as_dir" && as_dir=.
14616 for ac_exec_ext in '' $ac_executable_extensions; do
14617 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14618 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14619 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14628 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14629 if test -n "$GCC_FOR_TARGET"; then
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
14631 $as_echo "$GCC_FOR_TARGET" >&6; }
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14634 $as_echo "no
" >&6; }
14641 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14642 for ncn_progname in gcc; do
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14644 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14645 if test -x $with_build_time_tools/${ncn_progname}; then
14646 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14648 $as_echo "yes" >&6; }
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14652 $as_echo "no
" >&6; }
14657 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
14658 for ncn_progname in gcc; do
14659 if test -n "$ncn_target_tool_prefix"; then
14660 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14661 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14663 $as_echo_n "checking
for $ac_word...
" >&6; }
14664 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14665 $as_echo_n "(cached
) " >&6
14667 if test -n "$GCC_FOR_TARGET"; then
14668 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14671 for as_dir in $PATH
14674 test -z "$as_dir" && as_dir=.
14675 for ac_exec_ext in '' $ac_executable_extensions; do
14676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14677 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14678 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14687 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14688 if test -n "$GCC_FOR_TARGET"; then
14689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
14690 $as_echo "$GCC_FOR_TARGET" >&6; }
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14693 $as_echo "no
" >&6; }
14698 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
14699 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14700 set dummy ${ncn_progname}; ac_word=$2
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14702 $as_echo_n "checking
for $ac_word...
" >&6; }
14703 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
14704 $as_echo_n "(cached
) " >&6
14706 if test -n "$GCC_FOR_TARGET"; then
14707 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
14709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14710 for as_dir in $PATH
14713 test -z "$as_dir" && as_dir=.
14714 for ac_exec_ext in '' $ac_executable_extensions; do
14715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14716 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
14717 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14726 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
14727 if test -n "$GCC_FOR_TARGET"; then
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
14729 $as_echo "$GCC_FOR_TARGET" >&6; }
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14732 $as_echo "no
" >&6; }
14737 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
14741 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
14742 GCC_FOR_TARGET="${CC_FOR_TARGET}"
14744 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
14749 if test -n "$GFORTRAN_FOR_TARGET"; then
14750 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
14751 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14752 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14755 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14756 for ncn_progname in gfortran; do
14757 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14758 set dummy ${ncn_progname}; ac_word=$2
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14760 $as_echo_n "checking
for $ac_word...
" >&6; }
14761 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14762 $as_echo_n "(cached
) " >&6
14764 if test -n "$GFORTRAN_FOR_TARGET"; then
14765 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14768 for as_dir in $PATH
14771 test -z "$as_dir" && as_dir=.
14772 for ac_exec_ext in '' $ac_executable_extensions; do
14773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14774 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14775 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14784 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14785 if test -n "$GFORTRAN_FOR_TARGET"; then
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
14787 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14790 $as_echo "no
" >&6; }
14797 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
14798 for ncn_progname in gfortran; do
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14800 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14801 if test -x $with_build_time_tools/${ncn_progname}; then
14802 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14804 $as_echo "yes" >&6; }
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14808 $as_echo "no
" >&6; }
14813 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
14814 for ncn_progname in gfortran; do
14815 if test -n "$ncn_target_tool_prefix"; then
14816 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14817 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14819 $as_echo_n "checking
for $ac_word...
" >&6; }
14820 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14821 $as_echo_n "(cached
) " >&6
14823 if test -n "$GFORTRAN_FOR_TARGET"; then
14824 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14827 for as_dir in $PATH
14830 test -z "$as_dir" && as_dir=.
14831 for ac_exec_ext in '' $ac_executable_extensions; do
14832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14833 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14834 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14843 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14844 if test -n "$GFORTRAN_FOR_TARGET"; then
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
14846 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14849 $as_echo "no
" >&6; }
14854 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
14855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14856 set dummy ${ncn_progname}; ac_word=$2
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14858 $as_echo_n "checking
for $ac_word...
" >&6; }
14859 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
14860 $as_echo_n "(cached
) " >&6
14862 if test -n "$GFORTRAN_FOR_TARGET"; then
14863 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
14865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14866 for as_dir in $PATH
14869 test -z "$as_dir" && as_dir=.
14870 for ac_exec_ext in '' $ac_executable_extensions; do
14871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14872 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
14873 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14882 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
14883 if test -n "$GFORTRAN_FOR_TARGET"; then
14884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
14885 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
14887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14888 $as_echo "no
" >&6; }
14893 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
14897 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
14899 if test $build = $target ; then
14900 GFORTRAN_FOR_TARGET="$2"
14902 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
14905 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
14910 if test -n "$GOC_FOR_TARGET"; then
14911 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
14912 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14913 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14916 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
14917 for ncn_progname in gccgo; do
14918 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14919 set dummy ${ncn_progname}; ac_word=$2
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14921 $as_echo_n "checking
for $ac_word...
" >&6; }
14922 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14923 $as_echo_n "(cached
) " >&6
14925 if test -n "$GOC_FOR_TARGET"; then
14926 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14928 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14929 for as_dir in $PATH
14932 test -z "$as_dir" && as_dir=.
14933 for ac_exec_ext in '' $ac_executable_extensions; do
14934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14935 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
14936 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14945 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
14946 if test -n "$GOC_FOR_TARGET"; then
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
14948 $as_echo "$GOC_FOR_TARGET" >&6; }
14950 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14951 $as_echo "no
" >&6; }
14958 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14959 for ncn_progname in gccgo; do
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14961 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14962 if test -x $with_build_time_tools/${ncn_progname}; then
14963 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14965 $as_echo "yes" >&6; }
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14969 $as_echo "no
" >&6; }
14974 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
14975 for ncn_progname in gccgo; do
14976 if test -n "$ncn_target_tool_prefix"; then
14977 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14978 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14980 $as_echo_n "checking
for $ac_word...
" >&6; }
14981 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
14982 $as_echo_n "(cached
) " >&6
14984 if test -n "$GOC_FOR_TARGET"; then
14985 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
14987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14988 for as_dir in $PATH
14991 test -z "$as_dir" && as_dir=.
14992 for ac_exec_ext in '' $ac_executable_extensions; do
14993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14994 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14995 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15004 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15005 if test -n "$GOC_FOR_TARGET"; then
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
15007 $as_echo "$GOC_FOR_TARGET" >&6; }
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15010 $as_echo "no
" >&6; }
15015 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
15016 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15017 set dummy ${ncn_progname}; ac_word=$2
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15019 $as_echo_n "checking
for $ac_word...
" >&6; }
15020 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
15021 $as_echo_n "(cached
) " >&6
15023 if test -n "$GOC_FOR_TARGET"; then
15024 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
15026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15027 for as_dir in $PATH
15030 test -z "$as_dir" && as_dir=.
15031 for ac_exec_ext in '' $ac_executable_extensions; do
15032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15033 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
15034 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15043 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
15044 if test -n "$GOC_FOR_TARGET"; then
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
15046 $as_echo "$GOC_FOR_TARGET" >&6; }
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15049 $as_echo "no
" >&6; }
15054 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
15058 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
15060 if test $build = $target ; then
15061 GOC_FOR_TARGET="$2"
15063 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15066 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
15071 if test -n "$GDC_FOR_TARGET"; then
15072 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
15073 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15074 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15077 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
15078 for ncn_progname in gdc; do
15079 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15080 set dummy ${ncn_progname}; ac_word=$2
15081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15082 $as_echo_n "checking
for $ac_word...
" >&6; }
15083 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15084 $as_echo_n "(cached
) " >&6
15086 if test -n "$GDC_FOR_TARGET"; then
15087 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15090 for as_dir in $PATH
15093 test -z "$as_dir" && as_dir=.
15094 for ac_exec_ext in '' $ac_executable_extensions; do
15095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15096 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15097 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15106 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15107 if test -n "$GDC_FOR_TARGET"; then
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
15109 $as_echo "$GDC_FOR_TARGET" >&6; }
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15112 $as_echo "no
" >&6; }
15119 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
15120 for ncn_progname in gdc; do
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15122 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15123 if test -x $with_build_time_tools/${ncn_progname}; then
15124 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15126 $as_echo "yes" >&6; }
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15130 $as_echo "no
" >&6; }
15135 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
15136 for ncn_progname in gdc; do
15137 if test -n "$ncn_target_tool_prefix"; then
15138 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15139 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15141 $as_echo_n "checking
for $ac_word...
" >&6; }
15142 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15143 $as_echo_n "(cached
) " >&6
15145 if test -n "$GDC_FOR_TARGET"; then
15146 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15149 for as_dir in $PATH
15152 test -z "$as_dir" && as_dir=.
15153 for ac_exec_ext in '' $ac_executable_extensions; do
15154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15155 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15156 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15165 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15166 if test -n "$GDC_FOR_TARGET"; then
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
15168 $as_echo "$GDC_FOR_TARGET" >&6; }
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15171 $as_echo "no
" >&6; }
15176 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
15177 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15178 set dummy ${ncn_progname}; ac_word=$2
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15180 $as_echo_n "checking
for $ac_word...
" >&6; }
15181 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
15182 $as_echo_n "(cached
) " >&6
15184 if test -n "$GDC_FOR_TARGET"; then
15185 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
15187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15188 for as_dir in $PATH
15191 test -z "$as_dir" && as_dir=.
15192 for ac_exec_ext in '' $ac_executable_extensions; do
15193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15194 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
15195 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15204 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
15205 if test -n "$GDC_FOR_TARGET"; then
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
15207 $as_echo "$GDC_FOR_TARGET" >&6; }
15209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15210 $as_echo "no
" >&6; }
15215 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
15219 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
15221 if test $build = $target ; then
15222 GDC_FOR_TARGET="$2"
15224 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
15227 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
15232 if test -n "$GM2_FOR_TARGET"; then
15233 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
15234 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15235 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15238 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
15239 for ncn_progname in gm2; do
15240 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15241 set dummy ${ncn_progname}; ac_word=$2
15242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15243 $as_echo_n "checking
for $ac_word...
" >&6; }
15244 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15245 $as_echo_n "(cached
) " >&6
15247 if test -n "$GM2_FOR_TARGET"; then
15248 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15251 for as_dir in $PATH
15254 test -z "$as_dir" && as_dir=.
15255 for ac_exec_ext in '' $ac_executable_extensions; do
15256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15257 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15258 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15267 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15268 if test -n "$GM2_FOR_TARGET"; then
15269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
15270 $as_echo "$GM2_FOR_TARGET" >&6; }
15272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15273 $as_echo "no
" >&6; }
15280 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
15281 for ncn_progname in gm2; do
15282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15283 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15284 if test -x $with_build_time_tools/${ncn_progname}; then
15285 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15287 $as_echo "yes" >&6; }
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15291 $as_echo "no
" >&6; }
15296 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
15297 for ncn_progname in gm2; do
15298 if test -n "$ncn_target_tool_prefix"; then
15299 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15300 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15302 $as_echo_n "checking
for $ac_word...
" >&6; }
15303 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15304 $as_echo_n "(cached
) " >&6
15306 if test -n "$GM2_FOR_TARGET"; then
15307 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15310 for as_dir in $PATH
15313 test -z "$as_dir" && as_dir=.
15314 for ac_exec_ext in '' $ac_executable_extensions; do
15315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15316 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15317 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15326 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15327 if test -n "$GM2_FOR_TARGET"; then
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
15329 $as_echo "$GM2_FOR_TARGET" >&6; }
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15332 $as_echo "no
" >&6; }
15337 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
15338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15339 set dummy ${ncn_progname}; ac_word=$2
15340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15341 $as_echo_n "checking
for $ac_word...
" >&6; }
15342 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
15343 $as_echo_n "(cached
) " >&6
15345 if test -n "$GM2_FOR_TARGET"; then
15346 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
15348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15349 for as_dir in $PATH
15352 test -z "$as_dir" && as_dir=.
15353 for ac_exec_ext in '' $ac_executable_extensions; do
15354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15355 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
15356 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15365 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
15366 if test -n "$GM2_FOR_TARGET"; then
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
15368 $as_echo "$GM2_FOR_TARGET" >&6; }
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15371 $as_echo "no
" >&6; }
15376 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
15380 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
15382 if test $build = $target ; then
15383 GM2_FOR_TARGET="$2"
15385 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
15388 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
15393 cat > conftest.c << \EOF
15398 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
15399 have_gcc_for_target=yes
15401 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
15402 have_gcc_for_target=no
15409 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15410 if test -n "$with_build_time_tools"; then
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
15412 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
15413 if test -x $with_build_time_tools/ar; then
15414 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
15415 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
15417 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15420 $as_echo "no
" >&6; }
15422 elif test $build != $host && test $have_gcc_for_target = yes; then
15423 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
15424 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
15425 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
15428 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15429 # Extract the first word of "ar", so it can be a program name with args.
15430 set dummy ar; ac_word=$2
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15432 $as_echo_n "checking
for $ac_word...
" >&6; }
15433 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
15434 $as_echo_n "(cached
) " >&6
15436 case $AR_FOR_TARGET in
15438 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
15441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15442 for as_dir in $gcc_cv_tool_dirs
15445 test -z "$as_dir" && as_dir=.
15446 for ac_exec_ext in '' $ac_executable_extensions; do
15447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15448 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15449 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15459 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15460 if test -n "$AR_FOR_TARGET"; then
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
15462 $as_echo "$AR_FOR_TARGET" >&6; }
15464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15465 $as_echo "no
" >&6; }
15470 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
15473 if test -n "$AR_FOR_TARGET"; then
15474 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
15475 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15476 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15479 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
15480 for ncn_progname in ar; do
15481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15482 set dummy ${ncn_progname}; ac_word=$2
15483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15484 $as_echo_n "checking
for $ac_word...
" >&6; }
15485 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15486 $as_echo_n "(cached
) " >&6
15488 if test -n "$AR_FOR_TARGET"; then
15489 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15492 for as_dir in $PATH
15495 test -z "$as_dir" && as_dir=.
15496 for ac_exec_ext in '' $ac_executable_extensions; do
15497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15498 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15499 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15508 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15509 if test -n "$AR_FOR_TARGET"; then
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
15511 $as_echo "$AR_FOR_TARGET" >&6; }
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15514 $as_echo "no
" >&6; }
15521 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
15522 for ncn_progname in ar; do
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15524 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15525 if test -x $with_build_time_tools/${ncn_progname}; then
15526 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15528 $as_echo "yes" >&6; }
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15532 $as_echo "no
" >&6; }
15537 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
15538 for ncn_progname in ar; do
15539 if test -n "$ncn_target_tool_prefix"; then
15540 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15541 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15543 $as_echo_n "checking
for $ac_word...
" >&6; }
15544 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15545 $as_echo_n "(cached
) " >&6
15547 if test -n "$AR_FOR_TARGET"; then
15548 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15551 for as_dir in $PATH
15554 test -z "$as_dir" && as_dir=.
15555 for ac_exec_ext in '' $ac_executable_extensions; do
15556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15557 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15558 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15567 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15568 if test -n "$AR_FOR_TARGET"; then
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
15570 $as_echo "$AR_FOR_TARGET" >&6; }
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15573 $as_echo "no
" >&6; }
15578 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
15579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15580 set dummy ${ncn_progname}; ac_word=$2
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15582 $as_echo_n "checking
for $ac_word...
" >&6; }
15583 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
15584 $as_echo_n "(cached
) " >&6
15586 if test -n "$AR_FOR_TARGET"; then
15587 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
15589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15590 for as_dir in $PATH
15593 test -z "$as_dir" && as_dir=.
15594 for ac_exec_ext in '' $ac_executable_extensions; do
15595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15596 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
15597 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15606 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
15607 if test -n "$AR_FOR_TARGET"; then
15608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
15609 $as_echo "$AR_FOR_TARGET" >&6; }
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15612 $as_echo "no
" >&6; }
15617 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
15621 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
15623 if test $build = $target ; then
15626 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
15629 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
15633 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
15639 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15640 if test -n "$with_build_time_tools"; then
15641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
15642 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
15643 if test -x $with_build_time_tools/as; then
15644 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
15645 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
15647 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
15649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15650 $as_echo "no
" >&6; }
15652 elif test $build != $host && test $have_gcc_for_target = yes; then
15653 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
15654 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
15655 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
15658 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15659 # Extract the first word of "as
", so it can be a program name with args.
15660 set dummy as; ac_word=$2
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15662 $as_echo_n "checking
for $ac_word...
" >&6; }
15663 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
15664 $as_echo_n "(cached
) " >&6
15666 case $AS_FOR_TARGET in
15668 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
15671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15672 for as_dir in $gcc_cv_tool_dirs
15675 test -z "$as_dir" && as_dir=.
15676 for ac_exec_ext in '' $ac_executable_extensions; do
15677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15678 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15679 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15689 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15690 if test -n "$AS_FOR_TARGET"; then
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
15692 $as_echo "$AS_FOR_TARGET" >&6; }
15694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15695 $as_echo "no
" >&6; }
15700 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
15703 if test -n "$AS_FOR_TARGET"; then
15704 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
15705 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15706 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15709 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
15710 for ncn_progname in as; do
15711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15712 set dummy ${ncn_progname}; ac_word=$2
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15714 $as_echo_n "checking
for $ac_word...
" >&6; }
15715 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15716 $as_echo_n "(cached
) " >&6
15718 if test -n "$AS_FOR_TARGET"; then
15719 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15722 for as_dir in $PATH
15725 test -z "$as_dir" && as_dir=.
15726 for ac_exec_ext in '' $ac_executable_extensions; do
15727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15728 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15729 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15738 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15739 if test -n "$AS_FOR_TARGET"; then
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
15741 $as_echo "$AS_FOR_TARGET" >&6; }
15743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15744 $as_echo "no
" >&6; }
15751 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
15752 for ncn_progname in as; do
15753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15754 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15755 if test -x $with_build_time_tools/${ncn_progname}; then
15756 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15758 $as_echo "yes" >&6; }
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15762 $as_echo "no
" >&6; }
15767 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
15768 for ncn_progname in as; do
15769 if test -n "$ncn_target_tool_prefix"; then
15770 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15771 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15773 $as_echo_n "checking
for $ac_word...
" >&6; }
15774 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15775 $as_echo_n "(cached
) " >&6
15777 if test -n "$AS_FOR_TARGET"; then
15778 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15781 for as_dir in $PATH
15784 test -z "$as_dir" && as_dir=.
15785 for ac_exec_ext in '' $ac_executable_extensions; do
15786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15787 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15788 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15797 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15798 if test -n "$AS_FOR_TARGET"; then
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
15800 $as_echo "$AS_FOR_TARGET" >&6; }
15802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15803 $as_echo "no
" >&6; }
15808 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
15809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15810 set dummy ${ncn_progname}; ac_word=$2
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15812 $as_echo_n "checking
for $ac_word...
" >&6; }
15813 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
15814 $as_echo_n "(cached
) " >&6
15816 if test -n "$AS_FOR_TARGET"; then
15817 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
15819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15820 for as_dir in $PATH
15823 test -z "$as_dir" && as_dir=.
15824 for ac_exec_ext in '' $ac_executable_extensions; do
15825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15826 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
15827 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15836 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
15837 if test -n "$AS_FOR_TARGET"; then
15838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
15839 $as_echo "$AS_FOR_TARGET" >&6; }
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15842 $as_echo "no
" >&6; }
15847 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
15851 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
15853 if test $build = $target ; then
15856 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
15859 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
15863 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
15869 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15870 if test -n "$with_build_time_tools"; then
15871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
15872 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
15873 if test -x $with_build_time_tools/dlltool; then
15874 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
15875 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
15877 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
15879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15880 $as_echo "no
" >&6; }
15882 elif test $build != $host && test $have_gcc_for_target = yes; then
15883 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
15884 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
15885 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15888 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15889 # Extract the first word of "dlltool
", so it can be a program name with args.
15890 set dummy dlltool; ac_word=$2
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15892 $as_echo_n "checking
for $ac_word...
" >&6; }
15893 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
15894 $as_echo_n "(cached
) " >&6
15896 case $DLLTOOL_FOR_TARGET in
15898 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
15901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15902 for as_dir in $gcc_cv_tool_dirs
15905 test -z "$as_dir" && as_dir=.
15906 for ac_exec_ext in '' $ac_executable_extensions; do
15907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15908 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15909 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15919 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15920 if test -n "$DLLTOOL_FOR_TARGET"; then
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
15922 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15925 $as_echo "no
" >&6; }
15930 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
15933 if test -n "$DLLTOOL_FOR_TARGET"; then
15934 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
15935 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15936 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15939 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15940 for ncn_progname in dlltool; do
15941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15942 set dummy ${ncn_progname}; ac_word=$2
15943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15944 $as_echo_n "checking
for $ac_word...
" >&6; }
15945 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
15946 $as_echo_n "(cached
) " >&6
15948 if test -n "$DLLTOOL_FOR_TARGET"; then
15949 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
15951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15952 for as_dir in $PATH
15955 test -z "$as_dir" && as_dir=.
15956 for ac_exec_ext in '' $ac_executable_extensions; do
15957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15958 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
15959 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15968 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
15969 if test -n "$DLLTOOL_FOR_TARGET"; then
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
15971 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
15973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15974 $as_echo "no
" >&6; }
15981 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15982 for ncn_progname in dlltool; do
15983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15984 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15985 if test -x $with_build_time_tools/${ncn_progname}; then
15986 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15988 $as_echo "yes" >&6; }
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15992 $as_echo "no
" >&6; }
15997 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
15998 for ncn_progname in dlltool; do
15999 if test -n "$ncn_target_tool_prefix"; then
16000 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16001 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16003 $as_echo_n "checking
for $ac_word...
" >&6; }
16004 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16005 $as_echo_n "(cached
) " >&6
16007 if test -n "$DLLTOOL_FOR_TARGET"; then
16008 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16011 for as_dir in $PATH
16014 test -z "$as_dir" && as_dir=.
16015 for ac_exec_ext in '' $ac_executable_extensions; do
16016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16017 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16018 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16027 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16028 if test -n "$DLLTOOL_FOR_TARGET"; then
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
16030 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16033 $as_echo "no
" >&6; }
16038 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
16039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16040 set dummy ${ncn_progname}; ac_word=$2
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16042 $as_echo_n "checking
for $ac_word...
" >&6; }
16043 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
16044 $as_echo_n "(cached
) " >&6
16046 if test -n "$DLLTOOL_FOR_TARGET"; then
16047 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
16049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16050 for as_dir in $PATH
16053 test -z "$as_dir" && as_dir=.
16054 for ac_exec_ext in '' $ac_executable_extensions; do
16055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16056 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
16057 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16066 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
16067 if test -n "$DLLTOOL_FOR_TARGET"; then
16068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
16069 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16072 $as_echo "no
" >&6; }
16077 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
16081 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
16083 if test $build = $target ; then
16084 DLLTOOL_FOR_TARGET="$2"
16086 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16089 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
16093 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
16099 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16100 if test -n "$with_build_time_tools"; then
16101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
16102 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
16103 if test -x $with_build_time_tools/dsymutil; then
16104 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
16105 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
16107 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
16109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16110 $as_echo "no
" >&6; }
16112 elif test $build != $host && test $have_gcc_for_target = yes; then
16113 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
16114 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
16115 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16118 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16119 # Extract the first word of "dsymutil
", so it can be a program name with args.
16120 set dummy dsymutil; ac_word=$2
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16122 $as_echo_n "checking
for $ac_word...
" >&6; }
16123 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
16124 $as_echo_n "(cached
) " >&6
16126 case $DSYMUTIL_FOR_TARGET in
16128 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
16131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16132 for as_dir in $gcc_cv_tool_dirs
16135 test -z "$as_dir" && as_dir=.
16136 for ac_exec_ext in '' $ac_executable_extensions; do
16137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16138 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16139 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16149 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16150 if test -n "$DSYMUTIL_FOR_TARGET"; then
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
16152 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16155 $as_echo "no
" >&6; }
16160 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
16163 if test -n "$DSYMUTIL_FOR_TARGET"; then
16164 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
16165 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16166 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16169 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16170 for ncn_progname in dsymutil; do
16171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16172 set dummy ${ncn_progname}; ac_word=$2
16173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16174 $as_echo_n "checking
for $ac_word...
" >&6; }
16175 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16176 $as_echo_n "(cached
) " >&6
16178 if test -n "$DSYMUTIL_FOR_TARGET"; then
16179 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16182 for as_dir in $PATH
16185 test -z "$as_dir" && as_dir=.
16186 for ac_exec_ext in '' $ac_executable_extensions; do
16187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16188 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16189 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16198 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16199 if test -n "$DSYMUTIL_FOR_TARGET"; then
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
16201 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16204 $as_echo "no
" >&6; }
16211 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16212 for ncn_progname in dsymutil; do
16213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16214 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16215 if test -x $with_build_time_tools/${ncn_progname}; then
16216 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16218 $as_echo "yes" >&6; }
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16222 $as_echo "no
" >&6; }
16227 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
16228 for ncn_progname in dsymutil; do
16229 if test -n "$ncn_target_tool_prefix"; then
16230 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16231 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16233 $as_echo_n "checking
for $ac_word...
" >&6; }
16234 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16235 $as_echo_n "(cached
) " >&6
16237 if test -n "$DSYMUTIL_FOR_TARGET"; then
16238 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16241 for as_dir in $PATH
16244 test -z "$as_dir" && as_dir=.
16245 for ac_exec_ext in '' $ac_executable_extensions; do
16246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16247 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16248 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16257 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16258 if test -n "$DSYMUTIL_FOR_TARGET"; then
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
16260 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16263 $as_echo "no
" >&6; }
16268 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
16269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16270 set dummy ${ncn_progname}; ac_word=$2
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16272 $as_echo_n "checking
for $ac_word...
" >&6; }
16273 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
16274 $as_echo_n "(cached
) " >&6
16276 if test -n "$DSYMUTIL_FOR_TARGET"; then
16277 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
16279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16280 for as_dir in $PATH
16283 test -z "$as_dir" && as_dir=.
16284 for ac_exec_ext in '' $ac_executable_extensions; do
16285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16286 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
16287 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16296 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
16297 if test -n "$DSYMUTIL_FOR_TARGET"; then
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
16299 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16302 $as_echo "no
" >&6; }
16307 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
16311 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
16313 if test $build = $target ; then
16314 DSYMUTIL_FOR_TARGET="$2"
16316 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16319 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
16323 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
16329 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16330 if test -n "$with_build_time_tools"; then
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
16332 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
16333 if test -x $with_build_time_tools/ld; then
16334 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
16335 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
16337 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
16339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16340 $as_echo "no
" >&6; }
16342 elif test $build != $host && test $have_gcc_for_target = yes; then
16343 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
16344 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
16345 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
16348 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16349 # Extract the first word of "ld
", so it can be a program name with args.
16350 set dummy ld; ac_word=$2
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16352 $as_echo_n "checking
for $ac_word...
" >&6; }
16353 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
16354 $as_echo_n "(cached
) " >&6
16356 case $LD_FOR_TARGET in
16358 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
16361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16362 for as_dir in $gcc_cv_tool_dirs
16365 test -z "$as_dir" && as_dir=.
16366 for ac_exec_ext in '' $ac_executable_extensions; do
16367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16368 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16369 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16379 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16380 if test -n "$LD_FOR_TARGET"; then
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
16382 $as_echo "$LD_FOR_TARGET" >&6; }
16384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16385 $as_echo "no
" >&6; }
16390 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
16393 if test -n "$LD_FOR_TARGET"; then
16394 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
16395 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16396 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16399 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
16400 for ncn_progname in ld; do
16401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16402 set dummy ${ncn_progname}; ac_word=$2
16403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16404 $as_echo_n "checking
for $ac_word...
" >&6; }
16405 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16406 $as_echo_n "(cached
) " >&6
16408 if test -n "$LD_FOR_TARGET"; then
16409 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16412 for as_dir in $PATH
16415 test -z "$as_dir" && as_dir=.
16416 for ac_exec_ext in '' $ac_executable_extensions; do
16417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16418 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16419 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16428 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16429 if test -n "$LD_FOR_TARGET"; then
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
16431 $as_echo "$LD_FOR_TARGET" >&6; }
16433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16434 $as_echo "no
" >&6; }
16441 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
16442 for ncn_progname in ld; do
16443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16444 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16445 if test -x $with_build_time_tools/${ncn_progname}; then
16446 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16448 $as_echo "yes" >&6; }
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16452 $as_echo "no
" >&6; }
16457 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
16458 for ncn_progname in ld; do
16459 if test -n "$ncn_target_tool_prefix"; then
16460 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16461 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16463 $as_echo_n "checking
for $ac_word...
" >&6; }
16464 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16465 $as_echo_n "(cached
) " >&6
16467 if test -n "$LD_FOR_TARGET"; then
16468 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16471 for as_dir in $PATH
16474 test -z "$as_dir" && as_dir=.
16475 for ac_exec_ext in '' $ac_executable_extensions; do
16476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16477 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16478 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16487 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16488 if test -n "$LD_FOR_TARGET"; then
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
16490 $as_echo "$LD_FOR_TARGET" >&6; }
16492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16493 $as_echo "no
" >&6; }
16498 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
16499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16500 set dummy ${ncn_progname}; ac_word=$2
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16502 $as_echo_n "checking
for $ac_word...
" >&6; }
16503 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
16504 $as_echo_n "(cached
) " >&6
16506 if test -n "$LD_FOR_TARGET"; then
16507 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
16509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16510 for as_dir in $PATH
16513 test -z "$as_dir" && as_dir=.
16514 for ac_exec_ext in '' $ac_executable_extensions; do
16515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16516 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
16517 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16526 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
16527 if test -n "$LD_FOR_TARGET"; then
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
16529 $as_echo "$LD_FOR_TARGET" >&6; }
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16532 $as_echo "no
" >&6; }
16537 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
16541 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
16543 if test $build = $target ; then
16546 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
16549 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
16553 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
16559 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16560 if test -n "$with_build_time_tools"; then
16561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
16562 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
16563 if test -x $with_build_time_tools/lipo; then
16564 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
16565 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
16567 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
16569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16570 $as_echo "no
" >&6; }
16572 elif test $build != $host && test $have_gcc_for_target = yes; then
16573 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
16574 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
16575 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16578 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16579 # Extract the first word of "lipo
", so it can be a program name with args.
16580 set dummy lipo; ac_word=$2
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16582 $as_echo_n "checking
for $ac_word...
" >&6; }
16583 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
16584 $as_echo_n "(cached
) " >&6
16586 case $LIPO_FOR_TARGET in
16588 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
16591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16592 for as_dir in $gcc_cv_tool_dirs
16595 test -z "$as_dir" && as_dir=.
16596 for ac_exec_ext in '' $ac_executable_extensions; do
16597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16598 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16599 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16609 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16610 if test -n "$LIPO_FOR_TARGET"; then
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
16612 $as_echo "$LIPO_FOR_TARGET" >&6; }
16614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16615 $as_echo "no
" >&6; }
16620 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
16623 if test -n "$LIPO_FOR_TARGET"; then
16624 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
16625 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16626 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16629 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
16630 for ncn_progname in lipo; do
16631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16632 set dummy ${ncn_progname}; ac_word=$2
16633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16634 $as_echo_n "checking
for $ac_word...
" >&6; }
16635 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16636 $as_echo_n "(cached
) " >&6
16638 if test -n "$LIPO_FOR_TARGET"; then
16639 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16642 for as_dir in $PATH
16645 test -z "$as_dir" && as_dir=.
16646 for ac_exec_ext in '' $ac_executable_extensions; do
16647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16648 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16649 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16658 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16659 if test -n "$LIPO_FOR_TARGET"; then
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
16661 $as_echo "$LIPO_FOR_TARGET" >&6; }
16663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16664 $as_echo "no
" >&6; }
16671 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
16672 for ncn_progname in lipo; do
16673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16674 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16675 if test -x $with_build_time_tools/${ncn_progname}; then
16676 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16678 $as_echo "yes" >&6; }
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16682 $as_echo "no
" >&6; }
16687 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
16688 for ncn_progname in lipo; do
16689 if test -n "$ncn_target_tool_prefix"; then
16690 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16691 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16693 $as_echo_n "checking
for $ac_word...
" >&6; }
16694 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16695 $as_echo_n "(cached
) " >&6
16697 if test -n "$LIPO_FOR_TARGET"; then
16698 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16701 for as_dir in $PATH
16704 test -z "$as_dir" && as_dir=.
16705 for ac_exec_ext in '' $ac_executable_extensions; do
16706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16707 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16708 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16717 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16718 if test -n "$LIPO_FOR_TARGET"; then
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
16720 $as_echo "$LIPO_FOR_TARGET" >&6; }
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16723 $as_echo "no
" >&6; }
16728 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
16729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16730 set dummy ${ncn_progname}; ac_word=$2
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16732 $as_echo_n "checking
for $ac_word...
" >&6; }
16733 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
16734 $as_echo_n "(cached
) " >&6
16736 if test -n "$LIPO_FOR_TARGET"; then
16737 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
16739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16740 for as_dir in $PATH
16743 test -z "$as_dir" && as_dir=.
16744 for ac_exec_ext in '' $ac_executable_extensions; do
16745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16746 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
16747 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16756 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
16757 if test -n "$LIPO_FOR_TARGET"; then
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
16759 $as_echo "$LIPO_FOR_TARGET" >&6; }
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16762 $as_echo "no
" >&6; }
16767 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
16771 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
16773 if test $build = $target ; then
16774 LIPO_FOR_TARGET="$2"
16776 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
16779 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
16783 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
16789 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16790 if test -n "$with_build_time_tools"; then
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
16792 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
16793 if test -x $with_build_time_tools/nm; then
16794 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
16795 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
16797 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16800 $as_echo "no
" >&6; }
16802 elif test $build != $host && test $have_gcc_for_target = yes; then
16803 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
16804 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
16805 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
16808 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16809 # Extract the first word of "nm
", so it can be a program name with args.
16810 set dummy nm; ac_word=$2
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16812 $as_echo_n "checking
for $ac_word...
" >&6; }
16813 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
16814 $as_echo_n "(cached
) " >&6
16816 case $NM_FOR_TARGET in
16818 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
16821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16822 for as_dir in $gcc_cv_tool_dirs
16825 test -z "$as_dir" && as_dir=.
16826 for ac_exec_ext in '' $ac_executable_extensions; do
16827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16828 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16829 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16839 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
16840 if test -n "$NM_FOR_TARGET"; then
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16842 $as_echo "$NM_FOR_TARGET" >&6; }
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16845 $as_echo "no
" >&6; }
16850 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
16853 if test -n "$NM_FOR_TARGET"; then
16854 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
16855 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16856 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16859 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
16860 for ncn_progname in nm; do
16861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16862 set dummy ${ncn_progname}; ac_word=$2
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16864 $as_echo_n "checking
for $ac_word...
" >&6; }
16865 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16866 $as_echo_n "(cached
) " >&6
16868 if test -n "$NM_FOR_TARGET"; then
16869 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16872 for as_dir in $PATH
16875 test -z "$as_dir" && as_dir=.
16876 for ac_exec_ext in '' $ac_executable_extensions; do
16877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16878 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16879 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16888 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16889 if test -n "$NM_FOR_TARGET"; then
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16891 $as_echo "$NM_FOR_TARGET" >&6; }
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16894 $as_echo "no
" >&6; }
16901 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
16902 for ncn_progname in nm; do
16903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16904 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16905 if test -x $with_build_time_tools/${ncn_progname}; then
16906 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16908 $as_echo "yes" >&6; }
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16912 $as_echo "no
" >&6; }
16917 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
16918 for ncn_progname in nm; do
16919 if test -n "$ncn_target_tool_prefix"; then
16920 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16921 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16923 $as_echo_n "checking
for $ac_word...
" >&6; }
16924 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16925 $as_echo_n "(cached
) " >&6
16927 if test -n "$NM_FOR_TARGET"; then
16928 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16931 for as_dir in $PATH
16934 test -z "$as_dir" && as_dir=.
16935 for ac_exec_ext in '' $ac_executable_extensions; do
16936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16937 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16938 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16947 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16948 if test -n "$NM_FOR_TARGET"; then
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16950 $as_echo "$NM_FOR_TARGET" >&6; }
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16953 $as_echo "no
" >&6; }
16958 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
16959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16960 set dummy ${ncn_progname}; ac_word=$2
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16962 $as_echo_n "checking
for $ac_word...
" >&6; }
16963 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
16964 $as_echo_n "(cached
) " >&6
16966 if test -n "$NM_FOR_TARGET"; then
16967 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
16969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16970 for as_dir in $PATH
16973 test -z "$as_dir" && as_dir=.
16974 for ac_exec_ext in '' $ac_executable_extensions; do
16975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16976 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
16977 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16986 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
16987 if test -n "$NM_FOR_TARGET"; then
16988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
16989 $as_echo "$NM_FOR_TARGET" >&6; }
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16992 $as_echo "no
" >&6; }
16997 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
17001 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
17003 if test $build = $target ; then
17006 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
17009 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
17013 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
17019 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17020 if test -n "$with_build_time_tools"; then
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
17022 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
17023 if test -x $with_build_time_tools/objcopy; then
17024 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
17025 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
17027 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17030 $as_echo "no
" >&6; }
17032 elif test $build != $host && test $have_gcc_for_target = yes; then
17033 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
17034 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
17035 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17038 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17039 # Extract the first word of "objcopy
", so it can be a program name with args.
17040 set dummy objcopy; ac_word=$2
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17042 $as_echo_n "checking
for $ac_word...
" >&6; }
17043 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
17044 $as_echo_n "(cached
) " >&6
17046 case $OBJCOPY_FOR_TARGET in
17048 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
17051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17052 for as_dir in $gcc_cv_tool_dirs
17055 test -z "$as_dir" && as_dir=.
17056 for ac_exec_ext in '' $ac_executable_extensions; do
17057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17058 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17059 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17069 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17070 if test -n "$OBJCOPY_FOR_TARGET"; then
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
17072 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17075 $as_echo "no
" >&6; }
17080 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
17083 if test -n "$OBJCOPY_FOR_TARGET"; then
17084 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
17085 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17086 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17089 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17090 for ncn_progname in objcopy; do
17091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17092 set dummy ${ncn_progname}; ac_word=$2
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17094 $as_echo_n "checking
for $ac_word...
" >&6; }
17095 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17096 $as_echo_n "(cached
) " >&6
17098 if test -n "$OBJCOPY_FOR_TARGET"; then
17099 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17102 for as_dir in $PATH
17105 test -z "$as_dir" && as_dir=.
17106 for ac_exec_ext in '' $ac_executable_extensions; do
17107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17108 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17109 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17118 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17119 if test -n "$OBJCOPY_FOR_TARGET"; then
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
17121 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17124 $as_echo "no
" >&6; }
17131 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
17132 for ncn_progname in objcopy; do
17133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17134 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17135 if test -x $with_build_time_tools/${ncn_progname}; then
17136 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17138 $as_echo "yes" >&6; }
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17142 $as_echo "no
" >&6; }
17147 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
17148 for ncn_progname in objcopy; do
17149 if test -n "$ncn_target_tool_prefix"; then
17150 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17151 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17153 $as_echo_n "checking
for $ac_word...
" >&6; }
17154 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17155 $as_echo_n "(cached
) " >&6
17157 if test -n "$OBJCOPY_FOR_TARGET"; then
17158 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17161 for as_dir in $PATH
17164 test -z "$as_dir" && as_dir=.
17165 for ac_exec_ext in '' $ac_executable_extensions; do
17166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17167 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17168 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17177 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17178 if test -n "$OBJCOPY_FOR_TARGET"; then
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
17180 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17183 $as_echo "no
" >&6; }
17188 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
17189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17190 set dummy ${ncn_progname}; ac_word=$2
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17192 $as_echo_n "checking
for $ac_word...
" >&6; }
17193 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
17194 $as_echo_n "(cached
) " >&6
17196 if test -n "$OBJCOPY_FOR_TARGET"; then
17197 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
17199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17200 for as_dir in $PATH
17203 test -z "$as_dir" && as_dir=.
17204 for ac_exec_ext in '' $ac_executable_extensions; do
17205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17206 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
17207 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17216 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
17217 if test -n "$OBJCOPY_FOR_TARGET"; then
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
17219 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17222 $as_echo "no
" >&6; }
17227 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
17231 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
17233 if test $build = $target ; then
17234 OBJCOPY_FOR_TARGET="$2"
17236 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
17239 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
17243 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
17249 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17250 if test -n "$with_build_time_tools"; then
17251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
17252 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
17253 if test -x $with_build_time_tools/objdump; then
17254 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
17255 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
17257 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17260 $as_echo "no
" >&6; }
17262 elif test $build != $host && test $have_gcc_for_target = yes; then
17263 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
17264 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
17265 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17268 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17269 # Extract the first word of "objdump
", so it can be a program name with args.
17270 set dummy objdump; ac_word=$2
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17272 $as_echo_n "checking
for $ac_word...
" >&6; }
17273 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
17274 $as_echo_n "(cached
) " >&6
17276 case $OBJDUMP_FOR_TARGET in
17278 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
17281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17282 for as_dir in $gcc_cv_tool_dirs
17285 test -z "$as_dir" && as_dir=.
17286 for ac_exec_ext in '' $ac_executable_extensions; do
17287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17288 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17289 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17299 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17300 if test -n "$OBJDUMP_FOR_TARGET"; then
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
17302 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17305 $as_echo "no
" >&6; }
17310 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
17313 if test -n "$OBJDUMP_FOR_TARGET"; then
17314 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
17315 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17316 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17319 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17320 for ncn_progname in objdump; do
17321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17322 set dummy ${ncn_progname}; ac_word=$2
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17324 $as_echo_n "checking
for $ac_word...
" >&6; }
17325 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17326 $as_echo_n "(cached
) " >&6
17328 if test -n "$OBJDUMP_FOR_TARGET"; then
17329 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17332 for as_dir in $PATH
17335 test -z "$as_dir" && as_dir=.
17336 for ac_exec_ext in '' $ac_executable_extensions; do
17337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17338 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17339 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17348 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17349 if test -n "$OBJDUMP_FOR_TARGET"; then
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
17351 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17354 $as_echo "no
" >&6; }
17361 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17362 for ncn_progname in objdump; do
17363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17364 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17365 if test -x $with_build_time_tools/${ncn_progname}; then
17366 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17368 $as_echo "yes" >&6; }
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17372 $as_echo "no
" >&6; }
17377 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
17378 for ncn_progname in objdump; do
17379 if test -n "$ncn_target_tool_prefix"; then
17380 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17381 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17383 $as_echo_n "checking
for $ac_word...
" >&6; }
17384 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17385 $as_echo_n "(cached
) " >&6
17387 if test -n "$OBJDUMP_FOR_TARGET"; then
17388 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17391 for as_dir in $PATH
17394 test -z "$as_dir" && as_dir=.
17395 for ac_exec_ext in '' $ac_executable_extensions; do
17396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17397 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17398 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17407 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17408 if test -n "$OBJDUMP_FOR_TARGET"; then
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
17410 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17413 $as_echo "no
" >&6; }
17418 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
17419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17420 set dummy ${ncn_progname}; ac_word=$2
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17422 $as_echo_n "checking
for $ac_word...
" >&6; }
17423 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
17424 $as_echo_n "(cached
) " >&6
17426 if test -n "$OBJDUMP_FOR_TARGET"; then
17427 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
17429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17430 for as_dir in $PATH
17433 test -z "$as_dir" && as_dir=.
17434 for ac_exec_ext in '' $ac_executable_extensions; do
17435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17436 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
17437 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17446 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
17447 if test -n "$OBJDUMP_FOR_TARGET"; then
17448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
17449 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17452 $as_echo "no
" >&6; }
17457 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
17461 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
17463 if test $build = $target ; then
17464 OBJDUMP_FOR_TARGET="$2"
17466 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17469 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
17473 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
17479 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17480 if test -n "$with_build_time_tools"; then
17481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
17482 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
17483 if test -x $with_build_time_tools/otool; then
17484 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
17485 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
17487 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17490 $as_echo "no
" >&6; }
17492 elif test $build != $host && test $have_gcc_for_target = yes; then
17493 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
17494 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
17495 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17498 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17499 # Extract the first word of "otool
", so it can be a program name with args.
17500 set dummy otool; ac_word=$2
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17502 $as_echo_n "checking
for $ac_word...
" >&6; }
17503 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
17504 $as_echo_n "(cached
) " >&6
17506 case $OTOOL_FOR_TARGET in
17508 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
17511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17512 for as_dir in $gcc_cv_tool_dirs
17515 test -z "$as_dir" && as_dir=.
17516 for ac_exec_ext in '' $ac_executable_extensions; do
17517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17518 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17519 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17529 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17530 if test -n "$OTOOL_FOR_TARGET"; then
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
17532 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17535 $as_echo "no
" >&6; }
17540 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
17543 if test -n "$OTOOL_FOR_TARGET"; then
17544 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
17545 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17546 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17549 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17550 for ncn_progname in otool; do
17551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17552 set dummy ${ncn_progname}; ac_word=$2
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17554 $as_echo_n "checking
for $ac_word...
" >&6; }
17555 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17556 $as_echo_n "(cached
) " >&6
17558 if test -n "$OTOOL_FOR_TARGET"; then
17559 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17562 for as_dir in $PATH
17565 test -z "$as_dir" && as_dir=.
17566 for ac_exec_ext in '' $ac_executable_extensions; do
17567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17568 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17569 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17578 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17579 if test -n "$OTOOL_FOR_TARGET"; then
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
17581 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17584 $as_echo "no
" >&6; }
17591 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
17592 for ncn_progname in otool; do
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17594 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17595 if test -x $with_build_time_tools/${ncn_progname}; then
17596 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17598 $as_echo "yes" >&6; }
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17602 $as_echo "no
" >&6; }
17607 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
17608 for ncn_progname in otool; do
17609 if test -n "$ncn_target_tool_prefix"; then
17610 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17611 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17613 $as_echo_n "checking
for $ac_word...
" >&6; }
17614 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17615 $as_echo_n "(cached
) " >&6
17617 if test -n "$OTOOL_FOR_TARGET"; then
17618 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17621 for as_dir in $PATH
17624 test -z "$as_dir" && as_dir=.
17625 for ac_exec_ext in '' $ac_executable_extensions; do
17626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17627 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17628 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17637 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17638 if test -n "$OTOOL_FOR_TARGET"; then
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
17640 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17643 $as_echo "no
" >&6; }
17648 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
17649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17650 set dummy ${ncn_progname}; ac_word=$2
17651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17652 $as_echo_n "checking
for $ac_word...
" >&6; }
17653 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
17654 $as_echo_n "(cached
) " >&6
17656 if test -n "$OTOOL_FOR_TARGET"; then
17657 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
17659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17660 for as_dir in $PATH
17663 test -z "$as_dir" && as_dir=.
17664 for ac_exec_ext in '' $ac_executable_extensions; do
17665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17666 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
17667 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17676 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
17677 if test -n "$OTOOL_FOR_TARGET"; then
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
17679 $as_echo "$OTOOL_FOR_TARGET" >&6; }
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17682 $as_echo "no
" >&6; }
17687 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
17691 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
17693 if test $build = $target ; then
17694 OTOOL_FOR_TARGET="$2"
17696 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
17699 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
17703 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
17709 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17710 if test -n "$with_build_time_tools"; then
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
17712 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
17713 if test -x $with_build_time_tools/ranlib; then
17714 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
17715 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
17717 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17720 $as_echo "no
" >&6; }
17722 elif test $build != $host && test $have_gcc_for_target = yes; then
17723 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
17724 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
17725 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17728 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17729 # Extract the first word of "ranlib
", so it can be a program name with args.
17730 set dummy ranlib; ac_word=$2
17731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17732 $as_echo_n "checking
for $ac_word...
" >&6; }
17733 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
17734 $as_echo_n "(cached
) " >&6
17736 case $RANLIB_FOR_TARGET in
17738 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
17741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17742 for as_dir in $gcc_cv_tool_dirs
17745 test -z "$as_dir" && as_dir=.
17746 for ac_exec_ext in '' $ac_executable_extensions; do
17747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17748 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17749 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17759 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17760 if test -n "$RANLIB_FOR_TARGET"; then
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
17762 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17765 $as_echo "no
" >&6; }
17770 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
17773 if test -n "$RANLIB_FOR_TARGET"; then
17774 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
17775 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17776 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17779 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17780 for ncn_progname in ranlib; do
17781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17782 set dummy ${ncn_progname}; ac_word=$2
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17784 $as_echo_n "checking
for $ac_word...
" >&6; }
17785 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17786 $as_echo_n "(cached
) " >&6
17788 if test -n "$RANLIB_FOR_TARGET"; then
17789 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17792 for as_dir in $PATH
17795 test -z "$as_dir" && as_dir=.
17796 for ac_exec_ext in '' $ac_executable_extensions; do
17797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17798 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17799 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17808 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17809 if test -n "$RANLIB_FOR_TARGET"; then
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
17811 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17814 $as_echo "no
" >&6; }
17821 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
17822 for ncn_progname in ranlib; do
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17824 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17825 if test -x $with_build_time_tools/${ncn_progname}; then
17826 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17828 $as_echo "yes" >&6; }
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17832 $as_echo "no
" >&6; }
17837 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
17838 for ncn_progname in ranlib; do
17839 if test -n "$ncn_target_tool_prefix"; then
17840 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17841 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17843 $as_echo_n "checking
for $ac_word...
" >&6; }
17844 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17845 $as_echo_n "(cached
) " >&6
17847 if test -n "$RANLIB_FOR_TARGET"; then
17848 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17851 for as_dir in $PATH
17854 test -z "$as_dir" && as_dir=.
17855 for ac_exec_ext in '' $ac_executable_extensions; do
17856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17857 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17858 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17867 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17868 if test -n "$RANLIB_FOR_TARGET"; then
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
17870 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17873 $as_echo "no
" >&6; }
17878 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
17879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17880 set dummy ${ncn_progname}; ac_word=$2
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17882 $as_echo_n "checking
for $ac_word...
" >&6; }
17883 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
17884 $as_echo_n "(cached
) " >&6
17886 if test -n "$RANLIB_FOR_TARGET"; then
17887 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
17889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17890 for as_dir in $PATH
17893 test -z "$as_dir" && as_dir=.
17894 for ac_exec_ext in '' $ac_executable_extensions; do
17895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17896 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
17897 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17906 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
17907 if test -n "$RANLIB_FOR_TARGET"; then
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
17909 $as_echo "$RANLIB_FOR_TARGET" >&6; }
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17912 $as_echo "no
" >&6; }
17917 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
17921 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
17923 if test $build = $target ; then
17924 RANLIB_FOR_TARGET="$2"
17926 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
17929 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
17933 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
17939 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
17940 if test -n "$with_build_time_tools"; then
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
17942 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
17943 if test -x $with_build_time_tools/readelf; then
17944 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
17945 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
17947 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
17949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17950 $as_echo "no
" >&6; }
17952 elif test $build != $host && test $have_gcc_for_target = yes; then
17953 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
17954 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
17955 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
17958 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17959 # Extract the first word of "readelf
", so it can be a program name with args.
17960 set dummy readelf; ac_word=$2
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17962 $as_echo_n "checking
for $ac_word...
" >&6; }
17963 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
17964 $as_echo_n "(cached
) " >&6
17966 case $READELF_FOR_TARGET in
17968 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
17971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17972 for as_dir in $gcc_cv_tool_dirs
17975 test -z "$as_dir" && as_dir=.
17976 for ac_exec_ext in '' $ac_executable_extensions; do
17977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17978 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17979 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17989 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17990 if test -n "$READELF_FOR_TARGET"; then
17991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17992 $as_echo "$READELF_FOR_TARGET" >&6; }
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17995 $as_echo "no
" >&6; }
18000 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
18003 if test -n "$READELF_FOR_TARGET"; then
18004 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
18005 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18006 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18009 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
18010 for ncn_progname in readelf; do
18011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18012 set dummy ${ncn_progname}; ac_word=$2
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18014 $as_echo_n "checking
for $ac_word...
" >&6; }
18015 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18016 $as_echo_n "(cached
) " >&6
18018 if test -n "$READELF_FOR_TARGET"; then
18019 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18022 for as_dir in $PATH
18025 test -z "$as_dir" && as_dir=.
18026 for ac_exec_ext in '' $ac_executable_extensions; do
18027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18028 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18029 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18038 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18039 if test -n "$READELF_FOR_TARGET"; then
18040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
18041 $as_echo "$READELF_FOR_TARGET" >&6; }
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18044 $as_echo "no
" >&6; }
18051 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
18052 for ncn_progname in readelf; do
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
18054 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
18055 if test -x $with_build_time_tools/${ncn_progname}; then
18056 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
18058 $as_echo "yes" >&6; }
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18062 $as_echo "no
" >&6; }
18067 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
18068 for ncn_progname in readelf; do
18069 if test -n "$ncn_target_tool_prefix"; then
18070 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18071 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18073 $as_echo_n "checking
for $ac_word...
" >&6; }
18074 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18075 $as_echo_n "(cached
) " >&6
18077 if test -n "$READELF_FOR_TARGET"; then
18078 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18081 for as_dir in $PATH
18084 test -z "$as_dir" && as_dir=.
18085 for ac_exec_ext in '' $ac_executable_extensions; do
18086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18087 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18088 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18097 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18098 if test -n "$READELF_FOR_TARGET"; then
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
18100 $as_echo "$READELF_FOR_TARGET" >&6; }
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18103 $as_echo "no
" >&6; }
18108 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
18109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18110 set dummy ${ncn_progname}; ac_word=$2
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18112 $as_echo_n "checking
for $ac_word...
" >&6; }
18113 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
18114 $as_echo_n "(cached
) " >&6
18116 if test -n "$READELF_FOR_TARGET"; then
18117 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
18119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18120 for as_dir in $PATH
18123 test -z "$as_dir" && as_dir=.
18124 for ac_exec_ext in '' $ac_executable_extensions; do
18125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18126 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
18127 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18136 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
18137 if test -n "$READELF_FOR_TARGET"; then
18138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
18139 $as_echo "$READELF_FOR_TARGET" >&6; }
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18142 $as_echo "no
" >&6; }
18147 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
18151 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
18153 if test $build = $target ; then
18154 READELF_FOR_TARGET="$2"
18156 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
18159 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
18163 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
18169 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18170 if test -n "$with_build_time_tools"; then
18171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
18172 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
18173 if test -x $with_build_time_tools/strip; then
18174 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
18175 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
18177 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18180 $as_echo "no
" >&6; }
18182 elif test $build != $host && test $have_gcc_for_target = yes; then
18183 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
18184 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
18185 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18188 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18189 # Extract the first word of "strip
", so it can be a program name with args.
18190 set dummy strip; ac_word=$2
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18192 $as_echo_n "checking
for $ac_word...
" >&6; }
18193 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
18194 $as_echo_n "(cached
) " >&6
18196 case $STRIP_FOR_TARGET in
18198 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
18201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18202 for as_dir in $gcc_cv_tool_dirs
18205 test -z "$as_dir" && as_dir=.
18206 for ac_exec_ext in '' $ac_executable_extensions; do
18207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18208 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18209 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18219 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18220 if test -n "$STRIP_FOR_TARGET"; then
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
18222 $as_echo "$STRIP_FOR_TARGET" >&6; }
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18225 $as_echo "no
" >&6; }
18230 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
18233 if test -n "$STRIP_FOR_TARGET"; then
18234 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
18235 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18236 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18239 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
18240 for ncn_progname in strip; do
18241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18242 set dummy ${ncn_progname}; ac_word=$2
18243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18244 $as_echo_n "checking
for $ac_word...
" >&6; }
18245 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18246 $as_echo_n "(cached
) " >&6
18248 if test -n "$STRIP_FOR_TARGET"; then
18249 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18252 for as_dir in $PATH
18255 test -z "$as_dir" && as_dir=.
18256 for ac_exec_ext in '' $ac_executable_extensions; do
18257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18258 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18259 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18268 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18269 if test -n "$STRIP_FOR_TARGET"; then
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
18271 $as_echo "$STRIP_FOR_TARGET" >&6; }
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18274 $as_echo "no
" >&6; }
18281 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
18282 for ncn_progname in strip; do
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
18284 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
18285 if test -x $with_build_time_tools/${ncn_progname}; then
18286 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
18288 $as_echo "yes" >&6; }
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18292 $as_echo "no
" >&6; }
18297 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
18298 for ncn_progname in strip; do
18299 if test -n "$ncn_target_tool_prefix"; then
18300 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18301 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18303 $as_echo_n "checking
for $ac_word...
" >&6; }
18304 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18305 $as_echo_n "(cached
) " >&6
18307 if test -n "$STRIP_FOR_TARGET"; then
18308 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18311 for as_dir in $PATH
18314 test -z "$as_dir" && as_dir=.
18315 for ac_exec_ext in '' $ac_executable_extensions; do
18316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18317 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18318 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18327 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18328 if test -n "$STRIP_FOR_TARGET"; then
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
18330 $as_echo "$STRIP_FOR_TARGET" >&6; }
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18333 $as_echo "no
" >&6; }
18338 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
18339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18340 set dummy ${ncn_progname}; ac_word=$2
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18342 $as_echo_n "checking
for $ac_word...
" >&6; }
18343 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
18344 $as_echo_n "(cached
) " >&6
18346 if test -n "$STRIP_FOR_TARGET"; then
18347 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
18349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18350 for as_dir in $PATH
18353 test -z "$as_dir" && as_dir=.
18354 for ac_exec_ext in '' $ac_executable_extensions; do
18355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18356 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
18357 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18366 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
18367 if test -n "$STRIP_FOR_TARGET"; then
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
18369 $as_echo "$STRIP_FOR_TARGET" >&6; }
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18372 $as_echo "no
" >&6; }
18377 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
18381 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
18383 if test $build = $target ; then
18384 STRIP_FOR_TARGET="$2"
18386 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
18389 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
18393 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
18399 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18400 if test -n "$with_build_time_tools"; then
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
18402 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
18403 if test -x $with_build_time_tools/windres; then
18404 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
18405 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
18407 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18410 $as_echo "no
" >&6; }
18412 elif test $build != $host && test $have_gcc_for_target = yes; then
18413 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
18414 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
18415 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18418 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18419 # Extract the first word of "windres
", so it can be a program name with args.
18420 set dummy windres; ac_word=$2
18421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18422 $as_echo_n "checking
for $ac_word...
" >&6; }
18423 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
18424 $as_echo_n "(cached
) " >&6
18426 case $WINDRES_FOR_TARGET in
18428 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
18431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18432 for as_dir in $gcc_cv_tool_dirs
18435 test -z "$as_dir" && as_dir=.
18436 for ac_exec_ext in '' $ac_executable_extensions; do
18437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18438 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18439 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18449 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18450 if test -n "$WINDRES_FOR_TARGET"; then
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
18452 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18455 $as_echo "no
" >&6; }
18460 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
18463 if test -n "$WINDRES_FOR_TARGET"; then
18464 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
18465 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18466 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18469 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18470 for ncn_progname in windres; do
18471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18472 set dummy ${ncn_progname}; ac_word=$2
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18474 $as_echo_n "checking
for $ac_word...
" >&6; }
18475 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18476 $as_echo_n "(cached
) " >&6
18478 if test -n "$WINDRES_FOR_TARGET"; then
18479 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18482 for as_dir in $PATH
18485 test -z "$as_dir" && as_dir=.
18486 for ac_exec_ext in '' $ac_executable_extensions; do
18487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18488 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18489 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18498 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18499 if test -n "$WINDRES_FOR_TARGET"; then
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
18501 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18504 $as_echo "no
" >&6; }
18511 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
18512 for ncn_progname in windres; do
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
18514 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
18515 if test -x $with_build_time_tools/${ncn_progname}; then
18516 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
18518 $as_echo "yes" >&6; }
18521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18522 $as_echo "no
" >&6; }
18527 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
18528 for ncn_progname in windres; do
18529 if test -n "$ncn_target_tool_prefix"; then
18530 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18531 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18533 $as_echo_n "checking
for $ac_word...
" >&6; }
18534 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18535 $as_echo_n "(cached
) " >&6
18537 if test -n "$WINDRES_FOR_TARGET"; then
18538 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18541 for as_dir in $PATH
18544 test -z "$as_dir" && as_dir=.
18545 for ac_exec_ext in '' $ac_executable_extensions; do
18546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18547 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18548 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18557 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18558 if test -n "$WINDRES_FOR_TARGET"; then
18559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
18560 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18563 $as_echo "no
" >&6; }
18568 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
18569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18570 set dummy ${ncn_progname}; ac_word=$2
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18572 $as_echo_n "checking
for $ac_word...
" >&6; }
18573 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
18574 $as_echo_n "(cached
) " >&6
18576 if test -n "$WINDRES_FOR_TARGET"; then
18577 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
18579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18580 for as_dir in $PATH
18583 test -z "$as_dir" && as_dir=.
18584 for ac_exec_ext in '' $ac_executable_extensions; do
18585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18586 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
18587 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18596 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
18597 if test -n "$WINDRES_FOR_TARGET"; then
18598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
18599 $as_echo "$WINDRES_FOR_TARGET" >&6; }
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18602 $as_echo "no
" >&6; }
18607 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
18611 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
18613 if test $build = $target ; then
18614 WINDRES_FOR_TARGET="$2"
18616 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
18619 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
18623 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
18629 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18630 if test -n "$with_build_time_tools"; then
18631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
18632 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
18633 if test -x $with_build_time_tools/windmc; then
18634 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
18635 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
18637 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18640 $as_echo "no
" >&6; }
18642 elif test $build != $host && test $have_gcc_for_target = yes; then
18643 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
18644 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
18645 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18648 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
18649 # Extract the first word of "windmc
", so it can be a program name with args.
18650 set dummy windmc; ac_word=$2
18651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18652 $as_echo_n "checking
for $ac_word...
" >&6; }
18653 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
18654 $as_echo_n "(cached
) " >&6
18656 case $WINDMC_FOR_TARGET in
18658 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
18661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18662 for as_dir in $gcc_cv_tool_dirs
18665 test -z "$as_dir" && as_dir=.
18666 for ac_exec_ext in '' $ac_executable_extensions; do
18667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18668 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
18669 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18679 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18680 if test -n "$WINDMC_FOR_TARGET"; then
18681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
18682 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18685 $as_echo "no
" >&6; }
18690 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
18693 if test -n "$WINDMC_FOR_TARGET"; then
18694 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
18695 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18696 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18699 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18700 for ncn_progname in windmc; do
18701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18702 set dummy ${ncn_progname}; ac_word=$2
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18704 $as_echo_n "checking
for $ac_word...
" >&6; }
18705 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18706 $as_echo_n "(cached
) " >&6
18708 if test -n "$WINDMC_FOR_TARGET"; then
18709 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18712 for as_dir in $PATH
18715 test -z "$as_dir" && as_dir=.
18716 for ac_exec_ext in '' $ac_executable_extensions; do
18717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18718 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18719 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18728 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18729 if test -n "$WINDMC_FOR_TARGET"; then
18730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
18731 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18734 $as_echo "no
" >&6; }
18741 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
18742 for ncn_progname in windmc; do
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
18744 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
18745 if test -x $with_build_time_tools/${ncn_progname}; then
18746 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
18747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
18748 $as_echo "yes" >&6; }
18751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18752 $as_echo "no
" >&6; }
18757 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
18758 for ncn_progname in windmc; do
18759 if test -n "$ncn_target_tool_prefix"; then
18760 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
18761 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
18762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18763 $as_echo_n "checking
for $ac_word...
" >&6; }
18764 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18765 $as_echo_n "(cached
) " >&6
18767 if test -n "$WINDMC_FOR_TARGET"; then
18768 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18771 for as_dir in $PATH
18774 test -z "$as_dir" && as_dir=.
18775 for ac_exec_ext in '' $ac_executable_extensions; do
18776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18777 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
18778 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18787 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18788 if test -n "$WINDMC_FOR_TARGET"; then
18789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
18790 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18792 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18793 $as_echo "no
" >&6; }
18798 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
18799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
18800 set dummy ${ncn_progname}; ac_word=$2
18801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
18802 $as_echo_n "checking
for $ac_word...
" >&6; }
18803 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
18804 $as_echo_n "(cached
) " >&6
18806 if test -n "$WINDMC_FOR_TARGET"; then
18807 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
18809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18810 for as_dir in $PATH
18813 test -z "$as_dir" && as_dir=.
18814 for ac_exec_ext in '' $ac_executable_extensions; do
18815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18816 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
18817 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
18826 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
18827 if test -n "$WINDMC_FOR_TARGET"; then
18828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
18829 $as_echo "$WINDMC_FOR_TARGET" >&6; }
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
18832 $as_echo "no
" >&6; }
18837 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
18841 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
18843 if test $build = $target ; then
18844 WINDMC_FOR_TARGET="$2"
18846 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
18849 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
18853 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
18857 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
18859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
18860 $as_echo_n "checking where to
find the target
ar...
" >&6; }
18861 if test "x
${build}" != "x
${host}" ; then
18862 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
18863 # We already found the complete path
18864 ac_dir=`dirname $AR_FOR_TARGET`
18865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18866 $as_echo "pre-installed
in $ac_dir" >&6; }
18868 # Canadian cross, just use what we found
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18870 $as_echo "pre-installed
" >&6; }
18874 case " ${configdirs} " in
18879 if test $ok = yes; then
18880 # An in-tree tool is available and we can use it
18881 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
18882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18883 $as_echo "just compiled
" >&6; }
18884 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
18885 # We already found the complete path
18886 ac_dir=`dirname $AR_FOR_TARGET`
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18888 $as_echo "pre-installed
in $ac_dir" >&6; }
18889 elif test "x
$target" = "x
$host"; then
18890 # We can use an host tool
18891 AR_FOR_TARGET='$(AR)'
18892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18893 $as_echo "host tool
" >&6; }
18895 # We need a cross tool
18896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18897 $as_echo "pre-installed
" >&6; }
18901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
18902 $as_echo_n "checking where to
find the target as...
" >&6; }
18903 if test "x
${build}" != "x
${host}" ; then
18904 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
18905 # We already found the complete path
18906 ac_dir=`dirname $AS_FOR_TARGET`
18907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18908 $as_echo "pre-installed
in $ac_dir" >&6; }
18910 # Canadian cross, just use what we found
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18912 $as_echo "pre-installed
" >&6; }
18916 case " ${configdirs} " in
18921 if test $ok = yes; then
18922 # An in-tree tool is available and we can use it
18923 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
18924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18925 $as_echo "just compiled
" >&6; }
18926 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
18927 # We already found the complete path
18928 ac_dir=`dirname $AS_FOR_TARGET`
18929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18930 $as_echo "pre-installed
in $ac_dir" >&6; }
18931 elif test "x
$target" = "x
$host"; then
18932 # We can use an host tool
18933 AS_FOR_TARGET='$(AS)'
18934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18935 $as_echo "host tool
" >&6; }
18937 # We need a cross tool
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18939 $as_echo "pre-installed
" >&6; }
18943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
18944 $as_echo_n "checking where to
find the target cc...
" >&6; }
18945 if test "x
${build}" != "x
${host}" ; then
18946 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
18947 # We already found the complete path
18948 ac_dir=`dirname $CC_FOR_TARGET`
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18950 $as_echo "pre-installed
in $ac_dir" >&6; }
18952 # Canadian cross, just use what we found
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18954 $as_echo "pre-installed
" >&6; }
18958 case " ${configdirs} " in
18963 if test $ok = yes; then
18964 # An in-tree tool is available and we can use it
18965 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18967 $as_echo "just compiled
" >&6; }
18968 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
18969 # We already found the complete path
18970 ac_dir=`dirname $CC_FOR_TARGET`
18971 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18972 $as_echo "pre-installed
in $ac_dir" >&6; }
18973 elif test "x
$target" = "x
$host"; then
18974 # We can use an host tool
18975 CC_FOR_TARGET='$(CC)'
18976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18977 $as_echo "host tool
" >&6; }
18979 # We need a cross tool
18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18981 $as_echo "pre-installed
" >&6; }
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
18986 $as_echo_n "checking where to
find the target c
++...
" >&6; }
18987 if test "x
${build}" != "x
${host}" ; then
18988 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
18989 # We already found the complete path
18990 ac_dir=`dirname $CXX_FOR_TARGET`
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18992 $as_echo "pre-installed
in $ac_dir" >&6; }
18994 # Canadian cross, just use what we found
18995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18996 $as_echo "pre-installed
" >&6; }
19000 case " ${configdirs} " in
19004 case ,${enable_languages}, in
19008 if test $ok = yes; then
19009 # An in-tree tool is available and we can use it
19010 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'
19011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19012 $as_echo "just compiled
" >&6; }
19013 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
19014 # We already found the complete path
19015 ac_dir=`dirname $CXX_FOR_TARGET`
19016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19017 $as_echo "pre-installed
in $ac_dir" >&6; }
19018 elif test "x
$target" = "x
$host"; then
19019 # We can use an host tool
19020 CXX_FOR_TARGET='$(CXX)'
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19022 $as_echo "host tool
" >&6; }
19024 # We need a cross tool
19025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19026 $as_echo "pre-installed
" >&6; }
19030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
19031 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
19032 if test "x
${build}" != "x
${host}" ; then
19033 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
19034 # We already found the complete path
19035 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19037 $as_echo "pre-installed
in $ac_dir" >&6; }
19039 # Canadian cross, just use what we found
19040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19041 $as_echo "pre-installed
" >&6; }
19045 case " ${configdirs} " in
19049 case ,${enable_languages}, in
19053 if test $ok = yes; then
19054 # An in-tree tool is available and we can use it
19055 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'
19056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19057 $as_echo "just compiled
" >&6; }
19058 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
19059 # We already found the complete path
19060 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
19061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19062 $as_echo "pre-installed
in $ac_dir" >&6; }
19063 elif test "x
$target" = "x
$host"; then
19064 # We can use an host tool
19065 RAW_CXX_FOR_TARGET='$(CXX)'
19066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19067 $as_echo "host tool
" >&6; }
19069 # We need a cross tool
19070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19071 $as_echo "pre-installed
" >&6; }
19075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
19076 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
19077 if test "x
${build}" != "x
${host}" ; then
19078 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
19079 # We already found the complete path
19080 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19082 $as_echo "pre-installed
in $ac_dir" >&6; }
19084 # Canadian cross, just use what we found
19085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19086 $as_echo "pre-installed
" >&6; }
19090 case " ${configdirs} " in
19095 if test $ok = yes; then
19096 # An in-tree tool is available and we can use it
19097 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19099 $as_echo "just compiled
" >&6; }
19100 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
19101 # We already found the complete path
19102 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19104 $as_echo "pre-installed
in $ac_dir" >&6; }
19105 elif test "x
$target" = "x
$host"; then
19106 # We can use an host tool
19107 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
19108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19109 $as_echo "host tool
" >&6; }
19111 # We need a cross tool
19112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19113 $as_echo "pre-installed
" >&6; }
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
19118 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
19119 if test "x
${build}" != "x
${host}" ; then
19120 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
19121 # We already found the complete path
19122 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19124 $as_echo "pre-installed
in $ac_dir" >&6; }
19126 # Canadian cross, just use what we found
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19128 $as_echo "pre-installed
" >&6; }
19131 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
19132 # We already found the complete path
19133 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
19134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19135 $as_echo "pre-installed
in $ac_dir" >&6; }
19136 elif test "x
$target" = "x
$host"; then
19137 # We can use an host tool
19138 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19140 $as_echo "host tool
" >&6; }
19142 # We need a cross tool
19143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19144 $as_echo "pre-installed
" >&6; }
19148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
19149 $as_echo_n "checking where to
find the target gcc...
" >&6; }
19150 if test "x
${build}" != "x
${host}" ; then
19151 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
19152 # We already found the complete path
19153 ac_dir=`dirname $GCC_FOR_TARGET`
19154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19155 $as_echo "pre-installed
in $ac_dir" >&6; }
19157 # Canadian cross, just use what we found
19158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19159 $as_echo "pre-installed
" >&6; }
19163 case " ${configdirs} " in
19168 if test $ok = yes; then
19169 # An in-tree tool is available and we can use it
19170 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
19171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19172 $as_echo "just compiled
" >&6; }
19173 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
19174 # We already found the complete path
19175 ac_dir=`dirname $GCC_FOR_TARGET`
19176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19177 $as_echo "pre-installed
in $ac_dir" >&6; }
19178 elif test "x
$target" = "x
$host"; then
19179 # We can use an host tool
19180 GCC_FOR_TARGET='$()'
19181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19182 $as_echo "host tool
" >&6; }
19184 # We need a cross tool
19185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19186 $as_echo "pre-installed
" >&6; }
19190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
19191 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
19192 if test "x
${build}" != "x
${host}" ; then
19193 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
19194 # We already found the complete path
19195 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19197 $as_echo "pre-installed
in $ac_dir" >&6; }
19199 # Canadian cross, just use what we found
19200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19201 $as_echo "pre-installed
" >&6; }
19205 case " ${configdirs} " in
19209 case ,${enable_languages}, in
19213 if test $ok = yes; then
19214 # An in-tree tool is available and we can use it
19215 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
19216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19217 $as_echo "just compiled
" >&6; }
19218 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
19219 # We already found the complete path
19220 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19222 $as_echo "pre-installed
in $ac_dir" >&6; }
19223 elif test "x
$target" = "x
$host"; then
19224 # We can use an host tool
19225 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19227 $as_echo "host tool
" >&6; }
19229 # We need a cross tool
19230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19231 $as_echo "pre-installed
" >&6; }
19235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
19236 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
19237 if test "x
${build}" != "x
${host}" ; then
19238 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
19239 # We already found the complete path
19240 ac_dir=`dirname $GOC_FOR_TARGET`
19241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19242 $as_echo "pre-installed
in $ac_dir" >&6; }
19244 # Canadian cross, just use what we found
19245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19246 $as_echo "pre-installed
" >&6; }
19250 case " ${configdirs} " in
19254 case ,${enable_languages}, in
19258 if test $ok = yes; then
19259 # An in-tree tool is available and we can use it
19260 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19262 $as_echo "just compiled
" >&6; }
19263 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
19264 # We already found the complete path
19265 ac_dir=`dirname $GOC_FOR_TARGET`
19266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19267 $as_echo "pre-installed
in $ac_dir" >&6; }
19268 elif test "x
$target" = "x
$host"; then
19269 # We can use an host tool
19270 GOC_FOR_TARGET='$(GOC)'
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19272 $as_echo "host tool
" >&6; }
19274 # We need a cross tool
19275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19276 $as_echo "pre-installed
" >&6; }
19280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
19281 $as_echo_n "checking where to
find the target gdc...
" >&6; }
19282 if test "x
${build}" != "x
${host}" ; then
19283 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
19284 # We already found the complete path
19285 ac_dir=`dirname $GDC_FOR_TARGET`
19286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19287 $as_echo "pre-installed
in $ac_dir" >&6; }
19289 # Canadian cross, just use what we found
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19291 $as_echo "pre-installed
" >&6; }
19295 case " ${configdirs} " in
19299 case ,${enable_languages}, in
19303 if test $ok = yes; then
19304 # An in-tree tool is available and we can use it
19305 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
19306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19307 $as_echo "just compiled
" >&6; }
19308 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
19309 # We already found the complete path
19310 ac_dir=`dirname $GDC_FOR_TARGET`
19311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19312 $as_echo "pre-installed
in $ac_dir" >&6; }
19313 elif test "x
$target" = "x
$host"; then
19314 # We can use an host tool
19315 GDC_FOR_TARGET='$(GDC)'
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19317 $as_echo "host tool
" >&6; }
19319 # We need a cross tool
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19321 $as_echo "pre-installed
" >&6; }
19325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gm2
" >&5
19326 $as_echo_n "checking where to
find the target gm2...
" >&6; }
19327 if test "x
${build}" != "x
${host}" ; then
19328 if expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
19329 # We already found the complete path
19330 ac_dir=`dirname $GM2_FOR_TARGET`
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19332 $as_echo "pre-installed
in $ac_dir" >&6; }
19334 # Canadian cross, just use what we found
19335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19336 $as_echo "pre-installed
" >&6; }
19340 case " ${configdirs} " in
19344 case ,${enable_languages}, in
19348 if test $ok = yes; then
19349 # An in-tree tool is available and we can use it
19350 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
19351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19352 $as_echo "just compiled
" >&6; }
19353 elif expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
19354 # We already found the complete path
19355 ac_dir=`dirname $GM2_FOR_TARGET`
19356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19357 $as_echo "pre-installed
in $ac_dir" >&6; }
19358 elif test "x
$target" = "x
$host"; then
19359 # We can use an host tool
19360 GM2_FOR_TARGET='$(GM2)'
19361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19362 $as_echo "host tool
" >&6; }
19364 # We need a cross tool
19365 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19366 $as_echo "pre-installed
" >&6; }
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
19371 $as_echo_n "checking where to
find the target ld...
" >&6; }
19372 if test "x
${build}" != "x
${host}" ; then
19373 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
19374 # We already found the complete path
19375 ac_dir=`dirname $LD_FOR_TARGET`
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19377 $as_echo "pre-installed
in $ac_dir" >&6; }
19379 # Canadian cross, just use what we found
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19381 $as_echo "pre-installed
" >&6; }
19385 case " ${configdirs} " in
19390 if test $ok = yes; then
19391 # An in-tree tool is available and we can use it
19392 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
19393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19394 $as_echo "just compiled
" >&6; }
19395 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
19396 # We already found the complete path
19397 ac_dir=`dirname $LD_FOR_TARGET`
19398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19399 $as_echo "pre-installed
in $ac_dir" >&6; }
19400 elif test "x
$target" = "x
$host"; then
19401 # We can use an host tool
19402 LD_FOR_TARGET='$(LD)'
19403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19404 $as_echo "host tool
" >&6; }
19406 # We need a cross tool
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19408 $as_echo "pre-installed
" >&6; }
19412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
19413 $as_echo_n "checking where to
find the target lipo...
" >&6; }
19414 if test "x
${build}" != "x
${host}" ; then
19415 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
19416 # We already found the complete path
19417 ac_dir=`dirname $LIPO_FOR_TARGET`
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19419 $as_echo "pre-installed
in $ac_dir" >&6; }
19421 # Canadian cross, just use what we found
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19423 $as_echo "pre-installed
" >&6; }
19426 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
19427 # We already found the complete path
19428 ac_dir=`dirname $LIPO_FOR_TARGET`
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19430 $as_echo "pre-installed
in $ac_dir" >&6; }
19431 elif test "x
$target" = "x
$host"; then
19432 # We can use an host tool
19433 LIPO_FOR_TARGET='$(LIPO)'
19434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19435 $as_echo "host tool
" >&6; }
19437 # We need a cross tool
19438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19439 $as_echo "pre-installed
" >&6; }
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
19444 $as_echo_n "checking where to
find the target nm...
" >&6; }
19445 if test "x
${build}" != "x
${host}" ; then
19446 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
19447 # We already found the complete path
19448 ac_dir=`dirname $NM_FOR_TARGET`
19449 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19450 $as_echo "pre-installed
in $ac_dir" >&6; }
19452 # Canadian cross, just use what we found
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19454 $as_echo "pre-installed
" >&6; }
19458 case " ${configdirs} " in
19463 if test $ok = yes; then
19464 # An in-tree tool is available and we can use it
19465 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19467 $as_echo "just compiled
" >&6; }
19468 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
19469 # We already found the complete path
19470 ac_dir=`dirname $NM_FOR_TARGET`
19471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19472 $as_echo "pre-installed
in $ac_dir" >&6; }
19473 elif test "x
$target" = "x
$host"; then
19474 # We can use an host tool
19475 NM_FOR_TARGET='$(NM)'
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19477 $as_echo "host tool
" >&6; }
19479 # We need a cross tool
19480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19481 $as_echo "pre-installed
" >&6; }
19485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
19486 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
19487 if test "x
${build}" != "x
${host}" ; then
19488 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
19489 # We already found the complete path
19490 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19492 $as_echo "pre-installed
in $ac_dir" >&6; }
19494 # Canadian cross, just use what we found
19495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19496 $as_echo "pre-installed
" >&6; }
19500 case " ${configdirs} " in
19505 if test $ok = yes; then
19506 # An in-tree tool is available and we can use it
19507 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
19508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19509 $as_echo "just compiled
" >&6; }
19510 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
19511 # We already found the complete path
19512 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19514 $as_echo "pre-installed
in $ac_dir" >&6; }
19515 elif test "x
$target" = "x
$host"; then
19516 # We can use an host tool
19517 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
19518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19519 $as_echo "host tool
" >&6; }
19521 # We need a cross tool
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19523 $as_echo "pre-installed
" >&6; }
19527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
19528 $as_echo_n "checking where to
find the target objdump...
" >&6; }
19529 if test "x
${build}" != "x
${host}" ; then
19530 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
19531 # We already found the complete path
19532 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19534 $as_echo "pre-installed
in $ac_dir" >&6; }
19536 # Canadian cross, just use what we found
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19538 $as_echo "pre-installed
" >&6; }
19542 case " ${configdirs} " in
19547 if test $ok = yes; then
19548 # An in-tree tool is available and we can use it
19549 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
19550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19551 $as_echo "just compiled
" >&6; }
19552 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
19553 # We already found the complete path
19554 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
19555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19556 $as_echo "pre-installed
in $ac_dir" >&6; }
19557 elif test "x
$target" = "x
$host"; then
19558 # We can use an host tool
19559 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
19560 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19561 $as_echo "host tool
" >&6; }
19563 # We need a cross tool
19564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19565 $as_echo "pre-installed
" >&6; }
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
19570 $as_echo_n "checking where to
find the target otool...
" >&6; }
19571 if test "x
${build}" != "x
${host}" ; then
19572 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
19573 # We already found the complete path
19574 ac_dir=`dirname $OTOOL_FOR_TARGET`
19575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19576 $as_echo "pre-installed
in $ac_dir" >&6; }
19578 # Canadian cross, just use what we found
19579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19580 $as_echo "pre-installed
" >&6; }
19583 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
19584 # We already found the complete path
19585 ac_dir=`dirname $OTOOL_FOR_TARGET`
19586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19587 $as_echo "pre-installed
in $ac_dir" >&6; }
19588 elif test "x
$target" = "x
$host"; then
19589 # We can use an host tool
19590 OTOOL_FOR_TARGET='$(OTOOL)'
19591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19592 $as_echo "host tool
" >&6; }
19594 # We need a cross tool
19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19596 $as_echo "pre-installed
" >&6; }
19600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
19601 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
19602 if test "x
${build}" != "x
${host}" ; then
19603 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
19604 # We already found the complete path
19605 ac_dir=`dirname $RANLIB_FOR_TARGET`
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19607 $as_echo "pre-installed
in $ac_dir" >&6; }
19609 # Canadian cross, just use what we found
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19611 $as_echo "pre-installed
" >&6; }
19615 case " ${configdirs} " in
19620 if test $ok = yes; then
19621 # An in-tree tool is available and we can use it
19622 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
19623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19624 $as_echo "just compiled
" >&6; }
19625 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
19626 # We already found the complete path
19627 ac_dir=`dirname $RANLIB_FOR_TARGET`
19628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19629 $as_echo "pre-installed
in $ac_dir" >&6; }
19630 elif test "x
$target" = "x
$host"; then
19631 # We can use an host tool
19632 RANLIB_FOR_TARGET='$(RANLIB)'
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19634 $as_echo "host tool
" >&6; }
19636 # We need a cross tool
19637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19638 $as_echo "pre-installed
" >&6; }
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
19643 $as_echo_n "checking where to
find the target readelf...
" >&6; }
19644 if test "x
${build}" != "x
${host}" ; then
19645 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
19646 # We already found the complete path
19647 ac_dir=`dirname $READELF_FOR_TARGET`
19648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19649 $as_echo "pre-installed
in $ac_dir" >&6; }
19651 # Canadian cross, just use what we found
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19653 $as_echo "pre-installed
" >&6; }
19657 case " ${configdirs} " in
19662 if test $ok = yes; then
19663 # An in-tree tool is available and we can use it
19664 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19666 $as_echo "just compiled
" >&6; }
19667 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
19668 # We already found the complete path
19669 ac_dir=`dirname $READELF_FOR_TARGET`
19670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19671 $as_echo "pre-installed
in $ac_dir" >&6; }
19672 elif test "x
$target" = "x
$host"; then
19673 # We can use an host tool
19674 READELF_FOR_TARGET='$(READELF)'
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19676 $as_echo "host tool
" >&6; }
19678 # We need a cross tool
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19680 $as_echo "pre-installed
" >&6; }
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
19685 $as_echo_n "checking where to
find the target strip...
" >&6; }
19686 if test "x
${build}" != "x
${host}" ; then
19687 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
19688 # We already found the complete path
19689 ac_dir=`dirname $STRIP_FOR_TARGET`
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19691 $as_echo "pre-installed
in $ac_dir" >&6; }
19693 # Canadian cross, just use what we found
19694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19695 $as_echo "pre-installed
" >&6; }
19699 case " ${configdirs} " in
19704 if test $ok = yes; then
19705 # An in-tree tool is available and we can use it
19706 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19708 $as_echo "just compiled
" >&6; }
19709 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
19710 # We already found the complete path
19711 ac_dir=`dirname $STRIP_FOR_TARGET`
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19713 $as_echo "pre-installed
in $ac_dir" >&6; }
19714 elif test "x
$target" = "x
$host"; then
19715 # We can use an host tool
19716 STRIP_FOR_TARGET='$(STRIP)'
19717 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19718 $as_echo "host tool
" >&6; }
19720 # We need a cross tool
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19722 $as_echo "pre-installed
" >&6; }
19726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
19727 $as_echo_n "checking where to
find the target windres...
" >&6; }
19728 if test "x
${build}" != "x
${host}" ; then
19729 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
19730 # We already found the complete path
19731 ac_dir=`dirname $WINDRES_FOR_TARGET`
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19733 $as_echo "pre-installed
in $ac_dir" >&6; }
19735 # Canadian cross, just use what we found
19736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19737 $as_echo "pre-installed
" >&6; }
19741 case " ${configdirs} " in
19746 if test $ok = yes; then
19747 # An in-tree tool is available and we can use it
19748 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
19749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19750 $as_echo "just compiled
" >&6; }
19751 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
19752 # We already found the complete path
19753 ac_dir=`dirname $WINDRES_FOR_TARGET`
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19755 $as_echo "pre-installed
in $ac_dir" >&6; }
19756 elif test "x
$target" = "x
$host"; then
19757 # We can use an host tool
19758 WINDRES_FOR_TARGET='$(WINDRES)'
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19760 $as_echo "host tool
" >&6; }
19762 # We need a cross tool
19763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19764 $as_echo "pre-installed
" >&6; }
19768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
19769 $as_echo_n "checking where to
find the target windmc...
" >&6; }
19770 if test "x
${build}" != "x
${host}" ; then
19771 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
19772 # We already found the complete path
19773 ac_dir=`dirname $WINDMC_FOR_TARGET`
19774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19775 $as_echo "pre-installed
in $ac_dir" >&6; }
19777 # Canadian cross, just use what we found
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19779 $as_echo "pre-installed
" >&6; }
19783 case " ${configdirs} " in
19788 if test $ok = yes; then
19789 # An in-tree tool is available and we can use it
19790 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
19792 $as_echo "just compiled
" >&6; }
19793 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
19794 # We already found the complete path
19795 ac_dir=`dirname $WINDMC_FOR_TARGET`
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
19797 $as_echo "pre-installed
in $ac_dir" >&6; }
19798 elif test "x
$target" = "x
$host"; then
19799 # We can use an host tool
19800 WINDMC_FOR_TARGET='$(WINDMC)'
19801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
19802 $as_echo "host tool
" >&6; }
19804 # We need a cross tool
19805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
19806 $as_echo "pre-installed
" >&6; }
19814 # Certain tools may need extra flags.
19815 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
19816 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
19817 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
19819 # When building target libraries, except in a Canadian cross, we use
19820 # the same toolchain as the compiler we just built.
19821 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
19822 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
19823 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
19824 if test $host = $build; then
19825 case " $configdirs " in
19827 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
19828 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
19829 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
19838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
19839 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
19840 # Check whether --enable-maintainer-mode was given.
19841 if test "${enable_maintainer_mode+set}" = set; then :
19842 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
19844 USE_MAINTAINER_MODE=no
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
19848 $as_echo "$USE_MAINTAINER_MODE" >&6; }
19851 if test "$USE_MAINTAINER_MODE" = yes; then
19852 MAINTAINER_MODE_TRUE=
19853 MAINTAINER_MODE_FALSE='#'
19855 MAINTAINER_MODE_TRUE='#'
19856 MAINTAINER_MODE_FALSE=
19858 MAINT=$MAINTAINER_MODE_TRUE
19860 # ---------------------
19861 # GCC bootstrap support
19862 # ---------------------
19864 # Stage specific cflags for build.
19869 yes) stage1_cflags="-g -Wa,-J" ;;
19870 *) stage1_cflags="-g -J" ;;
19876 # Enable --enable-checking in stage1 of the compiler.
19877 # Check whether --enable-stage1-checking was given.
19878 if test "${enable_stage1_checking+set}" = set; then :
19879 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
19881 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
19882 # For --disable-checking or implicit --enable-checking=release, avoid
19883 # setting --enable-checking=gc in the default stage1 checking for LTO
19884 # bootstraps. See PR62077.
19885 case $BUILD_CONFIG in
19887 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
19889 stage1_checking=--enable-checking=yes,types;;
19891 if test "x
$enable_checking" = x && \
19892 test -d ${srcdir}/gcc && \
19893 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
19894 stage1_checking=--enable-checking=yes,types,extra
19897 stage1_checking=--enable-checking=$enable_checking,types
19903 # Enable -Werror in bootstrap stage2 and later.
19904 # Check whether --enable-werror was given.
19905 if test "${enable_werror+set}" = set; then :
19906 enableval=$enable_werror;
19907 case ${enable_werror} in
19908 yes) stage2_werror_flag="--enable-werror-always" ;;
19909 *) stage2_werror_flag="" ;;
19914 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
19915 case $BUILD_CONFIG in
19917 stage2_werror_flag="--enable-werror-always" ;;
19919 stage2_werror_flag="--enable-werror-always" ;;
19928 # Specify what files to not compare during bootstrap.
19930 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
19931 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/M2Version
*"
19932 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/SYSTEM
*"
19933 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2version
*"
19935 hppa*64*-*-hpux*) ;;
19936 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
19940 ac_config_files="$ac_config_files Makefile
"
19942 cat >confcache <<\_ACEOF
19943 # This file is a shell script that caches the results of configure
19944 # tests run on this system so they can be shared between configure
19945 # scripts and configure runs, see configure's option --config-cache.
19946 # It is not useful on other systems. If it contains results you don't
19947 # want to keep, you may remove or edit it.
19949 # config.status only pays attention to the cache file if you give it
19950 # the --recheck option to rerun configure.
19952 # `ac_cv_env_foo' variables (set or unset) will be overridden when
19953 # loading this file, other *unset* `ac_cv_foo' will be assigned the
19954 # following values.
19958 # The following way of writing the cache mishandles newlines in values,
19959 # but we know of no workaround that is simple, portable, and efficient.
19960 # So, we kill variables containing newlines.
19961 # Ultrix sh set writes to stderr and can't be redirected directly,
19962 # and sets the high bit in the cache file unless we assign to the vars.
19964 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
19965 eval ac_val=\$$ac_var
19969 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
19970 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
19973 _ | IFS | as_nl) ;; #(
19974 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
19975 *) { eval $ac_var=; unset $ac_var;} ;;
19981 case $as_nl`(ac_space=' '; set) 2>&1` in #(
19982 *${as_nl}ac_space=\ *)
19983 # `set' does not quote correctly, so add quotes: double-quote
19984 # substitution turns \\\\ into \\, and sed turns \\ into \.
19987 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
19990 # `set' quotes correctly as required by POSIX, so do not add quotes.
19991 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
20000 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20002 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20004 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20005 if test -w "$cache_file"; then
20006 if test "x
$cache_file" != "x
/dev
/null
"; then
20007 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
20008 $as_echo "$as_me: updating cache
$cache_file" >&6;}
20009 if test ! -f "$cache_file" || test -h "$cache_file"; then
20010 cat confcache >"$cache_file"
20012 case $cache_file in #(
20014 mv -f confcache "$cache_file"$$ &&
20015 mv -f "$cache_file"$$ "$cache_file" ;; #(
20017 mv -f confcache "$cache_file" ;;
20022 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
20023 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
20028 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
20029 # Let make expand exec_prefix.
20030 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
20032 # Transform confdefs.h into DEFS.
20033 # Protect against shell expansion while executing Makefile rules.
20034 # Protect against Makefile macro expansion.
20036 # If the first sed substitution is executed (which looks for macros that
20037 # take arguments), then branch to the quote section. Otherwise,
20038 # look for a macro that doesn't take arguments.
20048 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20050 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20054 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
20067 DEFS=`sed -n "$ac_script" confdefs.h`
20073 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20074 # 1. Remove the extension, and $U if already installed.
20075 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
20076 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20077 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20078 # will be set to the directory where LIBOBJS objects are built.
20079 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20080 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
20082 LIBOBJS=$ac_libobjs
20084 LTLIBOBJS=$ac_ltlibobjs
20088 : "${CONFIG_STATUS=./config.status}"
20090 ac_clean_files_save=$ac_clean_files
20091 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20093 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20095 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20097 # Generated by $as_me.
20098 # Run this file to recreate the current configuration.
20099 # Compiler output produced by configure, useful for debugging
20100 # configure, is in config.log if it exists.
20103 ac_cs_recheck=false
20106 SHELL=\${CONFIG_SHELL-$SHELL}
20109 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20110 ## -------------------- ##
20111 ## M4sh Initialization. ##
20112 ## -------------------- ##
20114 # Be more Bourne compatible
20115 DUALCASE=1; export DUALCASE # for MKS sh
20116 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20119 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20120 # is contrary to our usage. Disable this feature.
20121 alias -g '${1+"$@"}'='"$@"'
20122 setopt NO_GLOB_SUBST
20124 case `(set -o) 2>/dev/null` in #(
20136 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20137 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20138 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
20139 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20140 # Prefer a ksh shell builtin over an external printf program on Solaris,
20141 # but without wasting forks for bash or zsh.
20142 if test -z "$BASH_VERSION$ZSH_VERSION" \
20143 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
20144 as_echo
='print -r --'
20145 as_echo_n
='print -rn --'
20146 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
20147 as_echo
='printf %s\n'
20148 as_echo_n
='printf %s'
20150 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20151 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
20152 as_echo_n
='/usr/ucb/echo -n'
20154 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
20155 as_echo_n_body
='eval
20159 expr "X$arg" : "X\\(.*\\)$as_nl";
20160 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20162 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20164 export as_echo_n_body
20165 as_echo_n
='sh -c $as_echo_n_body as_echo'
20167 export as_echo_body
20168 as_echo
='sh -c $as_echo_body as_echo'
20171 # The user is always right.
20172 if test "${PATH_SEPARATOR+set}" != set; then
20174 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
20175 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
20182 # We need space, tab and new line, in precisely that order. Quoting is
20183 # there to prevent editors from complaining about space-tab.
20184 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20185 # splitting by setting IFS to empty value.)
20188 # Find who we are. Look in the path if we contain no directory separator.
20191 *[\\/]* ) as_myself
=$0 ;;
20192 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
20193 for as_dir
in $PATH
20196 test -z "$as_dir" && as_dir
=.
20197 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
20203 # We did not find ourselves, most probably we were run as `sh COMMAND'
20204 # in which case we are not to be found in the path.
20205 if test "x$as_myself" = x
; then
20208 if test ! -f "$as_myself"; then
20209 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20213 # Unset variables that we do not need and which cause bugs (e.g. in
20214 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20215 # suppresses any "Segmentation fault" message there. '((' could
20216 # trigger a bug in pdksh 5.2.14.
20217 for as_var
in BASH_ENV ENV MAIL MAILPATH
20218 do eval test x\
${$as_var+set} = xset \
20219 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
20232 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
20235 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20236 # ----------------------------------------
20237 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20238 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20239 # script with STATUS, using 1 if that was 0.
20242 as_status
=$1; test $as_status -eq 0 && as_status
=1
20244 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
20245 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20247 $as_echo "$as_me: error: $2" >&2
20248 as_fn_exit
$as_status
20252 # as_fn_set_status STATUS
20253 # -----------------------
20254 # Set $? to STATUS, without forking.
20255 as_fn_set_status
()
20258 } # as_fn_set_status
20260 # as_fn_exit STATUS
20261 # -----------------
20262 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20266 as_fn_set_status
$1
20272 # Portably unset VAR.
20275 { eval $1=; unset $1;}
20277 as_unset
=as_fn_unset
20278 # as_fn_append VAR VALUE
20279 # ----------------------
20280 # Append the text in VALUE to the end of the definition contained in VAR. Take
20281 # advantage of any shell optimizations that allow amortized linear growth over
20282 # repeated appends, instead of the typical quadratic growth present in naive
20284 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
20285 eval 'as_fn_append ()
20296 # as_fn_arith ARG...
20297 # ------------------
20298 # Perform arithmetic evaluation on the ARGs, and store the result in the
20299 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20300 # must be portable across $(()) and expr.
20301 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
20302 eval 'as_fn_arith ()
20309 as_val
=`expr "$@" || test $? -eq 1`
20314 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
20315 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
20321 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20322 as_basename
=basename
20327 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
20333 as_me
=`$as_basename -- "$0" ||
20334 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20335 X"$0" : 'X\(//\)$' \| \
20336 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20338 sed '/^.*\/\([^/][^/]*\)\/*$/{
20352 # Avoid depending upon Character Ranges.
20353 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
20354 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20355 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
20356 as_cr_digits
='0123456789'
20357 as_cr_alnum
=$as_cr_Letters$as_cr_digits
20359 ECHO_C
= ECHO_N
= ECHO_T
=
20360 case `echo -n x` in #(((((
20362 case `echo 'xy\c'` in
20363 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
20365 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
20372 rm -f conf$$ conf$$.exe conf$$.
file
20373 if test -d conf$$.dir
; then
20374 rm -f conf$$.dir
/conf$$.
file
20377 mkdir conf$$.dir
2>/dev
/null
20379 if (echo >conf$$.
file) 2>/dev
/null
; then
20380 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
20382 # ... but there are two gotchas:
20383 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20384 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20385 # In both cases, we have to default to `cp -pR'.
20386 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
20388 elif ln conf$$.
file conf$$
2>/dev
/null
; then
20396 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
20397 rmdir conf$$.dir
2>/dev
/null
20402 # Create "$as_dir" as a directory, including parents if necessary.
20407 -*) as_dir
=.
/$as_dir;;
20409 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
20413 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20414 *) as_qdir
=$as_dir;;
20416 as_dirs
="'$as_qdir' $as_dirs"
20417 as_dir
=`$as_dirname -- "$as_dir" ||
20418 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20419 X"$as_dir" : 'X\(//\)[^/]' \| \
20420 X"$as_dir" : 'X\(//\)$' \| \
20421 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20422 $as_echo X"$as_dir" |
20423 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20427 /^X\(\/\/\)[^/].*/{
20440 test -d "$as_dir" && break
20442 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
20443 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
20447 if mkdir
-p .
2>/dev
/null
; then
20448 as_mkdir_p
='mkdir -p "$as_dir"'
20450 test -d .
/-p && rmdir .
/-p
20455 # as_fn_executable_p FILE
20456 # -----------------------
20457 # Test if FILE is an executable regular file.
20458 as_fn_executable_p
()
20460 test -f "$1" && test -x "$1"
20461 } # as_fn_executable_p
20462 as_test_x
='test -x'
20463 as_executable_p
=as_fn_executable_p
20465 # Sed expression to map a string onto a valid CPP name.
20466 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20468 # Sed expression to map a string onto a valid variable name.
20469 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20473 ## ----------------------------------- ##
20474 ## Main body of $CONFIG_STATUS script. ##
20475 ## ----------------------------------- ##
20477 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
20479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20480 # Save the log message, to keep $0 and so on meaningful, and to
20481 # report actual input values of CONFIG_FILES etc. instead of their
20482 # values after options handling.
20484 This file was extended by $as_me, which was
20485 generated by GNU Autoconf 2.69. Invocation command line was
20487 CONFIG_FILES = $CONFIG_FILES
20488 CONFIG_HEADERS = $CONFIG_HEADERS
20489 CONFIG_LINKS = $CONFIG_LINKS
20490 CONFIG_COMMANDS = $CONFIG_COMMANDS
20493 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20498 case $ac_config_files in *"
20499 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
20504 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20505 # Files that config.status was made for.
20506 config_files="$ac_config_files"
20510 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20512 \`$as_me' instantiates files and other configuration actions
20513 from templates according to the current configuration. Unless the files
20514 and actions are specified as TAGs, all are instantiated by default.
20516 Usage: $0 [OPTION]... [TAG]...
20518 -h, --help print this help, then exit
20519 -V, --version print version number and configuration settings, then exit
20520 --config print configuration, then exit
20521 -q, --quiet, --silent
20522 do not print progress messages
20523 -d, --debug don't remove temporary files
20524 --recheck update $as_me by reconfiguring in the same conditions
20525 --file=FILE[:TEMPLATE]
20526 instantiate the configuration file FILE
20528 Configuration files:
20531 Report bugs to the package provider."
20534 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20535 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20538 configured by $0, generated by GNU Autoconf 2.69,
20539 with options \\"\$ac_cs_config\\"
20541 Copyright (C) 2012 Free Software Foundation, Inc.
20542 This config.status script is free software; the Free Software Foundation
20543 gives unlimited permission to copy, distribute and modify it."
20549 test -n "\$AWK" || AWK=awk
20552 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20553 # The default lists apply if the user does not specify any file.
20559 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20560 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
20564 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
20576 # Handling of the options.
20577 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
20579 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
20580 $as_echo "$ac_cs_version"; exit ;;
20581 --config |
--confi |
--conf |
--con |
--co |
--c )
20582 $as_echo "$ac_cs_config"; exit ;;
20583 --debug |
--debu |
--deb |
--de |
--d |
-d )
20585 --file |
--fil |
--fi |
--f )
20588 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20589 '') as_fn_error $?
"missing file argument" ;;
20591 as_fn_append CONFIG_FILES
" '$ac_optarg'"
20592 ac_need_defaults
=false
;;
20593 --he |
--h |
--help |
--hel |
-h )
20594 $as_echo "$ac_cs_usage"; exit ;;
20595 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
20596 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
20599 # This is an error.
20600 -*) as_fn_error $?
"unrecognized option: \`$1'
20601 Try \`$0 --help' for more information." ;;
20603 *) as_fn_append ac_config_targets
" $1"
20604 ac_need_defaults
=false
;;
20610 ac_configure_extra_args
=
20612 if $ac_cs_silent; then
20614 ac_configure_extra_args
="$ac_configure_extra_args --silent"
20618 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20619 if \$ac_cs_recheck; then
20620 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20622 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20623 CONFIG_SHELL='$SHELL'
20624 export CONFIG_SHELL
20629 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20633 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20634 ## Running $as_me. ##
20640 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20644 extrasub_build="$extrasub_build"
20645 extrasub_host="$extrasub_host"
20646 extrasub_target="$extrasub_target"
20650 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
20652 # Handling of arguments.
20653 for ac_config_target
in $ac_config_targets
20655 case $ac_config_target in
20656 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
20658 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
20663 # If the user did not use the arguments to specify the items to instantiate,
20664 # then the envvar interface is used. Set only those that are not.
20665 # We use the long form for the default assignment because of an extremely
20666 # bizarre bug on SunOS 4.1.3.
20667 if $ac_need_defaults; then
20668 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
20671 # Have a temporary directory for convenience. Make it in the build tree
20672 # simply because there is no reason against having it here, and in addition,
20673 # creating and moving files from /tmp can sometimes cause problems.
20674 # Hook for its removal unless debugging.
20675 # Note that there is a small window in which the directory will not be cleaned:
20676 # after its creation but before its name has been assigned to `$tmp'.
20680 trap 'exit_status=$?
20681 : "${ac_tmp:=$tmp}"
20682 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
20684 trap 'as_fn_exit 1' 1 2 13 15
20686 # Create a (secure) tmp directory for tmp files.
20689 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20693 tmp
=.
/conf$$
-$RANDOM
20694 (umask 077 && mkdir
"$tmp")
20695 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
20698 # Set up the scripts for CONFIG_FILES section.
20699 # No need to generate them if there are no CONFIG_FILES.
20700 # This happens for instance with `./config.status config.h'.
20701 if test -n "$CONFIG_FILES"; then
20703 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
20704 ac_cs_awk_getline
=:
20705 ac_cs_awk_pipe_init
=
20706 ac_cs_awk_read_file
='
20707 while ((getline aline < (F[key])) > 0)
20710 ac_cs_awk_pipe_fini
=
20712 ac_cs_awk_getline
=false
20713 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
20714 ac_cs_awk_read_file
='
20716 print "cat " F[key] " &&"
20717 '$ac_cs_awk_pipe_init
20718 # The final `:' finishes the AND list.
20719 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
20721 ac_cr
=`echo X | tr X '\015'`
20722 # On cygwin, bash can eat \r inside `` if the user requested igncr.
20723 # But we know of no other shell where ac_cr would be empty at this
20724 # point, so we can use a bashism as a fallback.
20725 if test "x$ac_cr" = x
; then
20726 eval ac_cr
=\$
\'\\r
\'
20728 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
20729 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
20732 ac_cs_awk_cr
=$ac_cr
20735 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
20738 # Create commands to substitute file output variables.
20740 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
20741 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
20742 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
20745 } >conf$
$files.sh
&&
20746 . .
/conf$
$files.sh ||
20747 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
20748 rm -f conf$
$files.sh
20751 echo "cat >conf$$subs.awk <<_ACEOF" &&
20752 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
20754 } >conf$$subs.sh ||
20755 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20756 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
20758 for ac_last_try in false false false false false :; do
20759 . ./conf$$subs.sh ||
20760 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20762 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
20763 if test $ac_delim_n = $ac_delim_num; then
20765 elif $ac_last_try; then
20766 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
20768 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
20771 rm -f conf$$subs.sh
20773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20774 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
20778 s/^/S["/; s
/!.
*/"]=/
20788 s/\(.\{148\}\)..*/\1/
20790 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
20795 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20802 s/\(.\{148\}\)..*/\1/
20804 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
20808 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
20813 ' <conf$$subs.awk | sed '
20818 ' >>$CONFIG_STATUS || ac_write_fail=1
20819 rm -f conf$$subs.awk
20820 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20822 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
20823 for (key in S) S_is_set[key] = 1
20825 \$ac_cs_awk_pipe_init
20829 nfields = split(line, field, "@
")
20831 len = length(field[1])
20832 for (i = 2; i < nfields; i++) {
20834 keylen = length(key)
20835 if (S_is_set[key]) {
20837 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
20838 len += length(value) + length(field[++i])
20843 if (nfields == 3 && !substed) {
20845 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
20846 \$ac_cs_awk_read_file
20852 \$ac_cs_awk_pipe_fini
20855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20856 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
20857 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
20860 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
20861 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
20864 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
20865 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
20866 # trailing colons and then remove the whole line if VPATH becomes empty
20867 # (actually we leave an empty line to preserve line numbers).
20868 if test "x
$srcdir" = x.; then
20869 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
20887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20888 fi # test -n "$CONFIG_FILES"
20891 eval set X " :F
$CONFIG_FILES "
20896 :[FHLC]) ac_mode=$ac_tag; continue;;
20898 case $ac_mode$ac_tag in
20900 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
20901 :[FH]-) ac_tag=-:-;;
20902 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
20919 -) ac_f="$ac_tmp/stdin";;
20920 *) # Look for the file first in the build tree, then in the source tree
20921 # (if the path is not absolute). The absolute path cannot be DOS-style,
20922 # because $ac_f cannot contain `:'.
20926 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
20928 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
20930 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
20931 as_fn_append ac_file_inputs " '$ac_f'"
20934 # Let's still pretend it is `configure' which instantiates (i.e., don't
20935 # use $as_me), people would be surprised to read:
20936 # /* config.h. Generated by config.status. */
20937 configure_input='Generated from '`
20938 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
20940 if test x"$ac_file" != x-; then
20941 configure_input="$ac_file.
$configure_input"
20942 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
20943 $as_echo "$as_me: creating
$ac_file" >&6;}
20945 # Neutralize special characters interpreted by sed in replacement strings.
20946 case $configure_input in #(
20947 *\&* | *\|* | *\\* )
20948 ac_sed_conf_input=`$as_echo "$configure_input" |
20949 sed 's/[\\\\&|]/\\\\&/g'`;; #(
20950 *) ac_sed_conf_input=$configure_input;;
20954 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
20955 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
20960 ac_dir=`$as_dirname -- "$ac_file" ||
20961 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20962 X"$ac_file" : 'X\(//\)[^/]' \| \
20963 X"$ac_file" : 'X\(//\)$' \| \
20964 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
20965 $as_echo X"$ac_file" |
20966 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20970 /^X\(\/\/\)[^/].*/{
20983 as_dir="$ac_dir"; as_fn_mkdir_p
20987 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
20989 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
20990 # A "..
" for each directory in $ac_dir_suffix.
20991 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
20992 case $ac_top_builddir_sub in
20993 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
20994 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
20997 ac_abs_top_builddir=$ac_pwd
20998 ac_abs_builddir=$ac_pwd$ac_dir_suffix
20999 # for backward compatibility:
21000 ac_top_builddir=$ac_top_build_prefix
21003 .) # We are building in place.
21005 ac_top_srcdir=$ac_top_builddir_sub
21006 ac_abs_top_srcdir=$ac_pwd ;;
21007 [\\/]* | ?:[\\/]* ) # Absolute name.
21008 ac_srcdir=$srcdir$ac_dir_suffix;
21009 ac_top_srcdir=$srcdir
21010 ac_abs_top_srcdir=$srcdir ;;
21011 *) # Relative name.
21012 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21013 ac_top_srcdir=$ac_top_build_prefix$srcdir
21014 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21016 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21026 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21027 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21032 # If the template does not know about datarootdir, expand it.
21033 # FIXME: This hack should be removed a few years after 2.60.
21034 ac_datarootdir_hack=; ac_datarootdir_seen=
21045 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
21046 *datarootdir*) ac_datarootdir_seen=yes;;
21047 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
21049 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
21051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21052 ac_datarootdir_hack='
21053 s&@datadir@&$datadir&g
21054 s&@docdir@&$docdir&g
21055 s&@infodir@&$infodir&g
21056 s&@localedir@&$localedir&g
21057 s&@mandir@&$mandir&g
21058 s&\\\${datarootdir}&$datarootdir&g' ;;
21062 # Neutralize VPATH when `$srcdir' = `.'.
21063 # Shell code in configure.ac might set extrasub.
21064 # FIXME: do we really want to maintain this feature?
21065 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21066 ac_sed_extra="$ac_vpsub
21069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
21071 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
21072 s|@configure_input@|
$ac_sed_conf_input|
;t t
21073 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
21074 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
21075 s
&@srcdir@
&$ac_srcdir&;t t
21076 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
21077 s
&@top_srcdir@
&$ac_top_srcdir&;t t
21078 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
21079 s
&@builddir@
&$ac_builddir&;t t
21080 s
&@abs_builddir@
&$ac_abs_builddir&;t t
21081 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
21082 s
&@INSTALL@
&$ac_INSTALL&;t t
21083 $ac_datarootdir_hack
21085 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
21086 if $ac_cs_awk_getline; then
21087 $AWK -f "$ac_tmp/subs.
awk"
21089 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
21091 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
21093 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21094 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
21095 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21096 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
21097 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
21098 which seems to be undefined. Please make sure it is defined" >&5
21099 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
21100 which seems to be undefined. Please make sure it is defined" >&2;}
21102 rm -f "$ac_tmp/stdin"
21104 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21105 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21107 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21115 case $ac_file$ac_mode in
21116 "Makefile":F) sed "$extrasub_build" Makefile |
21117 sed "$extrasub_host" |
21118 sed "$extrasub_target" > mf$$
21119 mv -f mf$$ Makefile ;;
21127 ac_clean_files=$ac_clean_files_save
21129 test $ac_write_fail = 0 ||
21130 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
21133 # configure is writing to config.log, and then calls config.status.
21134 # config.status does its own redirection, appending to config.log.
21135 # Unfortunately, on DOS this fails, as config.log is still kept open
21136 # by configure, so config.status won't be able to
write to it
; its
21137 # output is simply discarded. So we exec the FD to /dev/null,
21138 # effectively closing config.log, so it can be properly (re)opened and
21139 # appended to by config.status. When coming back to configure, we
21140 # need to make the FD available again.
21141 if test "$no_create" != yes; then
21143 ac_config_status_args
=
21144 test "$silent" = yes &&
21145 ac_config_status_args
="$ac_config_status_args --quiet"
21147 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
21149 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21150 # would make configure fail if this is the last instruction.
21151 $ac_cs_success || as_fn_exit
1
21153 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
21155 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}