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
676 DEBUG_PREFIX_CFLAGS_FOR_TARGET
677 SYSROOT_CFLAGS_FOR_TARGET
679 extra_host_zlib_configure_flags
680 extra_host_libiberty_configure_flags
683 extra_linker_plugin_flags
684 extra_linker_plugin_configure_flags
691 extra_isl_gmp_configure_flags
692 extra_mpc_mpfr_configure_flags
693 extra_mpc_gmp_configure_flags
694 extra_mpfr_configure_flags
712 extra_liboffloadmic_configure_flags
739 TOPLEVEL_CONFIGURE_ARGUMENTS
767 program_transform_name
778 ac_subst_files
='serialization_dependencies
784 enable_option_checking
787 enable_as_accelerator_for
788 enable_offload_targets
789 enable_offload_defaulted
792 enable_compressed_debug_sections
794 enable_libquadmath_support
812 with_static_standard_libraries
819 enable_isl_version_check
821 enable_linker_plugin_configure_flags
822 enable_linker_plugin_flags
824 enable_stage1_languages
827 with_target_bdw_gc_include
828 with_target_bdw_gc_lib
829 with_gcc_major_version_only
831 with_debug_prefix_map
834 enable_serial_configure
835 with_build_time_tools
836 enable_maintainer_mode
837 enable_stage1_checking
840 ac_precious_vars
='build_alias
890 # Initialize some variables set by options.
892 ac_init_version
=false
893 ac_unrecognized_opts
=
895 # The variables have the same names as the options, with
896 # dashes changed to underlines.
904 program_transform_name
=s
,x
,x
,
912 # Installation directory options.
913 # These are left unexpanded so users can "make install exec_prefix=/foo"
914 # and all the variables that are supposed to be based on exec_prefix
915 # by default will actually change.
916 # Use braces instead of parens because sh, perl, etc. also accept them.
917 # (The list follows the same order as the GNU Coding Standards.)
918 bindir
='${exec_prefix}/bin'
919 sbindir
='${exec_prefix}/sbin'
920 libexecdir
='${exec_prefix}/libexec'
921 datarootdir
='${prefix}/share'
922 datadir
='${datarootdir}'
923 sysconfdir
='${prefix}/etc'
924 sharedstatedir
='${prefix}/com'
925 localstatedir
='${prefix}/var'
926 includedir
='${prefix}/include'
927 oldincludedir
='/usr/include'
928 docdir
='${datarootdir}/doc/${PACKAGE}'
929 infodir
='${datarootdir}/info'
934 libdir
='${exec_prefix}/lib'
935 localedir
='${datarootdir}/locale'
936 mandir
='${datarootdir}/man'
942 # If the previous option needs an argument, assign it.
943 if test -n "$ac_prev"; then
944 eval $ac_prev=\
$ac_option
950 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
955 # Accept the important Cygnus configure options, so we can diagnose typos.
957 case $ac_dashdash$ac_option in
961 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
963 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
966 -build |
--build |
--buil |
--bui |
--bu)
967 ac_prev
=build_alias
;;
968 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
969 build_alias
=$ac_optarg ;;
971 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
972 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
973 ac_prev
=cache_file
;;
974 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
975 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
976 cache_file
=$ac_optarg ;;
979 cache_file
=config.cache
;;
981 -datadir |
--datadir |
--datadi |
--datad)
983 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
984 datadir
=$ac_optarg ;;
986 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
987 |
--dataroo |
--dataro |
--datar)
988 ac_prev
=datarootdir
;;
989 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
990 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
991 datarootdir
=$ac_optarg ;;
993 -disable-* |
--disable-*)
994 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
995 # Reject names that are not valid shell variable names.
996 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
997 as_fn_error $?
"invalid feature name: $ac_useropt"
998 ac_useropt_orig
=$ac_useropt
999 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1000 case $ac_user_opts in
1002 "enable_
$ac_useropt"
1004 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1005 ac_unrecognized_sep
=', ';;
1007 eval enable_
$ac_useropt=no
;;
1009 -docdir |
--docdir |
--docdi |
--doc |
--do)
1011 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1012 docdir
=$ac_optarg ;;
1014 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1016 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1017 dvidir
=$ac_optarg ;;
1019 -enable-* |
--enable-*)
1020 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1021 # Reject names that are not valid shell variable names.
1022 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1023 as_fn_error $?
"invalid feature name: $ac_useropt"
1024 ac_useropt_orig
=$ac_useropt
1025 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1026 case $ac_user_opts in
1028 "enable_
$ac_useropt"
1030 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1031 ac_unrecognized_sep
=', ';;
1033 eval enable_
$ac_useropt=\
$ac_optarg ;;
1035 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1036 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1037 |
--exec |
--exe |
--ex)
1038 ac_prev
=exec_prefix
;;
1039 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1040 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1041 |
--exec=* |
--exe=* |
--ex=*)
1042 exec_prefix
=$ac_optarg ;;
1044 -gas |
--gas |
--ga |
--g)
1045 # Obsolete; use --with-gas.
1048 -help |
--help |
--hel |
--he |
-h)
1049 ac_init_help
=long
;;
1050 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1051 ac_init_help
=recursive
;;
1052 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1053 ac_init_help
=short
;;
1055 -host |
--host |
--hos |
--ho)
1056 ac_prev
=host_alias
;;
1057 -host=* |
--host=* |
--hos=* |
--ho=*)
1058 host_alias
=$ac_optarg ;;
1060 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1062 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1064 htmldir
=$ac_optarg ;;
1066 -includedir |
--includedir |
--includedi |
--included |
--include \
1067 |
--includ |
--inclu |
--incl |
--inc)
1068 ac_prev
=includedir
;;
1069 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1070 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1071 includedir
=$ac_optarg ;;
1073 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1075 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1076 infodir
=$ac_optarg ;;
1078 -libdir |
--libdir |
--libdi |
--libd)
1080 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1081 libdir
=$ac_optarg ;;
1083 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1084 |
--libexe |
--libex |
--libe)
1085 ac_prev
=libexecdir
;;
1086 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1087 |
--libexe=* |
--libex=* |
--libe=*)
1088 libexecdir
=$ac_optarg ;;
1090 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1091 ac_prev
=localedir
;;
1092 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1093 localedir
=$ac_optarg ;;
1095 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1096 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1097 ac_prev
=localstatedir
;;
1098 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1099 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1100 localstatedir
=$ac_optarg ;;
1102 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1104 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1105 mandir
=$ac_optarg ;;
1107 -nfp |
--nfp |
--nf)
1108 # Obsolete; use --without-fp.
1111 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1112 |
--no-cr |
--no-c |
-n)
1115 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1116 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1119 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1120 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1121 |
--oldin |
--oldi |
--old |
--ol |
--o)
1122 ac_prev
=oldincludedir
;;
1123 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1124 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1125 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1126 oldincludedir
=$ac_optarg ;;
1128 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1130 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1131 prefix
=$ac_optarg ;;
1133 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1134 |
--program-pre |
--program-pr |
--program-p)
1135 ac_prev
=program_prefix
;;
1136 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1137 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1138 program_prefix
=$ac_optarg ;;
1140 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1141 |
--program-suf |
--program-su |
--program-s)
1142 ac_prev
=program_suffix
;;
1143 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1144 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1145 program_suffix
=$ac_optarg ;;
1147 -program-transform-name |
--program-transform-name \
1148 |
--program-transform-nam |
--program-transform-na \
1149 |
--program-transform-n |
--program-transform- \
1150 |
--program-transform |
--program-transfor \
1151 |
--program-transfo |
--program-transf \
1152 |
--program-trans |
--program-tran \
1153 |
--progr-tra |
--program-tr |
--program-t)
1154 ac_prev
=program_transform_name
;;
1155 -program-transform-name=* |
--program-transform-name=* \
1156 |
--program-transform-nam=* |
--program-transform-na=* \
1157 |
--program-transform-n=* |
--program-transform-=* \
1158 |
--program-transform=* |
--program-transfor=* \
1159 |
--program-transfo=* |
--program-transf=* \
1160 |
--program-trans=* |
--program-tran=* \
1161 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1162 program_transform_name
=$ac_optarg ;;
1164 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1166 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1167 pdfdir
=$ac_optarg ;;
1169 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1171 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1174 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1175 |
-silent |
--silent |
--silen |
--sile |
--sil)
1178 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1180 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1182 sbindir
=$ac_optarg ;;
1184 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1185 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1186 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1188 ac_prev
=sharedstatedir
;;
1189 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1190 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1191 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1193 sharedstatedir
=$ac_optarg ;;
1195 -site |
--site |
--sit)
1197 -site=* |
--site=* |
--sit=*)
1200 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1202 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1203 srcdir
=$ac_optarg ;;
1205 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1206 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1207 ac_prev
=sysconfdir
;;
1208 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1209 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1210 sysconfdir
=$ac_optarg ;;
1212 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1213 ac_prev
=target_alias
;;
1214 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1215 target_alias
=$ac_optarg ;;
1217 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1220 -version |
--version |
--versio |
--versi |
--vers |
-V)
1221 ac_init_version
=: ;;
1224 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1227 as_fn_error $?
"invalid package name: $ac_useropt"
1228 ac_useropt_orig
=$ac_useropt
1229 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1230 case $ac_user_opts in
1234 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1235 ac_unrecognized_sep
=', ';;
1237 eval with_
$ac_useropt=\
$ac_optarg ;;
1239 -without-* |
--without-*)
1240 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1243 as_fn_error $?
"invalid package name: $ac_useropt"
1244 ac_useropt_orig
=$ac_useropt
1245 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1250 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1251 ac_unrecognized_sep
=', ';;
1253 eval with_
$ac_useropt=no
;;
1256 # Obsolete; use --with-x.
1259 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1260 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1261 ac_prev
=x_includes
;;
1262 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1263 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1264 x_includes
=$ac_optarg ;;
1266 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1267 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1268 ac_prev
=x_libraries
;;
1269 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1270 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1271 x_libraries
=$ac_optarg ;;
1273 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1274 Try \`$0 --help' for more information"
1278 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1279 # Reject names that are not valid shell variable names.
1280 case $ac_envvar in #(
1281 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1282 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1284 eval $ac_envvar=\
$ac_optarg
1285 export $ac_envvar ;;
1288 # FIXME: should be removed in autoconf 3.0.
1289 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1290 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1291 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1292 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1298 if test -n "$ac_prev"; then
1299 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1300 as_fn_error $?
"missing argument to $ac_option"
1303 if test -n "$ac_unrecognized_opts"; then
1304 case $enable_option_checking in
1306 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1307 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1311 # Check all directory arguments for consistency.
1312 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1313 datadir sysconfdir sharedstatedir localstatedir includedir \
1314 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1315 libdir localedir mandir
1317 eval ac_val
=\$
$ac_var
1318 # Remove trailing slashes.
1321 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1322 eval $ac_var=\
$ac_val;;
1324 # Be sure to have absolute directory names.
1326 [\\/$
]* | ?
:[\\/]* ) continue;;
1327 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1329 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1332 # There might be people who depend on the old broken behavior: `$host'
1333 # used to hold the argument of --host etc.
1334 # FIXME: To remove some day.
1337 target
=$target_alias
1339 # FIXME: To remove some day.
1340 if test "x$host_alias" != x
; then
1341 if test "x$build_alias" = x
; then
1342 cross_compiling
=maybe
1343 elif test "x$build_alias" != "x$host_alias"; then
1349 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1351 test "$silent" = yes && exec 6>/dev
/null
1354 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1355 ac_ls_di
=`ls -di .` &&
1356 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1357 as_fn_error $?
"working directory cannot be determined"
1358 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1359 as_fn_error $?
"pwd does not report name of working directory"
1362 # Find the source files, if location was not specified.
1363 if test -z "$srcdir"; then
1364 ac_srcdir_defaulted
=yes
1365 # Try the directory containing this script, then the parent directory.
1366 ac_confdir
=`$as_dirname -- "$as_myself" ||
1367 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1368 X"$as_myself" : 'X\(//\)[^/]' \| \
1369 X"$as_myself" : 'X\(//\)$' \| \
1370 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1371 $as_echo X"$as_myself" |
1372 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1394 ac_srcdir_defaulted
=no
1396 if test ! -r "$srcdir/$ac_unique_file"; then
1397 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1398 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1400 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1402 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1404 # When building in place, set srcdir=.
1405 if test "$ac_abs_confdir" = "$ac_pwd"; then
1408 # Remove unnecessary trailing slashes from srcdir.
1409 # Double slashes in file names in object file debugging info
1410 # mess up M-x gdb in Emacs.
1412 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1416 as_fn_error $?
"path to source, $srcdir, contains spaces"
1419 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1421 for ac_var
in $ac_precious_vars; do
1422 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1423 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1424 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1425 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1429 # Report the --help message.
1431 if test "$ac_init_help" = "long"; then
1432 # Omit some internal or obsolete options to make the list less imposing.
1433 # This message is too long to be a string in the A/UX 3.1 sh.
1435 \`configure' configures this package to adapt to many kinds of systems.
1437 Usage: $0 [OPTION]... [VAR=VALUE]...
1439 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1440 VAR=VALUE. See below for descriptions of some of the useful variables.
1442 Defaults for the options are specified in brackets.
1445 -h, --help display this help and exit
1446 --help=short display options specific to this package
1447 --help=recursive display the short help of all the included packages
1448 -V, --version display version information and exit
1449 -q, --quiet, --silent do not print \`checking ...' messages
1450 --cache-file=FILE cache test results in FILE [disabled]
1451 -C, --config-cache alias for \`--cache-file=config.cache'
1452 -n, --no-create do not create output files
1453 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1455 Installation directories:
1456 --prefix=PREFIX install architecture-independent files in PREFIX
1457 [$ac_default_prefix]
1458 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1461 By default, \`make install' will install all the files in
1462 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1463 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1464 for instance \`--prefix=\$HOME'.
1466 For better control, use the options below.
1468 Fine tuning of the installation directories:
1469 --bindir=DIR user executables [EPREFIX/bin]
1470 --sbindir=DIR system admin executables [EPREFIX/sbin]
1471 --libexecdir=DIR program executables [EPREFIX/libexec]
1472 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1473 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1474 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1475 --libdir=DIR object code libraries [EPREFIX/lib]
1476 --includedir=DIR C header files [PREFIX/include]
1477 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1478 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1479 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1480 --infodir=DIR info documentation [DATAROOTDIR/info]
1481 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1482 --mandir=DIR man documentation [DATAROOTDIR/man]
1483 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1484 --htmldir=DIR html documentation [DOCDIR]
1485 --dvidir=DIR dvi documentation [DOCDIR]
1486 --pdfdir=DIR pdf documentation [DOCDIR]
1487 --psdir=DIR ps documentation [DOCDIR]
1493 --program-prefix=PREFIX prepend PREFIX to installed program names
1494 --program-suffix=SUFFIX append SUFFIX to installed program names
1495 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1498 --build=BUILD configure
for building on BUILD
[guessed
]
1499 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1500 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1504 if test -n "$ac_init_help"; then
1509 --disable-option-checking ignore unrecognized
--enable/--with options
1510 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1511 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1512 --enable-as-accelerator-for=ARG
1513 build as offload target compiler. Specify offload
1515 --enable-offload-targets=LIST
1516 enable offloading to devices from comma-separated
1517 LIST of TARGET
[=DIR
]. Use optional path to
find
1518 offload target compiler during the build
1519 --enable-offload-defaulted
1520 If enabled
, configured but not installed offload compilers and
1521 libgomp plugins are silently ignored. Useful
for distribution
1522 compilers where those are
in separate optional packages.
1524 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1525 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1526 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1527 Enable compressed debug sections
for gas
, gold or ld
1529 --disable-libquadmath do not build libquadmath directory
1530 --disable-libquadmath-support
1531 disable libquadmath support
for Fortran
1532 --enable-libada build libada directory
1533 --enable-libssp build libssp directory
1534 --disable-libstdcxx do not build libstdc
++-v3 directory
1535 --enable-liboffloadmic=ARG
1536 build liboffloadmic
[ARG
={no
,host,target
}]
1537 --enable-bootstrap enable bootstrapping
[yes if native build
]
1538 --disable-isl-version-check
1539 disable check
for isl version
1540 --enable-lto enable link
time optimization support
1541 --enable-linker-plugin-configure-flags=FLAGS
1542 additional flags
for configuring linker plugins
1544 --enable-linker-plugin-flags=FLAGS
1545 additional flags
for configuring and building linker
1547 --enable-host-shared build
host code as shared libraries
1548 --enable-stage1-languages[=all
]
1549 choose additional languages to build during stage1.
1550 Mostly useful
for compiler development
1551 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1553 --enable-vtable-verify Enable vtable verification feature
1554 --enable-serial-[{host,target,build}-]configure
1555 force sequential configuration of sub-packages for
1556 the host, target or build machine, or all
1558 --enable-maintainer-mode
1559 enable make rules and dependencies not useful (and
1560 sometimes confusing) to the casual installer
1561 --enable-stage1-checking[=all]
1562 choose additional checking for stage1 of the
1564 --enable-werror enable -Werror in bootstrap stage2 and later
1567 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1568 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1569 --with-build-libsubdir=DIR Directory where to find libraries for build system
1570 --with-system-zlib use installed libz
1571 --with-mpc=PATH specify prefix directory for installed MPC package.
1572 Equivalent to --with-mpc-include=PATH/include plus
1573 --with-mpc-lib=PATH/lib
1574 --with-mpc-include=PATH specify directory for installed MPC include files
1575 --with-mpc-lib=PATH specify directory for the installed MPC library
1576 --with-mpfr-dir=PATH this option has been REMOVED
1577 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1578 Equivalent to --with-mpfr-include=PATH/include plus
1579 --with-mpfr-lib=PATH/lib
1580 --with-mpfr-include=PATH
1581 specify directory for installed MPFR include files
1582 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1583 --with-gmp-dir=PATH this option has been REMOVED
1584 --with-gmp=PATH specify prefix directory for the installed GMP
1585 package. Equivalent to
1586 --with-gmp-include=PATH/include plus
1587 --with-gmp-lib=PATH/lib
1588 --with-gmp-include=PATH specify directory for installed GMP include files
1589 --with-gmp-lib=PATH specify directory for the installed GMP library
1590 --with-stage1-libs=LIBS libraries for stage1
1591 --with-static-standard-libraries
1592 use -static-libstdc++ and -static-libgcc
1594 --with-stage1-ldflags=FLAGS
1595 linker flags for stage1
1596 --with-boot-libs=LIBS libraries for stage2 and later
1597 --with-boot-ldflags=FLAGS
1598 linker flags for stage2 and later
1599 --with-isl=PATH Specify prefix directory for the installed isl
1600 package. Equivalent to
1601 --with-isl-include=PATH/include plus
1602 --with-isl-lib=PATH/lib
1603 --with-isl-include=PATH Specify directory for installed isl include files
1604 --with-isl-lib=PATH Specify the directory for the installed isl library
1605 --with-target-bdw-gc=PATHLIST
1606 specify prefix directory for installed bdw-gc
1607 package. Equivalent to
1608 --with-target-bdw-gc-include=PATH/include plus
1609 --with-target-bdw-gc-lib=PATH/lib
1610 --with-target-bdw-gc-include=PATHLIST
1611 specify directories for installed bdw-gc include
1613 --with-target-bdw-gc-lib=PATHLIST
1614 specify directories for installed bdw-gc library
1615 --with-gcc-major-version-only
1616 use only GCC major number in filesystem paths
1617 --with-build-sysroot=SYSROOT
1618 use sysroot as the system root during the build
1619 --with-debug-prefix-map='A
=B C
=D ...
'
1620 map A to B, C to D ... in debug information
1621 --with-build-config='NAME NAME2...
'
1622 use config/NAME.mk build configuration
1623 --with-build-time-tools=PATH
1624 use given path to find target tools during the build
1626 Some influential environment variables:
1627 CC C compiler command
1628 CFLAGS C compiler flags
1629 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1630 nonstandard directory <lib dir>
1631 LIBS libraries to pass to the linker, e.g. -l<library>
1632 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1633 you have headers in a nonstandard directory <include dir>
1634 CXX C++ compiler command
1635 CXXFLAGS C++ compiler flags
1637 additional configure arguments for build directories
1639 additional configure arguments for host directories
1641 additional configure arguments for target directories
1644 DLLTOOL DLLTOOL for the host
1646 LIPO LIPO for the host
1648 RANLIB RANLIB for the host
1649 STRIP STRIP for the host
1650 WINDRES WINDRES for the host
1651 WINDMC WINDMC for the host
1652 OBJCOPY OBJCOPY for the host
1653 OBJDUMP OBJDUMP for the host
1654 OTOOL OTOOL for the host
1655 READELF READELF for the host
1663 GFORTRAN for the target
1673 DLLTOOL for the target
1681 OBJCOPY for the target
1683 OBJDUMP for the target
1685 OTOOL for the target
1687 RANLIB for the target
1689 READELF for the target
1691 STRIP for the target
1693 WINDRES for the target
1695 WINDMC for the target
1697 Use these variables to override the choices made by `configure' or to
help
1698 it to
find libraries and programs with nonstandard names
/locations.
1700 Report bugs to the package provider.
1705 if test "$ac_init_help" = "recursive"; then
1706 # If there are subdirs, report their specific --help.
1707 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1708 test -d "$ac_dir" ||
1709 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1714 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1716 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1717 # A ".." for each directory in $ac_dir_suffix.
1718 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1719 case $ac_top_builddir_sub in
1720 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1721 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1724 ac_abs_top_builddir
=$ac_pwd
1725 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1726 # for backward compatibility:
1727 ac_top_builddir
=$ac_top_build_prefix
1730 .
) # We are building in place.
1732 ac_top_srcdir
=$ac_top_builddir_sub
1733 ac_abs_top_srcdir
=$ac_pwd ;;
1734 [\\/]* | ?
:[\\/]* ) # Absolute name.
1735 ac_srcdir
=$srcdir$ac_dir_suffix;
1736 ac_top_srcdir
=$srcdir
1737 ac_abs_top_srcdir
=$srcdir ;;
1739 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1740 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1741 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1743 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1745 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1746 # Check for guested configure.
1747 if test -f "$ac_srcdir/configure.gnu"; then
1749 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1750 elif test -f "$ac_srcdir/configure"; then
1752 $SHELL "$ac_srcdir/configure" --help=recursive
1754 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1756 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1760 test -n "$ac_init_help" && exit $ac_status
1761 if $ac_init_version; then
1764 generated by GNU Autoconf
2.69
1766 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1767 This configure
script is free software
; the Free Software Foundation
1768 gives unlimited permission to copy
, distribute and modify it.
1773 ## ------------------------ ##
1774 ## Autoconf initialization. ##
1775 ## ------------------------ ##
1777 # ac_fn_c_try_compile LINENO
1778 # --------------------------
1779 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1780 ac_fn_c_try_compile
()
1782 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1783 rm -f conftest.
$ac_objext
1784 if { { ac_try
="$ac_compile"
1786 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1787 *) ac_try_echo=$ac_try;;
1789 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1790 $as_echo "$ac_try_echo"; } >&5
1791 (eval "$ac_compile") 2>conftest.err
1793 if test -s conftest.err; then
1794 grep -v '^ *+' conftest.err >conftest.er1
1795 cat conftest.er1 >&5
1796 mv -f conftest.er1 conftest.err
1798 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1799 test $ac_status = 0; } && {
1800 test -z "$ac_c_werror_flag" ||
1801 test ! -s conftest.err
1802 } && test -s conftest.$ac_objext; then :
1805 $as_echo "$as_me: failed program was:" >&5
1806 sed 's/^/| /' conftest.$ac_ext >&5
1810 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1811 as_fn_set_status $ac_retval
1813 } # ac_fn_c_try_compile
1815 # ac_fn_cxx_try_compile LINENO
1816 # ----------------------------
1817 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1818 ac_fn_cxx_try_compile ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 rm -f conftest.$ac_objext
1822 if { { ac_try="$ac_compile"
1824 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1825 *) ac_try_echo
=$ac_try;;
1827 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1828 $as_echo "$ac_try_echo"; } >&5
1829 (eval "$ac_compile") 2>conftest.err
1831 if test -s conftest.err
; then
1832 grep -v '^ *+' conftest.err
>conftest.er1
1833 cat conftest.er1
>&5
1834 mv -f conftest.er1 conftest.err
1836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1837 test $ac_status = 0; } && {
1838 test -z "$ac_cxx_werror_flag" ||
1839 test ! -s conftest.err
1840 } && test -s conftest.
$ac_objext; then :
1843 $as_echo "$as_me: failed program was:" >&5
1844 sed 's/^/| /' conftest.
$ac_ext >&5
1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1849 as_fn_set_status
$ac_retval
1851 } # ac_fn_cxx_try_compile
1853 # ac_fn_cxx_try_link LINENO
1854 # -------------------------
1855 # Try to link conftest.$ac_ext, and return whether this succeeded.
1856 ac_fn_cxx_try_link
()
1858 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1859 rm -f conftest.
$ac_objext conftest
$ac_exeext
1860 if { { ac_try
="$ac_link"
1862 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1863 *) ac_try_echo=$ac_try;;
1865 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1866 $as_echo "$ac_try_echo"; } >&5
1867 (eval "$ac_link") 2>conftest.err
1869 if test -s conftest.err; then
1870 grep -v '^ *+' conftest.err >conftest.er1
1871 cat conftest.er1 >&5
1872 mv -f conftest.er1 conftest.err
1874 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1875 test $ac_status = 0; } && {
1876 test -z "$ac_cxx_werror_flag" ||
1877 test ! -s conftest.err
1878 } && test -s conftest$ac_exeext && {
1879 test "$cross_compiling" = yes ||
1880 test -x conftest$ac_exeext
1884 $as_echo "$as_me: failed program was:" >&5
1885 sed 's/^/| /' conftest.$ac_ext >&5
1889 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1890 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1891 # interfere with the next link command; also delete a directory that is
1892 # left behind by Apple's compiler. We do this before executing the actions.
1893 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1894 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1895 as_fn_set_status $ac_retval
1897 } # ac_fn_cxx_try_link
1899 # ac_fn_c_try_link LINENO
1900 # -----------------------
1901 # Try to link conftest.$ac_ext, and return whether this succeeded.
1904 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1905 rm -f conftest.$ac_objext conftest$ac_exeext
1906 if { { ac_try="$ac_link"
1908 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1909 *) ac_try_echo
=$ac_try;;
1911 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1912 $as_echo "$ac_try_echo"; } >&5
1913 (eval "$ac_link") 2>conftest.err
1915 if test -s conftest.err
; then
1916 grep -v '^ *+' conftest.err
>conftest.er1
1917 cat conftest.er1
>&5
1918 mv -f conftest.er1 conftest.err
1920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1921 test $ac_status = 0; } && {
1922 test -z "$ac_c_werror_flag" ||
1923 test ! -s conftest.err
1924 } && test -s conftest
$ac_exeext && {
1925 test "$cross_compiling" = yes ||
1926 test -x conftest
$ac_exeext
1930 $as_echo "$as_me: failed program was:" >&5
1931 sed 's/^/| /' conftest.
$ac_ext >&5
1935 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1936 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1937 # interfere with the next link command; also delete a directory that is
1938 # left behind by Apple's compiler. We do this before executing the actions.
1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1941 as_fn_set_status
$ac_retval
1943 } # ac_fn_c_try_link
1944 cat >config.log
<<_ACEOF
1945 This file contains any messages produced by compilers while
1946 running configure, to aid debugging if configure makes a mistake.
1948 It was created by $as_me, which was
1949 generated by GNU Autoconf 2.69. Invocation command line was
1961 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1962 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1963 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1964 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1965 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1967 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1968 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1970 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1971 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1972 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1973 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1974 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1975 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1976 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1980 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1984 test -z "$as_dir" && as_dir
=.
1985 $as_echo "PATH: $as_dir"
2001 # Keep a trace of the command line.
2002 # Strip out --no-create and --no-recursion so they do not pile up.
2003 # Strip out --silent because we don't want to record it for future runs.
2004 # Also quote any args containing shell meta-characters.
2005 # Make two passes to allow for proper duplicate-argument suppression.
2009 ac_must_keep_next
=false
2015 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2016 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2017 |
-silent |
--silent |
--silen |
--sile |
--sil)
2020 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2023 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2025 as_fn_append ac_configure_args1
" '$ac_arg'"
2026 if test $ac_must_keep_next = true
; then
2027 ac_must_keep_next
=false
# Got value, back to normal.
2030 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2031 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2032 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2033 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2034 case "$ac_configure_args0 " in
2035 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2038 -* ) ac_must_keep_next
=true
;;
2041 as_fn_append ac_configure_args
" '$ac_arg'"
2046 { ac_configure_args0
=; unset ac_configure_args0
;}
2047 { ac_configure_args1
=; unset ac_configure_args1
;}
2049 # When interrupted or exit'd, cleanup temporary files, and complete
2050 # config.log. We remove comments because anyway the quotes in there
2051 # would cause problems or look ugly.
2052 # WARNING: Use '\'' to represent an apostrophe within the trap.
2053 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2054 trap 'exit_status=$?
2055 # Save into config.log some information that might help in debugging.
2059 $as_echo "## ---------------- ##
2060 ## Cache variables. ##
2061 ## ---------------- ##"
2063 # The following way of writing the cache mishandles newlines in values,
2065 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2066 eval ac_val=\$$ac_var
2070 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2071 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2074 _ | IFS | as_nl) ;; #(
2075 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2076 *) { eval $ac_var=; unset $ac_var;} ;;
2081 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2082 *${as_nl}ac_space=\ *)
2084 "s/'\''/'\''\\\\'\'''\''/g;
2085 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2088 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2095 $as_echo "## ----------------- ##
2096 ## Output variables. ##
2097 ## ----------------- ##"
2099 for ac_var in $ac_subst_vars
2101 eval ac_val=\$$ac_var
2103 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2105 $as_echo "$ac_var='\''$ac_val'\''"
2109 if test -n "$ac_subst_files"; then
2110 $as_echo "## ------------------- ##
2111 ## File substitutions. ##
2112 ## ------------------- ##"
2114 for ac_var
in $ac_subst_files
2116 eval ac_val
=\$
$ac_var
2118 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2120 $as_echo "$ac_var='\''$ac_val'\''"
2125 if test -s confdefs.h; then
2126 $as_echo "## ----------- ##
2133 test "$ac_signal" != 0 &&
2134 $as_echo "$as_me: caught signal $ac_signal"
2135 $as_echo "$as_me: exit $exit_status"
2137 rm -f core *.core core.conftest.* &&
2138 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2141 for ac_signal
in 1 2 13 15; do
2142 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2146 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2147 rm -f -r conftest
* confdefs.h
2149 $as_echo "/* confdefs.h */" > confdefs.h
2151 # Predefined preprocessor variables.
2153 cat >>confdefs.h
<<_ACEOF
2154 #define PACKAGE_NAME "$PACKAGE_NAME"
2157 cat >>confdefs.h
<<_ACEOF
2158 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2161 cat >>confdefs.h
<<_ACEOF
2162 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2165 cat >>confdefs.h
<<_ACEOF
2166 #define PACKAGE_STRING "$PACKAGE_STRING"
2169 cat >>confdefs.h
<<_ACEOF
2170 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2173 cat >>confdefs.h
<<_ACEOF
2174 #define PACKAGE_URL "$PACKAGE_URL"
2178 # Let the site file select an alternate cache file if it wants to.
2179 # Prefer an explicitly selected file to automatically selected ones.
2182 if test -n "$CONFIG_SITE"; then
2183 # We do not want a PATH search for config.site.
2184 case $CONFIG_SITE in #((
2185 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2186 */*) ac_site_file1
=$CONFIG_SITE;;
2187 *) ac_site_file1
=.
/$CONFIG_SITE;;
2189 elif test "x$prefix" != xNONE
; then
2190 ac_site_file1
=$prefix/share
/config.site
2191 ac_site_file2
=$prefix/etc
/config.site
2193 ac_site_file1
=$ac_default_prefix/share
/config.site
2194 ac_site_file2
=$ac_default_prefix/etc
/config.site
2196 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2198 test "x$ac_site_file" = xNONE
&& continue
2199 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2201 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2202 sed 's/^/| /' "$ac_site_file" >&5
2204 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2205 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2206 as_fn_error $?
"failed to load site script $ac_site_file
2207 See \`config.log' for more details" "$LINENO" 5; }
2211 if test -r "$cache_file"; then
2212 # Some versions of bash will fail to source /dev/null (special files
2213 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2214 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2216 $as_echo "$as_me: loading cache $cache_file" >&6;}
2218 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2219 *) .
"./$cache_file";;
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2224 $as_echo "$as_me: creating cache $cache_file" >&6;}
2228 # Check that the precious variables saved in the cache have kept the same
2230 ac_cache_corrupted
=false
2231 for ac_var
in $ac_precious_vars; do
2232 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2233 eval ac_new_set
=\
$ac_env_${ac_var}_set
2234 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2235 eval ac_new_val
=\
$ac_env_${ac_var}_value
2236 case $ac_old_set,$ac_new_set in
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2239 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2240 ac_cache_corrupted
=: ;;
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2243 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2244 ac_cache_corrupted
=: ;;
2247 if test "x$ac_old_val" != "x$ac_new_val"; then
2248 # differences in whitespace do not lead to failure.
2249 ac_old_val_w
=`echo x $ac_old_val`
2250 ac_new_val_w
=`echo x $ac_new_val`
2251 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2253 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2254 ac_cache_corrupted
=:
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2257 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2258 eval $ac_var=\
$ac_old_val
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2261 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2263 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2266 # Pass precious variables to config.status.
2267 if test "$ac_new_set" = set; then
2269 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2270 *) ac_arg
=$ac_var=$ac_new_val ;;
2272 case " $ac_configure_args " in
2273 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2274 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2278 if $ac_cache_corrupted; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2282 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2283 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2285 ## -------------------- ##
2286 ## Main body of script. ##
2287 ## -------------------- ##
2290 ac_cpp
='$CPP $CPPFLAGS'
2291 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2292 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2293 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2303 # if PWD already has a value, it is probably wrong.
2304 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2306 # Export original configure arguments for use by sub-configures.
2307 # Quote arguments with shell meta charatcers.
2308 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2309 set -- "$progname" "$@"
2313 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2314 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2315 # if the argument is of the form -foo=baz, quote the baz part only
2316 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2319 # Add the quoted argument to the list.
2320 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2322 if test "$silent" = yes; then
2323 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2325 # Remove the initial space we just introduced and, as these will be
2326 # expanded by make, quote '$'.
2327 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2330 # Find the build, host, and target systems.
2332 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2333 if test -f "$ac_dir/install-sh"; then
2335 ac_install_sh
="$ac_aux_dir/install-sh -c"
2337 elif test -f "$ac_dir/install.sh"; then
2339 ac_install_sh
="$ac_aux_dir/install.sh -c"
2341 elif test -f "$ac_dir/shtool"; then
2343 ac_install_sh
="$ac_aux_dir/shtool install -c"
2347 if test -z "$ac_aux_dir"; then
2348 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2351 # These three variables are undocumented and unsupported,
2352 # and are intended to be withdrawn in a future Autoconf release.
2353 # They can cause serious problems if a builder's source tree is in a directory
2354 # whose full name contains unusual characters.
2355 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2356 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2357 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2360 # Make sure we can run config.sub.
2361 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2362 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2365 $as_echo_n "checking build system type... " >&6; }
2366 if ${ac_cv_build+:} false
; then :
2367 $as_echo_n "(cached) " >&6
2369 ac_build_alias
=$build_alias
2370 test "x$ac_build_alias" = x
&&
2371 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2372 test "x$ac_build_alias" = x
&&
2373 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2374 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2375 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2379 $as_echo "$ac_cv_build" >&6; }
2380 case $ac_cv_build in
2382 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2385 ac_save_IFS
=$IFS; IFS
='-'
2391 # Remember, the first character of IFS is used to create $*,
2392 # except with old shells:
2395 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2398 case ${build_alias} in
2399 "") build_noncanonical
=${build} ;;
2400 *) build_noncanonical
=${build_alias} ;;
2405 case ${host_alias} in
2406 "") host_noncanonical
=${build_noncanonical} ;;
2407 *) host_noncanonical
=${host_alias} ;;
2412 case ${target_alias} in
2413 "") target_noncanonical
=${host_noncanonical} ;;
2414 *) target_noncanonical
=${target_alias} ;;
2420 test "$host_noncanonical" = "$target_noncanonical" &&
2421 test "$program_prefix$program_suffix$program_transform_name" = \
2423 program_transform_name
=s
,y
,y
,
2425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2426 $as_echo_n "checking host system type... " >&6; }
2427 if ${ac_cv_host+:} false
; then :
2428 $as_echo_n "(cached) " >&6
2430 if test "x$host_alias" = x
; then
2431 ac_cv_host
=$ac_cv_build
2433 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2434 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2439 $as_echo "$ac_cv_host" >&6; }
2442 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2445 ac_save_IFS
=$IFS; IFS
='-'
2451 # Remember, the first character of IFS is used to create $*,
2452 # except with old shells:
2455 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2459 $as_echo_n "checking target system type... " >&6; }
2460 if ${ac_cv_target+:} false
; then :
2461 $as_echo_n "(cached) " >&6
2463 if test "x$target_alias" = x
; then
2464 ac_cv_target
=$ac_cv_host
2466 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2467 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2472 $as_echo "$ac_cv_target" >&6; }
2473 case $ac_cv_target in
2475 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2477 target
=$ac_cv_target
2478 ac_save_IFS
=$IFS; IFS
='-'
2484 # Remember, the first character of IFS is used to create $*,
2485 # except with old shells:
2488 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2491 # The aliases save the names the user supplied, while $host etc.
2492 # will get canonicalized.
2493 test -n "$target_alias" &&
2494 test "$program_prefix$program_suffix$program_transform_name" = \
2496 program_prefix
=${target_alias}-
2498 test "$program_prefix" != NONE
&&
2499 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2500 # Use a double $ so make ignores it.
2501 test "$program_suffix" != NONE
&&
2502 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2503 # Double any \ or $.
2504 # By default was `s,x,x', remove it if useless.
2505 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2506 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2510 # Get 'install' or 'install-sh' and its variants.
2511 # Find a good install program. We prefer a C program (faster),
2512 # so one script is as good as another. But avoid the broken or
2513 # incompatible versions:
2514 # SysV /etc/install, /usr/sbin/install
2515 # SunOS /usr/etc/install
2516 # IRIX /sbin/install
2518 # AmigaOS /C/install, which installs bootblocks on floppy discs
2519 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2520 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2521 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2522 # OS/2's system install, which has a completely different semantic
2523 # ./install, which can be erroneously created by make from ./install.sh.
2524 # Reject install programs that cannot install multiple files.
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2526 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2527 if test -z "$INSTALL"; then
2528 if ${ac_cv_path_install+:} false
; then :
2529 $as_echo_n "(cached) " >&6
2531 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2535 test -z "$as_dir" && as_dir
=.
2536 # Account for people who put trailing slashes in PATH elements.
2537 case $as_dir/ in #((
2538 .
/ | .
// |
/[cC
]/* | \
2539 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2540 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2543 # OSF1 and SCO ODT 3.0 have their own names for install.
2544 # Don't use installbsd from OSF since it installs stuff as root
2546 for ac_prog
in ginstall scoinst
install; do
2547 for ac_exec_ext
in '' $ac_executable_extensions; do
2548 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2549 if test $ac_prog = install &&
2550 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2551 # AIX install. It has an incompatible calling convention.
2553 elif test $ac_prog = install &&
2554 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2555 # program-specific install script used by HP pwplus--don't use.
2558 rm -rf conftest.one conftest.two conftest.dir
2559 echo one
> conftest.one
2560 echo two
> conftest.two
2562 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2563 test -s conftest.one
&& test -s conftest.two
&&
2564 test -s conftest.dir
/conftest.one
&&
2565 test -s conftest.dir
/conftest.two
2567 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2580 rm -rf conftest.one conftest.two conftest.dir
2583 if test "${ac_cv_path_install+set}" = set; then
2584 INSTALL
=$ac_cv_path_install
2586 # As a last resort, use the slow shell script. Don't cache a
2587 # value for INSTALL within a source directory, because that will
2588 # break other packages using the cache if that directory is
2589 # removed, or if the value is a relative name.
2590 INSTALL
=$ac_install_sh
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2594 $as_echo "$INSTALL" >&6; }
2596 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2597 # It thinks the first close brace ends the variable substitution.
2598 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2600 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2602 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2605 $as_echo_n "checking whether ln works... " >&6; }
2606 if ${acx_cv_prog_LN+:} false
; then :
2607 $as_echo_n "(cached) " >&6
2609 rm -f conftestdata_t
2610 echo >conftestdata_f
2611 if ln conftestdata_f conftestdata_t
2>/dev
/null
2617 rm -f conftestdata_f conftestdata_t
2620 if test $acx_cv_prog_LN = no
; then
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2623 $as_echo "no, using $LN" >&6; }
2625 LN
="$acx_cv_prog_LN"
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2627 $as_echo "yes" >&6; }
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2631 $as_echo_n "checking whether ln -s works... " >&6; }
2633 if test "$LN_S" = "ln -s"; then
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2638 $as_echo "no, using $LN_S" >&6; }
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2642 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2643 if ${ac_cv_path_SED+:} false
; then :
2644 $as_echo_n "(cached) " >&6
2646 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2647 for ac_i
in 1 2 3 4 5 6 7; do
2648 ac_script
="$ac_script$as_nl$ac_script"
2650 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2651 { ac_script
=; unset ac_script
;}
2652 if test -z "$SED"; then
2653 ac_path_SED_found
=false
2654 # Loop through the user's path and test for each of PROGNAME-LIST
2655 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2659 test -z "$as_dir" && as_dir
=.
2660 for ac_prog
in sed gsed
; do
2661 for ac_exec_ext
in '' $ac_executable_extensions; do
2662 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2663 as_fn_executable_p
"$ac_path_SED" ||
continue
2664 # Check for GNU ac_path_SED and select it if it is found.
2665 # Check for GNU $ac_path_SED
2666 case `"$ac_path_SED" --version 2>&1` in
2668 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2671 $as_echo_n 0123456789 >"conftest.in"
2674 cat "conftest.in" "conftest.in" >"conftest.tmp"
2675 mv "conftest.tmp" "conftest.in"
2676 cp "conftest.in" "conftest.nl"
2677 $as_echo '' >> "conftest.nl"
2678 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2679 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2680 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2681 if test $ac_count -gt ${ac_path_SED_max-0}; then
2682 # Best one so far, save it but keep looking for a better one
2683 ac_cv_path_SED
="$ac_path_SED"
2684 ac_path_SED_max
=$ac_count
2686 # 10*(2^10) chars as input seems more than enough
2687 test $ac_count -gt 10 && break
2689 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2692 $ac_path_SED_found && break 3
2697 if test -z "$ac_cv_path_SED"; then
2698 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2706 $as_echo "$ac_cv_path_SED" >&6; }
2707 SED
="$ac_cv_path_SED"
2710 for ac_prog
in gawk mawk nawk
awk
2712 # Extract the first word of "$ac_prog", so it can be a program name with args.
2713 set dummy
$ac_prog; ac_word
=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if ${ac_cv_prog_AWK+:} false
; then :
2717 $as_echo_n "(cached) " >&6
2719 if test -n "$AWK"; then
2720 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2726 test -z "$as_dir" && as_dir
=.
2727 for ac_exec_ext
in '' $ac_executable_extensions; do
2728 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2729 ac_cv_prog_AWK
="$ac_prog"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 if test -n "$AWK"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2742 $as_echo "$AWK" >&6; }
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2749 test -n "$AWK" && break
2753 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2755 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2757 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2758 INSTALL
="${srcpwd}/install-sh -c"
2761 # Set srcdir to "." if that's what it is.
2762 # This is important for multilib support.
2764 if test "${pwd}" = "${srcpwd}" ; then
2772 ### To add a new directory to the tree, first choose whether it is a target
2773 ### or a host dependent tool. Then put it into the appropriate list
2774 ### (library or tools, host or target), doing a dependency sort.
2776 # Subdirs will be configured in the order listed in build_configdirs,
2777 # configdirs, or target_configdirs; see the serialization section below.
2779 # Dependency sorting is only needed when *configuration* must be done in
2780 # a particular order. In all cases a dependency should be specified in
2781 # the Makefile, whether or not it's implicitly specified here.
2783 # Double entries in build_configdirs, configdirs, or target_configdirs may
2784 # cause circular dependencies and break everything horribly.
2786 # these library is used by various programs built for the build
2789 build_libs
="build-libiberty build-libcpp"
2791 # these tools are built for the build environment
2792 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2794 # these libraries are used by various programs built for the host environment
2796 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2798 # these tools are built for the host environment
2799 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2800 # know that we are building the simulator.
2801 # binutils, gas and ld appear in that order because it makes sense to run
2802 # "make check" in that particular order.
2803 # If --enable-gold is used, "gold" may replace "ld".
2804 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 gotools c++tools"
2806 # these libraries are built for the target environment, and are built after
2807 # the host libraries and the host tools (which may be a cross compiler)
2808 # Note that libiberty is not a target library.
2809 target_libraries
="target-libgcc \
2810 target-libbacktrace \
2814 target-liboffloadmic \
2815 target-libhsail-rt \
2818 target-libstdc++-v3 \
2819 target-libsanitizer \
2822 target-libquadmath \
2823 target-libgfortran \
2831 # these tools are built using the target libraries, and are intended to
2832 # run only in the target environment
2834 # note: any program that *uses* libraries that are in the "target_libraries"
2835 # list belongs in this list.
2837 target_tools
="target-rda"
2839 ################################################################################
2841 ## All tools belong in one of the four categories, and are assigned above
2842 ## We assign ${configdirs} this way to remove all embedded newlines. This
2843 ## is important because configure will choke if they ever get through.
2844 ## ${configdirs} is directories we build using the host tools.
2845 ## ${target_configdirs} is directories we build using the target tools.
2846 configdirs
=`echo ${host_libs} ${host_tools}`
2847 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2848 build_configdirs
=`echo ${build_libs} ${build_tools}`
2852 ################################################################################
2854 srcname
="gnu development package"
2856 # This gets set non-empty for some net releases of packages.
2859 # Define is_cross_compiler to save on calls to 'test'.
2861 if test x
"${host}" = x
"${target}" ; then
2862 is_cross_compiler
=no
2864 is_cross_compiler
=yes
2867 # Find the build and target subdir names.
2869 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2870 # have matching libraries, they should use host libraries: Makefile.tpl
2871 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2872 # However, they still use the build modules, because the corresponding
2873 # host modules (e.g. bison) are only built for the host when bootstrap
2875 # - build_subdir is where we find build modules, and never changes.
2876 # - build_libsubdir is where we find build libraries, and can be overridden.
2878 # Prefix 'build-' so this never conflicts with target_subdir.
2879 build_subdir
="build-${build_noncanonical}"
2881 # Check whether --with-build-libsubdir was given.
2882 if test "${with_build_libsubdir+set}" = set; then :
2883 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2885 build_libsubdir
="$build_subdir"
2888 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2889 if ( test $srcdir = .
&& test -d gcc
) \
2890 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2891 host_subdir
="host-${host_noncanonical}"
2896 target_subdir
=${target_noncanonical}
2898 # Be sure to cover against remnants of an in-tree build.
2899 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2900 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2901 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2904 # Skipdirs are removed silently.
2906 # Noconfigdirs are removed loudly.
2910 # Make sure we don't let GNU ld be added if we didn't want it.
2911 if test x
$with_gnu_ld = xno
; then
2913 noconfigdirs
="$noconfigdirs ld gold"
2917 # Make sure we don't let GNU as be added if we didn't want it.
2918 if test x
$with_gnu_as = xno
; then
2920 noconfigdirs
="$noconfigdirs gas"
2925 # Check whether --with-system-zlib was given.
2926 if test "${with_system_zlib+set}" = set; then :
2927 withval
=$with_system_zlib;
2930 # Make sure we don't let ZLIB be added if we didn't want it.
2931 if test x
$with_system_zlib = xyes
; then
2932 use_included_zlib
=no
2933 noconfigdirs
="$noconfigdirs zlib"
2936 # some tools are so dependent upon X11 that if we're not building with X,
2937 # it's not even worth trying to configure, much less build, that tool.
2940 yes |
"") ;; # the default value for this tree is that X11 is available
2942 skipdirs
="${skipdirs} tk itcl libgui"
2943 # We won't be able to build gdbtk without X.
2946 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2949 # Some are only suitable for cross toolchains.
2950 # Remove these if host=target.
2951 cross_only
="target-libgloss target-newlib target-opcodes"
2953 case $is_cross_compiler in
2954 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2957 # If both --with-headers and --with-libs are specified, default to
2959 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2960 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2961 if test x
"${with_newlib}" = x
; then
2966 # Recognize --with-newlib/--without-newlib.
2967 case ${with_newlib} in
2968 no
) skipdirs
="${skipdirs} target-newlib" ;;
2969 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2972 # Check whether --enable-as-accelerator-for was given.
2973 if test "${enable_as_accelerator_for+set}" = set; then :
2974 enableval
=$enable_as_accelerator_for;
2978 # Check whether --enable-offload-targets was given.
2979 if test "${enable_offload_targets+set}" = set; then :
2980 enableval
=$enable_offload_targets;
2981 if test x
"$enable_offload_targets" = x
; then
2982 as_fn_error $?
"no offload targets specified" "$LINENO" 5
2986 enable_offload_targets
=
2990 # Check whether --enable-offload-defaulted was given.
2991 if test "${enable_offload_defaulted+set}" = set; then :
2992 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
2994 enable_offload_defaulted
=
2998 # Handle --enable-gold, --enable-ld.
2999 # --disable-gold [--enable-ld]
3000 # Build only ld. Default option.
3001 # --enable-gold [--enable-ld]
3002 # Build both gold and ld. Install gold as "ld.gold", install ld
3003 # as "ld.bfd" and "ld".
3004 # --enable-gold=default [--enable-ld]
3005 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3006 # install ld as "ld.bfd".
3007 # --enable-gold[=default] --disable-ld
3008 # Build only gold, which is then installed as both "ld.gold" and "ld".
3009 # --enable-gold --enable-ld=default
3010 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3012 # In other words, ld is default
3013 # --enable-gold=default --enable-ld=default
3017 # Check whether --enable-gold was given.
3018 if test "${enable_gold+set}" = set; then :
3019 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3024 case "${ENABLE_GOLD}" in
3026 # Check for ELF target.
3029 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3030 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3031 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3032 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3034 *-*-linux*aout
* |
*-*-linux*oldld
*)
3042 if test "$is_elf" = "yes"; then
3043 # Check for target supported by gold.
3045 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3046 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-*)
3047 configdirs
="$configdirs gold"
3048 if test x
${ENABLE_GOLD} = xdefault
; then
3059 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3063 # Check whether --enable-ld was given.
3064 if test "${enable_ld+set}" = set; then :
3065 enableval
=$enable_ld; ENABLE_LD
=$enableval
3071 case "${ENABLE_LD}" in
3073 if test x
${default_ld} != x
; then
3074 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3080 if test x
${ENABLE_GOLD} != xyes
; then
3081 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3082 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3084 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3087 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3092 # Decide the default method for compressing debug sections.
3093 # Provide a configure time option to override our default.
3094 # Check whether --enable-compressed_debug_sections was given.
3095 if test "${enable_compressed_debug_sections+set}" = set; then :
3096 enableval
=$enable_compressed_debug_sections;
3097 if test x
"$enable_compressed_debug_sections" = xyes
; then
3098 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3102 enable_compressed_debug_sections
=
3106 # Configure extra directories which are host specific
3110 configdirs
="$configdirs libtermcap" ;;
3113 # A target can indicate whether a language isn't supported for some reason.
3114 # Only spaces may be used in this macro; not newlines or tabs.
3115 unsupported_languages
=
3117 # Remove more programs from consideration, based on the host or
3118 # target this usually means that a port of the program doesn't
3122 i
[3456789]86-*-msdosdjgpp*)
3123 noconfigdirs
="$noconfigdirs tcl tk itcl"
3128 # Check whether --enable-libquadmath was given.
3129 if test "${enable_libquadmath+set}" = set; then :
3130 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3132 ENABLE_LIBQUADMATH
=yes
3135 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3136 noconfigdirs
="$noconfigdirs target-libquadmath"
3140 # Check whether --enable-libquadmath-support was given.
3141 if test "${enable_libquadmath_support+set}" = set; then :
3142 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3144 ENABLE_LIBQUADMATH_SUPPORT
=yes
3147 enable_libquadmath_support
=
3148 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3149 enable_libquadmath_support
=no
3153 # Check whether --enable-libada was given.
3154 if test "${enable_libada+set}" = set; then :
3155 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3160 if test "${ENABLE_LIBADA}" != "yes" ; then
3161 noconfigdirs
="$noconfigdirs gnattools"
3164 # Check whether --enable-libssp was given.
3165 if test "${enable_libssp+set}" = set; then :
3166 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3172 # Check whether --enable-libstdcxx was given.
3173 if test "${enable_libstdcxx+set}" = set; then :
3174 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3176 ENABLE_LIBSTDCXX
=default
3179 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3180 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3183 # If this is accelerator compiler and its target is intelmic we enable
3184 # target liboffloadmic by default. If this is compiler with offloading
3185 # for intelmic we enable host liboffloadmic by default. Otherwise
3186 # liboffloadmic is disabled by default.
3187 # Check whether --enable-liboffloadmic was given.
3188 if test "${enable_liboffloadmic+set}" = set; then :
3189 enableval
=$enable_liboffloadmic; case "$enableval" in
3191 enable_liboffloadmic
=$enableval ;;
3193 as_fn_error $?
"--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3196 if test x
"$enable_as_accelerator_for" != x
; then
3198 *-intelmic-* |
*-intelmicemul-*)
3199 enable_liboffloadmic
=target
3200 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=target"
3203 enable_liboffloadmic
=no
3207 case "${enable_offload_targets}" in
3208 *-intelmic-* |
*-intelmicemul-*)
3209 enable_liboffloadmic
=host
3210 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=host"
3213 enable_liboffloadmic
=no
3221 # Enable libgomp by default on hosted POSIX systems, and a few others.
3222 if test x
$enable_libgomp = x
; then
3224 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3226 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3228 *-*-solaris2* |
*-*-hpux11*)
3230 *-*-darwin* |
*-*-aix*)
3232 nvptx
*-*-* | amdgcn
*-*-*)
3235 noconfigdirs
="$noconfigdirs target-libgomp"
3240 # Disable libatomic on unsupported systems.
3241 if test -d ${srcdir}/libatomic
; then
3242 if test x
$enable_libatomic = x
; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3244 $as_echo_n "checking for libatomic support... " >&6; }
3245 if (srcdir
=${srcdir}/libatomic
; \
3246 .
${srcdir}/configure.tgt
; \
3247 test -n "$UNSUPPORTED")
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3251 noconfigdirs
="$noconfigdirs target-libatomic"
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3254 $as_echo "yes" >&6; }
3259 # Disable liboffloadmic on unsupported systems.
3260 if test -d ${srcdir}/liboffloadmic
; then
3261 if test x
$enable_liboffloadmic != xno
; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3263 $as_echo_n "checking for liboffloadmic support... " >&6; }
3264 if (srcdir
=${srcdir}/liboffloadmic
; \
3265 .
${srcdir}/configure.tgt
; \
3266 test -n "$UNSUPPORTED")
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 noconfigdirs
="$noconfigdirs target-liboffloadmic"
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273 $as_echo "yes" >&6; }
3278 # Disable libitm on unsupported systems.
3279 if test -d ${srcdir}/libitm
; then
3280 if test x
$enable_libitm = x
; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3282 $as_echo_n "checking for libitm support... " >&6; }
3283 if (srcdir
=${srcdir}/libitm
; \
3284 .
${srcdir}/configure.tgt
; \
3285 test -n "$UNSUPPORTED")
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 noconfigdirs
="$noconfigdirs target-libitm"
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292 $as_echo "yes" >&6; }
3297 # Disable libsanitizer on unsupported systems.
3298 if test -d ${srcdir}/libsanitizer
; then
3299 if test x
$enable_libsanitizer = x
; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3301 $as_echo_n "checking for libsanitizer support... " >&6; }
3302 if (srcdir
=${srcdir}/libsanitizer
; \
3303 .
${srcdir}/configure.tgt
; \
3304 test -n "$UNSUPPORTED")
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 noconfigdirs
="$noconfigdirs target-libsanitizer"
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311 $as_echo "yes" >&6; }
3316 # Disable libvtv on unsupported systems.
3317 if test -d ${srcdir}/libvtv
; then
3318 if test x
$enable_libvtv = x
; then
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3320 $as_echo_n "checking for libvtv support... " >&6; }
3321 if (srcdir
=${srcdir}/libvtv
; \
3322 .
${srcdir}/configure.tgt
; \
3323 test "$VTV_SUPPORTED" != "yes")
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3326 $as_echo "no" >&6; }
3327 noconfigdirs
="$noconfigdirs target-libvtv"
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3330 $as_echo "yes" >&6; }
3336 # Disable libhsail-rt on unsupported systems.
3337 if test -d ${srcdir}/libhsail-rt
; then
3338 if test x
$enable_libhsail_rt = x
; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhsail-rt support" >&5
3340 $as_echo_n "checking for libhsail-rt support... " >&6; }
3341 if (srcdir
=${srcdir}/libhsail-rt
; \
3342 .
${srcdir}/configure.tgt
; \
3343 test -n "$UNSUPPORTED")
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3346 $as_echo "no" >&6; }
3347 unsupported_languages
="$unsupported_languages brig"
3348 # This implicitly disables also target-libhsail-rt as it won't
3349 # get added to the build without BRIG FE.
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3352 $as_echo "yes" >&6; }
3358 # Disable libquadmath for some systems.
3361 noconfigdirs
="$noconfigdirs target-libquadmath"
3363 # libquadmath is unused on AIX and libquadmath build process use of
3364 # LD_LIBRARY_PATH can break AIX bootstrap.
3365 powerpc-
*-aix* | rs6000-
*-aix*)
3366 noconfigdirs
="$noconfigdirs target-libquadmath"
3370 # Disable libssp for some systems.
3373 # No hosted I/O support.
3374 noconfigdirs
="$noconfigdirs target-libssp"
3377 noconfigdirs
="$noconfigdirs target-libssp"
3379 powerpc-
*-aix* | rs6000-
*-aix*)
3380 noconfigdirs
="$noconfigdirs target-libssp"
3383 # No hosted I/O support.
3384 noconfigdirs
="$noconfigdirs target-libssp"
3387 # libssp uses a misaligned load to trigger a fault, but the RL78
3388 # doesn't fault for those - instead, it gives a build-time error
3389 # for explicit misaligned loads.
3390 noconfigdirs
="$noconfigdirs target-libssp"
3393 # No hosted I/O support.
3394 noconfigdirs
="$noconfigdirs target-libssp"
3398 # Disable libstdc++-v3 for some systems.
3399 # Allow user to override this if they pass --enable-libstdc++-v3
3400 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3403 # VxWorks uses the Dinkumware C++ library.
3404 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3407 # Not ported/fails to build when using newlib.
3408 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3411 # the C++ libraries don't build on top of CE's C libraries
3412 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3415 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3418 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3421 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3426 # Disable C++ on systems where it is known to not work.
3427 # For testing, you can override this with --enable-languages=c++.
3428 case ,${enable_languages}, in
3434 unsupported_languages
="$unsupported_languages c++"
3440 # Disable Objc on systems where it is known to not work.
3441 # For testing, you can override this with --enable-languages=objc.
3442 case ,${enable_languages}, in
3448 unsupported_languages
="$unsupported_languages objc"
3454 # Disable D on systems where it is known to not work.
3455 # For testing, you can override this with --enable-languages=d.
3456 case ,${enable_languages}, in
3462 unsupported_languages
="$unsupported_languages d"
3468 # Disable libphobos on unsupported systems.
3469 # For testing, you can override this with --enable-libphobos.
3470 if test -d ${srcdir}/libphobos
; then
3471 if test x
$enable_libphobos = x
; then
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3473 $as_echo_n "checking for libphobos support... " >&6; }
3474 if (srcdir
=${srcdir}/libphobos
; \
3475 .
${srcdir}/configure.tgt
; \
3476 test "$LIBPHOBOS_SUPPORTED" != "yes")
3478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3479 $as_echo "no" >&6; }
3480 noconfigdirs
="$noconfigdirs target-libphobos"
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3483 $as_echo "yes" >&6; }
3488 # Disable Fortran for some systems.
3491 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3492 unsupported_languages
="$unsupported_languages fortran"
3495 unsupported_languages
="$unsupported_languages fortran"
3499 # Disable libffi for some systems.
3503 i
[3456789]86-*-darwin*)
3505 x86_64-
*-darwin[912]*)
3508 noconfigdirs
="$noconfigdirs target-libffi"
3511 noconfigdirs
="$noconfigdirs target-libffi"
3514 noconfigdirs
="$noconfigdirs target-libffi"
3517 noconfigdirs
="$noconfigdirs target-libffi"
3520 noconfigdirs
="$noconfigdirs target-libffi"
3523 noconfigdirs
="$noconfigdirs target-libffi"
3526 noconfigdirs
="$noconfigdirs target-libffi"
3528 aarch64
*-*-freebsd*)
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 cris-
*-* | crisv32-
*-*)
3550 *) # See PR46792 regarding target-libffi.
3551 noconfigdirs
="$noconfigdirs target-libffi";;
3555 noconfigdirs
="$noconfigdirs target-libffi"
3560 noconfigdirs
="$noconfigdirs target-libffi"
3563 noconfigdirs
="$noconfigdirs target-libffi"
3565 i
[3456789]86-w64-mingw*)
3566 noconfigdirs
="$noconfigdirs target-libffi"
3568 i
[3456789]86-*-mingw*)
3569 noconfigdirs
="$noconfigdirs target-libffi"
3572 noconfigdirs
="$noconfigdirs target-libffi"
3575 noconfigdirs
="$noconfigdirs target-libffi"
3582 noconfigdirs
="$noconfigdirs target-libffi"
3585 noconfigdirs
="$noconfigdirs target-libffi"
3589 # Disable the go frontend on systems where it is known to not work. Please keep
3590 # this in sync with contrib/config-list.mk.
3592 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3593 unsupported_languages
="$unsupported_languages go"
3597 # Only allow gdbserver on some systems.
3598 if test -d ${srcdir}/gdbserver
; then
3599 if test x
$enable_gdbserver = x
; then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3601 $as_echo_n "checking for gdbserver support... " >&6; }
3602 if (srcdir
=${srcdir}/gdbserver
; \
3603 .
${srcdir}/configure.srv
; \
3604 test -n "$UNSUPPORTED")
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3607 $as_echo "no" >&6; }
3608 noconfigdirs
="$noconfigdirs gdbserver"
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3611 $as_echo "yes" >&6; }
3616 # Disable libgo for some systems where it is known to not work.
3617 # For testing, you can easily override this with --enable-libgo.
3618 if test x
$enable_libgo = x
; then
3622 noconfigdirs
="$noconfigdirs target-libgo"
3624 *-*-cygwin* |
*-*-mingw*)
3625 noconfigdirs
="$noconfigdirs target-libgo"
3628 noconfigdirs
="$noconfigdirs target-libgo"
3633 # Default libgloss CPU subdirectory.
3634 libgloss_dir
="$target_cpu"
3637 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3641 libgloss_dir
=aarch64
3646 cris-
*-* | crisv32-
*-*)
3655 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3656 libgloss_dir
=m68hc11
3658 m68
*-*-* | fido-
*-*)
3675 # Disable newlib and libgloss for various target OSes.
3678 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3680 i
[3456789]86-*-linux*)
3681 # This section makes it possible to build newlib natively on linux.
3682 # If we are using a cross compiler then don't configure newlib.
3683 if test x
${is_cross_compiler} != xno
; then
3684 noconfigdirs
="$noconfigdirs target-newlib"
3686 noconfigdirs
="$noconfigdirs target-libgloss"
3687 # If we are not using a cross compiler, do configure newlib.
3688 # Note however, that newlib will only be configured in this situation
3689 # if the --with-newlib option has been given, because otherwise
3690 # 'target-newlib' will appear in skipdirs.
3692 i
[3456789]86-*-rdos*)
3693 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3695 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3696 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3699 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3702 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3705 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3708 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3711 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3714 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3717 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3719 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3720 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3723 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3726 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3729 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3732 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3735 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3738 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3741 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3749 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3750 noconfigdirs
="$noconfigdirs sim target-rda"
3755 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3756 noconfigdirs
="$noconfigdirs sim target-rda"
3759 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3760 noconfigdirs
="$noconfigdirs sim target-rda"
3762 i
[3456789]86-*-darwin*)
3763 noconfigdirs
="$noconfigdirs ld gprof"
3764 noconfigdirs
="$noconfigdirs sim target-rda"
3766 x86_64-
*-darwin[912]*)
3767 noconfigdirs
="$noconfigdirs ld gas gprof"
3768 noconfigdirs
="$noconfigdirs sim target-rda"
3771 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3772 noconfigdirs
="$noconfigdirs sim target-rda"
3777 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
3778 && ! test -d ${srcdir}/gmp \
3779 && test -f /usr
/local
/include
/gmp.h
; then
3784 # Remove unsupported stuff on all kaOS configurations.
3785 noconfigdirs
="$noconfigdirs target-libgloss"
3792 noconfigdirs
="$noconfigdirs target-libgloss"
3795 noconfigdirs
="$noconfigdirs target-libgloss"
3797 # The tpf target doesn't support gdb yet.
3799 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3802 noconfigdirs
="$noconfigdirs target-rda"
3807 # ld works, but does not support shared libraries.
3808 # gas doesn't generate exception information.
3809 noconfigdirs
="$noconfigdirs gas ld"
3812 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3815 # newlib is not 64 bit ready
3816 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3819 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3821 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3822 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3825 noconfigdirs
="$noconfigdirs sim"
3828 noconfigdirs
="$noconfigdirs target-libgloss"
3831 noconfigdirs
="$noconfigdirs ld target-libgloss"
3834 if test x
${with_avrlibc} != xno
; then
3835 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3838 c4x-
*-* | tic4x-
*-*)
3839 noconfigdirs
="$noconfigdirs target-libgloss"
3842 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3845 noconfigdirs
="$noconfigdirs target-libgloss"
3848 noconfigdirs
="$noconfigdirs gdb"
3851 noconfigdirs
="$noconfigdirs gdb"
3854 noconfigdirs
="$noconfigdirs target-rda gprof"
3857 noconfigdirs
="$noconfigdirs"
3860 noconfigdirs
="$noconfigdirs target-libgloss"
3863 noconfigdirs
="$noconfigdirs target-libgloss"
3865 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3868 noconfigdirs
="$noconfigdirs gdb"
3871 noconfigdirs
="$noconfigdirs gdb ld"
3879 hppa
*-*-openbsd* | \
3885 noconfigdirs
="$noconfigdirs ld"
3888 noconfigdirs
="$noconfigdirs gdb"
3891 # No gdb support yet.
3892 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3895 # No ld support yet.
3896 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3899 # No ld support yet.
3900 noconfigdirs
="$noconfigdirs libgui itcl ld"
3902 i
[3456789]86-w64-mingw*)
3904 i
[3456789]86-*-mingw*)
3905 target_configdirs
="$target_configdirs target-winsup"
3908 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3909 noconfigdirs
="$noconfigdirs target-libgloss"
3910 # always build newlib if winsup directory is present.
3911 if test -d "$srcdir/winsup/cygwin"; then
3912 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3913 elif test -d "$srcdir/newlib"; then
3914 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3918 noconfigdirs
="$noconfigdirs target-libgloss"
3920 i
[3456789]86-*-sco3.2v5
*)
3921 # The linker does not yet know about weak symbols in COFF,
3922 # and is not configured to handle mixed ELF and COFF.
3923 noconfigdirs
="$noconfigdirs ld target-libgloss"
3925 i
[3456789]86-*-sco*)
3926 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3928 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3929 noconfigdirs
="$noconfigdirs target-libgloss"
3931 i
[3456789]86-*-sysv4*)
3932 noconfigdirs
="$noconfigdirs target-libgloss"
3934 i
[3456789]86-*-beos*)
3935 noconfigdirs
="$noconfigdirs gdb"
3937 i
[3456789]86-*-rdos*)
3938 noconfigdirs
="$noconfigdirs gdb"
3941 noconfigdirs
="$noconfigdirs gdb"
3944 noconfigdirs
="$noconfigdirs sim"
3947 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3948 noconfigdirs
="$noconfigdirs $target_libraries"
3951 noconfigdirs
="$noconfigdirs gdb gprof"
3954 # copied from rs6000-*-* entry
3955 noconfigdirs
="$noconfigdirs gprof"
3957 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3958 target_configdirs
="$target_configdirs target-winsup"
3959 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3960 # always build newlib.
3961 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3963 # This is temporary until we can link against shared libraries
3964 powerpcle-
*-solaris*)
3965 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3968 noconfigdirs
="$noconfigdirs gdb"
3971 noconfigdirs
="$noconfigdirs gprof"
3974 noconfigdirs
="$noconfigdirs gprof"
3977 noconfigdirs
="$noconfigdirs gprof"
3980 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
3983 noconfigdirs
="$noconfigdirs gprof"
3985 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
3986 if test x
$with_newlib = xyes
; then
3987 noconfigdirs
="$noconfigdirs gprof"
3991 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3994 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3997 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
4001 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
4002 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
4003 noconfigdirs
="$noconfigdirs ld gas gprof"
4006 noconfigdirs
="$noconfigdirs gprof"
4009 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4016 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4020 if test x
${is_cross_compiler} = xno
; then
4025 noconfigdirs
="$noconfigdirs sim"
4027 tilepro
*-*-* | tilegx
*-*-*)
4028 noconfigdirs
="$noconfigdirs sim"
4031 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4034 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4037 noconfigdirs
="$noconfigdirs ld"
4041 # If we aren't building newlib, then don't build libgloss, since libgloss
4042 # depends upon some newlib header files.
4043 case "${noconfigdirs}" in
4044 *target-libgloss
*) ;;
4045 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4048 # Work in distributions that contain no compiler tools, like Autoconf.
4049 host_makefile_frag
=/dev
/null
4050 if test -d ${srcdir}/config
; then
4052 i
[3456789]86-*-msdosdjgpp*)
4053 host_makefile_frag
="config/mh-djgpp"
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4058 $as_echo_n "checking to see if cat works as expected... " >&6; }
4059 echo a
>cygwin-cat-check
4060 if test `cat cygwin-cat-check` = a
; then
4062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4063 $as_echo "yes" >&6; }
4066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4067 $as_echo "no" >&6; }
4068 as_fn_error $?
"The cat command does not ignore carriage return characters.
4069 Please either mount the build directory in binary mode or run the following
4070 commands before running any configure script:
4076 host_makefile_frag
="config/mh-cygwin"
4079 host_makefile_frag
="config/mh-mingw"
4082 host_makefile_frag
="config/mh-alpha-linux"
4085 host_makefile_frag
="config/mh-pa-hpux10"
4088 host_makefile_frag
="config/mh-pa"
4091 host_makefile_frag
="config/mh-pa"
4094 host_makefile_frag
="config/mh-darwin"
4097 host_makefile_frag
="config/mh-ppc-aix"
4100 host_makefile_frag
="config/mh-ppc-aix"
4105 if test "${build}" != "${host}" ; then
4106 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4107 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4108 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4109 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4110 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4111 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4112 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4113 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4114 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4115 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4116 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4117 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4118 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4120 AR_FOR_BUILD
="\$(AR)"
4121 AS_FOR_BUILD
="\$(AS)"
4122 CC_FOR_BUILD
="\$(CC)"
4123 CXX_FOR_BUILD
="\$(CXX)"
4124 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4125 GOC_FOR_BUILD
="\$(GOC)"
4126 GDC_FOR_BUILD
="\$(GDC)"
4127 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4128 LD_FOR_BUILD
="\$(LD)"
4129 NM_FOR_BUILD
="\$(NM)"
4130 RANLIB_FOR_BUILD
="\$(RANLIB)"
4131 WINDRES_FOR_BUILD
="\$(WINDRES)"
4132 WINDMC_FOR_BUILD
="\$(WINDMC)"
4136 ac_cpp
='$CPP $CPPFLAGS'
4137 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4138 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4139 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4140 if test -n "$ac_tool_prefix"; then
4141 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4142 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4144 $as_echo_n "checking for $ac_word... " >&6; }
4145 if ${ac_cv_prog_CC+:} false
; then :
4146 $as_echo_n "(cached) " >&6
4148 if test -n "$CC"; then
4149 ac_cv_prog_CC
="$CC" # Let the user override the test.
4151 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4155 test -z "$as_dir" && as_dir
=.
4156 for ac_exec_ext
in '' $ac_executable_extensions; do
4157 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4158 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4169 if test -n "$CC"; then
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4171 $as_echo "$CC" >&6; }
4173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4174 $as_echo "no" >&6; }
4179 if test -z "$ac_cv_prog_CC"; then
4181 # Extract the first word of "gcc", so it can be a program name with args.
4182 set dummy gcc
; ac_word
=$2
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4184 $as_echo_n "checking for $ac_word... " >&6; }
4185 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4186 $as_echo_n "(cached) " >&6
4188 if test -n "$ac_ct_CC"; then
4189 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4191 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4195 test -z "$as_dir" && as_dir
=.
4196 for ac_exec_ext
in '' $ac_executable_extensions; do
4197 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4198 ac_cv_prog_ac_ct_CC
="gcc"
4199 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4208 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4209 if test -n "$ac_ct_CC"; then
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4211 $as_echo "$ac_ct_CC" >&6; }
4213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4214 $as_echo "no" >&6; }
4217 if test "x$ac_ct_CC" = x
; then
4220 case $cross_compiling:$ac_tool_warned in
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4223 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4224 ac_tool_warned
=yes ;;
4232 if test -z "$CC"; then
4233 if test -n "$ac_tool_prefix"; then
4234 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4235 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4237 $as_echo_n "checking for $ac_word... " >&6; }
4238 if ${ac_cv_prog_CC+:} false
; then :
4239 $as_echo_n "(cached) " >&6
4241 if test -n "$CC"; then
4242 ac_cv_prog_CC
="$CC" # Let the user override the test.
4244 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4248 test -z "$as_dir" && as_dir
=.
4249 for ac_exec_ext
in '' $ac_executable_extensions; do
4250 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4251 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4262 if test -n "$CC"; then
4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4264 $as_echo "$CC" >&6; }
4266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4267 $as_echo "no" >&6; }
4273 if test -z "$CC"; then
4274 # Extract the first word of "cc", so it can be a program name with args.
4275 set dummy cc
; ac_word
=$2
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277 $as_echo_n "checking for $ac_word... " >&6; }
4278 if ${ac_cv_prog_CC+:} false
; then :
4279 $as_echo_n "(cached) " >&6
4281 if test -n "$CC"; then
4282 ac_cv_prog_CC
="$CC" # Let the user override the test.
4285 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4289 test -z "$as_dir" && as_dir
=.
4290 for ac_exec_ext
in '' $ac_executable_extensions; do
4291 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4292 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4293 ac_prog_rejected
=yes
4297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4304 if test $ac_prog_rejected = yes; then
4305 # We found a bogon in the path, so make sure we never use it.
4306 set dummy
$ac_cv_prog_CC
4308 if test $# != 0; then
4309 # We chose a different compiler from the bogus one.
4310 # However, it has the same basename, so the bogon will be chosen
4311 # first if we set CC to just the basename; use the full file name.
4313 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4319 if test -n "$CC"; then
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4321 $as_echo "$CC" >&6; }
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4324 $as_echo "no" >&6; }
4329 if test -z "$CC"; then
4330 if test -n "$ac_tool_prefix"; then
4331 for ac_prog
in cl.exe
4333 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4334 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4336 $as_echo_n "checking for $ac_word... " >&6; }
4337 if ${ac_cv_prog_CC+:} false
; then :
4338 $as_echo_n "(cached) " >&6
4340 if test -n "$CC"; then
4341 ac_cv_prog_CC
="$CC" # Let the user override the test.
4343 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4347 test -z "$as_dir" && as_dir
=.
4348 for ac_exec_ext
in '' $ac_executable_extensions; do
4349 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4350 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4361 if test -n "$CC"; then
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4363 $as_echo "$CC" >&6; }
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4366 $as_echo "no" >&6; }
4370 test -n "$CC" && break
4373 if test -z "$CC"; then
4375 for ac_prog
in cl.exe
4377 # Extract the first word of "$ac_prog", so it can be a program name with args.
4378 set dummy
$ac_prog; ac_word
=$2
4379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4380 $as_echo_n "checking for $ac_word... " >&6; }
4381 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4382 $as_echo_n "(cached) " >&6
4384 if test -n "$ac_ct_CC"; then
4385 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4391 test -z "$as_dir" && as_dir
=.
4392 for ac_exec_ext
in '' $ac_executable_extensions; do
4393 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4394 ac_cv_prog_ac_ct_CC
="$ac_prog"
4395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4404 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4405 if test -n "$ac_ct_CC"; then
4406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4407 $as_echo "$ac_ct_CC" >&6; }
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4410 $as_echo "no" >&6; }
4414 test -n "$ac_ct_CC" && break
4417 if test "x$ac_ct_CC" = x
; then
4420 case $cross_compiling:$ac_tool_warned in
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4423 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4424 ac_tool_warned
=yes ;;
4433 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4434 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4435 as_fn_error $?
"no acceptable C compiler found in \$PATH
4436 See \`config.log' for more details" "$LINENO" 5; }
4438 # Provide some information about the compiler.
4439 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4442 for ac_option
in --version -v -V -qversion; do
4443 { { ac_try
="$ac_compiler $ac_option >&5"
4445 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4446 *) ac_try_echo=$ac_try;;
4448 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4449 $as_echo "$ac_try_echo"; } >&5
4450 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4452 if test -s conftest.err; then
4454 ... rest of stderr output deleted ...
4455 10q' conftest.err >conftest.er1
4456 cat conftest.er1 >&5
4458 rm -f conftest.er1 conftest.err
4459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4460 test $ac_status = 0; }
4463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4464 /* end confdefs.h. */
4474 ac_clean_files_save=$ac_clean_files
4475 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4476 # Try to create an executable without -o first, disregard a.out.
4477 # It will help us diagnose broken compilers, and finding out an intuition
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4480 $as_echo_n "checking whether the C compiler works... " >&6; }
4481 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4483 # The possible output files:
4484 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4487 for ac_file in $ac_files
4490 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4491 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4496 if { { ac_try="$ac_link_default"
4498 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4499 *) ac_try_echo
=$ac_try;;
4501 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4502 $as_echo "$ac_try_echo"; } >&5
4503 (eval "$ac_link_default") 2>&5
4505 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4506 test $ac_status = 0; }; then :
4507 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4508 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4509 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4510 # so that the user can short-circuit this test for compilers unknown to
4512 for ac_file
in $ac_files ''
4514 test -f "$ac_file" ||
continue
4516 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4519 # We found the default executable, but exeext='' is most
4523 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4525 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4527 # We set ac_cv_exeext here because the later test for it is not
4528 # safe: cross compilers may not add the suffix if given an `-o'
4529 # argument, so we may need to know it at that point already.
4530 # Even if this section looks crufty: it has the advantage of
4537 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4542 if test -z "$ac_file"; then :
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544 $as_echo "no" >&6; }
4545 $as_echo "$as_me: failed program was:" >&5
4546 sed 's/^/| /' conftest.
$ac_ext >&5
4548 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4549 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4550 as_fn_error
77 "C compiler cannot create executables
4551 See \`config.log' for more details" "$LINENO" 5; }
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4554 $as_echo "yes" >&6; }
4556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4557 $as_echo_n "checking for C compiler default output file name... " >&6; }
4558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4559 $as_echo "$ac_file" >&6; }
4560 ac_exeext
=$ac_cv_exeext
4562 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4563 ac_clean_files
=$ac_clean_files_save
4564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4565 $as_echo_n "checking for suffix of executables... " >&6; }
4566 if { { ac_try
="$ac_link"
4568 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4569 *) ac_try_echo=$ac_try;;
4571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_link") 2>&5
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; }; then :
4577 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4578 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4579 # work properly (i.e., refer to `conftest.exe'), while it won't with
4581 for ac_file
in conftest.exe conftest conftest.
*; do
4582 test -f "$ac_file" ||
continue
4584 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4585 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4593 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4594 See \`config.log' for more details" "$LINENO" 5; }
4596 rm -f conftest conftest
$ac_cv_exeext
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4598 $as_echo "$ac_cv_exeext" >&6; }
4600 rm -f conftest.
$ac_ext
4601 EXEEXT
=$ac_cv_exeext
4603 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4609 FILE *f = fopen ("conftest.out", "w");
4610 return ferror (f) || fclose (f) != 0;
4616 ac_clean_files
="$ac_clean_files conftest.out"
4617 # Check that the compiler produces executables we can run. If not, either
4618 # the compiler is broken, or we cross compile.
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4620 $as_echo_n "checking whether we are cross compiling... " >&6; }
4621 if test "$cross_compiling" != yes; then
4622 { { ac_try
="$ac_link"
4624 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4625 *) ac_try_echo=$ac_try;;
4627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4628 $as_echo "$ac_try_echo"; } >&5
4629 (eval "$ac_link") 2>&5
4631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4632 test $ac_status = 0; }
4633 if { ac_try='./conftest$ac_cv_exeext'
4634 { { case "(($ac_try" in
4635 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4636 *) ac_try_echo
=$ac_try;;
4638 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4639 $as_echo "$ac_try_echo"; } >&5
4640 (eval "$ac_try") 2>&5
4642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4643 test $ac_status = 0; }; }; then
4646 if test "$cross_compiling" = maybe
; then
4649 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4650 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4651 as_fn_error $?
"cannot run C compiled programs.
4652 If you meant to cross compile, use \`--host'.
4653 See \`config.log' for more details" "$LINENO" 5; }
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4658 $as_echo "$cross_compiling" >&6; }
4660 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4661 ac_clean_files
=$ac_clean_files_save
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4663 $as_echo_n "checking for suffix of object files... " >&6; }
4664 if ${ac_cv_objext+:} false
; then :
4665 $as_echo_n "(cached) " >&6
4667 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4668 /* end confdefs.h. */
4678 rm -f conftest.o conftest.obj
4679 if { { ac_try
="$ac_compile"
4681 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4682 *) ac_try_echo=$ac_try;;
4684 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4685 $as_echo "$ac_try_echo"; } >&5
4686 (eval "$ac_compile") 2>&5
4688 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4689 test $ac_status = 0; }; then :
4690 for ac_file in conftest.o conftest.obj conftest.*; do
4691 test -f "$ac_file" || continue;
4693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4694 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4699 $as_echo "$as_me: failed program was:" >&5
4700 sed 's/^/| /' conftest.$ac_ext >&5
4702 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4703 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4704 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4705 See \
`config.log' for more details" "$LINENO" 5; }
4707 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4710 $as_echo "$ac_cv_objext" >&6; }
4711 OBJEXT=$ac_cv_objext
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4714 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4715 if ${ac_cv_c_compiler_gnu+:} false; then :
4716 $as_echo_n "(cached) " >&6
4718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4719 /* end confdefs.h. */
4732 if ac_fn_c_try_compile "$LINENO"; then :
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4738 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4742 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4743 if test $ac_compiler_gnu = yes; then
4748 ac_test_CFLAGS=${CFLAGS+set}
4749 ac_save_CFLAGS=$CFLAGS
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4751 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4752 if ${ac_cv_prog_cc_g+:} false; then :
4753 $as_echo_n "(cached) " >&6
4755 ac_save_c_werror_flag=$ac_c_werror_flag
4756 ac_c_werror_flag=yes
4759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4760 /* end confdefs.h. */
4770 if ac_fn_c_try_compile "$LINENO"; then :
4774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4775 /* end confdefs.h. */
4785 if ac_fn_c_try_compile "$LINENO"; then :
4788 ac_c_werror_flag=$ac_save_c_werror_flag
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4801 if ac_fn_c_try_compile "$LINENO"; then :
4804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4806 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4809 ac_c_werror_flag=$ac_save_c_werror_flag
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4812 $as_echo "$ac_cv_prog_cc_g" >&6; }
4813 if test "$ac_test_CFLAGS" = set; then
4814 CFLAGS=$ac_save_CFLAGS
4815 elif test $ac_cv_prog_cc_g = yes; then
4816 if test "$GCC" = yes; then
4822 if test "$GCC" = yes; then
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4829 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4830 if ${ac_cv_prog_cc_c89+:} false; then :
4831 $as_echo_n "(cached) " >&6
4833 ac_cv_prog_cc_c89=no
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4840 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4841 struct buf { int x; };
4842 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4843 static char *e (p, i)
4849 static char *f (char * (*g) (char **, int), char **p, ...)
4854 s = g (p, va_arg (v,int));
4859 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4860 function prototypes and stuff, but not '\xHH' hex character constants.
4861 These don't provoke an error unfortunately, instead are silently treated
4862 as 'x'. The following induces an error, until -std is added to get
4863 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4864 array size at least. It's necessary to write '\x00'==0 to get something
4865 that's true only with -std. */
4866 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4868 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4869 inside strings and character constants. */
4871 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4873 int test (int i, double x);
4874 struct s1 {int (*f) (int a);};
4875 struct s2 {int (*f) (double a);};
4876 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4882 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4887 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4888 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4890 CC="$ac_save_CC $ac_arg"
4891 if ac_fn_c_try_compile "$LINENO"; then :
4892 ac_cv_prog_cc_c89=$ac_arg
4894 rm -f core conftest.err conftest.$ac_objext
4895 test "x$ac_cv_prog_cc_c89" != "xno" && break
4897 rm -f conftest.$ac_ext
4902 case "x$ac_cv_prog_cc_c89" in
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4905 $as_echo "none needed" >&6; } ;;
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4908 $as_echo "unsupported" >&6; } ;;
4910 CC="$CC $ac_cv_prog_cc_c89"
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4912 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4914 if test "x$ac_cv_prog_cc_c89" != xno; then :
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4925 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4926 if ${ac_cv_prog_cc_c99+:} false; then :
4927 $as_echo_n "(cached) " >&6
4929 ac_cv_prog_cc_c99=no
4931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4932 /* end confdefs.h. */
4934 #include <stdbool.h>
4939 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4940 #define debug(...) fprintf (stderr, __VA_ARGS__)
4941 #define showlist(...) puts (#__VA_ARGS__)
4942 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4944 test_varargs_macros (void)
4949 debug ("X = %d\n", x);
4950 showlist (The first, second, and third items.);
4951 report (x>y, "x is %d but y is %d", x, y);
4954 // Check long long types.
4955 #define BIG64 18446744073709551615ull
4956 #define BIG32 4294967295ul
4957 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4959 your preprocessor is broken;
4963 your preprocessor is broken;
4965 static long long int bignum = -9223372036854775807LL;
4966 static unsigned long long int ubignum = BIG64;
4968 struct incomplete_array
4976 const wchar_t *name;
4980 typedef const char *ccp;
4983 test_restrict (ccp restrict text)
4985 // See if C++-style comments work.
4986 // Iterate through items via the restricted pointer.
4987 // Also check for declarations in for loops.
4988 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4993 // Check varargs and va_copy.
4995 test_varargs (const char *format, ...)
4998 va_start (args, format);
5000 va_copy (args_copy, args);
5011 str = va_arg (args_copy, const char *);
5014 number = va_arg (args_copy, int);
5017 fnumber = va_arg (args_copy, double);
5032 _Bool success = false;
5035 if (test_restrict ("String literal") == 0)
5037 char *restrict newvar = "Another string";
5040 test_varargs ("s, d' f .", "string", 65, 34.234);
5041 test_varargs_macros ();
5043 // Check flexible array members.
5044 struct incomplete_array *ia =
5045 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5047 for (int i = 0; i < ia->datasize; ++i)
5048 ia->data[i] = i * 1.234;
5050 // Check named initializers.
5051 struct named_init ni = {
5053 .name = L"Test wide string",
5054 .average = 543.34343,
5059 int dynamic_array[ni.number];
5060 dynamic_array[ni.number - 1] = 543;
5062 // work around unused variable warnings
5063 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5064 || dynamic_array[ni.number - 1] != 543);
5070 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5072 CC="$ac_save_CC $ac_arg"
5073 if ac_fn_c_try_compile "$LINENO"; then :
5074 ac_cv_prog_cc_c99=$ac_arg
5076 rm -f core conftest.err conftest.$ac_objext
5077 test "x$ac_cv_prog_cc_c99" != "xno" && break
5079 rm -f conftest.$ac_ext
5084 case "x$ac_cv_prog_cc_c99" in
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5087 $as_echo "none needed" >&6; } ;;
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5090 $as_echo "unsupported" >&6; } ;;
5092 CC="$CC $ac_cv_prog_cc_c99"
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5094 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5096 if test "x$ac_cv_prog_cc_c99" != xno; then :
5102 ac_cpp='$CXXCPP $CPPFLAGS'
5103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5106 if test -z "$CXX"; then
5107 if test -n "$CCC"; then
5110 if test -n "$ac_tool_prefix"; then
5111 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5116 $as_echo_n "checking for $ac_word... " >&6; }
5117 if ${ac_cv_prog_CXX+:} false; then :
5118 $as_echo_n "(cached) " >&6
5120 if test -n "$CXX"; then
5121 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5130 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5141 if test -n "$CXX"; then
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5143 $as_echo "$CXX" >&6; }
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5146 $as_echo "no" >&6; }
5150 test -n "$CXX" && break
5153 if test -z "$CXX"; then
5155 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5157 # Extract the first word of "$ac_prog", so it can be a program name with args.
5158 set dummy $ac_prog; ac_word=$2
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5160 $as_echo_n "checking for $ac_word... " >&6; }
5161 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5162 $as_echo_n "(cached) " >&6
5164 if test -n "$ac_ct_CXX"; then
5165 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5174 ac_cv_prog_ac_ct_CXX="$ac_prog"
5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5185 if test -n "$ac_ct_CXX"; then
5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5187 $as_echo "$ac_ct_CXX" >&6; }
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5190 $as_echo "no" >&6; }
5194 test -n "$ac_ct_CXX" && break
5197 if test "x$ac_ct_CXX" = x; then
5200 case $cross_compiling:$ac_tool_warned in
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5204 ac_tool_warned=yes ;;
5212 # Provide some information about the compiler.
5213 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5216 for ac_option in --version -v -V -qversion; do
5217 { { ac_try="$ac_compiler $ac_option >&5"
5219 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5220 *) ac_try_echo
=$ac_try;;
5222 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5223 $as_echo "$ac_try_echo"; } >&5
5224 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5226 if test -s conftest.err
; then
5228 ... rest of stderr output deleted ...
5229 10q' conftest.err
>conftest.er1
5230 cat conftest.er1
>&5
5232 rm -f conftest.er1 conftest.err
5233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5234 test $ac_status = 0; }
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5238 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5239 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5240 $as_echo_n "(cached) " >&6
5242 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5243 /* end confdefs.h. */
5256 if ac_fn_cxx_try_compile
"$LINENO"; then :
5261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5262 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5266 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5267 if test $ac_compiler_gnu = yes; then
5272 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5273 ac_save_CXXFLAGS
=$CXXFLAGS
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5275 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5276 if ${ac_cv_prog_cxx_g+:} false
; then :
5277 $as_echo_n "(cached) " >&6
5279 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5280 ac_cxx_werror_flag
=yes
5283 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5284 /* end confdefs.h. */
5294 if ac_fn_cxx_try_compile
"$LINENO"; then :
5295 ac_cv_prog_cxx_g
=yes
5298 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5309 if ac_fn_cxx_try_compile
"$LINENO"; then :
5312 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5325 if ac_fn_cxx_try_compile
"$LINENO"; then :
5326 ac_cv_prog_cxx_g
=yes
5328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5330 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5333 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5336 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5337 if test "$ac_test_CXXFLAGS" = set; then
5338 CXXFLAGS
=$ac_save_CXXFLAGS
5339 elif test $ac_cv_prog_cxx_g = yes; then
5340 if test "$GXX" = yes; then
5346 if test "$GXX" = yes; then
5353 ac_cpp
='$CPP $CPPFLAGS'
5354 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5355 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5356 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5359 # We must set the default linker to the linker used by gcc for the correct
5360 # operation of libtool. If LD is not defined and we are using gcc, try to
5361 # set the LD default to the ld used by gcc.
5362 if test -z "$LD"; then
5363 if test "$GCC" = yes; then
5366 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5368 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5370 case $gcc_prog_ld in
5371 # Accept absolute paths.
5372 [\\/]* |
[A-Za-z
]:[\\/]*)
5373 LD
="$gcc_prog_ld" ;;
5378 # Check whether -static-libstdc++ -static-libgcc is supported.
5380 if test "$GCC" = yes; then
5381 saved_LDFLAGS
="$LDFLAGS"
5383 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5385 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5387 ac_cpp
='$CXXCPP $CPPFLAGS'
5388 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5389 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5390 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5393 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5394 /* end confdefs.h. */
5396 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5397 #error -static-libstdc++ not implemented
5401 if ac_fn_cxx_try_link
"$LINENO"; then :
5402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5403 $as_echo "yes" >&6; }; have_static_libs
=yes
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5406 $as_echo "no" >&6; }
5408 rm -f core conftest.err conftest.
$ac_objext \
5409 conftest
$ac_exeext conftest.
$ac_ext
5411 ac_cpp
='$CPP $CPPFLAGS'
5412 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5413 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5414 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5417 LDFLAGS
="$saved_LDFLAGS"
5423 if test -n "$ac_tool_prefix"; then
5424 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5425 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5427 $as_echo_n "checking for $ac_word... " >&6; }
5428 if ${ac_cv_prog_GNATBIND+:} false
; then :
5429 $as_echo_n "(cached) " >&6
5431 if test -n "$GNATBIND"; then
5432 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5438 test -z "$as_dir" && as_dir
=.
5439 for ac_exec_ext
in '' $ac_executable_extensions; do
5440 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5441 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5451 GNATBIND
=$ac_cv_prog_GNATBIND
5452 if test -n "$GNATBIND"; then
5453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5454 $as_echo "$GNATBIND" >&6; }
5456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5457 $as_echo "no" >&6; }
5462 if test -z "$ac_cv_prog_GNATBIND"; then
5463 ac_ct_GNATBIND
=$GNATBIND
5464 # Extract the first word of "gnatbind", so it can be a program name with args.
5465 set dummy gnatbind
; ac_word
=$2
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5467 $as_echo_n "checking for $ac_word... " >&6; }
5468 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5469 $as_echo_n "(cached) " >&6
5471 if test -n "$ac_ct_GNATBIND"; then
5472 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5474 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5478 test -z "$as_dir" && as_dir
=.
5479 for ac_exec_ext
in '' $ac_executable_extensions; do
5480 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5481 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5491 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5492 if test -n "$ac_ct_GNATBIND"; then
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5494 $as_echo "$ac_ct_GNATBIND" >&6; }
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5497 $as_echo "no" >&6; }
5500 if test "x$ac_ct_GNATBIND" = x
; then
5503 case $cross_compiling:$ac_tool_warned in
5505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5506 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5507 ac_tool_warned
=yes ;;
5509 GNATBIND
=$ac_ct_GNATBIND
5512 GNATBIND
="$ac_cv_prog_GNATBIND"
5515 if test -n "$ac_tool_prefix"; then
5516 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5517 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5519 $as_echo_n "checking for $ac_word... " >&6; }
5520 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5521 $as_echo_n "(cached) " >&6
5523 if test -n "$GNATMAKE"; then
5524 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5526 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5530 test -z "$as_dir" && as_dir
=.
5531 for ac_exec_ext
in '' $ac_executable_extensions; do
5532 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5533 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 GNATMAKE
=$ac_cv_prog_GNATMAKE
5544 if test -n "$GNATMAKE"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5546 $as_echo "$GNATMAKE" >&6; }
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5554 if test -z "$ac_cv_prog_GNATMAKE"; then
5555 ac_ct_GNATMAKE
=$GNATMAKE
5556 # Extract the first word of "gnatmake", so it can be a program name with args.
5557 set dummy gnatmake
; ac_word
=$2
5558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5559 $as_echo_n "checking for $ac_word... " >&6; }
5560 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5561 $as_echo_n "(cached) " >&6
5563 if test -n "$ac_ct_GNATMAKE"; then
5564 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5570 test -z "$as_dir" && as_dir
=.
5571 for ac_exec_ext
in '' $ac_executable_extensions; do
5572 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5573 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5583 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5584 if test -n "$ac_ct_GNATMAKE"; then
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5586 $as_echo "$ac_ct_GNATMAKE" >&6; }
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5589 $as_echo "no" >&6; }
5592 if test "x$ac_ct_GNATMAKE" = x
; then
5595 case $cross_compiling:$ac_tool_warned in
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5598 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5599 ac_tool_warned
=yes ;;
5601 GNATMAKE
=$ac_ct_GNATMAKE
5604 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5608 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5609 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5610 $as_echo_n "(cached) " >&6
5612 cat >conftest.adb
<<EOF
5613 procedure conftest is begin null; end conftest;
5615 acx_cv_cc_gcc_supports_ada
=no
5616 # There is a bug in old released versions of GCC which causes the
5617 # driver to exit successfully when the appropriate language module
5618 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5619 # Therefore we must check for the error message as well as an
5620 # unsuccessful exit.
5621 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5622 # given a .adb file, but produce no object file. So we must check
5623 # if an object file was really produced to guard against this.
5624 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5625 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5626 acx_cv_cc_gcc_supports_ada
=yes
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5631 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5633 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5640 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5641 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5642 $as_echo_n "(cached) " >&6
5646 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5647 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5648 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5651 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5654 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5655 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5658 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5665 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5666 do_compare
="$gcc_cv_prog_cmp_skip"
5670 # Check whether --enable-bootstrap was given.
5671 if test "${enable_bootstrap+set}" = set; then :
5672 enableval
=$enable_bootstrap;
5674 enable_bootstrap
=default
5678 # Issue errors and warnings for invalid/strange bootstrap combinations.
5679 if test -r $srcdir/gcc
/configure
; then
5685 case "$have_compiler:$host:$target:$enable_bootstrap" in
5688 # Default behavior. Enable bootstrap if we have a compiler
5689 # and we are in a native configuration.
5690 yes:$build:$build:default
)
5691 enable_bootstrap
=yes ;;
5694 enable_bootstrap
=no
;;
5696 # We have a compiler and we are in a native configuration, bootstrap is ok
5697 yes:$build:$build:yes)
5700 # Other configurations, but we have a compiler. Assume the user knows
5703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5704 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5707 # No compiler: if they passed --enable-bootstrap explicitly, fail
5709 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5711 # Fail if wrong command line
5713 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5717 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5718 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5719 # require C++11 (or higher).
5720 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5721 CXX
="$CXX -std=c++11"
5722 elif test "$have_compiler" = yes; then
5723 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5725 ac_cpp
='$CXXCPP $CPPFLAGS'
5726 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5727 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5728 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5732 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5733 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5734 $as_echo_n "(cached) " >&6
5736 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5737 /* end confdefs.h. */
5740 // If the compiler admits that it is not ready for C++11, why torture it?
5741 // Hopefully, this will speed up the test.
5745 #error "This is not a C++ compiler"
5747 #elif __cplusplus < 201103L
5749 #error "This is not a C++11 compiler"
5756 namespace test_static_assert
5759 template <typename T>
5762 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5767 namespace test_final_override
5776 struct Derived : public Base
5778 virtual ~Derived() override {}
5779 virtual void f() override {}
5784 namespace test_double_right_angle_brackets
5787 template < typename T >
5790 typedef check<void> single_type;
5791 typedef check<check<void>> double_type;
5792 typedef check<check<check<void>>> triple_type;
5793 typedef check<check<check<check<void>>>> quadruple_type;
5797 namespace test_decltype
5810 namespace test_type_deduction
5813 template < typename T1, typename T2 >
5816 static const bool value = false;
5819 template < typename T >
5820 struct is_same<T, T>
5822 static const bool value = true;
5825 template < typename T1, typename T2 >
5827 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5833 test(const int c, volatile int v)
5835 static_assert(is_same<int, decltype(0)>::value == true, "");
5836 static_assert(is_same<int, decltype(c)>::value == false, "");
5837 static_assert(is_same<int, decltype(v)>::value == false, "");
5840 auto sumi = ac + av + 'x';
5841 auto sumf = ac + av + 1.0;
5842 static_assert(is_same<int, decltype(ac)>::value == true, "");
5843 static_assert(is_same<int, decltype(av)>::value == true, "");
5844 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5845 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5846 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5847 return (sumf > 0.0) ? sumi : add(c, v);
5852 namespace test_noexcept
5855 int f() { return 0; }
5856 int g() noexcept { return 0; }
5858 static_assert(noexcept(f()) == false, "");
5859 static_assert(noexcept(g()) == true, "");
5863 namespace test_constexpr
5866 template < typename CharT >
5867 unsigned long constexpr
5868 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5870 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5873 template < typename CharT >
5874 unsigned long constexpr
5875 strlen_c(const CharT *const s) noexcept
5877 return strlen_c_r(s, 0UL);
5880 static_assert(strlen_c("") == 0UL, "");
5881 static_assert(strlen_c("1") == 1UL, "");
5882 static_assert(strlen_c("example") == 7UL, "");
5883 static_assert(strlen_c("another\0example") == 7UL, "");
5887 namespace test_rvalue_references
5893 static constexpr int value = N;
5896 answer<1> f(int&) { return answer<1>(); }
5897 answer<2> f(const int&) { return answer<2>(); }
5898 answer<3> f(int&&) { return answer<3>(); }
5905 static_assert(decltype(f(i))::value == 1, "");
5906 static_assert(decltype(f(c))::value == 2, "");
5907 static_assert(decltype(f(0))::value == 3, "");
5912 namespace test_uniform_initialization
5917 static const int zero {};
5918 static const int one {1};
5921 static_assert(test::zero == 0, "");
5922 static_assert(test::one == 1, "");
5926 namespace test_lambdas
5932 auto lambda1 = [](){};
5933 auto lambda2 = lambda1;
5941 auto a = [](int i, int j){ return i + j; }(1, 2);
5942 auto b = []() -> int { return '0'; }();
5943 auto c = [=](){ return a + b; }();
5944 auto d = [&](){ return c; }();
5945 auto e = [a, &b](int x) mutable {
5946 const auto identity = [](int y){ return y; };
5947 for (auto i = 0; i < a; ++i)
5949 return x + identity(a + b);
5951 return a + b + c + d + e;
5957 const auto nullary = [](){ return 0; };
5958 const auto unary = [](int x){ return x; };
5959 using nullary_t = decltype(nullary);
5960 using unary_t = decltype(unary);
5961 const auto higher1st = [](nullary_t f){ return f(); };
5962 const auto higher2nd = [unary](nullary_t f1){
5963 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5965 return higher1st(nullary) + higher2nd(nullary)(unary);
5970 namespace test_variadic_templates
5976 template <int N0, int... N1toN>
5977 struct sum<N0, N1toN...>
5979 static constexpr auto value = N0 + sum<N1toN...>::value;
5985 static constexpr auto value = 0;
5988 static_assert(sum<>::value == 0, "");
5989 static_assert(sum<1>::value == 1, "");
5990 static_assert(sum<23>::value == 23, "");
5991 static_assert(sum<1, 2>::value == 3, "");
5992 static_assert(sum<5, 5, 11>::value == 21, "");
5993 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5997 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5998 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6000 namespace test_template_alias_sfinae
6005 template<typename T>
6006 using member = typename T::member_type;
6008 template<typename T>
6011 template<typename T>
6012 void func(member<T>*) {}
6016 void test() { func<foo>(0); }
6020 } // namespace cxx11
6022 #endif // __cplusplus >= 201103L
6027 if ac_fn_cxx_try_compile
"$LINENO"; then :
6028 ax_cv_cxx_compile_cxx11
=yes
6030 ax_cv_cxx_compile_cxx11
=no
6032 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6035 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6036 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6040 if test x
$ac_success = xno
; then
6041 for alternative
in ${ax_cxx_compile_alternatives}; do
6042 switch
="-std=gnu++${alternative}"
6043 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6045 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6046 if eval \
${$cachevar+:} false
; then :
6047 $as_echo_n "(cached) " >&6
6051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6052 /* end confdefs.h. */
6055 // If the compiler admits that it is not ready for C++11, why torture it?
6056 // Hopefully, this will speed up the test.
6060 #error "This is not a C++ compiler"
6062 #elif __cplusplus < 201103L
6064 #error "This is not a C++11 compiler"
6071 namespace test_static_assert
6074 template <typename T>
6077 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6082 namespace test_final_override
6091 struct Derived : public Base
6093 virtual ~Derived() override {}
6094 virtual void f() override {}
6099 namespace test_double_right_angle_brackets
6102 template < typename T >
6105 typedef check<void> single_type;
6106 typedef check<check<void>> double_type;
6107 typedef check<check<check<void>>> triple_type;
6108 typedef check<check<check<check<void>>>> quadruple_type;
6112 namespace test_decltype
6125 namespace test_type_deduction
6128 template < typename T1, typename T2 >
6131 static const bool value = false;
6134 template < typename T >
6135 struct is_same<T, T>
6137 static const bool value = true;
6140 template < typename T1, typename T2 >
6142 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6148 test(const int c, volatile int v)
6150 static_assert(is_same<int, decltype(0)>::value == true, "");
6151 static_assert(is_same<int, decltype(c)>::value == false, "");
6152 static_assert(is_same<int, decltype(v)>::value == false, "");
6155 auto sumi = ac + av + 'x';
6156 auto sumf = ac + av + 1.0;
6157 static_assert(is_same<int, decltype(ac)>::value == true, "");
6158 static_assert(is_same<int, decltype(av)>::value == true, "");
6159 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6160 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6161 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6162 return (sumf > 0.0) ? sumi : add(c, v);
6167 namespace test_noexcept
6170 int f() { return 0; }
6171 int g() noexcept { return 0; }
6173 static_assert(noexcept(f()) == false, "");
6174 static_assert(noexcept(g()) == true, "");
6178 namespace test_constexpr
6181 template < typename CharT >
6182 unsigned long constexpr
6183 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6185 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6188 template < typename CharT >
6189 unsigned long constexpr
6190 strlen_c(const CharT *const s) noexcept
6192 return strlen_c_r(s, 0UL);
6195 static_assert(strlen_c("") == 0UL, "");
6196 static_assert(strlen_c("1") == 1UL, "");
6197 static_assert(strlen_c("example") == 7UL, "");
6198 static_assert(strlen_c("another\0example") == 7UL, "");
6202 namespace test_rvalue_references
6208 static constexpr int value = N;
6211 answer<1> f(int&) { return answer<1>(); }
6212 answer<2> f(const int&) { return answer<2>(); }
6213 answer<3> f(int&&) { return answer<3>(); }
6220 static_assert(decltype(f(i))::value == 1, "");
6221 static_assert(decltype(f(c))::value == 2, "");
6222 static_assert(decltype(f(0))::value == 3, "");
6227 namespace test_uniform_initialization
6232 static const int zero {};
6233 static const int one {1};
6236 static_assert(test::zero == 0, "");
6237 static_assert(test::one == 1, "");
6241 namespace test_lambdas
6247 auto lambda1 = [](){};
6248 auto lambda2 = lambda1;
6256 auto a = [](int i, int j){ return i + j; }(1, 2);
6257 auto b = []() -> int { return '0'; }();
6258 auto c = [=](){ return a + b; }();
6259 auto d = [&](){ return c; }();
6260 auto e = [a, &b](int x) mutable {
6261 const auto identity = [](int y){ return y; };
6262 for (auto i = 0; i < a; ++i)
6264 return x + identity(a + b);
6266 return a + b + c + d + e;
6272 const auto nullary = [](){ return 0; };
6273 const auto unary = [](int x){ return x; };
6274 using nullary_t = decltype(nullary);
6275 using unary_t = decltype(unary);
6276 const auto higher1st = [](nullary_t f){ return f(); };
6277 const auto higher2nd = [unary](nullary_t f1){
6278 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6280 return higher1st(nullary) + higher2nd(nullary)(unary);
6285 namespace test_variadic_templates
6291 template <int N0, int... N1toN>
6292 struct sum<N0, N1toN...>
6294 static constexpr auto value = N0 + sum<N1toN...>::value;
6300 static constexpr auto value = 0;
6303 static_assert(sum<>::value == 0, "");
6304 static_assert(sum<1>::value == 1, "");
6305 static_assert(sum<23>::value == 23, "");
6306 static_assert(sum<1, 2>::value == 3, "");
6307 static_assert(sum<5, 5, 11>::value == 21, "");
6308 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6312 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6313 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6315 namespace test_template_alias_sfinae
6320 template<typename T>
6321 using member = typename T::member_type;
6323 template<typename T>
6326 template<typename T>
6327 void func(member<T>*) {}
6331 void test() { func<foo>(0); }
6335 } // namespace cxx11
6337 #endif // __cplusplus >= 201103L
6342 if ac_fn_cxx_try_compile
"$LINENO"; then :
6347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6350 eval ac_res
=\$
$cachevar
6351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6352 $as_echo "$ac_res" >&6; }
6353 if eval test x\$
$cachevar = xyes
; then
6355 if test -n "$CXXCPP" ; then
6356 CXXCPP
="$CXXCPP $switch"
6364 if test x
$ac_success = xno
; then
6365 for alternative
in ${ax_cxx_compile_alternatives}; do
6366 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6367 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6369 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6370 if eval \${$cachevar+:} false; then :
6371 $as_echo_n "(cached
) " >&6
6375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6376 /* end confdefs.h. */
6379 // If the compiler admits that it is not ready for C++11, why torture it?
6380 // Hopefully, this will speed up the test.
6384 #error "This is not a C
++ compiler
"
6386 #elif __cplusplus < 201103L
6388 #error "This is not a C
++11 compiler
"
6395 namespace test_static_assert
6398 template <typename T>
6401 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6406 namespace test_final_override
6415 struct Derived : public Base
6417 virtual ~Derived() override {}
6418 virtual void f() override {}
6423 namespace test_double_right_angle_brackets
6426 template < typename T >
6429 typedef check<void> single_type;
6430 typedef check<check<void>> double_type;
6431 typedef check<check<check<void>>> triple_type;
6432 typedef check<check<check<check<void>>>> quadruple_type;
6436 namespace test_decltype
6449 namespace test_type_deduction
6452 template < typename T1, typename T2 >
6455 static const bool value = false;
6458 template < typename T >
6459 struct is_same<T, T>
6461 static const bool value = true;
6464 template < typename T1, typename T2 >
6466 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6472 test(const int c, volatile int v)
6474 static_assert(is_same<int, decltype(0)>::value == true, "");
6475 static_assert(is_same<int, decltype(c)>::value == false, "");
6476 static_assert(is_same<int, decltype(v)>::value == false, "");
6479 auto sumi = ac + av + 'x';
6480 auto sumf = ac + av + 1.0;
6481 static_assert(is_same<int, decltype(ac)>::value == true, "");
6482 static_assert(is_same<int, decltype(av)>::value == true, "");
6483 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6484 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6485 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6486 return (sumf > 0.0) ? sumi : add(c, v);
6491 namespace test_noexcept
6494 int f() { return 0; }
6495 int g() noexcept { return 0; }
6497 static_assert(noexcept(f()) == false, "");
6498 static_assert(noexcept(g()) == true, "");
6502 namespace test_constexpr
6505 template < typename CharT >
6506 unsigned long constexpr
6507 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6509 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6512 template < typename CharT >
6513 unsigned long constexpr
6514 strlen_c(const CharT *const s) noexcept
6516 return strlen_c_r(s, 0UL);
6519 static_assert(strlen_c("") == 0UL, "");
6520 static_assert(strlen_c("1") == 1UL, "");
6521 static_assert(strlen_c("example
") == 7UL, "");
6522 static_assert(strlen_c("another\
0example
") == 7UL, "");
6526 namespace test_rvalue_references
6532 static constexpr int value = N;
6535 answer<1> f(int&) { return answer<1>(); }
6536 answer<2> f(const int&) { return answer<2>(); }
6537 answer<3> f(int&&) { return answer<3>(); }
6544 static_assert(decltype(f(i))::value == 1, "");
6545 static_assert(decltype(f(c))::value == 2, "");
6546 static_assert(decltype(f(0))::value == 3, "");
6551 namespace test_uniform_initialization
6556 static const int zero {};
6557 static const int one {1};
6560 static_assert(test::zero == 0, "");
6561 static_assert(test::one == 1, "");
6565 namespace test_lambdas
6571 auto lambda1 = [](){};
6572 auto lambda2 = lambda1;
6580 auto a = [](int i, int j){ return i + j; }(1, 2);
6581 auto b = []() -> int { return '0'; }();
6582 auto c = [=](){ return a + b; }();
6583 auto d = [&](){ return c; }();
6584 auto e = [a, &b](int x) mutable {
6585 const auto identity = [](int y){ return y; };
6586 for (auto i = 0; i < a; ++i)
6588 return x + identity(a + b);
6590 return a + b + c + d + e;
6596 const auto nullary = [](){ return 0; };
6597 const auto unary = [](int x){ return x; };
6598 using nullary_t = decltype(nullary);
6599 using unary_t = decltype(unary);
6600 const auto higher1st = [](nullary_t f){ return f(); };
6601 const auto higher2nd = [unary](nullary_t f1){
6602 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6604 return higher1st(nullary) + higher2nd(nullary)(unary);
6609 namespace test_variadic_templates
6615 template <int N0, int... N1toN>
6616 struct sum<N0, N1toN...>
6618 static constexpr auto value = N0 + sum<N1toN...>::value;
6624 static constexpr auto value = 0;
6627 static_assert(sum<>::value == 0, "");
6628 static_assert(sum<1>::value == 1, "");
6629 static_assert(sum<23>::value == 23, "");
6630 static_assert(sum<1, 2>::value == 3, "");
6631 static_assert(sum<5, 5, 11>::value == 21, "");
6632 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6636 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6637 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6639 namespace test_template_alias_sfinae
6644 template<typename T>
6645 using member = typename T::member_type;
6647 template<typename T>
6650 template<typename T>
6651 void func(member<T>*) {}
6655 void test() { func<foo>(0); }
6659 } // namespace cxx11
6661 #endif // __cplusplus >= 201103L
6666 if ac_fn_cxx_try_compile "$LINENO"; then :
6671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6674 eval ac_res=\$$cachevar
6675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6676 $as_echo "$ac_res" >&6; }
6677 if eval test x\$$cachevar = xyes; then
6679 if test -n "$CXXCPP" ; then
6680 CXXCPP="$CXXCPP $switch"
6686 if test x$ac_success = xyes; then
6693 ac_cpp='$CPP $CPPFLAGS'
6694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6698 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6699 if test x$ac_success = xno; then
6700 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6703 if test x$ac_success = xno; then
6705 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6706 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6710 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6716 if test "${build}" != "${host}"; then
6717 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6719 ac_cpp
='$CXXCPP $CPPFLAGS'
6720 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6721 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6722 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6724 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6725 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6726 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6727 CXX
="$CXX_FOR_BUILD"
6728 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6729 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6731 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6732 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6733 $as_echo_n "(cached) " >&6
6735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6736 /* end confdefs.h. */
6739 // If the compiler admits that it is not ready for C++11, why torture it?
6740 // Hopefully, this will speed up the test.
6744 #error "This is not a C++ compiler"
6746 #elif __cplusplus < 201103L
6748 #error "This is not a C++11 compiler"
6755 namespace test_static_assert
6758 template <typename T>
6761 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6766 namespace test_final_override
6775 struct Derived : public Base
6777 virtual ~Derived() override {}
6778 virtual void f() override {}
6783 namespace test_double_right_angle_brackets
6786 template < typename T >
6789 typedef check<void> single_type;
6790 typedef check<check<void>> double_type;
6791 typedef check<check<check<void>>> triple_type;
6792 typedef check<check<check<check<void>>>> quadruple_type;
6796 namespace test_decltype
6809 namespace test_type_deduction
6812 template < typename T1, typename T2 >
6815 static const bool value = false;
6818 template < typename T >
6819 struct is_same<T, T>
6821 static const bool value = true;
6824 template < typename T1, typename T2 >
6826 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6832 test(const int c, volatile int v)
6834 static_assert(is_same<int, decltype(0)>::value == true, "");
6835 static_assert(is_same<int, decltype(c)>::value == false, "");
6836 static_assert(is_same<int, decltype(v)>::value == false, "");
6839 auto sumi = ac + av + 'x';
6840 auto sumf = ac + av + 1.0;
6841 static_assert(is_same<int, decltype(ac)>::value == true, "");
6842 static_assert(is_same<int, decltype(av)>::value == true, "");
6843 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6844 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6845 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6846 return (sumf > 0.0) ? sumi : add(c, v);
6851 namespace test_noexcept
6854 int f() { return 0; }
6855 int g() noexcept { return 0; }
6857 static_assert(noexcept(f()) == false, "");
6858 static_assert(noexcept(g()) == true, "");
6862 namespace test_constexpr
6865 template < typename CharT >
6866 unsigned long constexpr
6867 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6869 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6872 template < typename CharT >
6873 unsigned long constexpr
6874 strlen_c(const CharT *const s) noexcept
6876 return strlen_c_r(s, 0UL);
6879 static_assert(strlen_c("") == 0UL, "");
6880 static_assert(strlen_c("1") == 1UL, "");
6881 static_assert(strlen_c("example") == 7UL, "");
6882 static_assert(strlen_c("another\0example") == 7UL, "");
6886 namespace test_rvalue_references
6892 static constexpr int value = N;
6895 answer<1> f(int&) { return answer<1>(); }
6896 answer<2> f(const int&) { return answer<2>(); }
6897 answer<3> f(int&&) { return answer<3>(); }
6904 static_assert(decltype(f(i))::value == 1, "");
6905 static_assert(decltype(f(c))::value == 2, "");
6906 static_assert(decltype(f(0))::value == 3, "");
6911 namespace test_uniform_initialization
6916 static const int zero {};
6917 static const int one {1};
6920 static_assert(test::zero == 0, "");
6921 static_assert(test::one == 1, "");
6925 namespace test_lambdas
6931 auto lambda1 = [](){};
6932 auto lambda2 = lambda1;
6940 auto a = [](int i, int j){ return i + j; }(1, 2);
6941 auto b = []() -> int { return '0'; }();
6942 auto c = [=](){ return a + b; }();
6943 auto d = [&](){ return c; }();
6944 auto e = [a, &b](int x) mutable {
6945 const auto identity = [](int y){ return y; };
6946 for (auto i = 0; i < a; ++i)
6948 return x + identity(a + b);
6950 return a + b + c + d + e;
6956 const auto nullary = [](){ return 0; };
6957 const auto unary = [](int x){ return x; };
6958 using nullary_t = decltype(nullary);
6959 using unary_t = decltype(unary);
6960 const auto higher1st = [](nullary_t f){ return f(); };
6961 const auto higher2nd = [unary](nullary_t f1){
6962 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6964 return higher1st(nullary) + higher2nd(nullary)(unary);
6969 namespace test_variadic_templates
6975 template <int N0, int... N1toN>
6976 struct sum<N0, N1toN...>
6978 static constexpr auto value = N0 + sum<N1toN...>::value;
6984 static constexpr auto value = 0;
6987 static_assert(sum<>::value == 0, "");
6988 static_assert(sum<1>::value == 1, "");
6989 static_assert(sum<23>::value == 23, "");
6990 static_assert(sum<1, 2>::value == 3, "");
6991 static_assert(sum<5, 5, 11>::value == 21, "");
6992 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6996 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6997 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6999 namespace test_template_alias_sfinae
7004 template<typename T>
7005 using member = typename T::member_type;
7007 template<typename T>
7010 template<typename T>
7011 void func(member<T>*) {}
7015 void test() { func<foo>(0); }
7019 } // namespace cxx11
7021 #endif // __cplusplus >= 201103L
7026 if ac_fn_cxx_try_compile
"$LINENO"; then :
7027 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7029 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7031 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7034 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7035 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7039 if test x
$ac_success = xno
; then
7040 for alternative
in ${ax_cxx_compile_alternatives}; do
7041 switch
="-std=gnu++${alternative}"
7042 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7044 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7045 if eval \
${$cachevar+:} false
; then :
7046 $as_echo_n "(cached) " >&6
7050 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7051 /* end confdefs.h. */
7054 // If the compiler admits that it is not ready for C++11, why torture it?
7055 // Hopefully, this will speed up the test.
7059 #error "This is not a C++ compiler"
7061 #elif __cplusplus < 201103L
7063 #error "This is not a C++11 compiler"
7070 namespace test_static_assert
7073 template <typename T>
7076 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7081 namespace test_final_override
7090 struct Derived : public Base
7092 virtual ~Derived() override {}
7093 virtual void f() override {}
7098 namespace test_double_right_angle_brackets
7101 template < typename T >
7104 typedef check<void> single_type;
7105 typedef check<check<void>> double_type;
7106 typedef check<check<check<void>>> triple_type;
7107 typedef check<check<check<check<void>>>> quadruple_type;
7111 namespace test_decltype
7124 namespace test_type_deduction
7127 template < typename T1, typename T2 >
7130 static const bool value = false;
7133 template < typename T >
7134 struct is_same<T, T>
7136 static const bool value = true;
7139 template < typename T1, typename T2 >
7141 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7147 test(const int c, volatile int v)
7149 static_assert(is_same<int, decltype(0)>::value == true, "");
7150 static_assert(is_same<int, decltype(c)>::value == false, "");
7151 static_assert(is_same<int, decltype(v)>::value == false, "");
7154 auto sumi = ac + av + 'x';
7155 auto sumf = ac + av + 1.0;
7156 static_assert(is_same<int, decltype(ac)>::value == true, "");
7157 static_assert(is_same<int, decltype(av)>::value == true, "");
7158 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7159 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7160 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7161 return (sumf > 0.0) ? sumi : add(c, v);
7166 namespace test_noexcept
7169 int f() { return 0; }
7170 int g() noexcept { return 0; }
7172 static_assert(noexcept(f()) == false, "");
7173 static_assert(noexcept(g()) == true, "");
7177 namespace test_constexpr
7180 template < typename CharT >
7181 unsigned long constexpr
7182 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7184 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7187 template < typename CharT >
7188 unsigned long constexpr
7189 strlen_c(const CharT *const s) noexcept
7191 return strlen_c_r(s, 0UL);
7194 static_assert(strlen_c("") == 0UL, "");
7195 static_assert(strlen_c("1") == 1UL, "");
7196 static_assert(strlen_c("example") == 7UL, "");
7197 static_assert(strlen_c("another\0example") == 7UL, "");
7201 namespace test_rvalue_references
7207 static constexpr int value = N;
7210 answer<1> f(int&) { return answer<1>(); }
7211 answer<2> f(const int&) { return answer<2>(); }
7212 answer<3> f(int&&) { return answer<3>(); }
7219 static_assert(decltype(f(i))::value == 1, "");
7220 static_assert(decltype(f(c))::value == 2, "");
7221 static_assert(decltype(f(0))::value == 3, "");
7226 namespace test_uniform_initialization
7231 static const int zero {};
7232 static const int one {1};
7235 static_assert(test::zero == 0, "");
7236 static_assert(test::one == 1, "");
7240 namespace test_lambdas
7246 auto lambda1 = [](){};
7247 auto lambda2 = lambda1;
7255 auto a = [](int i, int j){ return i + j; }(1, 2);
7256 auto b = []() -> int { return '0'; }();
7257 auto c = [=](){ return a + b; }();
7258 auto d = [&](){ return c; }();
7259 auto e = [a, &b](int x) mutable {
7260 const auto identity = [](int y){ return y; };
7261 for (auto i = 0; i < a; ++i)
7263 return x + identity(a + b);
7265 return a + b + c + d + e;
7271 const auto nullary = [](){ return 0; };
7272 const auto unary = [](int x){ return x; };
7273 using nullary_t = decltype(nullary);
7274 using unary_t = decltype(unary);
7275 const auto higher1st = [](nullary_t f){ return f(); };
7276 const auto higher2nd = [unary](nullary_t f1){
7277 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7279 return higher1st(nullary) + higher2nd(nullary)(unary);
7284 namespace test_variadic_templates
7290 template <int N0, int... N1toN>
7291 struct sum<N0, N1toN...>
7293 static constexpr auto value = N0 + sum<N1toN...>::value;
7299 static constexpr auto value = 0;
7302 static_assert(sum<>::value == 0, "");
7303 static_assert(sum<1>::value == 1, "");
7304 static_assert(sum<23>::value == 23, "");
7305 static_assert(sum<1, 2>::value == 3, "");
7306 static_assert(sum<5, 5, 11>::value == 21, "");
7307 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7311 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7312 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7314 namespace test_template_alias_sfinae
7319 template<typename T>
7320 using member = typename T::member_type;
7322 template<typename T>
7325 template<typename T>
7326 void func(member<T>*) {}
7330 void test() { func<foo>(0); }
7334 } // namespace cxx11
7336 #endif // __cplusplus >= 201103L
7341 if ac_fn_cxx_try_compile
"$LINENO"; then :
7346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7349 eval ac_res
=\$
$cachevar
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7351 $as_echo "$ac_res" >&6; }
7352 if eval test x\$
$cachevar = xyes
; then
7354 if test -n "$CXXCPP" ; then
7355 CXXCPP
="$CXXCPP $switch"
7363 if test x
$ac_success = xno
; then
7364 for alternative
in ${ax_cxx_compile_alternatives}; do
7365 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7366 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7368 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7369 if eval \${$cachevar+:} false; then :
7370 $as_echo_n "(cached
) " >&6
7374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7375 /* end confdefs.h. */
7378 // If the compiler admits that it is not ready for C++11, why torture it?
7379 // Hopefully, this will speed up the test.
7383 #error "This is not a C
++ compiler
"
7385 #elif __cplusplus < 201103L
7387 #error "This is not a C
++11 compiler
"
7394 namespace test_static_assert
7397 template <typename T>
7400 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7405 namespace test_final_override
7414 struct Derived : public Base
7416 virtual ~Derived() override {}
7417 virtual void f() override {}
7422 namespace test_double_right_angle_brackets
7425 template < typename T >
7428 typedef check<void> single_type;
7429 typedef check<check<void>> double_type;
7430 typedef check<check<check<void>>> triple_type;
7431 typedef check<check<check<check<void>>>> quadruple_type;
7435 namespace test_decltype
7448 namespace test_type_deduction
7451 template < typename T1, typename T2 >
7454 static const bool value = false;
7457 template < typename T >
7458 struct is_same<T, T>
7460 static const bool value = true;
7463 template < typename T1, typename T2 >
7465 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7471 test(const int c, volatile int v)
7473 static_assert(is_same<int, decltype(0)>::value == true, "");
7474 static_assert(is_same<int, decltype(c)>::value == false, "");
7475 static_assert(is_same<int, decltype(v)>::value == false, "");
7478 auto sumi = ac + av + 'x';
7479 auto sumf = ac + av + 1.0;
7480 static_assert(is_same<int, decltype(ac)>::value == true, "");
7481 static_assert(is_same<int, decltype(av)>::value == true, "");
7482 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7483 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7484 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7485 return (sumf > 0.0) ? sumi : add(c, v);
7490 namespace test_noexcept
7493 int f() { return 0; }
7494 int g() noexcept { return 0; }
7496 static_assert(noexcept(f()) == false, "");
7497 static_assert(noexcept(g()) == true, "");
7501 namespace test_constexpr
7504 template < typename CharT >
7505 unsigned long constexpr
7506 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7508 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7511 template < typename CharT >
7512 unsigned long constexpr
7513 strlen_c(const CharT *const s) noexcept
7515 return strlen_c_r(s, 0UL);
7518 static_assert(strlen_c("") == 0UL, "");
7519 static_assert(strlen_c("1") == 1UL, "");
7520 static_assert(strlen_c("example
") == 7UL, "");
7521 static_assert(strlen_c("another\
0example
") == 7UL, "");
7525 namespace test_rvalue_references
7531 static constexpr int value = N;
7534 answer<1> f(int&) { return answer<1>(); }
7535 answer<2> f(const int&) { return answer<2>(); }
7536 answer<3> f(int&&) { return answer<3>(); }
7543 static_assert(decltype(f(i))::value == 1, "");
7544 static_assert(decltype(f(c))::value == 2, "");
7545 static_assert(decltype(f(0))::value == 3, "");
7550 namespace test_uniform_initialization
7555 static const int zero {};
7556 static const int one {1};
7559 static_assert(test::zero == 0, "");
7560 static_assert(test::one == 1, "");
7564 namespace test_lambdas
7570 auto lambda1 = [](){};
7571 auto lambda2 = lambda1;
7579 auto a = [](int i, int j){ return i + j; }(1, 2);
7580 auto b = []() -> int { return '0'; }();
7581 auto c = [=](){ return a + b; }();
7582 auto d = [&](){ return c; }();
7583 auto e = [a, &b](int x) mutable {
7584 const auto identity = [](int y){ return y; };
7585 for (auto i = 0; i < a; ++i)
7587 return x + identity(a + b);
7589 return a + b + c + d + e;
7595 const auto nullary = [](){ return 0; };
7596 const auto unary = [](int x){ return x; };
7597 using nullary_t = decltype(nullary);
7598 using unary_t = decltype(unary);
7599 const auto higher1st = [](nullary_t f){ return f(); };
7600 const auto higher2nd = [unary](nullary_t f1){
7601 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7603 return higher1st(nullary) + higher2nd(nullary)(unary);
7608 namespace test_variadic_templates
7614 template <int N0, int... N1toN>
7615 struct sum<N0, N1toN...>
7617 static constexpr auto value = N0 + sum<N1toN...>::value;
7623 static constexpr auto value = 0;
7626 static_assert(sum<>::value == 0, "");
7627 static_assert(sum<1>::value == 1, "");
7628 static_assert(sum<23>::value == 23, "");
7629 static_assert(sum<1, 2>::value == 3, "");
7630 static_assert(sum<5, 5, 11>::value == 21, "");
7631 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7635 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7636 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7638 namespace test_template_alias_sfinae
7643 template<typename T>
7644 using member = typename T::member_type;
7646 template<typename T>
7649 template<typename T>
7650 void func(member<T>*) {}
7654 void test() { func<foo>(0); }
7658 } // namespace cxx11
7660 #endif // __cplusplus >= 201103L
7665 if ac_fn_cxx_try_compile "$LINENO"; then :
7670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7673 eval ac_res=\$$cachevar
7674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7675 $as_echo "$ac_res" >&6; }
7676 if eval test x\$$cachevar = xyes; then
7678 if test -n "$CXXCPP" ; then
7679 CXXCPP="$CXXCPP $switch"
7685 if test x$ac_success = xyes; then
7690 CXX_FOR_BUILD="$CXX"
7691 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7692 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7693 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7694 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7695 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7697 ac_cpp='$CPP $CPPFLAGS'
7698 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7699 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7700 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7702 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7703 if test x$ac_success = xno; then
7704 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7707 if test x$ac_success = xno; then
7708 HAVE_CXX11_FOR_BUILD=0
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7710 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7712 HAVE_CXX11_FOR_BUILD=1
7714 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7722 # Used for setting $lt_cv_objdir
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7724 $as_echo_n "checking for objdir... " >&6; }
7725 if ${lt_cv_objdir+:} false
; then :
7726 $as_echo_n "(cached) " >&6
7728 rm -f .libs
2>/dev
/null
7729 mkdir .libs
2>/dev
/null
7730 if test -d .libs
; then
7733 # MS-DOS does not allow filenames that begin with a dot.
7736 rmdir .libs
2>/dev
/null
7738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7739 $as_echo "$lt_cv_objdir" >&6; }
7740 objdir
=$lt_cv_objdir
7746 cat >>confdefs.h
<<_ACEOF
7747 #define LT_OBJDIR "$lt_cv_objdir/"
7752 # Check for GMP, MPFR and MPC
7753 gmplibs
="-lmpc -lmpfr -lgmp"
7757 # Specify a location for mpc
7758 # check for this first so it ends up on the link line before mpfr.
7760 # Check whether --with-mpc was given.
7761 if test "${with_mpc+set}" = set; then :
7766 # Check whether --with-mpc-include was given.
7767 if test "${with_mpc_include+set}" = set; then :
7768 withval
=$with_mpc_include;
7772 # Check whether --with-mpc-lib was given.
7773 if test "${with_mpc_lib+set}" = set; then :
7774 withval
=$with_mpc_lib;
7778 if test "x$with_mpc" != x
; then
7779 gmplibs
="-L$with_mpc/lib $gmplibs"
7780 gmpinc
="-I$with_mpc/include $gmpinc"
7782 if test "x$with_mpc_include" != x
; then
7783 gmpinc
="-I$with_mpc_include $gmpinc"
7785 if test "x$with_mpc_lib" != x
; then
7786 gmplibs
="-L$with_mpc_lib $gmplibs"
7788 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
7789 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7790 gmpinc
='-I$$s/mpc/src '"$gmpinc"
7791 # Do not test the mpc version. Assume that it is sufficient, since
7792 # it is in the source tree, and the library has not been built yet
7793 # but it would be included on the link line in the version check below
7794 # hence making the test fail.
7798 # Specify a location for mpfr
7799 # check for this first so it ends up on the link line before gmp.
7801 # Check whether --with-mpfr-dir was given.
7802 if test "${with_mpfr_dir+set}" = set; then :
7803 withval
=$with_mpfr_dir; as_fn_error $?
"The --with-mpfr-dir=PATH option has been removed.
7804 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7809 # Check whether --with-mpfr was given.
7810 if test "${with_mpfr+set}" = set; then :
7815 # Check whether --with-mpfr-include was given.
7816 if test "${with_mpfr_include+set}" = set; then :
7817 withval
=$with_mpfr_include;
7821 # Check whether --with-mpfr-lib was given.
7822 if test "${with_mpfr_lib+set}" = set; then :
7823 withval
=$with_mpfr_lib;
7827 if test "x$with_mpfr" != x
; then
7828 gmplibs
="-L$with_mpfr/lib $gmplibs"
7829 gmpinc
="-I$with_mpfr/include $gmpinc"
7831 if test "x$with_mpfr_include" != x
; then
7832 gmpinc
="-I$with_mpfr_include $gmpinc"
7834 if test "x$with_mpfr_lib" != x
; then
7835 gmplibs
="-L$with_mpfr_lib $gmplibs"
7837 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
7838 # MPFR v3.1.0 moved the sources into a src sub-directory.
7839 if ! test -d ${srcdir}/mpfr
/src
; then
7840 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7842 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7843 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7844 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7845 # Do not test the mpfr version. Assume that it is sufficient, since
7846 # it is in the source tree, and the library has not been built yet
7847 # but it would be included on the link line in the version check below
7848 # hence making the test fail.
7852 # Specify a location for gmp
7854 # Check whether --with-gmp-dir was given.
7855 if test "${with_gmp_dir+set}" = set; then :
7856 withval
=$with_gmp_dir; as_fn_error $?
"The --with-gmp-dir=PATH option has been removed.
7857 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7862 # Check whether --with-gmp was given.
7863 if test "${with_gmp+set}" = set; then :
7868 # Check whether --with-gmp-include was given.
7869 if test "${with_gmp_include+set}" = set; then :
7870 withval
=$with_gmp_include;
7874 # Check whether --with-gmp-lib was given.
7875 if test "${with_gmp_lib+set}" = set; then :
7876 withval
=$with_gmp_lib;
7881 if test "x$with_gmp" != x
; then
7882 gmplibs
="-L$with_gmp/lib $gmplibs"
7883 gmpinc
="-I$with_gmp/include $gmpinc"
7885 if test "x$with_gmp_include" != x
; then
7886 gmpinc
="-I$with_gmp_include $gmpinc"
7888 if test "x$with_gmp_lib" != x
; then
7889 gmplibs
="-L$with_gmp_lib $gmplibs"
7891 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
7892 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
7893 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
7894 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7895 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7896 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
7897 # Do not test the gmp version. Assume that it is sufficient, since
7898 # it is in the source tree, and the library has not been built yet
7899 # but it would be included on the link line in the version check below
7900 # hence making the test fail.
7904 if test -d ${srcdir}/gcc
&& test "x$have_gmp" = xno
; then
7906 saved_CFLAGS
="$CFLAGS"
7907 CFLAGS
="$CFLAGS $gmpinc"
7908 # Check for the recommended and required versions of GMP.
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
7910 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
7912 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7913 /* end confdefs.h. */
7919 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7920 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7921 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
7929 if ac_fn_c_try_compile
"$LINENO"; then :
7930 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7931 /* end confdefs.h. */
7937 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7938 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7939 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
7947 if ac_fn_c_try_compile
"$LINENO"; then :
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7949 $as_echo "yes" >&6; }
7951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7952 $as_echo "buggy but acceptable" >&6; }
7954 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7957 $as_echo "no" >&6; }; have_gmp
=no
7959 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7961 # If we have GMP, check the MPFR version.
7962 if test x
"$have_gmp" = xyes
; then
7963 # Check for the recommended and required versions of MPFR.
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
7965 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
7966 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7967 /* end confdefs.h. */
7974 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
7982 if ac_fn_c_try_compile
"$LINENO"; then :
7983 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7984 /* end confdefs.h. */
7991 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
7999 if ac_fn_c_try_compile
"$LINENO"; then :
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8001 $as_echo "yes" >&6; }
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8004 $as_echo "buggy but acceptable" >&6; }
8006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8009 $as_echo "no" >&6; }; have_gmp
=no
8011 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8014 # Check for the MPC header version.
8015 if test x
"$have_gmp" = xyes
; then
8016 # Check for the recommended and required versions of MPC.
8017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8018 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8019 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8020 /* end confdefs.h. */
8026 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8034 if ac_fn_c_try_compile
"$LINENO"; then :
8035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8042 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8050 if ac_fn_c_try_compile
"$LINENO"; then :
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8052 $as_echo "yes" >&6; }
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8055 $as_echo "buggy but acceptable" >&6; }
8057 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8060 $as_echo "no" >&6; }; have_gmp
=no
8062 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8065 # Now check the MPFR library.
8066 if test x
"$have_gmp" = xyes
; then
8068 LIBS
="$LIBS $gmplibs"
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8070 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8084 mpfr_atan2 (n, n, x, MPFR_RNDN);
8085 mpfr_erfc (n, x, MPFR_RNDN);
8086 mpfr_subnormalize (x, t, MPFR_RNDN);
8090 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8091 mpc_cosh (c, c, MPC_RNDNN);
8092 mpc_pow (c, c, c, MPC_RNDNN);
8093 mpc_acosh (c, c, MPC_RNDNN);
8100 if ac_fn_c_try_link
"$LINENO"; then :
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8102 $as_echo "yes" >&6; }
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8105 $as_echo "no" >&6; }; have_gmp
=no
8107 rm -f core conftest.err conftest.
$ac_objext \
8108 conftest
$ac_exeext conftest.
$ac_ext
8112 CFLAGS
="$saved_CFLAGS"
8114 # The library versions listed in the error message below should match
8115 # the HARD-minimums enforced above.
8116 if test x
$have_gmp != xyes
; then
8117 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8118 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8119 their locations. Source code for these libraries can be found at
8120 their respective hosting sites as well as at
8121 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8122 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8123 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8124 make sure that you have installed both the libraries and the header
8125 files. They may be located in separate packages." "$LINENO" 5
8129 # Flags needed for both GMP, MPFR and/or MPC.
8137 # Libraries to use for stage1 or when not bootstrapping.
8139 # Check whether --with-stage1-libs was given.
8140 if test "${with_stage1_libs+set}" = set; then :
8141 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8144 stage1_libs
=$withval
8152 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8153 # default is yes if gcc is being built; no otherwise. The reason for
8154 # this default is that gdb is sometimes linked against GNU Source
8155 # Highlight, which is a shared library that uses C++ exceptions. In
8156 # this case, -static-libstdc++ will cause crashes.
8158 # Check whether --with-static-standard-libraries was given.
8159 if test "${with_static_standard_libraries+set}" = set; then :
8160 withval
=$with_static_standard_libraries;
8162 with_static_standard_libraries
=auto
8165 if test "$with_static_standard_libraries" = auto
; then
8166 with_static_standard_libraries
=$have_compiler
8169 # Linker flags to use for stage1 or when not bootstrapping.
8171 # Check whether --with-stage1-ldflags was given.
8172 if test "${with_stage1_ldflags+set}" = set; then :
8173 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8176 stage1_ldflags
=$withval
8180 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8181 # if supported. But if the user explicitly specified the libraries to use,
8182 # trust that they are doing what they want.
8183 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8184 -a "$have_static_libs" = yes; then
8185 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8191 # Libraries to use for stage2 and later builds.
8193 # Check whether --with-boot-libs was given.
8194 if test "${with_boot_libs+set}" = set; then :
8195 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8198 poststage1_libs
=$withval
8206 # Linker flags to use for stage2 and later builds.
8208 # Check whether --with-boot-ldflags was given.
8209 if test "${with_boot_ldflags+set}" = set; then :
8210 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8213 poststage1_ldflags
=$withval
8217 # In stages 2 and 3, default to linking libstdc++ and libgcc
8218 # statically. But if the user explicitly specified the libraries to
8219 # use, trust that they are doing what they want.
8220 if test "$poststage1_libs" = ""; then
8221 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8227 # GCC GRAPHITE dependency isl.
8228 # Basic setup is inlined here, actual checks are in config/isl.m4
8231 # Check whether --with-isl was given.
8232 if test "${with_isl+set}" = set; then :
8237 # Treat --without-isl as a request to disable
8238 # GRAPHITE support and skip all following checks.
8239 if test "x$with_isl" != "xno"; then
8243 # Check whether --with-isl-include was given.
8244 if test "${with_isl_include+set}" = set; then :
8245 withval
=$with_isl_include;
8249 # Check whether --with-isl-lib was given.
8250 if test "${with_isl_lib+set}" = set; then :
8251 withval
=$with_isl_lib;
8255 # Check whether --enable-isl-version-check was given.
8256 if test "${enable_isl_version_check+set}" = set; then :
8257 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8259 ENABLE_ISL_CHECK
=yes
8263 # Initialize isllibs and islinc.
8272 isllibs
="-L$with_isl/lib"
8273 islinc
="-I$with_isl/include"
8276 if test "x${with_isl_include}" != x
; then
8277 islinc
="-I$with_isl_include"
8279 if test "x${with_isl_lib}" != x
; then
8280 isllibs
="-L$with_isl_lib"
8282 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8283 && test -d ${srcdir}/isl
; then
8284 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8285 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8288 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8291 isllibs
="${isllibs} -lisl"
8295 if test "${ENABLE_ISL_CHECK}" = yes ; then
8296 _isl_saved_CFLAGS
=$CFLAGS
8297 _isl_saved_LDFLAGS
=$LDFLAGS
8298 _isl_saved_LIBS
=$LIBS
8300 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8301 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8302 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8305 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8306 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8307 /* end confdefs.h. */
8308 #include <isl/schedule.h>
8312 isl_options_set_schedule_serialize_sccs (NULL, 0);
8317 if ac_fn_c_try_link
"$LINENO"; then :
8322 rm -f core conftest.err conftest.
$ac_objext \
8323 conftest
$ac_exeext conftest.
$ac_ext
8324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8325 $as_echo "$gcc_cv_isl" >&6; }
8327 if test "${gcc_cv_isl}" = no
; then
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8329 $as_echo "required isl version is 0.15 or later" >&6; }
8332 CFLAGS
=$_isl_saved_CFLAGS
8333 LDFLAGS
=$_isl_saved_LDFLAGS
8334 LIBS
=$_isl_saved_LIBS
8342 if test "x${with_isl}" = xno
; then
8343 graphite_requested
=no
8344 elif test "x${with_isl}" != x \
8345 ||
test "x${with_isl_include}" != x \
8346 ||
test "x${with_isl_lib}" != x
; then
8347 graphite_requested
=yes
8349 graphite_requested
=no
8354 if test "${gcc_cv_isl}" = no
; then
8359 if test "${graphite_requested}" = yes \
8360 && test "x${isllibs}" = x \
8361 && test "x${islinc}" = x
; then
8363 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8369 # If the isl check failed, disable builds of in-tree variant of isl
8370 if test "x$with_isl" = xno ||
8371 test "x$gcc_cv_isl" = xno
; then
8372 noconfigdirs
="$noconfigdirs isl"
8379 # Check for LTO support.
8380 # Check whether --enable-lto was given.
8381 if test "${enable_lto+set}" = set; then :
8382 enableval
=$enable_lto; enable_lto
=$enableval
8384 enable_lto
=yes; default_enable_lto
=yes
8393 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8394 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8395 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8404 if test $target_elf = yes; then :
8405 # ELF platforms build the lto-plugin always.
8406 build_lto_plugin
=yes
8409 if test x
"$default_enable_lto" = x
"yes" ; then
8411 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8412 # On other non-ELF platforms, LTO has yet to be validated.
8416 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8417 # It would also be nice to check the binutils support, but we don't
8418 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8419 # warn during gcc/ subconfigure; unless you're bootstrapping with
8420 # -flto it won't be needed until after installation anyway.
8422 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8423 *) if test x
"$enable_lto" = x
"yes"; then
8424 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8429 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8430 # Build it unless LTO was explicitly disabled.
8432 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8439 # Check whether --enable-linker-plugin-configure-flags was given.
8440 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8441 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8443 extra_linker_plugin_configure_flags
=
8447 # Check whether --enable-linker-plugin-flags was given.
8448 if test "${enable_linker_plugin_flags+set}" = set; then :
8449 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8451 extra_linker_plugin_flags
=
8456 # Enable --enable-host-shared.
8457 # Checked early to determine whether jit is an 'all' language
8458 # Check whether --enable-host-shared was given.
8459 if test "${enable_host_shared+set}" = set; then :
8460 enableval
=$enable_host_shared; host_shared
=$enableval
8467 # By default, C and C++ are the only stage 1 languages.
8468 stage1_languages
=,c
,
8470 # Target libraries that we bootstrap.
8471 bootstrap_target_libs
=,target-libgcc
,
8473 # Figure out what language subdirectories are present.
8474 # Look if the user specified --enable-languages="..."; if not, use
8475 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8477 # NB: embedded tabs in this IF block -- do not untabify
8478 if test -d ${srcdir}/gcc
; then
8479 if test x
"${enable_languages+set}" != xset
; then
8480 if test x
"${LANGUAGES+set}" = xset
; then
8481 enable_languages
="${LANGUAGES}"
8482 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8484 enable_languages
=default
8487 if test x
"${enable_languages}" = x ||
8488 test x
"${enable_languages}" = xyes
;
8490 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8494 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8496 # 'f95' is the old name for the 'fortran' language. We issue a warning
8497 # and make the substitution.
8498 case ,${enable_languages}, in
8500 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8501 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8505 # If bootstrapping, C++ must be enabled.
8506 case ",$enable_languages,:$enable_bootstrap" in
8509 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8510 enable_languages
="${enable_languages},c++"
8512 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8517 # First scan to see if an enabled language requires some other language.
8518 # We assume that a given config-lang.in will list all the language
8519 # front ends it requires, even if some are required indirectly.
8520 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8521 case ${lang_frag} in
8523 # The odd quoting in the next line works around
8524 # an apparent bug in bash 1.12 on linux.
8525 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8527 # From the config-lang.in, get $language, $lang_requires, and
8528 # $lang_requires_boot_languages.
8531 lang_requires_boot_languages
=
8532 # set srcdir during sourcing lang_frag to the gcc dir.
8533 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8534 # polutes this shell
8535 saved_srcdir
=${srcdir}
8536 srcdir
=${srcdir}/gcc .
${lang_frag}
8537 srcdir
=${saved_srcdir}
8538 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8539 case ,${enable_languages}, in
8544 echo " \`$other' language required by \`$language'; enabling" 1>&2
8545 enable_languages
="${enable_languages},${other}"
8549 for other
in ${lang_requires_boot_languages} ; do
8550 if test "$other" != "c"; then
8551 case ,${enable_stage1_languages}, in
8556 case ,${enable_languages}, in
8558 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8559 enable_stage1_languages
="$enable_stage1_languages,${other}"
8570 new_enable_languages
=,c
,
8572 # If LTO is enabled, add the LTO front end.
8573 if test "$enable_lto" = "yes" ; then
8574 case ,${enable_languages}, in
8576 *) enable_languages
="${enable_languages},lto" ;;
8578 if test "${build_lto_plugin}" = "yes" ; then
8579 configdirs
="$configdirs lto-plugin"
8583 # If we're building an offloading compiler, add the LTO front end.
8584 if test x
"$enable_as_accelerator_for" != x
; then
8585 case ,${enable_languages}, in
8587 *) enable_languages
="${enable_languages},lto" ;;
8591 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8592 potential_languages
=,c
,
8594 enabled_target_libs
=
8595 disabled_target_libs
=
8597 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8598 case ${lang_frag} in
8600 # The odd quoting in the next line works around
8601 # an apparent bug in bash 1.12 on linux.
8602 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8604 # From the config-lang.in, get $language, $target_libs,
8605 # $lang_dirs, $boot_language, and $build_by_default
8611 build_by_default
=yes
8612 # set srcdir during sourcing. See above about save & restore
8613 saved_srcdir
=${srcdir}
8614 srcdir
=${srcdir}/gcc .
${lang_frag}
8615 srcdir
=${saved_srcdir}
8616 if test x
${language} = x
; then
8617 echo "${lang_frag} doesn't set \$language." 1>&2
8621 if test "$language" = "c++"; then
8626 # C is always enabled, so no need to add it again
8627 if test "$language" != "c"; then
8628 case ,${enable_languages}, in
8630 # Language was explicitly selected; include it
8634 # All languages are enabled
8638 # 'default' was selected, select it if it is a default language
8639 add_this_lang
=${build_by_default}
8644 # Disable languages that need other directories if these aren't available.
8645 for i
in $subdir_requires; do
8646 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8647 case ${add_this_lang} in
8649 # Specifically requested language; tell them.
8650 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8654 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8655 add_this_lang
=unsupported
8659 add_this_lang
=unsupported
8664 # Disable Ada if no preexisting GNAT is available.
8665 case ${add_this_lang}:${language}:${have_gnat} in
8667 # Specifically requested language; tell them.
8668 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8672 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8673 add_this_lang
=unsupported
8677 add_this_lang
=unsupported
8681 # Disable jit if -enable-host-shared not specified
8682 # but not if building for Mingw. All code in Windows
8683 # is position independent code (PIC).
8687 case ${add_this_lang}:${language}:${host_shared} in
8689 # PR jit/64780: explicitly specify --enable-host-shared
8691 Enabling language \"jit\" requires --enable-host-shared.
8693 --enable-host-shared typically slows the rest of the compiler down by
8694 a few %, so you must explicitly enable it.
8696 If you want to build both the jit and the regular compiler, it is often
8697 best to do this via two separate configure/builds, in separate
8698 directories, to avoid imposing the performance cost of
8699 --enable-host-shared on the regular compiler." "$LINENO" 5
8702 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8703 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8704 add_this_lang
=unsupported
8708 add_this_lang
=unsupported
8714 # Disable a language that is unsupported by the target.
8715 case "${add_this_lang}: $unsupported_languages " in
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8720 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8721 add_this_lang
=unsupported
8725 case $add_this_lang in
8727 # Remove language-dependent dirs.
8728 disabled_target_libs
="$disabled_target_libs $target_libs"
8729 noconfigdirs
="$noconfigdirs $lang_dirs"
8732 # Remove language-dependent dirs; still show language as supported.
8733 disabled_target_libs
="$disabled_target_libs $target_libs"
8734 noconfigdirs
="$noconfigdirs $lang_dirs"
8735 potential_languages
="${potential_languages}${language},"
8738 new_enable_languages
="${new_enable_languages}${language},"
8739 potential_languages
="${potential_languages}${language},"
8740 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
8741 enabled_target_libs
="$enabled_target_libs $target_libs"
8742 case "${boot_language}:,$enable_stage1_languages," in
8743 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
8744 # Add to (comma-separated) list of stage 1 languages.
8745 case ",$stage1_languages," in
8746 *,$language,* |
,yes, |
,all
,) ;;
8747 *) stage1_languages
="${stage1_languages}${language}," ;;
8749 # We need to bootstrap any supporting libraries.
8750 bootstrap_target_libs
="${bootstrap_target_libs}${target_libs},"
8759 # Add target libraries which are only needed for disabled languages
8761 if test -n "$disabled_target_libs"; then
8762 for dir
in $disabled_target_libs; do
8763 case " $enabled_target_libs " in
8765 *) noconfigdirs
="$noconfigdirs $dir" ;;
8770 # Check whether --enable-stage1-languages was given.
8771 if test "${enable_stage1_languages+set}" = set; then :
8772 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8774 # Set it to something that will have no effect in the loop below
8775 enable_stage1_languages
=c
;;
8777 enable_stage1_languages
=`echo $new_enable_languages | \
8778 sed -e "s/^,//" -e "s/,$//" ` ;;
8780 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
8781 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8784 # Add "good" languages from enable_stage1_languages to stage1_languages,
8785 # while "bad" languages go in missing_languages. Leave no duplicates.
8786 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8787 case $potential_languages in
8789 case $stage1_languages in
8791 *) stage1_languages
="$stage1_languages$i," ;;
8794 case $missing_languages in
8796 *) missing_languages
="$missing_languages$i," ;;
8803 # Remove leading/trailing commas that were added for simplicity
8804 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8805 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8806 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8807 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8809 if test "x$missing_languages" != x
; then
8811 The following requested languages could not be built: ${missing_languages}
8812 Supported languages are: ${potential_languages}" "$LINENO" 5
8814 if test "x$new_enable_languages" != "x$enable_languages"; then
8815 echo The following languages will be built
: ${new_enable_languages}
8816 enable_languages
="$new_enable_languages"
8820 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8823 # Handle --disable-<component> generically.
8824 for dir
in $configdirs $build_configdirs $target_configdirs ; do
8825 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8826 varname
=`echo $dirname | sed -e s/+/_/g`
8827 if eval test x\
${enable_${varname}} "=" xno
; then
8828 noconfigdirs
="$noconfigdirs $dir"
8832 # Check for Boehm's garbage collector
8833 # Check whether --enable-objc-gc was given.
8834 if test "${enable_objc_gc+set}" = set; then :
8835 enableval
=$enable_objc_gc;
8839 # Check whether --with-target-bdw-gc was given.
8840 if test "${with_target_bdw_gc+set}" = set; then :
8841 withval
=$with_target_bdw_gc;
8845 # Check whether --with-target-bdw-gc-include was given.
8846 if test "${with_target_bdw_gc_include+set}" = set; then :
8847 withval
=$with_target_bdw_gc_include;
8851 # Check whether --with-target-bdw-gc-lib was given.
8852 if test "${with_target_bdw_gc_lib+set}" = set; then :
8853 withval
=$with_target_bdw_gc_lib;
8857 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8859 $as_echo_n "checking for bdw garbage collector... " >&6; }
8860 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8862 $as_echo "using bdw-gc in default locations" >&6; }
8864 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
8865 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
8866 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
8867 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
8869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8870 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8875 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8876 case ,${enable_languages}, in
8878 # Disable libitm, libsanitizer if we're not building libstdc++
8879 case "${noconfigdirs}" in
8880 *target-libstdc
++-v3*)
8881 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
8887 noconfigdirs
="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
8891 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8892 # $build_configdirs and $target_configdirs.
8893 # If we have the source for $noconfigdirs entries, add them to $notsupp.
8896 for dir
in .
$skipdirs $noconfigdirs ; do
8897 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8898 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8899 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
8900 if test -r $srcdir/$dirname/configure
; then
8901 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8904 notsupp
="$notsupp $dir"
8908 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8909 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
8910 if test -r $srcdir/$dirname/configure
; then
8911 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8914 notsupp
="$notsupp $dir"
8918 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8919 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
8920 if test -r $srcdir/$dirname/configure
; then
8921 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8924 notsupp
="$notsupp $dir"
8930 # Quietly strip out all directories which aren't configurable in this tree.
8931 # This relies on all configurable subdirectories being autoconfiscated, which
8933 build_configdirs_all
="$build_configdirs"
8935 for i
in ${build_configdirs_all} ; do
8936 j
=`echo $i | sed -e s/build-//g`
8937 if test -f ${srcdir}/$j/configure
; then
8938 build_configdirs
="${build_configdirs} $i"
8942 configdirs_all
="$configdirs"
8944 for i
in ${configdirs_all} ; do
8945 if test -f ${srcdir}/$i/configure
; then
8946 configdirs
="${configdirs} $i"
8950 target_configdirs_all
="$target_configdirs"
8952 for i
in ${target_configdirs_all} ; do
8953 j
=`echo $i | sed -e s/target-//g`
8954 if test -f ${srcdir}/$j/configure
; then
8955 target_configdirs
="${target_configdirs} $i"
8959 # libiberty-linker-plugin is special: it doesn't have its own source directory,
8960 # so we have to add it after the preceding checks.
8961 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
8963 case " $configdirs " in
8965 # If we can build libiberty, we can also build libiberty-linker-plugin.
8966 configdirs
="$configdirs libiberty-linker-plugin"
8967 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
8968 --with-libiberty=../libiberty-linker-plugin";;
8970 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
8974 # Sometimes we have special requirements for the host libiberty.
8975 extra_host_libiberty_configure_flags
=
8976 extra_host_zlib_configure_flags
=
8977 case " $configdirs " in
8978 *" lto-plugin "* |
*" libcc1 "*)
8979 # When these are to be built as shared libraries, the same applies to
8981 extra_host_libiberty_configure_flags
=--enable-shared
8984 # When bfd is to be built as a shared library, the same applies to
8986 if test "$enable_shared" = "yes"; then
8987 extra_host_zlib_configure_flags
=--enable-host-shared
8994 # Produce a warning message for the subdirs we can't configure.
8995 # This isn't especially interesting in the Cygnus tree, but in the individual
8996 # FSF releases, it's important to let people know when their machine isn't
8997 # supported by the one or two programs in a package.
8999 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9000 # If $appdirs is non-empty, at least one of those directories must still
9001 # be configured, or we error out. (E.g., if the gas release supports a
9002 # specified target in some subdirs but not the gas subdir, we shouldn't
9003 # pretend that all is well.)
9004 if test -n "$appdirs" ; then
9005 for dir
in $appdirs ; do
9006 if test -r $dir/Makefile.
in ; then
9007 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9011 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9017 if test -n "$appdirs" ; then
9018 echo "*** This configuration is not supported by this package." 1>&2
9022 # Okay, some application will build, or we don't care to check. Still
9023 # notify of subdirs not getting built.
9024 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9025 echo " ${notsupp}" 1>&2
9026 echo " (Any other directories should still work fine.)" 1>&2
9034 # To find our prefix, in gcc_cv_tool_prefix.
9036 # The user is always right.
9037 if test "${PATH_SEPARATOR+set}" != set; then
9038 echo "#! /bin/sh" >conf$$.sh
9039 echo "exit 0" >>conf$$.sh
9041 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9050 get_gcc_base_ver
="cat"
9052 # Check whether --with-gcc-major-version-only was given.
9053 if test "${with_gcc_major_version_only+set}" = set; then :
9054 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9055 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9065 if test "x$exec_prefix" = xNONE
; then
9066 if test "x$prefix" = xNONE
; then
9067 gcc_cv_tool_prefix
=$ac_default_prefix
9069 gcc_cv_tool_prefix
=$prefix
9072 gcc_cv_tool_prefix
=$exec_prefix
9075 # If there is no compiler in the tree, use the PATH only. In any
9076 # case, if there is no compiler in the tree nobody should use
9077 # AS_FOR_TARGET and LD_FOR_TARGET.
9078 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9079 if test x
$with_gcc_major_version_only = xyes
; then
9080 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9082 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9084 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9085 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9086 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9087 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9088 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9089 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9094 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9095 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9103 # Check whether --with-build-sysroot was given.
9104 if test "${with_build_sysroot+set}" = set; then :
9105 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9106 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9109 SYSROOT_CFLAGS_FOR_TARGET
=
9115 # Check whether --with-debug-prefix-map was given.
9116 if test "${with_debug_prefix_map+set}" = set; then :
9117 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9118 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9119 for debug_map
in $withval; do
9120 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9124 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9129 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9130 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9131 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9132 # We want to ensure that TARGET libraries (which we know are built with
9133 # gcc) are built with "-O2 -g", so include those options when setting
9134 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9135 if test "x$CFLAGS_FOR_TARGET" = x
; then
9136 if test "x${is_cross_compiler}" = xyes
; then
9137 CFLAGS_FOR_TARGET
="-g -O2"
9139 CFLAGS_FOR_TARGET
=$CFLAGS
9142 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9145 *" -g "* |
*" -g3 "*) ;;
9146 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9152 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9153 if test "x${is_cross_compiler}" = xyes
; then
9154 CXXFLAGS_FOR_TARGET
="-g -O2"
9156 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9157 case " $CXXFLAGS " in
9159 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9161 case " $CXXFLAGS " in
9162 *" -g "* |
*" -g3 "*) ;;
9163 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9171 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9172 # the named directory are copied to $(tooldir)/sys-include.
9173 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9174 if test x
${is_cross_compiler} = xno
; then
9175 echo 1>&2 '***' --with-headers is only supported when cross compiling
9178 if test x
"${with_headers}" != xyes
; then
9179 x
=${gcc_cv_tool_prefix}
9180 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9184 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9185 # the name directories are copied to $(tooldir)/lib. Multiple directories
9187 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9188 if test x
${is_cross_compiler} = xno
; then
9189 echo 1>&2 '***' --with-libs is only supported when cross compiling
9192 if test x
"${with_libs}" != xyes
; then
9193 # Copy the libraries in reverse order, so that files in the first named
9194 # library override files in subsequent libraries.
9195 x
=${gcc_cv_tool_prefix}
9196 for l
in ${with_libs}; do
9197 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9202 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9204 # This is done by determining whether or not the appropriate directory
9205 # is available, and by checking whether or not specific configurations
9206 # have requested that this magic not happen.
9208 # The command line options always override the explicit settings in
9209 # configure.ac, and the settings in configure.ac override this magic.
9211 # If the default for a toolchain is to use GNU as and ld, and you don't
9212 # want to do that, then you should use the --without-gnu-as and
9213 # --without-gnu-ld options for the configure script. Similarly, if
9214 # the default is to use the included zlib and you don't want to do that,
9215 # you should use the --with-system-zlib option for the configure script.
9217 if test x
${use_gnu_as} = x
&&
9218 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9220 extra_host_args
="$extra_host_args --with-gnu-as"
9223 if test x
${use_gnu_ld} = x
&&
9224 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9226 extra_host_args
="$extra_host_args --with-gnu-ld"
9229 if test x
${use_included_zlib} = x
&&
9230 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9233 with_system_zlib
=yes
9234 extra_host_args
="$extra_host_args --with-system-zlib"
9237 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9238 # can detect this case.
9240 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9242 extra_host_args
="$extra_host_args --with-newlib"
9245 # Handle ${copy_dirs}
9246 set fnord
${copy_dirs}
9248 while test $# != 0 ; do
9249 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9252 echo Copying
$1 to
$2
9254 # Use the install script to create the directory and all required
9255 # parent directories.
9256 if test -d $2 ; then
9260 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9263 # Copy the directory, assuming we have tar.
9264 # FIXME: Should we use B in the second tar? Not all systems support it.
9265 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9267 # It is the responsibility of the user to correctly adjust all
9268 # symlinks. If somebody can figure out how to handle them correctly
9269 # here, feel free to add the code.
9276 # Determine a target-dependent exec_prefix that the installed
9277 # gcc will search in. Keep this list sorted by triplet, with
9278 # the *-*-osname triplets last.
9281 i
[34567]86-pc-msdosdjgpp*)
9282 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9287 md_exec_prefix
=/usr
/ccs
/bin
9291 extra_arflags_for_target
=
9292 extra_nmflags_for_target
=
9293 extra_ranlibflags_for_target
=
9294 target_makefile_frag
=/dev
/null
9297 target_makefile_frag
="config/mt-spu"
9299 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9300 target_makefile_frag
="config/mt-sde"
9302 mipsisa
*-*-elfoabi*)
9303 target_makefile_frag
="config/mt-mips-elfoabi"
9305 mips
*-*-*linux
* | mips
*-*-gnu*)
9306 target_makefile_frag
="config/mt-mips-gnu"
9309 target_makefile_frag
="config/mt-nios2-elf"
9312 target_makefile_frag
="config/mt-android"
9314 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9315 target_makefile_frag
="config/mt-gnu"
9317 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9318 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9319 # commands to handle both 32-bit and 64-bit objects. These flags are
9320 # harmless if we're using GNU nm or ar.
9321 extra_arflags_for_target
=" -X32_64"
9322 extra_nmflags_for_target
=" -B -X32_64"
9326 alphaieee_frag
=/dev
/null
9329 # This just makes sure to use the -mieee option to build target libs.
9330 # This should probably be set individually by each library.
9331 alphaieee_frag
="config/mt-alphaieee"
9335 # If --enable-target-optspace always use -Os instead of -O2 to build
9336 # the target libraries, similarly if it is not specified, use -Os
9337 # on selected platforms.
9338 ospace_frag
=/dev
/null
9339 case "${enable_target_optspace}:${target}" in
9341 ospace_frag
="config/mt-ospace"
9344 ospace_frag
="config/mt-d30v"
9346 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9347 ospace_frag
="config/mt-ospace"
9352 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9356 # Some systems (e.g., one of the i386-aix systems the gas testers are
9357 # using) don't handle "\$" correctly, so don't use it here.
9358 tooldir
='${exec_prefix}'/${target_noncanonical}
9359 build_tooldir
=${tooldir}
9361 # Create a .gdbinit file which runs the one in srcdir
9362 # and tells GDB to look there for source files.
9364 if test -r ${srcdir}/.gdbinit
; then
9367 *) cat > .
/.gdbinit
<<EOF
9371 source ${srcdir}/.gdbinit
9377 # Make sure that the compiler is able to generate an executable. If it
9378 # can't, we are probably in trouble. We don't care whether we can run the
9379 # executable--we might be using a cross compiler--we only care whether it
9380 # can be created. At this point the main configure script has set CC.
9382 echo "int main () { return 0; }" > conftest.c
9383 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9384 if test $?
= 0 ; then
9385 if test -s conftest ||
test -s conftest.exe
; then
9391 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9392 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9399 # Decide which environment variable is used to find dynamic libraries.
9401 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9402 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9403 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9404 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9407 # On systems where the dynamic library environment variable is PATH,
9408 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9409 # built executables to PATH.
9410 if test "$RPATH_ENVVAR" = PATH
; then
9411 GCC_SHLIB_SUBDIR
=/shlib
9416 # Adjust the toplevel makefile according to whether bootstrap was selected.
9417 case $enable_bootstrap in
9419 bootstrap_suffix
=bootstrap
9420 BUILD_CONFIG
=bootstrap-debug
9423 bootstrap_suffix
=no-bootstrap
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9429 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9432 # Check whether --with-build-config was given.
9433 if test "${with_build_config+set}" = set; then :
9434 withval
=$with_build_config; case $with_build_config in
9435 yes) with_build_config
= ;;
9436 no
) with_build_config
= BUILD_CONFIG
= ;;
9441 if test "x${with_build_config}" != x
; then
9442 BUILD_CONFIG
=$with_build_config
9444 case $BUILD_CONFIG in
9446 if echo "int f (void) { return 0; }" > conftest.c
&&
9447 ${CC} -c conftest.c
&&
9448 mv conftest.o conftest.o.g0
&&
9449 ${CC} -c -g conftest.c
&&
9450 mv conftest.o conftest.o.g
&&
9451 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9456 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9461 $as_echo "$BUILD_CONFIG" >&6; }
9464 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9466 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9467 # Check whether --enable-vtable-verify was given.
9468 if test "${enable_vtable_verify+set}" = set; then :
9469 enableval
=$enable_vtable_verify; case "$enableval" in
9470 yes) enable_vtable_verify
=yes ;;
9471 no
) enable_vtable_verify
=no
;;
9472 *) enable_vtable_verify
=no
;;
9475 enable_vtable_verify
=no
9478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9479 $as_echo "$enable_vtable_verify" >&6; }
9481 # Record target_configdirs and the configure arguments for target and
9482 # build configuration in Makefile.
9483 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9484 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9485 bootstrap_fixincludes
=no
9487 # If we are building libgomp, bootstrap it.
9488 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9489 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9492 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9493 # or bootstrap-ubsan, bootstrap it.
9494 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9495 case "$BUILD_CONFIG" in
9496 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9497 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9498 bootstrap_fixincludes
=yes
9503 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9504 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9505 test "$enable_vtable_verify" != no
; then
9506 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9509 # Determine whether gdb needs tk/tcl or not.
9510 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9511 # and in that case we want gdb to be built without tk. Ugh!
9512 # In fact I believe gdb is the *only* package directly dependent on tk,
9513 # so we should be able to put the 'maybe's in unconditionally and
9514 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9515 # 100% sure that that's safe though.
9517 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9518 case "$enable_gdbtk" in
9522 GDB_TK
="${gdb_tk}" ;;
9524 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9525 # distro. Eventually someone will fix this and move Insight, nee
9526 # gdbtk to a separate directory.
9527 if test -d ${srcdir}/gdb
/gdbtk
; then
9534 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9535 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9537 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9538 # else does, only include them if one of these is built. The Makefile
9539 # provides the ordering, so it's enough here to add to the list.
9540 case " ${configdirs} " in
9542 configdirs
="${configdirs} gnulib gdbsupport"
9545 configdirs
="${configdirs} gnulib gdbsupport"
9549 # Strip out unwanted targets.
9551 # While at that, we remove Makefiles if we were started for recursive
9552 # configuration, so that the top-level Makefile reconfigures them,
9553 # like we used to do when configure itself was recursive.
9555 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9556 # but now we're fixing up the Makefile ourselves with the additional
9557 # commands passed to AC_CONFIG_FILES. Use separate variables
9558 # extrasub-{build,host,target} not because there is any reason to split
9559 # the substitutions up that way, but only to remain below the limit of
9560 # 99 commands in a script, for HP-UX sed.
9562 # Do not nest @if/@endif or @unless/@endunless pairs, because
9563 # configure will not warn you at all.
9565 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9566 yes:yes:*\ gold\
*:*,c
++,*) ;;
9567 yes:yes:*\ gold\
*:*)
9568 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9573 for module
in ${build_configdirs} ; do
9574 if test -z "${no_recursion}" \
9575 && test -f ${build_subdir}/${module}/Makefile
; then
9576 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9577 rm -f ${build_subdir}/${module}/Makefile
9579 extrasub_build
="$extrasub_build
9580 /^@if build-$module\$/d
9581 /^@endif build-$module\$/d
9582 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9583 /^@if build-$module-$bootstrap_suffix\$/d
9584 /^@endif build-$module-$bootstrap_suffix\$/d
9585 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9588 for module
in ${configdirs} ; do
9589 if test -z "${no_recursion}"; then
9590 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9591 if test -f ${file}; then
9592 echo 1>&2 "*** removing ${file} to force reconfigure"
9597 case ${module},${bootstrap_fixincludes} in
9598 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9599 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9601 extrasub_host
="$extrasub_host
9603 /^@endif $module\$/d
9604 /^@unless $module\$/,/^@endunless $module\$/d
9605 /^@if $module-$host_bootstrap_suffix\$/d
9606 /^@endif $module-$host_bootstrap_suffix\$/d
9607 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9610 for module
in ${target_configdirs} ; do
9611 if test -z "${no_recursion}" \
9612 && test -f ${target_subdir}/${module}/Makefile
; then
9613 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9614 rm -f ${target_subdir}/${module}/Makefile
9617 # We only bootstrap target libraries listed in bootstrap_target_libs.
9618 case $bootstrap_target_libs in
9619 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9620 *) target_bootstrap_suffix
=no-bootstrap
;;
9623 extrasub_target
="$extrasub_target
9624 /^@if target-$module\$/d
9625 /^@endif target-$module\$/d
9626 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9627 /^@if target-$module-$target_bootstrap_suffix\$/d
9628 /^@endif target-$module-$target_bootstrap_suffix\$/d
9629 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9632 # Do the final fixup along with target modules.
9633 extrasub_target
="$extrasub_target
9638 # Create the serialization dependencies. This uses a temporary file.
9640 # Check whether --enable-serial-configure was given.
9641 if test "${enable_serial_configure+set}" = set; then :
9642 enableval
=$enable_serial_configure;
9646 case ${enable_serial_configure} in
9648 enable_serial_build_configure
=yes
9649 enable_serial_host_configure
=yes
9650 enable_serial_target_configure
=yes
9654 # These force 'configure's to be done one at a time, to avoid problems
9655 # with contention over a shared config.cache.
9657 echo '# serdep.tmp' > serdep.tmp
9659 test "x${enable_serial_build_configure}" = xyes
&&
9660 for item
in ${build_configdirs} ; do
9663 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
9668 test "x${enable_serial_host_configure}" = xyes
&&
9669 for item
in ${configdirs} ; do
9672 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
9677 test "x${enable_serial_target_configure}" = xyes
&&
9678 for item
in ${target_configdirs} ; do
9681 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
9685 serialization_dependencies
=serdep.tmp
9688 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9689 # target, nonopt, and variable assignments. These are the ones we
9690 # might not want to pass down to subconfigures. The exception being
9691 # --cache-file=/dev/null, which is used to turn off the use of cache
9692 # files altogether, and which should be passed on to subconfigures.
9693 # Also strip program-prefix, program-suffix, and program-transform-name,
9694 # so that we can pass down a consistent program-transform-name.
9699 eval "set -- $ac_configure_args"
9702 if test X
"$skip_next" = X
"yes"; then
9706 if test X
"$keep_next" = X
"yes"; then
9709 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9711 baseargs
="$baseargs '$ac_arg'"
9712 tbaseargs
="$tbaseargs '$ac_arg'"
9717 # Handle separated arguments. Based on the logic generated by
9720 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
9721 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
9722 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
9723 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
9737 --with-* |
--without-*)
9738 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9742 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
9745 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
9754 mpc | mpfr | gmp | isl
)
9755 # If we're processing --with-$lib, --with-$lib-include or
9756 # --with-$lib-lib, for one of the libs above, and target is
9757 # different from host, don't pass the current argument to any
9758 # target library's configure.
9759 if test x
$is_cross_compiler = xyes
; then
9768 --cache-file=/dev
/null | \
9769 -cache-file=/dev
/null
)
9770 # Handled here to avoid the test to skip args below.
9771 baseargs
="$baseargs '$ac_arg'"
9772 tbaseargs
="$tbaseargs '$ac_arg'"
9773 # Assert: $separate_arg should always be no.
9774 keep_next
=$separate_arg
9790 -program-prefix* | \
9791 -program-suffix* | \
9792 -program-transform-name* )
9793 skip_next
=$separate_arg
9797 # An option. Add it.
9800 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9802 baseargs
="$baseargs '$ac_arg'"
9803 if test X
"$skip_targ" = Xno
; then
9804 tbaseargs
="$tbaseargs '$ac_arg'"
9806 keep_next
=$separate_arg
9809 # Either a variable assignment, or a nonopt (triplet). Don't
9810 # pass it down; let the Makefile handle this.
9815 # Remove the initial space we just introduced and, as these will be
9816 # expanded by make, quote '$'.
9817 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9819 # Add in --program-transform-name, after --program-prefix and
9820 # --program-suffix have been applied to it. Autoconf has already
9821 # doubled dollar signs and backslashes in program_transform_name; we want
9822 # the backslashes un-doubled, and then the entire thing wrapped in single
9823 # quotes, because this will be expanded first by make and then by the shell.
9824 # Also, because we want to override the logic in subdir configure scripts to
9825 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9826 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9827 ${program_transform_name}
9829 gcc_transform_name
=`cat conftestsed.out`
9830 rm -f conftestsed.out
9831 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
9832 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9833 if test "$silent" = yes; then
9834 baseargs
="$baseargs --silent"
9835 tbaseargs
="$tbaseargs --silent"
9837 baseargs
="$baseargs --disable-option-checking"
9838 tbaseargs
="$tbaseargs --disable-option-checking"
9840 # Record and document user additions to sub configure arguments.
9845 # For the build-side libraries, we just need to pretend we're native,
9846 # and not use the same cache file. Multilibs are neither needed nor
9847 # desired. We can't even use the same cache file for all build-side
9848 # libraries, as they're compiled differently; some with C, some with
9849 # C++ or with different feature-enabling options.
9850 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
9852 # For host modules, accept cache file option, or specification as blank.
9853 case "${cache_file}" in
9855 cache_file_option
="" ;;
9856 /* |
[A-Za-z
]:[\\/]* ) # absolute path
9857 cache_file_option
="--cache-file=${cache_file}" ;;
9859 cache_file_option
="--cache-file=../${cache_file}" ;;
9862 # Host dirs don't like to share a cache file either, horribly enough.
9863 # This seems to be due to autoconf 2.5x stupidity.
9864 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
9866 target_configargs
="$target_configargs ${tbaseargs}"
9868 # Passing a --with-cross-host argument lets the target libraries know
9869 # whether they are being built with a cross-compiler or being built
9870 # native. However, it would be better to use other mechanisms to make the
9871 # sorts of decisions they want to make on this basis. Please consider
9872 # this option to be deprecated. FIXME.
9873 if test x
${is_cross_compiler} = xyes
; then
9874 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
9877 # Special user-friendly check for native x86_64-linux build, if
9878 # multilib is not explicitly enabled.
9879 case "$target:$have_compiler:$host:$target:$enable_multilib" in
9880 x86_64-
*linux
*:yes:$build:$build:)
9881 # Make sure we have a development environment that handles 32-bit
9883 echo "int main () { return 0; }" > conftest.c
9884 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9885 if test $?
= 0 ; then
9886 if test -s conftest ||
test -s conftest.exe
; then
9891 if test x
${dev64} != xyes
; then
9892 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
9897 # Default to --enable-multilib.
9898 if test x
${enable_multilib} = x
; then
9899 target_configargs
="--enable-multilib ${target_configargs}"
9902 # Pass --with-newlib if appropriate. Note that target_configdirs has
9903 # changed from the earlier setting of with_newlib.
9904 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
9905 target_configargs
="--with-newlib ${target_configargs}"
9908 # Different target subdirs use different values of certain variables
9909 # (notably CXX). Worse, multilibs use *lots* of different values.
9910 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9911 # it doesn't automatically accept command-line overrides of them.
9912 # This means it's not safe for target subdirs to share a cache file,
9913 # which is disgusting, but there you have it. Hopefully this can be
9914 # fixed in future. It's still worthwhile to use a cache file for each
9915 # directory. I think.
9917 # Pass the appropriate --build, --host, --target and --cache-file arguments.
9918 # We need to pass --target, as newer autoconf's requires consistency
9919 # for target_alias and gcc doesn't manage it consistently.
9920 target_configargs
="--cache-file=./config.cache ${target_configargs}"
9923 case " $target_configdirs " in
9925 case " $target_configargs " in
9926 *" --with-newlib "*)
9929 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
9933 # If we're not building GCC, don't discard standard headers.
9934 if test -d ${srcdir}/gcc
; then
9935 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
9937 if test "${build}" != "${host}"; then
9938 # On Canadian crosses, CC_FOR_TARGET will have already been set
9939 # by `configure', so we won't have an opportunity to add -Bgcc/
9940 # to it. This is right: we don't want to search that directory
9941 # for binaries, but we want the header files in there, so add
9943 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
9945 # Someone might think of using the pre-installed headers on
9946 # Canadian crosses, in case the installed compiler is not fully
9947 # compatible with the compiler being built. In this case, it
9948 # would be better to flag an error than risking having
9949 # incompatible object files being constructed. We can't
9950 # guarantee that an error will be flagged, but let's hope the
9951 # compiler will do it, when presented with incompatible header
9956 case "${target}-${is_cross_compiler}" in
9957 i
[3456789]86-*-linux*-no)
9958 # Here host == target, so we don't need to build gcc,
9959 # so we don't want to discard standard headers.
9960 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9963 # If we're building newlib, use its generic headers last, but search
9964 # for any libc-related directories first (so make it the last -B
9966 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
9968 # If we're building libgloss, find the startup file, simulator library
9969 # and linker script.
9970 case " $target_configdirs " in
9972 # Look for startup file, simulator library and maybe linker script.
9973 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
9974 # Look for libnosys.a in case the target needs it.
9975 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
9976 # Most targets have the linker script in the source directory.
9977 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
9988 x86_64-
*mingw
* |
*-w64-mingw*)
9989 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
9990 # however, use a symlink named 'mingw' in ${prefix} .
9991 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
9994 # MinGW can't be handled as Cygwin above since it does not use newlib.
9995 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'
9999 # Allow the user to override the flags for
10000 # our build compiler if desired.
10001 if test x
"${build}" = x
"${host}" ; then
10002 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10003 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10004 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10007 # On Canadian crosses, we'll be searching the right directories for
10008 # the previously-installed cross compiler, so don't bother to add
10009 # flags for directories within the install tree of the compiler
10010 # being built; programs in there won't even run.
10011 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10012 # Search for pre-installed headers if nothing else fits.
10013 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10016 if test "x
${use_gnu_ld}" = x &&
10017 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10018 # Arrange for us to find uninstalled linker scripts.
10019 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10022 # Search for other target-specific linker scripts and such.
10023 case "${target}" in
10025 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10029 # Makefile fragments.
10030 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10032 eval fragval=\$$frag
10033 if test $fragval != /dev/null; then
10034 eval $frag=${srcdir}/$fragval
10042 # Miscellanea: directories, flags, etc.
10051 # Build module lists & subconfigure args.
10055 # Host module lists & subconfigure args.
10060 # Target module lists & subconfigure args.
10082 # Generate default definitions for YACC, M4, LEX and other programs that run
10083 # on the build machine. These are used if the Makefile can't locate these
10084 # programs in objdir.
10085 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10087 for ac_prog in 'bison -y' byacc yacc
10089 # Extract the first word of "$ac_prog", so it can be a program name with args.
10090 set dummy $ac_prog; ac_word=$2
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10092 $as_echo_n "checking
for $ac_word...
" >&6; }
10093 if ${ac_cv_prog_YACC+:} false; then :
10094 $as_echo_n "(cached
) " >&6
10096 if test -n "$YACC"; then
10097 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10100 for as_dir in $PATH
10103 test -z "$as_dir" && as_dir=.
10104 for ac_exec_ext in '' $ac_executable_extensions; do
10105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10106 ac_cv_prog_YACC="$ac_prog"
10107 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10116 YACC=$ac_cv_prog_YACC
10117 if test -n "$YACC"; then
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10119 $as_echo "$YACC" >&6; }
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10122 $as_echo "no
" >&6; }
10126 test -n "$YACC" && break
10128 test -n "$YACC" || YACC="$MISSING bison
-y"
10130 case " $build_configdirs " in
10131 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10134 for ac_prog in bison
10136 # Extract the first word of "$ac_prog", so it can be a program name with args.
10137 set dummy $ac_prog; ac_word=$2
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10139 $as_echo_n "checking
for $ac_word...
" >&6; }
10140 if ${ac_cv_prog_BISON+:} false; then :
10141 $as_echo_n "(cached
) " >&6
10143 if test -n "$BISON"; then
10144 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147 for as_dir in $PATH
10150 test -z "$as_dir" && as_dir=.
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10153 ac_cv_prog_BISON="$ac_prog"
10154 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10163 BISON=$ac_cv_prog_BISON
10164 if test -n "$BISON"; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10166 $as_echo "$BISON" >&6; }
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10169 $as_echo "no
" >&6; }
10173 test -n "$BISON" && break
10175 test -n "$BISON" || BISON="$MISSING bison
"
10177 case " $build_configdirs " in
10178 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10181 for ac_prog in gm4 gnum4 m4
10183 # Extract the first word of "$ac_prog", so it can be a program name with args.
10184 set dummy $ac_prog; ac_word=$2
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10186 $as_echo_n "checking
for $ac_word...
" >&6; }
10187 if ${ac_cv_prog_M4+:} false; then :
10188 $as_echo_n "(cached
) " >&6
10190 if test -n "$M4"; then
10191 ac_cv_prog_M4="$M4" # Let the user override the test.
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200 ac_cv_prog_M4="$ac_prog"
10201 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10211 if test -n "$M4"; then
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10213 $as_echo "$M4" >&6; }
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10216 $as_echo "no
" >&6; }
10220 test -n "$M4" && break
10222 test -n "$M4" || M4="$MISSING m4"
10224 case " $build_configdirs " in
10225 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10228 for ac_prog in flex lex
10230 # Extract the first word of "$ac_prog", so it can be a program name with args.
10231 set dummy $ac_prog; ac_word=$2
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10233 $as_echo_n "checking
for $ac_word...
" >&6; }
10234 if ${ac_cv_prog_LEX+:} false; then :
10235 $as_echo_n "(cached
) " >&6
10237 if test -n "$LEX"; then
10238 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241 for as_dir in $PATH
10244 test -z "$as_dir" && as_dir=.
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10247 ac_cv_prog_LEX="$ac_prog"
10248 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10257 LEX=$ac_cv_prog_LEX
10258 if test -n "$LEX"; then
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10260 $as_echo "$LEX" >&6; }
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10263 $as_echo "no
" >&6; }
10267 test -n "$LEX" && break
10269 test -n "$LEX" || LEX="$MISSING flex
"
10271 case " $build_configdirs " in
10272 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10273 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10276 for ac_prog in flex
10278 # Extract the first word of "$ac_prog", so it can be a program name with args.
10279 set dummy $ac_prog; ac_word=$2
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10281 $as_echo_n "checking
for $ac_word...
" >&6; }
10282 if ${ac_cv_prog_FLEX+:} false; then :
10283 $as_echo_n "(cached
) " >&6
10285 if test -n "$FLEX"; then
10286 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289 for as_dir in $PATH
10292 test -z "$as_dir" && as_dir=.
10293 for ac_exec_ext in '' $ac_executable_extensions; do
10294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10295 ac_cv_prog_FLEX="$ac_prog"
10296 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10305 FLEX=$ac_cv_prog_FLEX
10306 if test -n "$FLEX"; then
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10308 $as_echo "$FLEX" >&6; }
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10311 $as_echo "no
" >&6; }
10315 test -n "$FLEX" && break
10317 test -n "$FLEX" || FLEX="$MISSING flex
"
10319 case " $build_configdirs " in
10320 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10323 for ac_prog in makeinfo
10325 # Extract the first word of "$ac_prog", so it can be a program name with args.
10326 set dummy $ac_prog; ac_word=$2
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10328 $as_echo_n "checking
for $ac_word...
" >&6; }
10329 if ${ac_cv_prog_MAKEINFO+:} false; then :
10330 $as_echo_n "(cached
) " >&6
10332 if test -n "$MAKEINFO"; then
10333 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10339 test -z "$as_dir" && as_dir=.
10340 for ac_exec_ext in '' $ac_executable_extensions; do
10341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10342 ac_cv_prog_MAKEINFO="$ac_prog"
10343 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10352 MAKEINFO=$ac_cv_prog_MAKEINFO
10353 if test -n "$MAKEINFO"; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10355 $as_echo "$MAKEINFO" >&6; }
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10358 $as_echo "no
" >&6; }
10362 test -n "$MAKEINFO" && break
10364 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10366 case " $build_configdirs " in
10367 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10370 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10371 # higher, else we use the "missing
" dummy.
10372 if ${MAKEINFO} --version \
10373 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10376 MAKEINFO="$MISSING makeinfo
"
10382 # FIXME: expect and dejagnu may become build tools?
10384 for ac_prog in expect
10386 # Extract the first word of "$ac_prog", so it can be a program name with args.
10387 set dummy $ac_prog; ac_word=$2
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10389 $as_echo_n "checking
for $ac_word...
" >&6; }
10390 if ${ac_cv_prog_EXPECT+:} false; then :
10391 $as_echo_n "(cached
) " >&6
10393 if test -n "$EXPECT"; then
10394 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397 for as_dir in $PATH
10400 test -z "$as_dir" && as_dir=.
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10403 ac_cv_prog_EXPECT="$ac_prog"
10404 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10413 EXPECT=$ac_cv_prog_EXPECT
10414 if test -n "$EXPECT"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10416 $as_echo "$EXPECT" >&6; }
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10419 $as_echo "no
" >&6; }
10423 test -n "$EXPECT" && break
10425 test -n "$EXPECT" || EXPECT="expect
"
10427 case " $configdirs " in
10429 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10433 for ac_prog in runtest
10435 # Extract the first word of "$ac_prog", so it can be a program name with args.
10436 set dummy $ac_prog; ac_word=$2
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10438 $as_echo_n "checking
for $ac_word...
" >&6; }
10439 if ${ac_cv_prog_RUNTEST+:} false; then :
10440 $as_echo_n "(cached
) " >&6
10442 if test -n "$RUNTEST"; then
10443 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446 for as_dir in $PATH
10449 test -z "$as_dir" && as_dir=.
10450 for ac_exec_ext in '' $ac_executable_extensions; do
10451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10452 ac_cv_prog_RUNTEST="$ac_prog"
10453 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10462 RUNTEST=$ac_cv_prog_RUNTEST
10463 if test -n "$RUNTEST"; then
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10465 $as_echo "$RUNTEST" >&6; }
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10468 $as_echo "no
" >&6; }
10472 test -n "$RUNTEST" && break
10474 test -n "$RUNTEST" || RUNTEST="runtest
"
10476 case " $configdirs " in
10478 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10485 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10486 ncn_target_tool_prefix=
10487 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10491 if test -n "$AR"; then
10493 elif test -n "$ac_cv_prog_AR"; then
10497 if test -n "$ac_cv_prog_AR"; then
10498 for ncn_progname in ar; do
10499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10500 set dummy ${ncn_progname}; ac_word=$2
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10502 $as_echo_n "checking
for $ac_word...
" >&6; }
10503 if ${ac_cv_prog_AR+:} false; then :
10504 $as_echo_n "(cached
) " >&6
10506 if test -n "$AR"; then
10507 ac_cv_prog_AR="$AR" # Let the user override the test.
10509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10510 for as_dir in $PATH
10513 test -z "$as_dir" && as_dir=.
10514 for ac_exec_ext in '' $ac_executable_extensions; do
10515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10516 ac_cv_prog_AR="${ncn_progname}"
10517 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10527 if test -n "$AR"; then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10529 $as_echo "$AR" >&6; }
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10532 $as_echo "no
" >&6; }
10539 for ncn_progname in ar; do
10540 if test -n "$ncn_tool_prefix"; then
10541 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10542 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10544 $as_echo_n "checking
for $ac_word...
" >&6; }
10545 if ${ac_cv_prog_AR+:} false; then :
10546 $as_echo_n "(cached
) " >&6
10548 if test -n "$AR"; then
10549 ac_cv_prog_AR="$AR" # Let the user override the test.
10551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552 for as_dir in $PATH
10555 test -z "$as_dir" && as_dir=.
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10558 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10559 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10569 if test -n "$AR"; then
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10571 $as_echo "$AR" >&6; }
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10574 $as_echo "no
" >&6; }
10579 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10581 set dummy ${ncn_progname}; ac_word=$2
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10583 $as_echo_n "checking
for $ac_word...
" >&6; }
10584 if ${ac_cv_prog_AR+:} false; then :
10585 $as_echo_n "(cached
) " >&6
10587 if test -n "$AR"; then
10588 ac_cv_prog_AR="$AR" # Let the user override the test.
10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591 for as_dir in $PATH
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10597 ac_cv_prog_AR="${ncn_progname}"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10608 if test -n "$AR"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10610 $as_echo "$AR" >&6; }
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10613 $as_echo "no
" >&6; }
10618 test -n "$ac_cv_prog_AR" && break
10621 if test -z "$ac_cv_prog_AR" ; then
10623 if test $build = $host ; then
10626 AR="${ncn_tool_prefix}$2"
10632 if test -n "$AS"; then
10634 elif test -n "$ac_cv_prog_AS"; then
10638 if test -n "$ac_cv_prog_AS"; then
10639 for ncn_progname in as; do
10640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10641 set dummy ${ncn_progname}; ac_word=$2
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10643 $as_echo_n "checking
for $ac_word...
" >&6; }
10644 if ${ac_cv_prog_AS+:} false; then :
10645 $as_echo_n "(cached
) " >&6
10647 if test -n "$AS"; then
10648 ac_cv_prog_AS="$AS" # Let the user override the test.
10650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10651 for as_dir in $PATH
10654 test -z "$as_dir" && as_dir=.
10655 for ac_exec_ext in '' $ac_executable_extensions; do
10656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10657 ac_cv_prog_AS="${ncn_progname}"
10658 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10668 if test -n "$AS"; then
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10670 $as_echo "$AS" >&6; }
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10673 $as_echo "no
" >&6; }
10680 for ncn_progname in as; do
10681 if test -n "$ncn_tool_prefix"; then
10682 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10683 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10685 $as_echo_n "checking
for $ac_word...
" >&6; }
10686 if ${ac_cv_prog_AS+:} false; then :
10687 $as_echo_n "(cached
) " >&6
10689 if test -n "$AS"; then
10690 ac_cv_prog_AS="$AS" # Let the user override the test.
10692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693 for as_dir in $PATH
10696 test -z "$as_dir" && as_dir=.
10697 for ac_exec_ext in '' $ac_executable_extensions; do
10698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10699 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10700 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10710 if test -n "$AS"; then
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10712 $as_echo "$AS" >&6; }
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10715 $as_echo "no
" >&6; }
10720 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10722 set dummy ${ncn_progname}; ac_word=$2
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10724 $as_echo_n "checking
for $ac_word...
" >&6; }
10725 if ${ac_cv_prog_AS+:} false; then :
10726 $as_echo_n "(cached
) " >&6
10728 if test -n "$AS"; then
10729 ac_cv_prog_AS="$AS" # Let the user override the test.
10731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732 for as_dir in $PATH
10735 test -z "$as_dir" && as_dir=.
10736 for ac_exec_ext in '' $ac_executable_extensions; do
10737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10738 ac_cv_prog_AS="${ncn_progname}"
10739 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10749 if test -n "$AS"; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10751 $as_echo "$AS" >&6; }
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10754 $as_echo "no
" >&6; }
10759 test -n "$ac_cv_prog_AS" && break
10762 if test -z "$ac_cv_prog_AS" ; then
10764 if test $build = $host ; then
10767 AS="${ncn_tool_prefix}$2"
10773 if test -n "$DLLTOOL"; then
10774 ac_cv_prog_DLLTOOL=$DLLTOOL
10775 elif test -n "$ac_cv_prog_DLLTOOL"; then
10776 DLLTOOL=$ac_cv_prog_DLLTOOL
10779 if test -n "$ac_cv_prog_DLLTOOL"; then
10780 for ncn_progname in dlltool; do
10781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10782 set dummy ${ncn_progname}; ac_word=$2
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10784 $as_echo_n "checking
for $ac_word...
" >&6; }
10785 if ${ac_cv_prog_DLLTOOL+:} false; then :
10786 $as_echo_n "(cached
) " >&6
10788 if test -n "$DLLTOOL"; then
10789 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792 for as_dir in $PATH
10795 test -z "$as_dir" && as_dir=.
10796 for ac_exec_ext in '' $ac_executable_extensions; do
10797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10798 ac_cv_prog_DLLTOOL="${ncn_progname}"
10799 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10808 DLLTOOL=$ac_cv_prog_DLLTOOL
10809 if test -n "$DLLTOOL"; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
10811 $as_echo "$DLLTOOL" >&6; }
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10814 $as_echo "no
" >&6; }
10821 for ncn_progname in dlltool; do
10822 if test -n "$ncn_tool_prefix"; then
10823 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10824 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10826 $as_echo_n "checking
for $ac_word...
" >&6; }
10827 if ${ac_cv_prog_DLLTOOL+:} false; then :
10828 $as_echo_n "(cached
) " >&6
10830 if test -n "$DLLTOOL"; then
10831 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834 for as_dir in $PATH
10837 test -z "$as_dir" && as_dir=.
10838 for ac_exec_ext in '' $ac_executable_extensions; do
10839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10840 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10841 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10850 DLLTOOL=$ac_cv_prog_DLLTOOL
10851 if test -n "$DLLTOOL"; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
10853 $as_echo "$DLLTOOL" >&6; }
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10856 $as_echo "no
" >&6; }
10861 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10863 set dummy ${ncn_progname}; ac_word=$2
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10865 $as_echo_n "checking
for $ac_word...
" >&6; }
10866 if ${ac_cv_prog_DLLTOOL+:} false; then :
10867 $as_echo_n "(cached
) " >&6
10869 if test -n "$DLLTOOL"; then
10870 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873 for as_dir in $PATH
10876 test -z "$as_dir" && as_dir=.
10877 for ac_exec_ext in '' $ac_executable_extensions; do
10878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10879 ac_cv_prog_DLLTOOL="${ncn_progname}"
10880 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10889 DLLTOOL=$ac_cv_prog_DLLTOOL
10890 if test -n "$DLLTOOL"; then
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
10892 $as_echo "$DLLTOOL" >&6; }
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10895 $as_echo "no
" >&6; }
10900 test -n "$ac_cv_prog_DLLTOOL" && break
10903 if test -z "$ac_cv_prog_DLLTOOL" ; then
10905 if test $build = $host ; then
10908 DLLTOOL="${ncn_tool_prefix}$2"
10914 if test -n "$LD"; then
10916 elif test -n "$ac_cv_prog_LD"; then
10920 if test -n "$ac_cv_prog_LD"; then
10921 for ncn_progname in ld; do
10922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10923 set dummy ${ncn_progname}; ac_word=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10925 $as_echo_n "checking
for $ac_word...
" >&6; }
10926 if ${ac_cv_prog_LD+:} false; then :
10927 $as_echo_n "(cached
) " >&6
10929 if test -n "$LD"; then
10930 ac_cv_prog_LD="$LD" # Let the user override the test.
10932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933 for as_dir in $PATH
10936 test -z "$as_dir" && as_dir=.
10937 for ac_exec_ext in '' $ac_executable_extensions; do
10938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10939 ac_cv_prog_LD="${ncn_progname}"
10940 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10950 if test -n "$LD"; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
10952 $as_echo "$LD" >&6; }
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10955 $as_echo "no
" >&6; }
10962 for ncn_progname in ld; do
10963 if test -n "$ncn_tool_prefix"; then
10964 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10965 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10967 $as_echo_n "checking
for $ac_word...
" >&6; }
10968 if ${ac_cv_prog_LD+:} false; then :
10969 $as_echo_n "(cached
) " >&6
10971 if test -n "$LD"; then
10972 ac_cv_prog_LD="$LD" # Let the user override the test.
10974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975 for as_dir in $PATH
10978 test -z "$as_dir" && as_dir=.
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10981 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
10982 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10992 if test -n "$LD"; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
10994 $as_echo "$LD" >&6; }
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10997 $as_echo "no
" >&6; }
11002 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11004 set dummy ${ncn_progname}; ac_word=$2
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11006 $as_echo_n "checking
for $ac_word...
" >&6; }
11007 if ${ac_cv_prog_LD+:} false; then :
11008 $as_echo_n "(cached
) " >&6
11010 if test -n "$LD"; then
11011 ac_cv_prog_LD="$LD" # Let the user override the test.
11013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11017 test -z "$as_dir" && as_dir=.
11018 for ac_exec_ext in '' $ac_executable_extensions; do
11019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020 ac_cv_prog_LD="${ncn_progname}"
11021 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11031 if test -n "$LD"; then
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11033 $as_echo "$LD" >&6; }
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11036 $as_echo "no
" >&6; }
11041 test -n "$ac_cv_prog_LD" && break
11044 if test -z "$ac_cv_prog_LD" ; then
11046 if test $build = $host ; then
11049 LD="${ncn_tool_prefix}$2"
11055 if test -n "$LIPO"; then
11056 ac_cv_prog_LIPO=$LIPO
11057 elif test -n "$ac_cv_prog_LIPO"; then
11058 LIPO=$ac_cv_prog_LIPO
11061 if test -n "$ac_cv_prog_LIPO"; then
11062 for ncn_progname in lipo; do
11063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11064 set dummy ${ncn_progname}; ac_word=$2
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11066 $as_echo_n "checking
for $ac_word...
" >&6; }
11067 if ${ac_cv_prog_LIPO+:} false; then :
11068 $as_echo_n "(cached
) " >&6
11070 if test -n "$LIPO"; then
11071 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11074 for as_dir in $PATH
11077 test -z "$as_dir" && as_dir=.
11078 for ac_exec_ext in '' $ac_executable_extensions; do
11079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11080 ac_cv_prog_LIPO="${ncn_progname}"
11081 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11090 LIPO=$ac_cv_prog_LIPO
11091 if test -n "$LIPO"; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11093 $as_echo "$LIPO" >&6; }
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11096 $as_echo "no
" >&6; }
11103 for ncn_progname in lipo; do
11104 if test -n "$ncn_tool_prefix"; then
11105 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11106 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11108 $as_echo_n "checking
for $ac_word...
" >&6; }
11109 if ${ac_cv_prog_LIPO+:} false; then :
11110 $as_echo_n "(cached
) " >&6
11112 if test -n "$LIPO"; then
11113 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11122 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11132 LIPO=$ac_cv_prog_LIPO
11133 if test -n "$LIPO"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11135 $as_echo "$LIPO" >&6; }
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11138 $as_echo "no
" >&6; }
11143 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11145 set dummy ${ncn_progname}; ac_word=$2
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11147 $as_echo_n "checking
for $ac_word...
" >&6; }
11148 if ${ac_cv_prog_LIPO+:} false; then :
11149 $as_echo_n "(cached
) " >&6
11151 if test -n "$LIPO"; then
11152 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11155 for as_dir in $PATH
11158 test -z "$as_dir" && as_dir=.
11159 for ac_exec_ext in '' $ac_executable_extensions; do
11160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11161 ac_cv_prog_LIPO="${ncn_progname}"
11162 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11171 LIPO=$ac_cv_prog_LIPO
11172 if test -n "$LIPO"; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11174 $as_echo "$LIPO" >&6; }
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11177 $as_echo "no
" >&6; }
11182 test -n "$ac_cv_prog_LIPO" && break
11185 if test -z "$ac_cv_prog_LIPO" ; then
11187 if test $build = $host ; then
11190 LIPO="${ncn_tool_prefix}$2"
11196 if test -n "$NM"; then
11198 elif test -n "$ac_cv_prog_NM"; then
11202 if test -n "$ac_cv_prog_NM"; then
11203 for ncn_progname in nm; do
11204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11205 set dummy ${ncn_progname}; ac_word=$2
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11207 $as_echo_n "checking
for $ac_word...
" >&6; }
11208 if ${ac_cv_prog_NM+:} false; then :
11209 $as_echo_n "(cached
) " >&6
11211 if test -n "$NM"; then
11212 ac_cv_prog_NM="$NM" # Let the user override the test.
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215 for as_dir in $PATH
11218 test -z "$as_dir" && as_dir=.
11219 for ac_exec_ext in '' $ac_executable_extensions; do
11220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11221 ac_cv_prog_NM="${ncn_progname}"
11222 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11232 if test -n "$NM"; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11234 $as_echo "$NM" >&6; }
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11237 $as_echo "no
" >&6; }
11244 for ncn_progname in nm; do
11245 if test -n "$ncn_tool_prefix"; then
11246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11247 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11249 $as_echo_n "checking
for $ac_word...
" >&6; }
11250 if ${ac_cv_prog_NM+:} false; then :
11251 $as_echo_n "(cached
) " >&6
11253 if test -n "$NM"; then
11254 ac_cv_prog_NM="$NM" # Let the user override the test.
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $PATH
11260 test -z "$as_dir" && as_dir=.
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11264 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11274 if test -n "$NM"; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11276 $as_echo "$NM" >&6; }
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11279 $as_echo "no
" >&6; }
11284 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11286 set dummy ${ncn_progname}; ac_word=$2
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11288 $as_echo_n "checking
for $ac_word...
" >&6; }
11289 if ${ac_cv_prog_NM+:} false; then :
11290 $as_echo_n "(cached
) " >&6
11292 if test -n "$NM"; then
11293 ac_cv_prog_NM="$NM" # Let the user override the test.
11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296 for as_dir in $PATH
11299 test -z "$as_dir" && as_dir=.
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11302 ac_cv_prog_NM="${ncn_progname}"
11303 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11313 if test -n "$NM"; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11315 $as_echo "$NM" >&6; }
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11318 $as_echo "no
" >&6; }
11323 test -n "$ac_cv_prog_NM" && break
11326 if test -z "$ac_cv_prog_NM" ; then
11328 if test $build = $host ; then
11331 NM="${ncn_tool_prefix}$2"
11337 if test -n "$RANLIB"; then
11338 ac_cv_prog_RANLIB=$RANLIB
11339 elif test -n "$ac_cv_prog_RANLIB"; then
11340 RANLIB=$ac_cv_prog_RANLIB
11343 if test -n "$ac_cv_prog_RANLIB"; then
11344 for ncn_progname in ranlib; do
11345 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11346 set dummy ${ncn_progname}; ac_word=$2
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11348 $as_echo_n "checking
for $ac_word...
" >&6; }
11349 if ${ac_cv_prog_RANLIB+:} false; then :
11350 $as_echo_n "(cached
) " >&6
11352 if test -n "$RANLIB"; then
11353 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11356 for as_dir in $PATH
11359 test -z "$as_dir" && as_dir=.
11360 for ac_exec_ext in '' $ac_executable_extensions; do
11361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11362 ac_cv_prog_RANLIB="${ncn_progname}"
11363 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11372 RANLIB=$ac_cv_prog_RANLIB
11373 if test -n "$RANLIB"; then
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11375 $as_echo "$RANLIB" >&6; }
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11378 $as_echo "no
" >&6; }
11385 for ncn_progname in ranlib; do
11386 if test -n "$ncn_tool_prefix"; then
11387 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11388 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11390 $as_echo_n "checking
for $ac_word...
" >&6; }
11391 if ${ac_cv_prog_RANLIB+:} false; then :
11392 $as_echo_n "(cached
) " >&6
11394 if test -n "$RANLIB"; then
11395 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398 for as_dir in $PATH
11401 test -z "$as_dir" && as_dir=.
11402 for ac_exec_ext in '' $ac_executable_extensions; do
11403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11405 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11414 RANLIB=$ac_cv_prog_RANLIB
11415 if test -n "$RANLIB"; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11417 $as_echo "$RANLIB" >&6; }
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11420 $as_echo "no
" >&6; }
11425 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11427 set dummy ${ncn_progname}; ac_word=$2
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11429 $as_echo_n "checking
for $ac_word...
" >&6; }
11430 if ${ac_cv_prog_RANLIB+:} false; then :
11431 $as_echo_n "(cached
) " >&6
11433 if test -n "$RANLIB"; then
11434 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437 for as_dir in $PATH
11440 test -z "$as_dir" && as_dir=.
11441 for ac_exec_ext in '' $ac_executable_extensions; do
11442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11443 ac_cv_prog_RANLIB="${ncn_progname}"
11444 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11453 RANLIB=$ac_cv_prog_RANLIB
11454 if test -n "$RANLIB"; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11456 $as_echo "$RANLIB" >&6; }
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11459 $as_echo "no
" >&6; }
11464 test -n "$ac_cv_prog_RANLIB" && break
11467 if test -z "$ac_cv_prog_RANLIB" ; then
11473 if test -n "$STRIP"; then
11474 ac_cv_prog_STRIP=$STRIP
11475 elif test -n "$ac_cv_prog_STRIP"; then
11476 STRIP=$ac_cv_prog_STRIP
11479 if test -n "$ac_cv_prog_STRIP"; then
11480 for ncn_progname in strip; do
11481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11482 set dummy ${ncn_progname}; ac_word=$2
11483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11484 $as_echo_n "checking
for $ac_word...
" >&6; }
11485 if ${ac_cv_prog_STRIP+:} false; then :
11486 $as_echo_n "(cached
) " >&6
11488 if test -n "$STRIP"; then
11489 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11492 for as_dir in $PATH
11495 test -z "$as_dir" && as_dir=.
11496 for ac_exec_ext in '' $ac_executable_extensions; do
11497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11498 ac_cv_prog_STRIP="${ncn_progname}"
11499 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11508 STRIP=$ac_cv_prog_STRIP
11509 if test -n "$STRIP"; then
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11511 $as_echo "$STRIP" >&6; }
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11514 $as_echo "no
" >&6; }
11521 for ncn_progname in strip; do
11522 if test -n "$ncn_tool_prefix"; then
11523 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11524 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11526 $as_echo_n "checking
for $ac_word...
" >&6; }
11527 if ${ac_cv_prog_STRIP+:} false; then :
11528 $as_echo_n "(cached
) " >&6
11530 if test -n "$STRIP"; then
11531 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11534 for as_dir in $PATH
11537 test -z "$as_dir" && as_dir=.
11538 for ac_exec_ext in '' $ac_executable_extensions; do
11539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11540 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11541 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11550 STRIP=$ac_cv_prog_STRIP
11551 if test -n "$STRIP"; then
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11553 $as_echo "$STRIP" >&6; }
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11556 $as_echo "no
" >&6; }
11561 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11562 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11563 set dummy ${ncn_progname}; ac_word=$2
11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11565 $as_echo_n "checking
for $ac_word...
" >&6; }
11566 if ${ac_cv_prog_STRIP+:} false; then :
11567 $as_echo_n "(cached
) " >&6
11569 if test -n "$STRIP"; then
11570 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11573 for as_dir in $PATH
11576 test -z "$as_dir" && as_dir=.
11577 for ac_exec_ext in '' $ac_executable_extensions; do
11578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11579 ac_cv_prog_STRIP="${ncn_progname}"
11580 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11589 STRIP=$ac_cv_prog_STRIP
11590 if test -n "$STRIP"; then
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11592 $as_echo "$STRIP" >&6; }
11594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11595 $as_echo "no
" >&6; }
11600 test -n "$ac_cv_prog_STRIP" && break
11603 if test -z "$ac_cv_prog_STRIP" ; then
11609 if test -n "$WINDRES"; then
11610 ac_cv_prog_WINDRES=$WINDRES
11611 elif test -n "$ac_cv_prog_WINDRES"; then
11612 WINDRES=$ac_cv_prog_WINDRES
11615 if test -n "$ac_cv_prog_WINDRES"; then
11616 for ncn_progname in windres; do
11617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11618 set dummy ${ncn_progname}; ac_word=$2
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11620 $as_echo_n "checking
for $ac_word...
" >&6; }
11621 if ${ac_cv_prog_WINDRES+:} false; then :
11622 $as_echo_n "(cached
) " >&6
11624 if test -n "$WINDRES"; then
11625 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11628 for as_dir in $PATH
11631 test -z "$as_dir" && as_dir=.
11632 for ac_exec_ext in '' $ac_executable_extensions; do
11633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11634 ac_cv_prog_WINDRES="${ncn_progname}"
11635 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11644 WINDRES=$ac_cv_prog_WINDRES
11645 if test -n "$WINDRES"; then
11646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
11647 $as_echo "$WINDRES" >&6; }
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11650 $as_echo "no
" >&6; }
11657 for ncn_progname in windres; do
11658 if test -n "$ncn_tool_prefix"; then
11659 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11660 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11662 $as_echo_n "checking
for $ac_word...
" >&6; }
11663 if ${ac_cv_prog_WINDRES+:} false; then :
11664 $as_echo_n "(cached
) " >&6
11666 if test -n "$WINDRES"; then
11667 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11670 for as_dir in $PATH
11673 test -z "$as_dir" && as_dir=.
11674 for ac_exec_ext in '' $ac_executable_extensions; do
11675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11676 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11677 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11686 WINDRES=$ac_cv_prog_WINDRES
11687 if test -n "$WINDRES"; then
11688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
11689 $as_echo "$WINDRES" >&6; }
11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11692 $as_echo "no
" >&6; }
11697 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11699 set dummy ${ncn_progname}; ac_word=$2
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11701 $as_echo_n "checking
for $ac_word...
" >&6; }
11702 if ${ac_cv_prog_WINDRES+:} false; then :
11703 $as_echo_n "(cached
) " >&6
11705 if test -n "$WINDRES"; then
11706 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11715 ac_cv_prog_WINDRES="${ncn_progname}"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11725 WINDRES=$ac_cv_prog_WINDRES
11726 if test -n "$WINDRES"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
11728 $as_echo "$WINDRES" >&6; }
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11731 $as_echo "no
" >&6; }
11736 test -n "$ac_cv_prog_WINDRES" && break
11739 if test -z "$ac_cv_prog_WINDRES" ; then
11741 if test $build = $host ; then
11744 WINDRES="${ncn_tool_prefix}$2"
11750 if test -n "$WINDMC"; then
11751 ac_cv_prog_WINDMC=$WINDMC
11752 elif test -n "$ac_cv_prog_WINDMC"; then
11753 WINDMC=$ac_cv_prog_WINDMC
11756 if test -n "$ac_cv_prog_WINDMC"; then
11757 for ncn_progname in windmc; do
11758 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11759 set dummy ${ncn_progname}; ac_word=$2
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11761 $as_echo_n "checking
for $ac_word...
" >&6; }
11762 if ${ac_cv_prog_WINDMC+:} false; then :
11763 $as_echo_n "(cached
) " >&6
11765 if test -n "$WINDMC"; then
11766 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11769 for as_dir in $PATH
11772 test -z "$as_dir" && as_dir=.
11773 for ac_exec_ext in '' $ac_executable_extensions; do
11774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11775 ac_cv_prog_WINDMC="${ncn_progname}"
11776 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11785 WINDMC=$ac_cv_prog_WINDMC
11786 if test -n "$WINDMC"; then
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
11788 $as_echo "$WINDMC" >&6; }
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11791 $as_echo "no
" >&6; }
11798 for ncn_progname in windmc; do
11799 if test -n "$ncn_tool_prefix"; then
11800 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11801 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11803 $as_echo_n "checking
for $ac_word...
" >&6; }
11804 if ${ac_cv_prog_WINDMC+:} false; then :
11805 $as_echo_n "(cached
) " >&6
11807 if test -n "$WINDMC"; then
11808 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811 for as_dir in $PATH
11814 test -z "$as_dir" && as_dir=.
11815 for ac_exec_ext in '' $ac_executable_extensions; do
11816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11817 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
11818 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11827 WINDMC=$ac_cv_prog_WINDMC
11828 if test -n "$WINDMC"; then
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
11830 $as_echo "$WINDMC" >&6; }
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11833 $as_echo "no
" >&6; }
11838 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
11839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11840 set dummy ${ncn_progname}; ac_word=$2
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11842 $as_echo_n "checking
for $ac_word...
" >&6; }
11843 if ${ac_cv_prog_WINDMC+:} false; then :
11844 $as_echo_n "(cached
) " >&6
11846 if test -n "$WINDMC"; then
11847 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH
11853 test -z "$as_dir" && as_dir=.
11854 for ac_exec_ext in '' $ac_executable_extensions; do
11855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11856 ac_cv_prog_WINDMC="${ncn_progname}"
11857 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11866 WINDMC=$ac_cv_prog_WINDMC
11867 if test -n "$WINDMC"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
11869 $as_echo "$WINDMC" >&6; }
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11872 $as_echo "no
" >&6; }
11877 test -n "$ac_cv_prog_WINDMC" && break
11880 if test -z "$ac_cv_prog_WINDMC" ; then
11882 if test $build = $host ; then
11885 WINDMC="${ncn_tool_prefix}$2"
11891 if test -n "$OBJCOPY"; then
11892 ac_cv_prog_OBJCOPY=$OBJCOPY
11893 elif test -n "$ac_cv_prog_OBJCOPY"; then
11894 OBJCOPY=$ac_cv_prog_OBJCOPY
11897 if test -n "$ac_cv_prog_OBJCOPY"; then
11898 for ncn_progname in objcopy; do
11899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11900 set dummy ${ncn_progname}; ac_word=$2
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11902 $as_echo_n "checking
for $ac_word...
" >&6; }
11903 if ${ac_cv_prog_OBJCOPY+:} false; then :
11904 $as_echo_n "(cached
) " >&6
11906 if test -n "$OBJCOPY"; then
11907 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11916 ac_cv_prog_OBJCOPY="${ncn_progname}"
11917 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11926 OBJCOPY=$ac_cv_prog_OBJCOPY
11927 if test -n "$OBJCOPY"; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
11929 $as_echo "$OBJCOPY" >&6; }
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11932 $as_echo "no
" >&6; }
11939 for ncn_progname in objcopy; do
11940 if test -n "$ncn_tool_prefix"; then
11941 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11942 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11944 $as_echo_n "checking
for $ac_word...
" >&6; }
11945 if ${ac_cv_prog_OBJCOPY+:} false; then :
11946 $as_echo_n "(cached
) " >&6
11948 if test -n "$OBJCOPY"; then
11949 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11955 test -z "$as_dir" && as_dir=.
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11958 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
11959 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11968 OBJCOPY=$ac_cv_prog_OBJCOPY
11969 if test -n "$OBJCOPY"; then
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
11971 $as_echo "$OBJCOPY" >&6; }
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11974 $as_echo "no
" >&6; }
11979 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
11980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11981 set dummy ${ncn_progname}; ac_word=$2
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11983 $as_echo_n "checking
for $ac_word...
" >&6; }
11984 if ${ac_cv_prog_OBJCOPY+:} false; then :
11985 $as_echo_n "(cached
) " >&6
11987 if test -n "$OBJCOPY"; then
11988 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
11990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991 for as_dir in $PATH
11994 test -z "$as_dir" && as_dir=.
11995 for ac_exec_ext in '' $ac_executable_extensions; do
11996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11997 ac_cv_prog_OBJCOPY="${ncn_progname}"
11998 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12007 OBJCOPY=$ac_cv_prog_OBJCOPY
12008 if test -n "$OBJCOPY"; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12010 $as_echo "$OBJCOPY" >&6; }
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12013 $as_echo "no
" >&6; }
12018 test -n "$ac_cv_prog_OBJCOPY" && break
12021 if test -z "$ac_cv_prog_OBJCOPY" ; then
12023 if test $build = $host ; then
12026 OBJCOPY="${ncn_tool_prefix}$2"
12032 if test -n "$OBJDUMP"; then
12033 ac_cv_prog_OBJDUMP=$OBJDUMP
12034 elif test -n "$ac_cv_prog_OBJDUMP"; then
12035 OBJDUMP=$ac_cv_prog_OBJDUMP
12038 if test -n "$ac_cv_prog_OBJDUMP"; then
12039 for ncn_progname in objdump; do
12040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12041 set dummy ${ncn_progname}; ac_word=$2
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12043 $as_echo_n "checking
for $ac_word...
" >&6; }
12044 if ${ac_cv_prog_OBJDUMP+:} false; then :
12045 $as_echo_n "(cached
) " >&6
12047 if test -n "$OBJDUMP"; then
12048 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051 for as_dir in $PATH
12054 test -z "$as_dir" && as_dir=.
12055 for ac_exec_ext in '' $ac_executable_extensions; do
12056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12057 ac_cv_prog_OBJDUMP="${ncn_progname}"
12058 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12067 OBJDUMP=$ac_cv_prog_OBJDUMP
12068 if test -n "$OBJDUMP"; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12070 $as_echo "$OBJDUMP" >&6; }
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12073 $as_echo "no
" >&6; }
12080 for ncn_progname in objdump; do
12081 if test -n "$ncn_tool_prefix"; then
12082 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12083 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12085 $as_echo_n "checking
for $ac_word...
" >&6; }
12086 if ${ac_cv_prog_OBJDUMP+:} false; then :
12087 $as_echo_n "(cached
) " >&6
12089 if test -n "$OBJDUMP"; then
12090 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH
12096 test -z "$as_dir" && as_dir=.
12097 for ac_exec_ext in '' $ac_executable_extensions; do
12098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12099 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12100 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12109 OBJDUMP=$ac_cv_prog_OBJDUMP
12110 if test -n "$OBJDUMP"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12112 $as_echo "$OBJDUMP" >&6; }
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12115 $as_echo "no
" >&6; }
12120 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12122 set dummy ${ncn_progname}; ac_word=$2
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12124 $as_echo_n "checking
for $ac_word...
" >&6; }
12125 if ${ac_cv_prog_OBJDUMP+:} false; then :
12126 $as_echo_n "(cached
) " >&6
12128 if test -n "$OBJDUMP"; then
12129 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12135 test -z "$as_dir" && as_dir=.
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12138 ac_cv_prog_OBJDUMP="${ncn_progname}"
12139 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12148 OBJDUMP=$ac_cv_prog_OBJDUMP
12149 if test -n "$OBJDUMP"; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12151 $as_echo "$OBJDUMP" >&6; }
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12154 $as_echo "no
" >&6; }
12159 test -n "$ac_cv_prog_OBJDUMP" && break
12162 if test -z "$ac_cv_prog_OBJDUMP" ; then
12164 if test $build = $host ; then
12167 OBJDUMP="${ncn_tool_prefix}$2"
12173 if test -n "$OTOOL"; then
12174 ac_cv_prog_OTOOL=$OTOOL
12175 elif test -n "$ac_cv_prog_OTOOL"; then
12176 OTOOL=$ac_cv_prog_OTOOL
12179 if test -n "$ac_cv_prog_OTOOL"; then
12180 for ncn_progname in otool; do
12181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12182 set dummy ${ncn_progname}; ac_word=$2
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12184 $as_echo_n "checking
for $ac_word...
" >&6; }
12185 if ${ac_cv_prog_OTOOL+:} false; then :
12186 $as_echo_n "(cached
) " >&6
12188 if test -n "$OTOOL"; then
12189 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192 for as_dir in $PATH
12195 test -z "$as_dir" && as_dir=.
12196 for ac_exec_ext in '' $ac_executable_extensions; do
12197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12198 ac_cv_prog_OTOOL="${ncn_progname}"
12199 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12208 OTOOL=$ac_cv_prog_OTOOL
12209 if test -n "$OTOOL"; then
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12211 $as_echo "$OTOOL" >&6; }
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12214 $as_echo "no
" >&6; }
12221 for ncn_progname in otool; do
12222 if test -n "$ncn_tool_prefix"; then
12223 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12224 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12226 $as_echo_n "checking
for $ac_word...
" >&6; }
12227 if ${ac_cv_prog_OTOOL+:} false; then :
12228 $as_echo_n "(cached
) " >&6
12230 if test -n "$OTOOL"; then
12231 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $PATH
12237 test -z "$as_dir" && as_dir=.
12238 for ac_exec_ext in '' $ac_executable_extensions; do
12239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12240 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12241 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12250 OTOOL=$ac_cv_prog_OTOOL
12251 if test -n "$OTOOL"; then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12253 $as_echo "$OTOOL" >&6; }
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12256 $as_echo "no
" >&6; }
12261 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12263 set dummy ${ncn_progname}; ac_word=$2
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12265 $as_echo_n "checking
for $ac_word...
" >&6; }
12266 if ${ac_cv_prog_OTOOL+:} false; then :
12267 $as_echo_n "(cached
) " >&6
12269 if test -n "$OTOOL"; then
12270 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273 for as_dir in $PATH
12276 test -z "$as_dir" && as_dir=.
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12279 ac_cv_prog_OTOOL="${ncn_progname}"
12280 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12289 OTOOL=$ac_cv_prog_OTOOL
12290 if test -n "$OTOOL"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12292 $as_echo "$OTOOL" >&6; }
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12295 $as_echo "no
" >&6; }
12300 test -n "$ac_cv_prog_OTOOL" && break
12303 if test -z "$ac_cv_prog_OTOOL" ; then
12305 if test $build = $host ; then
12308 OTOOL="${ncn_tool_prefix}$2"
12314 if test -n "$READELF"; then
12315 ac_cv_prog_READELF=$READELF
12316 elif test -n "$ac_cv_prog_READELF"; then
12317 READELF=$ac_cv_prog_READELF
12320 if test -n "$ac_cv_prog_READELF"; then
12321 for ncn_progname in readelf; do
12322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12323 set dummy ${ncn_progname}; ac_word=$2
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12325 $as_echo_n "checking
for $ac_word...
" >&6; }
12326 if ${ac_cv_prog_READELF+:} false; then :
12327 $as_echo_n "(cached
) " >&6
12329 if test -n "$READELF"; then
12330 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333 for as_dir in $PATH
12336 test -z "$as_dir" && as_dir=.
12337 for ac_exec_ext in '' $ac_executable_extensions; do
12338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12339 ac_cv_prog_READELF="${ncn_progname}"
12340 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12349 READELF=$ac_cv_prog_READELF
12350 if test -n "$READELF"; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12352 $as_echo "$READELF" >&6; }
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12355 $as_echo "no
" >&6; }
12362 for ncn_progname in readelf; do
12363 if test -n "$ncn_tool_prefix"; then
12364 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12365 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12367 $as_echo_n "checking
for $ac_word...
" >&6; }
12368 if ${ac_cv_prog_READELF+:} false; then :
12369 $as_echo_n "(cached
) " >&6
12371 if test -n "$READELF"; then
12372 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12378 test -z "$as_dir" && as_dir=.
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12381 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12382 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12391 READELF=$ac_cv_prog_READELF
12392 if test -n "$READELF"; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12394 $as_echo "$READELF" >&6; }
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12397 $as_echo "no
" >&6; }
12402 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12404 set dummy ${ncn_progname}; ac_word=$2
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12406 $as_echo_n "checking
for $ac_word...
" >&6; }
12407 if ${ac_cv_prog_READELF+:} false; then :
12408 $as_echo_n "(cached
) " >&6
12410 if test -n "$READELF"; then
12411 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12417 test -z "$as_dir" && as_dir=.
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12420 ac_cv_prog_READELF="${ncn_progname}"
12421 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12430 READELF=$ac_cv_prog_READELF
12431 if test -n "$READELF"; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12433 $as_echo "$READELF" >&6; }
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12436 $as_echo "no
" >&6; }
12441 test -n "$ac_cv_prog_READELF" && break
12444 if test -z "$ac_cv_prog_READELF" ; then
12446 if test $build = $host ; then
12449 READELF="${ncn_tool_prefix}$2"
12460 # Check whether --with-build-time-tools was given.
12461 if test "${with_build_time_tools+set}" = set; then :
12462 withval=$with_build_time_tools; case x"$withval" in
12465 with_build_time_tools=
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
12467 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
12471 with_build_time_tools=
12477 if test -n "$CC_FOR_TARGET"; then
12478 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12479 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12480 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12483 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12484 for ncn_progname in cc gcc; do
12485 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12486 set dummy ${ncn_progname}; ac_word=$2
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12488 $as_echo_n "checking
for $ac_word...
" >&6; }
12489 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12490 $as_echo_n "(cached
) " >&6
12492 if test -n "$CC_FOR_TARGET"; then
12493 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12496 for as_dir in $PATH
12499 test -z "$as_dir" && as_dir=.
12500 for ac_exec_ext in '' $ac_executable_extensions; do
12501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12502 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12503 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12512 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12513 if test -n "$CC_FOR_TARGET"; then
12514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12515 $as_echo "$CC_FOR_TARGET" >&6; }
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12518 $as_echo "no
" >&6; }
12525 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12526 for ncn_progname in cc gcc; do
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12528 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12529 if test -x $with_build_time_tools/${ncn_progname}; then
12530 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12532 $as_echo "yes" >&6; }
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12536 $as_echo "no
" >&6; }
12541 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12542 for ncn_progname in cc gcc; do
12543 if test -n "$ncn_target_tool_prefix"; then
12544 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12545 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12547 $as_echo_n "checking
for $ac_word...
" >&6; }
12548 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12549 $as_echo_n "(cached
) " >&6
12551 if test -n "$CC_FOR_TARGET"; then
12552 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12555 for as_dir in $PATH
12558 test -z "$as_dir" && as_dir=.
12559 for ac_exec_ext in '' $ac_executable_extensions; do
12560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12561 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12562 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12571 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12572 if test -n "$CC_FOR_TARGET"; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12574 $as_echo "$CC_FOR_TARGET" >&6; }
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12577 $as_echo "no
" >&6; }
12582 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12583 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12584 set dummy ${ncn_progname}; ac_word=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12586 $as_echo_n "checking
for $ac_word...
" >&6; }
12587 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12588 $as_echo_n "(cached
) " >&6
12590 if test -n "$CC_FOR_TARGET"; then
12591 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12600 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12601 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12610 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12611 if test -n "$CC_FOR_TARGET"; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12613 $as_echo "$CC_FOR_TARGET" >&6; }
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12616 $as_echo "no
" >&6; }
12621 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12625 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12627 if test $build = $target ; then
12630 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12633 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12638 if test -n "$CXX_FOR_TARGET"; then
12639 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12640 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12641 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12644 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12645 for ncn_progname in c++ g++ cxx gxx; do
12646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12647 set dummy ${ncn_progname}; ac_word=$2
12648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12649 $as_echo_n "checking
for $ac_word...
" >&6; }
12650 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12651 $as_echo_n "(cached
) " >&6
12653 if test -n "$CXX_FOR_TARGET"; then
12654 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12657 for as_dir in $PATH
12660 test -z "$as_dir" && as_dir=.
12661 for ac_exec_ext in '' $ac_executable_extensions; do
12662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12663 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12664 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12673 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12674 if test -n "$CXX_FOR_TARGET"; then
12675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
12676 $as_echo "$CXX_FOR_TARGET" >&6; }
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12679 $as_echo "no
" >&6; }
12686 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
12687 for ncn_progname in c++ g++ cxx gxx; do
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12689 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12690 if test -x $with_build_time_tools/${ncn_progname}; then
12691 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12693 $as_echo "yes" >&6; }
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12697 $as_echo "no
" >&6; }
12702 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12703 for ncn_progname in c++ g++ cxx gxx; do
12704 if test -n "$ncn_target_tool_prefix"; then
12705 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12706 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12708 $as_echo_n "checking
for $ac_word...
" >&6; }
12709 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12710 $as_echo_n "(cached
) " >&6
12712 if test -n "$CXX_FOR_TARGET"; then
12713 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12716 for as_dir in $PATH
12719 test -z "$as_dir" && as_dir=.
12720 for ac_exec_ext in '' $ac_executable_extensions; do
12721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12722 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12723 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12732 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12733 if test -n "$CXX_FOR_TARGET"; then
12734 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
12735 $as_echo "$CXX_FOR_TARGET" >&6; }
12737 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12738 $as_echo "no
" >&6; }
12743 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12744 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12745 set dummy ${ncn_progname}; ac_word=$2
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12747 $as_echo_n "checking
for $ac_word...
" >&6; }
12748 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12749 $as_echo_n "(cached
) " >&6
12751 if test -n "$CXX_FOR_TARGET"; then
12752 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12755 for as_dir in $PATH
12758 test -z "$as_dir" && as_dir=.
12759 for ac_exec_ext in '' $ac_executable_extensions; do
12760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12761 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12762 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12771 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12772 if test -n "$CXX_FOR_TARGET"; then
12773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
12774 $as_echo "$CXX_FOR_TARGET" >&6; }
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12777 $as_echo "no
" >&6; }
12782 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12786 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12787 set dummy c++ g++ cxx gxx
12788 if test $build = $target ; then
12789 CXX_FOR_TARGET="$2"
12791 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
12794 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
12799 if test -n "$GCC_FOR_TARGET"; then
12800 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12801 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12802 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12805 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12806 for ncn_progname in gcc; do
12807 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12808 set dummy ${ncn_progname}; ac_word=$2
12809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12810 $as_echo_n "checking
for $ac_word...
" >&6; }
12811 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12812 $as_echo_n "(cached
) " >&6
12814 if test -n "$GCC_FOR_TARGET"; then
12815 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12818 for as_dir in $PATH
12821 test -z "$as_dir" && as_dir=.
12822 for ac_exec_ext in '' $ac_executable_extensions; do
12823 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12824 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12825 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12834 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12835 if test -n "$GCC_FOR_TARGET"; then
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
12837 $as_echo "$GCC_FOR_TARGET" >&6; }
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12840 $as_echo "no
" >&6; }
12847 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12848 for ncn_progname in gcc; do
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12850 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12851 if test -x $with_build_time_tools/${ncn_progname}; then
12852 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12853 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12854 $as_echo "yes" >&6; }
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12858 $as_echo "no
" >&6; }
12863 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
12864 for ncn_progname in gcc; do
12865 if test -n "$ncn_target_tool_prefix"; then
12866 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12867 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12869 $as_echo_n "checking
for $ac_word...
" >&6; }
12870 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12871 $as_echo_n "(cached
) " >&6
12873 if test -n "$GCC_FOR_TARGET"; then
12874 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12877 for as_dir in $PATH
12880 test -z "$as_dir" && as_dir=.
12881 for ac_exec_ext in '' $ac_executable_extensions; do
12882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12883 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12884 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12893 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12894 if test -n "$GCC_FOR_TARGET"; then
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
12896 $as_echo "$GCC_FOR_TARGET" >&6; }
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12899 $as_echo "no
" >&6; }
12904 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
12905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12906 set dummy ${ncn_progname}; ac_word=$2
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12908 $as_echo_n "checking
for $ac_word...
" >&6; }
12909 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12910 $as_echo_n "(cached
) " >&6
12912 if test -n "$GCC_FOR_TARGET"; then
12913 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12916 for as_dir in $PATH
12919 test -z "$as_dir" && as_dir=.
12920 for ac_exec_ext in '' $ac_executable_extensions; do
12921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12922 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12923 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12932 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12933 if test -n "$GCC_FOR_TARGET"; then
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
12935 $as_echo "$GCC_FOR_TARGET" >&6; }
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12938 $as_echo "no
" >&6; }
12943 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
12947 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
12948 GCC_FOR_TARGET="${CC_FOR_TARGET}"
12950 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
12955 if test -n "$GFORTRAN_FOR_TARGET"; then
12956 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
12957 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12958 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12961 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
12962 for ncn_progname in gfortran; do
12963 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12964 set dummy ${ncn_progname}; ac_word=$2
12965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12966 $as_echo_n "checking
for $ac_word...
" >&6; }
12967 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
12968 $as_echo_n "(cached
) " >&6
12970 if test -n "$GFORTRAN_FOR_TARGET"; then
12971 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
12973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12974 for as_dir in $PATH
12977 test -z "$as_dir" && as_dir=.
12978 for ac_exec_ext in '' $ac_executable_extensions; do
12979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12980 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
12981 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12990 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
12991 if test -n "$GFORTRAN_FOR_TARGET"; then
12992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
12993 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12996 $as_echo "no
" >&6; }
13003 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13004 for ncn_progname in gfortran; do
13005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13006 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13007 if test -x $with_build_time_tools/${ncn_progname}; then
13008 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13010 $as_echo "yes" >&6; }
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13014 $as_echo "no
" >&6; }
13019 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13020 for ncn_progname in gfortran; do
13021 if test -n "$ncn_target_tool_prefix"; then
13022 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13023 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13025 $as_echo_n "checking
for $ac_word...
" >&6; }
13026 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13027 $as_echo_n "(cached
) " >&6
13029 if test -n "$GFORTRAN_FOR_TARGET"; then
13030 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13033 for as_dir in $PATH
13036 test -z "$as_dir" && as_dir=.
13037 for ac_exec_ext in '' $ac_executable_extensions; do
13038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13039 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13040 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13049 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13050 if test -n "$GFORTRAN_FOR_TARGET"; then
13051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13052 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13055 $as_echo "no
" >&6; }
13060 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13062 set dummy ${ncn_progname}; ac_word=$2
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13064 $as_echo_n "checking
for $ac_word...
" >&6; }
13065 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13066 $as_echo_n "(cached
) " >&6
13068 if test -n "$GFORTRAN_FOR_TARGET"; then
13069 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13072 for as_dir in $PATH
13075 test -z "$as_dir" && as_dir=.
13076 for ac_exec_ext in '' $ac_executable_extensions; do
13077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13078 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13079 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13088 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13089 if test -n "$GFORTRAN_FOR_TARGET"; then
13090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13091 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13094 $as_echo "no
" >&6; }
13099 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13103 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13105 if test $build = $target ; then
13106 GFORTRAN_FOR_TARGET="$2"
13108 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13111 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13116 if test -n "$GOC_FOR_TARGET"; then
13117 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13118 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13119 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13122 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13123 for ncn_progname in gccgo; do
13124 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13125 set dummy ${ncn_progname}; ac_word=$2
13126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13127 $as_echo_n "checking
for $ac_word...
" >&6; }
13128 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13129 $as_echo_n "(cached
) " >&6
13131 if test -n "$GOC_FOR_TARGET"; then
13132 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135 for as_dir in $PATH
13138 test -z "$as_dir" && as_dir=.
13139 for ac_exec_ext in '' $ac_executable_extensions; do
13140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13141 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13142 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13151 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13152 if test -n "$GOC_FOR_TARGET"; then
13153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13154 $as_echo "$GOC_FOR_TARGET" >&6; }
13156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13157 $as_echo "no
" >&6; }
13164 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13165 for ncn_progname in gccgo; do
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13167 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13168 if test -x $with_build_time_tools/${ncn_progname}; then
13169 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13171 $as_echo "yes" >&6; }
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13175 $as_echo "no
" >&6; }
13180 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13181 for ncn_progname in gccgo; do
13182 if test -n "$ncn_target_tool_prefix"; then
13183 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13184 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13186 $as_echo_n "checking
for $ac_word...
" >&6; }
13187 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13188 $as_echo_n "(cached
) " >&6
13190 if test -n "$GOC_FOR_TARGET"; then
13191 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13194 for as_dir in $PATH
13197 test -z "$as_dir" && as_dir=.
13198 for ac_exec_ext in '' $ac_executable_extensions; do
13199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13200 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13201 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13210 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13211 if test -n "$GOC_FOR_TARGET"; then
13212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13213 $as_echo "$GOC_FOR_TARGET" >&6; }
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13216 $as_echo "no
" >&6; }
13221 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13223 set dummy ${ncn_progname}; ac_word=$2
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13225 $as_echo_n "checking
for $ac_word...
" >&6; }
13226 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13227 $as_echo_n "(cached
) " >&6
13229 if test -n "$GOC_FOR_TARGET"; then
13230 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13233 for as_dir in $PATH
13236 test -z "$as_dir" && as_dir=.
13237 for ac_exec_ext in '' $ac_executable_extensions; do
13238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13239 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13240 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13249 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13250 if test -n "$GOC_FOR_TARGET"; then
13251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13252 $as_echo "$GOC_FOR_TARGET" >&6; }
13254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13255 $as_echo "no
" >&6; }
13260 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13264 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13266 if test $build = $target ; then
13267 GOC_FOR_TARGET="$2"
13269 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13272 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13277 if test -n "$GDC_FOR_TARGET"; then
13278 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13279 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13280 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13283 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13284 for ncn_progname in gdc; do
13285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13286 set dummy ${ncn_progname}; ac_word=$2
13287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13288 $as_echo_n "checking
for $ac_word...
" >&6; }
13289 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13290 $as_echo_n "(cached
) " >&6
13292 if test -n "$GDC_FOR_TARGET"; then
13293 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13296 for as_dir in $PATH
13299 test -z "$as_dir" && as_dir=.
13300 for ac_exec_ext in '' $ac_executable_extensions; do
13301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13302 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13303 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13312 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13313 if test -n "$GDC_FOR_TARGET"; then
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13315 $as_echo "$GDC_FOR_TARGET" >&6; }
13317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13318 $as_echo "no
" >&6; }
13325 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13326 for ncn_progname in gdc; do
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13328 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13329 if test -x $with_build_time_tools/${ncn_progname}; then
13330 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13332 $as_echo "yes" >&6; }
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13336 $as_echo "no
" >&6; }
13341 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13342 for ncn_progname in gdc; do
13343 if test -n "$ncn_target_tool_prefix"; then
13344 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13345 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13347 $as_echo_n "checking
for $ac_word...
" >&6; }
13348 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13349 $as_echo_n "(cached
) " >&6
13351 if test -n "$GDC_FOR_TARGET"; then
13352 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13355 for as_dir in $PATH
13358 test -z "$as_dir" && as_dir=.
13359 for ac_exec_ext in '' $ac_executable_extensions; do
13360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13361 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13362 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13371 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13372 if test -n "$GDC_FOR_TARGET"; then
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13374 $as_echo "$GDC_FOR_TARGET" >&6; }
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13377 $as_echo "no
" >&6; }
13382 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13383 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13384 set dummy ${ncn_progname}; ac_word=$2
13385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13386 $as_echo_n "checking
for $ac_word...
" >&6; }
13387 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13388 $as_echo_n "(cached
) " >&6
13390 if test -n "$GDC_FOR_TARGET"; then
13391 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13394 for as_dir in $PATH
13397 test -z "$as_dir" && as_dir=.
13398 for ac_exec_ext in '' $ac_executable_extensions; do
13399 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13400 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13401 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13410 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13411 if test -n "$GDC_FOR_TARGET"; then
13412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13413 $as_echo "$GDC_FOR_TARGET" >&6; }
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13416 $as_echo "no
" >&6; }
13421 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13425 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13427 if test $build = $target ; then
13428 GDC_FOR_TARGET="$2"
13430 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13433 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13438 cat > conftest.c << \EOF
13443 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13444 have_gcc_for_target=yes
13446 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13447 have_gcc_for_target=no
13454 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13455 if test -n "$with_build_time_tools"; then
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
13457 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
13458 if test -x $with_build_time_tools/ar; then
13459 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13460 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
13462 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13465 $as_echo "no
" >&6; }
13467 elif test $build != $host && test $have_gcc_for_target = yes; then
13468 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13469 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13470 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13473 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13474 # Extract the first word of "ar", so it can be a program name with args.
13475 set dummy ar; ac_word=$2
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13477 $as_echo_n "checking
for $ac_word...
" >&6; }
13478 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13479 $as_echo_n "(cached
) " >&6
13481 case $AR_FOR_TARGET in
13483 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13487 for as_dir in $gcc_cv_tool_dirs
13490 test -z "$as_dir" && as_dir=.
13491 for ac_exec_ext in '' $ac_executable_extensions; do
13492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13493 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13494 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13504 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13505 if test -n "$AR_FOR_TARGET"; then
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13507 $as_echo "$AR_FOR_TARGET" >&6; }
13509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13510 $as_echo "no
" >&6; }
13515 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13518 if test -n "$AR_FOR_TARGET"; then
13519 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13520 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13521 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13524 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13525 for ncn_progname in ar; do
13526 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13527 set dummy ${ncn_progname}; ac_word=$2
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13529 $as_echo_n "checking
for $ac_word...
" >&6; }
13530 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13531 $as_echo_n "(cached
) " >&6
13533 if test -n "$AR_FOR_TARGET"; then
13534 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13537 for as_dir in $PATH
13540 test -z "$as_dir" && as_dir=.
13541 for ac_exec_ext in '' $ac_executable_extensions; do
13542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13543 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13544 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13553 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13554 if test -n "$AR_FOR_TARGET"; then
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13556 $as_echo "$AR_FOR_TARGET" >&6; }
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13559 $as_echo "no
" >&6; }
13566 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13567 for ncn_progname in ar; do
13568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13569 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13570 if test -x $with_build_time_tools/${ncn_progname}; then
13571 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13573 $as_echo "yes" >&6; }
13576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13577 $as_echo "no
" >&6; }
13582 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13583 for ncn_progname in ar; do
13584 if test -n "$ncn_target_tool_prefix"; then
13585 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13586 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13588 $as_echo_n "checking
for $ac_word...
" >&6; }
13589 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13590 $as_echo_n "(cached
) " >&6
13592 if test -n "$AR_FOR_TARGET"; then
13593 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13596 for as_dir in $PATH
13599 test -z "$as_dir" && as_dir=.
13600 for ac_exec_ext in '' $ac_executable_extensions; do
13601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13602 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13603 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13612 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13613 if test -n "$AR_FOR_TARGET"; then
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13615 $as_echo "$AR_FOR_TARGET" >&6; }
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13618 $as_echo "no
" >&6; }
13623 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13624 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13625 set dummy ${ncn_progname}; ac_word=$2
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13627 $as_echo_n "checking
for $ac_word...
" >&6; }
13628 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13629 $as_echo_n "(cached
) " >&6
13631 if test -n "$AR_FOR_TARGET"; then
13632 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13635 for as_dir in $PATH
13638 test -z "$as_dir" && as_dir=.
13639 for ac_exec_ext in '' $ac_executable_extensions; do
13640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13641 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13642 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13651 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13652 if test -n "$AR_FOR_TARGET"; then
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13654 $as_echo "$AR_FOR_TARGET" >&6; }
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13657 $as_echo "no
" >&6; }
13662 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13666 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13668 if test $build = $target ; then
13671 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
13674 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
13678 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13684 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13685 if test -n "$with_build_time_tools"; then
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
13687 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
13688 if test -x $with_build_time_tools/as; then
13689 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13690 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
13692 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13695 $as_echo "no
" >&6; }
13697 elif test $build != $host && test $have_gcc_for_target = yes; then
13698 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
13699 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13700 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13703 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13704 # Extract the first word of "as
", so it can be a program name with args.
13705 set dummy as; ac_word=$2
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13707 $as_echo_n "checking
for $ac_word...
" >&6; }
13708 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
13709 $as_echo_n "(cached
) " >&6
13711 case $AS_FOR_TARGET in
13713 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
13716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13717 for as_dir in $gcc_cv_tool_dirs
13720 test -z "$as_dir" && as_dir=.
13721 for ac_exec_ext in '' $ac_executable_extensions; do
13722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13723 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13724 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13734 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13735 if test -n "$AS_FOR_TARGET"; then
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
13737 $as_echo "$AS_FOR_TARGET" >&6; }
13739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13740 $as_echo "no
" >&6; }
13745 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13748 if test -n "$AS_FOR_TARGET"; then
13749 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
13750 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13751 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13754 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13755 for ncn_progname in as; do
13756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13757 set dummy ${ncn_progname}; ac_word=$2
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13759 $as_echo_n "checking
for $ac_word...
" >&6; }
13760 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13761 $as_echo_n "(cached
) " >&6
13763 if test -n "$AS_FOR_TARGET"; then
13764 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13767 for as_dir in $PATH
13770 test -z "$as_dir" && as_dir=.
13771 for ac_exec_ext in '' $ac_executable_extensions; do
13772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13773 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13774 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13783 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13784 if test -n "$AS_FOR_TARGET"; then
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
13786 $as_echo "$AS_FOR_TARGET" >&6; }
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13789 $as_echo "no
" >&6; }
13796 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
13797 for ncn_progname in as; do
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13799 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13800 if test -x $with_build_time_tools/${ncn_progname}; then
13801 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13803 $as_echo "yes" >&6; }
13806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13807 $as_echo "no
" >&6; }
13812 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
13813 for ncn_progname in as; do
13814 if test -n "$ncn_target_tool_prefix"; then
13815 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13816 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13818 $as_echo_n "checking
for $ac_word...
" >&6; }
13819 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13820 $as_echo_n "(cached
) " >&6
13822 if test -n "$AS_FOR_TARGET"; then
13823 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13826 for as_dir in $PATH
13829 test -z "$as_dir" && as_dir=.
13830 for ac_exec_ext in '' $ac_executable_extensions; do
13831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13832 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13833 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13842 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13843 if test -n "$AS_FOR_TARGET"; then
13844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
13845 $as_echo "$AS_FOR_TARGET" >&6; }
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13848 $as_echo "no
" >&6; }
13853 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
13854 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13855 set dummy ${ncn_progname}; ac_word=$2
13856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13857 $as_echo_n "checking
for $ac_word...
" >&6; }
13858 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13859 $as_echo_n "(cached
) " >&6
13861 if test -n "$AS_FOR_TARGET"; then
13862 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13865 for as_dir in $PATH
13868 test -z "$as_dir" && as_dir=.
13869 for ac_exec_ext in '' $ac_executable_extensions; do
13870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13871 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13872 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13881 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13882 if test -n "$AS_FOR_TARGET"; then
13883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
13884 $as_echo "$AS_FOR_TARGET" >&6; }
13886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13887 $as_echo "no
" >&6; }
13892 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
13896 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
13898 if test $build = $target ; then
13901 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
13904 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
13908 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13914 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13915 if test -n "$with_build_time_tools"; then
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
13917 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
13918 if test -x $with_build_time_tools/dlltool; then
13919 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
13920 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
13922 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
13924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13925 $as_echo "no
" >&6; }
13927 elif test $build != $host && test $have_gcc_for_target = yes; then
13928 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
13929 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
13930 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13933 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13934 # Extract the first word of "dlltool
", so it can be a program name with args.
13935 set dummy dlltool; ac_word=$2
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13937 $as_echo_n "checking
for $ac_word...
" >&6; }
13938 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
13939 $as_echo_n "(cached
) " >&6
13941 case $DLLTOOL_FOR_TARGET in
13943 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
13946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13947 for as_dir in $gcc_cv_tool_dirs
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_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13954 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13964 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
13965 if test -n "$DLLTOOL_FOR_TARGET"; then
13966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
13967 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13970 $as_echo "no
" >&6; }
13975 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
13978 if test -n "$DLLTOOL_FOR_TARGET"; then
13979 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
13980 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13981 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
13984 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
13985 for ncn_progname in dlltool; do
13986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13987 set dummy ${ncn_progname}; ac_word=$2
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13989 $as_echo_n "checking
for $ac_word...
" >&6; }
13990 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
13991 $as_echo_n "(cached
) " >&6
13993 if test -n "$DLLTOOL_FOR_TARGET"; then
13994 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
13996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13997 for as_dir in $PATH
14000 test -z "$as_dir" && as_dir=.
14001 for ac_exec_ext in '' $ac_executable_extensions; do
14002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14003 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14004 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14013 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14014 if test -n "$DLLTOOL_FOR_TARGET"; then
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14016 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14019 $as_echo "no
" >&6; }
14026 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14027 for ncn_progname in dlltool; do
14028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14029 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14030 if test -x $with_build_time_tools/${ncn_progname}; then
14031 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14033 $as_echo "yes" >&6; }
14036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14037 $as_echo "no
" >&6; }
14042 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14043 for ncn_progname in dlltool; do
14044 if test -n "$ncn_target_tool_prefix"; then
14045 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14046 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14048 $as_echo_n "checking
for $ac_word...
" >&6; }
14049 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14050 $as_echo_n "(cached
) " >&6
14052 if test -n "$DLLTOOL_FOR_TARGET"; then
14053 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14056 for as_dir in $PATH
14059 test -z "$as_dir" && as_dir=.
14060 for ac_exec_ext in '' $ac_executable_extensions; do
14061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14062 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14063 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14072 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14073 if test -n "$DLLTOOL_FOR_TARGET"; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14075 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14078 $as_echo "no
" >&6; }
14083 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14084 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14085 set dummy ${ncn_progname}; ac_word=$2
14086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14087 $as_echo_n "checking
for $ac_word...
" >&6; }
14088 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14089 $as_echo_n "(cached
) " >&6
14091 if test -n "$DLLTOOL_FOR_TARGET"; then
14092 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14095 for as_dir in $PATH
14098 test -z "$as_dir" && as_dir=.
14099 for ac_exec_ext in '' $ac_executable_extensions; do
14100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14101 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14102 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14111 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14112 if test -n "$DLLTOOL_FOR_TARGET"; then
14113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14114 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14117 $as_echo "no
" >&6; }
14122 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14126 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14128 if test $build = $target ; then
14129 DLLTOOL_FOR_TARGET="$2"
14131 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14134 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14138 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14144 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14145 if test -n "$with_build_time_tools"; then
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
14147 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
14148 if test -x $with_build_time_tools/ld; then
14149 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14150 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
14152 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14155 $as_echo "no
" >&6; }
14157 elif test $build != $host && test $have_gcc_for_target = yes; then
14158 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14159 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14160 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14163 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14164 # Extract the first word of "ld
", so it can be a program name with args.
14165 set dummy ld; ac_word=$2
14166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14167 $as_echo_n "checking
for $ac_word...
" >&6; }
14168 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14169 $as_echo_n "(cached
) " >&6
14171 case $LD_FOR_TARGET in
14173 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14177 for as_dir in $gcc_cv_tool_dirs
14180 test -z "$as_dir" && as_dir=.
14181 for ac_exec_ext in '' $ac_executable_extensions; do
14182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14183 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14184 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14194 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14195 if test -n "$LD_FOR_TARGET"; then
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14197 $as_echo "$LD_FOR_TARGET" >&6; }
14199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14200 $as_echo "no
" >&6; }
14205 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14208 if test -n "$LD_FOR_TARGET"; then
14209 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14210 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14211 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14214 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14215 for ncn_progname in ld; do
14216 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14217 set dummy ${ncn_progname}; ac_word=$2
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14219 $as_echo_n "checking
for $ac_word...
" >&6; }
14220 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14221 $as_echo_n "(cached
) " >&6
14223 if test -n "$LD_FOR_TARGET"; then
14224 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14227 for as_dir in $PATH
14230 test -z "$as_dir" && as_dir=.
14231 for ac_exec_ext in '' $ac_executable_extensions; do
14232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14233 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14234 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14243 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14244 if test -n "$LD_FOR_TARGET"; then
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14246 $as_echo "$LD_FOR_TARGET" >&6; }
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14249 $as_echo "no
" >&6; }
14256 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14257 for ncn_progname in ld; do
14258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14259 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14260 if test -x $with_build_time_tools/${ncn_progname}; then
14261 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14263 $as_echo "yes" >&6; }
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14267 $as_echo "no
" >&6; }
14272 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14273 for ncn_progname in ld; do
14274 if test -n "$ncn_target_tool_prefix"; then
14275 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14276 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14278 $as_echo_n "checking
for $ac_word...
" >&6; }
14279 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14280 $as_echo_n "(cached
) " >&6
14282 if test -n "$LD_FOR_TARGET"; then
14283 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14286 for as_dir in $PATH
14289 test -z "$as_dir" && as_dir=.
14290 for ac_exec_ext in '' $ac_executable_extensions; do
14291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14292 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14293 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14302 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14303 if test -n "$LD_FOR_TARGET"; then
14304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14305 $as_echo "$LD_FOR_TARGET" >&6; }
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14308 $as_echo "no
" >&6; }
14313 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14315 set dummy ${ncn_progname}; ac_word=$2
14316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14317 $as_echo_n "checking
for $ac_word...
" >&6; }
14318 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14319 $as_echo_n "(cached
) " >&6
14321 if test -n "$LD_FOR_TARGET"; then
14322 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14325 for as_dir in $PATH
14328 test -z "$as_dir" && as_dir=.
14329 for ac_exec_ext in '' $ac_executable_extensions; do
14330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14331 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14332 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14341 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14342 if test -n "$LD_FOR_TARGET"; then
14343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14344 $as_echo "$LD_FOR_TARGET" >&6; }
14346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14347 $as_echo "no
" >&6; }
14352 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14356 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14358 if test $build = $target ; then
14361 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14364 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14368 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14374 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14375 if test -n "$with_build_time_tools"; then
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
14377 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
14378 if test -x $with_build_time_tools/lipo; then
14379 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14380 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
14382 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14385 $as_echo "no
" >&6; }
14387 elif test $build != $host && test $have_gcc_for_target = yes; then
14388 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14389 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14390 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14393 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14394 # Extract the first word of "lipo
", so it can be a program name with args.
14395 set dummy lipo; ac_word=$2
14396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14397 $as_echo_n "checking
for $ac_word...
" >&6; }
14398 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14399 $as_echo_n "(cached
) " >&6
14401 case $LIPO_FOR_TARGET in
14403 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14407 for as_dir in $gcc_cv_tool_dirs
14410 test -z "$as_dir" && as_dir=.
14411 for ac_exec_ext in '' $ac_executable_extensions; do
14412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14413 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14414 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14424 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14425 if test -n "$LIPO_FOR_TARGET"; then
14426 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
14427 $as_echo "$LIPO_FOR_TARGET" >&6; }
14429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14430 $as_echo "no
" >&6; }
14435 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14438 if test -n "$LIPO_FOR_TARGET"; then
14439 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14440 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14441 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14444 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14445 for ncn_progname in lipo; do
14446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14447 set dummy ${ncn_progname}; ac_word=$2
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14449 $as_echo_n "checking
for $ac_word...
" >&6; }
14450 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14451 $as_echo_n "(cached
) " >&6
14453 if test -n "$LIPO_FOR_TARGET"; then
14454 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14457 for as_dir in $PATH
14460 test -z "$as_dir" && as_dir=.
14461 for ac_exec_ext in '' $ac_executable_extensions; do
14462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14463 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14464 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14473 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14474 if test -n "$LIPO_FOR_TARGET"; then
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
14476 $as_echo "$LIPO_FOR_TARGET" >&6; }
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14479 $as_echo "no
" >&6; }
14486 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
14487 for ncn_progname in lipo; do
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14489 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14490 if test -x $with_build_time_tools/${ncn_progname}; then
14491 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14493 $as_echo "yes" >&6; }
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14497 $as_echo "no
" >&6; }
14502 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
14503 for ncn_progname in lipo; do
14504 if test -n "$ncn_target_tool_prefix"; then
14505 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14506 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14508 $as_echo_n "checking
for $ac_word...
" >&6; }
14509 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14510 $as_echo_n "(cached
) " >&6
14512 if test -n "$LIPO_FOR_TARGET"; then
14513 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14516 for as_dir in $PATH
14519 test -z "$as_dir" && as_dir=.
14520 for ac_exec_ext in '' $ac_executable_extensions; do
14521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14522 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14523 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14532 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14533 if test -n "$LIPO_FOR_TARGET"; then
14534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
14535 $as_echo "$LIPO_FOR_TARGET" >&6; }
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14538 $as_echo "no
" >&6; }
14543 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
14544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14545 set dummy ${ncn_progname}; ac_word=$2
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14547 $as_echo_n "checking
for $ac_word...
" >&6; }
14548 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14549 $as_echo_n "(cached
) " >&6
14551 if test -n "$LIPO_FOR_TARGET"; then
14552 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14555 for as_dir in $PATH
14558 test -z "$as_dir" && as_dir=.
14559 for ac_exec_ext in '' $ac_executable_extensions; do
14560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14561 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14562 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14571 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14572 if test -n "$LIPO_FOR_TARGET"; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
14574 $as_echo "$LIPO_FOR_TARGET" >&6; }
14576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14577 $as_echo "no
" >&6; }
14582 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
14586 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
14588 if test $build = $target ; then
14589 LIPO_FOR_TARGET="$2"
14591 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
14594 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
14598 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14604 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14605 if test -n "$with_build_time_tools"; then
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
14607 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
14608 if test -x $with_build_time_tools/nm; then
14609 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
14610 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
14612 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14615 $as_echo "no
" >&6; }
14617 elif test $build != $host && test $have_gcc_for_target = yes; then
14618 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
14619 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
14620 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14623 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14624 # Extract the first word of "nm
", so it can be a program name with args.
14625 set dummy nm; ac_word=$2
14626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14627 $as_echo_n "checking
for $ac_word...
" >&6; }
14628 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
14629 $as_echo_n "(cached
) " >&6
14631 case $NM_FOR_TARGET in
14633 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
14636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14637 for as_dir in $gcc_cv_tool_dirs
14640 test -z "$as_dir" && as_dir=.
14641 for ac_exec_ext in '' $ac_executable_extensions; do
14642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14643 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14644 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14654 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
14655 if test -n "$NM_FOR_TARGET"; then
14656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
14657 $as_echo "$NM_FOR_TARGET" >&6; }
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14660 $as_echo "no
" >&6; }
14665 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14668 if test -n "$NM_FOR_TARGET"; then
14669 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
14670 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14671 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14674 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
14675 for ncn_progname in nm; do
14676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14677 set dummy ${ncn_progname}; ac_word=$2
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14679 $as_echo_n "checking
for $ac_word...
" >&6; }
14680 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14681 $as_echo_n "(cached
) " >&6
14683 if test -n "$NM_FOR_TARGET"; then
14684 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14687 for as_dir in $PATH
14690 test -z "$as_dir" && as_dir=.
14691 for ac_exec_ext in '' $ac_executable_extensions; do
14692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14693 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
14694 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14703 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14704 if test -n "$NM_FOR_TARGET"; then
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
14706 $as_echo "$NM_FOR_TARGET" >&6; }
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14709 $as_echo "no
" >&6; }
14716 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
14717 for ncn_progname in nm; do
14718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14719 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14720 if test -x $with_build_time_tools/${ncn_progname}; then
14721 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14723 $as_echo "yes" >&6; }
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14727 $as_echo "no
" >&6; }
14732 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
14733 for ncn_progname in nm; do
14734 if test -n "$ncn_target_tool_prefix"; then
14735 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14736 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14738 $as_echo_n "checking
for $ac_word...
" >&6; }
14739 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14740 $as_echo_n "(cached
) " >&6
14742 if test -n "$NM_FOR_TARGET"; then
14743 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14746 for as_dir in $PATH
14749 test -z "$as_dir" && as_dir=.
14750 for ac_exec_ext in '' $ac_executable_extensions; do
14751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14752 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14753 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14762 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14763 if test -n "$NM_FOR_TARGET"; then
14764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
14765 $as_echo "$NM_FOR_TARGET" >&6; }
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14768 $as_echo "no
" >&6; }
14773 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
14774 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14775 set dummy ${ncn_progname}; ac_word=$2
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14777 $as_echo_n "checking
for $ac_word...
" >&6; }
14778 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
14779 $as_echo_n "(cached
) " >&6
14781 if test -n "$NM_FOR_TARGET"; then
14782 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
14784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14785 for as_dir in $PATH
14788 test -z "$as_dir" && as_dir=.
14789 for ac_exec_ext in '' $ac_executable_extensions; do
14790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14791 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
14792 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14801 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
14802 if test -n "$NM_FOR_TARGET"; then
14803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
14804 $as_echo "$NM_FOR_TARGET" >&6; }
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14807 $as_echo "no
" >&6; }
14812 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
14816 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
14818 if test $build = $target ; then
14821 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
14824 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
14828 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
14834 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
14835 if test -n "$with_build_time_tools"; then
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
14837 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
14838 if test -x $with_build_time_tools/objcopy; then
14839 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
14840 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
14842 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
14844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14845 $as_echo "no
" >&6; }
14847 elif test $build != $host && test $have_gcc_for_target = yes; then
14848 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
14849 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
14850 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14853 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14854 # Extract the first word of "objcopy
", so it can be a program name with args.
14855 set dummy objcopy; ac_word=$2
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14857 $as_echo_n "checking
for $ac_word...
" >&6; }
14858 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
14859 $as_echo_n "(cached
) " >&6
14861 case $OBJCOPY_FOR_TARGET in
14863 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
14866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14867 for as_dir in $gcc_cv_tool_dirs
14870 test -z "$as_dir" && as_dir=.
14871 for ac_exec_ext in '' $ac_executable_extensions; do
14872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14873 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14874 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14884 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
14885 if test -n "$OBJCOPY_FOR_TARGET"; then
14886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
14887 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14890 $as_echo "no
" >&6; }
14895 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
14898 if test -n "$OBJCOPY_FOR_TARGET"; then
14899 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
14900 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14901 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14904 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14905 for ncn_progname in objcopy; do
14906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14907 set dummy ${ncn_progname}; ac_word=$2
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14909 $as_echo_n "checking
for $ac_word...
" >&6; }
14910 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14911 $as_echo_n "(cached
) " >&6
14913 if test -n "$OBJCOPY_FOR_TARGET"; then
14914 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14917 for as_dir in $PATH
14920 test -z "$as_dir" && as_dir=.
14921 for ac_exec_ext in '' $ac_executable_extensions; do
14922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14923 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
14924 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14933 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14934 if test -n "$OBJCOPY_FOR_TARGET"; then
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
14936 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14939 $as_echo "no
" >&6; }
14946 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
14947 for ncn_progname in objcopy; do
14948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14949 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14950 if test -x $with_build_time_tools/${ncn_progname}; then
14951 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14953 $as_echo "yes" >&6; }
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14957 $as_echo "no
" >&6; }
14962 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
14963 for ncn_progname in objcopy; do
14964 if test -n "$ncn_target_tool_prefix"; then
14965 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14966 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14968 $as_echo_n "checking
for $ac_word...
" >&6; }
14969 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
14970 $as_echo_n "(cached
) " >&6
14972 if test -n "$OBJCOPY_FOR_TARGET"; then
14973 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
14975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14976 for as_dir in $PATH
14979 test -z "$as_dir" && as_dir=.
14980 for ac_exec_ext in '' $ac_executable_extensions; do
14981 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14982 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14983 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14992 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
14993 if test -n "$OBJCOPY_FOR_TARGET"; then
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
14995 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14998 $as_echo "no
" >&6; }
15003 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15004 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15005 set dummy ${ncn_progname}; ac_word=$2
15006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15007 $as_echo_n "checking
for $ac_word...
" >&6; }
15008 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15009 $as_echo_n "(cached
) " >&6
15011 if test -n "$OBJCOPY_FOR_TARGET"; then
15012 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15015 for as_dir in $PATH
15018 test -z "$as_dir" && as_dir=.
15019 for ac_exec_ext in '' $ac_executable_extensions; do
15020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15021 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15022 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15031 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15032 if test -n "$OBJCOPY_FOR_TARGET"; then
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15034 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15037 $as_echo "no
" >&6; }
15042 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15046 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15048 if test $build = $target ; then
15049 OBJCOPY_FOR_TARGET="$2"
15051 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15054 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15058 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15064 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15065 if test -n "$with_build_time_tools"; then
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
15067 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
15068 if test -x $with_build_time_tools/objdump; then
15069 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15070 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15072 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15075 $as_echo "no
" >&6; }
15077 elif test $build != $host && test $have_gcc_for_target = yes; then
15078 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15079 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15080 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15083 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15084 # Extract the first word of "objdump
", so it can be a program name with args.
15085 set dummy objdump; ac_word=$2
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15087 $as_echo_n "checking
for $ac_word...
" >&6; }
15088 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15089 $as_echo_n "(cached
) " >&6
15091 case $OBJDUMP_FOR_TARGET in
15093 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15097 for as_dir in $gcc_cv_tool_dirs
15100 test -z "$as_dir" && as_dir=.
15101 for ac_exec_ext in '' $ac_executable_extensions; do
15102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15103 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15104 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15114 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15115 if test -n "$OBJDUMP_FOR_TARGET"; then
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15117 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15120 $as_echo "no
" >&6; }
15125 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15128 if test -n "$OBJDUMP_FOR_TARGET"; then
15129 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15130 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15131 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15134 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15135 for ncn_progname in objdump; do
15136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15137 set dummy ${ncn_progname}; ac_word=$2
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15139 $as_echo_n "checking
for $ac_word...
" >&6; }
15140 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15141 $as_echo_n "(cached
) " >&6
15143 if test -n "$OBJDUMP_FOR_TARGET"; then
15144 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15147 for as_dir in $PATH
15150 test -z "$as_dir" && as_dir=.
15151 for ac_exec_ext in '' $ac_executable_extensions; do
15152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15153 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15154 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15163 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15164 if test -n "$OBJDUMP_FOR_TARGET"; then
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15166 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15169 $as_echo "no
" >&6; }
15176 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15177 for ncn_progname in objdump; do
15178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15179 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15180 if test -x $with_build_time_tools/${ncn_progname}; then
15181 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15183 $as_echo "yes" >&6; }
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15187 $as_echo "no
" >&6; }
15192 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15193 for ncn_progname in objdump; do
15194 if test -n "$ncn_target_tool_prefix"; then
15195 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15196 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15198 $as_echo_n "checking
for $ac_word...
" >&6; }
15199 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15200 $as_echo_n "(cached
) " >&6
15202 if test -n "$OBJDUMP_FOR_TARGET"; then
15203 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15206 for as_dir in $PATH
15209 test -z "$as_dir" && as_dir=.
15210 for ac_exec_ext in '' $ac_executable_extensions; do
15211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15212 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15213 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15222 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15223 if test -n "$OBJDUMP_FOR_TARGET"; then
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15225 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15228 $as_echo "no
" >&6; }
15233 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15235 set dummy ${ncn_progname}; ac_word=$2
15236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15237 $as_echo_n "checking
for $ac_word...
" >&6; }
15238 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15239 $as_echo_n "(cached
) " >&6
15241 if test -n "$OBJDUMP_FOR_TARGET"; then
15242 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15245 for as_dir in $PATH
15248 test -z "$as_dir" && as_dir=.
15249 for ac_exec_ext in '' $ac_executable_extensions; do
15250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15251 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15252 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15261 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15262 if test -n "$OBJDUMP_FOR_TARGET"; then
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15264 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15267 $as_echo "no
" >&6; }
15272 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15276 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15278 if test $build = $target ; then
15279 OBJDUMP_FOR_TARGET="$2"
15281 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15284 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15288 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15294 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15295 if test -n "$with_build_time_tools"; then
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
15297 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
15298 if test -x $with_build_time_tools/otool; then
15299 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15300 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15302 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15305 $as_echo "no
" >&6; }
15307 elif test $build != $host && test $have_gcc_for_target = yes; then
15308 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15309 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15310 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15313 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15314 # Extract the first word of "otool
", so it can be a program name with args.
15315 set dummy otool; ac_word=$2
15316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15317 $as_echo_n "checking
for $ac_word...
" >&6; }
15318 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15319 $as_echo_n "(cached
) " >&6
15321 case $OTOOL_FOR_TARGET in
15323 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15327 for as_dir in $gcc_cv_tool_dirs
15330 test -z "$as_dir" && as_dir=.
15331 for ac_exec_ext in '' $ac_executable_extensions; do
15332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15333 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15334 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15344 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15345 if test -n "$OTOOL_FOR_TARGET"; then
15346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
15347 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15350 $as_echo "no
" >&6; }
15355 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15358 if test -n "$OTOOL_FOR_TARGET"; then
15359 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15360 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15361 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15364 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15365 for ncn_progname in otool; do
15366 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15367 set dummy ${ncn_progname}; ac_word=$2
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15369 $as_echo_n "checking
for $ac_word...
" >&6; }
15370 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15371 $as_echo_n "(cached
) " >&6
15373 if test -n "$OTOOL_FOR_TARGET"; then
15374 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15377 for as_dir in $PATH
15380 test -z "$as_dir" && as_dir=.
15381 for ac_exec_ext in '' $ac_executable_extensions; do
15382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15383 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15384 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15393 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15394 if test -n "$OTOOL_FOR_TARGET"; then
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
15396 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15399 $as_echo "no
" >&6; }
15406 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15407 for ncn_progname in otool; do
15408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15409 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15410 if test -x $with_build_time_tools/${ncn_progname}; then
15411 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15413 $as_echo "yes" >&6; }
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15417 $as_echo "no
" >&6; }
15422 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15423 for ncn_progname in otool; do
15424 if test -n "$ncn_target_tool_prefix"; then
15425 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15426 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15428 $as_echo_n "checking
for $ac_word...
" >&6; }
15429 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15430 $as_echo_n "(cached
) " >&6
15432 if test -n "$OTOOL_FOR_TARGET"; then
15433 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15436 for as_dir in $PATH
15439 test -z "$as_dir" && as_dir=.
15440 for ac_exec_ext in '' $ac_executable_extensions; do
15441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15442 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15443 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15452 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15453 if test -n "$OTOOL_FOR_TARGET"; then
15454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
15455 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15458 $as_echo "no
" >&6; }
15463 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15464 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15465 set dummy ${ncn_progname}; ac_word=$2
15466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15467 $as_echo_n "checking
for $ac_word...
" >&6; }
15468 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15469 $as_echo_n "(cached
) " >&6
15471 if test -n "$OTOOL_FOR_TARGET"; then
15472 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15475 for as_dir in $PATH
15478 test -z "$as_dir" && as_dir=.
15479 for ac_exec_ext in '' $ac_executable_extensions; do
15480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15481 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15482 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15491 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15492 if test -n "$OTOOL_FOR_TARGET"; then
15493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
15494 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15497 $as_echo "no
" >&6; }
15502 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
15506 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
15508 if test $build = $target ; then
15509 OTOOL_FOR_TARGET="$2"
15511 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15514 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
15518 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15524 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15525 if test -n "$with_build_time_tools"; then
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
15527 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
15528 if test -x $with_build_time_tools/ranlib; then
15529 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
15530 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
15532 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
15534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15535 $as_echo "no
" >&6; }
15537 elif test $build != $host && test $have_gcc_for_target = yes; then
15538 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
15539 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
15540 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15543 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15544 # Extract the first word of "ranlib
", so it can be a program name with args.
15545 set dummy ranlib; ac_word=$2
15546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15547 $as_echo_n "checking
for $ac_word...
" >&6; }
15548 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
15549 $as_echo_n "(cached
) " >&6
15551 case $RANLIB_FOR_TARGET in
15553 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
15556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15557 for as_dir in $gcc_cv_tool_dirs
15560 test -z "$as_dir" && as_dir=.
15561 for ac_exec_ext in '' $ac_executable_extensions; do
15562 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15563 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15564 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15574 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15575 if test -n "$RANLIB_FOR_TARGET"; then
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
15577 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15580 $as_echo "no
" >&6; }
15585 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15588 if test -n "$RANLIB_FOR_TARGET"; then
15589 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15590 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15591 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15594 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15595 for ncn_progname in ranlib; do
15596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15597 set dummy ${ncn_progname}; ac_word=$2
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15599 $as_echo_n "checking
for $ac_word...
" >&6; }
15600 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15601 $as_echo_n "(cached
) " >&6
15603 if test -n "$RANLIB_FOR_TARGET"; then
15604 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15607 for as_dir in $PATH
15610 test -z "$as_dir" && as_dir=.
15611 for ac_exec_ext in '' $ac_executable_extensions; do
15612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15613 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15614 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15623 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15624 if test -n "$RANLIB_FOR_TARGET"; then
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
15626 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15629 $as_echo "no
" >&6; }
15636 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
15637 for ncn_progname in ranlib; do
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15639 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15640 if test -x $with_build_time_tools/${ncn_progname}; then
15641 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15643 $as_echo "yes" >&6; }
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15647 $as_echo "no
" >&6; }
15652 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15653 for ncn_progname in ranlib; do
15654 if test -n "$ncn_target_tool_prefix"; then
15655 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15656 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15658 $as_echo_n "checking
for $ac_word...
" >&6; }
15659 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15660 $as_echo_n "(cached
) " >&6
15662 if test -n "$RANLIB_FOR_TARGET"; then
15663 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15665 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15666 for as_dir in $PATH
15669 test -z "$as_dir" && as_dir=.
15670 for ac_exec_ext in '' $ac_executable_extensions; do
15671 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15672 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15673 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15682 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15683 if test -n "$RANLIB_FOR_TARGET"; then
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
15685 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15688 $as_echo "no
" >&6; }
15693 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
15694 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15695 set dummy ${ncn_progname}; ac_word=$2
15696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15697 $as_echo_n "checking
for $ac_word...
" >&6; }
15698 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15699 $as_echo_n "(cached
) " >&6
15701 if test -n "$RANLIB_FOR_TARGET"; then
15702 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15705 for as_dir in $PATH
15708 test -z "$as_dir" && as_dir=.
15709 for ac_exec_ext in '' $ac_executable_extensions; do
15710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15711 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15712 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15721 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15722 if test -n "$RANLIB_FOR_TARGET"; then
15723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
15724 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15727 $as_echo "no
" >&6; }
15732 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
15736 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
15738 if test $build = $target ; then
15739 RANLIB_FOR_TARGET="$2"
15741 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
15744 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
15748 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15754 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15755 if test -n "$with_build_time_tools"; then
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
15757 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
15758 if test -x $with_build_time_tools/readelf; then
15759 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
15760 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
15762 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
15764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15765 $as_echo "no
" >&6; }
15767 elif test $build != $host && test $have_gcc_for_target = yes; then
15768 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
15769 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
15770 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
15773 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15774 # Extract the first word of "readelf
", so it can be a program name with args.
15775 set dummy readelf; ac_word=$2
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15777 $as_echo_n "checking
for $ac_word...
" >&6; }
15778 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
15779 $as_echo_n "(cached
) " >&6
15781 case $READELF_FOR_TARGET in
15783 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
15786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15787 for as_dir in $gcc_cv_tool_dirs
15790 test -z "$as_dir" && as_dir=.
15791 for ac_exec_ext in '' $ac_executable_extensions; do
15792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15793 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15794 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15804 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
15805 if test -n "$READELF_FOR_TARGET"; then
15806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
15807 $as_echo "$READELF_FOR_TARGET" >&6; }
15809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15810 $as_echo "no
" >&6; }
15815 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
15818 if test -n "$READELF_FOR_TARGET"; then
15819 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
15820 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
15821 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15824 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
15825 for ncn_progname in readelf; do
15826 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15827 set dummy ${ncn_progname}; ac_word=$2
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15829 $as_echo_n "checking
for $ac_word...
" >&6; }
15830 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15831 $as_echo_n "(cached
) " >&6
15833 if test -n "$READELF_FOR_TARGET"; then
15834 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15837 for as_dir in $PATH
15840 test -z "$as_dir" && as_dir=.
15841 for ac_exec_ext in '' $ac_executable_extensions; do
15842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15843 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
15844 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15853 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15854 if test -n "$READELF_FOR_TARGET"; then
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
15856 $as_echo "$READELF_FOR_TARGET" >&6; }
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15859 $as_echo "no
" >&6; }
15866 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
15867 for ncn_progname in readelf; do
15868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15869 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15870 if test -x $with_build_time_tools/${ncn_progname}; then
15871 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15873 $as_echo "yes" >&6; }
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15877 $as_echo "no
" >&6; }
15882 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
15883 for ncn_progname in readelf; do
15884 if test -n "$ncn_target_tool_prefix"; then
15885 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15886 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15888 $as_echo_n "checking
for $ac_word...
" >&6; }
15889 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15890 $as_echo_n "(cached
) " >&6
15892 if test -n "$READELF_FOR_TARGET"; then
15893 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15896 for as_dir in $PATH
15899 test -z "$as_dir" && as_dir=.
15900 for ac_exec_ext in '' $ac_executable_extensions; do
15901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15902 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15903 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15912 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15913 if test -n "$READELF_FOR_TARGET"; then
15914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
15915 $as_echo "$READELF_FOR_TARGET" >&6; }
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15918 $as_echo "no
" >&6; }
15923 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
15924 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15925 set dummy ${ncn_progname}; ac_word=$2
15926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15927 $as_echo_n "checking
for $ac_word...
" >&6; }
15928 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
15929 $as_echo_n "(cached
) " >&6
15931 if test -n "$READELF_FOR_TARGET"; then
15932 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
15934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15935 for as_dir in $PATH
15938 test -z "$as_dir" && as_dir=.
15939 for ac_exec_ext in '' $ac_executable_extensions; do
15940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15941 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
15942 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15951 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
15952 if test -n "$READELF_FOR_TARGET"; then
15953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
15954 $as_echo "$READELF_FOR_TARGET" >&6; }
15956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15957 $as_echo "no
" >&6; }
15962 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
15966 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
15968 if test $build = $target ; then
15969 READELF_FOR_TARGET="$2"
15971 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
15974 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
15978 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
15984 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
15985 if test -n "$with_build_time_tools"; then
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
15987 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
15988 if test -x $with_build_time_tools/strip; then
15989 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
15990 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
15992 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15995 $as_echo "no
" >&6; }
15997 elif test $build != $host && test $have_gcc_for_target = yes; then
15998 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
15999 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16000 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16003 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16004 # Extract the first word of "strip
", so it can be a program name with args.
16005 set dummy strip; ac_word=$2
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16007 $as_echo_n "checking
for $ac_word...
" >&6; }
16008 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16009 $as_echo_n "(cached
) " >&6
16011 case $STRIP_FOR_TARGET in
16013 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16017 for as_dir in $gcc_cv_tool_dirs
16020 test -z "$as_dir" && as_dir=.
16021 for ac_exec_ext in '' $ac_executable_extensions; do
16022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16023 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16024 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16034 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16035 if test -n "$STRIP_FOR_TARGET"; then
16036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16037 $as_echo "$STRIP_FOR_TARGET" >&6; }
16039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16040 $as_echo "no
" >&6; }
16045 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16048 if test -n "$STRIP_FOR_TARGET"; then
16049 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16050 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16051 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16054 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16055 for ncn_progname in strip; do
16056 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16057 set dummy ${ncn_progname}; ac_word=$2
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16059 $as_echo_n "checking
for $ac_word...
" >&6; }
16060 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16061 $as_echo_n "(cached
) " >&6
16063 if test -n "$STRIP_FOR_TARGET"; then
16064 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16067 for as_dir in $PATH
16070 test -z "$as_dir" && as_dir=.
16071 for ac_exec_ext in '' $ac_executable_extensions; do
16072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16073 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16074 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16083 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16084 if test -n "$STRIP_FOR_TARGET"; then
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16086 $as_echo "$STRIP_FOR_TARGET" >&6; }
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16089 $as_echo "no
" >&6; }
16096 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16097 for ncn_progname in strip; do
16098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16099 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16100 if test -x $with_build_time_tools/${ncn_progname}; then
16101 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16103 $as_echo "yes" >&6; }
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16107 $as_echo "no
" >&6; }
16112 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16113 for ncn_progname in strip; do
16114 if test -n "$ncn_target_tool_prefix"; then
16115 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16116 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16118 $as_echo_n "checking
for $ac_word...
" >&6; }
16119 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16120 $as_echo_n "(cached
) " >&6
16122 if test -n "$STRIP_FOR_TARGET"; then
16123 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16126 for as_dir in $PATH
16129 test -z "$as_dir" && as_dir=.
16130 for ac_exec_ext in '' $ac_executable_extensions; do
16131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16132 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16133 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16142 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16143 if test -n "$STRIP_FOR_TARGET"; then
16144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16145 $as_echo "$STRIP_FOR_TARGET" >&6; }
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16148 $as_echo "no
" >&6; }
16153 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16154 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16155 set dummy ${ncn_progname}; ac_word=$2
16156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16157 $as_echo_n "checking
for $ac_word...
" >&6; }
16158 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16159 $as_echo_n "(cached
) " >&6
16161 if test -n "$STRIP_FOR_TARGET"; then
16162 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16165 for as_dir in $PATH
16168 test -z "$as_dir" && as_dir=.
16169 for ac_exec_ext in '' $ac_executable_extensions; do
16170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16171 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16172 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16181 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16182 if test -n "$STRIP_FOR_TARGET"; then
16183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16184 $as_echo "$STRIP_FOR_TARGET" >&6; }
16186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16187 $as_echo "no
" >&6; }
16192 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16196 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16198 if test $build = $target ; then
16199 STRIP_FOR_TARGET="$2"
16201 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16204 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16208 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16214 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16215 if test -n "$with_build_time_tools"; then
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
16217 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
16218 if test -x $with_build_time_tools/windres; then
16219 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16220 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16222 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16225 $as_echo "no
" >&6; }
16227 elif test $build != $host && test $have_gcc_for_target = yes; then
16228 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16229 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16230 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16233 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16234 # Extract the first word of "windres
", so it can be a program name with args.
16235 set dummy windres; ac_word=$2
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16237 $as_echo_n "checking
for $ac_word...
" >&6; }
16238 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16239 $as_echo_n "(cached
) " >&6
16241 case $WINDRES_FOR_TARGET in
16243 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16247 for as_dir in $gcc_cv_tool_dirs
16250 test -z "$as_dir" && as_dir=.
16251 for ac_exec_ext in '' $ac_executable_extensions; do
16252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16253 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16254 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16264 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16265 if test -n "$WINDRES_FOR_TARGET"; then
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16267 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16270 $as_echo "no
" >&6; }
16275 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16278 if test -n "$WINDRES_FOR_TARGET"; then
16279 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16280 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16281 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16284 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16285 for ncn_progname in windres; do
16286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16287 set dummy ${ncn_progname}; ac_word=$2
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16289 $as_echo_n "checking
for $ac_word...
" >&6; }
16290 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16291 $as_echo_n "(cached
) " >&6
16293 if test -n "$WINDRES_FOR_TARGET"; then
16294 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16297 for as_dir in $PATH
16300 test -z "$as_dir" && as_dir=.
16301 for ac_exec_ext in '' $ac_executable_extensions; do
16302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16303 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16304 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16313 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16314 if test -n "$WINDRES_FOR_TARGET"; then
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16316 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16319 $as_echo "no
" >&6; }
16326 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16327 for ncn_progname in windres; do
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16329 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16330 if test -x $with_build_time_tools/${ncn_progname}; then
16331 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16333 $as_echo "yes" >&6; }
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16337 $as_echo "no
" >&6; }
16342 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16343 for ncn_progname in windres; do
16344 if test -n "$ncn_target_tool_prefix"; then
16345 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16346 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16348 $as_echo_n "checking
for $ac_word...
" >&6; }
16349 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16350 $as_echo_n "(cached
) " >&6
16352 if test -n "$WINDRES_FOR_TARGET"; then
16353 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16356 for as_dir in $PATH
16359 test -z "$as_dir" && as_dir=.
16360 for ac_exec_ext in '' $ac_executable_extensions; do
16361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16362 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16363 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16372 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16373 if test -n "$WINDRES_FOR_TARGET"; then
16374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16375 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16378 $as_echo "no
" >&6; }
16383 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16384 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16385 set dummy ${ncn_progname}; ac_word=$2
16386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16387 $as_echo_n "checking
for $ac_word...
" >&6; }
16388 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16389 $as_echo_n "(cached
) " >&6
16391 if test -n "$WINDRES_FOR_TARGET"; then
16392 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16395 for as_dir in $PATH
16398 test -z "$as_dir" && as_dir=.
16399 for ac_exec_ext in '' $ac_executable_extensions; do
16400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16401 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16402 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16411 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16412 if test -n "$WINDRES_FOR_TARGET"; then
16413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16414 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16417 $as_echo "no
" >&6; }
16422 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16426 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16428 if test $build = $target ; then
16429 WINDRES_FOR_TARGET="$2"
16431 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16434 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
16438 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16444 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16445 if test -n "$with_build_time_tools"; then
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
16447 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
16448 if test -x $with_build_time_tools/windmc; then
16449 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16450 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16452 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
16454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16455 $as_echo "no
" >&6; }
16457 elif test $build != $host && test $have_gcc_for_target = yes; then
16458 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
16459 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16460 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16463 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16464 # Extract the first word of "windmc
", so it can be a program name with args.
16465 set dummy windmc; ac_word=$2
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16467 $as_echo_n "checking
for $ac_word...
" >&6; }
16468 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
16469 $as_echo_n "(cached
) " >&6
16471 case $WINDMC_FOR_TARGET in
16473 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16477 for as_dir in $gcc_cv_tool_dirs
16480 test -z "$as_dir" && as_dir=.
16481 for ac_exec_ext in '' $ac_executable_extensions; do
16482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16483 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16484 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16494 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16495 if test -n "$WINDMC_FOR_TARGET"; then
16496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
16497 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16500 $as_echo "no
" >&6; }
16505 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16508 if test -n "$WINDMC_FOR_TARGET"; then
16509 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16510 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16511 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16514 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16515 for ncn_progname in windmc; do
16516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16517 set dummy ${ncn_progname}; ac_word=$2
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16519 $as_echo_n "checking
for $ac_word...
" >&6; }
16520 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16521 $as_echo_n "(cached
) " >&6
16523 if test -n "$WINDMC_FOR_TARGET"; then
16524 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16527 for as_dir in $PATH
16530 test -z "$as_dir" && as_dir=.
16531 for ac_exec_ext in '' $ac_executable_extensions; do
16532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16533 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16534 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16543 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16544 if test -n "$WINDMC_FOR_TARGET"; then
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
16546 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16549 $as_echo "no
" >&6; }
16556 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
16557 for ncn_progname in windmc; do
16558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16559 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16560 if test -x $with_build_time_tools/${ncn_progname}; then
16561 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16563 $as_echo "yes" >&6; }
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16567 $as_echo "no
" >&6; }
16572 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16573 for ncn_progname in windmc; do
16574 if test -n "$ncn_target_tool_prefix"; then
16575 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16576 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16578 $as_echo_n "checking
for $ac_word...
" >&6; }
16579 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16580 $as_echo_n "(cached
) " >&6
16582 if test -n "$WINDMC_FOR_TARGET"; then
16583 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16586 for as_dir in $PATH
16589 test -z "$as_dir" && as_dir=.
16590 for ac_exec_ext in '' $ac_executable_extensions; do
16591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16592 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16593 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16602 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16603 if test -n "$WINDMC_FOR_TARGET"; then
16604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
16605 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16608 $as_echo "no
" >&6; }
16613 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
16614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16615 set dummy ${ncn_progname}; ac_word=$2
16616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16617 $as_echo_n "checking
for $ac_word...
" >&6; }
16618 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16619 $as_echo_n "(cached
) " >&6
16621 if test -n "$WINDMC_FOR_TARGET"; then
16622 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16625 for as_dir in $PATH
16628 test -z "$as_dir" && as_dir=.
16629 for ac_exec_ext in '' $ac_executable_extensions; do
16630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16631 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16632 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16641 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16642 if test -n "$WINDMC_FOR_TARGET"; then
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
16644 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16647 $as_echo "no
" >&6; }
16652 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
16656 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
16658 if test $build = $target ; then
16659 WINDMC_FOR_TARGET="$2"
16661 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
16664 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
16668 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16672 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
16674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
16675 $as_echo_n "checking where to
find the target
ar...
" >&6; }
16676 if test "x
${build}" != "x
${host}" ; then
16677 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
16678 # We already found the complete path
16679 ac_dir=`dirname $AR_FOR_TARGET`
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
16681 $as_echo "pre-installed
in $ac_dir" >&6; }
16683 # Canadian cross, just use what we found
16684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
16685 $as_echo "pre-installed
" >&6; }
16689 case " ${configdirs} " in
16694 if test $ok = yes; then
16695 # An in-tree tool is available and we can use it
16696 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
16698 $as_echo "just compiled
" >&6; }
16699 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
16700 # We already found the complete path
16701 ac_dir=`dirname $AR_FOR_TARGET`
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
16703 $as_echo "pre-installed
in $ac_dir" >&6; }
16704 elif test "x
$target" = "x
$host"; then
16705 # We can use an host tool
16706 AR_FOR_TARGET='$(AR)'
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
16708 $as_echo "host tool
" >&6; }
16710 # We need a cross tool
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
16712 $as_echo "pre-installed
" >&6; }
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
16717 $as_echo_n "checking where to
find the target as...
" >&6; }
16718 if test "x
${build}" != "x
${host}" ; then
16719 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
16720 # We already found the complete path
16721 ac_dir=`dirname $AS_FOR_TARGET`
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
16723 $as_echo "pre-installed
in $ac_dir" >&6; }
16725 # Canadian cross, just use what we found
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
16727 $as_echo "pre-installed
" >&6; }
16731 case " ${configdirs} " in
16736 if test $ok = yes; then
16737 # An in-tree tool is available and we can use it
16738 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
16740 $as_echo "just compiled
" >&6; }
16741 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
16742 # We already found the complete path
16743 ac_dir=`dirname $AS_FOR_TARGET`
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
16745 $as_echo "pre-installed
in $ac_dir" >&6; }
16746 elif test "x
$target" = "x
$host"; then
16747 # We can use an host tool
16748 AS_FOR_TARGET='$(AS)'
16749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
16750 $as_echo "host tool
" >&6; }
16752 # We need a cross tool
16753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
16754 $as_echo "pre-installed
" >&6; }
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
16759 $as_echo_n "checking where to
find the target cc...
" >&6; }
16760 if test "x
${build}" != "x
${host}" ; then
16761 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
16762 # We already found the complete path
16763 ac_dir=`dirname $CC_FOR_TARGET`
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
16765 $as_echo "pre-installed
in $ac_dir" >&6; }
16767 # Canadian cross, just use what we found
16768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
16769 $as_echo "pre-installed
" >&6; }
16773 case " ${configdirs} " in
16778 if test $ok = yes; then
16779 # An in-tree tool is available and we can use it
16780 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
16782 $as_echo "just compiled
" >&6; }
16783 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
16784 # We already found the complete path
16785 ac_dir=`dirname $CC_FOR_TARGET`
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
16787 $as_echo "pre-installed
in $ac_dir" >&6; }
16788 elif test "x
$target" = "x
$host"; then
16789 # We can use an host tool
16790 CC_FOR_TARGET='$(CC)'
16791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
16792 $as_echo "host tool
" >&6; }
16794 # We need a cross tool
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
16796 $as_echo "pre-installed
" >&6; }
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
16801 $as_echo_n "checking where to
find the target c
++...
" >&6; }
16802 if test "x
${build}" != "x
${host}" ; then
16803 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
16804 # We already found the complete path
16805 ac_dir=`dirname $CXX_FOR_TARGET`
16806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
16807 $as_echo "pre-installed
in $ac_dir" >&6; }
16809 # Canadian cross, just use what we found
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
16811 $as_echo "pre-installed
" >&6; }
16815 case " ${configdirs} " in
16819 case ,${enable_languages}, in
16823 if test $ok = yes; then
16824 # An in-tree tool is available and we can use it
16825 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'
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
16827 $as_echo "just compiled
" >&6; }
16828 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
16829 # We already found the complete path
16830 ac_dir=`dirname $CXX_FOR_TARGET`
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
16832 $as_echo "pre-installed
in $ac_dir" >&6; }
16833 elif test "x
$target" = "x
$host"; then
16834 # We can use an host tool
16835 CXX_FOR_TARGET='$(CXX)'
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
16837 $as_echo "host tool
" >&6; }
16839 # We need a cross tool
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
16841 $as_echo "pre-installed
" >&6; }
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
16846 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
16847 if test "x
${build}" != "x
${host}" ; then
16848 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
16849 # We already found the complete path
16850 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
16851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
16852 $as_echo "pre-installed
in $ac_dir" >&6; }
16854 # Canadian cross, just use what we found
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
16856 $as_echo "pre-installed
" >&6; }
16860 case " ${configdirs} " in
16864 case ,${enable_languages}, in
16868 if test $ok = yes; then
16869 # An in-tree tool is available and we can use it
16870 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'
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
16872 $as_echo "just compiled
" >&6; }
16873 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
16874 # We already found the complete path
16875 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
16877 $as_echo "pre-installed
in $ac_dir" >&6; }
16878 elif test "x
$target" = "x
$host"; then
16879 # We can use an host tool
16880 RAW_CXX_FOR_TARGET='$(CXX)'
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
16882 $as_echo "host tool
" >&6; }
16884 # We need a cross tool
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
16886 $as_echo "pre-installed
" >&6; }
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
16891 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
16892 if test "x
${build}" != "x
${host}" ; then
16893 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
16894 # We already found the complete path
16895 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
16897 $as_echo "pre-installed
in $ac_dir" >&6; }
16899 # Canadian cross, just use what we found
16900 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
16901 $as_echo "pre-installed
" >&6; }
16905 case " ${configdirs} " in
16910 if test $ok = yes; then
16911 # An in-tree tool is available and we can use it
16912 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
16914 $as_echo "just compiled
" >&6; }
16915 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
16916 # We already found the complete path
16917 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
16919 $as_echo "pre-installed
in $ac_dir" >&6; }
16920 elif test "x
$target" = "x
$host"; then
16921 # We can use an host tool
16922 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
16924 $as_echo "host tool
" >&6; }
16926 # We need a cross tool
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
16928 $as_echo "pre-installed
" >&6; }
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
16933 $as_echo_n "checking where to
find the target gcc...
" >&6; }
16934 if test "x
${build}" != "x
${host}" ; then
16935 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
16936 # We already found the complete path
16937 ac_dir=`dirname $GCC_FOR_TARGET`
16938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
16939 $as_echo "pre-installed
in $ac_dir" >&6; }
16941 # Canadian cross, just use what we found
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
16943 $as_echo "pre-installed
" >&6; }
16947 case " ${configdirs} " in
16952 if test $ok = yes; then
16953 # An in-tree tool is available and we can use it
16954 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
16956 $as_echo "just compiled
" >&6; }
16957 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
16958 # We already found the complete path
16959 ac_dir=`dirname $GCC_FOR_TARGET`
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
16961 $as_echo "pre-installed
in $ac_dir" >&6; }
16962 elif test "x
$target" = "x
$host"; then
16963 # We can use an host tool
16964 GCC_FOR_TARGET='$()'
16965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
16966 $as_echo "host tool
" >&6; }
16968 # We need a cross tool
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
16970 $as_echo "pre-installed
" >&6; }
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
16975 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
16976 if test "x
${build}" != "x
${host}" ; then
16977 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
16978 # We already found the complete path
16979 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
16981 $as_echo "pre-installed
in $ac_dir" >&6; }
16983 # Canadian cross, just use what we found
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
16985 $as_echo "pre-installed
" >&6; }
16989 case " ${configdirs} " in
16993 case ,${enable_languages}, in
16997 if test $ok = yes; then
16998 # An in-tree tool is available and we can use it
16999 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17001 $as_echo "just compiled
" >&6; }
17002 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17003 # We already found the complete path
17004 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17006 $as_echo "pre-installed
in $ac_dir" >&6; }
17007 elif test "x
$target" = "x
$host"; then
17008 # We can use an host tool
17009 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17011 $as_echo "host tool
" >&6; }
17013 # We need a cross tool
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17015 $as_echo "pre-installed
" >&6; }
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
17020 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
17021 if test "x
${build}" != "x
${host}" ; then
17022 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17023 # We already found the complete path
17024 ac_dir=`dirname $GOC_FOR_TARGET`
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17026 $as_echo "pre-installed
in $ac_dir" >&6; }
17028 # Canadian cross, just use what we found
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17030 $as_echo "pre-installed
" >&6; }
17034 case " ${configdirs} " in
17038 case ,${enable_languages}, in
17042 if test $ok = yes; then
17043 # An in-tree tool is available and we can use it
17044 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17046 $as_echo "just compiled
" >&6; }
17047 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17048 # We already found the complete path
17049 ac_dir=`dirname $GOC_FOR_TARGET`
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17051 $as_echo "pre-installed
in $ac_dir" >&6; }
17052 elif test "x
$target" = "x
$host"; then
17053 # We can use an host tool
17054 GOC_FOR_TARGET='$(GOC)'
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17056 $as_echo "host tool
" >&6; }
17058 # We need a cross tool
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17060 $as_echo "pre-installed
" >&6; }
17064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
17065 $as_echo_n "checking where to
find the target gdc...
" >&6; }
17066 if test "x
${build}" != "x
${host}" ; then
17067 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17068 # We already found the complete path
17069 ac_dir=`dirname $GDC_FOR_TARGET`
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17071 $as_echo "pre-installed
in $ac_dir" >&6; }
17073 # Canadian cross, just use what we found
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17075 $as_echo "pre-installed
" >&6; }
17079 case " ${configdirs} " in
17083 case ,${enable_languages}, in
17087 if test $ok = yes; then
17088 # An in-tree tool is available and we can use it
17089 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17091 $as_echo "just compiled
" >&6; }
17092 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17093 # We already found the complete path
17094 ac_dir=`dirname $GDC_FOR_TARGET`
17095 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17096 $as_echo "pre-installed
in $ac_dir" >&6; }
17097 elif test "x
$target" = "x
$host"; then
17098 # We can use an host tool
17099 GDC_FOR_TARGET='$(GDC)'
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17101 $as_echo "host tool
" >&6; }
17103 # We need a cross tool
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17105 $as_echo "pre-installed
" >&6; }
17109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
17110 $as_echo_n "checking where to
find the target ld...
" >&6; }
17111 if test "x
${build}" != "x
${host}" ; then
17112 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17113 # We already found the complete path
17114 ac_dir=`dirname $LD_FOR_TARGET`
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17116 $as_echo "pre-installed
in $ac_dir" >&6; }
17118 # Canadian cross, just use what we found
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17120 $as_echo "pre-installed
" >&6; }
17124 case " ${configdirs} " in
17129 if test $ok = yes; then
17130 # An in-tree tool is available and we can use it
17131 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17132 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17133 $as_echo "just compiled
" >&6; }
17134 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17135 # We already found the complete path
17136 ac_dir=`dirname $LD_FOR_TARGET`
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17138 $as_echo "pre-installed
in $ac_dir" >&6; }
17139 elif test "x
$target" = "x
$host"; then
17140 # We can use an host tool
17141 LD_FOR_TARGET='$(LD)'
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17143 $as_echo "host tool
" >&6; }
17145 # We need a cross tool
17146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17147 $as_echo "pre-installed
" >&6; }
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
17152 $as_echo_n "checking where to
find the target lipo...
" >&6; }
17153 if test "x
${build}" != "x
${host}" ; then
17154 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
17155 # We already found the complete path
17156 ac_dir=`dirname $LIPO_FOR_TARGET`
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17158 $as_echo "pre-installed
in $ac_dir" >&6; }
17160 # Canadian cross, just use what we found
17161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17162 $as_echo "pre-installed
" >&6; }
17165 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
17166 # We already found the complete path
17167 ac_dir=`dirname $LIPO_FOR_TARGET`
17168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17169 $as_echo "pre-installed
in $ac_dir" >&6; }
17170 elif test "x
$target" = "x
$host"; then
17171 # We can use an host tool
17172 LIPO_FOR_TARGET='$(LIPO)'
17173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17174 $as_echo "host tool
" >&6; }
17176 # We need a cross tool
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17178 $as_echo "pre-installed
" >&6; }
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
17183 $as_echo_n "checking where to
find the target nm...
" >&6; }
17184 if test "x
${build}" != "x
${host}" ; then
17185 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
17186 # We already found the complete path
17187 ac_dir=`dirname $NM_FOR_TARGET`
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17189 $as_echo "pre-installed
in $ac_dir" >&6; }
17191 # Canadian cross, just use what we found
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17193 $as_echo "pre-installed
" >&6; }
17197 case " ${configdirs} " in
17202 if test $ok = yes; then
17203 # An in-tree tool is available and we can use it
17204 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17206 $as_echo "just compiled
" >&6; }
17207 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
17208 # We already found the complete path
17209 ac_dir=`dirname $NM_FOR_TARGET`
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17211 $as_echo "pre-installed
in $ac_dir" >&6; }
17212 elif test "x
$target" = "x
$host"; then
17213 # We can use an host tool
17214 NM_FOR_TARGET='$(NM)'
17215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17216 $as_echo "host tool
" >&6; }
17218 # We need a cross tool
17219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17220 $as_echo "pre-installed
" >&6; }
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
17225 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
17226 if test "x
${build}" != "x
${host}" ; then
17227 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
17228 # We already found the complete path
17229 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17231 $as_echo "pre-installed
in $ac_dir" >&6; }
17233 # Canadian cross, just use what we found
17234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17235 $as_echo "pre-installed
" >&6; }
17239 case " ${configdirs} " in
17244 if test $ok = yes; then
17245 # An in-tree tool is available and we can use it
17246 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17248 $as_echo "just compiled
" >&6; }
17249 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
17250 # We already found the complete path
17251 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17253 $as_echo "pre-installed
in $ac_dir" >&6; }
17254 elif test "x
$target" = "x
$host"; then
17255 # We can use an host tool
17256 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17258 $as_echo "host tool
" >&6; }
17260 # We need a cross tool
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17262 $as_echo "pre-installed
" >&6; }
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
17267 $as_echo_n "checking where to
find the target objdump...
" >&6; }
17268 if test "x
${build}" != "x
${host}" ; then
17269 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
17270 # We already found the complete path
17271 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17273 $as_echo "pre-installed
in $ac_dir" >&6; }
17275 # Canadian cross, just use what we found
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17277 $as_echo "pre-installed
" >&6; }
17281 case " ${configdirs} " in
17286 if test $ok = yes; then
17287 # An in-tree tool is available and we can use it
17288 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17290 $as_echo "just compiled
" >&6; }
17291 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
17292 # We already found the complete path
17293 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17295 $as_echo "pre-installed
in $ac_dir" >&6; }
17296 elif test "x
$target" = "x
$host"; then
17297 # We can use an host tool
17298 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17300 $as_echo "host tool
" >&6; }
17302 # We need a cross tool
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17304 $as_echo "pre-installed
" >&6; }
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
17309 $as_echo_n "checking where to
find the target otool...
" >&6; }
17310 if test "x
${build}" != "x
${host}" ; then
17311 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17312 # We already found the complete path
17313 ac_dir=`dirname $OTOOL_FOR_TARGET`
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17315 $as_echo "pre-installed
in $ac_dir" >&6; }
17317 # Canadian cross, just use what we found
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17319 $as_echo "pre-installed
" >&6; }
17322 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17323 # We already found the complete path
17324 ac_dir=`dirname $OTOOL_FOR_TARGET`
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17326 $as_echo "pre-installed
in $ac_dir" >&6; }
17327 elif test "x
$target" = "x
$host"; then
17328 # We can use an host tool
17329 OTOOL_FOR_TARGET='$(OTOOL)'
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17331 $as_echo "host tool
" >&6; }
17333 # We need a cross tool
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17335 $as_echo "pre-installed
" >&6; }
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
17340 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
17341 if test "x
${build}" != "x
${host}" ; then
17342 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
17343 # We already found the complete path
17344 ac_dir=`dirname $RANLIB_FOR_TARGET`
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17346 $as_echo "pre-installed
in $ac_dir" >&6; }
17348 # Canadian cross, just use what we found
17349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17350 $as_echo "pre-installed
" >&6; }
17354 case " ${configdirs} " in
17359 if test $ok = yes; then
17360 # An in-tree tool is available and we can use it
17361 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17363 $as_echo "just compiled
" >&6; }
17364 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
17365 # We already found the complete path
17366 ac_dir=`dirname $RANLIB_FOR_TARGET`
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17368 $as_echo "pre-installed
in $ac_dir" >&6; }
17369 elif test "x
$target" = "x
$host"; then
17370 # We can use an host tool
17371 RANLIB_FOR_TARGET='$(RANLIB)'
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17373 $as_echo "host tool
" >&6; }
17375 # We need a cross tool
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17377 $as_echo "pre-installed
" >&6; }
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
17382 $as_echo_n "checking where to
find the target readelf...
" >&6; }
17383 if test "x
${build}" != "x
${host}" ; then
17384 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
17385 # We already found the complete path
17386 ac_dir=`dirname $READELF_FOR_TARGET`
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17388 $as_echo "pre-installed
in $ac_dir" >&6; }
17390 # Canadian cross, just use what we found
17391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17392 $as_echo "pre-installed
" >&6; }
17396 case " ${configdirs} " in
17401 if test $ok = yes; then
17402 # An in-tree tool is available and we can use it
17403 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17405 $as_echo "just compiled
" >&6; }
17406 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
17407 # We already found the complete path
17408 ac_dir=`dirname $READELF_FOR_TARGET`
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17410 $as_echo "pre-installed
in $ac_dir" >&6; }
17411 elif test "x
$target" = "x
$host"; then
17412 # We can use an host tool
17413 READELF_FOR_TARGET='$(READELF)'
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17415 $as_echo "host tool
" >&6; }
17417 # We need a cross tool
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17419 $as_echo "pre-installed
" >&6; }
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
17424 $as_echo_n "checking where to
find the target strip...
" >&6; }
17425 if test "x
${build}" != "x
${host}" ; then
17426 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
17427 # We already found the complete path
17428 ac_dir=`dirname $STRIP_FOR_TARGET`
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17430 $as_echo "pre-installed
in $ac_dir" >&6; }
17432 # Canadian cross, just use what we found
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17434 $as_echo "pre-installed
" >&6; }
17438 case " ${configdirs} " in
17443 if test $ok = yes; then
17444 # An in-tree tool is available and we can use it
17445 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17447 $as_echo "just compiled
" >&6; }
17448 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
17449 # We already found the complete path
17450 ac_dir=`dirname $STRIP_FOR_TARGET`
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17452 $as_echo "pre-installed
in $ac_dir" >&6; }
17453 elif test "x
$target" = "x
$host"; then
17454 # We can use an host tool
17455 STRIP_FOR_TARGET='$(STRIP)'
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17457 $as_echo "host tool
" >&6; }
17459 # We need a cross tool
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17461 $as_echo "pre-installed
" >&6; }
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
17466 $as_echo_n "checking where to
find the target windres...
" >&6; }
17467 if test "x
${build}" != "x
${host}" ; then
17468 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
17469 # We already found the complete path
17470 ac_dir=`dirname $WINDRES_FOR_TARGET`
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17472 $as_echo "pre-installed
in $ac_dir" >&6; }
17474 # Canadian cross, just use what we found
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17476 $as_echo "pre-installed
" >&6; }
17480 case " ${configdirs} " in
17485 if test $ok = yes; then
17486 # An in-tree tool is available and we can use it
17487 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17489 $as_echo "just compiled
" >&6; }
17490 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
17491 # We already found the complete path
17492 ac_dir=`dirname $WINDRES_FOR_TARGET`
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17494 $as_echo "pre-installed
in $ac_dir" >&6; }
17495 elif test "x
$target" = "x
$host"; then
17496 # We can use an host tool
17497 WINDRES_FOR_TARGET='$(WINDRES)'
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17499 $as_echo "host tool
" >&6; }
17501 # We need a cross tool
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17503 $as_echo "pre-installed
" >&6; }
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
17508 $as_echo_n "checking where to
find the target windmc...
" >&6; }
17509 if test "x
${build}" != "x
${host}" ; then
17510 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
17511 # We already found the complete path
17512 ac_dir=`dirname $WINDMC_FOR_TARGET`
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17514 $as_echo "pre-installed
in $ac_dir" >&6; }
17516 # Canadian cross, just use what we found
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17518 $as_echo "pre-installed
" >&6; }
17522 case " ${configdirs} " in
17527 if test $ok = yes; then
17528 # An in-tree tool is available and we can use it
17529 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17531 $as_echo "just compiled
" >&6; }
17532 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
17533 # We already found the complete path
17534 ac_dir=`dirname $WINDMC_FOR_TARGET`
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17536 $as_echo "pre-installed
in $ac_dir" >&6; }
17537 elif test "x
$target" = "x
$host"; then
17538 # We can use an host tool
17539 WINDMC_FOR_TARGET='$(WINDMC)'
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17541 $as_echo "host tool
" >&6; }
17543 # We need a cross tool
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17545 $as_echo "pre-installed
" >&6; }
17553 # Certain tools may need extra flags.
17554 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
17555 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
17556 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
17558 # When building target libraries, except in a Canadian cross, we use
17559 # the same toolchain as the compiler we just built.
17560 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
17561 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
17562 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
17563 if test $host = $build; then
17564 case " $configdirs " in
17566 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
17567 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
17568 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
17578 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
17579 # Check whether --enable-maintainer-mode was given.
17580 if test "${enable_maintainer_mode+set}" = set; then :
17581 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
17583 USE_MAINTAINER_MODE=no
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
17587 $as_echo "$USE_MAINTAINER_MODE" >&6; }
17590 if test "$USE_MAINTAINER_MODE" = yes; then
17591 MAINTAINER_MODE_TRUE=
17592 MAINTAINER_MODE_FALSE='#'
17594 MAINTAINER_MODE_TRUE='#'
17595 MAINTAINER_MODE_FALSE=
17597 MAINT=$MAINTAINER_MODE_TRUE
17599 # ---------------------
17600 # GCC bootstrap support
17601 # ---------------------
17603 # Stage specific cflags for build.
17608 yes) stage1_cflags="-g -Wa,-J" ;;
17609 *) stage1_cflags="-g -J" ;;
17615 # Enable --enable-checking in stage1 of the compiler.
17616 # Check whether --enable-stage1-checking was given.
17617 if test "${enable_stage1_checking+set}" = set; then :
17618 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
17620 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
17621 # For --disable-checking or implicit --enable-checking=release, avoid
17622 # setting --enable-checking=gc in the default stage1 checking for LTO
17623 # bootstraps. See PR62077.
17624 case $BUILD_CONFIG in
17626 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
17628 stage1_checking=--enable-checking=yes,types;;
17630 if test "x
$enable_checking" = x && \
17631 test -d ${srcdir}/gcc && \
17632 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
17633 stage1_checking=--enable-checking=yes,types,extra
17636 stage1_checking=--enable-checking=$enable_checking,types
17642 # Enable -Werror in bootstrap stage2 and later.
17643 # Check whether --enable-werror was given.
17644 if test "${enable_werror+set}" = set; then :
17645 enableval=$enable_werror;
17646 case ${enable_werror} in
17647 yes) stage2_werror_flag="--enable-werror-always" ;;
17648 *) stage2_werror_flag="" ;;
17653 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
17654 case $BUILD_CONFIG in
17656 stage2_werror_flag="--enable-werror-always" ;;
17658 stage2_werror_flag="--enable-werror-always" ;;
17667 # Specify what files to not compare during bootstrap.
17669 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
17671 hppa*64*-*-hpux*) ;;
17672 hppa*-*-hpux*) compare_exclusions="$compare_exclusions |
*/libgcc
/lib2funcs
* | gcc
/function-tests.o
" ;;
17673 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
17677 ac_config_files="$ac_config_files Makefile
"
17679 cat >confcache <<\_ACEOF
17680 # This file is a shell script that caches the results of configure
17681 # tests run on this system so they can be shared between configure
17682 # scripts and configure runs, see configure's option --config-cache.
17683 # It is not useful on other systems. If it contains results you don't
17684 # want to keep, you may remove or edit it.
17686 # config.status only pays attention to the cache file if you give it
17687 # the --recheck option to rerun configure.
17689 # `ac_cv_env_foo' variables (set or unset) will be overridden when
17690 # loading this file, other *unset* `ac_cv_foo' will be assigned the
17691 # following values.
17695 # The following way of writing the cache mishandles newlines in values,
17696 # but we know of no workaround that is simple, portable, and efficient.
17697 # So, we kill variables containing newlines.
17698 # Ultrix sh set writes to stderr and can't be redirected directly,
17699 # and sets the high bit in the cache file unless we assign to the vars.
17701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
17702 eval ac_val=\$$ac_var
17706 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
17707 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
17710 _ | IFS | as_nl) ;; #(
17711 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
17712 *) { eval $ac_var=; unset $ac_var;} ;;
17718 case $as_nl`(ac_space=' '; set) 2>&1` in #(
17719 *${as_nl}ac_space=\ *)
17720 # `set' does not quote correctly, so add quotes: double-quote
17721 # substitution turns \\\\ into \\, and sed turns \\ into \.
17724 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
17727 # `set' quotes correctly as required by POSIX, so do not add quotes.
17728 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
17737 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
17739 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
17741 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
17742 if test -w "$cache_file"; then
17743 if test "x
$cache_file" != "x
/dev
/null
"; then
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
17745 $as_echo "$as_me: updating cache
$cache_file" >&6;}
17746 if test ! -f "$cache_file" || test -h "$cache_file"; then
17747 cat confcache >"$cache_file"
17749 case $cache_file in #(
17751 mv -f confcache "$cache_file"$$ &&
17752 mv -f "$cache_file"$$ "$cache_file" ;; #(
17754 mv -f confcache "$cache_file" ;;
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
17760 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
17765 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
17766 # Let make expand exec_prefix.
17767 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
17769 # Transform confdefs.h into DEFS.
17770 # Protect against shell expansion while executing Makefile rules.
17771 # Protect against Makefile macro expansion.
17773 # If the first sed substitution is executed (which looks for macros that
17774 # take arguments), then branch to the quote section. Otherwise,
17775 # look for a macro that doesn't take arguments.
17785 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
17787 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
17791 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
17804 DEFS=`sed -n "$ac_script" confdefs.h`
17810 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
17811 # 1. Remove the extension, and $U if already installed.
17812 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
17813 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
17814 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
17815 # will be set to the directory where LIBOBJS objects are built.
17816 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
17817 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
17819 LIBOBJS=$ac_libobjs
17821 LTLIBOBJS=$ac_ltlibobjs
17825 : "${CONFIG_STATUS=./config.status}"
17827 ac_clean_files_save=$ac_clean_files
17828 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
17829 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
17830 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
17832 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
17834 # Generated by $as_me.
17835 # Run this file to recreate the current configuration.
17836 # Compiler output produced by configure, useful for debugging
17837 # configure, is in config.log if it exists.
17840 ac_cs_recheck=false
17843 SHELL=\${CONFIG_SHELL-$SHELL}
17846 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
17847 ## -------------------- ##
17848 ## M4sh Initialization. ##
17849 ## -------------------- ##
17851 # Be more Bourne compatible
17852 DUALCASE=1; export DUALCASE # for MKS sh
17853 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
17856 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
17857 # is contrary to our usage. Disable this feature.
17858 alias -g '${1+"$@"}'='"$@"'
17859 setopt NO_GLOB_SUBST
17861 case `(set -o) 2>/dev/null` in #(
17873 # Printing a long string crashes Solaris 7 /usr/bin/printf.
17874 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
17875 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
17876 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
17877 # Prefer a ksh shell builtin over an external printf program on Solaris,
17878 # but without wasting forks for bash or zsh.
17879 if test -z "$BASH_VERSION$ZSH_VERSION" \
17880 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
17881 as_echo
='print -r --'
17882 as_echo_n
='print -rn --'
17883 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
17884 as_echo
='printf %s\n'
17885 as_echo_n
='printf %s'
17887 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
17888 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
17889 as_echo_n
='/usr/ucb/echo -n'
17891 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
17892 as_echo_n_body
='eval
17896 expr "X$arg" : "X\\(.*\\)$as_nl";
17897 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
17899 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
17901 export as_echo_n_body
17902 as_echo_n
='sh -c $as_echo_n_body as_echo'
17904 export as_echo_body
17905 as_echo
='sh -c $as_echo_body as_echo'
17908 # The user is always right.
17909 if test "${PATH_SEPARATOR+set}" != set; then
17911 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
17912 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
17919 # We need space, tab and new line, in precisely that order. Quoting is
17920 # there to prevent editors from complaining about space-tab.
17921 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
17922 # splitting by setting IFS to empty value.)
17925 # Find who we are. Look in the path if we contain no directory separator.
17928 *[\\/]* ) as_myself
=$0 ;;
17929 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
17930 for as_dir
in $PATH
17933 test -z "$as_dir" && as_dir
=.
17934 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
17940 # We did not find ourselves, most probably we were run as `sh COMMAND'
17941 # in which case we are not to be found in the path.
17942 if test "x$as_myself" = x
; then
17945 if test ! -f "$as_myself"; then
17946 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
17950 # Unset variables that we do not need and which cause bugs (e.g. in
17951 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
17952 # suppresses any "Segmentation fault" message there. '((' could
17953 # trigger a bug in pdksh 5.2.14.
17954 for as_var
in BASH_ENV ENV MAIL MAILPATH
17955 do eval test x\
${$as_var+set} = xset \
17956 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
17969 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
17972 # as_fn_error STATUS ERROR [LINENO LOG_FD]
17973 # ----------------------------------------
17974 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
17975 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
17976 # script with STATUS, using 1 if that was 0.
17979 as_status
=$1; test $as_status -eq 0 && as_status
=1
17981 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
17982 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
17984 $as_echo "$as_me: error: $2" >&2
17985 as_fn_exit
$as_status
17989 # as_fn_set_status STATUS
17990 # -----------------------
17991 # Set $? to STATUS, without forking.
17992 as_fn_set_status
()
17995 } # as_fn_set_status
17997 # as_fn_exit STATUS
17998 # -----------------
17999 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18003 as_fn_set_status
$1
18009 # Portably unset VAR.
18012 { eval $1=; unset $1;}
18014 as_unset
=as_fn_unset
18015 # as_fn_append VAR VALUE
18016 # ----------------------
18017 # Append the text in VALUE to the end of the definition contained in VAR. Take
18018 # advantage of any shell optimizations that allow amortized linear growth over
18019 # repeated appends, instead of the typical quadratic growth present in naive
18021 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18022 eval 'as_fn_append ()
18033 # as_fn_arith ARG...
18034 # ------------------
18035 # Perform arithmetic evaluation on the ARGs, and store the result in the
18036 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18037 # must be portable across $(()) and expr.
18038 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18039 eval 'as_fn_arith ()
18046 as_val
=`expr "$@" || test $? -eq 1`
18051 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18052 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18058 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18059 as_basename
=basename
18064 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18070 as_me
=`$as_basename -- "$0" ||
18071 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18072 X"$0" : 'X\(//\)$' \| \
18073 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18075 sed '/^.*\/\([^/][^/]*\)\/*$/{
18089 # Avoid depending upon Character Ranges.
18090 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18091 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18092 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18093 as_cr_digits
='0123456789'
18094 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18096 ECHO_C
= ECHO_N
= ECHO_T
=
18097 case `echo -n x` in #(((((
18099 case `echo 'xy\c'` in
18100 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18102 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18109 rm -f conf$$ conf$$.exe conf$$.
file
18110 if test -d conf$$.dir
; then
18111 rm -f conf$$.dir
/conf$$.
file
18114 mkdir conf$$.dir
2>/dev
/null
18116 if (echo >conf$$.
file) 2>/dev
/null
; then
18117 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18119 # ... but there are two gotchas:
18120 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18121 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18122 # In both cases, we have to default to `cp -pR'.
18123 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18125 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18133 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18134 rmdir conf$$.dir
2>/dev
/null
18139 # Create "$as_dir" as a directory, including parents if necessary.
18144 -*) as_dir
=.
/$as_dir;;
18146 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18150 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18151 *) as_qdir
=$as_dir;;
18153 as_dirs
="'$as_qdir' $as_dirs"
18154 as_dir
=`$as_dirname -- "$as_dir" ||
18155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18156 X"$as_dir" : 'X\(//\)[^/]' \| \
18157 X"$as_dir" : 'X\(//\)$' \| \
18158 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18159 $as_echo X"$as_dir" |
18160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18164 /^X\(\/\/\)[^/].*/{
18177 test -d "$as_dir" && break
18179 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18180 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18184 if mkdir
-p .
2>/dev
/null
; then
18185 as_mkdir_p
='mkdir -p "$as_dir"'
18187 test -d .
/-p && rmdir .
/-p
18192 # as_fn_executable_p FILE
18193 # -----------------------
18194 # Test if FILE is an executable regular file.
18195 as_fn_executable_p
()
18197 test -f "$1" && test -x "$1"
18198 } # as_fn_executable_p
18199 as_test_x
='test -x'
18200 as_executable_p
=as_fn_executable_p
18202 # Sed expression to map a string onto a valid CPP name.
18203 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18205 # Sed expression to map a string onto a valid variable name.
18206 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18210 ## ----------------------------------- ##
18211 ## Main body of $CONFIG_STATUS script. ##
18212 ## ----------------------------------- ##
18214 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18216 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18217 # Save the log message, to keep $0 and so on meaningful, and to
18218 # report actual input values of CONFIG_FILES etc. instead of their
18219 # values after options handling.
18221 This file was extended by $as_me, which was
18222 generated by GNU Autoconf 2.69. Invocation command line was
18224 CONFIG_FILES = $CONFIG_FILES
18225 CONFIG_HEADERS = $CONFIG_HEADERS
18226 CONFIG_LINKS = $CONFIG_LINKS
18227 CONFIG_COMMANDS = $CONFIG_COMMANDS
18230 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18235 case $ac_config_files in *"
18236 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18241 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18242 # Files that config.status was made for.
18243 config_files="$ac_config_files"
18247 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18249 \`$as_me' instantiates files and other configuration actions
18250 from templates according to the current configuration. Unless the files
18251 and actions are specified as TAGs, all are instantiated by default.
18253 Usage: $0 [OPTION]... [TAG]...
18255 -h, --help print this help, then exit
18256 -V, --version print version number and configuration settings, then exit
18257 --config print configuration, then exit
18258 -q, --quiet, --silent
18259 do not print progress messages
18260 -d, --debug don't remove temporary files
18261 --recheck update $as_me by reconfiguring in the same conditions
18262 --file=FILE[:TEMPLATE]
18263 instantiate the configuration file FILE
18265 Configuration files:
18268 Report bugs to the package provider."
18271 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18272 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18275 configured by $0, generated by GNU Autoconf 2.69,
18276 with options \\"\$ac_cs_config\\"
18278 Copyright (C) 2012 Free Software Foundation, Inc.
18279 This config.status script is free software; the Free Software Foundation
18280 gives unlimited permission to copy, distribute and modify it."
18286 test -n "\$AWK" || AWK=awk
18289 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18290 # The default lists apply if the user does not specify any file.
18296 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18297 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18301 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18313 # Handling of the options.
18314 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18316 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18317 $as_echo "$ac_cs_version"; exit ;;
18318 --config |
--confi |
--conf |
--con |
--co |
--c )
18319 $as_echo "$ac_cs_config"; exit ;;
18320 --debug |
--debu |
--deb |
--de |
--d |
-d )
18322 --file |
--fil |
--fi |
--f )
18325 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18326 '') as_fn_error $?
"missing file argument" ;;
18328 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18329 ac_need_defaults
=false
;;
18330 --he |
--h |
--help |
--hel |
-h )
18331 $as_echo "$ac_cs_usage"; exit ;;
18332 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18333 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18336 # This is an error.
18337 -*) as_fn_error $?
"unrecognized option: \`$1'
18338 Try \`$0 --help' for more information." ;;
18340 *) as_fn_append ac_config_targets
" $1"
18341 ac_need_defaults
=false
;;
18347 ac_configure_extra_args
=
18349 if $ac_cs_silent; then
18351 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18355 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18356 if \$ac_cs_recheck; then
18357 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18359 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18360 CONFIG_SHELL='$SHELL'
18361 export CONFIG_SHELL
18366 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18370 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18371 ## Running $as_me. ##
18377 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18381 extrasub_build="$extrasub_build"
18382 extrasub_host="$extrasub_host"
18383 extrasub_target="$extrasub_target"
18387 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18389 # Handling of arguments.
18390 for ac_config_target
in $ac_config_targets
18392 case $ac_config_target in
18393 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18395 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18400 # If the user did not use the arguments to specify the items to instantiate,
18401 # then the envvar interface is used. Set only those that are not.
18402 # We use the long form for the default assignment because of an extremely
18403 # bizarre bug on SunOS 4.1.3.
18404 if $ac_need_defaults; then
18405 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18408 # Have a temporary directory for convenience. Make it in the build tree
18409 # simply because there is no reason against having it here, and in addition,
18410 # creating and moving files from /tmp can sometimes cause problems.
18411 # Hook for its removal unless debugging.
18412 # Note that there is a small window in which the directory will not be cleaned:
18413 # after its creation but before its name has been assigned to `$tmp'.
18417 trap 'exit_status=$?
18418 : "${ac_tmp:=$tmp}"
18419 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18421 trap 'as_fn_exit 1' 1 2 13 15
18423 # Create a (secure) tmp directory for tmp files.
18426 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18430 tmp
=.
/conf$$
-$RANDOM
18431 (umask 077 && mkdir
"$tmp")
18432 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18435 # Set up the scripts for CONFIG_FILES section.
18436 # No need to generate them if there are no CONFIG_FILES.
18437 # This happens for instance with `./config.status config.h'.
18438 if test -n "$CONFIG_FILES"; then
18440 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18441 ac_cs_awk_getline
=:
18442 ac_cs_awk_pipe_init
=
18443 ac_cs_awk_read_file
='
18444 while ((getline aline < (F[key])) > 0)
18447 ac_cs_awk_pipe_fini
=
18449 ac_cs_awk_getline
=false
18450 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18451 ac_cs_awk_read_file
='
18453 print "cat " F[key] " &&"
18454 '$ac_cs_awk_pipe_init
18455 # The final `:' finishes the AND list.
18456 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18458 ac_cr
=`echo X | tr X '\015'`
18459 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18460 # But we know of no other shell where ac_cr would be empty at this
18461 # point, so we can use a bashism as a fallback.
18462 if test "x$ac_cr" = x
; then
18463 eval ac_cr
=\$
\'\\r
\'
18465 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18466 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18469 ac_cs_awk_cr
=$ac_cr
18472 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18475 # Create commands to substitute file output variables.
18477 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18478 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18479 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18482 } >conf$
$files.sh
&&
18483 . .
/conf$
$files.sh ||
18484 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
18485 rm -f conf$
$files.sh
18488 echo "cat >conf$$subs.awk <<_ACEOF" &&
18489 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18491 } >conf$$subs.sh ||
18492 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18493 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18495 for ac_last_try in false false false false false :; do
18496 . ./conf$$subs.sh ||
18497 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18499 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18500 if test $ac_delim_n = $ac_delim_num; then
18502 elif $ac_last_try; then
18503 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18505 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18508 rm -f conf$$subs.sh
18510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18511 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18515 s/^/S["/; s
/!.
*/"]=/
18525 s/\(.\{148\}\)..*/\1/
18527 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18532 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18539 s/\(.\{148\}\)..*/\1/
18541 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18545 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18550 ' <conf$$subs.awk | sed '
18555 ' >>$CONFIG_STATUS || ac_write_fail=1
18556 rm -f conf$$subs.awk
18557 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18559 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18560 for (key in S) S_is_set[key] = 1
18562 \$ac_cs_awk_pipe_init
18566 nfields = split(line, field, "@
")
18568 len = length(field[1])
18569 for (i = 2; i < nfields; i++) {
18571 keylen = length(key)
18572 if (S_is_set[key]) {
18574 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18575 len += length(value) + length(field[++i])
18580 if (nfields == 3 && !substed) {
18582 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18583 \$ac_cs_awk_read_file
18589 \$ac_cs_awk_pipe_fini
18592 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18593 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18594 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18597 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
18598 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
18601 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
18602 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
18603 # trailing colons and then remove the whole line if VPATH becomes empty
18604 # (actually we leave an empty line to preserve line numbers).
18605 if test "x
$srcdir" = x.; then
18606 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
18624 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18625 fi # test -n "$CONFIG_FILES"
18628 eval set X " :F
$CONFIG_FILES "
18633 :[FHLC]) ac_mode=$ac_tag; continue;;
18635 case $ac_mode$ac_tag in
18637 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
18638 :[FH]-) ac_tag=-:-;;
18639 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
18656 -) ac_f="$ac_tmp/stdin";;
18657 *) # Look for the file first in the build tree, then in the source tree
18658 # (if the path is not absolute). The absolute path cannot be DOS-style,
18659 # because $ac_f cannot contain `:'.
18663 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
18665 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
18667 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
18668 as_fn_append ac_file_inputs " '$ac_f'"
18671 # Let's still pretend it is `configure' which instantiates (i.e., don't
18672 # use $as_me), people would be surprised to read:
18673 # /* config.h. Generated by config.status. */
18674 configure_input='Generated from '`
18675 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
18677 if test x"$ac_file" != x-; then
18678 configure_input="$ac_file.
$configure_input"
18679 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
18680 $as_echo "$as_me: creating
$ac_file" >&6;}
18682 # Neutralize special characters interpreted by sed in replacement strings.
18683 case $configure_input in #(
18684 *\&* | *\|* | *\\* )
18685 ac_sed_conf_input=`$as_echo "$configure_input" |
18686 sed 's/[\\\\&|]/\\\\&/g'`;; #(
18687 *) ac_sed_conf_input=$configure_input;;
18691 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
18692 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
18697 ac_dir=`$as_dirname -- "$ac_file" ||
18698 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18699 X"$ac_file" : 'X\(//\)[^/]' \| \
18700 X"$ac_file" : 'X\(//\)$' \| \
18701 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
18702 $as_echo X"$ac_file" |
18703 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18707 /^X\(\/\/\)[^/].*/{
18720 as_dir="$ac_dir"; as_fn_mkdir_p
18724 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
18726 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
18727 # A "..
" for each directory in $ac_dir_suffix.
18728 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
18729 case $ac_top_builddir_sub in
18730 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
18731 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
18734 ac_abs_top_builddir=$ac_pwd
18735 ac_abs_builddir=$ac_pwd$ac_dir_suffix
18736 # for backward compatibility:
18737 ac_top_builddir=$ac_top_build_prefix
18740 .) # We are building in place.
18742 ac_top_srcdir=$ac_top_builddir_sub
18743 ac_abs_top_srcdir=$ac_pwd ;;
18744 [\\/]* | ?:[\\/]* ) # Absolute name.
18745 ac_srcdir=$srcdir$ac_dir_suffix;
18746 ac_top_srcdir=$srcdir
18747 ac_abs_top_srcdir=$srcdir ;;
18748 *) # Relative name.
18749 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
18750 ac_top_srcdir=$ac_top_build_prefix$srcdir
18751 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
18753 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
18763 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
18764 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
18768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18769 # If the template does not know about datarootdir, expand it.
18770 # FIXME: This hack should be removed a few years after 2.60.
18771 ac_datarootdir_hack=; ac_datarootdir_seen=
18782 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
18783 *datarootdir*) ac_datarootdir_seen=yes;;
18784 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
18785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
18786 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
18788 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18789 ac_datarootdir_hack='
18790 s&@datadir@&$datadir&g
18791 s&@docdir@&$docdir&g
18792 s&@infodir@&$infodir&g
18793 s&@localedir@&$localedir&g
18794 s&@mandir@&$mandir&g
18795 s&\\\${datarootdir}&$datarootdir&g' ;;
18799 # Neutralize VPATH when `$srcdir' = `.'.
18800 # Shell code in configure.ac might set extrasub.
18801 # FIXME: do we really want to maintain this feature?
18802 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18803 ac_sed_extra="$ac_vpsub
18806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18808 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
18809 s|@configure_input@|
$ac_sed_conf_input|
;t t
18810 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
18811 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
18812 s
&@srcdir@
&$ac_srcdir&;t t
18813 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
18814 s
&@top_srcdir@
&$ac_top_srcdir&;t t
18815 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
18816 s
&@builddir@
&$ac_builddir&;t t
18817 s
&@abs_builddir@
&$ac_abs_builddir&;t t
18818 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
18819 s
&@INSTALL@
&$ac_INSTALL&;t t
18820 $ac_datarootdir_hack
18822 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
18823 if $ac_cs_awk_getline; then
18824 $AWK -f "$ac_tmp/subs.
awk"
18826 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
18828 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
18830 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
18831 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
18832 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
18833 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
18834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
18835 which seems to be undefined. Please make sure it is defined" >&5
18836 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
18837 which seems to be undefined. Please make sure it is defined" >&2;}
18839 rm -f "$ac_tmp/stdin"
18841 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
18842 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
18844 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
18852 case $ac_file$ac_mode in
18853 "Makefile":F) sed "$extrasub_build" Makefile |
18854 sed "$extrasub_host" |
18855 sed "$extrasub_target" > mf$$
18856 mv -f mf$$ Makefile ;;
18864 ac_clean_files=$ac_clean_files_save
18866 test $ac_write_fail = 0 ||
18867 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
18870 # configure is writing to config.log, and then calls config.status.
18871 # config.status does its own redirection, appending to config.log.
18872 # Unfortunately, on DOS this fails, as config.log is still kept open
18873 # by configure, so config.status won't be able to
write to it
; its
18874 # output is simply discarded. So we exec the FD to /dev/null,
18875 # effectively closing config.log, so it can be properly (re)opened and
18876 # appended to by config.status. When coming back to configure, we
18877 # need to make the FD available again.
18878 if test "$no_create" != yes; then
18880 ac_config_status_args
=
18881 test "$silent" = yes &&
18882 ac_config_status_args
="$ac_config_status_args --quiet"
18884 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
18886 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
18887 # would make configure fail if this is the last instruction.
18888 $ac_cs_success || as_fn_exit
1
18890 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
18892 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}