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
697 extra_linker_plugin_flags
698 extra_linker_plugin_configure_flags
705 extra_isl_gmp_configure_flags
706 extra_mpc_mpfr_configure_flags
707 extra_mpc_gmp_configure_flags
708 extra_mpfr_configure_flags
756 TOPLEVEL_CONFIGURE_ARGUMENTS
784 program_transform_name
795 ac_subst_files
='serialization_dependencies
801 enable_option_checking
805 enable_as_accelerator_for
806 enable_offload_targets
807 enable_offload_defaulted
811 enable_compressed_debug_sections
812 enable_default_compressed_debug_sections_algorithm
815 enable_libquadmath_support
832 with_static_standard_libraries
839 enable_isl_version_check
841 enable_linker_plugin_configure_flags
842 enable_linker_plugin_flags
845 enable_stage1_languages
848 with_target_bdw_gc_include
849 with_target_bdw_gc_lib
850 with_gcc_major_version_only
852 with_debug_prefix_map
855 enable_serial_configure
856 with_build_time_tools
857 enable_maintainer_mode
858 enable_stage1_checking
861 ac_precious_vars
='build_alias
914 # Initialize some variables set by options.
916 ac_init_version
=false
917 ac_unrecognized_opts
=
919 # The variables have the same names as the options, with
920 # dashes changed to underlines.
928 program_transform_name
=s
,x
,x
,
936 # Installation directory options.
937 # These are left unexpanded so users can "make install exec_prefix=/foo"
938 # and all the variables that are supposed to be based on exec_prefix
939 # by default will actually change.
940 # Use braces instead of parens because sh, perl, etc. also accept them.
941 # (The list follows the same order as the GNU Coding Standards.)
942 bindir
='${exec_prefix}/bin'
943 sbindir
='${exec_prefix}/sbin'
944 libexecdir
='${exec_prefix}/libexec'
945 datarootdir
='${prefix}/share'
946 datadir
='${datarootdir}'
947 sysconfdir
='${prefix}/etc'
948 sharedstatedir
='${prefix}/com'
949 localstatedir
='${prefix}/var'
950 includedir
='${prefix}/include'
951 oldincludedir
='/usr/include'
952 docdir
='${datarootdir}/doc/${PACKAGE}'
953 infodir
='${datarootdir}/info'
958 libdir
='${exec_prefix}/lib'
959 localedir
='${datarootdir}/locale'
960 mandir
='${datarootdir}/man'
966 # If the previous option needs an argument, assign it.
967 if test -n "$ac_prev"; then
968 eval $ac_prev=\
$ac_option
974 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
979 # Accept the important Cygnus configure options, so we can diagnose typos.
981 case $ac_dashdash$ac_option in
985 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
987 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
990 -build |
--build |
--buil |
--bui |
--bu)
991 ac_prev
=build_alias
;;
992 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
993 build_alias
=$ac_optarg ;;
995 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
996 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
997 ac_prev
=cache_file
;;
998 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
999 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1000 cache_file
=$ac_optarg ;;
1002 --config-cache |
-C)
1003 cache_file
=config.cache
;;
1005 -datadir |
--datadir |
--datadi |
--datad)
1007 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1008 datadir
=$ac_optarg ;;
1010 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1011 |
--dataroo |
--dataro |
--datar)
1012 ac_prev
=datarootdir
;;
1013 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1014 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1015 datarootdir
=$ac_optarg ;;
1017 -disable-* |
--disable-*)
1018 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1021 as_fn_error $?
"invalid feature name: $ac_useropt"
1022 ac_useropt_orig
=$ac_useropt
1023 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1024 case $ac_user_opts in
1026 "enable_
$ac_useropt"
1028 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1029 ac_unrecognized_sep
=', ';;
1031 eval enable_
$ac_useropt=no
;;
1033 -docdir |
--docdir |
--docdi |
--doc |
--do)
1035 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1036 docdir
=$ac_optarg ;;
1038 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1040 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1041 dvidir
=$ac_optarg ;;
1043 -enable-* |
--enable-*)
1044 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1045 # Reject names that are not valid shell variable names.
1046 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1047 as_fn_error $?
"invalid feature name: $ac_useropt"
1048 ac_useropt_orig
=$ac_useropt
1049 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1050 case $ac_user_opts in
1052 "enable_
$ac_useropt"
1054 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1055 ac_unrecognized_sep
=', ';;
1057 eval enable_
$ac_useropt=\
$ac_optarg ;;
1059 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1060 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1061 |
--exec |
--exe |
--ex)
1062 ac_prev
=exec_prefix
;;
1063 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1064 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1065 |
--exec=* |
--exe=* |
--ex=*)
1066 exec_prefix
=$ac_optarg ;;
1068 -gas |
--gas |
--ga |
--g)
1069 # Obsolete; use --with-gas.
1072 -help |
--help |
--hel |
--he |
-h)
1073 ac_init_help
=long
;;
1074 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1075 ac_init_help
=recursive
;;
1076 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1077 ac_init_help
=short
;;
1079 -host |
--host |
--hos |
--ho)
1080 ac_prev
=host_alias
;;
1081 -host=* |
--host=* |
--hos=* |
--ho=*)
1082 host_alias
=$ac_optarg ;;
1084 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1086 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1088 htmldir
=$ac_optarg ;;
1090 -includedir |
--includedir |
--includedi |
--included |
--include \
1091 |
--includ |
--inclu |
--incl |
--inc)
1092 ac_prev
=includedir
;;
1093 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1094 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1095 includedir
=$ac_optarg ;;
1097 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1099 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1100 infodir
=$ac_optarg ;;
1102 -libdir |
--libdir |
--libdi |
--libd)
1104 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1105 libdir
=$ac_optarg ;;
1107 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1108 |
--libexe |
--libex |
--libe)
1109 ac_prev
=libexecdir
;;
1110 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1111 |
--libexe=* |
--libex=* |
--libe=*)
1112 libexecdir
=$ac_optarg ;;
1114 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1115 ac_prev
=localedir
;;
1116 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1117 localedir
=$ac_optarg ;;
1119 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1120 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1121 ac_prev
=localstatedir
;;
1122 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1123 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1124 localstatedir
=$ac_optarg ;;
1126 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1128 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1129 mandir
=$ac_optarg ;;
1131 -nfp |
--nfp |
--nf)
1132 # Obsolete; use --without-fp.
1135 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1136 |
--no-cr |
--no-c |
-n)
1139 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1140 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1143 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1144 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1145 |
--oldin |
--oldi |
--old |
--ol |
--o)
1146 ac_prev
=oldincludedir
;;
1147 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1148 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1149 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1150 oldincludedir
=$ac_optarg ;;
1152 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1154 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1155 prefix
=$ac_optarg ;;
1157 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1158 |
--program-pre |
--program-pr |
--program-p)
1159 ac_prev
=program_prefix
;;
1160 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1161 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1162 program_prefix
=$ac_optarg ;;
1164 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1165 |
--program-suf |
--program-su |
--program-s)
1166 ac_prev
=program_suffix
;;
1167 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1168 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1169 program_suffix
=$ac_optarg ;;
1171 -program-transform-name |
--program-transform-name \
1172 |
--program-transform-nam |
--program-transform-na \
1173 |
--program-transform-n |
--program-transform- \
1174 |
--program-transform |
--program-transfor \
1175 |
--program-transfo |
--program-transf \
1176 |
--program-trans |
--program-tran \
1177 |
--progr-tra |
--program-tr |
--program-t)
1178 ac_prev
=program_transform_name
;;
1179 -program-transform-name=* |
--program-transform-name=* \
1180 |
--program-transform-nam=* |
--program-transform-na=* \
1181 |
--program-transform-n=* |
--program-transform-=* \
1182 |
--program-transform=* |
--program-transfor=* \
1183 |
--program-transfo=* |
--program-transf=* \
1184 |
--program-trans=* |
--program-tran=* \
1185 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1186 program_transform_name
=$ac_optarg ;;
1188 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1190 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1191 pdfdir
=$ac_optarg ;;
1193 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1195 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1198 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1199 |
-silent |
--silent |
--silen |
--sile |
--sil)
1202 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1204 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1206 sbindir
=$ac_optarg ;;
1208 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1209 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1210 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1212 ac_prev
=sharedstatedir
;;
1213 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1214 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1215 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1217 sharedstatedir
=$ac_optarg ;;
1219 -site |
--site |
--sit)
1221 -site=* |
--site=* |
--sit=*)
1224 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1226 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1227 srcdir
=$ac_optarg ;;
1229 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1230 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1231 ac_prev
=sysconfdir
;;
1232 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1233 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1234 sysconfdir
=$ac_optarg ;;
1236 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1237 ac_prev
=target_alias
;;
1238 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1239 target_alias
=$ac_optarg ;;
1241 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1244 -version |
--version |
--versio |
--versi |
--vers |
-V)
1245 ac_init_version
=: ;;
1248 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1249 # Reject names that are not valid shell variable names.
1250 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1251 as_fn_error $?
"invalid package name: $ac_useropt"
1252 ac_useropt_orig
=$ac_useropt
1253 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1254 case $ac_user_opts in
1258 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1259 ac_unrecognized_sep
=', ';;
1261 eval with_
$ac_useropt=\
$ac_optarg ;;
1263 -without-* |
--without-*)
1264 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1265 # Reject names that are not valid shell variable names.
1266 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1267 as_fn_error $?
"invalid package name: $ac_useropt"
1268 ac_useropt_orig
=$ac_useropt
1269 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1270 case $ac_user_opts in
1274 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1275 ac_unrecognized_sep
=', ';;
1277 eval with_
$ac_useropt=no
;;
1280 # Obsolete; use --with-x.
1283 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1284 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1285 ac_prev
=x_includes
;;
1286 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1287 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1288 x_includes
=$ac_optarg ;;
1290 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1291 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1292 ac_prev
=x_libraries
;;
1293 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1294 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1295 x_libraries
=$ac_optarg ;;
1297 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1298 Try \`$0 --help' for more information"
1302 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1303 # Reject names that are not valid shell variable names.
1304 case $ac_envvar in #(
1305 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1306 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1308 eval $ac_envvar=\
$ac_optarg
1309 export $ac_envvar ;;
1312 # FIXME: should be removed in autoconf 3.0.
1313 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1314 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1315 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1316 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1322 if test -n "$ac_prev"; then
1323 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1324 as_fn_error $?
"missing argument to $ac_option"
1327 if test -n "$ac_unrecognized_opts"; then
1328 case $enable_option_checking in
1330 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1331 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1335 # Check all directory arguments for consistency.
1336 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1337 datadir sysconfdir sharedstatedir localstatedir includedir \
1338 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1339 libdir localedir mandir
1341 eval ac_val
=\$
$ac_var
1342 # Remove trailing slashes.
1345 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1346 eval $ac_var=\
$ac_val;;
1348 # Be sure to have absolute directory names.
1350 [\\/$
]* | ?
:[\\/]* ) continue;;
1351 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1353 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1356 # There might be people who depend on the old broken behavior: `$host'
1357 # used to hold the argument of --host etc.
1358 # FIXME: To remove some day.
1361 target
=$target_alias
1363 # FIXME: To remove some day.
1364 if test "x$host_alias" != x
; then
1365 if test "x$build_alias" = x
; then
1366 cross_compiling
=maybe
1367 elif test "x$build_alias" != "x$host_alias"; then
1373 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1375 test "$silent" = yes && exec 6>/dev
/null
1378 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1379 ac_ls_di
=`ls -di .` &&
1380 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1381 as_fn_error $?
"working directory cannot be determined"
1382 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1383 as_fn_error $?
"pwd does not report name of working directory"
1386 # Find the source files, if location was not specified.
1387 if test -z "$srcdir"; then
1388 ac_srcdir_defaulted
=yes
1389 # Try the directory containing this script, then the parent directory.
1390 ac_confdir
=`$as_dirname -- "$as_myself" ||
1391 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1392 X"$as_myself" : 'X\(//\)[^/]' \| \
1393 X"$as_myself" : 'X\(//\)$' \| \
1394 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1395 $as_echo X"$as_myself" |
1396 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1418 ac_srcdir_defaulted
=no
1420 if test ! -r "$srcdir/$ac_unique_file"; then
1421 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1422 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1424 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1426 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1428 # When building in place, set srcdir=.
1429 if test "$ac_abs_confdir" = "$ac_pwd"; then
1432 # Remove unnecessary trailing slashes from srcdir.
1433 # Double slashes in file names in object file debugging info
1434 # mess up M-x gdb in Emacs.
1436 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1440 as_fn_error $?
"path to source, $srcdir, contains spaces"
1443 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1445 for ac_var
in $ac_precious_vars; do
1446 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1447 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1448 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1449 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1453 # Report the --help message.
1455 if test "$ac_init_help" = "long"; then
1456 # Omit some internal or obsolete options to make the list less imposing.
1457 # This message is too long to be a string in the A/UX 3.1 sh.
1459 \`configure' configures this package to adapt to many kinds of systems.
1461 Usage: $0 [OPTION]... [VAR=VALUE]...
1463 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1464 VAR=VALUE. See below for descriptions of some of the useful variables.
1466 Defaults for the options are specified in brackets.
1469 -h, --help display this help and exit
1470 --help=short display options specific to this package
1471 --help=recursive display the short help of all the included packages
1472 -V, --version display version information and exit
1473 -q, --quiet, --silent do not print \`checking ...' messages
1474 --cache-file=FILE cache test results in FILE [disabled]
1475 -C, --config-cache alias for \`--cache-file=config.cache'
1476 -n, --no-create do not create output files
1477 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1479 Installation directories:
1480 --prefix=PREFIX install architecture-independent files in PREFIX
1481 [$ac_default_prefix]
1482 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1485 By default, \`make install' will install all the files in
1486 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1487 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1488 for instance \`--prefix=\$HOME'.
1490 For better control, use the options below.
1492 Fine tuning of the installation directories:
1493 --bindir=DIR user executables [EPREFIX/bin]
1494 --sbindir=DIR system admin executables [EPREFIX/sbin]
1495 --libexecdir=DIR program executables [EPREFIX/libexec]
1496 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1497 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1498 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1499 --libdir=DIR object code libraries [EPREFIX/lib]
1500 --includedir=DIR C header files [PREFIX/include]
1501 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1502 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1503 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1504 --infodir=DIR info documentation [DATAROOTDIR/info]
1505 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1506 --mandir=DIR man documentation [DATAROOTDIR/man]
1507 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1508 --htmldir=DIR html documentation [DOCDIR]
1509 --dvidir=DIR dvi documentation [DOCDIR]
1510 --pdfdir=DIR pdf documentation [DOCDIR]
1511 --psdir=DIR ps documentation [DOCDIR]
1517 --program-prefix=PREFIX prepend PREFIX to installed program names
1518 --program-suffix=SUFFIX append SUFFIX to installed program names
1519 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1522 --build=BUILD configure
for building on BUILD
[guessed
]
1523 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1524 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1528 if test -n "$ac_init_help"; then
1533 --disable-option-checking ignore unrecognized
--enable/--with options
1534 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1535 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1536 --enable-as-accelerator-for=ARG
1537 build as offload target compiler. Specify offload
1539 --enable-offload-targets=LIST
1540 enable offloading to devices from comma-separated
1541 LIST of TARGET
[=DIR
]. Use optional path to
find
1542 offload target compiler during the build
1543 --enable-offload-defaulted
1544 If enabled
, configured but not installed offload compilers and
1545 libgomp plugins are silently ignored. Useful
for distribution
1546 compilers where those are
in separate optional packages.
1548 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1549 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1550 --enable-gprofng[=ARG
] build gprofng
[ARG
={yes,no
}]
1551 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1552 Enable compressed debug sections
for gas
, gold or ld
1554 --enable-default-compressed-debug-sections-algorithm={zlib
,zstd
}
1555 Default compression algorithm
for
1556 --enable-compressed-debug-sections.
1557 --enable-year2038 enable support
for timestamps past the year
2038
1558 --disable-libquadmath do not build libquadmath directory
1559 --disable-libquadmath-support
1560 disable libquadmath support
for Fortran
1561 --enable-libada build libada directory
1562 --enable-libgm2 build libgm2 directory
1563 --enable-libssp build libssp directory
1564 --disable-libstdcxx do not build libstdc
++-v3 directory
1565 --enable-bootstrap enable bootstrapping
[yes if native build
]
1566 --enable-pgo-build[=lto
]
1567 enable the PGO build
1568 --disable-isl-version-check
1569 disable check
for isl version
1570 --enable-lto enable link
time optimization support
1571 --enable-linker-plugin-configure-flags=FLAGS
1572 additional flags
for configuring linker plugins
1574 --enable-linker-plugin-flags=FLAGS
1575 additional flags
for configuring and building linker
1577 --enable-host-pie build position independent
host executables
1578 --enable-host-shared build
host code as shared libraries
1579 --enable-stage1-languages[=all
]
1580 choose additional languages to build during stage1.
1581 Mostly useful
for compiler development
1582 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1584 --enable-vtable-verify Enable vtable verification feature
1585 --enable-serial-[{host,target,build}-]configure
1586 force sequential configuration of sub-packages for
1587 the host, target or build machine, or all
1589 --enable-maintainer-mode
1590 enable make rules and dependencies not useful (and
1591 sometimes confusing) to the casual installer
1592 --enable-stage1-checking[=all]
1593 choose additional checking for stage1 of the
1595 --enable-werror enable -Werror in bootstrap stage2 and later
1598 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1599 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1600 --with-build-libsubdir=DIR Directory where to find libraries for build system
1601 --with-system-zlib use installed libz
1602 --with-zstd Support zstd compressed debug sections
1604 --with-mpc=PATH specify prefix directory for installed MPC package.
1605 Equivalent to --with-mpc-include=PATH/include plus
1606 --with-mpc-lib=PATH/lib
1607 --with-mpc-include=PATH specify directory for installed MPC include files
1608 --with-mpc-lib=PATH specify directory for the installed MPC library
1609 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1610 Equivalent to --with-mpfr-include=PATH/include plus
1611 --with-mpfr-lib=PATH/lib
1612 --with-mpfr-include=PATH
1613 specify directory for installed MPFR include files
1614 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1615 --with-gmp=PATH specify prefix directory for the installed GMP
1616 package. Equivalent to
1617 --with-gmp-include=PATH/include plus
1618 --with-gmp-lib=PATH/lib
1619 --with-gmp-include=PATH specify directory for installed GMP include files
1620 --with-gmp-lib=PATH specify directory for the installed GMP library
1621 --with-stage1-libs=LIBS libraries for stage1
1622 --with-static-standard-libraries
1623 use -static-libstdc++ and -static-libgcc
1625 --with-stage1-ldflags=FLAGS
1626 linker flags for stage1
1627 --with-boot-libs=LIBS libraries for stage2 and later
1628 --with-boot-ldflags=FLAGS
1629 linker flags for stage2 and later
1630 --with-isl=PATH Specify prefix directory for the installed isl
1631 package. Equivalent to
1632 --with-isl-include=PATH/include plus
1633 --with-isl-lib=PATH/lib
1634 --with-isl-include=PATH Specify directory for installed isl include files
1635 --with-isl-lib=PATH Specify the directory for the installed isl library
1636 --with-target-bdw-gc=PATHLIST
1637 specify prefix directory for installed bdw-gc
1638 package. Equivalent to
1639 --with-target-bdw-gc-include=PATH/include plus
1640 --with-target-bdw-gc-lib=PATH/lib
1641 --with-target-bdw-gc-include=PATHLIST
1642 specify directories for installed bdw-gc include
1644 --with-target-bdw-gc-lib=PATHLIST
1645 specify directories for installed bdw-gc library
1646 --with-gcc-major-version-only
1647 use only GCC major number in filesystem paths
1648 --with-build-sysroot=SYSROOT
1649 use sysroot as the system root during the build
1650 --with-debug-prefix-map='A
=B C
=D ...
'
1651 map A to B, C to D ... in debug information
1652 --with-build-config='NAME NAME2...
'
1653 use config/NAME.mk build configuration
1654 --with-build-time-tools=PATH
1655 use given path to find target tools during the build
1657 Some influential environment variables:
1658 CC C compiler command
1659 CFLAGS C compiler flags
1660 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1661 nonstandard directory <lib dir>
1662 LIBS libraries to pass to the linker, e.g. -l<library>
1663 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1664 you have headers in a nonstandard directory <include dir>
1665 CXX C++ compiler command
1666 CXXFLAGS C++ compiler flags
1668 additional configure arguments for build directories
1670 additional configure arguments for host directories
1672 additional configure arguments for target directories
1675 DLLTOOL DLLTOOL for the host
1676 DSYMUTIL DSYMUTIL for the host
1678 LIPO LIPO for the host
1680 RANLIB RANLIB for the host
1681 STRIP STRIP for the host
1682 WINDRES WINDRES for the host
1683 WINDMC WINDMC for the host
1684 OBJCOPY OBJCOPY for the host
1685 OBJDUMP OBJDUMP for the host
1686 OTOOL OTOOL for the host
1687 READELF READELF for the host
1695 GFORTRAN for the target
1707 DLLTOOL for the target
1709 DSYMUTIL for the target
1717 OBJCOPY for the target
1719 OBJDUMP for the target
1721 OTOOL for the target
1723 RANLIB for the target
1725 READELF for the target
1727 STRIP for the target
1729 WINDRES for the target
1731 WINDMC for the target
1733 Use these variables to override the choices made by `configure' or to
help
1734 it to
find libraries and programs with nonstandard names
/locations.
1736 Report bugs to the package provider.
1741 if test "$ac_init_help" = "recursive"; then
1742 # If there are subdirs, report their specific --help.
1743 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1744 test -d "$ac_dir" ||
1745 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1750 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1752 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1753 # A ".." for each directory in $ac_dir_suffix.
1754 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1755 case $ac_top_builddir_sub in
1756 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1757 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1760 ac_abs_top_builddir
=$ac_pwd
1761 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1762 # for backward compatibility:
1763 ac_top_builddir
=$ac_top_build_prefix
1766 .
) # We are building in place.
1768 ac_top_srcdir
=$ac_top_builddir_sub
1769 ac_abs_top_srcdir
=$ac_pwd ;;
1770 [\\/]* | ?
:[\\/]* ) # Absolute name.
1771 ac_srcdir
=$srcdir$ac_dir_suffix;
1772 ac_top_srcdir
=$srcdir
1773 ac_abs_top_srcdir
=$srcdir ;;
1775 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1776 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1777 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1779 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1781 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1782 # Check for guested configure.
1783 if test -f "$ac_srcdir/configure.gnu"; then
1785 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1786 elif test -f "$ac_srcdir/configure"; then
1788 $SHELL "$ac_srcdir/configure" --help=recursive
1790 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1792 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1796 test -n "$ac_init_help" && exit $ac_status
1797 if $ac_init_version; then
1800 generated by GNU Autoconf
2.69
1802 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1803 This configure
script is free software
; the Free Software Foundation
1804 gives unlimited permission to copy
, distribute and modify it.
1809 ## ------------------------ ##
1810 ## Autoconf initialization. ##
1811 ## ------------------------ ##
1813 # ac_fn_c_try_compile LINENO
1814 # --------------------------
1815 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_c_try_compile
()
1818 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1819 rm -f conftest.
$ac_objext
1820 if { { ac_try
="$ac_compile"
1822 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1823 *) ac_try_echo=$ac_try;;
1825 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1826 $as_echo "$ac_try_echo"; } >&5
1827 (eval "$ac_compile") 2>conftest.err
1829 if test -s conftest.err; then
1830 grep -v '^ *+' conftest.err >conftest.er1
1831 cat conftest.er1 >&5
1832 mv -f conftest.er1 conftest.err
1834 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1835 test $ac_status = 0; } && {
1836 test -z "$ac_c_werror_flag" ||
1837 test ! -s conftest.err
1838 } && test -s conftest.$ac_objext; then :
1841 $as_echo "$as_me: failed program was:" >&5
1842 sed 's/^/| /' conftest.$ac_ext >&5
1846 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1847 as_fn_set_status $ac_retval
1849 } # ac_fn_c_try_compile
1851 # ac_fn_cxx_try_compile LINENO
1852 # ----------------------------
1853 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1854 ac_fn_cxx_try_compile ()
1856 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1857 rm -f conftest.$ac_objext
1858 if { { ac_try="$ac_compile"
1860 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1861 *) ac_try_echo
=$ac_try;;
1863 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1864 $as_echo "$ac_try_echo"; } >&5
1865 (eval "$ac_compile") 2>conftest.err
1867 if test -s conftest.err
; then
1868 grep -v '^ *+' conftest.err
>conftest.er1
1869 cat conftest.er1
>&5
1870 mv -f conftest.er1 conftest.err
1872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1873 test $ac_status = 0; } && {
1874 test -z "$ac_cxx_werror_flag" ||
1875 test ! -s conftest.err
1876 } && test -s conftest.
$ac_objext; then :
1879 $as_echo "$as_me: failed program was:" >&5
1880 sed 's/^/| /' conftest.
$ac_ext >&5
1884 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1885 as_fn_set_status
$ac_retval
1887 } # ac_fn_cxx_try_compile
1889 # ac_fn_cxx_try_link LINENO
1890 # -------------------------
1891 # Try to link conftest.$ac_ext, and return whether this succeeded.
1892 ac_fn_cxx_try_link
()
1894 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1895 rm -f conftest.
$ac_objext conftest
$ac_exeext
1896 if { { ac_try
="$ac_link"
1898 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1899 *) ac_try_echo=$ac_try;;
1901 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1902 $as_echo "$ac_try_echo"; } >&5
1903 (eval "$ac_link") 2>conftest.err
1905 if test -s conftest.err; then
1906 grep -v '^ *+' conftest.err >conftest.er1
1907 cat conftest.er1 >&5
1908 mv -f conftest.er1 conftest.err
1910 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1911 test $ac_status = 0; } && {
1912 test -z "$ac_cxx_werror_flag" ||
1913 test ! -s conftest.err
1914 } && test -s conftest$ac_exeext && {
1915 test "$cross_compiling" = yes ||
1916 test -x conftest$ac_exeext
1920 $as_echo "$as_me: failed program was:" >&5
1921 sed 's/^/| /' conftest.$ac_ext >&5
1925 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1926 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1927 # interfere with the next link command; also delete a directory that is
1928 # left behind by Apple's compiler. We do this before executing the actions.
1929 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1930 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1931 as_fn_set_status $ac_retval
1933 } # ac_fn_cxx_try_link
1935 # ac_fn_c_try_link LINENO
1936 # -----------------------
1937 # Try to link conftest.$ac_ext, and return whether this succeeded.
1940 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1941 rm -f conftest.$ac_objext conftest$ac_exeext
1942 if { { ac_try="$ac_link"
1944 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1945 *) ac_try_echo
=$ac_try;;
1947 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1948 $as_echo "$ac_try_echo"; } >&5
1949 (eval "$ac_link") 2>conftest.err
1951 if test -s conftest.err
; then
1952 grep -v '^ *+' conftest.err
>conftest.er1
1953 cat conftest.er1
>&5
1954 mv -f conftest.er1 conftest.err
1956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1957 test $ac_status = 0; } && {
1958 test -z "$ac_c_werror_flag" ||
1959 test ! -s conftest.err
1960 } && test -s conftest
$ac_exeext && {
1961 test "$cross_compiling" = yes ||
1962 test -x conftest
$ac_exeext
1966 $as_echo "$as_me: failed program was:" >&5
1967 sed 's/^/| /' conftest.
$ac_ext >&5
1971 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1972 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1973 # interfere with the next link command; also delete a directory that is
1974 # left behind by Apple's compiler. We do this before executing the actions.
1975 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1976 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1977 as_fn_set_status
$ac_retval
1979 } # ac_fn_c_try_link
1980 cat >config.log
<<_ACEOF
1981 This file contains any messages produced by compilers while
1982 running configure, to aid debugging if configure makes a mistake.
1984 It was created by $as_me, which was
1985 generated by GNU Autoconf 2.69. Invocation command line was
1997 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1998 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1999 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2000 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2001 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2003 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2004 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2006 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2007 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2008 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2009 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2010 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2011 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2012 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2016 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2020 test -z "$as_dir" && as_dir
=.
2021 $as_echo "PATH: $as_dir"
2037 # Keep a trace of the command line.
2038 # Strip out --no-create and --no-recursion so they do not pile up.
2039 # Strip out --silent because we don't want to record it for future runs.
2040 # Also quote any args containing shell meta-characters.
2041 # Make two passes to allow for proper duplicate-argument suppression.
2045 ac_must_keep_next
=false
2051 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2052 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2053 |
-silent |
--silent |
--silen |
--sile |
--sil)
2056 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2059 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2061 as_fn_append ac_configure_args1
" '$ac_arg'"
2062 if test $ac_must_keep_next = true
; then
2063 ac_must_keep_next
=false
# Got value, back to normal.
2066 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2067 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2068 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2069 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2070 case "$ac_configure_args0 " in
2071 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2074 -* ) ac_must_keep_next
=true
;;
2077 as_fn_append ac_configure_args
" '$ac_arg'"
2082 { ac_configure_args0
=; unset ac_configure_args0
;}
2083 { ac_configure_args1
=; unset ac_configure_args1
;}
2085 # When interrupted or exit'd, cleanup temporary files, and complete
2086 # config.log. We remove comments because anyway the quotes in there
2087 # would cause problems or look ugly.
2088 # WARNING: Use '\'' to represent an apostrophe within the trap.
2089 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2090 trap 'exit_status=$?
2091 # Save into config.log some information that might help in debugging.
2095 $as_echo "## ---------------- ##
2096 ## Cache variables. ##
2097 ## ---------------- ##"
2099 # The following way of writing the cache mishandles newlines in values,
2101 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2102 eval ac_val=\$$ac_var
2106 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2107 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2110 _ | IFS | as_nl) ;; #(
2111 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2112 *) { eval $ac_var=; unset $ac_var;} ;;
2117 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2118 *${as_nl}ac_space=\ *)
2120 "s/'\''/'\''\\\\'\'''\''/g;
2121 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2124 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2131 $as_echo "## ----------------- ##
2132 ## Output variables. ##
2133 ## ----------------- ##"
2135 for ac_var in $ac_subst_vars
2137 eval ac_val=\$$ac_var
2139 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2141 $as_echo "$ac_var='\''$ac_val'\''"
2145 if test -n "$ac_subst_files"; then
2146 $as_echo "## ------------------- ##
2147 ## File substitutions. ##
2148 ## ------------------- ##"
2150 for ac_var
in $ac_subst_files
2152 eval ac_val
=\$
$ac_var
2154 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2156 $as_echo "$ac_var='\''$ac_val'\''"
2161 if test -s confdefs.h; then
2162 $as_echo "## ----------- ##
2169 test "$ac_signal" != 0 &&
2170 $as_echo "$as_me: caught signal $ac_signal"
2171 $as_echo "$as_me: exit $exit_status"
2173 rm -f core *.core core.conftest.* &&
2174 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2177 for ac_signal
in 1 2 13 15; do
2178 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2182 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2183 rm -f -r conftest
* confdefs.h
2185 $as_echo "/* confdefs.h */" > confdefs.h
2187 # Predefined preprocessor variables.
2189 cat >>confdefs.h
<<_ACEOF
2190 #define PACKAGE_NAME "$PACKAGE_NAME"
2193 cat >>confdefs.h
<<_ACEOF
2194 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2197 cat >>confdefs.h
<<_ACEOF
2198 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2201 cat >>confdefs.h
<<_ACEOF
2202 #define PACKAGE_STRING "$PACKAGE_STRING"
2205 cat >>confdefs.h
<<_ACEOF
2206 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2209 cat >>confdefs.h
<<_ACEOF
2210 #define PACKAGE_URL "$PACKAGE_URL"
2214 # Let the site file select an alternate cache file if it wants to.
2215 # Prefer an explicitly selected file to automatically selected ones.
2218 if test -n "$CONFIG_SITE"; then
2219 # We do not want a PATH search for config.site.
2220 case $CONFIG_SITE in #((
2221 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2222 */*) ac_site_file1
=$CONFIG_SITE;;
2223 *) ac_site_file1
=.
/$CONFIG_SITE;;
2225 elif test "x$prefix" != xNONE
; then
2226 ac_site_file1
=$prefix/share
/config.site
2227 ac_site_file2
=$prefix/etc
/config.site
2229 ac_site_file1
=$ac_default_prefix/share
/config.site
2230 ac_site_file2
=$ac_default_prefix/etc
/config.site
2232 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2234 test "x$ac_site_file" = xNONE
&& continue
2235 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2236 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2237 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2238 sed 's/^/| /' "$ac_site_file" >&5
2240 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2241 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2242 as_fn_error $?
"failed to load site script $ac_site_file
2243 See \`config.log' for more details" "$LINENO" 5; }
2247 if test -r "$cache_file"; then
2248 # Some versions of bash will fail to source /dev/null (special files
2249 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2250 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2252 $as_echo "$as_me: loading cache $cache_file" >&6;}
2254 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2255 *) .
"./$cache_file";;
2259 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2260 $as_echo "$as_me: creating cache $cache_file" >&6;}
2264 # Check that the precious variables saved in the cache have kept the same
2266 ac_cache_corrupted
=false
2267 for ac_var
in $ac_precious_vars; do
2268 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2269 eval ac_new_set
=\
$ac_env_${ac_var}_set
2270 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2271 eval ac_new_val
=\
$ac_env_${ac_var}_value
2272 case $ac_old_set,$ac_new_set in
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2275 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2276 ac_cache_corrupted
=: ;;
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2279 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2280 ac_cache_corrupted
=: ;;
2283 if test "x$ac_old_val" != "x$ac_new_val"; then
2284 # differences in whitespace do not lead to failure.
2285 ac_old_val_w
=`echo x $ac_old_val`
2286 ac_new_val_w
=`echo x $ac_new_val`
2287 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2289 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2290 ac_cache_corrupted
=:
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2293 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2294 eval $ac_var=\
$ac_old_val
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2297 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2299 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2302 # Pass precious variables to config.status.
2303 if test "$ac_new_set" = set; then
2305 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2306 *) ac_arg
=$ac_var=$ac_new_val ;;
2308 case " $ac_configure_args " in
2309 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2310 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2314 if $ac_cache_corrupted; then
2315 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2317 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2318 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2319 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2321 ## -------------------- ##
2322 ## Main body of script. ##
2323 ## -------------------- ##
2326 ac_cpp
='$CPP $CPPFLAGS'
2327 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2328 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2329 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2339 # if PWD already has a value, it is probably wrong.
2340 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2342 # Export original configure arguments for use by sub-configures.
2343 # Quote arguments with shell meta charatcers.
2344 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2345 set -- "$progname" "$@"
2349 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2350 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2351 # if the argument is of the form -foo=baz, quote the baz part only
2352 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2355 # Add the quoted argument to the list.
2356 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2358 if test "$silent" = yes; then
2359 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2361 # Remove the initial space we just introduced and, as these will be
2362 # expanded by make, quote '$'.
2363 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2366 # Find the build, host, and target systems.
2368 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2369 if test -f "$ac_dir/install-sh"; then
2371 ac_install_sh
="$ac_aux_dir/install-sh -c"
2373 elif test -f "$ac_dir/install.sh"; then
2375 ac_install_sh
="$ac_aux_dir/install.sh -c"
2377 elif test -f "$ac_dir/shtool"; then
2379 ac_install_sh
="$ac_aux_dir/shtool install -c"
2383 if test -z "$ac_aux_dir"; then
2384 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2387 # These three variables are undocumented and unsupported,
2388 # and are intended to be withdrawn in a future Autoconf release.
2389 # They can cause serious problems if a builder's source tree is in a directory
2390 # whose full name contains unusual characters.
2391 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2392 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2393 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2396 # Make sure we can run config.sub.
2397 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2398 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2401 $as_echo_n "checking build system type... " >&6; }
2402 if ${ac_cv_build+:} false
; then :
2403 $as_echo_n "(cached) " >&6
2405 ac_build_alias
=$build_alias
2406 test "x$ac_build_alias" = x
&&
2407 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2408 test "x$ac_build_alias" = x
&&
2409 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2410 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2411 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2415 $as_echo "$ac_cv_build" >&6; }
2416 case $ac_cv_build in
2418 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2421 ac_save_IFS
=$IFS; IFS
='-'
2427 # Remember, the first character of IFS is used to create $*,
2428 # except with old shells:
2431 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2434 case ${build_alias} in
2435 "") build_noncanonical
=${build} ;;
2436 *) build_noncanonical
=${build_alias} ;;
2441 case ${host_alias} in
2442 "") host_noncanonical
=${build_noncanonical} ;;
2443 *) host_noncanonical
=${host_alias} ;;
2448 case ${target_alias} in
2449 "") target_noncanonical
=${host_noncanonical} ;;
2450 *) target_noncanonical
=${target_alias} ;;
2456 test "$host_noncanonical" = "$target_noncanonical" &&
2457 test "$program_prefix$program_suffix$program_transform_name" = \
2459 program_transform_name
=s
,y
,y
,
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2462 $as_echo_n "checking host system type... " >&6; }
2463 if ${ac_cv_host+:} false
; then :
2464 $as_echo_n "(cached) " >&6
2466 if test "x$host_alias" = x
; then
2467 ac_cv_host
=$ac_cv_build
2469 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2470 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2475 $as_echo "$ac_cv_host" >&6; }
2478 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2481 ac_save_IFS
=$IFS; IFS
='-'
2487 # Remember, the first character of IFS is used to create $*,
2488 # except with old shells:
2491 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2495 $as_echo_n "checking target system type... " >&6; }
2496 if ${ac_cv_target+:} false
; then :
2497 $as_echo_n "(cached) " >&6
2499 if test "x$target_alias" = x
; then
2500 ac_cv_target
=$ac_cv_host
2502 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2503 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2508 $as_echo "$ac_cv_target" >&6; }
2509 case $ac_cv_target in
2511 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2513 target
=$ac_cv_target
2514 ac_save_IFS
=$IFS; IFS
='-'
2520 # Remember, the first character of IFS is used to create $*,
2521 # except with old shells:
2524 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2527 # The aliases save the names the user supplied, while $host etc.
2528 # will get canonicalized.
2529 test -n "$target_alias" &&
2530 test "$program_prefix$program_suffix$program_transform_name" = \
2532 program_prefix
=${target_alias}-
2534 test "$program_prefix" != NONE
&&
2535 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2536 # Use a double $ so make ignores it.
2537 test "$program_suffix" != NONE
&&
2538 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2539 # Double any \ or $.
2540 # By default was `s,x,x', remove it if useless.
2541 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2542 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2546 # Get 'install' or 'install-sh' and its variants.
2547 # Find a good install program. We prefer a C program (faster),
2548 # so one script is as good as another. But avoid the broken or
2549 # incompatible versions:
2550 # SysV /etc/install, /usr/sbin/install
2551 # SunOS /usr/etc/install
2552 # IRIX /sbin/install
2554 # AmigaOS /C/install, which installs bootblocks on floppy discs
2555 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2556 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2557 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2558 # OS/2's system install, which has a completely different semantic
2559 # ./install, which can be erroneously created by make from ./install.sh.
2560 # Reject install programs that cannot install multiple files.
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2562 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2563 if test -z "$INSTALL"; then
2564 if ${ac_cv_path_install+:} false
; then :
2565 $as_echo_n "(cached) " >&6
2567 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2571 test -z "$as_dir" && as_dir
=.
2572 # Account for people who put trailing slashes in PATH elements.
2573 case $as_dir/ in #((
2574 .
/ | .
// |
/[cC
]/* | \
2575 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2576 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2579 # OSF1 and SCO ODT 3.0 have their own names for install.
2580 # Don't use installbsd from OSF since it installs stuff as root
2582 for ac_prog
in ginstall scoinst
install; do
2583 for ac_exec_ext
in '' $ac_executable_extensions; do
2584 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2585 if test $ac_prog = install &&
2586 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2587 # AIX install. It has an incompatible calling convention.
2589 elif test $ac_prog = install &&
2590 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2591 # program-specific install script used by HP pwplus--don't use.
2594 rm -rf conftest.one conftest.two conftest.dir
2595 echo one
> conftest.one
2596 echo two
> conftest.two
2598 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2599 test -s conftest.one
&& test -s conftest.two
&&
2600 test -s conftest.dir
/conftest.one
&&
2601 test -s conftest.dir
/conftest.two
2603 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2616 rm -rf conftest.one conftest.two conftest.dir
2619 if test "${ac_cv_path_install+set}" = set; then
2620 INSTALL
=$ac_cv_path_install
2622 # As a last resort, use the slow shell script. Don't cache a
2623 # value for INSTALL within a source directory, because that will
2624 # break other packages using the cache if that directory is
2625 # removed, or if the value is a relative name.
2626 INSTALL
=$ac_install_sh
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2630 $as_echo "$INSTALL" >&6; }
2632 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2633 # It thinks the first close brace ends the variable substitution.
2634 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2636 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2638 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2641 $as_echo_n "checking whether ln works... " >&6; }
2642 if ${acx_cv_prog_LN+:} false
; then :
2643 $as_echo_n "(cached) " >&6
2645 rm -f conftestdata_t
2646 echo >conftestdata_f
2647 if ln conftestdata_f conftestdata_t
2>/dev
/null
2653 rm -f conftestdata_f conftestdata_t
2656 if test $acx_cv_prog_LN = no
; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2659 $as_echo "no, using $LN" >&6; }
2661 LN
="$acx_cv_prog_LN"
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2667 $as_echo_n "checking whether ln -s works... " >&6; }
2669 if test "$LN_S" = "ln -s"; then
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2671 $as_echo "yes" >&6; }
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2674 $as_echo "no, using $LN_S" >&6; }
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2678 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2679 if ${ac_cv_path_SED+:} false
; then :
2680 $as_echo_n "(cached) " >&6
2682 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2683 for ac_i
in 1 2 3 4 5 6 7; do
2684 ac_script
="$ac_script$as_nl$ac_script"
2686 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2687 { ac_script
=; unset ac_script
;}
2688 if test -z "$SED"; then
2689 ac_path_SED_found
=false
2690 # Loop through the user's path and test for each of PROGNAME-LIST
2691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2695 test -z "$as_dir" && as_dir
=.
2696 for ac_prog
in sed gsed
; do
2697 for ac_exec_ext
in '' $ac_executable_extensions; do
2698 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2699 as_fn_executable_p
"$ac_path_SED" ||
continue
2700 # Check for GNU ac_path_SED and select it if it is found.
2701 # Check for GNU $ac_path_SED
2702 case `"$ac_path_SED" --version 2>&1` in
2704 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2707 $as_echo_n 0123456789 >"conftest.in"
2710 cat "conftest.in" "conftest.in" >"conftest.tmp"
2711 mv "conftest.tmp" "conftest.in"
2712 cp "conftest.in" "conftest.nl"
2713 $as_echo '' >> "conftest.nl"
2714 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2715 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2716 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2717 if test $ac_count -gt ${ac_path_SED_max-0}; then
2718 # Best one so far, save it but keep looking for a better one
2719 ac_cv_path_SED
="$ac_path_SED"
2720 ac_path_SED_max
=$ac_count
2722 # 10*(2^10) chars as input seems more than enough
2723 test $ac_count -gt 10 && break
2725 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2728 $ac_path_SED_found && break 3
2733 if test -z "$ac_cv_path_SED"; then
2734 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2742 $as_echo "$ac_cv_path_SED" >&6; }
2743 SED
="$ac_cv_path_SED"
2746 for ac_prog
in gawk mawk nawk
awk
2748 # Extract the first word of "$ac_prog", so it can be a program name with args.
2749 set dummy
$ac_prog; ac_word
=$2
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2751 $as_echo_n "checking for $ac_word... " >&6; }
2752 if ${ac_cv_prog_AWK+:} false
; then :
2753 $as_echo_n "(cached) " >&6
2755 if test -n "$AWK"; then
2756 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2758 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2762 test -z "$as_dir" && as_dir
=.
2763 for ac_exec_ext
in '' $ac_executable_extensions; do
2764 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2765 ac_cv_prog_AWK
="$ac_prog"
2766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2776 if test -n "$AWK"; then
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2778 $as_echo "$AWK" >&6; }
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2781 $as_echo "no" >&6; }
2785 test -n "$AWK" && break
2789 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2791 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2793 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2794 INSTALL
="${srcpwd}/install-sh -c"
2797 # Set srcdir to "." if that's what it is.
2798 # This is important for multilib support.
2800 if test "${pwd}" = "${srcpwd}" ; then
2808 ### To add a new directory to the tree, first choose whether it is a target
2809 ### or a host dependent tool. Then put it into the appropriate list
2810 ### (library or tools, host or target), doing a dependency sort.
2812 # Subdirs will be configured in the order listed in build_configdirs,
2813 # configdirs, or target_configdirs; see the serialization section below.
2815 # Dependency sorting is only needed when *configuration* must be done in
2816 # a particular order. In all cases a dependency should be specified in
2817 # the Makefile, whether or not it's implicitly specified here.
2819 # Double entries in build_configdirs, configdirs, or target_configdirs may
2820 # cause circular dependencies and break everything horribly.
2822 # these library is used by various programs built for the build
2825 build_libs
="build-libiberty build-libcpp"
2827 # these tools are built for the build environment
2828 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2830 # these libraries are used by various programs built for the host environment
2832 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2834 # these tools are built for the host environment
2835 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2836 # know that we are building the simulator.
2837 # binutils, gas and ld appear in that order because it makes sense to run
2838 # "make check" in that particular order.
2839 # If --enable-gold is used, "gold" may replace "ld".
2840 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"
2842 # these libraries are built for the target environment, and are built after
2843 # the host libraries and the host tools (which may be a cross compiler)
2844 # Note that libiberty is not a target library.
2845 target_libraries
="target-libgcc \
2846 target-libbacktrace \
2852 target-libstdc++-v3 \
2853 target-libsanitizer \
2856 target-libquadmath \
2857 target-libgfortran \
2866 # these tools are built using the target libraries, and are intended to
2867 # run only in the target environment
2869 # note: any program that *uses* libraries that are in the "target_libraries"
2870 # list belongs in this list.
2872 target_tools
="target-rda"
2874 ################################################################################
2876 ## All tools belong in one of the four categories, and are assigned above
2877 ## We assign ${configdirs} this way to remove all embedded newlines. This
2878 ## is important because configure will choke if they ever get through.
2879 ## ${configdirs} is directories we build using the host tools.
2880 ## ${target_configdirs} is directories we build using the target tools.
2881 configdirs
=`echo ${host_libs} ${host_tools}`
2882 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2883 build_configdirs
=`echo ${build_libs} ${build_tools}`
2887 ################################################################################
2889 srcname
="gnu development package"
2891 # This gets set non-empty for some net releases of packages.
2894 # Define is_cross_compiler to save on calls to 'test'.
2896 if test x
"${host}" = x
"${target}" ; then
2897 is_cross_compiler
=no
2899 is_cross_compiler
=yes
2902 # Find the build and target subdir names.
2904 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2905 # have matching libraries, they should use host libraries: Makefile.tpl
2906 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2907 # However, they still use the build modules, because the corresponding
2908 # host modules (e.g. bison) are only built for the host when bootstrap
2910 # - build_subdir is where we find build modules, and never changes.
2911 # - build_libsubdir is where we find build libraries, and can be overridden.
2913 # Prefix 'build-' so this never conflicts with target_subdir.
2914 build_subdir
="build-${build_noncanonical}"
2916 # Check whether --with-build-libsubdir was given.
2917 if test "${with_build_libsubdir+set}" = set; then :
2918 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2920 build_libsubdir
="$build_subdir"
2923 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2924 if ( test $srcdir = .
&& test -d gcc
) \
2925 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2926 host_subdir
="host-${host_noncanonical}"
2931 target_subdir
=${target_noncanonical}
2933 # Be sure to cover against remnants of an in-tree build.
2934 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2935 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2936 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2939 # Skipdirs are removed silently.
2941 # Noconfigdirs are removed loudly.
2945 # Make sure we don't let GNU ld be added if we didn't want it.
2946 if test x
$with_gnu_ld = xno
; then
2948 noconfigdirs
="$noconfigdirs ld gold"
2952 # Make sure we don't let GNU as be added if we didn't want it.
2953 if test x
$with_gnu_as = xno
; then
2955 noconfigdirs
="$noconfigdirs gas"
2960 # Check whether --with-system-zlib was given.
2961 if test "${with_system_zlib+set}" = set; then :
2962 withval
=$with_system_zlib;
2965 # Make sure we don't let ZLIB be added if we didn't want it.
2966 if test x
$with_system_zlib = xyes
; then
2967 use_included_zlib
=no
2968 noconfigdirs
="$noconfigdirs zlib"
2971 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2973 if test x
$with_system_readline = xyes
; then
2974 noconfigdirs
="$noconfigdirs readline"
2978 # Check whether --with-zstd was given.
2979 if test "${with_zstd+set}" = set; then :
2984 # some tools are so dependent upon X11 that if we're not building with X,
2985 # it's not even worth trying to configure, much less build, that tool.
2988 yes |
"") ;; # the default value for this tree is that X11 is available
2990 skipdirs
="${skipdirs} tk itcl libgui"
2991 # We won't be able to build gdbtk without X.
2994 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2997 # Some are only suitable for cross toolchains.
2998 # Remove these if host=target.
2999 cross_only
="target-libgloss target-newlib target-opcodes"
3001 case $is_cross_compiler in
3002 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
3005 # If both --with-headers and --with-libs are specified, default to
3007 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
3008 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
3009 if test x
"${with_newlib}" = x
; then
3014 # Recognize --with-newlib/--without-newlib.
3015 case ${with_newlib} in
3016 no
) skipdirs
="${skipdirs} target-newlib" ;;
3017 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3020 # Check whether --enable-as-accelerator-for was given.
3021 if test "${enable_as_accelerator_for+set}" = set; then :
3022 enableval
=$enable_as_accelerator_for;
3026 # Check whether --enable-offload-targets was given.
3027 if test "${enable_offload_targets+set}" = set; then :
3028 enableval
=$enable_offload_targets;
3029 if test x
"$enable_offload_targets" = x
; then
3030 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3034 enable_offload_targets
=
3038 # Check whether --enable-offload-defaulted was given.
3039 if test "${enable_offload_defaulted+set}" = set; then :
3040 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3042 enable_offload_defaulted
=
3046 # Handle --enable-gold, --enable-ld.
3047 # --disable-gold [--enable-ld]
3048 # Build only ld. Default option.
3049 # --enable-gold [--enable-ld]
3050 # Build both gold and ld. Install gold as "ld.gold", install ld
3051 # as "ld.bfd" and "ld".
3052 # --enable-gold=default [--enable-ld]
3053 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3054 # install ld as "ld.bfd".
3055 # --enable-gold[=default] --disable-ld
3056 # Build only gold, which is then installed as both "ld.gold" and "ld".
3057 # --enable-gold --enable-ld=default
3058 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3060 # In other words, ld is default
3061 # --enable-gold=default --enable-ld=default
3065 # Check whether --enable-gold was given.
3066 if test "${enable_gold+set}" = set; then :
3067 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3072 case "${ENABLE_GOLD}" in
3074 # Check for ELF target.
3077 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3078 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3079 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3080 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl* |
*-*-haiku*)
3082 *-*-linux*aout
* |
*-*-linux*oldld
*)
3090 if test "$is_elf" = "yes"; then
3091 # Check for target supported by gold.
3093 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3094 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-* | loongarch
*-*-*)
3095 configdirs
="$configdirs gold"
3096 if test x
${ENABLE_GOLD} = xdefault
; then
3107 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3111 # Check whether --enable-ld was given.
3112 if test "${enable_ld+set}" = set; then :
3113 enableval
=$enable_ld; ENABLE_LD
=$enableval
3119 case "${ENABLE_LD}" in
3121 if test x
${default_ld} != x
; then
3122 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3128 if test x
${ENABLE_GOLD} != xyes
; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3130 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3132 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3135 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3139 # Check whether --enable-gprofng was given.
3140 if test "${enable_gprofng+set}" = set; then :
3141 enableval
=$enable_gprofng; enable_gprofng
=$enableval
3146 if test "$enable_gprofng" = "yes"; then
3148 x86_64-
*-linux* | i?
86-*-linux* | aarch64-
*-linux*)
3149 configdirs
="$configdirs gprofng"
3156 # Decide the default method for compressing debug sections.
3157 # Provide a configure time option to override our default.
3158 # Check whether --enable-compressed_debug_sections was given.
3159 if test "${enable_compressed_debug_sections+set}" = set; then :
3160 enableval
=$enable_compressed_debug_sections;
3161 if test x
"$enable_compressed_debug_sections" = xyes
; then
3162 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3166 enable_compressed_debug_sections
=
3170 # Select default compression algorithm.
3171 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3172 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3173 enableval
=$enable_default_compressed_debug_sections_algorithm;
3175 default_compressed_debug_sections_algorithm
=
3179 # Configure extra directories which are host specific
3183 configdirs
="$configdirs libtermcap" ;;
3186 # A target can indicate whether a language isn't supported for some reason.
3187 # Only spaces may be used in this macro; not newlines or tabs.
3188 unsupported_languages
=
3190 # Remove more programs from consideration, based on the host or
3191 # target this usually means that a port of the program doesn't
3195 i
[3456789]86-*-msdosdjgpp*)
3196 noconfigdirs
="$noconfigdirs tcl tk itcl"
3200 # Default to --disable-year2038 until we can handle differences between
3201 # projects that use gnulib (which understands year 2038) and projects that
3202 # do not (like BFD).
3203 # Check whether --enable-year2038 was given.
3204 if test "${enable_year2038+set}" = set; then :
3205 enableval
=$enable_year2038; ENABLE_YEAR2038
=$enableval
3211 if test "${ENABLE_YEAR2038}" = "no" ; then
3215 # Check whether --enable-libquadmath was given.
3216 if test "${enable_libquadmath+set}" = set; then :
3217 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3219 ENABLE_LIBQUADMATH
=yes
3222 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3223 noconfigdirs
="$noconfigdirs target-libquadmath"
3227 # Check whether --enable-libquadmath-support was given.
3228 if test "${enable_libquadmath_support+set}" = set; then :
3229 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3231 ENABLE_LIBQUADMATH_SUPPORT
=yes
3234 enable_libquadmath_support
=
3235 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3236 enable_libquadmath_support
=no
3240 # Check whether --enable-libada was given.
3241 if test "${enable_libada+set}" = set; then :
3242 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3247 if test "${ENABLE_LIBADA}" != "yes" ; then
3248 noconfigdirs
="$noconfigdirs gnattools"
3251 # Check whether --enable-libgm2 was given.
3252 if test "${enable_libgm2+set}" = set; then :
3253 enableval
=$enable_libgm2; ENABLE_LIBGM2
=$enableval
3258 if test "${ENABLE_LIBGM2}" != "yes" ; then
3259 noconfigdirs
="$noconfigdirs gm2tools"
3262 # Check whether --enable-libssp was given.
3263 if test "${enable_libssp+set}" = set; then :
3264 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3270 # Check whether --enable-libstdcxx was given.
3271 if test "${enable_libstdcxx+set}" = set; then :
3272 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3274 ENABLE_LIBSTDCXX
=default
3277 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3278 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3281 # Enable libgomp by default on hosted POSIX systems, and a few others.
3282 if test x
$enable_libgomp = x
; then
3284 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3286 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3288 *-*-solaris2* |
*-*-hpux11*)
3290 *-*-darwin* |
*-*-aix*)
3292 nvptx
*-*-* | amdgcn
*-*-*)
3295 noconfigdirs
="$noconfigdirs target-libgomp"
3300 # Disable libatomic on unsupported systems.
3301 if test -d ${srcdir}/libatomic
; then
3302 if test x
$enable_libatomic = x
; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3304 $as_echo_n "checking for libatomic support... " >&6; }
3305 if (srcdir
=${srcdir}/libatomic
; \
3306 .
${srcdir}/configure.tgt
; \
3307 test -n "$UNSUPPORTED")
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3310 $as_echo "no" >&6; }
3311 noconfigdirs
="$noconfigdirs target-libatomic"
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3314 $as_echo "yes" >&6; }
3319 # Disable libitm on unsupported systems.
3320 if test -d ${srcdir}/libitm
; then
3321 if test x
$enable_libitm = x
; then
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3323 $as_echo_n "checking for libitm support... " >&6; }
3324 if (srcdir
=${srcdir}/libitm
; \
3325 .
${srcdir}/configure.tgt
; \
3326 test -n "$UNSUPPORTED")
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3329 $as_echo "no" >&6; }
3330 noconfigdirs
="$noconfigdirs target-libitm"
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3338 # Disable libsanitizer on unsupported systems.
3339 if test -d ${srcdir}/libsanitizer
; then
3340 if test x
$enable_libsanitizer = x
; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3342 $as_echo_n "checking for libsanitizer support... " >&6; }
3343 if (srcdir
=${srcdir}/libsanitizer
; \
3344 .
${srcdir}/configure.tgt
; \
3345 test -n "$UNSUPPORTED")
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3348 $as_echo "no" >&6; }
3349 noconfigdirs
="$noconfigdirs target-libsanitizer"
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352 $as_echo "yes" >&6; }
3357 # Disable libvtv on unsupported systems.
3358 if test -d ${srcdir}/libvtv
; then
3359 if test x
$enable_libvtv = x
; then
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3361 $as_echo_n "checking for libvtv support... " >&6; }
3362 if (srcdir
=${srcdir}/libvtv
; \
3363 .
${srcdir}/configure.tgt
; \
3364 test "$VTV_SUPPORTED" != "yes")
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3367 $as_echo "no" >&6; }
3368 noconfigdirs
="$noconfigdirs target-libvtv"
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3371 $as_echo "yes" >&6; }
3376 # Disable libquadmath for some systems.
3379 noconfigdirs
="$noconfigdirs target-libquadmath"
3381 # libquadmath is unused on AIX and libquadmath build process use of
3382 # LD_LIBRARY_PATH can break AIX bootstrap.
3383 powerpc-
*-aix* | rs6000-
*-aix*)
3384 noconfigdirs
="$noconfigdirs target-libquadmath"
3388 # Disable libssp for some systems.
3391 # No hosted I/O support.
3392 noconfigdirs
="$noconfigdirs target-libssp"
3395 noconfigdirs
="$noconfigdirs target-libssp"
3397 powerpc-
*-aix* | rs6000-
*-aix*)
3398 noconfigdirs
="$noconfigdirs target-libssp"
3401 # No hosted I/O support.
3402 noconfigdirs
="$noconfigdirs target-libssp"
3405 # libssp uses a misaligned load to trigger a fault, but the RL78
3406 # doesn't fault for those - instead, it gives a build-time error
3407 # for explicit misaligned loads.
3408 noconfigdirs
="$noconfigdirs target-libssp"
3411 # No hosted I/O support.
3412 noconfigdirs
="$noconfigdirs target-libssp"
3416 # Disable libstdc++-v3 for some systems.
3417 # Allow user to override this if they pass --enable-libstdcxx
3418 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3421 # VxWorks uses the Dinkumware C++ library.
3422 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3425 # Not ported/fails to build when using newlib.
3426 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3429 # the C++ libraries don't build on top of CE's C libraries
3430 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3433 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3436 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3439 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3444 # Disable C++ on systems where it is known to not work.
3445 # For testing, you can override this with --enable-languages=c++.
3446 case ,${enable_languages}, in
3452 unsupported_languages
="$unsupported_languages c++"
3458 # Disable Objc on systems where it is known to not work.
3459 # For testing, you can override this with --enable-languages=objc.
3460 case ,${enable_languages}, in
3466 unsupported_languages
="$unsupported_languages objc"
3472 # Disable D on systems where it is known to not work.
3473 # For testing, you can override this with --enable-languages=d.
3474 case ,${enable_languages}, in
3480 unsupported_languages
="$unsupported_languages d"
3486 # Disable libphobos on unsupported systems.
3487 # For testing, you can override this with --enable-libphobos.
3488 if test -d ${srcdir}/libphobos
; then
3489 if test x
$enable_libphobos = x
; then
3490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3491 $as_echo_n "checking for libphobos support... " >&6; }
3492 if (srcdir
=${srcdir}/libphobos
; \
3493 .
${srcdir}/configure.tgt
; \
3494 test "$LIBPHOBOS_SUPPORTED" != "yes")
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3498 noconfigdirs
="$noconfigdirs target-libphobos"
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3501 $as_echo "yes" >&6; }
3506 # Disable Fortran for some systems.
3509 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3510 unsupported_languages
="$unsupported_languages fortran"
3513 unsupported_languages
="$unsupported_languages fortran"
3517 # Disable libffi for some systems.
3521 i
[3456789]86-*-darwin*)
3523 x86_64-
*-darwin[912]*)
3526 noconfigdirs
="$noconfigdirs target-libffi"
3529 noconfigdirs
="$noconfigdirs target-libffi"
3532 noconfigdirs
="$noconfigdirs target-libffi"
3535 noconfigdirs
="$noconfigdirs target-libffi"
3538 noconfigdirs
="$noconfigdirs target-libffi"
3541 noconfigdirs
="$noconfigdirs target-libffi"
3544 noconfigdirs
="$noconfigdirs target-libffi"
3546 aarch64
*-*-freebsd*)
3547 noconfigdirs
="$noconfigdirs target-libffi"
3550 noconfigdirs
="$noconfigdirs target-libffi"
3553 noconfigdirs
="$noconfigdirs target-libffi"
3556 noconfigdirs
="$noconfigdirs target-libffi"
3559 noconfigdirs
="$noconfigdirs target-libffi"
3562 noconfigdirs
="$noconfigdirs target-libffi"
3564 cris-
*-* | crisv32-
*-*)
3568 *) # See PR46792 regarding target-libffi.
3569 noconfigdirs
="$noconfigdirs target-libffi";;
3573 noconfigdirs
="$noconfigdirs target-libffi"
3578 noconfigdirs
="$noconfigdirs target-libffi"
3581 noconfigdirs
="$noconfigdirs target-libffi"
3583 i
[3456789]86-w64-mingw*)
3584 noconfigdirs
="$noconfigdirs target-libffi"
3586 i
[3456789]86-*-mingw*)
3587 noconfigdirs
="$noconfigdirs target-libffi"
3590 noconfigdirs
="$noconfigdirs target-libffi"
3593 noconfigdirs
="$noconfigdirs target-libffi"
3600 noconfigdirs
="$noconfigdirs target-libffi"
3603 noconfigdirs
="$noconfigdirs target-libffi"
3607 # Disable the go frontend on systems where it is known to not work. Please keep
3608 # this in sync with contrib/config-list.mk.
3610 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3611 unsupported_languages
="$unsupported_languages go"
3615 # Only allow gdbserver on some systems.
3616 if test -d ${srcdir}/gdbserver
; then
3617 if test x
$enable_gdbserver = x
; then
3618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3619 $as_echo_n "checking for gdbserver support... " >&6; }
3620 if (srcdir
=${srcdir}/gdbserver
; \
3621 .
${srcdir}/configure.srv
; \
3622 test -n "$UNSUPPORTED")
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3625 $as_echo "no" >&6; }
3626 noconfigdirs
="$noconfigdirs gdbserver"
3628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3629 $as_echo "yes" >&6; }
3634 # Disable libgo for some systems where it is known to not work.
3635 # For testing, you can easily override this with --enable-libgo.
3636 if test x
$enable_libgo = x
; then
3640 noconfigdirs
="$noconfigdirs target-libgo"
3642 *-*-cygwin* |
*-*-mingw*)
3643 noconfigdirs
="$noconfigdirs target-libgo"
3646 noconfigdirs
="$noconfigdirs target-libgo"
3651 # Default libgloss CPU subdirectory.
3652 libgloss_dir
="$target_cpu"
3655 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3659 libgloss_dir
=aarch64
3664 cris-
*-* | crisv32-
*-*)
3674 libgloss_dir
=loongarch
3676 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3677 libgloss_dir
=m68hc11
3679 m68
*-*-* | fido-
*-*)
3696 # Disable newlib and libgloss for various target OSes.
3699 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3701 i
[3456789]86-*-linux*)
3702 # This section makes it possible to build newlib natively on linux.
3703 # If we are using a cross compiler then don't configure newlib.
3704 if test x
${is_cross_compiler} != xno
; then
3705 noconfigdirs
="$noconfigdirs target-newlib"
3707 noconfigdirs
="$noconfigdirs target-libgloss"
3708 # If we are not using a cross compiler, do configure newlib.
3709 # Note however, that newlib will only be configured in this situation
3710 # if the --with-newlib option has been given, because otherwise
3711 # 'target-newlib' will appear in skipdirs.
3713 i
[3456789]86-*-rdos*)
3714 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3716 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3717 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3720 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3723 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3726 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3729 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3732 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3735 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3738 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3740 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
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"
3759 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3762 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3770 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3771 noconfigdirs
="$noconfigdirs sim target-rda"
3776 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3777 noconfigdirs
="$noconfigdirs sim target-rda"
3780 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3781 noconfigdirs
="$noconfigdirs sim target-rda"
3783 i
[3456789]86-*-darwin*)
3784 noconfigdirs
="$noconfigdirs ld gprof"
3785 noconfigdirs
="$noconfigdirs sim target-rda"
3787 x86_64-
*-darwin[912]*)
3788 noconfigdirs
="$noconfigdirs ld gas gprof"
3789 noconfigdirs
="$noconfigdirs sim target-rda"
3792 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3793 noconfigdirs
="$noconfigdirs sim target-rda"
3798 if test "x$with_gmp" = x \
3799 && ! test -d ${srcdir}/gmp \
3800 && test -f /usr
/local
/include
/gmp.h
; then
3805 # Remove unsupported stuff on all kaOS configurations.
3806 noconfigdirs
="$noconfigdirs target-libgloss"
3813 noconfigdirs
="$noconfigdirs target-libgloss"
3816 noconfigdirs
="$noconfigdirs target-libgloss"
3818 # The tpf target doesn't support gdb yet.
3820 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3823 noconfigdirs
="$noconfigdirs target-rda"
3828 # ld works, but does not support shared libraries.
3829 # gas doesn't generate exception information.
3830 noconfigdirs
="$noconfigdirs gas ld"
3833 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3836 # newlib is not 64 bit ready
3837 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3840 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3842 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3843 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3846 noconfigdirs
="$noconfigdirs sim"
3849 noconfigdirs
="$noconfigdirs target-libgloss"
3852 noconfigdirs
="$noconfigdirs ld target-libgloss"
3855 if test x
${with_avrlibc} != xno
; then
3856 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3859 c4x-
*-* | tic4x-
*-*)
3860 noconfigdirs
="$noconfigdirs target-libgloss"
3863 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3866 noconfigdirs
="$noconfigdirs target-libgloss"
3869 noconfigdirs
="$noconfigdirs gdb"
3872 noconfigdirs
="$noconfigdirs gdb"
3875 noconfigdirs
="$noconfigdirs target-rda gprof"
3878 noconfigdirs
="$noconfigdirs"
3881 noconfigdirs
="$noconfigdirs target-libgloss"
3884 noconfigdirs
="$noconfigdirs target-libgloss"
3886 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3889 noconfigdirs
="$noconfigdirs gdb"
3892 noconfigdirs
="$noconfigdirs gdb ld"
3900 hppa
*-*-openbsd* | \
3906 noconfigdirs
="$noconfigdirs ld"
3909 noconfigdirs
="$noconfigdirs gdb"
3912 # No gdb support yet.
3913 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3916 # No ld support yet.
3917 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3920 # No ld support yet.
3921 noconfigdirs
="$noconfigdirs libgui itcl ld"
3923 i
[3456789]86-w64-mingw*)
3925 i
[3456789]86-*-mingw*)
3926 target_configdirs
="$target_configdirs target-winsup"
3929 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3930 noconfigdirs
="$noconfigdirs target-libgloss"
3931 # always build newlib if winsup directory is present.
3932 if test -d "$srcdir/winsup/cygwin"; then
3933 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3934 elif test -d "$srcdir/newlib"; then
3935 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3939 noconfigdirs
="$noconfigdirs target-libgloss"
3941 i
[3456789]86-*-sco3.2v5
*)
3942 # The linker does not yet know about weak symbols in COFF,
3943 # and is not configured to handle mixed ELF and COFF.
3944 noconfigdirs
="$noconfigdirs ld target-libgloss"
3946 i
[3456789]86-*-sco*)
3947 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3949 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3950 noconfigdirs
="$noconfigdirs target-libgloss"
3952 i
[3456789]86-*-sysv4*)
3953 noconfigdirs
="$noconfigdirs target-libgloss"
3955 i
[3456789]86-*-beos*)
3956 noconfigdirs
="$noconfigdirs gdb"
3958 i
[3456789]86-*-rdos*)
3959 noconfigdirs
="$noconfigdirs gdb"
3962 noconfigdirs
="$noconfigdirs gdb"
3965 noconfigdirs
="$noconfigdirs sim"
3968 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3969 noconfigdirs
="$noconfigdirs $target_libraries"
3972 noconfigdirs
="$noconfigdirs gdb gprof"
3975 # copied from rs6000-*-* entry
3976 noconfigdirs
="$noconfigdirs gprof"
3978 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3979 target_configdirs
="$target_configdirs target-winsup"
3980 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3981 # always build newlib.
3982 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3984 # This is temporary until we can link against shared libraries
3985 powerpcle-
*-solaris*)
3986 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3989 noconfigdirs
="$noconfigdirs gdb"
3992 noconfigdirs
="$noconfigdirs gprof"
3995 noconfigdirs
="$noconfigdirs gprof"
3998 noconfigdirs
="$noconfigdirs gprof"
4001 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
4004 noconfigdirs
="$noconfigdirs gprof"
4006 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
4007 if test x
$with_newlib = xyes
; then
4008 noconfigdirs
="$noconfigdirs gprof"
4012 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4015 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4018 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
4022 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
4023 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
4024 noconfigdirs
="$noconfigdirs ld gas gprof"
4027 noconfigdirs
="$noconfigdirs gprof"
4030 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4037 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4041 if test x
${is_cross_compiler} = xno
; then
4046 noconfigdirs
="$noconfigdirs sim"
4048 tilepro
*-*-* | tilegx
*-*-*)
4049 noconfigdirs
="$noconfigdirs sim"
4052 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4055 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4058 noconfigdirs
="$noconfigdirs ld"
4060 loongarch
*-*-linux*)
4063 noconfigdirs
="$noconfigdirs gprof"
4067 # If we aren't building newlib, then don't build libgloss, since libgloss
4068 # depends upon some newlib header files.
4069 case "${noconfigdirs}" in
4070 *target-libgloss
*) ;;
4071 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4074 # Work in distributions that contain no compiler tools, like Autoconf.
4075 host_makefile_frag
=/dev
/null
4076 if test -d ${srcdir}/config
; then
4078 i
[3456789]86-*-msdosdjgpp*)
4079 host_makefile_frag
="config/mh-djgpp"
4083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4084 $as_echo_n "checking to see if cat works as expected... " >&6; }
4085 echo a
>cygwin-cat-check
4086 if test `cat cygwin-cat-check` = a
; then
4088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4089 $as_echo "yes" >&6; }
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4093 $as_echo "no" >&6; }
4094 as_fn_error $?
"The cat command does not ignore carriage return characters.
4095 Please either mount the build directory in binary mode or run the following
4096 commands before running any configure script:
4102 host_makefile_frag
="config/mh-cygwin"
4105 host_makefile_frag
="config/mh-mingw"
4108 host_makefile_frag
="config/mh-alpha-linux"
4111 host_makefile_frag
="config/mh-pa"
4114 host_makefile_frag
="config/mh-pa"
4116 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4117 host_makefile_frag
="config/mh-darwin"
4120 host_makefile_frag
="config/mh-ppc-aix"
4123 host_makefile_frag
="config/mh-ppc-aix"
4128 if test "${build}" != "${host}" ; then
4129 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4130 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4131 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4132 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4133 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4134 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4135 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4136 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4137 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4138 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4139 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4140 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4141 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4142 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4143 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4145 AR_FOR_BUILD
="\$(AR)"
4146 AS_FOR_BUILD
="\$(AS)"
4147 CC_FOR_BUILD
="\$(CC)"
4148 CXX_FOR_BUILD
="\$(CXX)"
4149 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4150 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4151 GOC_FOR_BUILD
="\$(GOC)"
4152 GDC_FOR_BUILD
="\$(GDC)"
4153 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4154 LD_FOR_BUILD
="\$(LD)"
4155 NM_FOR_BUILD
="\$(NM)"
4156 RANLIB_FOR_BUILD
="\$(RANLIB)"
4157 WINDRES_FOR_BUILD
="\$(WINDRES)"
4158 WINDMC_FOR_BUILD
="\$(WINDMC)"
4162 ac_cpp
='$CPP $CPPFLAGS'
4163 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4164 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4165 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4166 if test -n "$ac_tool_prefix"; then
4167 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4168 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_prog_CC+:} false
; then :
4172 $as_echo_n "(cached) " >&6
4174 if test -n "$CC"; then
4175 ac_cv_prog_CC
="$CC" # Let the user override the test.
4177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4181 test -z "$as_dir" && as_dir
=.
4182 for ac_exec_ext
in '' $ac_executable_extensions; do
4183 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4184 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 if test -n "$CC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4197 $as_echo "$CC" >&6; }
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4205 if test -z "$ac_cv_prog_CC"; then
4207 # Extract the first word of "gcc", so it can be a program name with args.
4208 set dummy gcc
; ac_word
=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4212 $as_echo_n "(cached) " >&6
4214 if test -n "$ac_ct_CC"; then
4215 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4217 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4221 test -z "$as_dir" && as_dir
=.
4222 for ac_exec_ext
in '' $ac_executable_extensions; do
4223 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4224 ac_cv_prog_ac_ct_CC
="gcc"
4225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4234 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4235 if test -n "$ac_ct_CC"; then
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4237 $as_echo "$ac_ct_CC" >&6; }
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4240 $as_echo "no" >&6; }
4243 if test "x$ac_ct_CC" = x
; then
4246 case $cross_compiling:$ac_tool_warned in
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4249 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4250 ac_tool_warned
=yes ;;
4258 if test -z "$CC"; then
4259 if test -n "$ac_tool_prefix"; then
4260 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4261 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 $as_echo_n "checking for $ac_word... " >&6; }
4264 if ${ac_cv_prog_CC+:} false
; then :
4265 $as_echo_n "(cached) " >&6
4267 if test -n "$CC"; then
4268 ac_cv_prog_CC
="$CC" # Let the user override the test.
4270 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4274 test -z "$as_dir" && as_dir
=.
4275 for ac_exec_ext
in '' $ac_executable_extensions; do
4276 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4277 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4288 if test -n "$CC"; then
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4290 $as_echo "$CC" >&6; }
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4293 $as_echo "no" >&6; }
4299 if test -z "$CC"; then
4300 # Extract the first word of "cc", so it can be a program name with args.
4301 set dummy cc
; ac_word
=$2
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4303 $as_echo_n "checking for $ac_word... " >&6; }
4304 if ${ac_cv_prog_CC+:} false
; then :
4305 $as_echo_n "(cached) " >&6
4307 if test -n "$CC"; then
4308 ac_cv_prog_CC
="$CC" # Let the user override the test.
4311 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4315 test -z "$as_dir" && as_dir
=.
4316 for ac_exec_ext
in '' $ac_executable_extensions; do
4317 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4318 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4319 ac_prog_rejected
=yes
4323 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4330 if test $ac_prog_rejected = yes; then
4331 # We found a bogon in the path, so make sure we never use it.
4332 set dummy
$ac_cv_prog_CC
4334 if test $# != 0; then
4335 # We chose a different compiler from the bogus one.
4336 # However, it has the same basename, so the bogon will be chosen
4337 # first if we set CC to just the basename; use the full file name.
4339 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4345 if test -n "$CC"; then
4346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4347 $as_echo "$CC" >&6; }
4349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4350 $as_echo "no" >&6; }
4355 if test -z "$CC"; then
4356 if test -n "$ac_tool_prefix"; then
4357 for ac_prog
in cl.exe
4359 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4360 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4362 $as_echo_n "checking for $ac_word... " >&6; }
4363 if ${ac_cv_prog_CC+:} false
; then :
4364 $as_echo_n "(cached) " >&6
4366 if test -n "$CC"; then
4367 ac_cv_prog_CC
="$CC" # Let the user override the test.
4369 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4373 test -z "$as_dir" && as_dir
=.
4374 for ac_exec_ext
in '' $ac_executable_extensions; do
4375 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4376 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4377 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4387 if test -n "$CC"; then
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4389 $as_echo "$CC" >&6; }
4391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4392 $as_echo "no" >&6; }
4396 test -n "$CC" && break
4399 if test -z "$CC"; then
4401 for ac_prog
in cl.exe
4403 # Extract the first word of "$ac_prog", so it can be a program name with args.
4404 set dummy
$ac_prog; ac_word
=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4408 $as_echo_n "(cached) " >&6
4410 if test -n "$ac_ct_CC"; then
4411 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4413 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4417 test -z "$as_dir" && as_dir
=.
4418 for ac_exec_ext
in '' $ac_executable_extensions; do
4419 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4420 ac_cv_prog_ac_ct_CC
="$ac_prog"
4421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4430 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4431 if test -n "$ac_ct_CC"; then
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4433 $as_echo "$ac_ct_CC" >&6; }
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4436 $as_echo "no" >&6; }
4440 test -n "$ac_ct_CC" && break
4443 if test "x$ac_ct_CC" = x
; then
4446 case $cross_compiling:$ac_tool_warned in
4448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4450 ac_tool_warned
=yes ;;
4459 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4460 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4461 as_fn_error $?
"no acceptable C compiler found in \$PATH
4462 See \`config.log' for more details" "$LINENO" 5; }
4464 # Provide some information about the compiler.
4465 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4468 for ac_option
in --version -v -V -qversion; do
4469 { { ac_try
="$ac_compiler $ac_option >&5"
4471 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4472 *) ac_try_echo=$ac_try;;
4474 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4475 $as_echo "$ac_try_echo"; } >&5
4476 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4478 if test -s conftest.err; then
4480 ... rest of stderr output deleted ...
4481 10q' conftest.err >conftest.er1
4482 cat conftest.er1 >&5
4484 rm -f conftest.er1 conftest.err
4485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4486 test $ac_status = 0; }
4489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4490 /* end confdefs.h. */
4500 ac_clean_files_save=$ac_clean_files
4501 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4502 # Try to create an executable without -o first, disregard a.out.
4503 # It will help us diagnose broken compilers, and finding out an intuition
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4506 $as_echo_n "checking whether the C compiler works... " >&6; }
4507 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4509 # The possible output files:
4510 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4513 for ac_file in $ac_files
4516 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4517 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4522 if { { ac_try="$ac_link_default"
4524 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4525 *) ac_try_echo
=$ac_try;;
4527 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4528 $as_echo "$ac_try_echo"; } >&5
4529 (eval "$ac_link_default") 2>&5
4531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4532 test $ac_status = 0; }; then :
4533 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4534 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4535 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4536 # so that the user can short-circuit this test for compilers unknown to
4538 for ac_file
in $ac_files ''
4540 test -f "$ac_file" ||
continue
4542 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4545 # We found the default executable, but exeext='' is most
4549 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4551 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4553 # We set ac_cv_exeext here because the later test for it is not
4554 # safe: cross compilers may not add the suffix if given an `-o'
4555 # argument, so we may need to know it at that point already.
4556 # Even if this section looks crufty: it has the advantage of
4563 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4568 if test -z "$ac_file"; then :
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4570 $as_echo "no" >&6; }
4571 $as_echo "$as_me: failed program was:" >&5
4572 sed 's/^/| /' conftest.
$ac_ext >&5
4574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4575 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4576 as_fn_error
77 "C compiler cannot create executables
4577 See \`config.log' for more details" "$LINENO" 5; }
4579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4580 $as_echo "yes" >&6; }
4582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4583 $as_echo_n "checking for C compiler default output file name... " >&6; }
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4585 $as_echo "$ac_file" >&6; }
4586 ac_exeext
=$ac_cv_exeext
4588 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4589 ac_clean_files
=$ac_clean_files_save
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4591 $as_echo_n "checking for suffix of executables... " >&6; }
4592 if { { ac_try
="$ac_link"
4594 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4595 *) ac_try_echo=$ac_try;;
4597 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4598 $as_echo "$ac_try_echo"; } >&5
4599 (eval "$ac_link") 2>&5
4601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4602 test $ac_status = 0; }; then :
4603 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4604 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4605 # work properly (i.e., refer to `conftest.exe'), while it won't with
4607 for ac_file
in conftest.exe conftest conftest.
*; do
4608 test -f "$ac_file" ||
continue
4610 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4611 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4617 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4619 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4620 See \`config.log' for more details" "$LINENO" 5; }
4622 rm -f conftest conftest
$ac_cv_exeext
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4624 $as_echo "$ac_cv_exeext" >&6; }
4626 rm -f conftest.
$ac_ext
4627 EXEEXT
=$ac_cv_exeext
4629 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4630 /* end confdefs.h. */
4635 FILE *f = fopen ("conftest.out", "w");
4636 return ferror (f) || fclose (f) != 0;
4642 ac_clean_files
="$ac_clean_files conftest.out"
4643 # Check that the compiler produces executables we can run. If not, either
4644 # the compiler is broken, or we cross compile.
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4646 $as_echo_n "checking whether we are cross compiling... " >&6; }
4647 if test "$cross_compiling" != yes; then
4648 { { ac_try
="$ac_link"
4650 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4651 *) ac_try_echo=$ac_try;;
4653 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4654 $as_echo "$ac_try_echo"; } >&5
4655 (eval "$ac_link") 2>&5
4657 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4658 test $ac_status = 0; }
4659 if { ac_try='./conftest$ac_cv_exeext'
4660 { { case "(($ac_try" in
4661 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4662 *) ac_try_echo
=$ac_try;;
4664 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4665 $as_echo "$ac_try_echo"; } >&5
4666 (eval "$ac_try") 2>&5
4668 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4669 test $ac_status = 0; }; }; then
4672 if test "$cross_compiling" = maybe
; then
4675 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4676 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4677 as_fn_error $?
"cannot run C compiled programs.
4678 If you meant to cross compile, use \`--host'.
4679 See \`config.log' for more details" "$LINENO" 5; }
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4684 $as_echo "$cross_compiling" >&6; }
4686 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4687 ac_clean_files
=$ac_clean_files_save
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4689 $as_echo_n "checking for suffix of object files... " >&6; }
4690 if ${ac_cv_objext+:} false
; then :
4691 $as_echo_n "(cached) " >&6
4693 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4704 rm -f conftest.o conftest.obj
4705 if { { ac_try
="$ac_compile"
4707 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4708 *) ac_try_echo=$ac_try;;
4710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4711 $as_echo "$ac_try_echo"; } >&5
4712 (eval "$ac_compile") 2>&5
4714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4715 test $ac_status = 0; }; then :
4716 for ac_file in conftest.o conftest.obj conftest.*; do
4717 test -f "$ac_file" || continue;
4719 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4720 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4725 $as_echo "$as_me: failed program was:" >&5
4726 sed 's/^/| /' conftest.$ac_ext >&5
4728 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4729 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4730 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4731 See \
`config.log' for more details" "$LINENO" 5; }
4733 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4736 $as_echo "$ac_cv_objext" >&6; }
4737 OBJEXT=$ac_cv_objext
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4740 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4741 if ${ac_cv_c_compiler_gnu+:} false; then :
4742 $as_echo_n "(cached) " >&6
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4758 if ac_fn_c_try_compile "$LINENO"; then :
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4768 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4769 if test $ac_compiler_gnu = yes; then
4774 ac_test_CFLAGS=${CFLAGS+set}
4775 ac_save_CFLAGS=$CFLAGS
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4777 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4778 if ${ac_cv_prog_cc_g+:} false; then :
4779 $as_echo_n "(cached) " >&6
4781 ac_save_c_werror_flag=$ac_c_werror_flag
4782 ac_c_werror_flag=yes
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4796 if ac_fn_c_try_compile "$LINENO"; then :
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4811 if ac_fn_c_try_compile "$LINENO"; then :
4814 ac_c_werror_flag=$ac_save_c_werror_flag
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4827 if ac_fn_c_try_compile "$LINENO"; then :
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 ac_c_werror_flag=$ac_save_c_werror_flag
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4838 $as_echo "$ac_cv_prog_cc_g" >&6; }
4839 if test "$ac_test_CFLAGS" = set; then
4840 CFLAGS=$ac_save_CFLAGS
4841 elif test $ac_cv_prog_cc_g = yes; then
4842 if test "$GCC" = yes; then
4848 if test "$GCC" = yes; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4855 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4856 if ${ac_cv_prog_cc_c89+:} false; then :
4857 $as_echo_n "(cached) " >&6
4859 ac_cv_prog_cc_c89=no
4861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4862 /* end confdefs.h. */
4866 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4867 struct buf { int x; };
4868 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4869 static char *e (p, i)
4875 static char *f (char * (*g) (char **, int), char **p, ...)
4880 s = g (p, va_arg (v,int));
4885 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4886 function prototypes and stuff, but not '\xHH' hex character constants.
4887 These don't provoke an error unfortunately, instead are silently treated
4888 as 'x'. The following induces an error, until -std is added to get
4889 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4890 array size at least. It's necessary to write '\x00'==0 to get something
4891 that's true only with -std. */
4892 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4894 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4895 inside strings and character constants. */
4897 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4899 int test (int i, double x);
4900 struct s1 {int (*f) (int a);};
4901 struct s2 {int (*f) (double a);};
4902 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4908 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4913 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4914 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4916 CC="$ac_save_CC $ac_arg"
4917 if ac_fn_c_try_compile "$LINENO"; then :
4918 ac_cv_prog_cc_c89=$ac_arg
4920 rm -f core conftest.err conftest.$ac_objext
4921 test "x$ac_cv_prog_cc_c89" != "xno" && break
4923 rm -f conftest.$ac_ext
4928 case "x$ac_cv_prog_cc_c89" in
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4931 $as_echo "none needed" >&6; } ;;
4933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4934 $as_echo "unsupported" >&6; } ;;
4936 CC="$CC $ac_cv_prog_cc_c89"
4937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4938 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4940 if test "x$ac_cv_prog_cc_c89" != xno; then :
4945 ac_cpp='$CPP $CPPFLAGS'
4946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4951 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4952 if ${ac_cv_prog_cc_c99+:} false; then :
4953 $as_echo_n "(cached) " >&6
4955 ac_cv_prog_cc_c99=no
4957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4958 /* end confdefs.h. */
4960 #include <stdbool.h>
4965 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4966 #define debug(...) fprintf (stderr, __VA_ARGS__)
4967 #define showlist(...) puts (#__VA_ARGS__)
4968 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4970 test_varargs_macros (void)
4975 debug ("X = %d\n", x);
4976 showlist (The first, second, and third items.);
4977 report (x>y, "x is %d but y is %d", x, y);
4980 // Check long long types.
4981 #define BIG64 18446744073709551615ull
4982 #define BIG32 4294967295ul
4983 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4985 your preprocessor is broken;
4989 your preprocessor is broken;
4991 static long long int bignum = -9223372036854775807LL;
4992 static unsigned long long int ubignum = BIG64;
4994 struct incomplete_array
5002 const wchar_t *name;
5006 typedef const char *ccp;
5009 test_restrict (ccp restrict text)
5011 // See if C++-style comments work.
5012 // Iterate through items via the restricted pointer.
5013 // Also check for declarations in for loops.
5014 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5019 // Check varargs and va_copy.
5021 test_varargs (const char *format, ...)
5024 va_start (args, format);
5026 va_copy (args_copy, args);
5037 str = va_arg (args_copy, const char *);
5040 number = va_arg (args_copy, int);
5043 fnumber = va_arg (args_copy, double);
5058 _Bool success = false;
5061 if (test_restrict ("String literal") == 0)
5063 char *restrict newvar = "Another string";
5066 test_varargs ("s, d' f .", "string", 65, 34.234);
5067 test_varargs_macros ();
5069 // Check flexible array members.
5070 struct incomplete_array *ia =
5071 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5073 for (int i = 0; i < ia->datasize; ++i)
5074 ia->data[i] = i * 1.234;
5076 // Check named initializers.
5077 struct named_init ni = {
5079 .name = L"Test wide string",
5080 .average = 543.34343,
5085 int dynamic_array[ni.number];
5086 dynamic_array[ni.number - 1] = 543;
5088 // work around unused variable warnings
5089 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5090 || dynamic_array[ni.number - 1] != 543);
5096 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5098 CC="$ac_save_CC $ac_arg"
5099 if ac_fn_c_try_compile "$LINENO"; then :
5100 ac_cv_prog_cc_c99=$ac_arg
5102 rm -f core conftest.err conftest.$ac_objext
5103 test "x$ac_cv_prog_cc_c99" != "xno" && break
5105 rm -f conftest.$ac_ext
5110 case "x$ac_cv_prog_cc_c99" in
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5113 $as_echo "none needed" >&6; } ;;
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5116 $as_echo "unsupported" >&6; } ;;
5118 CC="$CC $ac_cv_prog_cc_c99"
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5120 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5122 if test "x$ac_cv_prog_cc_c99" != xno; then :
5128 ac_cpp='$CXXCPP $CPPFLAGS'
5129 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5132 if test -z "$CXX"; then
5133 if test -n "$CCC"; then
5136 if test -n "$ac_tool_prefix"; then
5137 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5139 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5140 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5142 $as_echo_n "checking for $ac_word... " >&6; }
5143 if ${ac_cv_prog_CXX+:} false; then :
5144 $as_echo_n "(cached) " >&6
5146 if test -n "$CXX"; then
5147 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5153 test -z "$as_dir" && as_dir=.
5154 for ac_exec_ext in '' $ac_executable_extensions; do
5155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5156 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 if test -n "$CXX"; then
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5169 $as_echo "$CXX" >&6; }
5171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5172 $as_echo "no" >&6; }
5176 test -n "$CXX" && break
5179 if test -z "$CXX"; then
5181 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5183 # Extract the first word of "$ac_prog", so it can be a program name with args.
5184 set dummy $ac_prog; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5188 $as_echo_n "(cached) " >&6
5190 if test -n "$ac_ct_CXX"; then
5191 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_ac_ct_CXX="$ac_prog"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5210 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5211 if test -n "$ac_ct_CXX"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5213 $as_echo "$ac_ct_CXX" >&6; }
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5220 test -n "$ac_ct_CXX" && break
5223 if test "x$ac_ct_CXX" = x; then
5226 case $cross_compiling:$ac_tool_warned in
5228 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5229 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5230 ac_tool_warned=yes ;;
5238 # Provide some information about the compiler.
5239 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5242 for ac_option in --version -v -V -qversion; do
5243 { { ac_try="$ac_compiler $ac_option >&5"
5245 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5246 *) ac_try_echo
=$ac_try;;
5248 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5249 $as_echo "$ac_try_echo"; } >&5
5250 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5252 if test -s conftest.err
; then
5254 ... rest of stderr output deleted ...
5255 10q' conftest.err
>conftest.er1
5256 cat conftest.er1
>&5
5258 rm -f conftest.er1 conftest.err
5259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5260 test $ac_status = 0; }
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5264 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5265 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5266 $as_echo_n "(cached) " >&6
5268 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5269 /* end confdefs.h. */
5282 if ac_fn_cxx_try_compile
"$LINENO"; then :
5287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5288 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5292 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5293 if test $ac_compiler_gnu = yes; then
5298 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5299 ac_save_CXXFLAGS
=$CXXFLAGS
5300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5301 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5302 if ${ac_cv_prog_cxx_g+:} false
; then :
5303 $as_echo_n "(cached) " >&6
5305 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5306 ac_cxx_werror_flag
=yes
5309 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5320 if ac_fn_cxx_try_compile
"$LINENO"; then :
5321 ac_cv_prog_cxx_g
=yes
5324 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5325 /* end confdefs.h. */
5335 if ac_fn_cxx_try_compile
"$LINENO"; then :
5338 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5341 /* end confdefs.h. */
5351 if ac_fn_cxx_try_compile
"$LINENO"; then :
5352 ac_cv_prog_cxx_g
=yes
5354 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5358 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5359 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5362 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5363 if test "$ac_test_CXXFLAGS" = set; then
5364 CXXFLAGS
=$ac_save_CXXFLAGS
5365 elif test $ac_cv_prog_cxx_g = yes; then
5366 if test "$GXX" = yes; then
5372 if test "$GXX" = yes; then
5379 ac_cpp
='$CPP $CPPFLAGS'
5380 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5381 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5382 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5385 # We must set the default linker to the linker used by gcc for the correct
5386 # operation of libtool. If LD is not defined and we are using gcc, try to
5387 # set the LD default to the ld used by gcc.
5388 if test -z "$LD"; then
5389 if test "$GCC" = yes; then
5392 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5394 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5396 case $gcc_prog_ld in
5397 # Accept absolute paths.
5398 [\\/]* |
[A-Za-z
]:[\\/]*)
5399 LD
="$gcc_prog_ld" ;;
5404 # Check whether -static-libstdc++ -static-libgcc is supported.
5406 if test "$GCC" = yes; then
5407 saved_LDFLAGS
="$LDFLAGS"
5409 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5411 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5413 ac_cpp
='$CXXCPP $CPPFLAGS'
5414 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5419 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5420 /* end confdefs.h. */
5422 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5423 #error -static-libstdc++ not implemented
5427 if ac_fn_cxx_try_link
"$LINENO"; then :
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5429 $as_echo "yes" >&6; }; have_static_libs
=yes
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5432 $as_echo "no" >&6; }
5434 rm -f core conftest.err conftest.
$ac_objext \
5435 conftest
$ac_exeext conftest.
$ac_ext
5437 ac_cpp
='$CPP $CPPFLAGS'
5438 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5439 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5440 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5443 LDFLAGS
="$saved_LDFLAGS"
5449 if test -n "$ac_tool_prefix"; then
5450 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5451 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_prog_GNATBIND+:} false
; then :
5455 $as_echo_n "(cached) " >&6
5457 if test -n "$GNATBIND"; then
5458 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5464 test -z "$as_dir" && as_dir
=.
5465 for ac_exec_ext
in '' $ac_executable_extensions; do
5466 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5467 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 GNATBIND
=$ac_cv_prog_GNATBIND
5478 if test -n "$GNATBIND"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5480 $as_echo "$GNATBIND" >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5488 if test -z "$ac_cv_prog_GNATBIND"; then
5489 ac_ct_GNATBIND
=$GNATBIND
5490 # Extract the first word of "gnatbind", so it can be a program name with args.
5491 set dummy gnatbind
; ac_word
=$2
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5493 $as_echo_n "checking for $ac_word... " >&6; }
5494 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5495 $as_echo_n "(cached) " >&6
5497 if test -n "$ac_ct_GNATBIND"; then
5498 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5500 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5504 test -z "$as_dir" && as_dir
=.
5505 for ac_exec_ext
in '' $ac_executable_extensions; do
5506 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5507 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5517 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5518 if test -n "$ac_ct_GNATBIND"; then
5519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5520 $as_echo "$ac_ct_GNATBIND" >&6; }
5522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5523 $as_echo "no" >&6; }
5526 if test "x$ac_ct_GNATBIND" = x
; then
5529 case $cross_compiling:$ac_tool_warned in
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5532 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5533 ac_tool_warned
=yes ;;
5535 GNATBIND
=$ac_ct_GNATBIND
5538 GNATBIND
="$ac_cv_prog_GNATBIND"
5541 if test -n "$ac_tool_prefix"; then
5542 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5543 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5547 $as_echo_n "(cached) " >&6
5549 if test -n "$GNATMAKE"; then
5550 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5556 test -z "$as_dir" && as_dir
=.
5557 for ac_exec_ext
in '' $ac_executable_extensions; do
5558 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5559 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 GNATMAKE
=$ac_cv_prog_GNATMAKE
5570 if test -n "$GNATMAKE"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5572 $as_echo "$GNATMAKE" >&6; }
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5580 if test -z "$ac_cv_prog_GNATMAKE"; then
5581 ac_ct_GNATMAKE
=$GNATMAKE
5582 # Extract the first word of "gnatmake", so it can be a program name with args.
5583 set dummy gnatmake
; ac_word
=$2
5584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5585 $as_echo_n "checking for $ac_word... " >&6; }
5586 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5587 $as_echo_n "(cached) " >&6
5589 if test -n "$ac_ct_GNATMAKE"; then
5590 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5596 test -z "$as_dir" && as_dir
=.
5597 for ac_exec_ext
in '' $ac_executable_extensions; do
5598 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5599 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5609 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5610 if test -n "$ac_ct_GNATMAKE"; then
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5612 $as_echo "$ac_ct_GNATMAKE" >&6; }
5614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5615 $as_echo "no" >&6; }
5618 if test "x$ac_ct_GNATMAKE" = x
; then
5621 case $cross_compiling:$ac_tool_warned in
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5625 ac_tool_warned
=yes ;;
5627 GNATMAKE
=$ac_ct_GNATMAKE
5630 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5634 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5635 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5636 $as_echo_n "(cached) " >&6
5638 cat >conftest.adb
<<EOF
5639 pragma Warnings (Off);
5641 pragma Warnings (On);
5642 use type System.CRTL.int64;
5643 procedure conftest is begin null; end conftest;
5645 acx_cv_cc_gcc_supports_ada
=no
5646 # There is a bug in old released versions of GCC which causes the
5647 # driver to exit successfully when the appropriate language module
5648 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5649 # Therefore we must check for the error message as well as an
5650 # unsuccessful exit.
5651 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5652 # given a .adb file, but produce no object file. So we must check
5653 # if an object file was really produced to guard against this.
5654 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5655 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5656 acx_cv_cc_gcc_supports_ada
=yes
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5661 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5663 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5671 if test -n "$ac_tool_prefix"; then
5672 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5673 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5675 $as_echo_n "checking for $ac_word... " >&6; }
5676 if ${ac_cv_prog_GDC+:} false
; then :
5677 $as_echo_n "(cached) " >&6
5679 if test -n "$GDC"; then
5680 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5686 test -z "$as_dir" && as_dir
=.
5687 for ac_exec_ext
in '' $ac_executable_extensions; do
5688 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5689 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5700 if test -n "$GDC"; then
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5702 $as_echo "$GDC" >&6; }
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5705 $as_echo "no" >&6; }
5710 if test -z "$ac_cv_prog_GDC"; then
5712 # Extract the first word of "gdc", so it can be a program name with args.
5713 set dummy gdc
; ac_word
=$2
5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5715 $as_echo_n "checking for $ac_word... " >&6; }
5716 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5717 $as_echo_n "(cached) " >&6
5719 if test -n "$ac_ct_GDC"; then
5720 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5726 test -z "$as_dir" && as_dir
=.
5727 for ac_exec_ext
in '' $ac_executable_extensions; do
5728 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5729 ac_cv_prog_ac_ct_GDC
="gdc"
5730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5739 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5740 if test -n "$ac_ct_GDC"; then
5741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5742 $as_echo "$ac_ct_GDC" >&6; }
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5745 $as_echo "no" >&6; }
5748 if test "x$ac_ct_GDC" = x
; then
5751 case $cross_compiling:$ac_tool_warned in
5753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5754 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5755 ac_tool_warned
=yes ;;
5760 GDC
="$ac_cv_prog_GDC"
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5764 $as_echo_n "checking whether the D compiler works... " >&6; }
5765 if ${acx_cv_d_compiler_works+:} false
; then :
5766 $as_echo_n "(cached) " >&6
5768 cat >conftest.d
<<EOF
5769 module conftest; int main() { return 0; }
5771 acx_cv_d_compiler_works
=no
5772 if test "x$GDC" != xno
; then
5773 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5774 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5775 acx_cv_d_compiler_works
=yes
5780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5781 $as_echo "$acx_cv_d_compiler_works" >&6; }
5782 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5789 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5790 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5791 $as_echo_n "(cached) " >&6
5795 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5796 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5797 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5800 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5803 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5804 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5807 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5814 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5815 do_compare
="$gcc_cv_prog_cmp_skip"
5819 # Check whether --enable-bootstrap was given.
5820 if test "${enable_bootstrap+set}" = set; then :
5821 enableval
=$enable_bootstrap;
5823 enable_bootstrap
=default
5827 # Issue errors and warnings for invalid/strange bootstrap combinations.
5828 if test -r $srcdir/gcc
/configure
; then
5834 case "$have_compiler:$host:$target:$enable_bootstrap" in
5837 # Default behavior. Enable bootstrap if we have a compiler
5838 # and we are in a native configuration.
5839 yes:$build:$build:default
)
5840 enable_bootstrap
=yes ;;
5843 enable_bootstrap
=no
;;
5845 # We have a compiler and we are in a native configuration, bootstrap is ok
5846 yes:$build:$build:yes)
5849 # Other configurations, but we have a compiler. Assume the user knows
5852 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5853 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5856 # No compiler: if they passed --enable-bootstrap explicitly, fail
5858 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5860 # Fail if wrong command line
5862 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5866 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5867 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5868 # require C++11 (or higher).
5869 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5870 CXX
="$CXX -std=c++11"
5871 elif test "$have_compiler" = yes; then
5872 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5874 ac_cpp
='$CXXCPP $CPPFLAGS'
5875 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5876 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5877 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5881 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5882 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5883 $as_echo_n "(cached) " >&6
5885 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5886 /* end confdefs.h. */
5889 // If the compiler admits that it is not ready for C++11, why torture it?
5890 // Hopefully, this will speed up the test.
5894 #error "This is not a C++ compiler"
5896 #elif __cplusplus < 201103L
5898 #error "This is not a C++11 compiler"
5905 namespace test_static_assert
5908 template <typename T>
5911 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5916 namespace test_final_override
5925 struct Derived : public Base
5927 virtual ~Derived() override {}
5928 virtual void f() override {}
5933 namespace test_double_right_angle_brackets
5936 template < typename T >
5939 typedef check<void> single_type;
5940 typedef check<check<void>> double_type;
5941 typedef check<check<check<void>>> triple_type;
5942 typedef check<check<check<check<void>>>> quadruple_type;
5946 namespace test_decltype
5959 namespace test_type_deduction
5962 template < typename T1, typename T2 >
5965 static const bool value = false;
5968 template < typename T >
5969 struct is_same<T, T>
5971 static const bool value = true;
5974 template < typename T1, typename T2 >
5976 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5982 test(const int c, volatile int v)
5984 static_assert(is_same<int, decltype(0)>::value == true, "");
5985 static_assert(is_same<int, decltype(c)>::value == false, "");
5986 static_assert(is_same<int, decltype(v)>::value == false, "");
5989 auto sumi = ac + av + 'x';
5990 auto sumf = ac + av + 1.0;
5991 static_assert(is_same<int, decltype(ac)>::value == true, "");
5992 static_assert(is_same<int, decltype(av)>::value == true, "");
5993 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5994 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5995 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5996 return (sumf > 0.0) ? sumi : add(c, v);
6001 namespace test_noexcept
6004 int f() { return 0; }
6005 int g() noexcept { return 0; }
6007 static_assert(noexcept(f()) == false, "");
6008 static_assert(noexcept(g()) == true, "");
6012 namespace test_constexpr
6015 template < typename CharT >
6016 unsigned long constexpr
6017 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6019 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6022 template < typename CharT >
6023 unsigned long constexpr
6024 strlen_c(const CharT *const s) noexcept
6026 return strlen_c_r(s, 0UL);
6029 static_assert(strlen_c("") == 0UL, "");
6030 static_assert(strlen_c("1") == 1UL, "");
6031 static_assert(strlen_c("example") == 7UL, "");
6032 static_assert(strlen_c("another\0example") == 7UL, "");
6036 namespace test_rvalue_references
6042 static constexpr int value = N;
6045 answer<1> f(int&) { return answer<1>(); }
6046 answer<2> f(const int&) { return answer<2>(); }
6047 answer<3> f(int&&) { return answer<3>(); }
6054 static_assert(decltype(f(i))::value == 1, "");
6055 static_assert(decltype(f(c))::value == 2, "");
6056 static_assert(decltype(f(0))::value == 3, "");
6061 namespace test_uniform_initialization
6066 static const int zero {};
6067 static const int one {1};
6070 static_assert(test::zero == 0, "");
6071 static_assert(test::one == 1, "");
6075 namespace test_lambdas
6081 auto lambda1 = [](){};
6082 auto lambda2 = lambda1;
6090 auto a = [](int i, int j){ return i + j; }(1, 2);
6091 auto b = []() -> int { return '0'; }();
6092 auto c = [=](){ return a + b; }();
6093 auto d = [&](){ return c; }();
6094 auto e = [a, &b](int x) mutable {
6095 const auto identity = [](int y){ return y; };
6096 for (auto i = 0; i < a; ++i)
6098 return x + identity(a + b);
6100 return a + b + c + d + e;
6106 const auto nullary = [](){ return 0; };
6107 const auto unary = [](int x){ return x; };
6108 using nullary_t = decltype(nullary);
6109 using unary_t = decltype(unary);
6110 const auto higher1st = [](nullary_t f){ return f(); };
6111 const auto higher2nd = [unary](nullary_t f1){
6112 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6114 return higher1st(nullary) + higher2nd(nullary)(unary);
6119 namespace test_variadic_templates
6125 template <int N0, int... N1toN>
6126 struct sum<N0, N1toN...>
6128 static constexpr auto value = N0 + sum<N1toN...>::value;
6134 static constexpr auto value = 0;
6137 static_assert(sum<>::value == 0, "");
6138 static_assert(sum<1>::value == 1, "");
6139 static_assert(sum<23>::value == 23, "");
6140 static_assert(sum<1, 2>::value == 3, "");
6141 static_assert(sum<5, 5, 11>::value == 21, "");
6142 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6146 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6147 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6149 namespace test_template_alias_sfinae
6154 template<typename T>
6155 using member = typename T::member_type;
6157 template<typename T>
6160 template<typename T>
6161 void func(member<T>*) {}
6165 void test() { func<foo>(0); }
6169 } // namespace cxx11
6171 #endif // __cplusplus >= 201103L
6176 if ac_fn_cxx_try_compile
"$LINENO"; then :
6177 ax_cv_cxx_compile_cxx11
=yes
6179 ax_cv_cxx_compile_cxx11
=no
6181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6184 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6185 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6189 if test x
$ac_success = xno
; then
6190 for alternative
in ${ax_cxx_compile_alternatives}; do
6191 switch
="-std=gnu++${alternative}"
6192 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6194 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6195 if eval \
${$cachevar+:} false
; then :
6196 $as_echo_n "(cached) " >&6
6200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6204 // If the compiler admits that it is not ready for C++11, why torture it?
6205 // Hopefully, this will speed up the test.
6209 #error "This is not a C++ compiler"
6211 #elif __cplusplus < 201103L
6213 #error "This is not a C++11 compiler"
6220 namespace test_static_assert
6223 template <typename T>
6226 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6231 namespace test_final_override
6240 struct Derived : public Base
6242 virtual ~Derived() override {}
6243 virtual void f() override {}
6248 namespace test_double_right_angle_brackets
6251 template < typename T >
6254 typedef check<void> single_type;
6255 typedef check<check<void>> double_type;
6256 typedef check<check<check<void>>> triple_type;
6257 typedef check<check<check<check<void>>>> quadruple_type;
6261 namespace test_decltype
6274 namespace test_type_deduction
6277 template < typename T1, typename T2 >
6280 static const bool value = false;
6283 template < typename T >
6284 struct is_same<T, T>
6286 static const bool value = true;
6289 template < typename T1, typename T2 >
6291 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6297 test(const int c, volatile int v)
6299 static_assert(is_same<int, decltype(0)>::value == true, "");
6300 static_assert(is_same<int, decltype(c)>::value == false, "");
6301 static_assert(is_same<int, decltype(v)>::value == false, "");
6304 auto sumi = ac + av + 'x';
6305 auto sumf = ac + av + 1.0;
6306 static_assert(is_same<int, decltype(ac)>::value == true, "");
6307 static_assert(is_same<int, decltype(av)>::value == true, "");
6308 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6309 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6310 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6311 return (sumf > 0.0) ? sumi : add(c, v);
6316 namespace test_noexcept
6319 int f() { return 0; }
6320 int g() noexcept { return 0; }
6322 static_assert(noexcept(f()) == false, "");
6323 static_assert(noexcept(g()) == true, "");
6327 namespace test_constexpr
6330 template < typename CharT >
6331 unsigned long constexpr
6332 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6334 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6337 template < typename CharT >
6338 unsigned long constexpr
6339 strlen_c(const CharT *const s) noexcept
6341 return strlen_c_r(s, 0UL);
6344 static_assert(strlen_c("") == 0UL, "");
6345 static_assert(strlen_c("1") == 1UL, "");
6346 static_assert(strlen_c("example") == 7UL, "");
6347 static_assert(strlen_c("another\0example") == 7UL, "");
6351 namespace test_rvalue_references
6357 static constexpr int value = N;
6360 answer<1> f(int&) { return answer<1>(); }
6361 answer<2> f(const int&) { return answer<2>(); }
6362 answer<3> f(int&&) { return answer<3>(); }
6369 static_assert(decltype(f(i))::value == 1, "");
6370 static_assert(decltype(f(c))::value == 2, "");
6371 static_assert(decltype(f(0))::value == 3, "");
6376 namespace test_uniform_initialization
6381 static const int zero {};
6382 static const int one {1};
6385 static_assert(test::zero == 0, "");
6386 static_assert(test::one == 1, "");
6390 namespace test_lambdas
6396 auto lambda1 = [](){};
6397 auto lambda2 = lambda1;
6405 auto a = [](int i, int j){ return i + j; }(1, 2);
6406 auto b = []() -> int { return '0'; }();
6407 auto c = [=](){ return a + b; }();
6408 auto d = [&](){ return c; }();
6409 auto e = [a, &b](int x) mutable {
6410 const auto identity = [](int y){ return y; };
6411 for (auto i = 0; i < a; ++i)
6413 return x + identity(a + b);
6415 return a + b + c + d + e;
6421 const auto nullary = [](){ return 0; };
6422 const auto unary = [](int x){ return x; };
6423 using nullary_t = decltype(nullary);
6424 using unary_t = decltype(unary);
6425 const auto higher1st = [](nullary_t f){ return f(); };
6426 const auto higher2nd = [unary](nullary_t f1){
6427 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6429 return higher1st(nullary) + higher2nd(nullary)(unary);
6434 namespace test_variadic_templates
6440 template <int N0, int... N1toN>
6441 struct sum<N0, N1toN...>
6443 static constexpr auto value = N0 + sum<N1toN...>::value;
6449 static constexpr auto value = 0;
6452 static_assert(sum<>::value == 0, "");
6453 static_assert(sum<1>::value == 1, "");
6454 static_assert(sum<23>::value == 23, "");
6455 static_assert(sum<1, 2>::value == 3, "");
6456 static_assert(sum<5, 5, 11>::value == 21, "");
6457 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6461 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6462 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6464 namespace test_template_alias_sfinae
6469 template<typename T>
6470 using member = typename T::member_type;
6472 template<typename T>
6475 template<typename T>
6476 void func(member<T>*) {}
6480 void test() { func<foo>(0); }
6484 } // namespace cxx11
6486 #endif // __cplusplus >= 201103L
6491 if ac_fn_cxx_try_compile
"$LINENO"; then :
6496 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6499 eval ac_res
=\$
$cachevar
6500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6501 $as_echo "$ac_res" >&6; }
6502 if eval test x\$
$cachevar = xyes
; then
6504 if test -n "$CXXCPP" ; then
6505 CXXCPP
="$CXXCPP $switch"
6513 if test x
$ac_success = xno
; then
6514 for alternative
in ${ax_cxx_compile_alternatives}; do
6515 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6516 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6518 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6519 if eval \${$cachevar+:} false; then :
6520 $as_echo_n "(cached
) " >&6
6524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6525 /* end confdefs.h. */
6528 // If the compiler admits that it is not ready for C++11, why torture it?
6529 // Hopefully, this will speed up the test.
6533 #error "This is not a C
++ compiler
"
6535 #elif __cplusplus < 201103L
6537 #error "This is not a C
++11 compiler
"
6544 namespace test_static_assert
6547 template <typename T>
6550 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6555 namespace test_final_override
6564 struct Derived : public Base
6566 virtual ~Derived() override {}
6567 virtual void f() override {}
6572 namespace test_double_right_angle_brackets
6575 template < typename T >
6578 typedef check<void> single_type;
6579 typedef check<check<void>> double_type;
6580 typedef check<check<check<void>>> triple_type;
6581 typedef check<check<check<check<void>>>> quadruple_type;
6585 namespace test_decltype
6598 namespace test_type_deduction
6601 template < typename T1, typename T2 >
6604 static const bool value = false;
6607 template < typename T >
6608 struct is_same<T, T>
6610 static const bool value = true;
6613 template < typename T1, typename T2 >
6615 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6621 test(const int c, volatile int v)
6623 static_assert(is_same<int, decltype(0)>::value == true, "");
6624 static_assert(is_same<int, decltype(c)>::value == false, "");
6625 static_assert(is_same<int, decltype(v)>::value == false, "");
6628 auto sumi = ac + av + 'x';
6629 auto sumf = ac + av + 1.0;
6630 static_assert(is_same<int, decltype(ac)>::value == true, "");
6631 static_assert(is_same<int, decltype(av)>::value == true, "");
6632 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6633 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6634 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6635 return (sumf > 0.0) ? sumi : add(c, v);
6640 namespace test_noexcept
6643 int f() { return 0; }
6644 int g() noexcept { return 0; }
6646 static_assert(noexcept(f()) == false, "");
6647 static_assert(noexcept(g()) == true, "");
6651 namespace test_constexpr
6654 template < typename CharT >
6655 unsigned long constexpr
6656 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6658 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6661 template < typename CharT >
6662 unsigned long constexpr
6663 strlen_c(const CharT *const s) noexcept
6665 return strlen_c_r(s, 0UL);
6668 static_assert(strlen_c("") == 0UL, "");
6669 static_assert(strlen_c("1") == 1UL, "");
6670 static_assert(strlen_c("example
") == 7UL, "");
6671 static_assert(strlen_c("another\
0example
") == 7UL, "");
6675 namespace test_rvalue_references
6681 static constexpr int value = N;
6684 answer<1> f(int&) { return answer<1>(); }
6685 answer<2> f(const int&) { return answer<2>(); }
6686 answer<3> f(int&&) { return answer<3>(); }
6693 static_assert(decltype(f(i))::value == 1, "");
6694 static_assert(decltype(f(c))::value == 2, "");
6695 static_assert(decltype(f(0))::value == 3, "");
6700 namespace test_uniform_initialization
6705 static const int zero {};
6706 static const int one {1};
6709 static_assert(test::zero == 0, "");
6710 static_assert(test::one == 1, "");
6714 namespace test_lambdas
6720 auto lambda1 = [](){};
6721 auto lambda2 = lambda1;
6729 auto a = [](int i, int j){ return i + j; }(1, 2);
6730 auto b = []() -> int { return '0'; }();
6731 auto c = [=](){ return a + b; }();
6732 auto d = [&](){ return c; }();
6733 auto e = [a, &b](int x) mutable {
6734 const auto identity = [](int y){ return y; };
6735 for (auto i = 0; i < a; ++i)
6737 return x + identity(a + b);
6739 return a + b + c + d + e;
6745 const auto nullary = [](){ return 0; };
6746 const auto unary = [](int x){ return x; };
6747 using nullary_t = decltype(nullary);
6748 using unary_t = decltype(unary);
6749 const auto higher1st = [](nullary_t f){ return f(); };
6750 const auto higher2nd = [unary](nullary_t f1){
6751 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6753 return higher1st(nullary) + higher2nd(nullary)(unary);
6758 namespace test_variadic_templates
6764 template <int N0, int... N1toN>
6765 struct sum<N0, N1toN...>
6767 static constexpr auto value = N0 + sum<N1toN...>::value;
6773 static constexpr auto value = 0;
6776 static_assert(sum<>::value == 0, "");
6777 static_assert(sum<1>::value == 1, "");
6778 static_assert(sum<23>::value == 23, "");
6779 static_assert(sum<1, 2>::value == 3, "");
6780 static_assert(sum<5, 5, 11>::value == 21, "");
6781 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6785 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6786 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6788 namespace test_template_alias_sfinae
6793 template<typename T>
6794 using member = typename T::member_type;
6796 template<typename T>
6799 template<typename T>
6800 void func(member<T>*) {}
6804 void test() { func<foo>(0); }
6808 } // namespace cxx11
6810 #endif // __cplusplus >= 201103L
6815 if ac_fn_cxx_try_compile "$LINENO"; then :
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6823 eval ac_res=\$$cachevar
6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6825 $as_echo "$ac_res" >&6; }
6826 if eval test x\$$cachevar = xyes; then
6828 if test -n "$CXXCPP" ; then
6829 CXXCPP="$CXXCPP $switch"
6835 if test x$ac_success = xyes; then
6842 ac_cpp='$CPP $CPPFLAGS'
6843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6847 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6848 if test x$ac_success = xno; then
6849 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6852 if test x$ac_success = xno; then
6854 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6855 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6859 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6865 if test "${build}" != "${host}"; then
6866 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6868 ac_cpp
='$CXXCPP $CPPFLAGS'
6869 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6870 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6871 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6873 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6874 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6875 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6876 CXX
="$CXX_FOR_BUILD"
6877 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6878 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6880 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6881 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6882 $as_echo_n "(cached) " >&6
6884 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6885 /* end confdefs.h. */
6888 // If the compiler admits that it is not ready for C++11, why torture it?
6889 // Hopefully, this will speed up the test.
6893 #error "This is not a C++ compiler"
6895 #elif __cplusplus < 201103L
6897 #error "This is not a C++11 compiler"
6904 namespace test_static_assert
6907 template <typename T>
6910 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6915 namespace test_final_override
6924 struct Derived : public Base
6926 virtual ~Derived() override {}
6927 virtual void f() override {}
6932 namespace test_double_right_angle_brackets
6935 template < typename T >
6938 typedef check<void> single_type;
6939 typedef check<check<void>> double_type;
6940 typedef check<check<check<void>>> triple_type;
6941 typedef check<check<check<check<void>>>> quadruple_type;
6945 namespace test_decltype
6958 namespace test_type_deduction
6961 template < typename T1, typename T2 >
6964 static const bool value = false;
6967 template < typename T >
6968 struct is_same<T, T>
6970 static const bool value = true;
6973 template < typename T1, typename T2 >
6975 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6981 test(const int c, volatile int v)
6983 static_assert(is_same<int, decltype(0)>::value == true, "");
6984 static_assert(is_same<int, decltype(c)>::value == false, "");
6985 static_assert(is_same<int, decltype(v)>::value == false, "");
6988 auto sumi = ac + av + 'x';
6989 auto sumf = ac + av + 1.0;
6990 static_assert(is_same<int, decltype(ac)>::value == true, "");
6991 static_assert(is_same<int, decltype(av)>::value == true, "");
6992 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6993 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6994 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6995 return (sumf > 0.0) ? sumi : add(c, v);
7000 namespace test_noexcept
7003 int f() { return 0; }
7004 int g() noexcept { return 0; }
7006 static_assert(noexcept(f()) == false, "");
7007 static_assert(noexcept(g()) == true, "");
7011 namespace test_constexpr
7014 template < typename CharT >
7015 unsigned long constexpr
7016 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7018 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7021 template < typename CharT >
7022 unsigned long constexpr
7023 strlen_c(const CharT *const s) noexcept
7025 return strlen_c_r(s, 0UL);
7028 static_assert(strlen_c("") == 0UL, "");
7029 static_assert(strlen_c("1") == 1UL, "");
7030 static_assert(strlen_c("example") == 7UL, "");
7031 static_assert(strlen_c("another\0example") == 7UL, "");
7035 namespace test_rvalue_references
7041 static constexpr int value = N;
7044 answer<1> f(int&) { return answer<1>(); }
7045 answer<2> f(const int&) { return answer<2>(); }
7046 answer<3> f(int&&) { return answer<3>(); }
7053 static_assert(decltype(f(i))::value == 1, "");
7054 static_assert(decltype(f(c))::value == 2, "");
7055 static_assert(decltype(f(0))::value == 3, "");
7060 namespace test_uniform_initialization
7065 static const int zero {};
7066 static const int one {1};
7069 static_assert(test::zero == 0, "");
7070 static_assert(test::one == 1, "");
7074 namespace test_lambdas
7080 auto lambda1 = [](){};
7081 auto lambda2 = lambda1;
7089 auto a = [](int i, int j){ return i + j; }(1, 2);
7090 auto b = []() -> int { return '0'; }();
7091 auto c = [=](){ return a + b; }();
7092 auto d = [&](){ return c; }();
7093 auto e = [a, &b](int x) mutable {
7094 const auto identity = [](int y){ return y; };
7095 for (auto i = 0; i < a; ++i)
7097 return x + identity(a + b);
7099 return a + b + c + d + e;
7105 const auto nullary = [](){ return 0; };
7106 const auto unary = [](int x){ return x; };
7107 using nullary_t = decltype(nullary);
7108 using unary_t = decltype(unary);
7109 const auto higher1st = [](nullary_t f){ return f(); };
7110 const auto higher2nd = [unary](nullary_t f1){
7111 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7113 return higher1st(nullary) + higher2nd(nullary)(unary);
7118 namespace test_variadic_templates
7124 template <int N0, int... N1toN>
7125 struct sum<N0, N1toN...>
7127 static constexpr auto value = N0 + sum<N1toN...>::value;
7133 static constexpr auto value = 0;
7136 static_assert(sum<>::value == 0, "");
7137 static_assert(sum<1>::value == 1, "");
7138 static_assert(sum<23>::value == 23, "");
7139 static_assert(sum<1, 2>::value == 3, "");
7140 static_assert(sum<5, 5, 11>::value == 21, "");
7141 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7145 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7146 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7148 namespace test_template_alias_sfinae
7153 template<typename T>
7154 using member = typename T::member_type;
7156 template<typename T>
7159 template<typename T>
7160 void func(member<T>*) {}
7164 void test() { func<foo>(0); }
7168 } // namespace cxx11
7170 #endif // __cplusplus >= 201103L
7175 if ac_fn_cxx_try_compile
"$LINENO"; then :
7176 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7178 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7183 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7184 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7188 if test x
$ac_success = xno
; then
7189 for alternative
in ${ax_cxx_compile_alternatives}; do
7190 switch
="-std=gnu++${alternative}"
7191 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7193 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7194 if eval \
${$cachevar+:} false
; then :
7195 $as_echo_n "(cached) " >&6
7199 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7200 /* end confdefs.h. */
7203 // If the compiler admits that it is not ready for C++11, why torture it?
7204 // Hopefully, this will speed up the test.
7208 #error "This is not a C++ compiler"
7210 #elif __cplusplus < 201103L
7212 #error "This is not a C++11 compiler"
7219 namespace test_static_assert
7222 template <typename T>
7225 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7230 namespace test_final_override
7239 struct Derived : public Base
7241 virtual ~Derived() override {}
7242 virtual void f() override {}
7247 namespace test_double_right_angle_brackets
7250 template < typename T >
7253 typedef check<void> single_type;
7254 typedef check<check<void>> double_type;
7255 typedef check<check<check<void>>> triple_type;
7256 typedef check<check<check<check<void>>>> quadruple_type;
7260 namespace test_decltype
7273 namespace test_type_deduction
7276 template < typename T1, typename T2 >
7279 static const bool value = false;
7282 template < typename T >
7283 struct is_same<T, T>
7285 static const bool value = true;
7288 template < typename T1, typename T2 >
7290 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7296 test(const int c, volatile int v)
7298 static_assert(is_same<int, decltype(0)>::value == true, "");
7299 static_assert(is_same<int, decltype(c)>::value == false, "");
7300 static_assert(is_same<int, decltype(v)>::value == false, "");
7303 auto sumi = ac + av + 'x';
7304 auto sumf = ac + av + 1.0;
7305 static_assert(is_same<int, decltype(ac)>::value == true, "");
7306 static_assert(is_same<int, decltype(av)>::value == true, "");
7307 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7308 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7309 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7310 return (sumf > 0.0) ? sumi : add(c, v);
7315 namespace test_noexcept
7318 int f() { return 0; }
7319 int g() noexcept { return 0; }
7321 static_assert(noexcept(f()) == false, "");
7322 static_assert(noexcept(g()) == true, "");
7326 namespace test_constexpr
7329 template < typename CharT >
7330 unsigned long constexpr
7331 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7333 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7336 template < typename CharT >
7337 unsigned long constexpr
7338 strlen_c(const CharT *const s) noexcept
7340 return strlen_c_r(s, 0UL);
7343 static_assert(strlen_c("") == 0UL, "");
7344 static_assert(strlen_c("1") == 1UL, "");
7345 static_assert(strlen_c("example") == 7UL, "");
7346 static_assert(strlen_c("another\0example") == 7UL, "");
7350 namespace test_rvalue_references
7356 static constexpr int value = N;
7359 answer<1> f(int&) { return answer<1>(); }
7360 answer<2> f(const int&) { return answer<2>(); }
7361 answer<3> f(int&&) { return answer<3>(); }
7368 static_assert(decltype(f(i))::value == 1, "");
7369 static_assert(decltype(f(c))::value == 2, "");
7370 static_assert(decltype(f(0))::value == 3, "");
7375 namespace test_uniform_initialization
7380 static const int zero {};
7381 static const int one {1};
7384 static_assert(test::zero == 0, "");
7385 static_assert(test::one == 1, "");
7389 namespace test_lambdas
7395 auto lambda1 = [](){};
7396 auto lambda2 = lambda1;
7404 auto a = [](int i, int j){ return i + j; }(1, 2);
7405 auto b = []() -> int { return '0'; }();
7406 auto c = [=](){ return a + b; }();
7407 auto d = [&](){ return c; }();
7408 auto e = [a, &b](int x) mutable {
7409 const auto identity = [](int y){ return y; };
7410 for (auto i = 0; i < a; ++i)
7412 return x + identity(a + b);
7414 return a + b + c + d + e;
7420 const auto nullary = [](){ return 0; };
7421 const auto unary = [](int x){ return x; };
7422 using nullary_t = decltype(nullary);
7423 using unary_t = decltype(unary);
7424 const auto higher1st = [](nullary_t f){ return f(); };
7425 const auto higher2nd = [unary](nullary_t f1){
7426 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7428 return higher1st(nullary) + higher2nd(nullary)(unary);
7433 namespace test_variadic_templates
7439 template <int N0, int... N1toN>
7440 struct sum<N0, N1toN...>
7442 static constexpr auto value = N0 + sum<N1toN...>::value;
7448 static constexpr auto value = 0;
7451 static_assert(sum<>::value == 0, "");
7452 static_assert(sum<1>::value == 1, "");
7453 static_assert(sum<23>::value == 23, "");
7454 static_assert(sum<1, 2>::value == 3, "");
7455 static_assert(sum<5, 5, 11>::value == 21, "");
7456 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7460 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7461 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7463 namespace test_template_alias_sfinae
7468 template<typename T>
7469 using member = typename T::member_type;
7471 template<typename T>
7474 template<typename T>
7475 void func(member<T>*) {}
7479 void test() { func<foo>(0); }
7483 } // namespace cxx11
7485 #endif // __cplusplus >= 201103L
7490 if ac_fn_cxx_try_compile
"$LINENO"; then :
7495 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7498 eval ac_res
=\$
$cachevar
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7500 $as_echo "$ac_res" >&6; }
7501 if eval test x\$
$cachevar = xyes
; then
7503 if test -n "$CXXCPP" ; then
7504 CXXCPP
="$CXXCPP $switch"
7512 if test x
$ac_success = xno
; then
7513 for alternative
in ${ax_cxx_compile_alternatives}; do
7514 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7515 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7517 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7518 if eval \${$cachevar+:} false; then :
7519 $as_echo_n "(cached
) " >&6
7523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7524 /* end confdefs.h. */
7527 // If the compiler admits that it is not ready for C++11, why torture it?
7528 // Hopefully, this will speed up the test.
7532 #error "This is not a C
++ compiler
"
7534 #elif __cplusplus < 201103L
7536 #error "This is not a C
++11 compiler
"
7543 namespace test_static_assert
7546 template <typename T>
7549 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7554 namespace test_final_override
7563 struct Derived : public Base
7565 virtual ~Derived() override {}
7566 virtual void f() override {}
7571 namespace test_double_right_angle_brackets
7574 template < typename T >
7577 typedef check<void> single_type;
7578 typedef check<check<void>> double_type;
7579 typedef check<check<check<void>>> triple_type;
7580 typedef check<check<check<check<void>>>> quadruple_type;
7584 namespace test_decltype
7597 namespace test_type_deduction
7600 template < typename T1, typename T2 >
7603 static const bool value = false;
7606 template < typename T >
7607 struct is_same<T, T>
7609 static const bool value = true;
7612 template < typename T1, typename T2 >
7614 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7620 test(const int c, volatile int v)
7622 static_assert(is_same<int, decltype(0)>::value == true, "");
7623 static_assert(is_same<int, decltype(c)>::value == false, "");
7624 static_assert(is_same<int, decltype(v)>::value == false, "");
7627 auto sumi = ac + av + 'x';
7628 auto sumf = ac + av + 1.0;
7629 static_assert(is_same<int, decltype(ac)>::value == true, "");
7630 static_assert(is_same<int, decltype(av)>::value == true, "");
7631 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7632 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7633 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7634 return (sumf > 0.0) ? sumi : add(c, v);
7639 namespace test_noexcept
7642 int f() { return 0; }
7643 int g() noexcept { return 0; }
7645 static_assert(noexcept(f()) == false, "");
7646 static_assert(noexcept(g()) == true, "");
7650 namespace test_constexpr
7653 template < typename CharT >
7654 unsigned long constexpr
7655 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7657 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7660 template < typename CharT >
7661 unsigned long constexpr
7662 strlen_c(const CharT *const s) noexcept
7664 return strlen_c_r(s, 0UL);
7667 static_assert(strlen_c("") == 0UL, "");
7668 static_assert(strlen_c("1") == 1UL, "");
7669 static_assert(strlen_c("example
") == 7UL, "");
7670 static_assert(strlen_c("another\
0example
") == 7UL, "");
7674 namespace test_rvalue_references
7680 static constexpr int value = N;
7683 answer<1> f(int&) { return answer<1>(); }
7684 answer<2> f(const int&) { return answer<2>(); }
7685 answer<3> f(int&&) { return answer<3>(); }
7692 static_assert(decltype(f(i))::value == 1, "");
7693 static_assert(decltype(f(c))::value == 2, "");
7694 static_assert(decltype(f(0))::value == 3, "");
7699 namespace test_uniform_initialization
7704 static const int zero {};
7705 static const int one {1};
7708 static_assert(test::zero == 0, "");
7709 static_assert(test::one == 1, "");
7713 namespace test_lambdas
7719 auto lambda1 = [](){};
7720 auto lambda2 = lambda1;
7728 auto a = [](int i, int j){ return i + j; }(1, 2);
7729 auto b = []() -> int { return '0'; }();
7730 auto c = [=](){ return a + b; }();
7731 auto d = [&](){ return c; }();
7732 auto e = [a, &b](int x) mutable {
7733 const auto identity = [](int y){ return y; };
7734 for (auto i = 0; i < a; ++i)
7736 return x + identity(a + b);
7738 return a + b + c + d + e;
7744 const auto nullary = [](){ return 0; };
7745 const auto unary = [](int x){ return x; };
7746 using nullary_t = decltype(nullary);
7747 using unary_t = decltype(unary);
7748 const auto higher1st = [](nullary_t f){ return f(); };
7749 const auto higher2nd = [unary](nullary_t f1){
7750 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7752 return higher1st(nullary) + higher2nd(nullary)(unary);
7757 namespace test_variadic_templates
7763 template <int N0, int... N1toN>
7764 struct sum<N0, N1toN...>
7766 static constexpr auto value = N0 + sum<N1toN...>::value;
7772 static constexpr auto value = 0;
7775 static_assert(sum<>::value == 0, "");
7776 static_assert(sum<1>::value == 1, "");
7777 static_assert(sum<23>::value == 23, "");
7778 static_assert(sum<1, 2>::value == 3, "");
7779 static_assert(sum<5, 5, 11>::value == 21, "");
7780 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7784 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7785 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7787 namespace test_template_alias_sfinae
7792 template<typename T>
7793 using member = typename T::member_type;
7795 template<typename T>
7798 template<typename T>
7799 void func(member<T>*) {}
7803 void test() { func<foo>(0); }
7807 } // namespace cxx11
7809 #endif // __cplusplus >= 201103L
7814 if ac_fn_cxx_try_compile "$LINENO"; then :
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822 eval ac_res=\$$cachevar
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7824 $as_echo "$ac_res" >&6; }
7825 if eval test x\$$cachevar = xyes; then
7827 if test -n "$CXXCPP" ; then
7828 CXXCPP="$CXXCPP $switch"
7834 if test x$ac_success = xyes; then
7839 CXX_FOR_BUILD="$CXX"
7840 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7841 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7842 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7843 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7844 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7846 ac_cpp='$CPP $CPPFLAGS'
7847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7851 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7852 if test x$ac_success = xno; then
7853 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7856 if test x$ac_success = xno; then
7857 HAVE_CXX11_FOR_BUILD=0
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7859 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7861 HAVE_CXX11_FOR_BUILD=1
7863 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7871 # Check whether --enable-pgo-build was given.
7872 if test "${enable_pgo_build+set}" = set; then :
7873 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7879 # Issue errors and warnings for invalid/strange PGO build combinations.
7880 case "$have_compiler:$host:$target:$enable_pgo_build" in
7883 # Allow the PGO build only if we aren't building a compiler and
7884 # we are in a native configuration.
7885 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7887 # Disallow the PGO bootstrap if we are building a compiler.
7888 yes:*:*:yes |
yes:*:*:lto
)
7889 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7892 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7896 if test "$enable_pgo_build" != "no"; then
7897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7898 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7899 old_CFLAGS
="$CFLAGS"
7900 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7901 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7903 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7904 /* end confdefs.h. */
7907 if ac_fn_c_try_compile
"$LINENO"; then :
7910 PGO_BUILD_GEN_CFLAGS
=
7912 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7913 CFLAGS
="$old_CFLAGS"
7914 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7916 $as_echo "yes" >&6; }
7917 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7920 $as_echo "no" >&6; }
7921 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7924 if test "$enable_pgo_build" = "lto"; then
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7926 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7927 old_CFLAGS
="$CFLAGS"
7928 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7929 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7934 if ac_fn_c_try_compile
"$LINENO"; then :
7937 PGO_BUILD_LTO_CFLAGS
=
7939 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7940 CFLAGS
="$old_CFLAGS"
7941 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7943 $as_echo "yes" >&6; }
7945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7946 $as_echo "no" >&6; }
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7948 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7956 # Used for setting $lt_cv_objdir
7957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7958 $as_echo_n "checking for objdir... " >&6; }
7959 if ${lt_cv_objdir+:} false
; then :
7960 $as_echo_n "(cached) " >&6
7962 rm -f .libs
2>/dev
/null
7963 mkdir .libs
2>/dev
/null
7964 if test -d .libs
; then
7967 # MS-DOS does not allow filenames that begin with a dot.
7970 rmdir .libs
2>/dev
/null
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7973 $as_echo "$lt_cv_objdir" >&6; }
7974 objdir
=$lt_cv_objdir
7980 cat >>confdefs.h
<<_ACEOF
7981 #define LT_OBJDIR "$lt_cv_objdir/"
7986 # Check for GMP, MPFR and MPC
7989 if test -d ${srcdir}/gcc
; then
7993 if test -d ${srcdir}/gdb
; then
7994 if test "x$enable_gdb" != xno
; then
7999 gmplibs
="-lmpfr -lgmp"
8000 if test x
"$require_mpc" = "xyes" ; then
8001 gmplibs
="-lmpc $gmplibs"
8006 # Specify a location for mpc
8007 # check for this first so it ends up on the link line before mpfr.
8009 # Check whether --with-mpc was given.
8010 if test "${with_mpc+set}" = set; then :
8015 # Check whether --with-mpc-include was given.
8016 if test "${with_mpc_include+set}" = set; then :
8017 withval
=$with_mpc_include;
8021 # Check whether --with-mpc-lib was given.
8022 if test "${with_mpc_lib+set}" = set; then :
8023 withval
=$with_mpc_lib;
8027 if test "x$with_mpc" != x
; then
8028 gmplibs
="-L$with_mpc/lib $gmplibs"
8029 gmpinc
="-I$with_mpc/include $gmpinc"
8031 if test "x$with_mpc_include" != x
; then
8032 gmpinc
="-I$with_mpc_include $gmpinc"
8034 if test "x$with_mpc_lib" != x
; then
8035 gmplibs
="-L$with_mpc_lib $gmplibs"
8037 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
8038 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8039 gmpinc
='-I$$s/mpc/src '"$gmpinc"
8040 # Do not test the mpc version. Assume that it is sufficient, since
8041 # it is in the source tree, and the library has not been built yet
8042 # but it would be included on the link line in the version check below
8043 # hence making the test fail.
8047 # Specify a location for mpfr
8048 # check for this first so it ends up on the link line before gmp.
8050 # Check whether --with-mpfr was given.
8051 if test "${with_mpfr+set}" = set; then :
8056 # Check whether --with-mpfr-include was given.
8057 if test "${with_mpfr_include+set}" = set; then :
8058 withval
=$with_mpfr_include;
8062 # Check whether --with-mpfr-lib was given.
8063 if test "${with_mpfr_lib+set}" = set; then :
8064 withval
=$with_mpfr_lib;
8068 if test "x$with_mpfr" != x
; then
8069 gmplibs
="-L$with_mpfr/lib $gmplibs"
8070 gmpinc
="-I$with_mpfr/include $gmpinc"
8072 if test "x$with_mpfr_include" != x
; then
8073 gmpinc
="-I$with_mpfr_include $gmpinc"
8075 if test "x$with_mpfr_lib" != x
; then
8076 gmplibs
="-L$with_mpfr_lib $gmplibs"
8078 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8079 # MPFR v3.1.0 moved the sources into a src sub-directory.
8080 if ! test -d ${srcdir}/mpfr
/src
; then
8081 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8083 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8084 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8085 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8086 # Do not test the mpfr version. Assume that it is sufficient, since
8087 # it is in the source tree, and the library has not been built yet
8088 # but it would be included on the link line in the version check below
8089 # hence making the test fail.
8093 # Specify a location for gmp
8095 # Check whether --with-gmp was given.
8096 if test "${with_gmp+set}" = set; then :
8101 # Check whether --with-gmp-include was given.
8102 if test "${with_gmp_include+set}" = set; then :
8103 withval
=$with_gmp_include;
8107 # Check whether --with-gmp-lib was given.
8108 if test "${with_gmp_lib+set}" = set; then :
8109 withval
=$with_gmp_lib;
8114 if test "x$with_gmp" != x
; then
8115 gmplibs
="-L$with_gmp/lib $gmplibs"
8116 gmpinc
="-I$with_gmp/include $gmpinc"
8118 if test "x$with_gmp_include" != x
; then
8119 gmpinc
="-I$with_gmp_include $gmpinc"
8121 if test "x$with_gmp_lib" != x
; then
8122 gmplibs
="-L$with_gmp_lib $gmplibs"
8124 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8125 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8126 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8127 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8128 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8129 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8130 # Do not test the gmp version. Assume that it is sufficient, since
8131 # it is in the source tree, and the library has not been built yet
8132 # but it would be included on the link line in the version check below
8133 # hence making the test fail.
8137 if test "x$require_gmp" = xyes
&& test "x$have_gmp" = xno
; then
8139 saved_CFLAGS
="$CFLAGS"
8140 CFLAGS
="$CFLAGS $gmpinc"
8141 # Check for the recommended and required versions of GMP.
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8143 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8151 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8152 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8153 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8161 if ac_fn_c_try_compile
"$LINENO"; then :
8162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8163 /* end confdefs.h. */
8169 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8170 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8171 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8179 if ac_fn_c_try_compile
"$LINENO"; then :
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8181 $as_echo "yes" >&6; }
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8184 $as_echo "buggy but acceptable" >&6; }
8186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }; have_gmp
=no
8191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8193 # If we have GMP, check the MPFR version.
8194 if test x
"$have_gmp" = xyes
; then
8195 # Check for the recommended and required versions of MPFR.
8196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8197 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8199 /* end confdefs.h. */
8206 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8214 if ac_fn_c_try_compile
"$LINENO"; then :
8215 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8216 /* end confdefs.h. */
8223 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8231 if ac_fn_c_try_compile
"$LINENO"; then :
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8233 $as_echo "yes" >&6; }
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8236 $as_echo "buggy but acceptable" >&6; }
8238 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8241 $as_echo "no" >&6; }; have_gmp
=no
8243 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8246 # Check for the MPC header version.
8247 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8248 # Check for the recommended and required versions of MPC.
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8250 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8252 /* end confdefs.h. */
8258 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8266 if ac_fn_c_try_compile
"$LINENO"; then :
8267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8268 /* end confdefs.h. */
8274 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8282 if ac_fn_c_try_compile
"$LINENO"; then :
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8284 $as_echo "yes" >&6; }
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8287 $as_echo "buggy but acceptable" >&6; }
8289 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8292 $as_echo "no" >&6; }; have_gmp
=no
8294 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8297 # Now check the MPFR library.
8298 if test x
"$have_gmp" = xyes
; then
8300 LIBS
="$LIBS $gmplibs"
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8302 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8304 /* end confdefs.h. */
8315 mpfr_atan2 (n, n, x, MPFR_RNDN);
8316 mpfr_erfc (n, x, MPFR_RNDN);
8317 mpfr_subnormalize (x, t, MPFR_RNDN);
8325 if ac_fn_c_try_link
"$LINENO"; then :
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8327 $as_echo "yes" >&6; }
8329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8330 $as_echo "no" >&6; }; have_gmp
=no
8332 rm -f core conftest.err conftest.
$ac_objext \
8333 conftest
$ac_exeext conftest.
$ac_ext
8337 # Now check the MPC library
8338 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8340 LIBS
="$LIBS $gmplibs"
8341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8342 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8344 /* end confdefs.h. */
8352 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8353 mpc_cosh (c, c, MPC_RNDNN);
8354 mpc_pow (c, c, c, MPC_RNDNN);
8355 mpc_acosh (c, c, MPC_RNDNN);
8362 if ac_fn_c_try_link
"$LINENO"; then :
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8364 $as_echo "yes" >&6; }
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo "no" >&6; }; have_gmp
=no
8369 rm -f core conftest.err conftest.
$ac_objext \
8370 conftest
$ac_exeext conftest.
$ac_ext
8374 CFLAGS
="$saved_CFLAGS"
8376 # The library versions listed in the error message below should match
8377 # the HARD-minimums enforced above.
8378 if test x
$have_gmp != xyes
; then
8379 if test -d ${srcdir}/gcc
; then
8380 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8381 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8382 their locations. Source code for these libraries can be found at
8383 their respective hosting sites as well as at
8384 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8385 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8386 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8387 make sure that you have installed both the libraries and the header
8388 files. They may be located in separate packages." "$LINENO" 5
8390 as_fn_error $?
"Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8391 Try the --with-gmp and/or --with-mpfr options to specify
8392 their locations. If you obtained GMP and/or MPFR from a vendor
8393 distribution package, make sure that you have installed both the libraries
8394 and the header files. They may be located in separate packages." "$LINENO" 5
8399 # Flags needed for both GMP, MPFR and/or MPC.
8407 # Libraries to use for stage1 or when not bootstrapping.
8409 # Check whether --with-stage1-libs was given.
8410 if test "${with_stage1_libs+set}" = set; then :
8411 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8414 stage1_libs
=$withval
8422 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8423 # default is yes if gcc is being built; no otherwise. The reason for
8424 # this default is that gdb is sometimes linked against GNU Source
8425 # Highlight, which is a shared library that uses C++ exceptions. In
8426 # this case, -static-libstdc++ will cause crashes.
8428 # Check whether --with-static-standard-libraries was given.
8429 if test "${with_static_standard_libraries+set}" = set; then :
8430 withval
=$with_static_standard_libraries;
8432 with_static_standard_libraries
=auto
8435 if test "$with_static_standard_libraries" = auto
; then
8436 with_static_standard_libraries
=$have_compiler
8439 # Linker flags to use for stage1 or when not bootstrapping.
8441 # Check whether --with-stage1-ldflags was given.
8442 if test "${with_stage1_ldflags+set}" = set; then :
8443 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8446 stage1_ldflags
=$withval
8450 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8451 # if supported. But if the user explicitly specified the libraries to use,
8452 # trust that they are doing what they want.
8453 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8454 -a "$have_static_libs" = yes; then
8455 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8461 # Libraries to use for stage2 and later builds.
8463 # Check whether --with-boot-libs was given.
8464 if test "${with_boot_libs+set}" = set; then :
8465 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8468 poststage1_libs
=$withval
8476 # Linker flags to use for stage2 and later builds.
8478 # Check whether --with-boot-ldflags was given.
8479 if test "${with_boot_ldflags+set}" = set; then :
8480 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8483 poststage1_ldflags
=$withval
8487 # In stages 2 and 3, default to linking libstdc++ and libgcc
8488 # statically. But if the user explicitly specified the libraries to
8489 # use, trust that they are doing what they want.
8490 if test "$poststage1_libs" = ""; then
8491 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8497 # GCC GRAPHITE dependency isl.
8498 # Basic setup is inlined here, actual checks are in config/isl.m4
8501 # Check whether --with-isl was given.
8502 if test "${with_isl+set}" = set; then :
8507 # Treat --without-isl as a request to disable
8508 # GRAPHITE support and skip all following checks.
8509 if test "x$with_isl" != "xno"; then
8513 # Check whether --with-isl-include was given.
8514 if test "${with_isl_include+set}" = set; then :
8515 withval
=$with_isl_include;
8519 # Check whether --with-isl-lib was given.
8520 if test "${with_isl_lib+set}" = set; then :
8521 withval
=$with_isl_lib;
8525 # Check whether --enable-isl-version-check was given.
8526 if test "${enable_isl_version_check+set}" = set; then :
8527 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8529 ENABLE_ISL_CHECK
=yes
8533 # Initialize isllibs and islinc.
8542 isllibs
="-L$with_isl/lib"
8543 islinc
="-I$with_isl/include"
8546 if test "x${with_isl_include}" != x
; then
8547 islinc
="-I$with_isl_include"
8549 if test "x${with_isl_lib}" != x
; then
8550 isllibs
="-L$with_isl_lib"
8552 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8553 && test -d ${srcdir}/isl
; then
8554 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8555 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8558 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8561 isllibs
="${isllibs} -lisl"
8565 if test "${ENABLE_ISL_CHECK}" = yes ; then
8566 _isl_saved_CFLAGS
=$CFLAGS
8567 _isl_saved_LDFLAGS
=$LDFLAGS
8568 _isl_saved_LIBS
=$LIBS
8570 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8571 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8572 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8575 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8577 /* end confdefs.h. */
8578 #include <isl/schedule.h>
8582 isl_options_set_schedule_serialize_sccs (NULL, 0);
8587 if ac_fn_c_try_link
"$LINENO"; then :
8592 rm -f core conftest.err conftest.
$ac_objext \
8593 conftest
$ac_exeext conftest.
$ac_ext
8594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8595 $as_echo "$gcc_cv_isl" >&6; }
8597 if test "${gcc_cv_isl}" = no
; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8599 $as_echo "required isl version is 0.15 or later" >&6; }
8602 CFLAGS
=$_isl_saved_CFLAGS
8603 LDFLAGS
=$_isl_saved_LDFLAGS
8604 LIBS
=$_isl_saved_LIBS
8612 if test "x${with_isl}" = xno
; then
8613 graphite_requested
=no
8614 elif test "x${with_isl}" != x \
8615 ||
test "x${with_isl_include}" != x \
8616 ||
test "x${with_isl_lib}" != x
; then
8617 graphite_requested
=yes
8619 graphite_requested
=no
8624 if test "${gcc_cv_isl}" = no
; then
8629 if test "${graphite_requested}" = yes \
8630 && test "x${isllibs}" = x \
8631 && test "x${islinc}" = x
; then
8633 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8639 # If the isl check failed, disable builds of in-tree variant of isl
8640 if test "x$with_isl" = xno ||
8641 test "x$gcc_cv_isl" = xno
; then
8642 noconfigdirs
="$noconfigdirs isl"
8649 # Check for LTO support.
8650 # Check whether --enable-lto was given.
8651 if test "${enable_lto+set}" = set; then :
8652 enableval
=$enable_lto; enable_lto
=$enableval
8654 enable_lto
=yes; default_enable_lto
=yes
8663 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8664 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8665 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8674 if test $target_elf = yes; then :
8675 # ELF platforms build the lto-plugin always.
8676 build_lto_plugin
=yes
8679 if test x
"$default_enable_lto" = x
"yes" ; then
8681 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8682 # On other non-ELF platforms, LTO has yet to be validated.
8686 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8687 # It would also be nice to check the binutils support, but we don't
8688 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8689 # warn during gcc/ subconfigure; unless you're bootstrapping with
8690 # -flto it won't be needed until after installation anyway.
8692 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8693 *) if test x
"$enable_lto" = x
"yes"; then
8694 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8699 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8700 # Build it unless LTO was explicitly disabled.
8702 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8709 # Check whether --enable-linker-plugin-configure-flags was given.
8710 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8711 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8713 extra_linker_plugin_configure_flags
=
8717 # Check whether --enable-linker-plugin-flags was given.
8718 if test "${enable_linker_plugin_flags+set}" = set; then :
8719 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8721 extra_linker_plugin_flags
=
8726 # Handle --enable-host-pie
8727 # If host PIE executables are the default (or must be forced on) for some host,
8728 # we must pass that configuration to the gcc directory.
8730 # Check whether --enable-host-pie was given.
8731 if test "${enable_host_pie+set}" = set; then :
8732 enableval
=$enable_host_pie; host_pie
=$enableval
8735 if test x
$host_pie != xyes
; then
8736 # for Darwin20+ this is required.
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8738 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8740 gcc_host_pie
=--enable-host-pie
8747 # Default to PIE (mandatory for aarch64).
8749 gcc_host_pie
=--enable-host-pie
8759 # Enable --enable-host-shared.
8760 # Checked early to determine whether jit is an 'all' language
8761 # Check whether --enable-host-shared was given.
8762 if test "${enable_host_shared+set}" = set; then :
8763 enableval
=$enable_host_shared; host_shared
=$enableval
8765 x86_64-
*-darwin* | aarch64-
*-darwin*)
8766 if test x
$host_shared != xyes
; then
8767 # PIC is the default, and actually cannot be switched off.
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8769 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8773 if test x
$host_pie = xyes
-a x
$host_shared != xyes
; then
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8775 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
8782 # 64B x86_64 and Aarch64 Darwin default to PIC.
8783 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8784 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8785 *-*-darwin*) host_shared
=$host_pie ;;
8793 if test x
$host_shared = xyes
; then
8796 # Since host shared is the default for 64b Darwin, and also enabled for
8797 # host_pie, ensure that we present the PIE flag when host_pie is active.
8798 if test x
$host_pie = xyes
; then
8806 elif test x
$host_pie = xyes
; then
8814 # If we are building PIC/PIE host executables, and we are building dependent
8815 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8818 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8819 host_libs_picflag
='--with-pic'
8823 # By default, C and C++ are the only stage 1 languages.
8824 stage1_languages
=,c
,
8826 # Target libraries that we bootstrap.
8827 bootstrap_target_libs
=,target-libgcc
,
8829 # Figure out what language subdirectories are present.
8830 # Look if the user specified --enable-languages="..."; if not, use
8831 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8833 # NB: embedded tabs in this IF block -- do not untabify
8834 if test -d ${srcdir}/gcc
; then
8835 if test x
"${enable_languages+set}" != xset
; then
8836 if test x
"${LANGUAGES+set}" = xset
; then
8837 enable_languages
="${LANGUAGES}"
8838 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8840 enable_languages
=default
8843 if test x
"${enable_languages}" = x ||
8844 test x
"${enable_languages}" = xyes
;
8846 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8850 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8852 # 'f95' is the old name for the 'fortran' language. We issue a warning
8853 # and make the substitution.
8854 case ,${enable_languages}, in
8856 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8857 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8861 # If bootstrapping, C++ must be enabled.
8862 case ",$enable_languages,:$enable_bootstrap" in
8865 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8866 enable_languages
="${enable_languages},c++"
8868 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8873 # First scan to see if an enabled language requires some other language.
8874 # We assume that a given config-lang.in will list all the language
8875 # front ends it requires, even if some are required indirectly.
8876 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8877 case ${lang_frag} in
8879 # The odd quoting in the next line works around
8880 # an apparent bug in bash 1.12 on linux.
8881 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8883 # From the config-lang.in, get $language, $lang_requires, and
8884 # $lang_requires_boot_languages.
8887 lang_requires_boot_languages
=
8888 # set srcdir during sourcing lang_frag to the gcc dir.
8889 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8890 # polutes this shell
8891 saved_srcdir
=${srcdir}
8892 srcdir
=${srcdir}/gcc .
${lang_frag}
8893 srcdir
=${saved_srcdir}
8894 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8895 case ,${enable_languages}, in
8900 echo " \`$other' language required by \`$language'; enabling" 1>&2
8901 enable_languages
="${enable_languages},${other}"
8905 for other
in ${lang_requires_boot_languages} ; do
8906 if test "$other" != "c"; then
8907 case ,${enable_stage1_languages}, in
8912 case ,${enable_languages}, in
8914 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8915 enable_stage1_languages
="$enable_stage1_languages,${other}"
8926 new_enable_languages
=,c
,
8928 # If LTO is enabled, add the LTO front end.
8929 if test "$enable_lto" = "yes" ; then
8930 case ,${enable_languages}, in
8932 *) enable_languages
="${enable_languages},lto" ;;
8934 if test "${build_lto_plugin}" = "yes" ; then
8935 configdirs
="$configdirs lto-plugin"
8939 # If we're building an offloading compiler, add the LTO front end.
8940 if test x
"$enable_as_accelerator_for" != x
; then
8941 case ,${enable_languages}, in
8943 *) enable_languages
="${enable_languages},lto" ;;
8947 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8948 potential_languages
=,c
,
8950 enabled_target_libs
=
8951 disabled_target_libs
=
8953 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8954 case ${lang_frag} in
8956 # The odd quoting in the next line works around
8957 # an apparent bug in bash 1.12 on linux.
8958 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8960 # From the config-lang.in, get $language, $target_libs,
8961 # $lang_dirs, $boot_language, and $build_by_default
8967 build_by_default
=yes
8968 # set srcdir during sourcing. See above about save & restore
8969 saved_srcdir
=${srcdir}
8970 srcdir
=${srcdir}/gcc .
${lang_frag}
8971 srcdir
=${saved_srcdir}
8972 if test x
${language} = x
; then
8973 echo "${lang_frag} doesn't set \$language." 1>&2
8977 if test "$language" = "c++"; then
8982 # C is always enabled, so no need to add it again
8983 if test "$language" != "c"; then
8984 case ,${enable_languages}, in
8986 # Language was explicitly selected; include it
8990 # All languages are enabled
8994 # 'default' was selected, select it if it is a default language
8995 add_this_lang
=${build_by_default}
9000 # Disable languages that need other directories if these aren't available.
9001 for i
in $subdir_requires; do
9002 test -f "$srcdir/gcc/$i/config-lang.in" && continue
9003 case ${add_this_lang} in
9005 # Specifically requested language; tell them.
9006 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
9010 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
9011 add_this_lang
=unsupported
9015 add_this_lang
=unsupported
9020 # Disable Ada if no preexisting GNAT is available.
9021 case ${add_this_lang}:${language}:${have_gnat} in
9023 # Specifically requested language; tell them.
9024 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
9028 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
9029 add_this_lang
=unsupported
9033 add_this_lang
=unsupported
9037 # Disable D if no preexisting GDC is available.
9038 case ${add_this_lang}:${language}:${have_gdc} in
9040 # Specifically requested language; tell them.
9041 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
9045 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
9046 add_this_lang
=unsupported
9050 add_this_lang
=unsupported
9054 # Disable jit if -enable-host-shared not specified
9055 # but not if building for Mingw. All code in Windows
9056 # is position independent code (PIC).
9060 case ${add_this_lang}:${language}:${host_shared} in
9062 # PR jit/64780: explicitly specify --enable-host-shared
9064 Enabling language \"jit\" requires --enable-host-shared.
9066 --enable-host-shared typically slows the rest of the compiler down by
9067 a few %, so you must explicitly enable it.
9069 If you want to build both the jit and the regular compiler, it is often
9070 best to do this via two separate configure/builds, in separate
9071 directories, to avoid imposing the performance cost of
9072 --enable-host-shared on the regular compiler." "$LINENO" 5
9075 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9076 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9077 add_this_lang
=unsupported
9081 add_this_lang
=unsupported
9087 # Disable a language that is unsupported by the target.
9088 case "${add_this_lang}: $unsupported_languages " in
9092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9093 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9094 add_this_lang
=unsupported
9098 case $add_this_lang in
9100 # Remove language-dependent dirs.
9101 disabled_target_libs
="$disabled_target_libs $target_libs"
9102 noconfigdirs
="$noconfigdirs $lang_dirs"
9105 # Remove language-dependent dirs; still show language as supported.
9106 disabled_target_libs
="$disabled_target_libs $target_libs"
9107 noconfigdirs
="$noconfigdirs $lang_dirs"
9108 potential_languages
="${potential_languages}${language},"
9111 new_enable_languages
="${new_enable_languages}${language},"
9112 potential_languages
="${potential_languages}${language},"
9113 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
9114 enabled_target_libs
="$enabled_target_libs $target_libs"
9115 case "${boot_language}:,$enable_stage1_languages," in
9116 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
9117 # Add to (comma-separated) list of stage 1 languages.
9118 case ",$stage1_languages," in
9119 *,$language,* |
,yes, |
,all
,) ;;
9120 *) stage1_languages
="${stage1_languages}${language}," ;;
9122 # We need to bootstrap any supporting libraries.
9123 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9132 # Add target libraries which are only needed for disabled languages
9134 if test -n "$disabled_target_libs"; then
9135 for dir
in $disabled_target_libs; do
9136 case " $enabled_target_libs " in
9138 *) noconfigdirs
="$noconfigdirs $dir" ;;
9143 # Check whether --enable-stage1-languages was given.
9144 if test "${enable_stage1_languages+set}" = set; then :
9145 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9147 # Set it to something that will have no effect in the loop below
9148 enable_stage1_languages
=c
;;
9150 enable_stage1_languages
=`echo $new_enable_languages | \
9151 sed -e "s/^,//" -e "s/,$//" ` ;;
9153 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
9154 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9157 # Add "good" languages from enable_stage1_languages to stage1_languages,
9158 # while "bad" languages go in missing_languages. Leave no duplicates.
9159 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9160 case $potential_languages in
9162 case $stage1_languages in
9164 *) stage1_languages
="$stage1_languages$i," ;;
9167 case $missing_languages in
9169 *) missing_languages
="$missing_languages$i," ;;
9176 # Remove leading/trailing commas that were added for simplicity
9177 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9178 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9179 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9180 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9182 if test "x$missing_languages" != x
; then
9184 The following requested languages could not be built: ${missing_languages}
9185 Supported languages are: ${potential_languages}" "$LINENO" 5
9187 if test "x$new_enable_languages" != "x$enable_languages"; then
9188 echo The following languages will be built
: ${new_enable_languages}
9189 enable_languages
="$new_enable_languages"
9193 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9196 # Handle --disable-<component> generically.
9197 for dir
in $configdirs $build_configdirs $target_configdirs ; do
9198 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9199 varname
=`echo $dirname | sed -e s/+/_/g`
9200 if eval test x\
${enable_${varname}} "=" xno
; then
9201 noconfigdirs
="$noconfigdirs $dir"
9205 # Check for Boehm's garbage collector
9206 # Check whether --enable-objc-gc was given.
9207 if test "${enable_objc_gc+set}" = set; then :
9208 enableval
=$enable_objc_gc;
9212 # Check whether --with-target-bdw-gc was given.
9213 if test "${with_target_bdw_gc+set}" = set; then :
9214 withval
=$with_target_bdw_gc;
9218 # Check whether --with-target-bdw-gc-include was given.
9219 if test "${with_target_bdw_gc_include+set}" = set; then :
9220 withval
=$with_target_bdw_gc_include;
9224 # Check whether --with-target-bdw-gc-lib was given.
9225 if test "${with_target_bdw_gc_lib+set}" = set; then :
9226 withval
=$with_target_bdw_gc_lib;
9230 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9232 $as_echo_n "checking for bdw garbage collector... " >&6; }
9233 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9235 $as_echo "using bdw-gc in default locations" >&6; }
9237 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9238 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9239 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9240 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9243 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9248 # Disable libitm, libsanitizer, libvtv if we're not building C++
9249 case ,${enable_languages}, in
9251 # Disable libitm, libsanitizer if we're not building libstdc++
9252 case "${noconfigdirs}" in
9253 *target-libstdc
++-v3*)
9254 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9260 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9264 # If gcc/ is not in the source tree then we'll not be building a
9265 # target compiler, assume in that case we don't want to build any
9266 # target libraries or tools.
9268 # This was added primarily for the benefit for binutils-gdb who reuse
9269 # this configure script, but don't always have target tools available.
9270 if test ! -d ${srcdir}/gcc
; then
9271 skipdirs
="${skipdirs} ${target_configdirs}"
9274 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9275 # $build_configdirs and $target_configdirs.
9276 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9279 for dir
in .
$skipdirs $noconfigdirs ; do
9280 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9281 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9282 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9283 if test -r $srcdir/$dirname/configure
; then
9284 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9287 notsupp
="$notsupp $dir"
9291 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9292 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9293 if test -r $srcdir/$dirname/configure
; then
9294 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9297 notsupp
="$notsupp $dir"
9301 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9302 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9303 if test -r $srcdir/$dirname/configure
; then
9304 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9307 notsupp
="$notsupp $dir"
9313 # Quietly strip out all directories which aren't configurable in this tree.
9314 # This relies on all configurable subdirectories being autoconfiscated, which
9316 build_configdirs_all
="$build_configdirs"
9318 for i
in ${build_configdirs_all} ; do
9319 j
=`echo $i | sed -e s/build-//g`
9320 if test -f ${srcdir}/$j/configure
; then
9321 build_configdirs
="${build_configdirs} $i"
9325 configdirs_all
="$configdirs"
9327 for i
in ${configdirs_all} ; do
9328 if test -f ${srcdir}/$i/configure
; then
9329 configdirs
="${configdirs} $i"
9333 target_configdirs_all
="$target_configdirs"
9335 for i
in ${target_configdirs_all} ; do
9336 j
=`echo $i | sed -e s/target-//g`
9337 if test -f ${srcdir}/$j/configure
; then
9338 target_configdirs
="${target_configdirs} $i"
9342 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9343 # so we have to add it after the preceding checks.
9344 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9346 case " $configdirs " in
9348 # If we can build libiberty, we can also build libiberty-linker-plugin.
9349 configdirs
="$configdirs libiberty-linker-plugin"
9350 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9351 --with-libiberty=../libiberty-linker-plugin";;
9353 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9357 # Sometimes we have special requirements for the host libiberty.
9358 extra_host_libiberty_configure_flags
=
9359 case " $configdirs " in
9360 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9361 # When these are to be built as shared libraries, the same applies to
9363 extra_host_libiberty_configure_flags
=--enable-shared
9368 # Sometimes we have special requirements for the host zlib.
9369 extra_host_zlib_configure_flags
=
9370 case " $configdirs " in
9372 # When bfd is to be built as a shared library, the same applies to
9374 if test "$enable_shared" = "yes"; then
9375 extra_host_zlib_configure_flags
=--enable-host-shared
9381 # Produce a warning message for the subdirs we can't configure.
9382 # This isn't especially interesting in the Cygnus tree, but in the individual
9383 # FSF releases, it's important to let people know when their machine isn't
9384 # supported by the one or two programs in a package.
9386 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9387 # If $appdirs is non-empty, at least one of those directories must still
9388 # be configured, or we error out. (E.g., if the gas release supports a
9389 # specified target in some subdirs but not the gas subdir, we shouldn't
9390 # pretend that all is well.)
9391 if test -n "$appdirs" ; then
9392 for dir
in $appdirs ; do
9393 if test -r $dir/Makefile.
in ; then
9394 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9398 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9404 if test -n "$appdirs" ; then
9405 echo "*** This configuration is not supported by this package." 1>&2
9409 # Okay, some application will build, or we don't care to check. Still
9410 # notify of subdirs not getting built.
9411 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9412 echo " ${notsupp}" 1>&2
9413 echo " (Any other directories should still work fine.)" 1>&2
9421 # To find our prefix, in gcc_cv_tool_prefix.
9423 # The user is always right.
9424 if test "${PATH_SEPARATOR+set}" != set; then
9425 echo "#! /bin/sh" >conf$$.sh
9426 echo "exit 0" >>conf$$.sh
9428 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9437 get_gcc_base_ver
="cat"
9439 # Check whether --with-gcc-major-version-only was given.
9440 if test "${with_gcc_major_version_only+set}" = set; then :
9441 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9442 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9452 if test "x$exec_prefix" = xNONE
; then
9453 if test "x$prefix" = xNONE
; then
9454 gcc_cv_tool_prefix
=$ac_default_prefix
9456 gcc_cv_tool_prefix
=$prefix
9459 gcc_cv_tool_prefix
=$exec_prefix
9462 # If there is no compiler in the tree, use the PATH only. In any
9463 # case, if there is no compiler in the tree nobody should use
9464 # AS_FOR_TARGET and LD_FOR_TARGET.
9465 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9466 if test x
$with_gcc_major_version_only = xyes
; then
9467 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9469 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9471 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9472 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9473 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9474 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9475 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9476 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9481 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9482 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9490 # Check whether --with-build-sysroot was given.
9491 if test "${with_build_sysroot+set}" = set; then :
9492 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9493 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9496 SYSROOT_CFLAGS_FOR_TARGET
=
9502 # Check whether --with-debug-prefix-map was given.
9503 if test "${with_debug_prefix_map+set}" = set; then :
9504 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9505 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9506 for debug_map
in $withval; do
9507 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9511 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9516 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9517 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9518 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9519 # We want to ensure that TARGET libraries (which we know are built with
9520 # gcc) are built with "-O2 -g", so include those options when setting
9521 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9522 if test "x$CFLAGS_FOR_TARGET" = x
; then
9523 if test "x${is_cross_compiler}" = xyes
; then
9524 CFLAGS_FOR_TARGET
="-g -O2"
9526 CFLAGS_FOR_TARGET
=$CFLAGS
9529 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9532 *" -g "* |
*" -g3 "*) ;;
9533 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9539 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9540 if test "x${is_cross_compiler}" = xyes
; then
9541 CXXFLAGS_FOR_TARGET
="-g -O2"
9543 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9544 case " $CXXFLAGS " in
9546 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9548 case " $CXXFLAGS " in
9549 *" -g "* |
*" -g3 "*) ;;
9550 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9558 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9559 # the named directory are copied to $(tooldir)/sys-include.
9560 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9561 if test x
${is_cross_compiler} = xno
; then
9562 echo 1>&2 '***' --with-headers is only supported when cross compiling
9565 if test x
"${with_headers}" != xyes
; then
9566 x
=${gcc_cv_tool_prefix}
9567 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9571 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9572 # the name directories are copied to $(tooldir)/lib. Multiple directories
9574 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9575 if test x
${is_cross_compiler} = xno
; then
9576 echo 1>&2 '***' --with-libs is only supported when cross compiling
9579 if test x
"${with_libs}" != xyes
; then
9580 # Copy the libraries in reverse order, so that files in the first named
9581 # library override files in subsequent libraries.
9582 x
=${gcc_cv_tool_prefix}
9583 for l
in ${with_libs}; do
9584 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9589 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9591 # This is done by determining whether or not the appropriate directory
9592 # is available, and by checking whether or not specific configurations
9593 # have requested that this magic not happen.
9595 # The command line options always override the explicit settings in
9596 # configure.ac, and the settings in configure.ac override this magic.
9598 # If the default for a toolchain is to use GNU as and ld, and you don't
9599 # want to do that, then you should use the --without-gnu-as and
9600 # --without-gnu-ld options for the configure script. Similarly, if
9601 # the default is to use the included zlib and you don't want to do that,
9602 # you should use the --with-system-zlib option for the configure script.
9604 if test x
${use_gnu_as} = x
&&
9605 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9607 extra_host_args
="$extra_host_args --with-gnu-as"
9610 if test x
${use_gnu_ld} = x
&&
9611 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9613 extra_host_args
="$extra_host_args --with-gnu-ld"
9616 if test x
${use_included_zlib} = x
&&
9617 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9620 with_system_zlib
=yes
9621 extra_host_args
="$extra_host_args --with-system-zlib"
9624 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9625 # can detect this case.
9627 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9629 extra_host_args
="$extra_host_args --with-newlib"
9632 # Handle ${copy_dirs}
9633 set fnord
${copy_dirs}
9635 while test $# != 0 ; do
9636 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9639 echo Copying
$1 to
$2
9641 # Use the install script to create the directory and all required
9642 # parent directories.
9643 if test -d $2 ; then
9647 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9650 # Copy the directory, assuming we have tar.
9651 # FIXME: Should we use B in the second tar? Not all systems support it.
9652 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9654 # It is the responsibility of the user to correctly adjust all
9655 # symlinks. If somebody can figure out how to handle them correctly
9656 # here, feel free to add the code.
9663 # Determine a target-dependent exec_prefix that the installed
9664 # gcc will search in. Keep this list sorted by triplet, with
9665 # the *-*-osname triplets last.
9668 i
[34567]86-pc-msdosdjgpp*)
9669 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9674 md_exec_prefix
=/usr
/ccs
/bin
9678 extra_arflags_for_target
=
9679 extra_nmflags_for_target
=
9680 extra_ranlibflags_for_target
=
9681 target_makefile_frag
=/dev
/null
9684 target_makefile_frag
="config/mt-spu"
9686 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9687 target_makefile_frag
="config/mt-sde"
9689 mipsisa
*-*-elfoabi*)
9690 target_makefile_frag
="config/mt-mips-elfoabi"
9692 mips
*-*-*linux
* | mips
*-*-gnu*)
9693 target_makefile_frag
="config/mt-mips-gnu"
9696 target_makefile_frag
="config/mt-nios2-elf"
9699 target_makefile_frag
="config/mt-android"
9701 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9702 target_makefile_frag
="config/mt-gnu"
9704 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9705 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9706 # commands to handle both 32-bit and 64-bit objects. These flags are
9707 # harmless if we're using GNU nm or ar.
9708 extra_arflags_for_target
=" -X32_64"
9709 extra_nmflags_for_target
=" -B -X32_64"
9713 alphaieee_frag
=/dev
/null
9716 # This just makes sure to use the -mieee option to build target libs.
9717 # This should probably be set individually by each library.
9718 alphaieee_frag
="config/mt-alphaieee"
9722 # If --enable-target-optspace always use -Os instead of -O2 to build
9723 # the target libraries, similarly if it is not specified, use -Os
9724 # on selected platforms.
9725 ospace_frag
=/dev
/null
9726 case "${enable_target_optspace}:${target}" in
9728 ospace_frag
="config/mt-ospace"
9731 ospace_frag
="config/mt-d30v"
9733 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9734 ospace_frag
="config/mt-ospace"
9739 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9743 # Some systems (e.g., one of the i386-aix systems the gas testers are
9744 # using) don't handle "\$" correctly, so don't use it here.
9745 tooldir
='${exec_prefix}'/${target_noncanonical}
9746 build_tooldir
=${tooldir}
9748 # Create a .gdbinit file which runs the one in srcdir
9749 # and tells GDB to look there for source files.
9751 if test -r ${srcdir}/.gdbinit
; then
9754 *) cat > .
/.gdbinit
<<EOF
9758 source ${srcdir}/.gdbinit
9764 # Make sure that the compiler is able to generate an executable. If it
9765 # can't, we are probably in trouble. We don't care whether we can run the
9766 # executable--we might be using a cross compiler--we only care whether it
9767 # can be created. At this point the main configure script has set CC.
9769 echo "int main () { return 0; }" > conftest.c
9770 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9771 if test $?
= 0 ; then
9772 if test -s conftest ||
test -s conftest.exe
; then
9778 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9779 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9786 # Decide which environment variable is used to find dynamic libraries.
9788 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9789 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9790 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9791 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9794 # On systems where the dynamic library environment variable is PATH,
9795 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9796 # built executables to PATH.
9797 if test "$RPATH_ENVVAR" = PATH
; then
9798 GCC_SHLIB_SUBDIR
=/shlib
9803 # Adjust the toplevel makefile according to whether bootstrap was selected.
9804 case $enable_bootstrap in
9806 bootstrap_suffix
=bootstrap
9807 BUILD_CONFIG
=bootstrap-debug
9810 bootstrap_suffix
=no-bootstrap
9815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9816 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9819 # Check whether --with-build-config was given.
9820 if test "${with_build_config+set}" = set; then :
9821 withval
=$with_build_config; case $with_build_config in
9822 yes) with_build_config
= ;;
9823 no
) with_build_config
= BUILD_CONFIG
= ;;
9828 if test "x${with_build_config}" != x
; then
9829 BUILD_CONFIG
=$with_build_config
9831 case $BUILD_CONFIG in
9833 if echo "int f (void) { return 0; }" > conftest.c
&&
9834 ${CC} -c conftest.c
&&
9835 mv conftest.o conftest.o.g0
&&
9836 ${CC} -c -g conftest.c
&&
9837 mv conftest.o conftest.o.g
&&
9838 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9843 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9848 $as_echo "$BUILD_CONFIG" >&6; }
9851 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9853 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9854 # Check whether --enable-vtable-verify was given.
9855 if test "${enable_vtable_verify+set}" = set; then :
9856 enableval
=$enable_vtable_verify; case "$enableval" in
9857 yes) enable_vtable_verify
=yes ;;
9858 no
) enable_vtable_verify
=no
;;
9859 *) enable_vtable_verify
=no
;;
9862 enable_vtable_verify
=no
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9866 $as_echo "$enable_vtable_verify" >&6; }
9868 # Record target_configdirs and the configure arguments for target and
9869 # build configuration in Makefile.
9870 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9871 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9872 bootstrap_fixincludes
=no
9874 # If we are building libgomp, bootstrap it.
9875 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9876 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9879 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9880 # or bootstrap-ubsan, bootstrap it.
9881 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9882 case "$BUILD_CONFIG" in
9883 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9884 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9885 bootstrap_fixincludes
=yes
9890 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9891 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9892 test "$enable_vtable_verify" != no
; then
9893 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9896 # If we are building libatomic and the list of enabled languages includes the
9897 # D frontend, bootstrap it.
9898 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9899 case ,${enable_languages}, in
9901 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
9906 # Determine whether gdb needs tk/tcl or not.
9907 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9908 # and in that case we want gdb to be built without tk. Ugh!
9909 # In fact I believe gdb is the *only* package directly dependent on tk,
9910 # so we should be able to put the 'maybe's in unconditionally and
9911 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9912 # 100% sure that that's safe though.
9914 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9915 case "$enable_gdbtk" in
9919 GDB_TK
="${gdb_tk}" ;;
9921 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9922 # distro. Eventually someone will fix this and move Insight, nee
9923 # gdbtk to a separate directory.
9924 if test -d ${srcdir}/gdb
/gdbtk
; then
9931 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9932 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9934 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9935 # else does, only include them if one of these is built. The Makefile
9936 # provides the ordering, so it's enough here to add to the list.
9937 case " ${configdirs} " in
9939 configdirs
="${configdirs} gnulib gdbsupport"
9942 configdirs
="${configdirs} gnulib gdbsupport"
9945 configdirs
="${configdirs} gnulib"
9949 # Strip out unwanted targets.
9951 # While at that, we remove Makefiles if we were started for recursive
9952 # configuration, so that the top-level Makefile reconfigures them,
9953 # like we used to do when configure itself was recursive.
9955 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9956 # but now we're fixing up the Makefile ourselves with the additional
9957 # commands passed to AC_CONFIG_FILES. Use separate variables
9958 # extrasub-{build,host,target} not because there is any reason to split
9959 # the substitutions up that way, but only to remain below the limit of
9960 # 99 commands in a script, for HP-UX sed.
9962 # Do not nest @if/@endif or @unless/@endunless pairs, because
9963 # configure will not warn you at all.
9965 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9966 yes:yes:*\ gold\
*:*,c
++,*) ;;
9967 yes:yes:*\ gold\
*:*)
9968 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9973 for module
in ${build_configdirs} ; do
9974 if test -z "${no_recursion}" \
9975 && test -f ${build_subdir}/${module}/Makefile
; then
9976 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9977 rm -f ${build_subdir}/${module}/Makefile
9979 extrasub_build
="$extrasub_build
9980 /^@if build-$module\$/d
9981 /^@endif build-$module\$/d
9982 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9983 /^@if build-$module-$bootstrap_suffix\$/d
9984 /^@endif build-$module-$bootstrap_suffix\$/d
9985 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9988 for module
in ${configdirs} ; do
9989 if test -z "${no_recursion}"; then
9990 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9991 if test -f ${file}; then
9992 echo 1>&2 "*** removing ${file} to force reconfigure"
9997 case ${module},${bootstrap_fixincludes} in
9998 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9999 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
10001 extrasub_host
="$extrasub_host
10003 /^@endif $module\$/d
10004 /^@unless $module\$/,/^@endunless $module\$/d
10005 /^@if $module-$host_bootstrap_suffix\$/d
10006 /^@endif $module-$host_bootstrap_suffix\$/d
10007 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
10010 for module
in ${target_configdirs} ; do
10011 if test -z "${no_recursion}" \
10012 && test -f ${target_subdir}/${module}/Makefile
; then
10013 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
10014 rm -f ${target_subdir}/${module}/Makefile
10017 # We only bootstrap target libraries listed in bootstrap_target_libs.
10018 case $bootstrap_target_libs in
10019 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
10020 *) target_bootstrap_suffix
=no-bootstrap
;;
10023 extrasub_target
="$extrasub_target
10024 /^@if target-$module\$/d
10025 /^@endif target-$module\$/d
10026 /^@unless target-$module\$/,/^@endunless target-$module\$/d
10027 /^@if target-$module-$target_bootstrap_suffix\$/d
10028 /^@endif target-$module-$target_bootstrap_suffix\$/d
10029 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
10032 # Do the final fixup along with target modules.
10033 extrasub_target
="$extrasub_target
10034 /^@if /,/^@endif /d
10038 if test "$enable_pgo_build" != "no"; then
10039 extrasub_build
="$extrasub_build
10040 /^@if pgo-build\$/d
10041 /^@endif pgo-build\$/d"
10044 # Create the serialization dependencies. This uses a temporary file.
10046 # Check whether --enable-serial-configure was given.
10047 if test "${enable_serial_configure+set}" = set; then :
10048 enableval
=$enable_serial_configure;
10052 case ${enable_serial_configure} in
10054 enable_serial_build_configure
=yes
10055 enable_serial_host_configure
=yes
10056 enable_serial_target_configure
=yes
10060 # These force 'configure's to be done one at a time, to avoid problems
10061 # with contention over a shared config.cache.
10063 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes
; then
10064 echo '# serdep.tmp' > serdep.tmp
10067 test "x${enable_serial_build_configure}" = xyes
&&
10068 for item
in ${build_configdirs} ; do
10071 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
10076 test "x${enable_serial_host_configure}" = xyes
&&
10077 for item
in ${configdirs} ; do
10080 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
10085 test "x${enable_serial_target_configure}" = xyes
&&
10086 for item
in ${target_configdirs} ; do
10089 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
10093 serialization_dependencies
=serdep.tmp
10096 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10097 # target, nonopt, and variable assignments. These are the ones we
10098 # might not want to pass down to subconfigures. The exception being
10099 # --cache-file=/dev/null, which is used to turn off the use of cache
10100 # files altogether, and which should be passed on to subconfigures.
10101 # Also strip program-prefix, program-suffix, and program-transform-name,
10102 # so that we can pass down a consistent program-transform-name.
10107 eval "set -- $ac_configure_args"
10110 if test X
"$skip_next" = X
"yes"; then
10114 if test X
"$keep_next" = X
"yes"; then
10117 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10119 baseargs
="$baseargs '$ac_arg'"
10120 tbaseargs
="$tbaseargs '$ac_arg'"
10125 # Handle separated arguments. Based on the logic generated by
10128 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
10129 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
10130 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
10131 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
10145 --with-* |
--without-*)
10146 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10150 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
10153 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
10162 mpc | mpfr | gmp | isl
)
10163 # If we're processing --with-$lib, --with-$lib-include or
10164 # --with-$lib-lib, for one of the libs above, and target is
10165 # different from host, don't pass the current argument to any
10166 # target library's configure.
10167 if test x
$is_cross_compiler = xyes
; then
10176 --cache-file=/dev
/null | \
10177 -cache-file=/dev
/null
)
10178 # Handled here to avoid the test to skip args below.
10179 baseargs
="$baseargs '$ac_arg'"
10180 tbaseargs
="$tbaseargs '$ac_arg'"
10181 # Assert: $separate_arg should always be no.
10182 keep_next
=$separate_arg
10198 -program-prefix* | \
10199 -program-suffix* | \
10200 -program-transform-name* )
10201 skip_next
=$separate_arg
10205 # An option. Add it.
10208 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10210 baseargs
="$baseargs '$ac_arg'"
10211 if test X
"$skip_targ" = Xno
; then
10212 tbaseargs
="$tbaseargs '$ac_arg'"
10214 keep_next
=$separate_arg
10217 # Either a variable assignment, or a nonopt (triplet). Don't
10218 # pass it down; let the Makefile handle this.
10223 # Remove the initial space we just introduced and, as these will be
10224 # expanded by make, quote '$'.
10225 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10227 # Add in --program-transform-name, after --program-prefix and
10228 # --program-suffix have been applied to it. Autoconf has already
10229 # doubled dollar signs and backslashes in program_transform_name; we want
10230 # the backslashes un-doubled, and then the entire thing wrapped in single
10231 # quotes, because this will be expanded first by make and then by the shell.
10232 # Also, because we want to override the logic in subdir configure scripts to
10233 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10234 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10235 ${program_transform_name}
10237 gcc_transform_name
=`cat conftestsed.out`
10238 rm -f conftestsed.out
10239 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
10240 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10241 if test "$silent" = yes; then
10242 baseargs
="$baseargs --silent"
10243 tbaseargs
="$tbaseargs --silent"
10246 baseargs
="$baseargs --disable-option-checking"
10247 tbaseargs
="$tbaseargs --disable-option-checking"
10249 if test "$enable_year2038" = no
; then
10250 baseargs
="$baseargs --disable-year2038"
10251 tbaseargs
="$tbaseargs --disable-year2038"
10254 # Record and document user additions to sub configure arguments.
10259 # For the build-side libraries, we just need to pretend we're native,
10260 # and not use the same cache file. Multilibs are neither needed nor
10261 # desired. We can't even use the same cache file for all build-side
10262 # libraries, as they're compiled differently; some with C, some with
10263 # C++ or with different feature-enabling options.
10264 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
10266 # For host modules, accept cache file option, or specification as blank.
10267 case "${cache_file}" in
10269 cache_file_option
="" ;;
10270 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10271 cache_file_option
="--cache-file=${cache_file}" ;;
10273 cache_file_option
="--cache-file=../${cache_file}" ;;
10276 # Host dirs don't like to share a cache file either, horribly enough.
10277 # This seems to be due to autoconf 2.5x stupidity.
10278 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10280 target_configargs
="$target_configargs ${tbaseargs}"
10282 # Passing a --with-cross-host argument lets the target libraries know
10283 # whether they are being built with a cross-compiler or being built
10284 # native. However, it would be better to use other mechanisms to make the
10285 # sorts of decisions they want to make on this basis. Please consider
10286 # this option to be deprecated. FIXME.
10287 if test x
${is_cross_compiler} = xyes
; then
10288 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10291 # Special user-friendly check for native x86_64-linux build, if
10292 # multilib is not explicitly enabled.
10293 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10294 x86_64-
*linux
*:yes:$build:$build:)
10295 # Make sure we have a development environment that handles 32-bit
10297 echo "int main () { return 0; }" > conftest.c
10298 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10299 if test $?
= 0 ; then
10300 if test -s conftest ||
test -s conftest.exe
; then
10305 if test x
${dev64} != xyes
; then
10306 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
10311 # Default to --enable-multilib.
10312 if test x
${enable_multilib} = x
; then
10313 target_configargs
="--enable-multilib ${target_configargs}"
10316 # Pass --with-newlib if appropriate. Note that target_configdirs has
10317 # changed from the earlier setting of with_newlib.
10318 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10319 target_configargs
="--with-newlib ${target_configargs}"
10322 # Different target subdirs use different values of certain variables
10323 # (notably CXX). Worse, multilibs use *lots* of different values.
10324 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10325 # it doesn't automatically accept command-line overrides of them.
10326 # This means it's not safe for target subdirs to share a cache file,
10327 # which is disgusting, but there you have it. Hopefully this can be
10328 # fixed in future. It's still worthwhile to use a cache file for each
10329 # directory. I think.
10331 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10332 # We need to pass --target, as newer autoconf's requires consistency
10333 # for target_alias and gcc doesn't manage it consistently.
10334 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10337 case " $target_configdirs " in
10339 case " $target_configargs " in
10340 *" --with-newlib "*)
10343 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10347 # If we're not building GCC, don't discard standard headers.
10348 if test -d ${srcdir}/gcc
; then
10349 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10351 if test "${build}" != "${host}"; then
10352 # On Canadian crosses, CC_FOR_TARGET will have already been set
10353 # by `configure', so we won't have an opportunity to add -Bgcc/
10354 # to it. This is right: we don't want to search that directory
10355 # for binaries, but we want the header files in there, so add
10357 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10359 # Someone might think of using the pre-installed headers on
10360 # Canadian crosses, in case the installed compiler is not fully
10361 # compatible with the compiler being built. In this case, it
10362 # would be better to flag an error than risking having
10363 # incompatible object files being constructed. We can't
10364 # guarantee that an error will be flagged, but let's hope the
10365 # compiler will do it, when presented with incompatible header
10370 case "${target}-${is_cross_compiler}" in
10371 i
[3456789]86-*-linux*-no)
10372 # Here host == target, so we don't need to build gcc,
10373 # so we don't want to discard standard headers.
10374 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10377 # If we're building newlib, use its generic headers last, but search
10378 # for any libc-related directories first (so make it the last -B
10380 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10382 # If we're building libgloss, find the startup file, simulator library
10383 # and linker script.
10384 case " $target_configdirs " in
10386 # Look for startup file, simulator library and maybe linker script.
10387 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10388 # Look for libnosys.a in case the target needs it.
10389 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10390 # Most targets have the linker script in the source directory.
10391 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10402 x86_64-
*mingw
* |
*-w64-mingw*)
10403 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10404 # however, use a symlink named 'mingw' in ${prefix} .
10405 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10408 # MinGW can't be handled as Cygwin above since it does not use newlib.
10409 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'
10413 # Allow the user to override the flags for
10414 # our build compiler if desired.
10415 if test x
"${build}" = x
"${host}" ; then
10416 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10417 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10418 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10419 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10422 # On Canadian crosses, we'll be searching the right directories for
10423 # the previously-installed cross compiler, so don't bother to add
10424 # flags for directories within the install tree of the compiler
10425 # being built; programs in there won't even run.
10426 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10427 # Search for pre-installed headers if nothing else fits.
10428 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10431 if test "x
${use_gnu_ld}" = x &&
10432 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10433 # Arrange for us to find uninstalled linker scripts.
10434 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10437 # Search for other target-specific linker scripts and such.
10438 case "${target}" in
10440 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10442 # The VxWorks support for shared libraries is getting in
10443 # incrementally. Make sure it doesn't get activated implicitly:
10445 if test "${enable_shared-unset}" = unset ; then
10447 # So the build of libraries knows ...
10448 target_configargs="${target_configargs} --disable-shared"
10450 host_configargs="${host_configargs} --disable-shared"
10455 # Makefile fragments.
10456 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10458 eval fragval=\$$frag
10459 if test $fragval != /dev/null; then
10460 eval $frag=${srcdir}/$fragval
10468 # Miscellanea: directories, flags, etc.
10477 # Build module lists & subconfigure args.
10481 # Host module lists & subconfigure args.
10486 # Target module lists & subconfigure args.
10511 # Generate default definitions for YACC, M4, LEX and other programs that run
10512 # on the build machine. These are used if the Makefile can't locate these
10513 # programs in objdir.
10514 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10516 for ac_prog in 'bison -y' byacc yacc
10518 # Extract the first word of "$ac_prog", so it can be a program name with args.
10519 set dummy $ac_prog; ac_word=$2
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10521 $as_echo_n "checking
for $ac_word...
" >&6; }
10522 if ${ac_cv_prog_YACC+:} false; then :
10523 $as_echo_n "(cached
) " >&6
10525 if test -n "$YACC"; then
10526 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529 for as_dir in $PATH
10532 test -z "$as_dir" && as_dir=.
10533 for ac_exec_ext in '' $ac_executable_extensions; do
10534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10535 ac_cv_prog_YACC="$ac_prog"
10536 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10545 YACC=$ac_cv_prog_YACC
10546 if test -n "$YACC"; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10548 $as_echo "$YACC" >&6; }
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10551 $as_echo "no
" >&6; }
10555 test -n "$YACC" && break
10557 test -n "$YACC" || YACC="$MISSING bison
-y"
10559 case " $build_configdirs " in
10560 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10563 for ac_prog in bison
10565 # Extract the first word of "$ac_prog", so it can be a program name with args.
10566 set dummy $ac_prog; ac_word=$2
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10568 $as_echo_n "checking
for $ac_word...
" >&6; }
10569 if ${ac_cv_prog_BISON+:} false; then :
10570 $as_echo_n "(cached
) " >&6
10572 if test -n "$BISON"; then
10573 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576 for as_dir in $PATH
10579 test -z "$as_dir" && as_dir=.
10580 for ac_exec_ext in '' $ac_executable_extensions; do
10581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10582 ac_cv_prog_BISON="$ac_prog"
10583 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10592 BISON=$ac_cv_prog_BISON
10593 if test -n "$BISON"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10595 $as_echo "$BISON" >&6; }
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10598 $as_echo "no
" >&6; }
10602 test -n "$BISON" && break
10604 test -n "$BISON" || BISON="$MISSING bison
"
10606 case " $build_configdirs " in
10607 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10610 for ac_prog in gm4 gnum4 m4
10612 # Extract the first word of "$ac_prog", so it can be a program name with args.
10613 set dummy $ac_prog; ac_word=$2
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10615 $as_echo_n "checking
for $ac_word...
" >&6; }
10616 if ${ac_cv_prog_M4+:} false; then :
10617 $as_echo_n "(cached
) " >&6
10619 if test -n "$M4"; then
10620 ac_cv_prog_M4="$M4" # Let the user override the test.
10622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623 for as_dir in $PATH
10626 test -z "$as_dir" && as_dir=.
10627 for ac_exec_ext in '' $ac_executable_extensions; do
10628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10629 ac_cv_prog_M4="$ac_prog"
10630 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10640 if test -n "$M4"; then
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10642 $as_echo "$M4" >&6; }
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10645 $as_echo "no
" >&6; }
10649 test -n "$M4" && break
10651 test -n "$M4" || M4="$MISSING m4"
10653 case " $build_configdirs " in
10654 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10657 for ac_prog in flex lex
10659 # Extract the first word of "$ac_prog", so it can be a program name with args.
10660 set dummy $ac_prog; ac_word=$2
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10662 $as_echo_n "checking
for $ac_word...
" >&6; }
10663 if ${ac_cv_prog_LEX+:} false; then :
10664 $as_echo_n "(cached
) " >&6
10666 if test -n "$LEX"; then
10667 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670 for as_dir in $PATH
10673 test -z "$as_dir" && as_dir=.
10674 for ac_exec_ext in '' $ac_executable_extensions; do
10675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10676 ac_cv_prog_LEX="$ac_prog"
10677 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10686 LEX=$ac_cv_prog_LEX
10687 if test -n "$LEX"; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10689 $as_echo "$LEX" >&6; }
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10692 $as_echo "no
" >&6; }
10696 test -n "$LEX" && break
10698 test -n "$LEX" || LEX="$MISSING flex
"
10700 case " $build_configdirs " in
10701 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10702 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10705 for ac_prog in flex
10707 # Extract the first word of "$ac_prog", so it can be a program name with args.
10708 set dummy $ac_prog; ac_word=$2
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10710 $as_echo_n "checking
for $ac_word...
" >&6; }
10711 if ${ac_cv_prog_FLEX+:} false; then :
10712 $as_echo_n "(cached
) " >&6
10714 if test -n "$FLEX"; then
10715 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10718 for as_dir in $PATH
10721 test -z "$as_dir" && as_dir=.
10722 for ac_exec_ext in '' $ac_executable_extensions; do
10723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10724 ac_cv_prog_FLEX="$ac_prog"
10725 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10734 FLEX=$ac_cv_prog_FLEX
10735 if test -n "$FLEX"; then
10736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10737 $as_echo "$FLEX" >&6; }
10739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10740 $as_echo "no
" >&6; }
10744 test -n "$FLEX" && break
10746 test -n "$FLEX" || FLEX="$MISSING flex
"
10748 case " $build_configdirs " in
10749 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10752 for ac_prog in makeinfo
10754 # Extract the first word of "$ac_prog", so it can be a program name with args.
10755 set dummy $ac_prog; ac_word=$2
10756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10757 $as_echo_n "checking
for $ac_word...
" >&6; }
10758 if ${ac_cv_prog_MAKEINFO+:} false; then :
10759 $as_echo_n "(cached
) " >&6
10761 if test -n "$MAKEINFO"; then
10762 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10765 for as_dir in $PATH
10768 test -z "$as_dir" && as_dir=.
10769 for ac_exec_ext in '' $ac_executable_extensions; do
10770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10771 ac_cv_prog_MAKEINFO="$ac_prog"
10772 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10781 MAKEINFO=$ac_cv_prog_MAKEINFO
10782 if test -n "$MAKEINFO"; then
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10784 $as_echo "$MAKEINFO" >&6; }
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10787 $as_echo "no
" >&6; }
10791 test -n "$MAKEINFO" && break
10793 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10795 case " $build_configdirs " in
10796 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10799 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10800 # higher, else we use the "missing
" dummy.
10801 if ${MAKEINFO} --version \
10802 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10805 MAKEINFO="$MISSING makeinfo
"
10811 # FIXME: expect and dejagnu may become build tools?
10813 for ac_prog in expect
10815 # Extract the first word of "$ac_prog", so it can be a program name with args.
10816 set dummy $ac_prog; ac_word=$2
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10818 $as_echo_n "checking
for $ac_word...
" >&6; }
10819 if ${ac_cv_prog_EXPECT+:} false; then :
10820 $as_echo_n "(cached
) " >&6
10822 if test -n "$EXPECT"; then
10823 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10826 for as_dir in $PATH
10829 test -z "$as_dir" && as_dir=.
10830 for ac_exec_ext in '' $ac_executable_extensions; do
10831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10832 ac_cv_prog_EXPECT="$ac_prog"
10833 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10842 EXPECT=$ac_cv_prog_EXPECT
10843 if test -n "$EXPECT"; then
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10845 $as_echo "$EXPECT" >&6; }
10847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10848 $as_echo "no
" >&6; }
10852 test -n "$EXPECT" && break
10854 test -n "$EXPECT" || EXPECT="expect
"
10856 case " $configdirs " in
10858 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10862 for ac_prog in runtest
10864 # Extract the first word of "$ac_prog", so it can be a program name with args.
10865 set dummy $ac_prog; ac_word=$2
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10867 $as_echo_n "checking
for $ac_word...
" >&6; }
10868 if ${ac_cv_prog_RUNTEST+:} false; then :
10869 $as_echo_n "(cached
) " >&6
10871 if test -n "$RUNTEST"; then
10872 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10875 for as_dir in $PATH
10878 test -z "$as_dir" && as_dir=.
10879 for ac_exec_ext in '' $ac_executable_extensions; do
10880 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10881 ac_cv_prog_RUNTEST="$ac_prog"
10882 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10891 RUNTEST=$ac_cv_prog_RUNTEST
10892 if test -n "$RUNTEST"; then
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10894 $as_echo "$RUNTEST" >&6; }
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10897 $as_echo "no
" >&6; }
10901 test -n "$RUNTEST" && break
10903 test -n "$RUNTEST" || RUNTEST="runtest
"
10905 case " $configdirs " in
10907 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10914 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10915 ncn_target_tool_prefix=
10916 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10920 if test -n "$AR"; then
10922 elif test -n "$ac_cv_prog_AR"; then
10926 if test -n "$ac_cv_prog_AR"; then
10927 for ncn_progname in ar; do
10928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10929 set dummy ${ncn_progname}; ac_word=$2
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10931 $as_echo_n "checking
for $ac_word...
" >&6; }
10932 if ${ac_cv_prog_AR+:} false; then :
10933 $as_echo_n "(cached
) " >&6
10935 if test -n "$AR"; then
10936 ac_cv_prog_AR="$AR" # Let the user override the test.
10938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939 for as_dir in $PATH
10942 test -z "$as_dir" && as_dir=.
10943 for ac_exec_ext in '' $ac_executable_extensions; do
10944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10945 ac_cv_prog_AR="${ncn_progname}"
10946 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10956 if test -n "$AR"; then
10957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10958 $as_echo "$AR" >&6; }
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10961 $as_echo "no
" >&6; }
10968 for ncn_progname in ar; do
10969 if test -n "$ncn_tool_prefix"; then
10970 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10971 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10973 $as_echo_n "checking
for $ac_word...
" >&6; }
10974 if ${ac_cv_prog_AR+:} false; then :
10975 $as_echo_n "(cached
) " >&6
10977 if test -n "$AR"; then
10978 ac_cv_prog_AR="$AR" # Let the user override the test.
10980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10981 for as_dir in $PATH
10984 test -z "$as_dir" && as_dir=.
10985 for ac_exec_ext in '' $ac_executable_extensions; do
10986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10987 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10988 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10998 if test -n "$AR"; then
10999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
11000 $as_echo "$AR" >&6; }
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11003 $as_echo "no
" >&6; }
11008 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
11009 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11010 set dummy ${ncn_progname}; ac_word=$2
11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11012 $as_echo_n "checking
for $ac_word...
" >&6; }
11013 if ${ac_cv_prog_AR+:} false; then :
11014 $as_echo_n "(cached
) " >&6
11016 if test -n "$AR"; then
11017 ac_cv_prog_AR="$AR" # Let the user override the test.
11019 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11020 for as_dir in $PATH
11023 test -z "$as_dir" && as_dir=.
11024 for ac_exec_ext in '' $ac_executable_extensions; do
11025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11026 ac_cv_prog_AR="${ncn_progname}"
11027 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11037 if test -n "$AR"; then
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
11039 $as_echo "$AR" >&6; }
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11042 $as_echo "no
" >&6; }
11047 test -n "$ac_cv_prog_AR" && break
11050 if test -z "$ac_cv_prog_AR" ; then
11052 if test $build = $host ; then
11055 AR="${ncn_tool_prefix}$2"
11061 if test -n "$AS"; then
11063 elif test -n "$ac_cv_prog_AS"; then
11067 if test -n "$ac_cv_prog_AS"; then
11068 for ncn_progname in as; do
11069 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11070 set dummy ${ncn_progname}; ac_word=$2
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11072 $as_echo_n "checking
for $ac_word...
" >&6; }
11073 if ${ac_cv_prog_AS+:} false; then :
11074 $as_echo_n "(cached
) " >&6
11076 if test -n "$AS"; then
11077 ac_cv_prog_AS="$AS" # Let the user override the test.
11079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11080 for as_dir in $PATH
11083 test -z "$as_dir" && as_dir=.
11084 for ac_exec_ext in '' $ac_executable_extensions; do
11085 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11086 ac_cv_prog_AS="${ncn_progname}"
11087 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11097 if test -n "$AS"; then
11098 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11099 $as_echo "$AS" >&6; }
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11102 $as_echo "no
" >&6; }
11109 for ncn_progname in as; do
11110 if test -n "$ncn_tool_prefix"; then
11111 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11112 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11114 $as_echo_n "checking
for $ac_word...
" >&6; }
11115 if ${ac_cv_prog_AS+:} false; then :
11116 $as_echo_n "(cached
) " >&6
11118 if test -n "$AS"; then
11119 ac_cv_prog_AS="$AS" # Let the user override the test.
11121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11122 for as_dir in $PATH
11125 test -z "$as_dir" && as_dir=.
11126 for ac_exec_ext in '' $ac_executable_extensions; do
11127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11128 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11129 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11139 if test -n "$AS"; then
11140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11141 $as_echo "$AS" >&6; }
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11144 $as_echo "no
" >&6; }
11149 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11150 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11151 set dummy ${ncn_progname}; ac_word=$2
11152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11153 $as_echo_n "checking
for $ac_word...
" >&6; }
11154 if ${ac_cv_prog_AS+:} false; then :
11155 $as_echo_n "(cached
) " >&6
11157 if test -n "$AS"; then
11158 ac_cv_prog_AS="$AS" # Let the user override the test.
11160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11161 for as_dir in $PATH
11164 test -z "$as_dir" && as_dir=.
11165 for ac_exec_ext in '' $ac_executable_extensions; do
11166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11167 ac_cv_prog_AS="${ncn_progname}"
11168 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11178 if test -n "$AS"; then
11179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11180 $as_echo "$AS" >&6; }
11182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11183 $as_echo "no
" >&6; }
11188 test -n "$ac_cv_prog_AS" && break
11191 if test -z "$ac_cv_prog_AS" ; then
11193 if test $build = $host ; then
11196 AS="${ncn_tool_prefix}$2"
11202 if test -n "$DLLTOOL"; then
11203 ac_cv_prog_DLLTOOL=$DLLTOOL
11204 elif test -n "$ac_cv_prog_DLLTOOL"; then
11205 DLLTOOL=$ac_cv_prog_DLLTOOL
11208 if test -n "$ac_cv_prog_DLLTOOL"; then
11209 for ncn_progname in dlltool; do
11210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11211 set dummy ${ncn_progname}; ac_word=$2
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11213 $as_echo_n "checking
for $ac_word...
" >&6; }
11214 if ${ac_cv_prog_DLLTOOL+:} false; then :
11215 $as_echo_n "(cached
) " >&6
11217 if test -n "$DLLTOOL"; then
11218 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11221 for as_dir in $PATH
11224 test -z "$as_dir" && as_dir=.
11225 for ac_exec_ext in '' $ac_executable_extensions; do
11226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11227 ac_cv_prog_DLLTOOL="${ncn_progname}"
11228 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11237 DLLTOOL=$ac_cv_prog_DLLTOOL
11238 if test -n "$DLLTOOL"; then
11239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11240 $as_echo "$DLLTOOL" >&6; }
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11243 $as_echo "no
" >&6; }
11250 for ncn_progname in dlltool; do
11251 if test -n "$ncn_tool_prefix"; then
11252 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11253 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11255 $as_echo_n "checking
for $ac_word...
" >&6; }
11256 if ${ac_cv_prog_DLLTOOL+:} false; then :
11257 $as_echo_n "(cached
) " >&6
11259 if test -n "$DLLTOOL"; then
11260 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11263 for as_dir in $PATH
11266 test -z "$as_dir" && as_dir=.
11267 for ac_exec_ext in '' $ac_executable_extensions; do
11268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11269 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11270 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11279 DLLTOOL=$ac_cv_prog_DLLTOOL
11280 if test -n "$DLLTOOL"; then
11281 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11282 $as_echo "$DLLTOOL" >&6; }
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11285 $as_echo "no
" >&6; }
11290 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11291 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11292 set dummy ${ncn_progname}; ac_word=$2
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11294 $as_echo_n "checking
for $ac_word...
" >&6; }
11295 if ${ac_cv_prog_DLLTOOL+:} false; then :
11296 $as_echo_n "(cached
) " >&6
11298 if test -n "$DLLTOOL"; then
11299 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11302 for as_dir in $PATH
11305 test -z "$as_dir" && as_dir=.
11306 for ac_exec_ext in '' $ac_executable_extensions; do
11307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11308 ac_cv_prog_DLLTOOL="${ncn_progname}"
11309 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11318 DLLTOOL=$ac_cv_prog_DLLTOOL
11319 if test -n "$DLLTOOL"; then
11320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11321 $as_echo "$DLLTOOL" >&6; }
11323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11324 $as_echo "no
" >&6; }
11329 test -n "$ac_cv_prog_DLLTOOL" && break
11332 if test -z "$ac_cv_prog_DLLTOOL" ; then
11334 if test $build = $host ; then
11337 DLLTOOL="${ncn_tool_prefix}$2"
11343 if test -n "$DSYMUTIL"; then
11344 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11345 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11346 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11349 if test -n "$ac_cv_prog_DSYMUTIL"; then
11350 for ncn_progname in dsymutil; do
11351 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11352 set dummy ${ncn_progname}; ac_word=$2
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11354 $as_echo_n "checking
for $ac_word...
" >&6; }
11355 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11356 $as_echo_n "(cached
) " >&6
11358 if test -n "$DSYMUTIL"; then
11359 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11362 for as_dir in $PATH
11365 test -z "$as_dir" && as_dir=.
11366 for ac_exec_ext in '' $ac_executable_extensions; do
11367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11368 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11369 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11378 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11379 if test -n "$DSYMUTIL"; then
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11381 $as_echo "$DSYMUTIL" >&6; }
11383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11384 $as_echo "no
" >&6; }
11391 for ncn_progname in dsymutil; do
11392 if test -n "$ncn_tool_prefix"; then
11393 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11394 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11396 $as_echo_n "checking
for $ac_word...
" >&6; }
11397 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11398 $as_echo_n "(cached
) " >&6
11400 if test -n "$DSYMUTIL"; then
11401 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11404 for as_dir in $PATH
11407 test -z "$as_dir" && as_dir=.
11408 for ac_exec_ext in '' $ac_executable_extensions; do
11409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11410 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11411 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11420 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11421 if test -n "$DSYMUTIL"; then
11422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11423 $as_echo "$DSYMUTIL" >&6; }
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11426 $as_echo "no
" >&6; }
11431 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11432 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11433 set dummy ${ncn_progname}; ac_word=$2
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11435 $as_echo_n "checking
for $ac_word...
" >&6; }
11436 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11437 $as_echo_n "(cached
) " >&6
11439 if test -n "$DSYMUTIL"; then
11440 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11443 for as_dir in $PATH
11446 test -z "$as_dir" && as_dir=.
11447 for ac_exec_ext in '' $ac_executable_extensions; do
11448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11449 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11450 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11459 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11460 if test -n "$DSYMUTIL"; then
11461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11462 $as_echo "$DSYMUTIL" >&6; }
11464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11465 $as_echo "no
" >&6; }
11470 test -n "$ac_cv_prog_DSYMUTIL" && break
11473 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11475 if test $build = $host ; then
11478 DSYMUTIL="${ncn_tool_prefix}$2"
11484 if test -n "$LD"; then
11486 elif test -n "$ac_cv_prog_LD"; then
11490 if test -n "$ac_cv_prog_LD"; then
11491 for ncn_progname in ld; do
11492 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11493 set dummy ${ncn_progname}; ac_word=$2
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11495 $as_echo_n "checking
for $ac_word...
" >&6; }
11496 if ${ac_cv_prog_LD+:} false; then :
11497 $as_echo_n "(cached
) " >&6
11499 if test -n "$LD"; then
11500 ac_cv_prog_LD="$LD" # Let the user override the test.
11502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11503 for as_dir in $PATH
11506 test -z "$as_dir" && as_dir=.
11507 for ac_exec_ext in '' $ac_executable_extensions; do
11508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11509 ac_cv_prog_LD="${ncn_progname}"
11510 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11520 if test -n "$LD"; then
11521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11522 $as_echo "$LD" >&6; }
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11525 $as_echo "no
" >&6; }
11532 for ncn_progname in ld; do
11533 if test -n "$ncn_tool_prefix"; then
11534 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11535 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11537 $as_echo_n "checking
for $ac_word...
" >&6; }
11538 if ${ac_cv_prog_LD+:} false; then :
11539 $as_echo_n "(cached
) " >&6
11541 if test -n "$LD"; then
11542 ac_cv_prog_LD="$LD" # Let the user override the test.
11544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11545 for as_dir in $PATH
11548 test -z "$as_dir" && as_dir=.
11549 for ac_exec_ext in '' $ac_executable_extensions; do
11550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11551 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11552 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11562 if test -n "$LD"; then
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11564 $as_echo "$LD" >&6; }
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11567 $as_echo "no
" >&6; }
11572 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11573 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11574 set dummy ${ncn_progname}; ac_word=$2
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11576 $as_echo_n "checking
for $ac_word...
" >&6; }
11577 if ${ac_cv_prog_LD+:} false; then :
11578 $as_echo_n "(cached
) " >&6
11580 if test -n "$LD"; then
11581 ac_cv_prog_LD="$LD" # Let the user override the test.
11583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11584 for as_dir in $PATH
11587 test -z "$as_dir" && as_dir=.
11588 for ac_exec_ext in '' $ac_executable_extensions; do
11589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11590 ac_cv_prog_LD="${ncn_progname}"
11591 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11601 if test -n "$LD"; then
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11603 $as_echo "$LD" >&6; }
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11606 $as_echo "no
" >&6; }
11611 test -n "$ac_cv_prog_LD" && break
11614 if test -z "$ac_cv_prog_LD" ; then
11616 if test $build = $host ; then
11619 LD="${ncn_tool_prefix}$2"
11625 if test -n "$LIPO"; then
11626 ac_cv_prog_LIPO=$LIPO
11627 elif test -n "$ac_cv_prog_LIPO"; then
11628 LIPO=$ac_cv_prog_LIPO
11631 if test -n "$ac_cv_prog_LIPO"; then
11632 for ncn_progname in lipo; do
11633 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11634 set dummy ${ncn_progname}; ac_word=$2
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11636 $as_echo_n "checking
for $ac_word...
" >&6; }
11637 if ${ac_cv_prog_LIPO+:} false; then :
11638 $as_echo_n "(cached
) " >&6
11640 if test -n "$LIPO"; then
11641 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11644 for as_dir in $PATH
11647 test -z "$as_dir" && as_dir=.
11648 for ac_exec_ext in '' $ac_executable_extensions; do
11649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11650 ac_cv_prog_LIPO="${ncn_progname}"
11651 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11660 LIPO=$ac_cv_prog_LIPO
11661 if test -n "$LIPO"; then
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11663 $as_echo "$LIPO" >&6; }
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11666 $as_echo "no
" >&6; }
11673 for ncn_progname in lipo; do
11674 if test -n "$ncn_tool_prefix"; then
11675 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11676 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11678 $as_echo_n "checking
for $ac_word...
" >&6; }
11679 if ${ac_cv_prog_LIPO+:} false; then :
11680 $as_echo_n "(cached
) " >&6
11682 if test -n "$LIPO"; then
11683 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686 for as_dir in $PATH
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
11691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11692 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11702 LIPO=$ac_cv_prog_LIPO
11703 if test -n "$LIPO"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11705 $as_echo "$LIPO" >&6; }
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11708 $as_echo "no
" >&6; }
11713 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11714 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11715 set dummy ${ncn_progname}; ac_word=$2
11716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11717 $as_echo_n "checking
for $ac_word...
" >&6; }
11718 if ${ac_cv_prog_LIPO+:} false; then :
11719 $as_echo_n "(cached
) " >&6
11721 if test -n "$LIPO"; then
11722 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11725 for as_dir in $PATH
11728 test -z "$as_dir" && as_dir=.
11729 for ac_exec_ext in '' $ac_executable_extensions; do
11730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11731 ac_cv_prog_LIPO="${ncn_progname}"
11732 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11741 LIPO=$ac_cv_prog_LIPO
11742 if test -n "$LIPO"; then
11743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11744 $as_echo "$LIPO" >&6; }
11746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11747 $as_echo "no
" >&6; }
11752 test -n "$ac_cv_prog_LIPO" && break
11755 if test -z "$ac_cv_prog_LIPO" ; then
11757 if test $build = $host ; then
11760 LIPO="${ncn_tool_prefix}$2"
11766 if test -n "$NM"; then
11768 elif test -n "$ac_cv_prog_NM"; then
11772 if test -n "$ac_cv_prog_NM"; then
11773 for ncn_progname in nm; do
11774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11775 set dummy ${ncn_progname}; ac_word=$2
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11777 $as_echo_n "checking
for $ac_word...
" >&6; }
11778 if ${ac_cv_prog_NM+:} false; then :
11779 $as_echo_n "(cached
) " >&6
11781 if test -n "$NM"; then
11782 ac_cv_prog_NM="$NM" # Let the user override the test.
11784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785 for as_dir in $PATH
11788 test -z "$as_dir" && as_dir=.
11789 for ac_exec_ext in '' $ac_executable_extensions; do
11790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11791 ac_cv_prog_NM="${ncn_progname}"
11792 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11802 if test -n "$NM"; then
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11804 $as_echo "$NM" >&6; }
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11807 $as_echo "no
" >&6; }
11814 for ncn_progname in nm; do
11815 if test -n "$ncn_tool_prefix"; then
11816 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11817 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11819 $as_echo_n "checking
for $ac_word...
" >&6; }
11820 if ${ac_cv_prog_NM+:} false; then :
11821 $as_echo_n "(cached
) " >&6
11823 if test -n "$NM"; then
11824 ac_cv_prog_NM="$NM" # Let the user override the test.
11826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11827 for as_dir in $PATH
11830 test -z "$as_dir" && as_dir=.
11831 for ac_exec_ext in '' $ac_executable_extensions; do
11832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11833 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11834 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11844 if test -n "$NM"; then
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11846 $as_echo "$NM" >&6; }
11848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11849 $as_echo "no
" >&6; }
11854 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11856 set dummy ${ncn_progname}; ac_word=$2
11857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11858 $as_echo_n "checking
for $ac_word...
" >&6; }
11859 if ${ac_cv_prog_NM+:} false; then :
11860 $as_echo_n "(cached
) " >&6
11862 if test -n "$NM"; then
11863 ac_cv_prog_NM="$NM" # Let the user override the test.
11865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11866 for as_dir in $PATH
11869 test -z "$as_dir" && as_dir=.
11870 for ac_exec_ext in '' $ac_executable_extensions; do
11871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11872 ac_cv_prog_NM="${ncn_progname}"
11873 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11883 if test -n "$NM"; then
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11885 $as_echo "$NM" >&6; }
11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11888 $as_echo "no
" >&6; }
11893 test -n "$ac_cv_prog_NM" && break
11896 if test -z "$ac_cv_prog_NM" ; then
11898 if test $build = $host ; then
11901 NM="${ncn_tool_prefix}$2"
11907 if test -n "$RANLIB"; then
11908 ac_cv_prog_RANLIB=$RANLIB
11909 elif test -n "$ac_cv_prog_RANLIB"; then
11910 RANLIB=$ac_cv_prog_RANLIB
11913 if test -n "$ac_cv_prog_RANLIB"; then
11914 for ncn_progname in ranlib; do
11915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11916 set dummy ${ncn_progname}; ac_word=$2
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11918 $as_echo_n "checking
for $ac_word...
" >&6; }
11919 if ${ac_cv_prog_RANLIB+:} false; then :
11920 $as_echo_n "(cached
) " >&6
11922 if test -n "$RANLIB"; then
11923 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11929 test -z "$as_dir" && as_dir=.
11930 for ac_exec_ext in '' $ac_executable_extensions; do
11931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11932 ac_cv_prog_RANLIB="${ncn_progname}"
11933 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11942 RANLIB=$ac_cv_prog_RANLIB
11943 if test -n "$RANLIB"; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11945 $as_echo "$RANLIB" >&6; }
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11948 $as_echo "no
" >&6; }
11955 for ncn_progname in ranlib; do
11956 if test -n "$ncn_tool_prefix"; then
11957 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11958 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11960 $as_echo_n "checking
for $ac_word...
" >&6; }
11961 if ${ac_cv_prog_RANLIB+:} false; then :
11962 $as_echo_n "(cached
) " >&6
11964 if test -n "$RANLIB"; then
11965 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968 for as_dir in $PATH
11971 test -z "$as_dir" && as_dir=.
11972 for ac_exec_ext in '' $ac_executable_extensions; do
11973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11974 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11975 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11984 RANLIB=$ac_cv_prog_RANLIB
11985 if test -n "$RANLIB"; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11987 $as_echo "$RANLIB" >&6; }
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11990 $as_echo "no
" >&6; }
11995 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11996 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11997 set dummy ${ncn_progname}; ac_word=$2
11998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11999 $as_echo_n "checking
for $ac_word...
" >&6; }
12000 if ${ac_cv_prog_RANLIB+:} false; then :
12001 $as_echo_n "(cached
) " >&6
12003 if test -n "$RANLIB"; then
12004 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12007 for as_dir in $PATH
12010 test -z "$as_dir" && as_dir=.
12011 for ac_exec_ext in '' $ac_executable_extensions; do
12012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12013 ac_cv_prog_RANLIB="${ncn_progname}"
12014 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12023 RANLIB=$ac_cv_prog_RANLIB
12024 if test -n "$RANLIB"; then
12025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
12026 $as_echo "$RANLIB" >&6; }
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12029 $as_echo "no
" >&6; }
12034 test -n "$ac_cv_prog_RANLIB" && break
12037 if test -z "$ac_cv_prog_RANLIB" ; then
12043 if test -n "$STRIP"; then
12044 ac_cv_prog_STRIP=$STRIP
12045 elif test -n "$ac_cv_prog_STRIP"; then
12046 STRIP=$ac_cv_prog_STRIP
12049 if test -n "$ac_cv_prog_STRIP"; then
12050 for ncn_progname in strip; do
12051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12052 set dummy ${ncn_progname}; ac_word=$2
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12054 $as_echo_n "checking
for $ac_word...
" >&6; }
12055 if ${ac_cv_prog_STRIP+:} false; then :
12056 $as_echo_n "(cached
) " >&6
12058 if test -n "$STRIP"; then
12059 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $PATH
12065 test -z "$as_dir" && as_dir=.
12066 for ac_exec_ext in '' $ac_executable_extensions; do
12067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12068 ac_cv_prog_STRIP="${ncn_progname}"
12069 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12078 STRIP=$ac_cv_prog_STRIP
12079 if test -n "$STRIP"; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12081 $as_echo "$STRIP" >&6; }
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12084 $as_echo "no
" >&6; }
12091 for ncn_progname in strip; do
12092 if test -n "$ncn_tool_prefix"; then
12093 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12094 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12096 $as_echo_n "checking
for $ac_word...
" >&6; }
12097 if ${ac_cv_prog_STRIP+:} false; then :
12098 $as_echo_n "(cached
) " >&6
12100 if test -n "$STRIP"; then
12101 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104 for as_dir in $PATH
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
12109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12110 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12111 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12120 STRIP=$ac_cv_prog_STRIP
12121 if test -n "$STRIP"; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12123 $as_echo "$STRIP" >&6; }
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12126 $as_echo "no
" >&6; }
12131 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12132 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12133 set dummy ${ncn_progname}; ac_word=$2
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12135 $as_echo_n "checking
for $ac_word...
" >&6; }
12136 if ${ac_cv_prog_STRIP+:} false; then :
12137 $as_echo_n "(cached
) " >&6
12139 if test -n "$STRIP"; then
12140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12143 for as_dir in $PATH
12146 test -z "$as_dir" && as_dir=.
12147 for ac_exec_ext in '' $ac_executable_extensions; do
12148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12149 ac_cv_prog_STRIP="${ncn_progname}"
12150 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12159 STRIP=$ac_cv_prog_STRIP
12160 if test -n "$STRIP"; then
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12162 $as_echo "$STRIP" >&6; }
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12165 $as_echo "no
" >&6; }
12170 test -n "$ac_cv_prog_STRIP" && break
12173 if test -z "$ac_cv_prog_STRIP" ; then
12179 if test -n "$WINDRES"; then
12180 ac_cv_prog_WINDRES=$WINDRES
12181 elif test -n "$ac_cv_prog_WINDRES"; then
12182 WINDRES=$ac_cv_prog_WINDRES
12185 if test -n "$ac_cv_prog_WINDRES"; then
12186 for ncn_progname in windres; do
12187 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12188 set dummy ${ncn_progname}; ac_word=$2
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12190 $as_echo_n "checking
for $ac_word...
" >&6; }
12191 if ${ac_cv_prog_WINDRES+:} false; then :
12192 $as_echo_n "(cached
) " >&6
12194 if test -n "$WINDRES"; then
12195 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12198 for as_dir in $PATH
12201 test -z "$as_dir" && as_dir=.
12202 for ac_exec_ext in '' $ac_executable_extensions; do
12203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12204 ac_cv_prog_WINDRES="${ncn_progname}"
12205 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12214 WINDRES=$ac_cv_prog_WINDRES
12215 if test -n "$WINDRES"; then
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12217 $as_echo "$WINDRES" >&6; }
12219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12220 $as_echo "no
" >&6; }
12227 for ncn_progname in windres; do
12228 if test -n "$ncn_tool_prefix"; then
12229 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12230 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12232 $as_echo_n "checking
for $ac_word...
" >&6; }
12233 if ${ac_cv_prog_WINDRES+:} false; then :
12234 $as_echo_n "(cached
) " >&6
12236 if test -n "$WINDRES"; then
12237 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12240 for as_dir in $PATH
12243 test -z "$as_dir" && as_dir=.
12244 for ac_exec_ext in '' $ac_executable_extensions; do
12245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12246 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12247 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12256 WINDRES=$ac_cv_prog_WINDRES
12257 if test -n "$WINDRES"; then
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12259 $as_echo "$WINDRES" >&6; }
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12262 $as_echo "no
" >&6; }
12267 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12269 set dummy ${ncn_progname}; ac_word=$2
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12271 $as_echo_n "checking
for $ac_word...
" >&6; }
12272 if ${ac_cv_prog_WINDRES+:} false; then :
12273 $as_echo_n "(cached
) " >&6
12275 if test -n "$WINDRES"; then
12276 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12279 for as_dir in $PATH
12282 test -z "$as_dir" && as_dir=.
12283 for ac_exec_ext in '' $ac_executable_extensions; do
12284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12285 ac_cv_prog_WINDRES="${ncn_progname}"
12286 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12295 WINDRES=$ac_cv_prog_WINDRES
12296 if test -n "$WINDRES"; then
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12298 $as_echo "$WINDRES" >&6; }
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12301 $as_echo "no
" >&6; }
12306 test -n "$ac_cv_prog_WINDRES" && break
12309 if test -z "$ac_cv_prog_WINDRES" ; then
12311 if test $build = $host ; then
12314 WINDRES="${ncn_tool_prefix}$2"
12320 if test -n "$WINDMC"; then
12321 ac_cv_prog_WINDMC=$WINDMC
12322 elif test -n "$ac_cv_prog_WINDMC"; then
12323 WINDMC=$ac_cv_prog_WINDMC
12326 if test -n "$ac_cv_prog_WINDMC"; then
12327 for ncn_progname in windmc; do
12328 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12329 set dummy ${ncn_progname}; ac_word=$2
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12331 $as_echo_n "checking
for $ac_word...
" >&6; }
12332 if ${ac_cv_prog_WINDMC+:} false; then :
12333 $as_echo_n "(cached
) " >&6
12335 if test -n "$WINDMC"; then
12336 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12339 for as_dir in $PATH
12342 test -z "$as_dir" && as_dir=.
12343 for ac_exec_ext in '' $ac_executable_extensions; do
12344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12345 ac_cv_prog_WINDMC="${ncn_progname}"
12346 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12355 WINDMC=$ac_cv_prog_WINDMC
12356 if test -n "$WINDMC"; then
12357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12358 $as_echo "$WINDMC" >&6; }
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12361 $as_echo "no
" >&6; }
12368 for ncn_progname in windmc; do
12369 if test -n "$ncn_tool_prefix"; then
12370 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12371 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12373 $as_echo_n "checking
for $ac_word...
" >&6; }
12374 if ${ac_cv_prog_WINDMC+:} false; then :
12375 $as_echo_n "(cached
) " >&6
12377 if test -n "$WINDMC"; then
12378 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12381 for as_dir in $PATH
12384 test -z "$as_dir" && as_dir=.
12385 for ac_exec_ext in '' $ac_executable_extensions; do
12386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12387 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12388 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12397 WINDMC=$ac_cv_prog_WINDMC
12398 if test -n "$WINDMC"; then
12399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12400 $as_echo "$WINDMC" >&6; }
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12403 $as_echo "no
" >&6; }
12408 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12409 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12410 set dummy ${ncn_progname}; ac_word=$2
12411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12412 $as_echo_n "checking
for $ac_word...
" >&6; }
12413 if ${ac_cv_prog_WINDMC+:} false; then :
12414 $as_echo_n "(cached
) " >&6
12416 if test -n "$WINDMC"; then
12417 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12420 for as_dir in $PATH
12423 test -z "$as_dir" && as_dir=.
12424 for ac_exec_ext in '' $ac_executable_extensions; do
12425 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12426 ac_cv_prog_WINDMC="${ncn_progname}"
12427 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12436 WINDMC=$ac_cv_prog_WINDMC
12437 if test -n "$WINDMC"; then
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12439 $as_echo "$WINDMC" >&6; }
12441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12442 $as_echo "no
" >&6; }
12447 test -n "$ac_cv_prog_WINDMC" && break
12450 if test -z "$ac_cv_prog_WINDMC" ; then
12452 if test $build = $host ; then
12455 WINDMC="${ncn_tool_prefix}$2"
12461 if test -n "$OBJCOPY"; then
12462 ac_cv_prog_OBJCOPY=$OBJCOPY
12463 elif test -n "$ac_cv_prog_OBJCOPY"; then
12464 OBJCOPY=$ac_cv_prog_OBJCOPY
12467 if test -n "$ac_cv_prog_OBJCOPY"; then
12468 for ncn_progname in objcopy; do
12469 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12470 set dummy ${ncn_progname}; ac_word=$2
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12472 $as_echo_n "checking
for $ac_word...
" >&6; }
12473 if ${ac_cv_prog_OBJCOPY+:} false; then :
12474 $as_echo_n "(cached
) " >&6
12476 if test -n "$OBJCOPY"; then
12477 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12480 for as_dir in $PATH
12483 test -z "$as_dir" && as_dir=.
12484 for ac_exec_ext in '' $ac_executable_extensions; do
12485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12486 ac_cv_prog_OBJCOPY="${ncn_progname}"
12487 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12496 OBJCOPY=$ac_cv_prog_OBJCOPY
12497 if test -n "$OBJCOPY"; then
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12499 $as_echo "$OBJCOPY" >&6; }
12501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12502 $as_echo "no
" >&6; }
12509 for ncn_progname in objcopy; do
12510 if test -n "$ncn_tool_prefix"; then
12511 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12512 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12514 $as_echo_n "checking
for $ac_word...
" >&6; }
12515 if ${ac_cv_prog_OBJCOPY+:} false; then :
12516 $as_echo_n "(cached
) " >&6
12518 if test -n "$OBJCOPY"; then
12519 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12522 for as_dir in $PATH
12525 test -z "$as_dir" && as_dir=.
12526 for ac_exec_ext in '' $ac_executable_extensions; do
12527 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12528 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12529 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12538 OBJCOPY=$ac_cv_prog_OBJCOPY
12539 if test -n "$OBJCOPY"; then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12541 $as_echo "$OBJCOPY" >&6; }
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12544 $as_echo "no
" >&6; }
12549 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12550 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12551 set dummy ${ncn_progname}; ac_word=$2
12552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12553 $as_echo_n "checking
for $ac_word...
" >&6; }
12554 if ${ac_cv_prog_OBJCOPY+:} false; then :
12555 $as_echo_n "(cached
) " >&6
12557 if test -n "$OBJCOPY"; then
12558 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12561 for as_dir in $PATH
12564 test -z "$as_dir" && as_dir=.
12565 for ac_exec_ext in '' $ac_executable_extensions; do
12566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12567 ac_cv_prog_OBJCOPY="${ncn_progname}"
12568 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12577 OBJCOPY=$ac_cv_prog_OBJCOPY
12578 if test -n "$OBJCOPY"; then
12579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12580 $as_echo "$OBJCOPY" >&6; }
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12583 $as_echo "no
" >&6; }
12588 test -n "$ac_cv_prog_OBJCOPY" && break
12591 if test -z "$ac_cv_prog_OBJCOPY" ; then
12593 if test $build = $host ; then
12596 OBJCOPY="${ncn_tool_prefix}$2"
12602 if test -n "$OBJDUMP"; then
12603 ac_cv_prog_OBJDUMP=$OBJDUMP
12604 elif test -n "$ac_cv_prog_OBJDUMP"; then
12605 OBJDUMP=$ac_cv_prog_OBJDUMP
12608 if test -n "$ac_cv_prog_OBJDUMP"; then
12609 for ncn_progname in objdump; do
12610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12611 set dummy ${ncn_progname}; ac_word=$2
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12613 $as_echo_n "checking
for $ac_word...
" >&6; }
12614 if ${ac_cv_prog_OBJDUMP+:} false; then :
12615 $as_echo_n "(cached
) " >&6
12617 if test -n "$OBJDUMP"; then
12618 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12621 for as_dir in $PATH
12624 test -z "$as_dir" && as_dir=.
12625 for ac_exec_ext in '' $ac_executable_extensions; do
12626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12627 ac_cv_prog_OBJDUMP="${ncn_progname}"
12628 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12637 OBJDUMP=$ac_cv_prog_OBJDUMP
12638 if test -n "$OBJDUMP"; then
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12640 $as_echo "$OBJDUMP" >&6; }
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12643 $as_echo "no
" >&6; }
12650 for ncn_progname in objdump; do
12651 if test -n "$ncn_tool_prefix"; then
12652 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12653 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12655 $as_echo_n "checking
for $ac_word...
" >&6; }
12656 if ${ac_cv_prog_OBJDUMP+:} false; then :
12657 $as_echo_n "(cached
) " >&6
12659 if test -n "$OBJDUMP"; then
12660 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12663 for as_dir in $PATH
12666 test -z "$as_dir" && as_dir=.
12667 for ac_exec_ext in '' $ac_executable_extensions; do
12668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12669 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12670 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12679 OBJDUMP=$ac_cv_prog_OBJDUMP
12680 if test -n "$OBJDUMP"; then
12681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12682 $as_echo "$OBJDUMP" >&6; }
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12685 $as_echo "no
" >&6; }
12690 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12691 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12692 set dummy ${ncn_progname}; ac_word=$2
12693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12694 $as_echo_n "checking
for $ac_word...
" >&6; }
12695 if ${ac_cv_prog_OBJDUMP+:} false; then :
12696 $as_echo_n "(cached
) " >&6
12698 if test -n "$OBJDUMP"; then
12699 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12702 for as_dir in $PATH
12705 test -z "$as_dir" && as_dir=.
12706 for ac_exec_ext in '' $ac_executable_extensions; do
12707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12708 ac_cv_prog_OBJDUMP="${ncn_progname}"
12709 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12718 OBJDUMP=$ac_cv_prog_OBJDUMP
12719 if test -n "$OBJDUMP"; then
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12721 $as_echo "$OBJDUMP" >&6; }
12723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12724 $as_echo "no
" >&6; }
12729 test -n "$ac_cv_prog_OBJDUMP" && break
12732 if test -z "$ac_cv_prog_OBJDUMP" ; then
12734 if test $build = $host ; then
12737 OBJDUMP="${ncn_tool_prefix}$2"
12743 if test -n "$OTOOL"; then
12744 ac_cv_prog_OTOOL=$OTOOL
12745 elif test -n "$ac_cv_prog_OTOOL"; then
12746 OTOOL=$ac_cv_prog_OTOOL
12749 if test -n "$ac_cv_prog_OTOOL"; then
12750 for ncn_progname in otool; do
12751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12752 set dummy ${ncn_progname}; ac_word=$2
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12754 $as_echo_n "checking
for $ac_word...
" >&6; }
12755 if ${ac_cv_prog_OTOOL+:} false; then :
12756 $as_echo_n "(cached
) " >&6
12758 if test -n "$OTOOL"; then
12759 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12762 for as_dir in $PATH
12765 test -z "$as_dir" && as_dir=.
12766 for ac_exec_ext in '' $ac_executable_extensions; do
12767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12768 ac_cv_prog_OTOOL="${ncn_progname}"
12769 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12778 OTOOL=$ac_cv_prog_OTOOL
12779 if test -n "$OTOOL"; then
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12781 $as_echo "$OTOOL" >&6; }
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12784 $as_echo "no
" >&6; }
12791 for ncn_progname in otool; do
12792 if test -n "$ncn_tool_prefix"; then
12793 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12794 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12796 $as_echo_n "checking
for $ac_word...
" >&6; }
12797 if ${ac_cv_prog_OTOOL+:} false; then :
12798 $as_echo_n "(cached
) " >&6
12800 if test -n "$OTOOL"; then
12801 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12804 for as_dir in $PATH
12807 test -z "$as_dir" && as_dir=.
12808 for ac_exec_ext in '' $ac_executable_extensions; do
12809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12810 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12811 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12820 OTOOL=$ac_cv_prog_OTOOL
12821 if test -n "$OTOOL"; then
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12823 $as_echo "$OTOOL" >&6; }
12825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12826 $as_echo "no
" >&6; }
12831 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12832 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12833 set dummy ${ncn_progname}; ac_word=$2
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12835 $as_echo_n "checking
for $ac_word...
" >&6; }
12836 if ${ac_cv_prog_OTOOL+:} false; then :
12837 $as_echo_n "(cached
) " >&6
12839 if test -n "$OTOOL"; then
12840 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12843 for as_dir in $PATH
12846 test -z "$as_dir" && as_dir=.
12847 for ac_exec_ext in '' $ac_executable_extensions; do
12848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12849 ac_cv_prog_OTOOL="${ncn_progname}"
12850 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12859 OTOOL=$ac_cv_prog_OTOOL
12860 if test -n "$OTOOL"; then
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12862 $as_echo "$OTOOL" >&6; }
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12865 $as_echo "no
" >&6; }
12870 test -n "$ac_cv_prog_OTOOL" && break
12873 if test -z "$ac_cv_prog_OTOOL" ; then
12875 if test $build = $host ; then
12878 OTOOL="${ncn_tool_prefix}$2"
12884 if test -n "$READELF"; then
12885 ac_cv_prog_READELF=$READELF
12886 elif test -n "$ac_cv_prog_READELF"; then
12887 READELF=$ac_cv_prog_READELF
12890 if test -n "$ac_cv_prog_READELF"; then
12891 for ncn_progname in readelf; do
12892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12893 set dummy ${ncn_progname}; ac_word=$2
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12895 $as_echo_n "checking
for $ac_word...
" >&6; }
12896 if ${ac_cv_prog_READELF+:} false; then :
12897 $as_echo_n "(cached
) " >&6
12899 if test -n "$READELF"; then
12900 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12903 for as_dir in $PATH
12906 test -z "$as_dir" && as_dir=.
12907 for ac_exec_ext in '' $ac_executable_extensions; do
12908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12909 ac_cv_prog_READELF="${ncn_progname}"
12910 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12919 READELF=$ac_cv_prog_READELF
12920 if test -n "$READELF"; then
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12922 $as_echo "$READELF" >&6; }
12924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12925 $as_echo "no
" >&6; }
12932 for ncn_progname in readelf; do
12933 if test -n "$ncn_tool_prefix"; then
12934 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12935 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12937 $as_echo_n "checking
for $ac_word...
" >&6; }
12938 if ${ac_cv_prog_READELF+:} false; then :
12939 $as_echo_n "(cached
) " >&6
12941 if test -n "$READELF"; then
12942 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12945 for as_dir in $PATH
12948 test -z "$as_dir" && as_dir=.
12949 for ac_exec_ext in '' $ac_executable_extensions; do
12950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12951 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12952 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12961 READELF=$ac_cv_prog_READELF
12962 if test -n "$READELF"; then
12963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12964 $as_echo "$READELF" >&6; }
12966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12967 $as_echo "no
" >&6; }
12972 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12973 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12974 set dummy ${ncn_progname}; ac_word=$2
12975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12976 $as_echo_n "checking
for $ac_word...
" >&6; }
12977 if ${ac_cv_prog_READELF+:} false; then :
12978 $as_echo_n "(cached
) " >&6
12980 if test -n "$READELF"; then
12981 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12984 for as_dir in $PATH
12987 test -z "$as_dir" && as_dir=.
12988 for ac_exec_ext in '' $ac_executable_extensions; do
12989 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12990 ac_cv_prog_READELF="${ncn_progname}"
12991 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13000 READELF=$ac_cv_prog_READELF
13001 if test -n "$READELF"; then
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
13003 $as_echo "$READELF" >&6; }
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13006 $as_echo "no
" >&6; }
13011 test -n "$ac_cv_prog_READELF" && break
13014 if test -z "$ac_cv_prog_READELF" ; then
13016 if test $build = $host ; then
13019 READELF="${ncn_tool_prefix}$2"
13029 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
13033 $as_echo_n "checking
for -plugin option...
" >&6; }
13035 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
13037 for plugin in $plugin_names; do
13038 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
13039 if test x$plugin_so = x$plugin; then
13040 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
13042 if test x$plugin_so != x$plugin; then
13043 plugin_option="--plugin $plugin_so"
13047 if test -n "$ac_tool_prefix"; then
13048 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
13049 set dummy ${ac_tool_prefix}ar; ac_word=$2
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13051 $as_echo_n "checking
for $ac_word...
" >&6; }
13052 if ${ac_cv_prog_AR+:} false; then :
13053 $as_echo_n "(cached
) " >&6
13055 if test -n "$AR"; then
13056 ac_cv_prog_AR="$AR" # Let the user override the test.
13058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13059 for as_dir in $PATH
13062 test -z "$as_dir" && as_dir=.
13063 for ac_exec_ext in '' $ac_executable_extensions; do
13064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13065 ac_cv_prog_AR="${ac_tool_prefix}ar"
13066 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13076 if test -n "$AR"; then
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
13078 $as_echo "$AR" >&6; }
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13081 $as_echo "no
" >&6; }
13086 if test -z "$ac_cv_prog_AR"; then
13088 # Extract the first word of "ar", so it can be a program name with args.
13089 set dummy ar; ac_word=$2
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13091 $as_echo_n "checking
for $ac_word...
" >&6; }
13092 if ${ac_cv_prog_ac_ct_AR+:} false; then :
13093 $as_echo_n "(cached
) " >&6
13095 if test -n "$ac_ct_AR"; then
13096 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13099 for as_dir in $PATH
13102 test -z "$as_dir" && as_dir=.
13103 for ac_exec_ext in '' $ac_executable_extensions; do
13104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13105 ac_cv_prog_ac_ct_AR="ar"
13106 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13115 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13116 if test -n "$ac_ct_AR"; then
13117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13118 $as_echo "$ac_ct_AR" >&6; }
13120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13121 $as_echo "no
" >&6; }
13124 if test "x
$ac_ct_AR" = x; then
13127 case $cross_compiling:$ac_tool_warned in
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13130 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13131 ac_tool_warned=yes ;;
13136 AR="$ac_cv_prog_AR"
13139 if test "${AR}" = "" ; then
13140 as_fn_error $? "Required archive tool
'ar' not found on PATH.
" "$LINENO" 5
13143 ${AR} $plugin_option rc conftest.a conftest.c
13144 if test "$?
" != 0; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
13146 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
13150 if test -n "$plugin_option"; then
13151 PLUGIN_OPTION="$plugin_option"
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
13153 $as_echo "$plugin_option" >&6; }
13155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13156 $as_echo "no
" >&6; }
13160 RANLIB_PLUGIN_OPTION=
13161 if test -n "$PLUGIN_OPTION"; then
13162 if $AR --help 2>&1 | grep -q "\
--plugin"; then
13163 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13165 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
13166 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13174 # Check whether --with-build-time-tools was given.
13175 if test "${with_build_time_tools+set}" = set; then :
13176 withval=$with_build_time_tools; case x"$withval" in
13179 with_build_time_tools=
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
13181 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
13185 with_build_time_tools=
13191 if test -n "$CC_FOR_TARGET"; then
13192 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13193 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13194 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13197 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13198 for ncn_progname in cc gcc; do
13199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13200 set dummy ${ncn_progname}; ac_word=$2
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13202 $as_echo_n "checking
for $ac_word...
" >&6; }
13203 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13204 $as_echo_n "(cached
) " >&6
13206 if test -n "$CC_FOR_TARGET"; then
13207 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13210 for as_dir in $PATH
13213 test -z "$as_dir" && as_dir=.
13214 for ac_exec_ext in '' $ac_executable_extensions; do
13215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13216 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13217 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13226 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13227 if test -n "$CC_FOR_TARGET"; then
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13229 $as_echo "$CC_FOR_TARGET" >&6; }
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13232 $as_echo "no
" >&6; }
13239 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13240 for ncn_progname in cc gcc; do
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13242 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13243 if test -x $with_build_time_tools/${ncn_progname}; then
13244 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13246 $as_echo "yes" >&6; }
13249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13250 $as_echo "no
" >&6; }
13255 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13256 for ncn_progname in cc gcc; do
13257 if test -n "$ncn_target_tool_prefix"; then
13258 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13259 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13261 $as_echo_n "checking
for $ac_word...
" >&6; }
13262 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13263 $as_echo_n "(cached
) " >&6
13265 if test -n "$CC_FOR_TARGET"; then
13266 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13269 for as_dir in $PATH
13272 test -z "$as_dir" && as_dir=.
13273 for ac_exec_ext in '' $ac_executable_extensions; do
13274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13275 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13276 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13285 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13286 if test -n "$CC_FOR_TARGET"; then
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13288 $as_echo "$CC_FOR_TARGET" >&6; }
13290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13291 $as_echo "no
" >&6; }
13296 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13297 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13298 set dummy ${ncn_progname}; ac_word=$2
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13300 $as_echo_n "checking
for $ac_word...
" >&6; }
13301 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13302 $as_echo_n "(cached
) " >&6
13304 if test -n "$CC_FOR_TARGET"; then
13305 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13308 for as_dir in $PATH
13311 test -z "$as_dir" && as_dir=.
13312 for ac_exec_ext in '' $ac_executable_extensions; do
13313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13314 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13315 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13324 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13325 if test -n "$CC_FOR_TARGET"; then
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13327 $as_echo "$CC_FOR_TARGET" >&6; }
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13330 $as_echo "no
" >&6; }
13335 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13339 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13341 if test $build = $target ; then
13344 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13347 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13352 if test -n "$CXX_FOR_TARGET"; then
13353 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13354 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13355 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13358 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13359 for ncn_progname in c++ g++ cxx gxx; do
13360 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13361 set dummy ${ncn_progname}; ac_word=$2
13362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13363 $as_echo_n "checking
for $ac_word...
" >&6; }
13364 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13365 $as_echo_n "(cached
) " >&6
13367 if test -n "$CXX_FOR_TARGET"; then
13368 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13371 for as_dir in $PATH
13374 test -z "$as_dir" && as_dir=.
13375 for ac_exec_ext in '' $ac_executable_extensions; do
13376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13377 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13378 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13387 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13388 if test -n "$CXX_FOR_TARGET"; then
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13390 $as_echo "$CXX_FOR_TARGET" >&6; }
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13393 $as_echo "no
" >&6; }
13400 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13401 for ncn_progname in c++ g++ cxx gxx; do
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13403 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13404 if test -x $with_build_time_tools/${ncn_progname}; then
13405 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13407 $as_echo "yes" >&6; }
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13411 $as_echo "no
" >&6; }
13416 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13417 for ncn_progname in c++ g++ cxx gxx; do
13418 if test -n "$ncn_target_tool_prefix"; then
13419 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13420 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13422 $as_echo_n "checking
for $ac_word...
" >&6; }
13423 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13424 $as_echo_n "(cached
) " >&6
13426 if test -n "$CXX_FOR_TARGET"; then
13427 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13430 for as_dir in $PATH
13433 test -z "$as_dir" && as_dir=.
13434 for ac_exec_ext in '' $ac_executable_extensions; do
13435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13436 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13437 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13446 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13447 if test -n "$CXX_FOR_TARGET"; then
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13449 $as_echo "$CXX_FOR_TARGET" >&6; }
13451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13452 $as_echo "no
" >&6; }
13457 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13459 set dummy ${ncn_progname}; ac_word=$2
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13461 $as_echo_n "checking
for $ac_word...
" >&6; }
13462 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13463 $as_echo_n "(cached
) " >&6
13465 if test -n "$CXX_FOR_TARGET"; then
13466 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469 for as_dir in $PATH
13472 test -z "$as_dir" && as_dir=.
13473 for ac_exec_ext in '' $ac_executable_extensions; do
13474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13475 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13476 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13485 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13486 if test -n "$CXX_FOR_TARGET"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13488 $as_echo "$CXX_FOR_TARGET" >&6; }
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13491 $as_echo "no
" >&6; }
13496 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13500 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13501 set dummy c++ g++ cxx gxx
13502 if test $build = $target ; then
13503 CXX_FOR_TARGET="$2"
13505 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13508 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13513 if test -n "$GCC_FOR_TARGET"; then
13514 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13515 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13516 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13519 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13520 for ncn_progname in gcc; do
13521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13522 set dummy ${ncn_progname}; ac_word=$2
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13524 $as_echo_n "checking
for $ac_word...
" >&6; }
13525 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13526 $as_echo_n "(cached
) " >&6
13528 if test -n "$GCC_FOR_TARGET"; then
13529 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13532 for as_dir in $PATH
13535 test -z "$as_dir" && as_dir=.
13536 for ac_exec_ext in '' $ac_executable_extensions; do
13537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13538 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13539 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13548 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13549 if test -n "$GCC_FOR_TARGET"; then
13550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13551 $as_echo "$GCC_FOR_TARGET" >&6; }
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13554 $as_echo "no
" >&6; }
13561 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13562 for ncn_progname in gcc; do
13563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13564 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13565 if test -x $with_build_time_tools/${ncn_progname}; then
13566 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13568 $as_echo "yes" >&6; }
13571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13572 $as_echo "no
" >&6; }
13577 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13578 for ncn_progname in gcc; do
13579 if test -n "$ncn_target_tool_prefix"; then
13580 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13581 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13583 $as_echo_n "checking
for $ac_word...
" >&6; }
13584 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13585 $as_echo_n "(cached
) " >&6
13587 if test -n "$GCC_FOR_TARGET"; then
13588 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591 for as_dir in $PATH
13594 test -z "$as_dir" && as_dir=.
13595 for ac_exec_ext in '' $ac_executable_extensions; do
13596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13597 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13598 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13607 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13608 if test -n "$GCC_FOR_TARGET"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13610 $as_echo "$GCC_FOR_TARGET" >&6; }
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13613 $as_echo "no
" >&6; }
13618 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13620 set dummy ${ncn_progname}; ac_word=$2
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13622 $as_echo_n "checking
for $ac_word...
" >&6; }
13623 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13624 $as_echo_n "(cached
) " >&6
13626 if test -n "$GCC_FOR_TARGET"; then
13627 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630 for as_dir in $PATH
13633 test -z "$as_dir" && as_dir=.
13634 for ac_exec_ext in '' $ac_executable_extensions; do
13635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13636 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13637 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13646 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13647 if test -n "$GCC_FOR_TARGET"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13649 $as_echo "$GCC_FOR_TARGET" >&6; }
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13652 $as_echo "no
" >&6; }
13657 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13661 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13662 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13664 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13669 if test -n "$GFORTRAN_FOR_TARGET"; then
13670 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13671 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13672 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13675 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13676 for ncn_progname in gfortran; do
13677 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13678 set dummy ${ncn_progname}; ac_word=$2
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13680 $as_echo_n "checking
for $ac_word...
" >&6; }
13681 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13682 $as_echo_n "(cached
) " >&6
13684 if test -n "$GFORTRAN_FOR_TARGET"; then
13685 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13688 for as_dir in $PATH
13691 test -z "$as_dir" && as_dir=.
13692 for ac_exec_ext in '' $ac_executable_extensions; do
13693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13694 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13695 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13704 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13705 if test -n "$GFORTRAN_FOR_TARGET"; then
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13707 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13710 $as_echo "no
" >&6; }
13717 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13718 for ncn_progname in gfortran; do
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13720 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13721 if test -x $with_build_time_tools/${ncn_progname}; then
13722 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13724 $as_echo "yes" >&6; }
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13728 $as_echo "no
" >&6; }
13733 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13734 for ncn_progname in gfortran; do
13735 if test -n "$ncn_target_tool_prefix"; then
13736 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13737 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13739 $as_echo_n "checking
for $ac_word...
" >&6; }
13740 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13741 $as_echo_n "(cached
) " >&6
13743 if test -n "$GFORTRAN_FOR_TARGET"; then
13744 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13747 for as_dir in $PATH
13750 test -z "$as_dir" && as_dir=.
13751 for ac_exec_ext in '' $ac_executable_extensions; do
13752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13753 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13754 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13763 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13764 if test -n "$GFORTRAN_FOR_TARGET"; then
13765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13766 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13769 $as_echo "no
" >&6; }
13774 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13776 set dummy ${ncn_progname}; ac_word=$2
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13778 $as_echo_n "checking
for $ac_word...
" >&6; }
13779 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13780 $as_echo_n "(cached
) " >&6
13782 if test -n "$GFORTRAN_FOR_TARGET"; then
13783 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13786 for as_dir in $PATH
13789 test -z "$as_dir" && as_dir=.
13790 for ac_exec_ext in '' $ac_executable_extensions; do
13791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13792 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13793 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13802 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13803 if test -n "$GFORTRAN_FOR_TARGET"; then
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13805 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13808 $as_echo "no
" >&6; }
13813 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13817 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13819 if test $build = $target ; then
13820 GFORTRAN_FOR_TARGET="$2"
13822 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13825 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13830 if test -n "$GOC_FOR_TARGET"; then
13831 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13832 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13833 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13836 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13837 for ncn_progname in gccgo; do
13838 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13839 set dummy ${ncn_progname}; ac_word=$2
13840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13841 $as_echo_n "checking
for $ac_word...
" >&6; }
13842 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13843 $as_echo_n "(cached
) " >&6
13845 if test -n "$GOC_FOR_TARGET"; then
13846 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13849 for as_dir in $PATH
13852 test -z "$as_dir" && as_dir=.
13853 for ac_exec_ext in '' $ac_executable_extensions; do
13854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13855 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13856 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13865 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13866 if test -n "$GOC_FOR_TARGET"; then
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13868 $as_echo "$GOC_FOR_TARGET" >&6; }
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13871 $as_echo "no
" >&6; }
13878 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13879 for ncn_progname in gccgo; do
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13881 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13882 if test -x $with_build_time_tools/${ncn_progname}; then
13883 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13885 $as_echo "yes" >&6; }
13888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13889 $as_echo "no
" >&6; }
13894 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13895 for ncn_progname in gccgo; do
13896 if test -n "$ncn_target_tool_prefix"; then
13897 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13898 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13900 $as_echo_n "checking
for $ac_word...
" >&6; }
13901 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13902 $as_echo_n "(cached
) " >&6
13904 if test -n "$GOC_FOR_TARGET"; then
13905 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13908 for as_dir in $PATH
13911 test -z "$as_dir" && as_dir=.
13912 for ac_exec_ext in '' $ac_executable_extensions; do
13913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13914 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13915 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13924 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13925 if test -n "$GOC_FOR_TARGET"; then
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13927 $as_echo "$GOC_FOR_TARGET" >&6; }
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13930 $as_echo "no
" >&6; }
13935 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13936 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13937 set dummy ${ncn_progname}; ac_word=$2
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13939 $as_echo_n "checking
for $ac_word...
" >&6; }
13940 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13941 $as_echo_n "(cached
) " >&6
13943 if test -n "$GOC_FOR_TARGET"; then
13944 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947 for as_dir in $PATH
13950 test -z "$as_dir" && as_dir=.
13951 for ac_exec_ext in '' $ac_executable_extensions; do
13952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13953 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13954 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13963 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13964 if test -n "$GOC_FOR_TARGET"; then
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13966 $as_echo "$GOC_FOR_TARGET" >&6; }
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13969 $as_echo "no
" >&6; }
13974 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13978 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13980 if test $build = $target ; then
13981 GOC_FOR_TARGET="$2"
13983 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13986 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13991 if test -n "$GDC_FOR_TARGET"; then
13992 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13993 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13994 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13997 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13998 for ncn_progname in gdc; do
13999 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14000 set dummy ${ncn_progname}; ac_word=$2
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14002 $as_echo_n "checking
for $ac_word...
" >&6; }
14003 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14004 $as_echo_n "(cached
) " >&6
14006 if test -n "$GDC_FOR_TARGET"; then
14007 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14010 for as_dir in $PATH
14013 test -z "$as_dir" && as_dir=.
14014 for ac_exec_ext in '' $ac_executable_extensions; do
14015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14016 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14017 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14026 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14027 if test -n "$GDC_FOR_TARGET"; then
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14029 $as_echo "$GDC_FOR_TARGET" >&6; }
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14032 $as_echo "no
" >&6; }
14039 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
14040 for ncn_progname in gdc; do
14041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14042 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14043 if test -x $with_build_time_tools/${ncn_progname}; then
14044 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14046 $as_echo "yes" >&6; }
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14050 $as_echo "no
" >&6; }
14055 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
14056 for ncn_progname in gdc; do
14057 if test -n "$ncn_target_tool_prefix"; then
14058 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14059 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14061 $as_echo_n "checking
for $ac_word...
" >&6; }
14062 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14063 $as_echo_n "(cached
) " >&6
14065 if test -n "$GDC_FOR_TARGET"; then
14066 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14069 for as_dir in $PATH
14072 test -z "$as_dir" && as_dir=.
14073 for ac_exec_ext in '' $ac_executable_extensions; do
14074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14075 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14076 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14085 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14086 if test -n "$GDC_FOR_TARGET"; then
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14088 $as_echo "$GDC_FOR_TARGET" >&6; }
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14091 $as_echo "no
" >&6; }
14096 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14097 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14098 set dummy ${ncn_progname}; ac_word=$2
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14100 $as_echo_n "checking
for $ac_word...
" >&6; }
14101 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14102 $as_echo_n "(cached
) " >&6
14104 if test -n "$GDC_FOR_TARGET"; then
14105 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14108 for as_dir in $PATH
14111 test -z "$as_dir" && as_dir=.
14112 for ac_exec_ext in '' $ac_executable_extensions; do
14113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14114 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14115 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14124 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14125 if test -n "$GDC_FOR_TARGET"; then
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14127 $as_echo "$GDC_FOR_TARGET" >&6; }
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14130 $as_echo "no
" >&6; }
14135 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14139 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14141 if test $build = $target ; then
14142 GDC_FOR_TARGET="$2"
14144 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14147 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14152 if test -n "$GM2_FOR_TARGET"; then
14153 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
14154 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14155 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14158 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
14159 for ncn_progname in gm2; do
14160 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14161 set dummy ${ncn_progname}; ac_word=$2
14162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14163 $as_echo_n "checking
for $ac_word...
" >&6; }
14164 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14165 $as_echo_n "(cached
) " >&6
14167 if test -n "$GM2_FOR_TARGET"; then
14168 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14171 for as_dir in $PATH
14174 test -z "$as_dir" && as_dir=.
14175 for ac_exec_ext in '' $ac_executable_extensions; do
14176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14177 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14178 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14187 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14188 if test -n "$GM2_FOR_TARGET"; then
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14190 $as_echo "$GM2_FOR_TARGET" >&6; }
14192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14193 $as_echo "no
" >&6; }
14200 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14201 for ncn_progname in gm2; do
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14203 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14204 if test -x $with_build_time_tools/${ncn_progname}; then
14205 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14207 $as_echo "yes" >&6; }
14210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14211 $as_echo "no
" >&6; }
14216 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14217 for ncn_progname in gm2; do
14218 if test -n "$ncn_target_tool_prefix"; then
14219 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14220 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14222 $as_echo_n "checking
for $ac_word...
" >&6; }
14223 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14224 $as_echo_n "(cached
) " >&6
14226 if test -n "$GM2_FOR_TARGET"; then
14227 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14230 for as_dir in $PATH
14233 test -z "$as_dir" && as_dir=.
14234 for ac_exec_ext in '' $ac_executable_extensions; do
14235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14236 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14237 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14246 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14247 if test -n "$GM2_FOR_TARGET"; then
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14249 $as_echo "$GM2_FOR_TARGET" >&6; }
14251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14252 $as_echo "no
" >&6; }
14257 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14258 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14259 set dummy ${ncn_progname}; ac_word=$2
14260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14261 $as_echo_n "checking
for $ac_word...
" >&6; }
14262 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14263 $as_echo_n "(cached
) " >&6
14265 if test -n "$GM2_FOR_TARGET"; then
14266 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14269 for as_dir in $PATH
14272 test -z "$as_dir" && as_dir=.
14273 for ac_exec_ext in '' $ac_executable_extensions; do
14274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14275 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14276 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14285 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14286 if test -n "$GM2_FOR_TARGET"; then
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14288 $as_echo "$GM2_FOR_TARGET" >&6; }
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14291 $as_echo "no
" >&6; }
14296 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14300 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14302 if test $build = $target ; then
14303 GM2_FOR_TARGET="$2"
14305 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14308 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14313 cat > conftest.c << \EOF
14318 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14319 have_gcc_for_target=yes
14321 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14322 have_gcc_for_target=no
14329 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14330 if test -n "$with_build_time_tools"; then
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
14332 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
14333 if test -x $with_build_time_tools/ar; then
14334 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14335 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
14337 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14340 $as_echo "no
" >&6; }
14342 elif test $build != $host && test $have_gcc_for_target = yes; then
14343 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14344 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14345 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14348 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14349 # Extract the first word of "ar", so it can be a program name with args.
14350 set dummy ar; ac_word=$2
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14352 $as_echo_n "checking
for $ac_word...
" >&6; }
14353 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14354 $as_echo_n "(cached
) " >&6
14356 case $AR_FOR_TARGET in
14358 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14362 for as_dir in $gcc_cv_tool_dirs
14365 test -z "$as_dir" && as_dir=.
14366 for ac_exec_ext in '' $ac_executable_extensions; do
14367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14368 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14369 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14379 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14380 if test -n "$AR_FOR_TARGET"; then
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14382 $as_echo "$AR_FOR_TARGET" >&6; }
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14385 $as_echo "no
" >&6; }
14390 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14393 if test -n "$AR_FOR_TARGET"; then
14394 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14395 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14396 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14399 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14400 for ncn_progname in ar; do
14401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14402 set dummy ${ncn_progname}; ac_word=$2
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14404 $as_echo_n "checking
for $ac_word...
" >&6; }
14405 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14406 $as_echo_n "(cached
) " >&6
14408 if test -n "$AR_FOR_TARGET"; then
14409 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14412 for as_dir in $PATH
14415 test -z "$as_dir" && as_dir=.
14416 for ac_exec_ext in '' $ac_executable_extensions; do
14417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14418 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14419 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14428 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14429 if test -n "$AR_FOR_TARGET"; then
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14431 $as_echo "$AR_FOR_TARGET" >&6; }
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14434 $as_echo "no
" >&6; }
14441 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14442 for ncn_progname in ar; do
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14444 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14445 if test -x $with_build_time_tools/${ncn_progname}; then
14446 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14448 $as_echo "yes" >&6; }
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14452 $as_echo "no
" >&6; }
14457 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14458 for ncn_progname in ar; do
14459 if test -n "$ncn_target_tool_prefix"; then
14460 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14461 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14463 $as_echo_n "checking
for $ac_word...
" >&6; }
14464 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14465 $as_echo_n "(cached
) " >&6
14467 if test -n "$AR_FOR_TARGET"; then
14468 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14471 for as_dir in $PATH
14474 test -z "$as_dir" && as_dir=.
14475 for ac_exec_ext in '' $ac_executable_extensions; do
14476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14477 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14478 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14487 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14488 if test -n "$AR_FOR_TARGET"; then
14489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14490 $as_echo "$AR_FOR_TARGET" >&6; }
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14493 $as_echo "no
" >&6; }
14498 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14500 set dummy ${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_AR_FOR_TARGET+:} false; then :
14504 $as_echo_n "(cached
) " >&6
14506 if test -n "$AR_FOR_TARGET"; then
14507 ac_cv_prog_AR_FOR_TARGET="$AR_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_AR_FOR_TARGET="${ncn_progname}"
14517 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14526 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14527 if test -n "$AR_FOR_TARGET"; then
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14529 $as_echo "$AR_FOR_TARGET" >&6; }
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14532 $as_echo "no
" >&6; }
14537 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14541 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14543 if test $build = $target ; then
14546 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14549 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14553 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14559 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14560 if test -n "$with_build_time_tools"; then
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14562 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14563 if test -x $with_build_time_tools/as; then
14564 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14565 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14567 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14570 $as_echo "no
" >&6; }
14572 elif test $build != $host && test $have_gcc_for_target = yes; then
14573 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14574 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14575 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14578 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14579 # Extract the first word of "as
", so it can be a program name with args.
14580 set dummy as; ac_word=$2
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14582 $as_echo_n "checking
for $ac_word...
" >&6; }
14583 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14584 $as_echo_n "(cached
) " >&6
14586 case $AS_FOR_TARGET in
14588 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14592 for as_dir in $gcc_cv_tool_dirs
14595 test -z "$as_dir" && as_dir=.
14596 for ac_exec_ext in '' $ac_executable_extensions; do
14597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14598 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14599 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14609 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14610 if test -n "$AS_FOR_TARGET"; then
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14612 $as_echo "$AS_FOR_TARGET" >&6; }
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14615 $as_echo "no
" >&6; }
14620 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14623 if test -n "$AS_FOR_TARGET"; then
14624 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14625 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14626 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14629 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14630 for ncn_progname in as; do
14631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14632 set dummy ${ncn_progname}; ac_word=$2
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14634 $as_echo_n "checking
for $ac_word...
" >&6; }
14635 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14636 $as_echo_n "(cached
) " >&6
14638 if test -n "$AS_FOR_TARGET"; then
14639 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14642 for as_dir in $PATH
14645 test -z "$as_dir" && as_dir=.
14646 for ac_exec_ext in '' $ac_executable_extensions; do
14647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14648 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14649 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14658 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14659 if test -n "$AS_FOR_TARGET"; then
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14661 $as_echo "$AS_FOR_TARGET" >&6; }
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14664 $as_echo "no
" >&6; }
14671 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14672 for ncn_progname in as; do
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14674 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14675 if test -x $with_build_time_tools/${ncn_progname}; then
14676 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14678 $as_echo "yes" >&6; }
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14682 $as_echo "no
" >&6; }
14687 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14688 for ncn_progname in as; do
14689 if test -n "$ncn_target_tool_prefix"; then
14690 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14691 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14693 $as_echo_n "checking
for $ac_word...
" >&6; }
14694 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14695 $as_echo_n "(cached
) " >&6
14697 if test -n "$AS_FOR_TARGET"; then
14698 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14701 for as_dir in $PATH
14704 test -z "$as_dir" && as_dir=.
14705 for ac_exec_ext in '' $ac_executable_extensions; do
14706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14707 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14708 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14717 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14718 if test -n "$AS_FOR_TARGET"; then
14719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14720 $as_echo "$AS_FOR_TARGET" >&6; }
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14723 $as_echo "no
" >&6; }
14728 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14730 set dummy ${ncn_progname}; ac_word=$2
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14732 $as_echo_n "checking
for $ac_word...
" >&6; }
14733 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14734 $as_echo_n "(cached
) " >&6
14736 if test -n "$AS_FOR_TARGET"; then
14737 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14740 for as_dir in $PATH
14743 test -z "$as_dir" && as_dir=.
14744 for ac_exec_ext in '' $ac_executable_extensions; do
14745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14746 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14747 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14756 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14757 if test -n "$AS_FOR_TARGET"; then
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14759 $as_echo "$AS_FOR_TARGET" >&6; }
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14762 $as_echo "no
" >&6; }
14767 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14771 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14773 if test $build = $target ; then
14776 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14779 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14783 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14789 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14790 if test -n "$with_build_time_tools"; then
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14792 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14793 if test -x $with_build_time_tools/dlltool; then
14794 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14795 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14797 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14800 $as_echo "no
" >&6; }
14802 elif test $build != $host && test $have_gcc_for_target = yes; then
14803 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14804 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14805 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14808 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14809 # Extract the first word of "dlltool
", so it can be a program name with args.
14810 set dummy dlltool; ac_word=$2
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14812 $as_echo_n "checking
for $ac_word...
" >&6; }
14813 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14814 $as_echo_n "(cached
) " >&6
14816 case $DLLTOOL_FOR_TARGET in
14818 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14822 for as_dir in $gcc_cv_tool_dirs
14825 test -z "$as_dir" && as_dir=.
14826 for ac_exec_ext in '' $ac_executable_extensions; do
14827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14828 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14829 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14839 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14840 if test -n "$DLLTOOL_FOR_TARGET"; then
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14842 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14845 $as_echo "no
" >&6; }
14850 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14853 if test -n "$DLLTOOL_FOR_TARGET"; then
14854 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14855 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14856 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14859 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14860 for ncn_progname in dlltool; do
14861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14862 set dummy ${ncn_progname}; ac_word=$2
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14864 $as_echo_n "checking
for $ac_word...
" >&6; }
14865 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14866 $as_echo_n "(cached
) " >&6
14868 if test -n "$DLLTOOL_FOR_TARGET"; then
14869 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14872 for as_dir in $PATH
14875 test -z "$as_dir" && as_dir=.
14876 for ac_exec_ext in '' $ac_executable_extensions; do
14877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14878 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14879 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14888 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14889 if test -n "$DLLTOOL_FOR_TARGET"; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14891 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14894 $as_echo "no
" >&6; }
14901 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14902 for ncn_progname in dlltool; do
14903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14904 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14905 if test -x $with_build_time_tools/${ncn_progname}; then
14906 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14908 $as_echo "yes" >&6; }
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14912 $as_echo "no
" >&6; }
14917 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14918 for ncn_progname in dlltool; do
14919 if test -n "$ncn_target_tool_prefix"; then
14920 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14921 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14923 $as_echo_n "checking
for $ac_word...
" >&6; }
14924 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14925 $as_echo_n "(cached
) " >&6
14927 if test -n "$DLLTOOL_FOR_TARGET"; then
14928 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14931 for as_dir in $PATH
14934 test -z "$as_dir" && as_dir=.
14935 for ac_exec_ext in '' $ac_executable_extensions; do
14936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14937 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14938 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14947 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14948 if test -n "$DLLTOOL_FOR_TARGET"; then
14949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14950 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14953 $as_echo "no
" >&6; }
14958 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14960 set dummy ${ncn_progname}; ac_word=$2
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14962 $as_echo_n "checking
for $ac_word...
" >&6; }
14963 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14964 $as_echo_n "(cached
) " >&6
14966 if test -n "$DLLTOOL_FOR_TARGET"; then
14967 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14970 for as_dir in $PATH
14973 test -z "$as_dir" && as_dir=.
14974 for ac_exec_ext in '' $ac_executable_extensions; do
14975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14976 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14977 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14986 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14987 if test -n "$DLLTOOL_FOR_TARGET"; then
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14989 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14992 $as_echo "no
" >&6; }
14997 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
15001 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
15003 if test $build = $target ; then
15004 DLLTOOL_FOR_TARGET="$2"
15006 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15009 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
15013 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
15019 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15020 if test -n "$with_build_time_tools"; then
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
15022 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
15023 if test -x $with_build_time_tools/dsymutil; then
15024 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
15025 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
15027 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15030 $as_echo "no
" >&6; }
15032 elif test $build != $host && test $have_gcc_for_target = yes; then
15033 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
15034 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
15035 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15038 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15039 # Extract the first word of "dsymutil
", so it can be a program name with args.
15040 set dummy dsymutil; ac_word=$2
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15042 $as_echo_n "checking
for $ac_word...
" >&6; }
15043 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
15044 $as_echo_n "(cached
) " >&6
15046 case $DSYMUTIL_FOR_TARGET in
15048 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
15051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15052 for as_dir in $gcc_cv_tool_dirs
15055 test -z "$as_dir" && as_dir=.
15056 for ac_exec_ext in '' $ac_executable_extensions; do
15057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15058 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15059 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15069 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15070 if test -n "$DSYMUTIL_FOR_TARGET"; then
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15072 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15075 $as_echo "no
" >&6; }
15080 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
15083 if test -n "$DSYMUTIL_FOR_TARGET"; then
15084 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
15085 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15086 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15089 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15090 for ncn_progname in dsymutil; do
15091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15092 set dummy ${ncn_progname}; ac_word=$2
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15094 $as_echo_n "checking
for $ac_word...
" >&6; }
15095 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15096 $as_echo_n "(cached
) " >&6
15098 if test -n "$DSYMUTIL_FOR_TARGET"; then
15099 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15102 for as_dir in $PATH
15105 test -z "$as_dir" && as_dir=.
15106 for ac_exec_ext in '' $ac_executable_extensions; do
15107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15108 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15109 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15118 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15119 if test -n "$DSYMUTIL_FOR_TARGET"; then
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15121 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15124 $as_echo "no
" >&6; }
15131 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15132 for ncn_progname in dsymutil; do
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15134 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15135 if test -x $with_build_time_tools/${ncn_progname}; then
15136 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15138 $as_echo "yes" >&6; }
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15142 $as_echo "no
" >&6; }
15147 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
15148 for ncn_progname in dsymutil; do
15149 if test -n "$ncn_target_tool_prefix"; then
15150 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15151 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15153 $as_echo_n "checking
for $ac_word...
" >&6; }
15154 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15155 $as_echo_n "(cached
) " >&6
15157 if test -n "$DSYMUTIL_FOR_TARGET"; then
15158 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15161 for as_dir in $PATH
15164 test -z "$as_dir" && as_dir=.
15165 for ac_exec_ext in '' $ac_executable_extensions; do
15166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15167 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15168 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15177 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15178 if test -n "$DSYMUTIL_FOR_TARGET"; then
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15180 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15183 $as_echo "no
" >&6; }
15188 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15190 set dummy ${ncn_progname}; ac_word=$2
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15192 $as_echo_n "checking
for $ac_word...
" >&6; }
15193 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15194 $as_echo_n "(cached
) " >&6
15196 if test -n "$DSYMUTIL_FOR_TARGET"; then
15197 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15200 for as_dir in $PATH
15203 test -z "$as_dir" && as_dir=.
15204 for ac_exec_ext in '' $ac_executable_extensions; do
15205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15206 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15207 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15216 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15217 if test -n "$DSYMUTIL_FOR_TARGET"; then
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15219 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15222 $as_echo "no
" >&6; }
15227 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15231 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15233 if test $build = $target ; then
15234 DSYMUTIL_FOR_TARGET="$2"
15236 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15239 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15243 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15249 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15250 if test -n "$with_build_time_tools"; then
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
15252 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
15253 if test -x $with_build_time_tools/ld; then
15254 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15255 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
15257 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15260 $as_echo "no
" >&6; }
15262 elif test $build != $host && test $have_gcc_for_target = yes; then
15263 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15264 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15265 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15268 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15269 # Extract the first word of "ld
", so it can be a program name with args.
15270 set dummy ld; ac_word=$2
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15272 $as_echo_n "checking
for $ac_word...
" >&6; }
15273 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15274 $as_echo_n "(cached
) " >&6
15276 case $LD_FOR_TARGET in
15278 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15282 for as_dir in $gcc_cv_tool_dirs
15285 test -z "$as_dir" && as_dir=.
15286 for ac_exec_ext in '' $ac_executable_extensions; do
15287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15288 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15289 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15299 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15300 if test -n "$LD_FOR_TARGET"; then
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15302 $as_echo "$LD_FOR_TARGET" >&6; }
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15305 $as_echo "no
" >&6; }
15310 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15313 if test -n "$LD_FOR_TARGET"; then
15314 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15315 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15316 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15319 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15320 for ncn_progname in ld; do
15321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15322 set dummy ${ncn_progname}; ac_word=$2
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15324 $as_echo_n "checking
for $ac_word...
" >&6; }
15325 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15326 $as_echo_n "(cached
) " >&6
15328 if test -n "$LD_FOR_TARGET"; then
15329 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15332 for as_dir in $PATH
15335 test -z "$as_dir" && as_dir=.
15336 for ac_exec_ext in '' $ac_executable_extensions; do
15337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15338 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15339 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15348 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15349 if test -n "$LD_FOR_TARGET"; then
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15351 $as_echo "$LD_FOR_TARGET" >&6; }
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15354 $as_echo "no
" >&6; }
15361 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15362 for ncn_progname in ld; do
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15364 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15365 if test -x $with_build_time_tools/${ncn_progname}; then
15366 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15368 $as_echo "yes" >&6; }
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15372 $as_echo "no
" >&6; }
15377 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15378 for ncn_progname in ld; do
15379 if test -n "$ncn_target_tool_prefix"; then
15380 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15381 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15383 $as_echo_n "checking
for $ac_word...
" >&6; }
15384 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15385 $as_echo_n "(cached
) " >&6
15387 if test -n "$LD_FOR_TARGET"; then
15388 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15391 for as_dir in $PATH
15394 test -z "$as_dir" && as_dir=.
15395 for ac_exec_ext in '' $ac_executable_extensions; do
15396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15397 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15398 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15407 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15408 if test -n "$LD_FOR_TARGET"; then
15409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15410 $as_echo "$LD_FOR_TARGET" >&6; }
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15413 $as_echo "no
" >&6; }
15418 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15420 set dummy ${ncn_progname}; ac_word=$2
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15422 $as_echo_n "checking
for $ac_word...
" >&6; }
15423 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15424 $as_echo_n "(cached
) " >&6
15426 if test -n "$LD_FOR_TARGET"; then
15427 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15430 for as_dir in $PATH
15433 test -z "$as_dir" && as_dir=.
15434 for ac_exec_ext in '' $ac_executable_extensions; do
15435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15436 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15437 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15446 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15447 if test -n "$LD_FOR_TARGET"; then
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15449 $as_echo "$LD_FOR_TARGET" >&6; }
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15452 $as_echo "no
" >&6; }
15457 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15461 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15463 if test $build = $target ; then
15466 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15469 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15473 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15479 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15480 if test -n "$with_build_time_tools"; then
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
15482 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
15483 if test -x $with_build_time_tools/lipo; then
15484 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15485 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
15487 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15490 $as_echo "no
" >&6; }
15492 elif test $build != $host && test $have_gcc_for_target = yes; then
15493 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15494 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15495 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15498 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15499 # Extract the first word of "lipo
", so it can be a program name with args.
15500 set dummy lipo; ac_word=$2
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15502 $as_echo_n "checking
for $ac_word...
" >&6; }
15503 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15504 $as_echo_n "(cached
) " >&6
15506 case $LIPO_FOR_TARGET in
15508 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15512 for as_dir in $gcc_cv_tool_dirs
15515 test -z "$as_dir" && as_dir=.
15516 for ac_exec_ext in '' $ac_executable_extensions; do
15517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15518 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15519 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15529 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15530 if test -n "$LIPO_FOR_TARGET"; then
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15532 $as_echo "$LIPO_FOR_TARGET" >&6; }
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15535 $as_echo "no
" >&6; }
15540 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15543 if test -n "$LIPO_FOR_TARGET"; then
15544 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15545 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15546 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15549 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15550 for ncn_progname in lipo; do
15551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15552 set dummy ${ncn_progname}; ac_word=$2
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15554 $as_echo_n "checking
for $ac_word...
" >&6; }
15555 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15556 $as_echo_n "(cached
) " >&6
15558 if test -n "$LIPO_FOR_TARGET"; then
15559 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15562 for as_dir in $PATH
15565 test -z "$as_dir" && as_dir=.
15566 for ac_exec_ext in '' $ac_executable_extensions; do
15567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15568 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15569 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15578 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15579 if test -n "$LIPO_FOR_TARGET"; then
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15581 $as_echo "$LIPO_FOR_TARGET" >&6; }
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15584 $as_echo "no
" >&6; }
15591 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15592 for ncn_progname in lipo; do
15593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15594 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15595 if test -x $with_build_time_tools/${ncn_progname}; then
15596 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15598 $as_echo "yes" >&6; }
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15602 $as_echo "no
" >&6; }
15607 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15608 for ncn_progname in lipo; do
15609 if test -n "$ncn_target_tool_prefix"; then
15610 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15611 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15613 $as_echo_n "checking
for $ac_word...
" >&6; }
15614 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15615 $as_echo_n "(cached
) " >&6
15617 if test -n "$LIPO_FOR_TARGET"; then
15618 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15621 for as_dir in $PATH
15624 test -z "$as_dir" && as_dir=.
15625 for ac_exec_ext in '' $ac_executable_extensions; do
15626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15627 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15628 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15637 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15638 if test -n "$LIPO_FOR_TARGET"; then
15639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15640 $as_echo "$LIPO_FOR_TARGET" >&6; }
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15643 $as_echo "no
" >&6; }
15648 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15650 set dummy ${ncn_progname}; ac_word=$2
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15652 $as_echo_n "checking
for $ac_word...
" >&6; }
15653 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15654 $as_echo_n "(cached
) " >&6
15656 if test -n "$LIPO_FOR_TARGET"; then
15657 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15660 for as_dir in $PATH
15663 test -z "$as_dir" && as_dir=.
15664 for ac_exec_ext in '' $ac_executable_extensions; do
15665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15666 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15667 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15676 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15677 if test -n "$LIPO_FOR_TARGET"; then
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15679 $as_echo "$LIPO_FOR_TARGET" >&6; }
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15682 $as_echo "no
" >&6; }
15687 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15691 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15693 if test $build = $target ; then
15694 LIPO_FOR_TARGET="$2"
15696 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15699 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15703 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15709 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15710 if test -n "$with_build_time_tools"; then
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15712 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15713 if test -x $with_build_time_tools/nm; then
15714 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15715 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15717 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15720 $as_echo "no
" >&6; }
15722 elif test $build != $host && test $have_gcc_for_target = yes; then
15723 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15724 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15725 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15728 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15729 # Extract the first word of "nm
", so it can be a program name with args.
15730 set dummy nm; ac_word=$2
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15732 $as_echo_n "checking
for $ac_word...
" >&6; }
15733 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15734 $as_echo_n "(cached
) " >&6
15736 case $NM_FOR_TARGET in
15738 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15742 for as_dir in $gcc_cv_tool_dirs
15745 test -z "$as_dir" && as_dir=.
15746 for ac_exec_ext in '' $ac_executable_extensions; do
15747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15748 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15749 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15759 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15760 if test -n "$NM_FOR_TARGET"; then
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15762 $as_echo "$NM_FOR_TARGET" >&6; }
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15765 $as_echo "no
" >&6; }
15770 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15773 if test -n "$NM_FOR_TARGET"; then
15774 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15775 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15776 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15779 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15780 for ncn_progname in nm; do
15781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15782 set dummy ${ncn_progname}; ac_word=$2
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15784 $as_echo_n "checking
for $ac_word...
" >&6; }
15785 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15786 $as_echo_n "(cached
) " >&6
15788 if test -n "$NM_FOR_TARGET"; then
15789 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15792 for as_dir in $PATH
15795 test -z "$as_dir" && as_dir=.
15796 for ac_exec_ext in '' $ac_executable_extensions; do
15797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15798 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15799 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15808 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15809 if test -n "$NM_FOR_TARGET"; then
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15811 $as_echo "$NM_FOR_TARGET" >&6; }
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15814 $as_echo "no
" >&6; }
15821 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15822 for ncn_progname in nm; do
15823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15824 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15825 if test -x $with_build_time_tools/${ncn_progname}; then
15826 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15828 $as_echo "yes" >&6; }
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15832 $as_echo "no
" >&6; }
15837 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15838 for ncn_progname in nm; do
15839 if test -n "$ncn_target_tool_prefix"; then
15840 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15841 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15843 $as_echo_n "checking
for $ac_word...
" >&6; }
15844 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15845 $as_echo_n "(cached
) " >&6
15847 if test -n "$NM_FOR_TARGET"; then
15848 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15851 for as_dir in $PATH
15854 test -z "$as_dir" && as_dir=.
15855 for ac_exec_ext in '' $ac_executable_extensions; do
15856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15857 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15858 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15867 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15868 if test -n "$NM_FOR_TARGET"; then
15869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15870 $as_echo "$NM_FOR_TARGET" >&6; }
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15873 $as_echo "no
" >&6; }
15878 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15880 set dummy ${ncn_progname}; ac_word=$2
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15882 $as_echo_n "checking
for $ac_word...
" >&6; }
15883 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15884 $as_echo_n "(cached
) " >&6
15886 if test -n "$NM_FOR_TARGET"; then
15887 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15890 for as_dir in $PATH
15893 test -z "$as_dir" && as_dir=.
15894 for ac_exec_ext in '' $ac_executable_extensions; do
15895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15896 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15897 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15906 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15907 if test -n "$NM_FOR_TARGET"; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15909 $as_echo "$NM_FOR_TARGET" >&6; }
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15912 $as_echo "no
" >&6; }
15917 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15921 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15923 if test $build = $target ; then
15926 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15929 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15933 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15939 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15940 if test -n "$with_build_time_tools"; then
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15942 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15943 if test -x $with_build_time_tools/objcopy; then
15944 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15945 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15947 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15950 $as_echo "no
" >&6; }
15952 elif test $build != $host && test $have_gcc_for_target = yes; then
15953 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15954 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15955 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15958 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15959 # Extract the first word of "objcopy
", so it can be a program name with args.
15960 set dummy objcopy; ac_word=$2
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15962 $as_echo_n "checking
for $ac_word...
" >&6; }
15963 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15964 $as_echo_n "(cached
) " >&6
15966 case $OBJCOPY_FOR_TARGET in
15968 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15972 for as_dir in $gcc_cv_tool_dirs
15975 test -z "$as_dir" && as_dir=.
15976 for ac_exec_ext in '' $ac_executable_extensions; do
15977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15978 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15979 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15989 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15990 if test -n "$OBJCOPY_FOR_TARGET"; then
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15992 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15995 $as_echo "no
" >&6; }
16000 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
16003 if test -n "$OBJCOPY_FOR_TARGET"; then
16004 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
16005 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16006 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16009 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16010 for ncn_progname in objcopy; do
16011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16012 set dummy ${ncn_progname}; ac_word=$2
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16014 $as_echo_n "checking
for $ac_word...
" >&6; }
16015 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16016 $as_echo_n "(cached
) " >&6
16018 if test -n "$OBJCOPY_FOR_TARGET"; then
16019 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16022 for as_dir in $PATH
16025 test -z "$as_dir" && as_dir=.
16026 for ac_exec_ext in '' $ac_executable_extensions; do
16027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16028 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16029 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16038 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16039 if test -n "$OBJCOPY_FOR_TARGET"; then
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16041 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16044 $as_echo "no
" >&6; }
16051 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
16052 for ncn_progname in objcopy; do
16053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16054 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16055 if test -x $with_build_time_tools/${ncn_progname}; then
16056 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16058 $as_echo "yes" >&6; }
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16062 $as_echo "no
" >&6; }
16067 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
16068 for ncn_progname in objcopy; do
16069 if test -n "$ncn_target_tool_prefix"; then
16070 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16071 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16073 $as_echo_n "checking
for $ac_word...
" >&6; }
16074 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16075 $as_echo_n "(cached
) " >&6
16077 if test -n "$OBJCOPY_FOR_TARGET"; then
16078 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16081 for as_dir in $PATH
16084 test -z "$as_dir" && as_dir=.
16085 for ac_exec_ext in '' $ac_executable_extensions; do
16086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16087 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16088 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16097 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16098 if test -n "$OBJCOPY_FOR_TARGET"; then
16099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16100 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16103 $as_echo "no
" >&6; }
16108 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
16109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16110 set dummy ${ncn_progname}; ac_word=$2
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16112 $as_echo_n "checking
for $ac_word...
" >&6; }
16113 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
16114 $as_echo_n "(cached
) " >&6
16116 if test -n "$OBJCOPY_FOR_TARGET"; then
16117 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
16119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16120 for as_dir in $PATH
16123 test -z "$as_dir" && as_dir=.
16124 for ac_exec_ext in '' $ac_executable_extensions; do
16125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16126 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
16127 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16136 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
16137 if test -n "$OBJCOPY_FOR_TARGET"; then
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
16139 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16142 $as_echo "no
" >&6; }
16147 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
16151 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
16153 if test $build = $target ; then
16154 OBJCOPY_FOR_TARGET="$2"
16156 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
16159 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
16163 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
16169 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16170 if test -n "$with_build_time_tools"; then
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
16172 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
16173 if test -x $with_build_time_tools/objdump; then
16174 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
16175 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
16177 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16180 $as_echo "no
" >&6; }
16182 elif test $build != $host && test $have_gcc_for_target = yes; then
16183 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
16184 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16185 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16188 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16189 # Extract the first word of "objdump
", so it can be a program name with args.
16190 set dummy objdump; ac_word=$2
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16192 $as_echo_n "checking
for $ac_word...
" >&6; }
16193 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
16194 $as_echo_n "(cached
) " >&6
16196 case $OBJDUMP_FOR_TARGET in
16198 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16202 for as_dir in $gcc_cv_tool_dirs
16205 test -z "$as_dir" && as_dir=.
16206 for ac_exec_ext in '' $ac_executable_extensions; do
16207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16208 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16209 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16219 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16220 if test -n "$OBJDUMP_FOR_TARGET"; then
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16222 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16225 $as_echo "no
" >&6; }
16230 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16233 if test -n "$OBJDUMP_FOR_TARGET"; then
16234 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16235 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16236 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16239 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16240 for ncn_progname in objdump; do
16241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16242 set dummy ${ncn_progname}; ac_word=$2
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16244 $as_echo_n "checking
for $ac_word...
" >&6; }
16245 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16246 $as_echo_n "(cached
) " >&6
16248 if test -n "$OBJDUMP_FOR_TARGET"; then
16249 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16252 for as_dir in $PATH
16255 test -z "$as_dir" && as_dir=.
16256 for ac_exec_ext in '' $ac_executable_extensions; do
16257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16258 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16259 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16268 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16269 if test -n "$OBJDUMP_FOR_TARGET"; then
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16271 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16274 $as_echo "no
" >&6; }
16281 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16282 for ncn_progname in objdump; do
16283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16284 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16285 if test -x $with_build_time_tools/${ncn_progname}; then
16286 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16288 $as_echo "yes" >&6; }
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16292 $as_echo "no
" >&6; }
16297 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16298 for ncn_progname in objdump; do
16299 if test -n "$ncn_target_tool_prefix"; then
16300 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16301 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16303 $as_echo_n "checking
for $ac_word...
" >&6; }
16304 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16305 $as_echo_n "(cached
) " >&6
16307 if test -n "$OBJDUMP_FOR_TARGET"; then
16308 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16311 for as_dir in $PATH
16314 test -z "$as_dir" && as_dir=.
16315 for ac_exec_ext in '' $ac_executable_extensions; do
16316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16317 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16318 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16327 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16328 if test -n "$OBJDUMP_FOR_TARGET"; then
16329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16330 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16333 $as_echo "no
" >&6; }
16338 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16340 set dummy ${ncn_progname}; ac_word=$2
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16342 $as_echo_n "checking
for $ac_word...
" >&6; }
16343 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16344 $as_echo_n "(cached
) " >&6
16346 if test -n "$OBJDUMP_FOR_TARGET"; then
16347 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16350 for as_dir in $PATH
16353 test -z "$as_dir" && as_dir=.
16354 for ac_exec_ext in '' $ac_executable_extensions; do
16355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16356 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16357 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16366 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16367 if test -n "$OBJDUMP_FOR_TARGET"; then
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16369 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16372 $as_echo "no
" >&6; }
16377 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16381 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16383 if test $build = $target ; then
16384 OBJDUMP_FOR_TARGET="$2"
16386 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16389 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16393 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16399 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16400 if test -n "$with_build_time_tools"; then
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
16402 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
16403 if test -x $with_build_time_tools/otool; then
16404 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16405 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16407 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16410 $as_echo "no
" >&6; }
16412 elif test $build != $host && test $have_gcc_for_target = yes; then
16413 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16414 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16415 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16418 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16419 # Extract the first word of "otool
", so it can be a program name with args.
16420 set dummy otool; ac_word=$2
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16422 $as_echo_n "checking
for $ac_word...
" >&6; }
16423 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16424 $as_echo_n "(cached
) " >&6
16426 case $OTOOL_FOR_TARGET in
16428 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16432 for as_dir in $gcc_cv_tool_dirs
16435 test -z "$as_dir" && as_dir=.
16436 for ac_exec_ext in '' $ac_executable_extensions; do
16437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16438 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16439 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16449 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16450 if test -n "$OTOOL_FOR_TARGET"; then
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16452 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16455 $as_echo "no
" >&6; }
16460 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16463 if test -n "$OTOOL_FOR_TARGET"; then
16464 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16465 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16466 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16469 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16470 for ncn_progname in otool; do
16471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16472 set dummy ${ncn_progname}; ac_word=$2
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16474 $as_echo_n "checking
for $ac_word...
" >&6; }
16475 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16476 $as_echo_n "(cached
) " >&6
16478 if test -n "$OTOOL_FOR_TARGET"; then
16479 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16482 for as_dir in $PATH
16485 test -z "$as_dir" && as_dir=.
16486 for ac_exec_ext in '' $ac_executable_extensions; do
16487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16488 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16489 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16498 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16499 if test -n "$OTOOL_FOR_TARGET"; then
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16501 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16504 $as_echo "no
" >&6; }
16511 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16512 for ncn_progname in otool; do
16513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16514 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16515 if test -x $with_build_time_tools/${ncn_progname}; then
16516 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16518 $as_echo "yes" >&6; }
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16522 $as_echo "no
" >&6; }
16527 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16528 for ncn_progname in otool; do
16529 if test -n "$ncn_target_tool_prefix"; then
16530 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16531 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16533 $as_echo_n "checking
for $ac_word...
" >&6; }
16534 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16535 $as_echo_n "(cached
) " >&6
16537 if test -n "$OTOOL_FOR_TARGET"; then
16538 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16541 for as_dir in $PATH
16544 test -z "$as_dir" && as_dir=.
16545 for ac_exec_ext in '' $ac_executable_extensions; do
16546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16547 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16548 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16557 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16558 if test -n "$OTOOL_FOR_TARGET"; then
16559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16560 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16563 $as_echo "no
" >&6; }
16568 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16569 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16570 set dummy ${ncn_progname}; ac_word=$2
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16572 $as_echo_n "checking
for $ac_word...
" >&6; }
16573 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16574 $as_echo_n "(cached
) " >&6
16576 if test -n "$OTOOL_FOR_TARGET"; then
16577 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16579 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16580 for as_dir in $PATH
16583 test -z "$as_dir" && as_dir=.
16584 for ac_exec_ext in '' $ac_executable_extensions; do
16585 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16586 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16587 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16596 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16597 if test -n "$OTOOL_FOR_TARGET"; then
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16599 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16602 $as_echo "no
" >&6; }
16607 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16611 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16613 if test $build = $target ; then
16614 OTOOL_FOR_TARGET="$2"
16616 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16619 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16623 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16629 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16630 if test -n "$with_build_time_tools"; then
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16632 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16633 if test -x $with_build_time_tools/ranlib; then
16634 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16635 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16637 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16640 $as_echo "no
" >&6; }
16642 elif test $build != $host && test $have_gcc_for_target = yes; then
16643 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16644 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16645 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16648 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16649 # Extract the first word of "ranlib
", so it can be a program name with args.
16650 set dummy ranlib; ac_word=$2
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16652 $as_echo_n "checking
for $ac_word...
" >&6; }
16653 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16654 $as_echo_n "(cached
) " >&6
16656 case $RANLIB_FOR_TARGET in
16658 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16662 for as_dir in $gcc_cv_tool_dirs
16665 test -z "$as_dir" && as_dir=.
16666 for ac_exec_ext in '' $ac_executable_extensions; do
16667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16668 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16669 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16679 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16680 if test -n "$RANLIB_FOR_TARGET"; then
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16682 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16685 $as_echo "no
" >&6; }
16690 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16693 if test -n "$RANLIB_FOR_TARGET"; then
16694 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16695 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16696 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16699 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16700 for ncn_progname in ranlib; do
16701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16702 set dummy ${ncn_progname}; ac_word=$2
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16704 $as_echo_n "checking
for $ac_word...
" >&6; }
16705 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16706 $as_echo_n "(cached
) " >&6
16708 if test -n "$RANLIB_FOR_TARGET"; then
16709 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16712 for as_dir in $PATH
16715 test -z "$as_dir" && as_dir=.
16716 for ac_exec_ext in '' $ac_executable_extensions; do
16717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16718 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16719 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16728 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16729 if test -n "$RANLIB_FOR_TARGET"; then
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16731 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16734 $as_echo "no
" >&6; }
16741 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16742 for ncn_progname in ranlib; do
16743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16744 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16745 if test -x $with_build_time_tools/${ncn_progname}; then
16746 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16748 $as_echo "yes" >&6; }
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16752 $as_echo "no
" >&6; }
16757 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16758 for ncn_progname in ranlib; do
16759 if test -n "$ncn_target_tool_prefix"; then
16760 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16761 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16763 $as_echo_n "checking
for $ac_word...
" >&6; }
16764 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16765 $as_echo_n "(cached
) " >&6
16767 if test -n "$RANLIB_FOR_TARGET"; then
16768 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16771 for as_dir in $PATH
16774 test -z "$as_dir" && as_dir=.
16775 for ac_exec_ext in '' $ac_executable_extensions; do
16776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16777 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16778 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16787 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16788 if test -n "$RANLIB_FOR_TARGET"; then
16789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16790 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16793 $as_echo "no
" >&6; }
16798 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16800 set dummy ${ncn_progname}; ac_word=$2
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16802 $as_echo_n "checking
for $ac_word...
" >&6; }
16803 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16804 $as_echo_n "(cached
) " >&6
16806 if test -n "$RANLIB_FOR_TARGET"; then
16807 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16810 for as_dir in $PATH
16813 test -z "$as_dir" && as_dir=.
16814 for ac_exec_ext in '' $ac_executable_extensions; do
16815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16816 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16817 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16826 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16827 if test -n "$RANLIB_FOR_TARGET"; then
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16829 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16832 $as_echo "no
" >&6; }
16837 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16841 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16843 if test $build = $target ; then
16844 RANLIB_FOR_TARGET="$2"
16846 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16849 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16853 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16859 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16860 if test -n "$with_build_time_tools"; then
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16862 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16863 if test -x $with_build_time_tools/readelf; then
16864 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16865 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16867 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16870 $as_echo "no
" >&6; }
16872 elif test $build != $host && test $have_gcc_for_target = yes; then
16873 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16874 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16875 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16878 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16879 # Extract the first word of "readelf
", so it can be a program name with args.
16880 set dummy readelf; ac_word=$2
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16882 $as_echo_n "checking
for $ac_word...
" >&6; }
16883 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16884 $as_echo_n "(cached
) " >&6
16886 case $READELF_FOR_TARGET in
16888 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16892 for as_dir in $gcc_cv_tool_dirs
16895 test -z "$as_dir" && as_dir=.
16896 for ac_exec_ext in '' $ac_executable_extensions; do
16897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16898 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16899 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16909 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16910 if test -n "$READELF_FOR_TARGET"; then
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16912 $as_echo "$READELF_FOR_TARGET" >&6; }
16914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16915 $as_echo "no
" >&6; }
16920 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16923 if test -n "$READELF_FOR_TARGET"; then
16924 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16925 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16926 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16929 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16930 for ncn_progname in readelf; do
16931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16932 set dummy ${ncn_progname}; ac_word=$2
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16934 $as_echo_n "checking
for $ac_word...
" >&6; }
16935 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16936 $as_echo_n "(cached
) " >&6
16938 if test -n "$READELF_FOR_TARGET"; then
16939 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16942 for as_dir in $PATH
16945 test -z "$as_dir" && as_dir=.
16946 for ac_exec_ext in '' $ac_executable_extensions; do
16947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16948 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16949 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16958 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16959 if test -n "$READELF_FOR_TARGET"; then
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16961 $as_echo "$READELF_FOR_TARGET" >&6; }
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16964 $as_echo "no
" >&6; }
16971 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16972 for ncn_progname in readelf; do
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16974 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16975 if test -x $with_build_time_tools/${ncn_progname}; then
16976 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16978 $as_echo "yes" >&6; }
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16982 $as_echo "no
" >&6; }
16987 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16988 for ncn_progname in readelf; do
16989 if test -n "$ncn_target_tool_prefix"; then
16990 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16991 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16993 $as_echo_n "checking
for $ac_word...
" >&6; }
16994 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16995 $as_echo_n "(cached
) " >&6
16997 if test -n "$READELF_FOR_TARGET"; then
16998 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17001 for as_dir in $PATH
17004 test -z "$as_dir" && as_dir=.
17005 for ac_exec_ext in '' $ac_executable_extensions; do
17006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17007 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17008 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17017 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17018 if test -n "$READELF_FOR_TARGET"; then
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17020 $as_echo "$READELF_FOR_TARGET" >&6; }
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17023 $as_echo "no
" >&6; }
17028 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
17029 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17030 set dummy ${ncn_progname}; ac_word=$2
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17032 $as_echo_n "checking
for $ac_word...
" >&6; }
17033 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
17034 $as_echo_n "(cached
) " >&6
17036 if test -n "$READELF_FOR_TARGET"; then
17037 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
17039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17040 for as_dir in $PATH
17043 test -z "$as_dir" && as_dir=.
17044 for ac_exec_ext in '' $ac_executable_extensions; do
17045 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17046 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
17047 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17056 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
17057 if test -n "$READELF_FOR_TARGET"; then
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
17059 $as_echo "$READELF_FOR_TARGET" >&6; }
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17062 $as_echo "no
" >&6; }
17067 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
17071 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
17073 if test $build = $target ; then
17074 READELF_FOR_TARGET="$2"
17076 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
17079 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
17083 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
17089 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17090 if test -n "$with_build_time_tools"; then
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
17092 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
17093 if test -x $with_build_time_tools/strip; then
17094 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
17095 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
17097 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17100 $as_echo "no
" >&6; }
17102 elif test $build != $host && test $have_gcc_for_target = yes; then
17103 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
17104 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
17105 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17108 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17109 # Extract the first word of "strip
", so it can be a program name with args.
17110 set dummy strip; ac_word=$2
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17112 $as_echo_n "checking
for $ac_word...
" >&6; }
17113 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
17114 $as_echo_n "(cached
) " >&6
17116 case $STRIP_FOR_TARGET in
17118 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
17121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17122 for as_dir in $gcc_cv_tool_dirs
17125 test -z "$as_dir" && as_dir=.
17126 for ac_exec_ext in '' $ac_executable_extensions; do
17127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17128 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17129 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17139 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17140 if test -n "$STRIP_FOR_TARGET"; then
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17142 $as_echo "$STRIP_FOR_TARGET" >&6; }
17144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17145 $as_echo "no
" >&6; }
17150 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
17153 if test -n "$STRIP_FOR_TARGET"; then
17154 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
17155 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17156 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17159 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
17160 for ncn_progname in strip; do
17161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17162 set dummy ${ncn_progname}; ac_word=$2
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17164 $as_echo_n "checking
for $ac_word...
" >&6; }
17165 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17166 $as_echo_n "(cached
) " >&6
17168 if test -n "$STRIP_FOR_TARGET"; then
17169 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17172 for as_dir in $PATH
17175 test -z "$as_dir" && as_dir=.
17176 for ac_exec_ext in '' $ac_executable_extensions; do
17177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17178 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17179 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17188 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17189 if test -n "$STRIP_FOR_TARGET"; then
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17191 $as_echo "$STRIP_FOR_TARGET" >&6; }
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17194 $as_echo "no
" >&6; }
17201 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17202 for ncn_progname in strip; do
17203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17204 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17205 if test -x $with_build_time_tools/${ncn_progname}; then
17206 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17208 $as_echo "yes" >&6; }
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17212 $as_echo "no
" >&6; }
17217 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17218 for ncn_progname in strip; do
17219 if test -n "$ncn_target_tool_prefix"; then
17220 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17221 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17223 $as_echo_n "checking
for $ac_word...
" >&6; }
17224 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17225 $as_echo_n "(cached
) " >&6
17227 if test -n "$STRIP_FOR_TARGET"; then
17228 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17231 for as_dir in $PATH
17234 test -z "$as_dir" && as_dir=.
17235 for ac_exec_ext in '' $ac_executable_extensions; do
17236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17237 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17238 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17247 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17248 if test -n "$STRIP_FOR_TARGET"; then
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17250 $as_echo "$STRIP_FOR_TARGET" >&6; }
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17253 $as_echo "no
" >&6; }
17258 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17260 set dummy ${ncn_progname}; ac_word=$2
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17262 $as_echo_n "checking
for $ac_word...
" >&6; }
17263 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17264 $as_echo_n "(cached
) " >&6
17266 if test -n "$STRIP_FOR_TARGET"; then
17267 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17270 for as_dir in $PATH
17273 test -z "$as_dir" && as_dir=.
17274 for ac_exec_ext in '' $ac_executable_extensions; do
17275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17276 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17277 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17286 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17287 if test -n "$STRIP_FOR_TARGET"; then
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17289 $as_echo "$STRIP_FOR_TARGET" >&6; }
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17292 $as_echo "no
" >&6; }
17297 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17301 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17303 if test $build = $target ; then
17304 STRIP_FOR_TARGET="$2"
17306 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17309 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17313 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17319 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17320 if test -n "$with_build_time_tools"; then
17321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
17322 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
17323 if test -x $with_build_time_tools/windres; then
17324 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17325 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17327 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17330 $as_echo "no
" >&6; }
17332 elif test $build != $host && test $have_gcc_for_target = yes; then
17333 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17334 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17335 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17338 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17339 # Extract the first word of "windres
", so it can be a program name with args.
17340 set dummy windres; ac_word=$2
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17342 $as_echo_n "checking
for $ac_word...
" >&6; }
17343 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17344 $as_echo_n "(cached
) " >&6
17346 case $WINDRES_FOR_TARGET in
17348 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17352 for as_dir in $gcc_cv_tool_dirs
17355 test -z "$as_dir" && as_dir=.
17356 for ac_exec_ext in '' $ac_executable_extensions; do
17357 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17358 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17359 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17369 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17370 if test -n "$WINDRES_FOR_TARGET"; then
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17372 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17375 $as_echo "no
" >&6; }
17380 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17383 if test -n "$WINDRES_FOR_TARGET"; then
17384 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17385 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17386 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17389 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17390 for ncn_progname in windres; do
17391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17392 set dummy ${ncn_progname}; ac_word=$2
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17394 $as_echo_n "checking
for $ac_word...
" >&6; }
17395 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17396 $as_echo_n "(cached
) " >&6
17398 if test -n "$WINDRES_FOR_TARGET"; then
17399 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17402 for as_dir in $PATH
17405 test -z "$as_dir" && as_dir=.
17406 for ac_exec_ext in '' $ac_executable_extensions; do
17407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17408 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17409 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17418 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17419 if test -n "$WINDRES_FOR_TARGET"; then
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17421 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17424 $as_echo "no
" >&6; }
17431 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17432 for ncn_progname in windres; do
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17434 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17435 if test -x $with_build_time_tools/${ncn_progname}; then
17436 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17438 $as_echo "yes" >&6; }
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17442 $as_echo "no
" >&6; }
17447 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17448 for ncn_progname in windres; do
17449 if test -n "$ncn_target_tool_prefix"; then
17450 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17451 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17453 $as_echo_n "checking
for $ac_word...
" >&6; }
17454 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17455 $as_echo_n "(cached
) " >&6
17457 if test -n "$WINDRES_FOR_TARGET"; then
17458 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17461 for as_dir in $PATH
17464 test -z "$as_dir" && as_dir=.
17465 for ac_exec_ext in '' $ac_executable_extensions; do
17466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17467 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17468 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17477 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17478 if test -n "$WINDRES_FOR_TARGET"; then
17479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17480 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17483 $as_echo "no
" >&6; }
17488 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17489 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17490 set dummy ${ncn_progname}; ac_word=$2
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17492 $as_echo_n "checking
for $ac_word...
" >&6; }
17493 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17494 $as_echo_n "(cached
) " >&6
17496 if test -n "$WINDRES_FOR_TARGET"; then
17497 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17500 for as_dir in $PATH
17503 test -z "$as_dir" && as_dir=.
17504 for ac_exec_ext in '' $ac_executable_extensions; do
17505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17506 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17507 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17516 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17517 if test -n "$WINDRES_FOR_TARGET"; then
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17519 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17522 $as_echo "no
" >&6; }
17527 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17531 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17533 if test $build = $target ; then
17534 WINDRES_FOR_TARGET="$2"
17536 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17539 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17543 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17549 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17550 if test -n "$with_build_time_tools"; then
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17552 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17553 if test -x $with_build_time_tools/windmc; then
17554 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17555 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17557 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17560 $as_echo "no
" >&6; }
17562 elif test $build != $host && test $have_gcc_for_target = yes; then
17563 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17564 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17565 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17568 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17569 # Extract the first word of "windmc
", so it can be a program name with args.
17570 set dummy windmc; ac_word=$2
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17572 $as_echo_n "checking
for $ac_word...
" >&6; }
17573 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17574 $as_echo_n "(cached
) " >&6
17576 case $WINDMC_FOR_TARGET in
17578 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17582 for as_dir in $gcc_cv_tool_dirs
17585 test -z "$as_dir" && as_dir=.
17586 for ac_exec_ext in '' $ac_executable_extensions; do
17587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17588 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17589 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17599 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17600 if test -n "$WINDMC_FOR_TARGET"; then
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17602 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17605 $as_echo "no
" >&6; }
17610 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17613 if test -n "$WINDMC_FOR_TARGET"; then
17614 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17615 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17616 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17619 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17620 for ncn_progname in windmc; do
17621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17622 set dummy ${ncn_progname}; ac_word=$2
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17624 $as_echo_n "checking
for $ac_word...
" >&6; }
17625 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17626 $as_echo_n "(cached
) " >&6
17628 if test -n "$WINDMC_FOR_TARGET"; then
17629 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17632 for as_dir in $PATH
17635 test -z "$as_dir" && as_dir=.
17636 for ac_exec_ext in '' $ac_executable_extensions; do
17637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17638 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17639 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17648 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17649 if test -n "$WINDMC_FOR_TARGET"; then
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17651 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17654 $as_echo "no
" >&6; }
17661 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17662 for ncn_progname in windmc; do
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17664 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17665 if test -x $with_build_time_tools/${ncn_progname}; then
17666 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17668 $as_echo "yes" >&6; }
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17672 $as_echo "no
" >&6; }
17677 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17678 for ncn_progname in windmc; do
17679 if test -n "$ncn_target_tool_prefix"; then
17680 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17681 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17683 $as_echo_n "checking
for $ac_word...
" >&6; }
17684 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17685 $as_echo_n "(cached
) " >&6
17687 if test -n "$WINDMC_FOR_TARGET"; then
17688 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17691 for as_dir in $PATH
17694 test -z "$as_dir" && as_dir=.
17695 for ac_exec_ext in '' $ac_executable_extensions; do
17696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17697 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17698 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17707 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17708 if test -n "$WINDMC_FOR_TARGET"; then
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17710 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17713 $as_echo "no
" >&6; }
17718 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17719 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17720 set dummy ${ncn_progname}; ac_word=$2
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17722 $as_echo_n "checking
for $ac_word...
" >&6; }
17723 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17724 $as_echo_n "(cached
) " >&6
17726 if test -n "$WINDMC_FOR_TARGET"; then
17727 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17730 for as_dir in $PATH
17733 test -z "$as_dir" && as_dir=.
17734 for ac_exec_ext in '' $ac_executable_extensions; do
17735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17736 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17737 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17746 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17747 if test -n "$WINDMC_FOR_TARGET"; then
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17749 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17752 $as_echo "no
" >&6; }
17757 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17761 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17763 if test $build = $target ; then
17764 WINDMC_FOR_TARGET="$2"
17766 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17769 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17773 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17777 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17780 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17781 if test "x
${build}" != "x
${host}" ; then
17782 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17783 # We already found the complete path
17784 ac_dir=`dirname $AR_FOR_TARGET`
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17786 $as_echo "pre-installed
in $ac_dir" >&6; }
17788 # Canadian cross, just use what we found
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17790 $as_echo "pre-installed
" >&6; }
17794 case " ${configdirs} " in
17799 if test $ok = yes; then
17800 # An in-tree tool is available and we can use it
17801 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17803 $as_echo "just compiled
" >&6; }
17804 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17805 # We already found the complete path
17806 ac_dir=`dirname $AR_FOR_TARGET`
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17808 $as_echo "pre-installed
in $ac_dir" >&6; }
17809 elif test "x
$target" = "x
$host"; then
17810 # We can use an host tool
17811 AR_FOR_TARGET='$(AR)'
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17813 $as_echo "host tool
" >&6; }
17815 # We need a cross tool
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17817 $as_echo "pre-installed
" >&6; }
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17822 $as_echo_n "checking where to
find the target as...
" >&6; }
17823 if test "x
${build}" != "x
${host}" ; then
17824 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17825 # We already found the complete path
17826 ac_dir=`dirname $AS_FOR_TARGET`
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17828 $as_echo "pre-installed
in $ac_dir" >&6; }
17830 # Canadian cross, just use what we found
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17832 $as_echo "pre-installed
" >&6; }
17836 case " ${configdirs} " in
17841 if test $ok = yes; then
17842 # An in-tree tool is available and we can use it
17843 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17845 $as_echo "just compiled
" >&6; }
17846 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17847 # We already found the complete path
17848 ac_dir=`dirname $AS_FOR_TARGET`
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17850 $as_echo "pre-installed
in $ac_dir" >&6; }
17851 elif test "x
$target" = "x
$host"; then
17852 # We can use an host tool
17853 AS_FOR_TARGET='$(AS)'
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17855 $as_echo "host tool
" >&6; }
17857 # We need a cross tool
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17859 $as_echo "pre-installed
" >&6; }
17863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17864 $as_echo_n "checking where to
find the target cc...
" >&6; }
17865 if test "x
${build}" != "x
${host}" ; then
17866 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17867 # We already found the complete path
17868 ac_dir=`dirname $CC_FOR_TARGET`
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17870 $as_echo "pre-installed
in $ac_dir" >&6; }
17872 # Canadian cross, just use what we found
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17874 $as_echo "pre-installed
" >&6; }
17878 case " ${configdirs} " in
17883 if test $ok = yes; then
17884 # An in-tree tool is available and we can use it
17885 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17887 $as_echo "just compiled
" >&6; }
17888 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17889 # We already found the complete path
17890 ac_dir=`dirname $CC_FOR_TARGET`
17891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17892 $as_echo "pre-installed
in $ac_dir" >&6; }
17893 elif test "x
$target" = "x
$host"; then
17894 # We can use an host tool
17895 CC_FOR_TARGET='$(CC)'
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17897 $as_echo "host tool
" >&6; }
17899 # We need a cross tool
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17901 $as_echo "pre-installed
" >&6; }
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17906 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17907 if test "x
${build}" != "x
${host}" ; then
17908 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17909 # We already found the complete path
17910 ac_dir=`dirname $CXX_FOR_TARGET`
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17912 $as_echo "pre-installed
in $ac_dir" >&6; }
17914 # Canadian cross, just use what we found
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17916 $as_echo "pre-installed
" >&6; }
17920 case " ${configdirs} " in
17924 case ,${enable_languages}, in
17928 if test $ok = yes; then
17929 # An in-tree tool is available and we can use it
17930 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'
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17932 $as_echo "just compiled
" >&6; }
17933 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17934 # We already found the complete path
17935 ac_dir=`dirname $CXX_FOR_TARGET`
17936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17937 $as_echo "pre-installed
in $ac_dir" >&6; }
17938 elif test "x
$target" = "x
$host"; then
17939 # We can use an host tool
17940 CXX_FOR_TARGET='$(CXX)'
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17942 $as_echo "host tool
" >&6; }
17944 # We need a cross tool
17945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17946 $as_echo "pre-installed
" >&6; }
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
17951 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17952 if test "x
${build}" != "x
${host}" ; then
17953 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17954 # We already found the complete path
17955 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17957 $as_echo "pre-installed
in $ac_dir" >&6; }
17959 # Canadian cross, just use what we found
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17961 $as_echo "pre-installed
" >&6; }
17965 case " ${configdirs} " in
17969 case ,${enable_languages}, in
17973 if test $ok = yes; then
17974 # An in-tree tool is available and we can use it
17975 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'
17976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17977 $as_echo "just compiled
" >&6; }
17978 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17979 # We already found the complete path
17980 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17982 $as_echo "pre-installed
in $ac_dir" >&6; }
17983 elif test "x
$target" = "x
$host"; then
17984 # We can use an host tool
17985 RAW_CXX_FOR_TARGET='$(CXX)'
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17987 $as_echo "host tool
" >&6; }
17989 # We need a cross tool
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17991 $as_echo "pre-installed
" >&6; }
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
17996 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17997 if test "x
${build}" != "x
${host}" ; then
17998 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17999 # We already found the complete path
18000 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18002 $as_echo "pre-installed
in $ac_dir" >&6; }
18004 # Canadian cross, just use what we found
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18006 $as_echo "pre-installed
" >&6; }
18010 case " ${configdirs} " in
18015 if test $ok = yes; then
18016 # An in-tree tool is available and we can use it
18017 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
18018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18019 $as_echo "just compiled
" >&6; }
18020 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18021 # We already found the complete path
18022 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18024 $as_echo "pre-installed
in $ac_dir" >&6; }
18025 elif test "x
$target" = "x
$host"; then
18026 # We can use an host tool
18027 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18029 $as_echo "host tool
" >&6; }
18031 # We need a cross tool
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18033 $as_echo "pre-installed
" >&6; }
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
18038 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
18039 if test "x
${build}" != "x
${host}" ; then
18040 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
18041 # We already found the complete path
18042 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18044 $as_echo "pre-installed
in $ac_dir" >&6; }
18046 # Canadian cross, just use what we found
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18048 $as_echo "pre-installed
" >&6; }
18051 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
18052 # We already found the complete path
18053 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
18054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18055 $as_echo "pre-installed
in $ac_dir" >&6; }
18056 elif test "x
$target" = "x
$host"; then
18057 # We can use an host tool
18058 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18060 $as_echo "host tool
" >&6; }
18062 # We need a cross tool
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18064 $as_echo "pre-installed
" >&6; }
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
18069 $as_echo_n "checking where to
find the target gcc...
" >&6; }
18070 if test "x
${build}" != "x
${host}" ; then
18071 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
18072 # We already found the complete path
18073 ac_dir=`dirname $GCC_FOR_TARGET`
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18075 $as_echo "pre-installed
in $ac_dir" >&6; }
18077 # Canadian cross, just use what we found
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18079 $as_echo "pre-installed
" >&6; }
18083 case " ${configdirs} " in
18088 if test $ok = yes; then
18089 # An in-tree tool is available and we can use it
18090 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
18091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18092 $as_echo "just compiled
" >&6; }
18093 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
18094 # We already found the complete path
18095 ac_dir=`dirname $GCC_FOR_TARGET`
18096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18097 $as_echo "pre-installed
in $ac_dir" >&6; }
18098 elif test "x
$target" = "x
$host"; then
18099 # We can use an host tool
18100 GCC_FOR_TARGET='$()'
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18102 $as_echo "host tool
" >&6; }
18104 # We need a cross tool
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18106 $as_echo "pre-installed
" >&6; }
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
18111 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
18112 if test "x
${build}" != "x
${host}" ; then
18113 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
18114 # We already found the complete path
18115 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18117 $as_echo "pre-installed
in $ac_dir" >&6; }
18119 # Canadian cross, just use what we found
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18121 $as_echo "pre-installed
" >&6; }
18125 case " ${configdirs} " in
18129 case ,${enable_languages}, in
18133 if test $ok = yes; then
18134 # An in-tree tool is available and we can use it
18135 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18137 $as_echo "just compiled
" >&6; }
18138 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
18139 # We already found the complete path
18140 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18142 $as_echo "pre-installed
in $ac_dir" >&6; }
18143 elif test "x
$target" = "x
$host"; then
18144 # We can use an host tool
18145 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18147 $as_echo "host tool
" >&6; }
18149 # We need a cross tool
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18151 $as_echo "pre-installed
" >&6; }
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
18156 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
18157 if test "x
${build}" != "x
${host}" ; then
18158 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
18159 # We already found the complete path
18160 ac_dir=`dirname $GOC_FOR_TARGET`
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18162 $as_echo "pre-installed
in $ac_dir" >&6; }
18164 # Canadian cross, just use what we found
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18166 $as_echo "pre-installed
" >&6; }
18170 case " ${configdirs} " in
18174 case ,${enable_languages}, in
18178 if test $ok = yes; then
18179 # An in-tree tool is available and we can use it
18180 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18182 $as_echo "just compiled
" >&6; }
18183 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
18184 # We already found the complete path
18185 ac_dir=`dirname $GOC_FOR_TARGET`
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18187 $as_echo "pre-installed
in $ac_dir" >&6; }
18188 elif test "x
$target" = "x
$host"; then
18189 # We can use an host tool
18190 GOC_FOR_TARGET='$(GOC)'
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18192 $as_echo "host tool
" >&6; }
18194 # We need a cross tool
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18196 $as_echo "pre-installed
" >&6; }
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
18201 $as_echo_n "checking where to
find the target gdc...
" >&6; }
18202 if test "x
${build}" != "x
${host}" ; then
18203 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18204 # We already found the complete path
18205 ac_dir=`dirname $GDC_FOR_TARGET`
18206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18207 $as_echo "pre-installed
in $ac_dir" >&6; }
18209 # Canadian cross, just use what we found
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18211 $as_echo "pre-installed
" >&6; }
18215 case " ${configdirs} " in
18219 case ,${enable_languages}, in
18223 if test $ok = yes; then
18224 # An in-tree tool is available and we can use it
18225 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18227 $as_echo "just compiled
" >&6; }
18228 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18229 # We already found the complete path
18230 ac_dir=`dirname $GDC_FOR_TARGET`
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18232 $as_echo "pre-installed
in $ac_dir" >&6; }
18233 elif test "x
$target" = "x
$host"; then
18234 # We can use an host tool
18235 GDC_FOR_TARGET='$(GDC)'
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18237 $as_echo "host tool
" >&6; }
18239 # We need a cross tool
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18241 $as_echo "pre-installed
" >&6; }
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gm2
" >&5
18246 $as_echo_n "checking where to
find the target gm2...
" >&6; }
18247 if test "x
${build}" != "x
${host}" ; then
18248 if expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18249 # We already found the complete path
18250 ac_dir=`dirname $GM2_FOR_TARGET`
18251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18252 $as_echo "pre-installed
in $ac_dir" >&6; }
18254 # Canadian cross, just use what we found
18255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18256 $as_echo "pre-installed
" >&6; }
18260 case " ${configdirs} " in
18264 case ,${enable_languages}, in
18268 if test $ok = yes; then
18269 # An in-tree tool is available and we can use it
18270 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18272 $as_echo "just compiled
" >&6; }
18273 elif expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18274 # We already found the complete path
18275 ac_dir=`dirname $GM2_FOR_TARGET`
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18277 $as_echo "pre-installed
in $ac_dir" >&6; }
18278 elif test "x
$target" = "x
$host"; then
18279 # We can use an host tool
18280 GM2_FOR_TARGET='$(GM2)'
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18282 $as_echo "host tool
" >&6; }
18284 # We need a cross tool
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18286 $as_echo "pre-installed
" >&6; }
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
18291 $as_echo_n "checking where to
find the target ld...
" >&6; }
18292 if test "x
${build}" != "x
${host}" ; then
18293 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18294 # We already found the complete path
18295 ac_dir=`dirname $LD_FOR_TARGET`
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18297 $as_echo "pre-installed
in $ac_dir" >&6; }
18299 # Canadian cross, just use what we found
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18301 $as_echo "pre-installed
" >&6; }
18305 case " ${configdirs} " in
18310 if test $ok = yes; then
18311 # An in-tree tool is available and we can use it
18312 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18314 $as_echo "just compiled
" >&6; }
18315 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18316 # We already found the complete path
18317 ac_dir=`dirname $LD_FOR_TARGET`
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18319 $as_echo "pre-installed
in $ac_dir" >&6; }
18320 elif test "x
$target" = "x
$host"; then
18321 # We can use an host tool
18322 LD_FOR_TARGET='$(LD)'
18323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18324 $as_echo "host tool
" >&6; }
18326 # We need a cross tool
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18328 $as_echo "pre-installed
" >&6; }
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
18333 $as_echo_n "checking where to
find the target lipo...
" >&6; }
18334 if test "x
${build}" != "x
${host}" ; then
18335 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18336 # We already found the complete path
18337 ac_dir=`dirname $LIPO_FOR_TARGET`
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18339 $as_echo "pre-installed
in $ac_dir" >&6; }
18341 # Canadian cross, just use what we found
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18343 $as_echo "pre-installed
" >&6; }
18346 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18347 # We already found the complete path
18348 ac_dir=`dirname $LIPO_FOR_TARGET`
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18350 $as_echo "pre-installed
in $ac_dir" >&6; }
18351 elif test "x
$target" = "x
$host"; then
18352 # We can use an host tool
18353 LIPO_FOR_TARGET='$(LIPO)'
18354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18355 $as_echo "host tool
" >&6; }
18357 # We need a cross tool
18358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18359 $as_echo "pre-installed
" >&6; }
18363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
18364 $as_echo_n "checking where to
find the target nm...
" >&6; }
18365 if test "x
${build}" != "x
${host}" ; then
18366 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18367 # We already found the complete path
18368 ac_dir=`dirname $NM_FOR_TARGET`
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18370 $as_echo "pre-installed
in $ac_dir" >&6; }
18372 # Canadian cross, just use what we found
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18374 $as_echo "pre-installed
" >&6; }
18378 case " ${configdirs} " in
18383 if test $ok = yes; then
18384 # An in-tree tool is available and we can use it
18385 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18387 $as_echo "just compiled
" >&6; }
18388 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18389 # We already found the complete path
18390 ac_dir=`dirname $NM_FOR_TARGET`
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18392 $as_echo "pre-installed
in $ac_dir" >&6; }
18393 elif test "x
$target" = "x
$host"; then
18394 # We can use an host tool
18395 NM_FOR_TARGET='$(NM)'
18396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18397 $as_echo "host tool
" >&6; }
18399 # We need a cross tool
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18401 $as_echo "pre-installed
" >&6; }
18405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
18406 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
18407 if test "x
${build}" != "x
${host}" ; then
18408 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18409 # We already found the complete path
18410 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18412 $as_echo "pre-installed
in $ac_dir" >&6; }
18414 # Canadian cross, just use what we found
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18416 $as_echo "pre-installed
" >&6; }
18420 case " ${configdirs} " in
18425 if test $ok = yes; then
18426 # An in-tree tool is available and we can use it
18427 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18429 $as_echo "just compiled
" >&6; }
18430 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18431 # We already found the complete path
18432 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18434 $as_echo "pre-installed
in $ac_dir" >&6; }
18435 elif test "x
$target" = "x
$host"; then
18436 # We can use an host tool
18437 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18439 $as_echo "host tool
" >&6; }
18441 # We need a cross tool
18442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18443 $as_echo "pre-installed
" >&6; }
18447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
18448 $as_echo_n "checking where to
find the target objdump...
" >&6; }
18449 if test "x
${build}" != "x
${host}" ; then
18450 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18451 # We already found the complete path
18452 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18454 $as_echo "pre-installed
in $ac_dir" >&6; }
18456 # Canadian cross, just use what we found
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18458 $as_echo "pre-installed
" >&6; }
18462 case " ${configdirs} " in
18467 if test $ok = yes; then
18468 # An in-tree tool is available and we can use it
18469 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18471 $as_echo "just compiled
" >&6; }
18472 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18473 # We already found the complete path
18474 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18476 $as_echo "pre-installed
in $ac_dir" >&6; }
18477 elif test "x
$target" = "x
$host"; then
18478 # We can use an host tool
18479 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18481 $as_echo "host tool
" >&6; }
18483 # We need a cross tool
18484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18485 $as_echo "pre-installed
" >&6; }
18489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
18490 $as_echo_n "checking where to
find the target otool...
" >&6; }
18491 if test "x
${build}" != "x
${host}" ; then
18492 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18493 # We already found the complete path
18494 ac_dir=`dirname $OTOOL_FOR_TARGET`
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18496 $as_echo "pre-installed
in $ac_dir" >&6; }
18498 # Canadian cross, just use what we found
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18500 $as_echo "pre-installed
" >&6; }
18503 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18504 # We already found the complete path
18505 ac_dir=`dirname $OTOOL_FOR_TARGET`
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18507 $as_echo "pre-installed
in $ac_dir" >&6; }
18508 elif test "x
$target" = "x
$host"; then
18509 # We can use an host tool
18510 OTOOL_FOR_TARGET='$(OTOOL)'
18511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18512 $as_echo "host tool
" >&6; }
18514 # We need a cross tool
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18516 $as_echo "pre-installed
" >&6; }
18520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
18521 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
18522 if test "x
${build}" != "x
${host}" ; then
18523 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18524 # We already found the complete path
18525 ac_dir=`dirname $RANLIB_FOR_TARGET`
18526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18527 $as_echo "pre-installed
in $ac_dir" >&6; }
18529 # Canadian cross, just use what we found
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18531 $as_echo "pre-installed
" >&6; }
18535 case " ${configdirs} " in
18540 if test $ok = yes; then
18541 # An in-tree tool is available and we can use it
18542 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18544 $as_echo "just compiled
" >&6; }
18545 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18546 # We already found the complete path
18547 ac_dir=`dirname $RANLIB_FOR_TARGET`
18548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18549 $as_echo "pre-installed
in $ac_dir" >&6; }
18550 elif test "x
$target" = "x
$host"; then
18551 # We can use an host tool
18552 RANLIB_FOR_TARGET='$(RANLIB)'
18553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18554 $as_echo "host tool
" >&6; }
18556 # We need a cross tool
18557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18558 $as_echo "pre-installed
" >&6; }
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18563 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18564 if test "x
${build}" != "x
${host}" ; then
18565 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18566 # We already found the complete path
18567 ac_dir=`dirname $READELF_FOR_TARGET`
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18569 $as_echo "pre-installed
in $ac_dir" >&6; }
18571 # Canadian cross, just use what we found
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18573 $as_echo "pre-installed
" >&6; }
18577 case " ${configdirs} " in
18582 if test $ok = yes; then
18583 # An in-tree tool is available and we can use it
18584 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18586 $as_echo "just compiled
" >&6; }
18587 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18588 # We already found the complete path
18589 ac_dir=`dirname $READELF_FOR_TARGET`
18590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18591 $as_echo "pre-installed
in $ac_dir" >&6; }
18592 elif test "x
$target" = "x
$host"; then
18593 # We can use an host tool
18594 READELF_FOR_TARGET='$(READELF)'
18595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18596 $as_echo "host tool
" >&6; }
18598 # We need a cross tool
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18600 $as_echo "pre-installed
" >&6; }
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18605 $as_echo_n "checking where to
find the target strip...
" >&6; }
18606 if test "x
${build}" != "x
${host}" ; then
18607 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18608 # We already found the complete path
18609 ac_dir=`dirname $STRIP_FOR_TARGET`
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18611 $as_echo "pre-installed
in $ac_dir" >&6; }
18613 # Canadian cross, just use what we found
18614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18615 $as_echo "pre-installed
" >&6; }
18619 case " ${configdirs} " in
18624 if test $ok = yes; then
18625 # An in-tree tool is available and we can use it
18626 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18628 $as_echo "just compiled
" >&6; }
18629 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18630 # We already found the complete path
18631 ac_dir=`dirname $STRIP_FOR_TARGET`
18632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18633 $as_echo "pre-installed
in $ac_dir" >&6; }
18634 elif test "x
$target" = "x
$host"; then
18635 # We can use an host tool
18636 STRIP_FOR_TARGET='$(STRIP)'
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18638 $as_echo "host tool
" >&6; }
18640 # We need a cross tool
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18642 $as_echo "pre-installed
" >&6; }
18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18647 $as_echo_n "checking where to
find the target windres...
" >&6; }
18648 if test "x
${build}" != "x
${host}" ; then
18649 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18650 # We already found the complete path
18651 ac_dir=`dirname $WINDRES_FOR_TARGET`
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18653 $as_echo "pre-installed
in $ac_dir" >&6; }
18655 # Canadian cross, just use what we found
18656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18657 $as_echo "pre-installed
" >&6; }
18661 case " ${configdirs} " in
18666 if test $ok = yes; then
18667 # An in-tree tool is available and we can use it
18668 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18670 $as_echo "just compiled
" >&6; }
18671 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18672 # We already found the complete path
18673 ac_dir=`dirname $WINDRES_FOR_TARGET`
18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18675 $as_echo "pre-installed
in $ac_dir" >&6; }
18676 elif test "x
$target" = "x
$host"; then
18677 # We can use an host tool
18678 WINDRES_FOR_TARGET='$(WINDRES)'
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18680 $as_echo "host tool
" >&6; }
18682 # We need a cross tool
18683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18684 $as_echo "pre-installed
" >&6; }
18688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18689 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18690 if test "x
${build}" != "x
${host}" ; then
18691 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18692 # We already found the complete path
18693 ac_dir=`dirname $WINDMC_FOR_TARGET`
18694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18695 $as_echo "pre-installed
in $ac_dir" >&6; }
18697 # Canadian cross, just use what we found
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18699 $as_echo "pre-installed
" >&6; }
18703 case " ${configdirs} " in
18708 if test $ok = yes; then
18709 # An in-tree tool is available and we can use it
18710 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18712 $as_echo "just compiled
" >&6; }
18713 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18714 # We already found the complete path
18715 ac_dir=`dirname $WINDMC_FOR_TARGET`
18716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18717 $as_echo "pre-installed
in $ac_dir" >&6; }
18718 elif test "x
$target" = "x
$host"; then
18719 # We can use an host tool
18720 WINDMC_FOR_TARGET='$(WINDMC)'
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18722 $as_echo "host tool
" >&6; }
18724 # We need a cross tool
18725 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18726 $as_echo "pre-installed
" >&6; }
18734 # Certain tools may need extra flags.
18735 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18736 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18737 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18739 # When building target libraries, except in a Canadian cross, we use
18740 # the same toolchain as the compiler we just built.
18741 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18742 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18743 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18744 if test $host = $build; then
18745 case " $configdirs " in
18747 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18748 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18749 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18759 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18760 # Check whether --enable-maintainer-mode was given.
18761 if test "${enable_maintainer_mode+set}" = set; then :
18762 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18764 USE_MAINTAINER_MODE=no
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18768 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18771 if test "$USE_MAINTAINER_MODE" = yes; then
18772 MAINTAINER_MODE_TRUE=
18773 MAINTAINER_MODE_FALSE='#'
18775 MAINTAINER_MODE_TRUE='#'
18776 MAINTAINER_MODE_FALSE=
18778 MAINT=$MAINTAINER_MODE_TRUE
18780 # ---------------------
18781 # GCC bootstrap support
18782 # ---------------------
18784 # Stage specific cflags for build.
18789 yes) stage1_cflags="-g -Wa,-J" ;;
18790 *) stage1_cflags="-g -J" ;;
18796 # Enable --enable-checking in stage1 of the compiler.
18797 # Check whether --enable-stage1-checking was given.
18798 if test "${enable_stage1_checking+set}" = set; then :
18799 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18801 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18802 # For --disable-checking or implicit --enable-checking=release, avoid
18803 # setting --enable-checking=gc in the default stage1 checking for LTO
18804 # bootstraps. See PR62077.
18805 case $BUILD_CONFIG in
18807 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18809 stage1_checking=--enable-checking=yes,types;;
18811 if test "x
$enable_checking" = x && \
18812 test -d ${srcdir}/gcc && \
18813 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18814 stage1_checking=--enable-checking=yes,types,extra
18817 stage1_checking=--enable-checking=$enable_checking,types
18823 # Enable -Werror in bootstrap stage2 and later.
18824 # Check whether --enable-werror was given.
18825 if test "${enable_werror+set}" = set; then :
18826 enableval=$enable_werror;
18827 case ${enable_werror} in
18828 yes) stage2_werror_flag="--enable-werror-always" ;;
18829 *) stage2_werror_flag="" ;;
18834 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18835 case $BUILD_CONFIG in
18837 stage2_werror_flag="--enable-werror-always" ;;
18839 stage2_werror_flag="--enable-werror-always" ;;
18848 # Specify what files to not compare during bootstrap.
18850 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18851 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/M2Version
*"
18852 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/SYSTEM
*"
18853 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2version
*"
18855 hppa*64*-*-hpux*) ;;
18856 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18860 ac_config_files="$ac_config_files Makefile
"
18862 cat >confcache <<\_ACEOF
18863 # This file is a shell script that caches the results of configure
18864 # tests run on this system so they can be shared between configure
18865 # scripts and configure runs, see configure's option --config-cache.
18866 # It is not useful on other systems. If it contains results you don't
18867 # want to keep, you may remove or edit it.
18869 # config.status only pays attention to the cache file if you give it
18870 # the --recheck option to rerun configure.
18872 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18873 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18874 # following values.
18878 # The following way of writing the cache mishandles newlines in values,
18879 # but we know of no workaround that is simple, portable, and efficient.
18880 # So, we kill variables containing newlines.
18881 # Ultrix sh set writes to stderr and can't be redirected directly,
18882 # and sets the high bit in the cache file unless we assign to the vars.
18884 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18885 eval ac_val=\$$ac_var
18889 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18890 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18893 _ | IFS | as_nl) ;; #(
18894 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18895 *) { eval $ac_var=; unset $ac_var;} ;;
18901 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18902 *${as_nl}ac_space=\ *)
18903 # `set' does not quote correctly, so add quotes: double-quote
18904 # substitution turns \\\\ into \\, and sed turns \\ into \.
18907 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18910 # `set' quotes correctly as required by POSIX, so do not add quotes.
18911 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18920 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18922 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18924 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18925 if test -w "$cache_file"; then
18926 if test "x
$cache_file" != "x
/dev
/null
"; then
18927 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18928 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18929 if test ! -f "$cache_file" || test -h "$cache_file"; then
18930 cat confcache >"$cache_file"
18932 case $cache_file in #(
18934 mv -f confcache "$cache_file"$$ &&
18935 mv -f "$cache_file"$$ "$cache_file" ;; #(
18937 mv -f confcache "$cache_file" ;;
18942 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18943 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18948 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18949 # Let make expand exec_prefix.
18950 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18952 # Transform confdefs.h into DEFS.
18953 # Protect against shell expansion while executing Makefile rules.
18954 # Protect against Makefile macro expansion.
18956 # If the first sed substitution is executed (which looks for macros that
18957 # take arguments), then branch to the quote section. Otherwise,
18958 # look for a macro that doesn't take arguments.
18968 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18970 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18974 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18987 DEFS=`sed -n "$ac_script" confdefs.h`
18993 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18994 # 1. Remove the extension, and $U if already installed.
18995 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18996 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18997 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18998 # will be set to the directory where LIBOBJS objects are built.
18999 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
19000 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
19002 LIBOBJS=$ac_libobjs
19004 LTLIBOBJS=$ac_ltlibobjs
19008 : "${CONFIG_STATUS=./config.status}"
19010 ac_clean_files_save=$ac_clean_files
19011 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
19013 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
19015 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
19017 # Generated by $as_me.
19018 # Run this file to recreate the current configuration.
19019 # Compiler output produced by configure, useful for debugging
19020 # configure, is in config.log if it exists.
19023 ac_cs_recheck=false
19026 SHELL=\${CONFIG_SHELL-$SHELL}
19029 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
19030 ## -------------------- ##
19031 ## M4sh Initialization. ##
19032 ## -------------------- ##
19034 # Be more Bourne compatible
19035 DUALCASE=1; export DUALCASE # for MKS sh
19036 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
19039 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
19040 # is contrary to our usage. Disable this feature.
19041 alias -g '${1+"$@"}'='"$@"'
19042 setopt NO_GLOB_SUBST
19044 case `(set -o) 2>/dev/null` in #(
19056 # Printing a long string crashes Solaris 7 /usr/bin/printf.
19057 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
19058 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
19059 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
19060 # Prefer a ksh shell builtin over an external printf program on Solaris,
19061 # but without wasting forks for bash or zsh.
19062 if test -z "$BASH_VERSION$ZSH_VERSION" \
19063 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
19064 as_echo
='print -r --'
19065 as_echo_n
='print -rn --'
19066 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
19067 as_echo
='printf %s\n'
19068 as_echo_n
='printf %s'
19070 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
19071 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
19072 as_echo_n
='/usr/ucb/echo -n'
19074 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
19075 as_echo_n_body
='eval
19079 expr "X$arg" : "X\\(.*\\)$as_nl";
19080 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
19082 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
19084 export as_echo_n_body
19085 as_echo_n
='sh -c $as_echo_n_body as_echo'
19087 export as_echo_body
19088 as_echo
='sh -c $as_echo_body as_echo'
19091 # The user is always right.
19092 if test "${PATH_SEPARATOR+set}" != set; then
19094 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
19095 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
19102 # We need space, tab and new line, in precisely that order. Quoting is
19103 # there to prevent editors from complaining about space-tab.
19104 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
19105 # splitting by setting IFS to empty value.)
19108 # Find who we are. Look in the path if we contain no directory separator.
19111 *[\\/]* ) as_myself
=$0 ;;
19112 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
19113 for as_dir
in $PATH
19116 test -z "$as_dir" && as_dir
=.
19117 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
19123 # We did not find ourselves, most probably we were run as `sh COMMAND'
19124 # in which case we are not to be found in the path.
19125 if test "x$as_myself" = x
; then
19128 if test ! -f "$as_myself"; then
19129 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
19133 # Unset variables that we do not need and which cause bugs (e.g. in
19134 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
19135 # suppresses any "Segmentation fault" message there. '((' could
19136 # trigger a bug in pdksh 5.2.14.
19137 for as_var
in BASH_ENV ENV MAIL MAILPATH
19138 do eval test x\
${$as_var+set} = xset \
19139 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
19152 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
19155 # as_fn_error STATUS ERROR [LINENO LOG_FD]
19156 # ----------------------------------------
19157 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
19158 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
19159 # script with STATUS, using 1 if that was 0.
19162 as_status
=$1; test $as_status -eq 0 && as_status
=1
19164 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
19165 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
19167 $as_echo "$as_me: error: $2" >&2
19168 as_fn_exit
$as_status
19172 # as_fn_set_status STATUS
19173 # -----------------------
19174 # Set $? to STATUS, without forking.
19175 as_fn_set_status
()
19178 } # as_fn_set_status
19180 # as_fn_exit STATUS
19181 # -----------------
19182 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19186 as_fn_set_status
$1
19192 # Portably unset VAR.
19195 { eval $1=; unset $1;}
19197 as_unset
=as_fn_unset
19198 # as_fn_append VAR VALUE
19199 # ----------------------
19200 # Append the text in VALUE to the end of the definition contained in VAR. Take
19201 # advantage of any shell optimizations that allow amortized linear growth over
19202 # repeated appends, instead of the typical quadratic growth present in naive
19204 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19205 eval 'as_fn_append ()
19216 # as_fn_arith ARG...
19217 # ------------------
19218 # Perform arithmetic evaluation on the ARGs, and store the result in the
19219 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19220 # must be portable across $(()) and expr.
19221 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19222 eval 'as_fn_arith ()
19229 as_val
=`expr "$@" || test $? -eq 1`
19234 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19235 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19241 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19242 as_basename
=basename
19247 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19253 as_me
=`$as_basename -- "$0" ||
19254 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19255 X"$0" : 'X\(//\)$' \| \
19256 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19258 sed '/^.*\/\([^/][^/]*\)\/*$/{
19272 # Avoid depending upon Character Ranges.
19273 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19274 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19275 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19276 as_cr_digits
='0123456789'
19277 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19279 ECHO_C
= ECHO_N
= ECHO_T
=
19280 case `echo -n x` in #(((((
19282 case `echo 'xy\c'` in
19283 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19285 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19292 rm -f conf$$ conf$$.exe conf$$.
file
19293 if test -d conf$$.dir
; then
19294 rm -f conf$$.dir
/conf$$.
file
19297 mkdir conf$$.dir
2>/dev
/null
19299 if (echo >conf$$.
file) 2>/dev
/null
; then
19300 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19302 # ... but there are two gotchas:
19303 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19304 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19305 # In both cases, we have to default to `cp -pR'.
19306 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19308 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19316 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19317 rmdir conf$$.dir
2>/dev
/null
19322 # Create "$as_dir" as a directory, including parents if necessary.
19327 -*) as_dir
=.
/$as_dir;;
19329 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19333 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19334 *) as_qdir
=$as_dir;;
19336 as_dirs
="'$as_qdir' $as_dirs"
19337 as_dir
=`$as_dirname -- "$as_dir" ||
19338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19339 X"$as_dir" : 'X\(//\)[^/]' \| \
19340 X"$as_dir" : 'X\(//\)$' \| \
19341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19342 $as_echo X"$as_dir" |
19343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19347 /^X\(\/\/\)[^/].*/{
19360 test -d "$as_dir" && break
19362 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19363 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19367 if mkdir
-p .
2>/dev
/null
; then
19368 as_mkdir_p
='mkdir -p "$as_dir"'
19370 test -d .
/-p && rmdir .
/-p
19375 # as_fn_executable_p FILE
19376 # -----------------------
19377 # Test if FILE is an executable regular file.
19378 as_fn_executable_p
()
19380 test -f "$1" && test -x "$1"
19381 } # as_fn_executable_p
19382 as_test_x
='test -x'
19383 as_executable_p
=as_fn_executable_p
19385 # Sed expression to map a string onto a valid CPP name.
19386 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19388 # Sed expression to map a string onto a valid variable name.
19389 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19393 ## ----------------------------------- ##
19394 ## Main body of $CONFIG_STATUS script. ##
19395 ## ----------------------------------- ##
19397 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19399 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19400 # Save the log message, to keep $0 and so on meaningful, and to
19401 # report actual input values of CONFIG_FILES etc. instead of their
19402 # values after options handling.
19404 This file was extended by $as_me, which was
19405 generated by GNU Autoconf 2.69. Invocation command line was
19407 CONFIG_FILES = $CONFIG_FILES
19408 CONFIG_HEADERS = $CONFIG_HEADERS
19409 CONFIG_LINKS = $CONFIG_LINKS
19410 CONFIG_COMMANDS = $CONFIG_COMMANDS
19413 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19418 case $ac_config_files in *"
19419 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19425 # Files that config.status was made for.
19426 config_files="$ac_config_files"
19430 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19432 \`$as_me' instantiates files and other configuration actions
19433 from templates according to the current configuration. Unless the files
19434 and actions are specified as TAGs, all are instantiated by default.
19436 Usage: $0 [OPTION]... [TAG]...
19438 -h, --help print this help, then exit
19439 -V, --version print version number and configuration settings, then exit
19440 --config print configuration, then exit
19441 -q, --quiet, --silent
19442 do not print progress messages
19443 -d, --debug don't remove temporary files
19444 --recheck update $as_me by reconfiguring in the same conditions
19445 --file=FILE[:TEMPLATE]
19446 instantiate the configuration file FILE
19448 Configuration files:
19451 Report bugs to the package provider."
19454 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19455 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19458 configured by $0, generated by GNU Autoconf 2.69,
19459 with options \\"\$ac_cs_config\\"
19461 Copyright (C) 2012 Free Software Foundation, Inc.
19462 This config.status script is free software; the Free Software Foundation
19463 gives unlimited permission to copy, distribute and modify it."
19469 test -n "\$AWK" || AWK=awk
19472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19473 # The default lists apply if the user does not specify any file.
19479 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19480 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19484 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19496 # Handling of the options.
19497 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19499 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19500 $as_echo "$ac_cs_version"; exit ;;
19501 --config |
--confi |
--conf |
--con |
--co |
--c )
19502 $as_echo "$ac_cs_config"; exit ;;
19503 --debug |
--debu |
--deb |
--de |
--d |
-d )
19505 --file |
--fil |
--fi |
--f )
19508 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19509 '') as_fn_error $?
"missing file argument" ;;
19511 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19512 ac_need_defaults
=false
;;
19513 --he |
--h |
--help |
--hel |
-h )
19514 $as_echo "$ac_cs_usage"; exit ;;
19515 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19516 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19519 # This is an error.
19520 -*) as_fn_error $?
"unrecognized option: \`$1'
19521 Try \`$0 --help' for more information." ;;
19523 *) as_fn_append ac_config_targets
" $1"
19524 ac_need_defaults
=false
;;
19530 ac_configure_extra_args
=
19532 if $ac_cs_silent; then
19534 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19539 if \$ac_cs_recheck; then
19540 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19542 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19543 CONFIG_SHELL='$SHELL'
19544 export CONFIG_SHELL
19549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19553 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19554 ## Running $as_me. ##
19560 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19564 extrasub_build="$extrasub_build"
19565 extrasub_host="$extrasub_host"
19566 extrasub_target="$extrasub_target"
19570 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19572 # Handling of arguments.
19573 for ac_config_target
in $ac_config_targets
19575 case $ac_config_target in
19576 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19578 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19583 # If the user did not use the arguments to specify the items to instantiate,
19584 # then the envvar interface is used. Set only those that are not.
19585 # We use the long form for the default assignment because of an extremely
19586 # bizarre bug on SunOS 4.1.3.
19587 if $ac_need_defaults; then
19588 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19591 # Have a temporary directory for convenience. Make it in the build tree
19592 # simply because there is no reason against having it here, and in addition,
19593 # creating and moving files from /tmp can sometimes cause problems.
19594 # Hook for its removal unless debugging.
19595 # Note that there is a small window in which the directory will not be cleaned:
19596 # after its creation but before its name has been assigned to `$tmp'.
19600 trap 'exit_status=$?
19601 : "${ac_tmp:=$tmp}"
19602 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19604 trap 'as_fn_exit 1' 1 2 13 15
19606 # Create a (secure) tmp directory for tmp files.
19609 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19613 tmp
=.
/conf$$
-$RANDOM
19614 (umask 077 && mkdir
"$tmp")
19615 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19618 # Set up the scripts for CONFIG_FILES section.
19619 # No need to generate them if there are no CONFIG_FILES.
19620 # This happens for instance with `./config.status config.h'.
19621 if test -n "$CONFIG_FILES"; then
19623 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19624 ac_cs_awk_getline
=:
19625 ac_cs_awk_pipe_init
=
19626 ac_cs_awk_read_file
='
19627 while ((getline aline < (F[key])) > 0)
19630 ac_cs_awk_pipe_fini
=
19632 ac_cs_awk_getline
=false
19633 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19634 ac_cs_awk_read_file
='
19636 print "cat " F[key] " &&"
19637 '$ac_cs_awk_pipe_init
19638 # The final `:' finishes the AND list.
19639 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19641 ac_cr
=`echo X | tr X '\015'`
19642 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19643 # But we know of no other shell where ac_cr would be empty at this
19644 # point, so we can use a bashism as a fallback.
19645 if test "x$ac_cr" = x
; then
19646 eval ac_cr
=\$
\'\\r
\'
19648 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19649 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19652 ac_cs_awk_cr
=$ac_cr
19655 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19658 # Create commands to substitute file output variables.
19660 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19661 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19662 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19665 } >conf$
$files.sh
&&
19666 . .
/conf$
$files.sh ||
19667 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19668 rm -f conf$
$files.sh
19671 echo "cat >conf$$subs.awk <<_ACEOF" &&
19672 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19674 } >conf$$subs.sh ||
19675 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19676 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19678 for ac_last_try in false false false false false :; do
19679 . ./conf$$subs.sh ||
19680 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19682 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19683 if test $ac_delim_n = $ac_delim_num; then
19685 elif $ac_last_try; then
19686 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19688 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19691 rm -f conf$$subs.sh
19693 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19694 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19698 s/^/S["/; s
/!.
*/"]=/
19708 s/\(.\{148\}\)..*/\1/
19710 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19715 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19722 s/\(.\{148\}\)..*/\1/
19724 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19728 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19733 ' <conf$$subs.awk | sed '
19738 ' >>$CONFIG_STATUS || ac_write_fail=1
19739 rm -f conf$$subs.awk
19740 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19742 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19743 for (key in S) S_is_set[key] = 1
19745 \$ac_cs_awk_pipe_init
19749 nfields = split(line, field, "@
")
19751 len = length(field[1])
19752 for (i = 2; i < nfields; i++) {
19754 keylen = length(key)
19755 if (S_is_set[key]) {
19757 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19758 len += length(value) + length(field[++i])
19763 if (nfields == 3 && !substed) {
19765 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19766 \$ac_cs_awk_read_file
19772 \$ac_cs_awk_pipe_fini
19775 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19776 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19777 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19780 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19781 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19784 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19785 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19786 # trailing colons and then remove the whole line if VPATH becomes empty
19787 # (actually we leave an empty line to preserve line numbers).
19788 if test "x
$srcdir" = x.; then
19789 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19807 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19808 fi # test -n "$CONFIG_FILES"
19811 eval set X " :F
$CONFIG_FILES "
19816 :[FHLC]) ac_mode=$ac_tag; continue;;
19818 case $ac_mode$ac_tag in
19820 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19821 :[FH]-) ac_tag=-:-;;
19822 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19839 -) ac_f="$ac_tmp/stdin";;
19840 *) # Look for the file first in the build tree, then in the source tree
19841 # (if the path is not absolute). The absolute path cannot be DOS-style,
19842 # because $ac_f cannot contain `:'.
19846 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19848 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19850 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19851 as_fn_append ac_file_inputs " '$ac_f'"
19854 # Let's still pretend it is `configure' which instantiates (i.e., don't
19855 # use $as_me), people would be surprised to read:
19856 # /* config.h. Generated by config.status. */
19857 configure_input='Generated from '`
19858 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19860 if test x"$ac_file" != x-; then
19861 configure_input="$ac_file.
$configure_input"
19862 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19863 $as_echo "$as_me: creating
$ac_file" >&6;}
19865 # Neutralize special characters interpreted by sed in replacement strings.
19866 case $configure_input in #(
19867 *\&* | *\|* | *\\* )
19868 ac_sed_conf_input=`$as_echo "$configure_input" |
19869 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19870 *) ac_sed_conf_input=$configure_input;;
19874 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19875 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19880 ac_dir=`$as_dirname -- "$ac_file" ||
19881 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19882 X"$ac_file" : 'X\(//\)[^/]' \| \
19883 X"$ac_file" : 'X\(//\)$' \| \
19884 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19885 $as_echo X"$ac_file" |
19886 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19890 /^X\(\/\/\)[^/].*/{
19903 as_dir="$ac_dir"; as_fn_mkdir_p
19907 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19909 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19910 # A "..
" for each directory in $ac_dir_suffix.
19911 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19912 case $ac_top_builddir_sub in
19913 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19914 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19917 ac_abs_top_builddir=$ac_pwd
19918 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19919 # for backward compatibility:
19920 ac_top_builddir=$ac_top_build_prefix
19923 .) # We are building in place.
19925 ac_top_srcdir=$ac_top_builddir_sub
19926 ac_abs_top_srcdir=$ac_pwd ;;
19927 [\\/]* | ?:[\\/]* ) # Absolute name.
19928 ac_srcdir=$srcdir$ac_dir_suffix;
19929 ac_top_srcdir=$srcdir
19930 ac_abs_top_srcdir=$srcdir ;;
19931 *) # Relative name.
19932 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19933 ac_top_srcdir=$ac_top_build_prefix$srcdir
19934 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19936 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19946 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19947 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19952 # If the template does not know about datarootdir, expand it.
19953 # FIXME: This hack should be removed a few years after 2.60.
19954 ac_datarootdir_hack=; ac_datarootdir_seen=
19965 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19966 *datarootdir*) ac_datarootdir_seen=yes;;
19967 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19969 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19971 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19972 ac_datarootdir_hack='
19973 s&@datadir@&$datadir&g
19974 s&@docdir@&$docdir&g
19975 s&@infodir@&$infodir&g
19976 s&@localedir@&$localedir&g
19977 s&@mandir@&$mandir&g
19978 s&\\\${datarootdir}&$datarootdir&g' ;;
19982 # Neutralize VPATH when `$srcdir' = `.'.
19983 # Shell code in configure.ac might set extrasub.
19984 # FIXME: do we really want to maintain this feature?
19985 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19986 ac_sed_extra="$ac_vpsub
19989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19991 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19992 s|@configure_input@|
$ac_sed_conf_input|
;t t
19993 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19994 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19995 s
&@srcdir@
&$ac_srcdir&;t t
19996 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19997 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19998 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19999 s
&@builddir@
&$ac_builddir&;t t
20000 s
&@abs_builddir@
&$ac_abs_builddir&;t t
20001 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
20002 s
&@INSTALL@
&$ac_INSTALL&;t t
20003 $ac_datarootdir_hack
20005 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
20006 if $ac_cs_awk_getline; then
20007 $AWK -f "$ac_tmp/subs.
awk"
20009 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
20011 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
20013 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
20014 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
20015 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
20016 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
20018 which seems to be undefined. Please make sure it is defined" >&5
20019 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
20020 which seems to be undefined. Please make sure it is defined" >&2;}
20022 rm -f "$ac_tmp/stdin"
20024 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
20025 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
20027 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
20035 case $ac_file$ac_mode in
20036 "Makefile":F) sed "$extrasub_build" Makefile |
20037 sed "$extrasub_host" |
20038 sed "$extrasub_target" > mf$$
20039 mv -f mf$$ Makefile ;;
20047 ac_clean_files=$ac_clean_files_save
20049 test $ac_write_fail = 0 ||
20050 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
20053 # configure is writing to config.log, and then calls config.status.
20054 # config.status does its own redirection, appending to config.log.
20055 # Unfortunately, on DOS this fails, as config.log is still kept open
20056 # by configure, so config.status won't be able to
write to it
; its
20057 # output is simply discarded. So we exec the FD to /dev/null,
20058 # effectively closing config.log, so it can be properly (re)opened and
20059 # appended to by config.status. When coming back to configure, we
20060 # need to make the FD available again.
20061 if test "$no_create" != yes; then
20063 ac_config_status_args
=
20064 test "$silent" = yes &&
20065 ac_config_status_args
="$ac_config_status_args --quiet"
20067 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
20069 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
20070 # would make configure fail if this is the last instruction.
20071 $ac_cs_success || as_fn_exit
1
20073 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
20075 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}