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
680 DEBUG_PREFIX_CFLAGS_FOR_TARGET
681 SYSROOT_CFLAGS_FOR_TARGET
683 extra_host_zlib_configure_flags
684 extra_host_libiberty_configure_flags
687 extra_linker_plugin_flags
688 extra_linker_plugin_configure_flags
695 extra_isl_gmp_configure_flags
696 extra_mpc_mpfr_configure_flags
697 extra_mpc_gmp_configure_flags
698 extra_mpfr_configure_flags
716 extra_liboffloadmic_configure_flags
743 TOPLEVEL_CONFIGURE_ARGUMENTS
772 program_transform_name
783 ac_subst_files
='serialization_dependencies
789 enable_option_checking
792 enable_as_accelerator_for
793 enable_offload_targets
794 enable_offload_defaulted
797 enable_compressed_debug_sections
799 enable_libquadmath_support
818 with_static_standard_libraries
825 enable_isl_version_check
827 enable_linker_plugin_configure_flags
828 enable_linker_plugin_flags
830 enable_stage1_languages
833 with_target_bdw_gc_include
834 with_target_bdw_gc_lib
835 with_gcc_major_version_only
837 with_debug_prefix_map
840 enable_serial_configure
841 with_build_time_tools
842 enable_maintainer_mode
843 enable_stage1_checking
846 ac_precious_vars
='build_alias
899 # Initialize some variables set by options.
901 ac_init_version
=false
902 ac_unrecognized_opts
=
904 # The variables have the same names as the options, with
905 # dashes changed to underlines.
913 program_transform_name
=s
,x
,x
,
921 # Installation directory options.
922 # These are left unexpanded so users can "make install exec_prefix=/foo"
923 # and all the variables that are supposed to be based on exec_prefix
924 # by default will actually change.
925 # Use braces instead of parens because sh, perl, etc. also accept them.
926 # (The list follows the same order as the GNU Coding Standards.)
927 bindir
='${exec_prefix}/bin'
928 sbindir
='${exec_prefix}/sbin'
929 libexecdir
='${exec_prefix}/libexec'
930 datarootdir
='${prefix}/share'
931 datadir
='${datarootdir}'
932 sysconfdir
='${prefix}/etc'
933 sharedstatedir
='${prefix}/com'
934 localstatedir
='${prefix}/var'
935 runstatedir
='${localstatedir}/run'
936 includedir
='${prefix}/include'
937 oldincludedir
='/usr/include'
938 docdir
='${datarootdir}/doc/${PACKAGE}'
939 infodir
='${datarootdir}/info'
944 libdir
='${exec_prefix}/lib'
945 localedir
='${datarootdir}/locale'
946 mandir
='${datarootdir}/man'
952 # If the previous option needs an argument, assign it.
953 if test -n "$ac_prev"; then
954 eval $ac_prev=\
$ac_option
960 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
965 # Accept the important Cygnus configure options, so we can diagnose typos.
967 case $ac_dashdash$ac_option in
971 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
973 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
976 -build |
--build |
--buil |
--bui |
--bu)
977 ac_prev
=build_alias
;;
978 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
979 build_alias
=$ac_optarg ;;
981 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
982 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
983 ac_prev
=cache_file
;;
984 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
985 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
986 cache_file
=$ac_optarg ;;
989 cache_file
=config.cache
;;
991 -datadir |
--datadir |
--datadi |
--datad)
993 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
994 datadir
=$ac_optarg ;;
996 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
997 |
--dataroo |
--dataro |
--datar)
998 ac_prev
=datarootdir
;;
999 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1000 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1001 datarootdir
=$ac_optarg ;;
1003 -disable-* |
--disable-*)
1004 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1007 as_fn_error $?
"invalid feature name: $ac_useropt"
1008 ac_useropt_orig
=$ac_useropt
1009 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1010 case $ac_user_opts in
1012 "enable_
$ac_useropt"
1014 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1015 ac_unrecognized_sep
=', ';;
1017 eval enable_
$ac_useropt=no
;;
1019 -docdir |
--docdir |
--docdi |
--doc |
--do)
1021 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1022 docdir
=$ac_optarg ;;
1024 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1026 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1027 dvidir
=$ac_optarg ;;
1029 -enable-* |
--enable-*)
1030 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1033 as_fn_error $?
"invalid feature name: $ac_useropt"
1034 ac_useropt_orig
=$ac_useropt
1035 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1038 "enable_
$ac_useropt"
1040 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1041 ac_unrecognized_sep
=', ';;
1043 eval enable_
$ac_useropt=\
$ac_optarg ;;
1045 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1046 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1047 |
--exec |
--exe |
--ex)
1048 ac_prev
=exec_prefix
;;
1049 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1050 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1051 |
--exec=* |
--exe=* |
--ex=*)
1052 exec_prefix
=$ac_optarg ;;
1054 -gas |
--gas |
--ga |
--g)
1055 # Obsolete; use --with-gas.
1058 -help |
--help |
--hel |
--he |
-h)
1059 ac_init_help
=long
;;
1060 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1061 ac_init_help
=recursive
;;
1062 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1063 ac_init_help
=short
;;
1065 -host |
--host |
--hos |
--ho)
1066 ac_prev
=host_alias
;;
1067 -host=* |
--host=* |
--hos=* |
--ho=*)
1068 host_alias
=$ac_optarg ;;
1070 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1072 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1074 htmldir
=$ac_optarg ;;
1076 -includedir |
--includedir |
--includedi |
--included |
--include \
1077 |
--includ |
--inclu |
--incl |
--inc)
1078 ac_prev
=includedir
;;
1079 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1080 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1081 includedir
=$ac_optarg ;;
1083 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1085 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1086 infodir
=$ac_optarg ;;
1088 -libdir |
--libdir |
--libdi |
--libd)
1090 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1091 libdir
=$ac_optarg ;;
1093 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1094 |
--libexe |
--libex |
--libe)
1095 ac_prev
=libexecdir
;;
1096 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1097 |
--libexe=* |
--libex=* |
--libe=*)
1098 libexecdir
=$ac_optarg ;;
1100 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1101 ac_prev
=localedir
;;
1102 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1103 localedir
=$ac_optarg ;;
1105 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1106 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1107 ac_prev
=localstatedir
;;
1108 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1109 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1110 localstatedir
=$ac_optarg ;;
1112 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1114 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1115 mandir
=$ac_optarg ;;
1117 -nfp |
--nfp |
--nf)
1118 # Obsolete; use --without-fp.
1121 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1122 |
--no-cr |
--no-c |
-n)
1125 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1126 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1129 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1130 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1131 |
--oldin |
--oldi |
--old |
--ol |
--o)
1132 ac_prev
=oldincludedir
;;
1133 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1134 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1135 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1136 oldincludedir
=$ac_optarg ;;
1138 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1140 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1141 prefix
=$ac_optarg ;;
1143 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1144 |
--program-pre |
--program-pr |
--program-p)
1145 ac_prev
=program_prefix
;;
1146 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1147 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1148 program_prefix
=$ac_optarg ;;
1150 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1151 |
--program-suf |
--program-su |
--program-s)
1152 ac_prev
=program_suffix
;;
1153 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1154 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1155 program_suffix
=$ac_optarg ;;
1157 -program-transform-name |
--program-transform-name \
1158 |
--program-transform-nam |
--program-transform-na \
1159 |
--program-transform-n |
--program-transform- \
1160 |
--program-transform |
--program-transfor \
1161 |
--program-transfo |
--program-transf \
1162 |
--program-trans |
--program-tran \
1163 |
--progr-tra |
--program-tr |
--program-t)
1164 ac_prev
=program_transform_name
;;
1165 -program-transform-name=* |
--program-transform-name=* \
1166 |
--program-transform-nam=* |
--program-transform-na=* \
1167 |
--program-transform-n=* |
--program-transform-=* \
1168 |
--program-transform=* |
--program-transfor=* \
1169 |
--program-transfo=* |
--program-transf=* \
1170 |
--program-trans=* |
--program-tran=* \
1171 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1172 program_transform_name
=$ac_optarg ;;
1174 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1176 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1177 pdfdir
=$ac_optarg ;;
1179 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1181 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1184 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1185 |
-silent |
--silent |
--silen |
--sile |
--sil)
1188 -runstatedir |
--runstatedir |
--runstatedi |
--runstated \
1189 |
--runstate |
--runstat |
--runsta |
--runst |
--runs \
1190 |
--run |
--ru |
--r)
1191 ac_prev
=runstatedir
;;
1192 -runstatedir=* |
--runstatedir=* |
--runstatedi=* |
--runstated=* \
1193 |
--runstate=* |
--runstat=* |
--runsta=* |
--runst=* |
--runs=* \
1194 |
--run=* |
--ru=* |
--r=*)
1195 runstatedir
=$ac_optarg ;;
1197 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1199 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1201 sbindir
=$ac_optarg ;;
1203 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1204 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1205 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1207 ac_prev
=sharedstatedir
;;
1208 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1209 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1210 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1212 sharedstatedir
=$ac_optarg ;;
1214 -site |
--site |
--sit)
1216 -site=* |
--site=* |
--sit=*)
1219 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1221 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1222 srcdir
=$ac_optarg ;;
1224 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1225 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1226 ac_prev
=sysconfdir
;;
1227 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1228 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1229 sysconfdir
=$ac_optarg ;;
1231 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1232 ac_prev
=target_alias
;;
1233 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1234 target_alias
=$ac_optarg ;;
1236 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1239 -version |
--version |
--versio |
--versi |
--vers |
-V)
1240 ac_init_version
=: ;;
1243 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1246 as_fn_error $?
"invalid package name: $ac_useropt"
1247 ac_useropt_orig
=$ac_useropt
1248 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1253 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254 ac_unrecognized_sep
=', ';;
1256 eval with_
$ac_useropt=\
$ac_optarg ;;
1258 -without-* |
--without-*)
1259 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1262 as_fn_error $?
"invalid package name: $ac_useropt"
1263 ac_useropt_orig
=$ac_useropt
1264 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1269 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270 ac_unrecognized_sep
=', ';;
1272 eval with_
$ac_useropt=no
;;
1275 # Obsolete; use --with-x.
1278 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1279 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1280 ac_prev
=x_includes
;;
1281 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1282 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1283 x_includes
=$ac_optarg ;;
1285 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1286 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1287 ac_prev
=x_libraries
;;
1288 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1289 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1290 x_libraries
=$ac_optarg ;;
1292 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1293 Try \`$0 --help' for more information"
1297 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
1299 case $ac_envvar in #(
1300 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1301 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1303 eval $ac_envvar=\
$ac_optarg
1304 export $ac_envvar ;;
1307 # FIXME: should be removed in autoconf 3.0.
1308 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1309 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1310 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1311 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1317 if test -n "$ac_prev"; then
1318 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1319 as_fn_error $?
"missing argument to $ac_option"
1322 if test -n "$ac_unrecognized_opts"; then
1323 case $enable_option_checking in
1325 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1326 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1330 # Check all directory arguments for consistency.
1331 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir runstatedir
1336 eval ac_val
=\$
$ac_var
1337 # Remove trailing slashes.
1340 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1341 eval $ac_var=\
$ac_val;;
1343 # Be sure to have absolute directory names.
1345 [\\/$
]* | ?
:[\\/]* ) continue;;
1346 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1348 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1356 target
=$target_alias
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x
; then
1360 if test "x$build_alias" = x
; then
1361 cross_compiling
=maybe
1362 elif test "x$build_alias" != "x$host_alias"; then
1368 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1370 test "$silent" = yes && exec 6>/dev
/null
1373 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di
=`ls -di .` &&
1375 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1376 as_fn_error $?
"working directory cannot be determined"
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 as_fn_error $?
"pwd does not report name of working directory"
1381 # Find the source files, if location was not specified.
1382 if test -z "$srcdir"; then
1383 ac_srcdir_defaulted
=yes
1384 # Try the directory containing this script, then the parent directory.
1385 ac_confdir
=`$as_dirname -- "$as_myself" ||
1386 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387 X"$as_myself" : 'X\(//\)[^/]' \| \
1388 X"$as_myself" : 'X\(//\)$' \| \
1389 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390 $as_echo X"$as_myself" |
1391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1413 ac_srcdir_defaulted
=no
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1417 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1419 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1421 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1423 # When building in place, set srcdir=.
1424 if test "$ac_abs_confdir" = "$ac_pwd"; then
1427 # Remove unnecessary trailing slashes from srcdir.
1428 # Double slashes in file names in object file debugging info
1429 # mess up M-x gdb in Emacs.
1431 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435 as_fn_error $?
"path to source, $srcdir, contains spaces"
1438 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1440 for ac_var
in $ac_precious_vars; do
1441 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1442 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1443 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1444 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1448 # Report the --help message.
1450 if test "$ac_init_help" = "long"; then
1451 # Omit some internal or obsolete options to make the list less imposing.
1452 # This message is too long to be a string in the A/UX 3.1 sh.
1454 \`configure' configures this package to adapt to many kinds of systems.
1456 Usage: $0 [OPTION]... [VAR=VALUE]...
1458 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1459 VAR=VALUE. See below for descriptions of some of the useful variables.
1461 Defaults for the options are specified in brackets.
1464 -h, --help display this help and exit
1465 --help=short display options specific to this package
1466 --help=recursive display the short help of all the included packages
1467 -V, --version display version information and exit
1468 -q, --quiet, --silent do not print \`checking ...' messages
1469 --cache-file=FILE cache test results in FILE [disabled]
1470 -C, --config-cache alias for \`--cache-file=config.cache'
1471 -n, --no-create do not create output files
1472 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1474 Installation directories:
1475 --prefix=PREFIX install architecture-independent files in PREFIX
1476 [$ac_default_prefix]
1477 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1480 By default, \`make install' will install all the files in
1481 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1482 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483 for instance \`--prefix=\$HOME'.
1485 For better control, use the options below.
1487 Fine tuning of the installation directories:
1488 --bindir=DIR user executables [EPREFIX/bin]
1489 --sbindir=DIR system admin executables [EPREFIX/sbin]
1490 --libexecdir=DIR program executables [EPREFIX/libexec]
1491 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1492 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1493 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1494 --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
1495 --libdir=DIR object code libraries [EPREFIX/lib]
1496 --includedir=DIR C header files [PREFIX/include]
1497 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1498 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1499 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1500 --infodir=DIR info documentation [DATAROOTDIR/info]
1501 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1502 --mandir=DIR man documentation [DATAROOTDIR/man]
1503 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1504 --htmldir=DIR html documentation [DOCDIR]
1505 --dvidir=DIR dvi documentation [DOCDIR]
1506 --pdfdir=DIR pdf documentation [DOCDIR]
1507 --psdir=DIR ps documentation [DOCDIR]
1513 --program-prefix=PREFIX prepend PREFIX to installed program names
1514 --program-suffix=SUFFIX append SUFFIX to installed program names
1515 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1518 --build=BUILD configure
for building on BUILD
[guessed
]
1519 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1520 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1524 if test -n "$ac_init_help"; then
1529 --disable-option-checking ignore unrecognized
--enable/--with options
1530 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1531 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1532 --enable-as-accelerator-for=ARG
1533 build as offload target compiler. Specify offload
1535 --enable-offload-targets=LIST
1536 enable offloading to devices from comma-separated
1537 LIST of TARGET
[=DIR
]. Use optional path to
find
1538 offload target compiler during the build
1539 --enable-offload-defaulted
1540 If enabled
, configured but not installed offload compilers and
1541 libgomp plugins are silently ignored. Useful
for distribution
1542 compilers where those are
in separate optional packages.
1544 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1545 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1546 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1547 Enable compressed debug sections
for gas
, gold or ld
1549 --disable-libquadmath do not build libquadmath directory
1550 --disable-libquadmath-support
1551 disable libquadmath support
for Fortran
1552 --enable-libada build libada directory
1553 --enable-libgm2 build libgm2 directory
1554 --enable-libssp build libssp directory
1555 --disable-libstdcxx do not build libstdc
++-v3 directory
1556 --enable-liboffloadmic=ARG
1557 build liboffloadmic
[ARG
={no
,host,target
}]
1558 --enable-bootstrap enable bootstrapping
[yes if native build
]
1559 --disable-isl-version-check
1560 disable check
for isl version
1561 --enable-lto enable link
time optimization support
1562 --enable-linker-plugin-configure-flags=FLAGS
1563 additional flags
for configuring linker plugins
1565 --enable-linker-plugin-flags=FLAGS
1566 additional flags
for configuring and building linker
1568 --enable-host-shared build
host code as shared libraries
1569 --enable-stage1-languages[=all
]
1570 choose additional languages to build during stage1.
1571 Mostly useful
for compiler development
1572 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1574 --enable-vtable-verify Enable vtable verification feature
1575 --enable-serial-[{host,target,build}-]configure
1576 force sequential configuration of sub-packages for
1577 the host, target or build machine, or all
1579 --enable-maintainer-mode
1580 enable make rules and dependencies not useful (and
1581 sometimes confusing) to the casual installer
1582 --enable-stage1-checking[=all]
1583 choose additional checking for stage1 of the
1585 --enable-werror enable -Werror in bootstrap stage2 and later
1588 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1589 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1590 --with-build-libsubdir=DIR Directory where to find libraries for build system
1591 --with-system-zlib use installed libz
1592 --with-mpc=PATH specify prefix directory for installed MPC package.
1593 Equivalent to --with-mpc-include=PATH/include plus
1594 --with-mpc-lib=PATH/lib
1595 --with-mpc-include=PATH specify directory for installed MPC include files
1596 --with-mpc-lib=PATH specify directory for the installed MPC library
1597 --with-mpfr-dir=PATH this option has been REMOVED
1598 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1599 Equivalent to --with-mpfr-include=PATH/include plus
1600 --with-mpfr-lib=PATH/lib
1601 --with-mpfr-include=PATH
1602 specify directory for installed MPFR include files
1603 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1604 --with-gmp-dir=PATH this option has been REMOVED
1605 --with-gmp=PATH specify prefix directory for the installed GMP
1606 package. Equivalent to
1607 --with-gmp-include=PATH/include plus
1608 --with-gmp-lib=PATH/lib
1609 --with-gmp-include=PATH specify directory for installed GMP include files
1610 --with-gmp-lib=PATH specify directory for the installed GMP library
1611 --with-stage1-libs=LIBS libraries for stage1
1612 --with-static-standard-libraries
1613 use -static-libstdc++ and -static-libgcc
1615 --with-stage1-ldflags=FLAGS
1616 linker flags for stage1
1617 --with-boot-libs=LIBS libraries for stage2 and later
1618 --with-boot-ldflags=FLAGS
1619 linker flags for stage2 and later
1620 --with-isl=PATH Specify prefix directory for the installed isl
1621 package. Equivalent to
1622 --with-isl-include=PATH/include plus
1623 --with-isl-lib=PATH/lib
1624 --with-isl-include=PATH Specify directory for installed isl include files
1625 --with-isl-lib=PATH Specify the directory for the installed isl library
1626 --with-target-bdw-gc=PATHLIST
1627 specify prefix directory for installed bdw-gc
1628 package. Equivalent to
1629 --with-target-bdw-gc-include=PATH/include plus
1630 --with-target-bdw-gc-lib=PATH/lib
1631 --with-target-bdw-gc-include=PATHLIST
1632 specify directories for installed bdw-gc include
1634 --with-target-bdw-gc-lib=PATHLIST
1635 specify directories for installed bdw-gc library
1636 --with-gcc-major-version-only
1637 use only GCC major number in filesystem paths
1638 --with-build-sysroot=SYSROOT
1639 use sysroot as the system root during the build
1640 --with-debug-prefix-map='A
=B C
=D ...
'
1641 map A to B, C to D ... in debug information
1642 --with-build-config='NAME NAME2...
'
1643 use config/NAME.mk build configuration
1644 --with-build-time-tools=PATH
1645 use given path to find target tools during the build
1647 Some influential environment variables:
1648 CC C compiler command
1649 CFLAGS C compiler flags
1650 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1651 nonstandard directory <lib dir>
1652 LIBS libraries to pass to the linker, e.g. -l<library>
1653 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1654 you have headers in a nonstandard directory <include dir>
1655 CXX C++ compiler command
1656 CXXFLAGS C++ compiler flags
1658 additional configure arguments for build directories
1660 additional configure arguments for host directories
1662 additional configure arguments for target directories
1665 DLLTOOL DLLTOOL for the host
1666 DSYMUTIL DSYMUTIL for the host
1668 LIPO LIPO for the host
1670 RANLIB RANLIB for the host
1671 STRIP STRIP for the host
1672 WINDRES WINDRES for the host
1673 WINDMC WINDMC for the host
1674 OBJCOPY OBJCOPY for the host
1675 OBJDUMP OBJDUMP for the host
1676 OTOOL OTOOL for the host
1677 READELF READELF for the host
1685 GFORTRAN for the target
1697 DLLTOOL for the target
1699 DSYMUTIL for the target
1707 OBJCOPY for the target
1709 OBJDUMP for the target
1711 OTOOL for the target
1713 RANLIB for the target
1715 READELF for the target
1717 STRIP for the target
1719 WINDRES for the target
1721 WINDMC for the target
1723 Use these variables to override the choices made by `configure' or to
help
1724 it to
find libraries and programs with nonstandard names
/locations.
1726 Report bugs to the package provider.
1731 if test "$ac_init_help" = "recursive"; then
1732 # If there are subdirs, report their specific --help.
1733 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1734 test -d "$ac_dir" ||
1735 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1740 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1742 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1743 # A ".." for each directory in $ac_dir_suffix.
1744 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1745 case $ac_top_builddir_sub in
1746 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1747 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1750 ac_abs_top_builddir
=$ac_pwd
1751 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1752 # for backward compatibility:
1753 ac_top_builddir
=$ac_top_build_prefix
1756 .
) # We are building in place.
1758 ac_top_srcdir
=$ac_top_builddir_sub
1759 ac_abs_top_srcdir
=$ac_pwd ;;
1760 [\\/]* | ?
:[\\/]* ) # Absolute name.
1761 ac_srcdir
=$srcdir$ac_dir_suffix;
1762 ac_top_srcdir
=$srcdir
1763 ac_abs_top_srcdir
=$srcdir ;;
1765 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1766 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1767 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1769 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1771 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1772 # Check for guested configure.
1773 if test -f "$ac_srcdir/configure.gnu"; then
1775 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1776 elif test -f "$ac_srcdir/configure"; then
1778 $SHELL "$ac_srcdir/configure" --help=recursive
1780 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1782 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1786 test -n "$ac_init_help" && exit $ac_status
1787 if $ac_init_version; then
1790 generated by GNU Autoconf
2.69
1792 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1793 This configure
script is free software
; the Free Software Foundation
1794 gives unlimited permission to copy
, distribute and modify it.
1799 ## ------------------------ ##
1800 ## Autoconf initialization. ##
1801 ## ------------------------ ##
1803 # ac_fn_c_try_compile LINENO
1804 # --------------------------
1805 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1806 ac_fn_c_try_compile
()
1808 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1809 rm -f conftest.
$ac_objext
1810 if { { ac_try
="$ac_compile"
1812 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1813 *) ac_try_echo=$ac_try;;
1815 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1816 $as_echo "$ac_try_echo"; } >&5
1817 (eval "$ac_compile") 2>conftest.err
1819 if test -s conftest.err; then
1820 grep -v '^ *+' conftest.err >conftest.er1
1821 cat conftest.er1 >&5
1822 mv -f conftest.er1 conftest.err
1824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1825 test $ac_status = 0; } && {
1826 test -z "$ac_c_werror_flag" ||
1827 test ! -s conftest.err
1828 } && test -s conftest.$ac_objext; then :
1831 $as_echo "$as_me: failed program was:" >&5
1832 sed 's/^/| /' conftest.$ac_ext >&5
1836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1837 as_fn_set_status $ac_retval
1839 } # ac_fn_c_try_compile
1841 # ac_fn_cxx_try_compile LINENO
1842 # ----------------------------
1843 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1844 ac_fn_cxx_try_compile ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 rm -f conftest.$ac_objext
1848 if { { ac_try="$ac_compile"
1850 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1851 *) ac_try_echo
=$ac_try;;
1853 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1854 $as_echo "$ac_try_echo"; } >&5
1855 (eval "$ac_compile") 2>conftest.err
1857 if test -s conftest.err
; then
1858 grep -v '^ *+' conftest.err
>conftest.er1
1859 cat conftest.er1
>&5
1860 mv -f conftest.er1 conftest.err
1862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1863 test $ac_status = 0; } && {
1864 test -z "$ac_cxx_werror_flag" ||
1865 test ! -s conftest.err
1866 } && test -s conftest.
$ac_objext; then :
1869 $as_echo "$as_me: failed program was:" >&5
1870 sed 's/^/| /' conftest.
$ac_ext >&5
1874 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1875 as_fn_set_status
$ac_retval
1877 } # ac_fn_cxx_try_compile
1879 # ac_fn_cxx_try_link LINENO
1880 # -------------------------
1881 # Try to link conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_cxx_try_link
()
1884 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1885 rm -f conftest.
$ac_objext conftest
$ac_exeext
1886 if { { ac_try
="$ac_link"
1888 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_link") 2>conftest.err
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_cxx_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest$ac_exeext && {
1905 test "$cross_compiling" = yes ||
1906 test -x conftest$ac_exeext
1910 $as_echo "$as_me: failed program was:" >&5
1911 sed 's/^/| /' conftest.$ac_ext >&5
1915 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1916 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1917 # interfere with the next link command; also delete a directory that is
1918 # left behind by Apple's compiler. We do this before executing the actions.
1919 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1920 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1921 as_fn_set_status $ac_retval
1923 } # ac_fn_cxx_try_link
1925 # ac_fn_c_try_link LINENO
1926 # -----------------------
1927 # Try to link conftest.$ac_ext, and return whether this succeeded.
1930 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1931 rm -f conftest.$ac_objext conftest$ac_exeext
1932 if { { ac_try="$ac_link"
1934 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1935 *) ac_try_echo
=$ac_try;;
1937 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1938 $as_echo "$ac_try_echo"; } >&5
1939 (eval "$ac_link") 2>conftest.err
1941 if test -s conftest.err
; then
1942 grep -v '^ *+' conftest.err
>conftest.er1
1943 cat conftest.er1
>&5
1944 mv -f conftest.er1 conftest.err
1946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1947 test $ac_status = 0; } && {
1948 test -z "$ac_c_werror_flag" ||
1949 test ! -s conftest.err
1950 } && test -s conftest
$ac_exeext && {
1951 test "$cross_compiling" = yes ||
1952 test -x conftest
$ac_exeext
1956 $as_echo "$as_me: failed program was:" >&5
1957 sed 's/^/| /' conftest.
$ac_ext >&5
1961 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1962 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1963 # interfere with the next link command; also delete a directory that is
1964 # left behind by Apple's compiler. We do this before executing the actions.
1965 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 as_fn_set_status
$ac_retval
1969 } # ac_fn_c_try_link
1970 cat >config.log
<<_ACEOF
1971 This file contains any messages produced by compilers while
1972 running configure, to aid debugging if configure makes a mistake.
1974 It was created by $as_me, which was
1975 generated by GNU Autoconf 2.69. Invocation command line was
1987 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1988 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1989 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1990 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1991 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1993 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1994 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1996 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1997 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1998 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1999 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2000 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2001 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2002 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2006 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2010 test -z "$as_dir" && as_dir
=.
2011 $as_echo "PATH: $as_dir"
2027 # Keep a trace of the command line.
2028 # Strip out --no-create and --no-recursion so they do not pile up.
2029 # Strip out --silent because we don't want to record it for future runs.
2030 # Also quote any args containing shell meta-characters.
2031 # Make two passes to allow for proper duplicate-argument suppression.
2035 ac_must_keep_next
=false
2041 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2042 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2043 |
-silent |
--silent |
--silen |
--sile |
--sil)
2046 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2049 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2051 as_fn_append ac_configure_args1
" '$ac_arg'"
2052 if test $ac_must_keep_next = true
; then
2053 ac_must_keep_next
=false
# Got value, back to normal.
2056 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2057 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2058 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2059 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2060 case "$ac_configure_args0 " in
2061 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2064 -* ) ac_must_keep_next
=true
;;
2067 as_fn_append ac_configure_args
" '$ac_arg'"
2072 { ac_configure_args0
=; unset ac_configure_args0
;}
2073 { ac_configure_args1
=; unset ac_configure_args1
;}
2075 # When interrupted or exit'd, cleanup temporary files, and complete
2076 # config.log. We remove comments because anyway the quotes in there
2077 # would cause problems or look ugly.
2078 # WARNING: Use '\'' to represent an apostrophe within the trap.
2079 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2080 trap 'exit_status=$?
2081 # Save into config.log some information that might help in debugging.
2085 $as_echo "## ---------------- ##
2086 ## Cache variables. ##
2087 ## ---------------- ##"
2089 # The following way of writing the cache mishandles newlines in values,
2091 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2092 eval ac_val=\$$ac_var
2096 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2097 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2100 _ | IFS | as_nl) ;; #(
2101 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2102 *) { eval $ac_var=; unset $ac_var;} ;;
2107 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2108 *${as_nl}ac_space=\ *)
2110 "s/'\''/'\''\\\\'\'''\''/g;
2111 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2114 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2121 $as_echo "## ----------------- ##
2122 ## Output variables. ##
2123 ## ----------------- ##"
2125 for ac_var in $ac_subst_vars
2127 eval ac_val=\$$ac_var
2129 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2131 $as_echo "$ac_var='\''$ac_val'\''"
2135 if test -n "$ac_subst_files"; then
2136 $as_echo "## ------------------- ##
2137 ## File substitutions. ##
2138 ## ------------------- ##"
2140 for ac_var
in $ac_subst_files
2142 eval ac_val
=\$
$ac_var
2144 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2146 $as_echo "$ac_var='\''$ac_val'\''"
2151 if test -s confdefs.h; then
2152 $as_echo "## ----------- ##
2159 test "$ac_signal" != 0 &&
2160 $as_echo "$as_me: caught signal $ac_signal"
2161 $as_echo "$as_me: exit $exit_status"
2163 rm -f core *.core core.conftest.* &&
2164 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2167 for ac_signal
in 1 2 13 15; do
2168 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2172 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2173 rm -f -r conftest
* confdefs.h
2175 $as_echo "/* confdefs.h */" > confdefs.h
2177 # Predefined preprocessor variables.
2179 cat >>confdefs.h
<<_ACEOF
2180 #define PACKAGE_NAME "$PACKAGE_NAME"
2183 cat >>confdefs.h
<<_ACEOF
2184 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2187 cat >>confdefs.h
<<_ACEOF
2188 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2191 cat >>confdefs.h
<<_ACEOF
2192 #define PACKAGE_STRING "$PACKAGE_STRING"
2195 cat >>confdefs.h
<<_ACEOF
2196 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2199 cat >>confdefs.h
<<_ACEOF
2200 #define PACKAGE_URL "$PACKAGE_URL"
2204 # Let the site file select an alternate cache file if it wants to.
2205 # Prefer an explicitly selected file to automatically selected ones.
2208 if test -n "$CONFIG_SITE"; then
2209 # We do not want a PATH search for config.site.
2210 case $CONFIG_SITE in #((
2211 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2212 */*) ac_site_file1
=$CONFIG_SITE;;
2213 *) ac_site_file1
=.
/$CONFIG_SITE;;
2215 elif test "x$prefix" != xNONE
; then
2216 ac_site_file1
=$prefix/share
/config.site
2217 ac_site_file2
=$prefix/etc
/config.site
2219 ac_site_file1
=$ac_default_prefix/share
/config.site
2220 ac_site_file2
=$ac_default_prefix/etc
/config.site
2222 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2224 test "x$ac_site_file" = xNONE
&& continue
2225 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2227 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2228 sed 's/^/| /' "$ac_site_file" >&5
2230 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2232 as_fn_error $?
"failed to load site script $ac_site_file
2233 See \`config.log' for more details" "$LINENO" 5; }
2237 if test -r "$cache_file"; then
2238 # Some versions of bash will fail to source /dev/null (special files
2239 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2240 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2242 $as_echo "$as_me: loading cache $cache_file" >&6;}
2244 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2245 *) .
"./$cache_file";;
2249 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2250 $as_echo "$as_me: creating cache $cache_file" >&6;}
2254 # Check that the precious variables saved in the cache have kept the same
2256 ac_cache_corrupted
=false
2257 for ac_var
in $ac_precious_vars; do
2258 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2259 eval ac_new_set
=\
$ac_env_${ac_var}_set
2260 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2261 eval ac_new_val
=\
$ac_env_${ac_var}_value
2262 case $ac_old_set,$ac_new_set in
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2265 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2266 ac_cache_corrupted
=: ;;
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2269 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2270 ac_cache_corrupted
=: ;;
2273 if test "x$ac_old_val" != "x$ac_new_val"; then
2274 # differences in whitespace do not lead to failure.
2275 ac_old_val_w
=`echo x $ac_old_val`
2276 ac_new_val_w
=`echo x $ac_new_val`
2277 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2279 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2280 ac_cache_corrupted
=:
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2283 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2284 eval $ac_var=\
$ac_old_val
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2287 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2289 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2292 # Pass precious variables to config.status.
2293 if test "$ac_new_set" = set; then
2295 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2296 *) ac_arg
=$ac_var=$ac_new_val ;;
2298 case " $ac_configure_args " in
2299 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2300 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2304 if $ac_cache_corrupted; then
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2308 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2309 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2311 ## -------------------- ##
2312 ## Main body of script. ##
2313 ## -------------------- ##
2316 ac_cpp
='$CPP $CPPFLAGS'
2317 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2318 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2319 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2329 # if PWD already has a value, it is probably wrong.
2330 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2332 # Export original configure arguments for use by sub-configures.
2333 # Quote arguments with shell meta charatcers.
2334 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2335 set -- "$progname" "$@"
2339 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2340 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2341 # if the argument is of the form -foo=baz, quote the baz part only
2342 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2345 # Add the quoted argument to the list.
2346 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2348 if test "$silent" = yes; then
2349 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2351 # Remove the initial space we just introduced and, as these will be
2352 # expanded by make, quote '$'.
2353 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2356 # Find the build, host, and target systems.
2358 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2359 if test -f "$ac_dir/install-sh"; then
2361 ac_install_sh
="$ac_aux_dir/install-sh -c"
2363 elif test -f "$ac_dir/install.sh"; then
2365 ac_install_sh
="$ac_aux_dir/install.sh -c"
2367 elif test -f "$ac_dir/shtool"; then
2369 ac_install_sh
="$ac_aux_dir/shtool install -c"
2373 if test -z "$ac_aux_dir"; then
2374 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2377 # These three variables are undocumented and unsupported,
2378 # and are intended to be withdrawn in a future Autoconf release.
2379 # They can cause serious problems if a builder's source tree is in a directory
2380 # whose full name contains unusual characters.
2381 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2382 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2383 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2386 # Make sure we can run config.sub.
2387 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2388 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2391 $as_echo_n "checking build system type... " >&6; }
2392 if ${ac_cv_build+:} false
; then :
2393 $as_echo_n "(cached) " >&6
2395 ac_build_alias
=$build_alias
2396 test "x$ac_build_alias" = x
&&
2397 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2398 test "x$ac_build_alias" = x
&&
2399 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2400 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2401 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2405 $as_echo "$ac_cv_build" >&6; }
2406 case $ac_cv_build in
2408 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2411 ac_save_IFS
=$IFS; IFS
='-'
2417 # Remember, the first character of IFS is used to create $*,
2418 # except with old shells:
2421 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2424 case ${build_alias} in
2425 "") build_noncanonical
=${build} ;;
2426 *) build_noncanonical
=${build_alias} ;;
2431 case ${host_alias} in
2432 "") host_noncanonical
=${build_noncanonical} ;;
2433 *) host_noncanonical
=${host_alias} ;;
2438 case ${target_alias} in
2439 "") target_noncanonical
=${host_noncanonical} ;;
2440 *) target_noncanonical
=${target_alias} ;;
2446 test "$host_noncanonical" = "$target_noncanonical" &&
2447 test "$program_prefix$program_suffix$program_transform_name" = \
2449 program_transform_name
=s
,y
,y
,
2451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2452 $as_echo_n "checking host system type... " >&6; }
2453 if ${ac_cv_host+:} false
; then :
2454 $as_echo_n "(cached) " >&6
2456 if test "x$host_alias" = x
; then
2457 ac_cv_host
=$ac_cv_build
2459 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2460 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2465 $as_echo "$ac_cv_host" >&6; }
2468 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2471 ac_save_IFS
=$IFS; IFS
='-'
2477 # Remember, the first character of IFS is used to create $*,
2478 # except with old shells:
2481 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2485 $as_echo_n "checking target system type... " >&6; }
2486 if ${ac_cv_target+:} false
; then :
2487 $as_echo_n "(cached) " >&6
2489 if test "x$target_alias" = x
; then
2490 ac_cv_target
=$ac_cv_host
2492 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2493 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2498 $as_echo "$ac_cv_target" >&6; }
2499 case $ac_cv_target in
2501 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2503 target
=$ac_cv_target
2504 ac_save_IFS
=$IFS; IFS
='-'
2510 # Remember, the first character of IFS is used to create $*,
2511 # except with old shells:
2514 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2517 # The aliases save the names the user supplied, while $host etc.
2518 # will get canonicalized.
2519 test -n "$target_alias" &&
2520 test "$program_prefix$program_suffix$program_transform_name" = \
2522 program_prefix
=${target_alias}-
2524 test "$program_prefix" != NONE
&&
2525 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2526 # Use a double $ so make ignores it.
2527 test "$program_suffix" != NONE
&&
2528 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2529 # Double any \ or $.
2530 # By default was `s,x,x', remove it if useless.
2531 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2532 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2536 # Get 'install' or 'install-sh' and its variants.
2537 # Find a good install program. We prefer a C program (faster),
2538 # so one script is as good as another. But avoid the broken or
2539 # incompatible versions:
2540 # SysV /etc/install, /usr/sbin/install
2541 # SunOS /usr/etc/install
2542 # IRIX /sbin/install
2544 # AmigaOS /C/install, which installs bootblocks on floppy discs
2545 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2546 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2547 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2548 # OS/2's system install, which has a completely different semantic
2549 # ./install, which can be erroneously created by make from ./install.sh.
2550 # Reject install programs that cannot install multiple files.
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2552 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2553 if test -z "$INSTALL"; then
2554 if ${ac_cv_path_install+:} false
; then :
2555 $as_echo_n "(cached) " >&6
2557 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2561 test -z "$as_dir" && as_dir
=.
2562 # Account for people who put trailing slashes in PATH elements.
2563 case $as_dir/ in #((
2564 .
/ | .
// |
/[cC
]/* | \
2565 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2566 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2569 # OSF1 and SCO ODT 3.0 have their own names for install.
2570 # Don't use installbsd from OSF since it installs stuff as root
2572 for ac_prog
in ginstall scoinst
install; do
2573 for ac_exec_ext
in '' $ac_executable_extensions; do
2574 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2575 if test $ac_prog = install &&
2576 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2577 # AIX install. It has an incompatible calling convention.
2579 elif test $ac_prog = install &&
2580 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2581 # program-specific install script used by HP pwplus--don't use.
2584 rm -rf conftest.one conftest.two conftest.dir
2585 echo one
> conftest.one
2586 echo two
> conftest.two
2588 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2589 test -s conftest.one
&& test -s conftest.two
&&
2590 test -s conftest.dir
/conftest.one
&&
2591 test -s conftest.dir
/conftest.two
2593 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2606 rm -rf conftest.one conftest.two conftest.dir
2609 if test "${ac_cv_path_install+set}" = set; then
2610 INSTALL
=$ac_cv_path_install
2612 # As a last resort, use the slow shell script. Don't cache a
2613 # value for INSTALL within a source directory, because that will
2614 # break other packages using the cache if that directory is
2615 # removed, or if the value is a relative name.
2616 INSTALL
=$ac_install_sh
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2620 $as_echo "$INSTALL" >&6; }
2622 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2623 # It thinks the first close brace ends the variable substitution.
2624 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2626 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2628 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2631 $as_echo_n "checking whether ln works... " >&6; }
2632 if ${acx_cv_prog_LN+:} false
; then :
2633 $as_echo_n "(cached) " >&6
2635 rm -f conftestdata_t
2636 echo >conftestdata_f
2637 if ln conftestdata_f conftestdata_t
2>/dev
/null
2643 rm -f conftestdata_f conftestdata_t
2646 if test $acx_cv_prog_LN = no
; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2649 $as_echo "no, using $LN" >&6; }
2651 LN
="$acx_cv_prog_LN"
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2653 $as_echo "yes" >&6; }
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2657 $as_echo_n "checking whether ln -s works... " >&6; }
2659 if test "$LN_S" = "ln -s"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2661 $as_echo "yes" >&6; }
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2664 $as_echo "no, using $LN_S" >&6; }
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2668 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2669 if ${ac_cv_path_SED+:} false
; then :
2670 $as_echo_n "(cached) " >&6
2672 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2673 for ac_i
in 1 2 3 4 5 6 7; do
2674 ac_script
="$ac_script$as_nl$ac_script"
2676 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2677 { ac_script
=; unset ac_script
;}
2678 if test -z "$SED"; then
2679 ac_path_SED_found
=false
2680 # Loop through the user's path and test for each of PROGNAME-LIST
2681 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2685 test -z "$as_dir" && as_dir
=.
2686 for ac_prog
in sed gsed
; do
2687 for ac_exec_ext
in '' $ac_executable_extensions; do
2688 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2689 as_fn_executable_p
"$ac_path_SED" ||
continue
2690 # Check for GNU ac_path_SED and select it if it is found.
2691 # Check for GNU $ac_path_SED
2692 case `"$ac_path_SED" --version 2>&1` in
2694 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2697 $as_echo_n 0123456789 >"conftest.in"
2700 cat "conftest.in" "conftest.in" >"conftest.tmp"
2701 mv "conftest.tmp" "conftest.in"
2702 cp "conftest.in" "conftest.nl"
2703 $as_echo '' >> "conftest.nl"
2704 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2705 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2706 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2707 if test $ac_count -gt ${ac_path_SED_max-0}; then
2708 # Best one so far, save it but keep looking for a better one
2709 ac_cv_path_SED
="$ac_path_SED"
2710 ac_path_SED_max
=$ac_count
2712 # 10*(2^10) chars as input seems more than enough
2713 test $ac_count -gt 10 && break
2715 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2718 $ac_path_SED_found && break 3
2723 if test -z "$ac_cv_path_SED"; then
2724 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2732 $as_echo "$ac_cv_path_SED" >&6; }
2733 SED
="$ac_cv_path_SED"
2736 for ac_prog
in gawk mawk nawk
awk
2738 # Extract the first word of "$ac_prog", so it can be a program name with args.
2739 set dummy
$ac_prog; ac_word
=$2
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2741 $as_echo_n "checking for $ac_word... " >&6; }
2742 if ${ac_cv_prog_AWK+:} false
; then :
2743 $as_echo_n "(cached) " >&6
2745 if test -n "$AWK"; then
2746 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2748 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2752 test -z "$as_dir" && as_dir
=.
2753 for ac_exec_ext
in '' $ac_executable_extensions; do
2754 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2755 ac_cv_prog_AWK
="$ac_prog"
2756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2766 if test -n "$AWK"; then
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2768 $as_echo "$AWK" >&6; }
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2775 test -n "$AWK" && break
2779 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2781 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2783 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2784 INSTALL
="${srcpwd}/install-sh -c"
2787 # Set srcdir to "." if that's what it is.
2788 # This is important for multilib support.
2790 if test "${pwd}" = "${srcpwd}" ; then
2798 ### To add a new directory to the tree, first choose whether it is a target
2799 ### or a host dependent tool. Then put it into the appropriate list
2800 ### (library or tools, host or target), doing a dependency sort.
2802 # Subdirs will be configured in the order listed in build_configdirs,
2803 # configdirs, or target_configdirs; see the serialization section below.
2805 # Dependency sorting is only needed when *configuration* must be done in
2806 # a particular order. In all cases a dependency should be specified in
2807 # the Makefile, whether or not it's implicitly specified here.
2809 # Double entries in build_configdirs, configdirs, or target_configdirs may
2810 # cause circular dependencies and break everything horribly.
2812 # these library is used by various programs built for the build
2815 build_libs
="build-libiberty build-libcpp"
2817 # these tools are built for the build environment
2818 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2820 # these libraries are used by various programs built for the host environment
2822 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2824 # these tools are built for the host environment
2825 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2826 # know that we are building the simulator.
2827 # binutils, gas and ld appear in that order because it makes sense to run
2828 # "make check" in that particular order.
2829 # If --enable-gold is used, "gold" may replace "ld".
2830 host_tools
="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
2832 # these libraries are built for the target environment, and are built after
2833 # the host libraries and the host tools (which may be a cross compiler)
2834 # Note that libiberty is not a target library.
2835 target_libraries
="target-libgcc \
2836 target-libbacktrace \
2840 target-liboffloadmic \
2843 target-libstdc++-v3 \
2844 target-libsanitizer \
2847 target-libquadmath \
2848 target-libgfortran \
2857 # these tools are built using the target libraries, and are intended to
2858 # run only in the target environment
2860 # note: any program that *uses* libraries that are in the "target_libraries"
2861 # list belongs in this list.
2863 target_tools
="target-rda"
2865 ################################################################################
2867 ## All tools belong in one of the four categories, and are assigned above
2868 ## We assign ${configdirs} this way to remove all embedded newlines. This
2869 ## is important because configure will choke if they ever get through.
2870 ## ${configdirs} is directories we build using the host tools.
2871 ## ${target_configdirs} is directories we build using the target tools.
2872 configdirs
=`echo ${host_libs} ${host_tools}`
2873 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2874 build_configdirs
=`echo ${build_libs} ${build_tools}`
2878 ################################################################################
2880 srcname
="gnu development package"
2882 # This gets set non-empty for some net releases of packages.
2885 # Define is_cross_compiler to save on calls to 'test'.
2887 if test x
"${host}" = x
"${target}" ; then
2888 is_cross_compiler
=no
2890 is_cross_compiler
=yes
2893 # Find the build and target subdir names.
2895 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2896 # have matching libraries, they should use host libraries: Makefile.tpl
2897 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2898 # However, they still use the build modules, because the corresponding
2899 # host modules (e.g. bison) are only built for the host when bootstrap
2901 # - build_subdir is where we find build modules, and never changes.
2902 # - build_libsubdir is where we find build libraries, and can be overridden.
2904 # Prefix 'build-' so this never conflicts with target_subdir.
2905 build_subdir
="build-${build_noncanonical}"
2907 # Check whether --with-build-libsubdir was given.
2908 if test "${with_build_libsubdir+set}" = set; then :
2909 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2911 build_libsubdir
="$build_subdir"
2914 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2915 if ( test $srcdir = .
&& test -d gcc
) \
2916 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2917 host_subdir
="host-${host_noncanonical}"
2922 target_subdir
=${target_noncanonical}
2924 # Be sure to cover against remnants of an in-tree build.
2925 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2926 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2927 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2930 # Skipdirs are removed silently.
2932 # Noconfigdirs are removed loudly.
2936 # Make sure we don't let GNU ld be added if we didn't want it.
2937 if test x
$with_gnu_ld = xno
; then
2939 noconfigdirs
="$noconfigdirs ld gold"
2943 # Make sure we don't let GNU as be added if we didn't want it.
2944 if test x
$with_gnu_as = xno
; then
2946 noconfigdirs
="$noconfigdirs gas"
2951 # Check whether --with-system-zlib was given.
2952 if test "${with_system_zlib+set}" = set; then :
2953 withval
=$with_system_zlib;
2956 # Make sure we don't let ZLIB be added if we didn't want it.
2957 if test x
$with_system_zlib = xyes
; then
2958 use_included_zlib
=no
2959 noconfigdirs
="$noconfigdirs zlib"
2962 # some tools are so dependent upon X11 that if we're not building with X,
2963 # it's not even worth trying to configure, much less build, that tool.
2966 yes |
"") ;; # the default value for this tree is that X11 is available
2968 skipdirs
="${skipdirs} tk itcl libgui"
2969 # We won't be able to build gdbtk without X.
2972 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2975 # Some are only suitable for cross toolchains.
2976 # Remove these if host=target.
2977 cross_only
="target-libgloss target-newlib target-opcodes"
2979 case $is_cross_compiler in
2980 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2983 # If both --with-headers and --with-libs are specified, default to
2985 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2986 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2987 if test x
"${with_newlib}" = x
; then
2992 # Recognize --with-newlib/--without-newlib.
2993 case ${with_newlib} in
2994 no
) skipdirs
="${skipdirs} target-newlib" ;;
2995 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2998 # Check whether --enable-as-accelerator-for was given.
2999 if test "${enable_as_accelerator_for+set}" = set; then :
3000 enableval
=$enable_as_accelerator_for;
3004 # Check whether --enable-offload-targets was given.
3005 if test "${enable_offload_targets+set}" = set; then :
3006 enableval
=$enable_offload_targets;
3007 if test x
"$enable_offload_targets" = x
; then
3008 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3012 enable_offload_targets
=
3016 # Check whether --enable-offload-defaulted was given.
3017 if test "${enable_offload_defaulted+set}" = set; then :
3018 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3020 enable_offload_defaulted
=
3024 # Handle --enable-gold, --enable-ld.
3025 # --disable-gold [--enable-ld]
3026 # Build only ld. Default option.
3027 # --enable-gold [--enable-ld]
3028 # Build both gold and ld. Install gold as "ld.gold", install ld
3029 # as "ld.bfd" and "ld".
3030 # --enable-gold=default [--enable-ld]
3031 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3032 # install ld as "ld.bfd".
3033 # --enable-gold[=default] --disable-ld
3034 # Build only gold, which is then installed as both "ld.gold" and "ld".
3035 # --enable-gold --enable-ld=default
3036 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3038 # In other words, ld is default
3039 # --enable-gold=default --enable-ld=default
3043 # Check whether --enable-gold was given.
3044 if test "${enable_gold+set}" = set; then :
3045 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3050 case "${ENABLE_GOLD}" in
3052 # Check for ELF target.
3055 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3056 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3057 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3058 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3060 *-*-linux*aout
* |
*-*-linux*oldld
*)
3068 if test "$is_elf" = "yes"; then
3069 # Check for target supported by gold.
3071 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3072 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-*)
3073 configdirs
="$configdirs gold"
3074 if test x
${ENABLE_GOLD} = xdefault
; then
3085 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3089 # Check whether --enable-ld was given.
3090 if test "${enable_ld+set}" = set; then :
3091 enableval
=$enable_ld; ENABLE_LD
=$enableval
3097 case "${ENABLE_LD}" in
3099 if test x
${default_ld} != x
; then
3100 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3106 if test x
${ENABLE_GOLD} != xyes
; then
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3108 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3110 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3113 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3118 # Decide the default method for compressing debug sections.
3119 # Provide a configure time option to override our default.
3120 # Check whether --enable-compressed_debug_sections was given.
3121 if test "${enable_compressed_debug_sections+set}" = set; then :
3122 enableval
=$enable_compressed_debug_sections;
3123 if test x
"$enable_compressed_debug_sections" = xyes
; then
3124 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3128 enable_compressed_debug_sections
=
3132 # Configure extra directories which are host specific
3136 configdirs
="$configdirs libtermcap" ;;
3139 # A target can indicate whether a language isn't supported for some reason.
3140 # Only spaces may be used in this macro; not newlines or tabs.
3141 unsupported_languages
=
3143 # Remove more programs from consideration, based on the host or
3144 # target this usually means that a port of the program doesn't
3148 i
[3456789]86-*-msdosdjgpp*)
3149 noconfigdirs
="$noconfigdirs tcl tk itcl"
3154 # Check whether --enable-libquadmath was given.
3155 if test "${enable_libquadmath+set}" = set; then :
3156 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3158 ENABLE_LIBQUADMATH
=yes
3161 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3162 noconfigdirs
="$noconfigdirs target-libquadmath"
3166 # Check whether --enable-libquadmath-support was given.
3167 if test "${enable_libquadmath_support+set}" = set; then :
3168 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3170 ENABLE_LIBQUADMATH_SUPPORT
=yes
3173 enable_libquadmath_support
=
3174 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3175 enable_libquadmath_support
=no
3179 # Check whether --enable-libada was given.
3180 if test "${enable_libada+set}" = set; then :
3181 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3186 if test "${ENABLE_LIBADA}" != "yes" ; then
3187 noconfigdirs
="$noconfigdirs gnattools"
3190 # Check whether --enable-libgm2 was given.
3191 if test "${enable_libgm2+set}" = set; then :
3192 enableval
=$enable_libgm2; ENABLE_LIBGM2
=$enableval
3197 if test "${ENABLE_LIBGM2}" != "yes" ; then
3198 noconfigdirs
="$noconfigdirs gm2tools"
3201 # Check whether --enable-libssp was given.
3202 if test "${enable_libssp+set}" = set; then :
3203 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3209 # Check whether --enable-libstdcxx was given.
3210 if test "${enable_libstdcxx+set}" = set; then :
3211 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3213 ENABLE_LIBSTDCXX
=default
3216 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3217 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3220 # If this is accelerator compiler and its target is intelmic we enable
3221 # target liboffloadmic by default. If this is compiler with offloading
3222 # for intelmic we enable host liboffloadmic by default. Otherwise
3223 # liboffloadmic is disabled by default.
3224 # Check whether --enable-liboffloadmic was given.
3225 if test "${enable_liboffloadmic+set}" = set; then :
3226 enableval
=$enable_liboffloadmic; case "$enableval" in
3228 enable_liboffloadmic
=$enableval ;;
3230 as_fn_error $?
"--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3233 if test x
"$enable_as_accelerator_for" != x
; then
3235 *-intelmic-* |
*-intelmicemul-*)
3236 enable_liboffloadmic
=target
3237 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=target"
3240 enable_liboffloadmic
=no
3244 case "${enable_offload_targets}" in
3245 *-intelmic-* |
*-intelmicemul-*)
3246 enable_liboffloadmic
=host
3247 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=host"
3250 enable_liboffloadmic
=no
3258 # Enable libgomp by default on hosted POSIX systems, and a few others.
3259 if test x
$enable_libgomp = x
; then
3261 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3263 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3265 *-*-solaris2* |
*-*-hpux11*)
3267 *-*-darwin* |
*-*-aix*)
3269 nvptx
*-*-* | amdgcn
*-*-*)
3272 noconfigdirs
="$noconfigdirs target-libgomp"
3277 # Disable libatomic on unsupported systems.
3278 if test -d ${srcdir}/libatomic
; then
3279 if test x
$enable_libatomic = x
; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3281 $as_echo_n "checking for libatomic support... " >&6; }
3282 if (srcdir
=${srcdir}/libatomic
; \
3283 .
${srcdir}/configure.tgt
; \
3284 test -n "$UNSUPPORTED")
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 noconfigdirs
="$noconfigdirs target-libatomic"
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291 $as_echo "yes" >&6; }
3296 # Disable liboffloadmic on unsupported systems.
3297 if test -d ${srcdir}/liboffloadmic
; then
3298 if test x
$enable_liboffloadmic != xno
; then
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3300 $as_echo_n "checking for liboffloadmic support... " >&6; }
3301 if (srcdir
=${srcdir}/liboffloadmic
; \
3302 .
${srcdir}/configure.tgt
; \
3303 test -n "$UNSUPPORTED")
3305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3306 $as_echo "no" >&6; }
3307 noconfigdirs
="$noconfigdirs target-liboffloadmic"
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3310 $as_echo "yes" >&6; }
3315 # Disable libitm on unsupported systems.
3316 if test -d ${srcdir}/libitm
; then
3317 if test x
$enable_libitm = x
; then
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3319 $as_echo_n "checking for libitm support... " >&6; }
3320 if (srcdir
=${srcdir}/libitm
; \
3321 .
${srcdir}/configure.tgt
; \
3322 test -n "$UNSUPPORTED")
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325 $as_echo "no" >&6; }
3326 noconfigdirs
="$noconfigdirs target-libitm"
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329 $as_echo "yes" >&6; }
3334 # Disable libsanitizer on unsupported systems.
3335 if test -d ${srcdir}/libsanitizer
; then
3336 if test x
$enable_libsanitizer = x
; then
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3338 $as_echo_n "checking for libsanitizer support... " >&6; }
3339 if (srcdir
=${srcdir}/libsanitizer
; \
3340 .
${srcdir}/configure.tgt
; \
3341 test -n "$UNSUPPORTED")
3343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3344 $as_echo "no" >&6; }
3345 noconfigdirs
="$noconfigdirs target-libsanitizer"
3347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3348 $as_echo "yes" >&6; }
3353 # Disable libvtv on unsupported systems.
3354 if test -d ${srcdir}/libvtv
; then
3355 if test x
$enable_libvtv = x
; then
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3357 $as_echo_n "checking for libvtv support... " >&6; }
3358 if (srcdir
=${srcdir}/libvtv
; \
3359 .
${srcdir}/configure.tgt
; \
3360 test "$VTV_SUPPORTED" != "yes")
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3363 $as_echo "no" >&6; }
3364 noconfigdirs
="$noconfigdirs target-libvtv"
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3367 $as_echo "yes" >&6; }
3372 # Disable libquadmath for some systems.
3375 noconfigdirs
="$noconfigdirs target-libquadmath"
3377 # libquadmath is unused on AIX and libquadmath build process use of
3378 # LD_LIBRARY_PATH can break AIX bootstrap.
3379 powerpc-
*-aix* | rs6000-
*-aix*)
3380 noconfigdirs
="$noconfigdirs target-libquadmath"
3384 # Disable libssp for some systems.
3387 # No hosted I/O support.
3388 noconfigdirs
="$noconfigdirs target-libssp"
3391 noconfigdirs
="$noconfigdirs target-libssp"
3393 powerpc-
*-aix* | rs6000-
*-aix*)
3394 noconfigdirs
="$noconfigdirs target-libssp"
3397 # No hosted I/O support.
3398 noconfigdirs
="$noconfigdirs target-libssp"
3401 # libssp uses a misaligned load to trigger a fault, but the RL78
3402 # doesn't fault for those - instead, it gives a build-time error
3403 # for explicit misaligned loads.
3404 noconfigdirs
="$noconfigdirs target-libssp"
3407 # No hosted I/O support.
3408 noconfigdirs
="$noconfigdirs target-libssp"
3412 # Disable libstdc++-v3 for some systems.
3413 # Allow user to override this if they pass --enable-libstdc++-v3
3414 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3417 # VxWorks uses the Dinkumware C++ library.
3418 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3421 # Not ported/fails to build when using newlib.
3422 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3425 # the C++ libraries don't build on top of CE's C libraries
3426 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3429 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3432 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3435 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3440 # Disable C++ on systems where it is known to not work.
3441 # For testing, you can override this with --enable-languages=c++.
3442 case ,${enable_languages}, in
3448 unsupported_languages
="$unsupported_languages c++"
3454 # Disable Objc on systems where it is known to not work.
3455 # For testing, you can override this with --enable-languages=objc.
3456 case ,${enable_languages}, in
3462 unsupported_languages
="$unsupported_languages objc"
3468 # Disable D on systems where it is known to not work.
3469 # For testing, you can override this with --enable-languages=d.
3470 case ,${enable_languages}, in
3476 unsupported_languages
="$unsupported_languages d"
3482 # Disable libphobos on unsupported systems.
3483 # For testing, you can override this with --enable-libphobos.
3484 if test -d ${srcdir}/libphobos
; then
3485 if test x
$enable_libphobos = x
; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3487 $as_echo_n "checking for libphobos support... " >&6; }
3488 if (srcdir
=${srcdir}/libphobos
; \
3489 .
${srcdir}/configure.tgt
; \
3490 test "$LIBPHOBOS_SUPPORTED" != "yes")
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3493 $as_echo "no" >&6; }
3494 noconfigdirs
="$noconfigdirs target-libphobos"
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3497 $as_echo "yes" >&6; }
3502 # Disable Fortran for some systems.
3505 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3506 unsupported_languages
="$unsupported_languages fortran"
3509 unsupported_languages
="$unsupported_languages fortran"
3513 # Disable libffi for some systems.
3517 i
[3456789]86-*-darwin*)
3519 x86_64-
*-darwin[912]*)
3522 noconfigdirs
="$noconfigdirs target-libffi"
3525 noconfigdirs
="$noconfigdirs target-libffi"
3528 noconfigdirs
="$noconfigdirs target-libffi"
3531 noconfigdirs
="$noconfigdirs target-libffi"
3534 noconfigdirs
="$noconfigdirs target-libffi"
3537 noconfigdirs
="$noconfigdirs target-libffi"
3540 noconfigdirs
="$noconfigdirs target-libffi"
3542 aarch64
*-*-freebsd*)
3543 noconfigdirs
="$noconfigdirs target-libffi"
3546 noconfigdirs
="$noconfigdirs target-libffi"
3549 noconfigdirs
="$noconfigdirs target-libffi"
3552 noconfigdirs
="$noconfigdirs target-libffi"
3555 noconfigdirs
="$noconfigdirs target-libffi"
3558 noconfigdirs
="$noconfigdirs target-libffi"
3560 cris-
*-* | crisv32-
*-*)
3564 *) # See PR46792 regarding target-libffi.
3565 noconfigdirs
="$noconfigdirs target-libffi";;
3569 noconfigdirs
="$noconfigdirs target-libffi"
3574 noconfigdirs
="$noconfigdirs target-libffi"
3577 noconfigdirs
="$noconfigdirs target-libffi"
3579 i
[3456789]86-w64-mingw*)
3580 noconfigdirs
="$noconfigdirs target-libffi"
3582 i
[3456789]86-*-mingw*)
3583 noconfigdirs
="$noconfigdirs target-libffi"
3586 noconfigdirs
="$noconfigdirs target-libffi"
3589 noconfigdirs
="$noconfigdirs target-libffi"
3596 noconfigdirs
="$noconfigdirs target-libffi"
3599 noconfigdirs
="$noconfigdirs target-libffi"
3603 # Disable the go frontend on systems where it is known to not work. Please keep
3604 # this in sync with contrib/config-list.mk.
3606 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3607 unsupported_languages
="$unsupported_languages go"
3611 # Only allow gdbserver on some systems.
3612 if test -d ${srcdir}/gdbserver
; then
3613 if test x
$enable_gdbserver = x
; then
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3615 $as_echo_n "checking for gdbserver support... " >&6; }
3616 if (srcdir
=${srcdir}/gdbserver
; \
3617 .
${srcdir}/configure.srv
; \
3618 test -n "$UNSUPPORTED")
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3622 noconfigdirs
="$noconfigdirs gdbserver"
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3625 $as_echo "yes" >&6; }
3630 # Disable libgo for some systems where it is known to not work.
3631 # For testing, you can easily override this with --enable-libgo.
3632 if test x
$enable_libgo = x
; then
3636 noconfigdirs
="$noconfigdirs target-libgo"
3638 *-*-cygwin* |
*-*-mingw*)
3639 noconfigdirs
="$noconfigdirs target-libgo"
3642 noconfigdirs
="$noconfigdirs target-libgo"
3647 # Default libgloss CPU subdirectory.
3648 libgloss_dir
="$target_cpu"
3651 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3655 libgloss_dir
=aarch64
3660 cris-
*-* | crisv32-
*-*)
3669 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3670 libgloss_dir
=m68hc11
3672 m68
*-*-* | fido-
*-*)
3689 # Disable newlib and libgloss for various target OSes.
3692 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3694 i
[3456789]86-*-linux*)
3695 # This section makes it possible to build newlib natively on linux.
3696 # If we are using a cross compiler then don't configure newlib.
3697 if test x
${is_cross_compiler} != xno
; then
3698 noconfigdirs
="$noconfigdirs target-newlib"
3700 noconfigdirs
="$noconfigdirs target-libgloss"
3701 # If we are not using a cross compiler, do configure newlib.
3702 # Note however, that newlib will only be configured in this situation
3703 # if the --with-newlib option has been given, because otherwise
3704 # 'target-newlib' will appear in skipdirs.
3706 i
[3456789]86-*-rdos*)
3707 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3709 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3710 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3713 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3716 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3719 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3722 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3725 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3728 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3731 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3733 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3734 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3737 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3740 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3743 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3746 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3749 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3752 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3755 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3763 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3764 noconfigdirs
="$noconfigdirs sim target-rda"
3769 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3770 noconfigdirs
="$noconfigdirs sim target-rda"
3773 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3774 noconfigdirs
="$noconfigdirs sim target-rda"
3776 i
[3456789]86-*-darwin*)
3777 noconfigdirs
="$noconfigdirs ld gprof"
3778 noconfigdirs
="$noconfigdirs sim target-rda"
3780 x86_64-
*-darwin[912]*)
3781 noconfigdirs
="$noconfigdirs ld gas gprof"
3782 noconfigdirs
="$noconfigdirs sim target-rda"
3785 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3786 noconfigdirs
="$noconfigdirs sim target-rda"
3791 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
3792 && ! test -d ${srcdir}/gmp \
3793 && test -f /usr
/local
/include
/gmp.h
; then
3798 # Remove unsupported stuff on all kaOS configurations.
3799 noconfigdirs
="$noconfigdirs target-libgloss"
3806 noconfigdirs
="$noconfigdirs target-libgloss"
3809 noconfigdirs
="$noconfigdirs target-libgloss"
3811 # The tpf target doesn't support gdb yet.
3813 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3816 noconfigdirs
="$noconfigdirs target-rda"
3821 # ld works, but does not support shared libraries.
3822 # gas doesn't generate exception information.
3823 noconfigdirs
="$noconfigdirs gas ld"
3826 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3829 # newlib is not 64 bit ready
3830 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3833 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3835 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3836 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3839 noconfigdirs
="$noconfigdirs sim"
3842 noconfigdirs
="$noconfigdirs target-libgloss"
3845 noconfigdirs
="$noconfigdirs ld target-libgloss"
3848 if test x
${with_avrlibc} != xno
; then
3849 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3852 c4x-
*-* | tic4x-
*-*)
3853 noconfigdirs
="$noconfigdirs target-libgloss"
3856 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3859 noconfigdirs
="$noconfigdirs target-libgloss"
3862 noconfigdirs
="$noconfigdirs gdb"
3865 noconfigdirs
="$noconfigdirs gdb"
3868 noconfigdirs
="$noconfigdirs target-rda gprof"
3871 noconfigdirs
="$noconfigdirs"
3874 noconfigdirs
="$noconfigdirs target-libgloss"
3877 noconfigdirs
="$noconfigdirs target-libgloss"
3879 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3882 noconfigdirs
="$noconfigdirs gdb"
3885 noconfigdirs
="$noconfigdirs gdb ld"
3893 hppa
*-*-openbsd* | \
3899 noconfigdirs
="$noconfigdirs ld"
3902 noconfigdirs
="$noconfigdirs gdb"
3905 # No gdb support yet.
3906 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3909 # No ld support yet.
3910 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3913 # No ld support yet.
3914 noconfigdirs
="$noconfigdirs libgui itcl ld"
3916 i
[3456789]86-w64-mingw*)
3918 i
[3456789]86-*-mingw*)
3919 target_configdirs
="$target_configdirs target-winsup"
3922 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3923 noconfigdirs
="$noconfigdirs target-libgloss"
3924 # always build newlib if winsup directory is present.
3925 if test -d "$srcdir/winsup/cygwin"; then
3926 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3927 elif test -d "$srcdir/newlib"; then
3928 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3932 noconfigdirs
="$noconfigdirs target-libgloss"
3934 i
[3456789]86-*-sco3.2v5
*)
3935 # The linker does not yet know about weak symbols in COFF,
3936 # and is not configured to handle mixed ELF and COFF.
3937 noconfigdirs
="$noconfigdirs ld target-libgloss"
3939 i
[3456789]86-*-sco*)
3940 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3942 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3943 noconfigdirs
="$noconfigdirs target-libgloss"
3945 i
[3456789]86-*-sysv4*)
3946 noconfigdirs
="$noconfigdirs target-libgloss"
3948 i
[3456789]86-*-beos*)
3949 noconfigdirs
="$noconfigdirs gdb"
3951 i
[3456789]86-*-rdos*)
3952 noconfigdirs
="$noconfigdirs gdb"
3955 noconfigdirs
="$noconfigdirs gdb"
3958 noconfigdirs
="$noconfigdirs sim"
3961 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3962 noconfigdirs
="$noconfigdirs $target_libraries"
3965 noconfigdirs
="$noconfigdirs gdb gprof"
3968 # copied from rs6000-*-* entry
3969 noconfigdirs
="$noconfigdirs gprof"
3971 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3972 target_configdirs
="$target_configdirs target-winsup"
3973 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3974 # always build newlib.
3975 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3977 # This is temporary until we can link against shared libraries
3978 powerpcle-
*-solaris*)
3979 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3982 noconfigdirs
="$noconfigdirs gdb"
3985 noconfigdirs
="$noconfigdirs gprof"
3988 noconfigdirs
="$noconfigdirs gprof"
3991 noconfigdirs
="$noconfigdirs gprof"
3994 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
3997 noconfigdirs
="$noconfigdirs gprof"
3999 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
4000 if test x
$with_newlib = xyes
; then
4001 noconfigdirs
="$noconfigdirs gprof"
4005 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4008 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4011 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
4015 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
4016 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
4017 noconfigdirs
="$noconfigdirs ld gas gprof"
4020 noconfigdirs
="$noconfigdirs gprof"
4023 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4030 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4034 if test x
${is_cross_compiler} = xno
; then
4039 noconfigdirs
="$noconfigdirs sim"
4041 tilepro
*-*-* | tilegx
*-*-*)
4042 noconfigdirs
="$noconfigdirs sim"
4045 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4048 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4051 noconfigdirs
="$noconfigdirs ld"
4055 # If we aren't building newlib, then don't build libgloss, since libgloss
4056 # depends upon some newlib header files.
4057 case "${noconfigdirs}" in
4058 *target-libgloss
*) ;;
4059 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4062 # Work in distributions that contain no compiler tools, like Autoconf.
4063 host_makefile_frag
=/dev
/null
4064 if test -d ${srcdir}/config
; then
4066 i
[3456789]86-*-msdosdjgpp*)
4067 host_makefile_frag
="config/mh-djgpp"
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4072 $as_echo_n "checking to see if cat works as expected... " >&6; }
4073 echo a
>cygwin-cat-check
4074 if test `cat cygwin-cat-check` = a
; then
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4077 $as_echo "yes" >&6; }
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081 $as_echo "no" >&6; }
4082 as_fn_error $?
"The cat command does not ignore carriage return characters.
4083 Please either mount the build directory in binary mode or run the following
4084 commands before running any configure script:
4090 host_makefile_frag
="config/mh-cygwin"
4093 host_makefile_frag
="config/mh-mingw"
4096 host_makefile_frag
="config/mh-alpha-linux"
4099 host_makefile_frag
="config/mh-pa-hpux10"
4102 host_makefile_frag
="config/mh-pa"
4105 host_makefile_frag
="config/mh-pa"
4107 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4108 host_makefile_frag
="config/mh-darwin"
4111 host_makefile_frag
="config/mh-ppc-aix"
4114 host_makefile_frag
="config/mh-ppc-aix"
4119 if test "${build}" != "${host}" ; then
4120 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4121 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4122 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4123 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4124 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4125 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4126 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4127 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4128 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4129 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4130 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4131 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4132 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4133 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4135 AR_FOR_BUILD
="\$(AR)"
4136 AS_FOR_BUILD
="\$(AS)"
4137 CC_FOR_BUILD
="\$(CC)"
4138 CXX_FOR_BUILD
="\$(CXX)"
4139 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4140 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4141 GOC_FOR_BUILD
="\$(GOC)"
4142 GDC_FOR_BUILD
="\$(GDC)"
4143 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4144 LD_FOR_BUILD
="\$(LD)"
4145 NM_FOR_BUILD
="\$(NM)"
4146 RANLIB_FOR_BUILD
="\$(RANLIB)"
4147 WINDRES_FOR_BUILD
="\$(WINDRES)"
4148 WINDMC_FOR_BUILD
="\$(WINDMC)"
4152 ac_cpp
='$CPP $CPPFLAGS'
4153 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4154 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4155 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4156 if test -n "$ac_tool_prefix"; then
4157 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4158 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160 $as_echo_n "checking for $ac_word... " >&6; }
4161 if ${ac_cv_prog_CC+:} false
; then :
4162 $as_echo_n "(cached) " >&6
4164 if test -n "$CC"; then
4165 ac_cv_prog_CC
="$CC" # Let the user override the test.
4167 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4171 test -z "$as_dir" && as_dir
=.
4172 for ac_exec_ext
in '' $ac_executable_extensions; do
4173 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4174 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4185 if test -n "$CC"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4187 $as_echo "$CC" >&6; }
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4195 if test -z "$ac_cv_prog_CC"; then
4197 # Extract the first word of "gcc", so it can be a program name with args.
4198 set dummy gcc
; ac_word
=$2
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4200 $as_echo_n "checking for $ac_word... " >&6; }
4201 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4202 $as_echo_n "(cached) " >&6
4204 if test -n "$ac_ct_CC"; then
4205 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4207 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4211 test -z "$as_dir" && as_dir
=.
4212 for ac_exec_ext
in '' $ac_executable_extensions; do
4213 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4214 ac_cv_prog_ac_ct_CC
="gcc"
4215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4224 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4225 if test -n "$ac_ct_CC"; then
4226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4227 $as_echo "$ac_ct_CC" >&6; }
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4230 $as_echo "no" >&6; }
4233 if test "x$ac_ct_CC" = x
; then
4236 case $cross_compiling:$ac_tool_warned in
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4240 ac_tool_warned
=yes ;;
4248 if test -z "$CC"; then
4249 if test -n "$ac_tool_prefix"; then
4250 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4251 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4253 $as_echo_n "checking for $ac_word... " >&6; }
4254 if ${ac_cv_prog_CC+:} false
; then :
4255 $as_echo_n "(cached) " >&6
4257 if test -n "$CC"; then
4258 ac_cv_prog_CC
="$CC" # Let the user override the test.
4260 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4264 test -z "$as_dir" && as_dir
=.
4265 for ac_exec_ext
in '' $ac_executable_extensions; do
4266 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4267 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 if test -n "$CC"; then
4279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4280 $as_echo "$CC" >&6; }
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4283 $as_echo "no" >&6; }
4289 if test -z "$CC"; then
4290 # Extract the first word of "cc", so it can be a program name with args.
4291 set dummy cc
; ac_word
=$2
4292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4293 $as_echo_n "checking for $ac_word... " >&6; }
4294 if ${ac_cv_prog_CC+:} false
; then :
4295 $as_echo_n "(cached) " >&6
4297 if test -n "$CC"; then
4298 ac_cv_prog_CC
="$CC" # Let the user override the test.
4301 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4305 test -z "$as_dir" && as_dir
=.
4306 for ac_exec_ext
in '' $ac_executable_extensions; do
4307 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4308 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4309 ac_prog_rejected
=yes
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4320 if test $ac_prog_rejected = yes; then
4321 # We found a bogon in the path, so make sure we never use it.
4322 set dummy
$ac_cv_prog_CC
4324 if test $# != 0; then
4325 # We chose a different compiler from the bogus one.
4326 # However, it has the same basename, so the bogon will be chosen
4327 # first if we set CC to just the basename; use the full file name.
4329 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4335 if test -n "$CC"; then
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4337 $as_echo "$CC" >&6; }
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4340 $as_echo "no" >&6; }
4345 if test -z "$CC"; then
4346 if test -n "$ac_tool_prefix"; then
4347 for ac_prog
in cl.exe
4349 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4350 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4352 $as_echo_n "checking for $ac_word... " >&6; }
4353 if ${ac_cv_prog_CC+:} false
; then :
4354 $as_echo_n "(cached) " >&6
4356 if test -n "$CC"; then
4357 ac_cv_prog_CC
="$CC" # Let the user override the test.
4359 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4363 test -z "$as_dir" && as_dir
=.
4364 for ac_exec_ext
in '' $ac_executable_extensions; do
4365 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4366 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4377 if test -n "$CC"; then
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4379 $as_echo "$CC" >&6; }
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4382 $as_echo "no" >&6; }
4386 test -n "$CC" && break
4389 if test -z "$CC"; then
4391 for ac_prog
in cl.exe
4393 # Extract the first word of "$ac_prog", so it can be a program name with args.
4394 set dummy
$ac_prog; ac_word
=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4398 $as_echo_n "(cached) " >&6
4400 if test -n "$ac_ct_CC"; then
4401 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir
=.
4408 for ac_exec_ext
in '' $ac_executable_extensions; do
4409 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_ac_ct_CC
="$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4420 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4421 if test -n "$ac_ct_CC"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4423 $as_echo "$ac_ct_CC" >&6; }
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4430 test -n "$ac_ct_CC" && break
4433 if test "x$ac_ct_CC" = x
; then
4436 case $cross_compiling:$ac_tool_warned in
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4440 ac_tool_warned
=yes ;;
4449 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4450 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4451 as_fn_error $?
"no acceptable C compiler found in \$PATH
4452 See \`config.log' for more details" "$LINENO" 5; }
4454 # Provide some information about the compiler.
4455 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4458 for ac_option
in --version -v -V -qversion; do
4459 { { ac_try
="$ac_compiler $ac_option >&5"
4461 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4462 *) ac_try_echo=$ac_try;;
4464 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4465 $as_echo "$ac_try_echo"; } >&5
4466 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4468 if test -s conftest.err; then
4470 ... rest of stderr output deleted ...
4471 10q' conftest.err >conftest.er1
4472 cat conftest.er1 >&5
4474 rm -f conftest.er1 conftest.err
4475 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4476 test $ac_status = 0; }
4479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4480 /* end confdefs.h. */
4490 ac_clean_files_save=$ac_clean_files
4491 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4492 # Try to create an executable without -o first, disregard a.out.
4493 # It will help us diagnose broken compilers, and finding out an intuition
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4496 $as_echo_n "checking whether the C compiler works... " >&6; }
4497 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4499 # The possible output files:
4500 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4503 for ac_file in $ac_files
4506 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4507 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4512 if { { ac_try="$ac_link_default"
4514 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4515 *) ac_try_echo
=$ac_try;;
4517 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4518 $as_echo "$ac_try_echo"; } >&5
4519 (eval "$ac_link_default") 2>&5
4521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4522 test $ac_status = 0; }; then :
4523 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4524 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4525 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4526 # so that the user can short-circuit this test for compilers unknown to
4528 for ac_file
in $ac_files ''
4530 test -f "$ac_file" ||
continue
4532 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4535 # We found the default executable, but exeext='' is most
4539 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4541 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4543 # We set ac_cv_exeext here because the later test for it is not
4544 # safe: cross compilers may not add the suffix if given an `-o'
4545 # argument, so we may need to know it at that point already.
4546 # Even if this section looks crufty: it has the advantage of
4553 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4558 if test -z "$ac_file"; then :
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4560 $as_echo "no" >&6; }
4561 $as_echo "$as_me: failed program was:" >&5
4562 sed 's/^/| /' conftest.
$ac_ext >&5
4564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4566 as_fn_error
77 "C compiler cannot create executables
4567 See \`config.log' for more details" "$LINENO" 5; }
4569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4570 $as_echo "yes" >&6; }
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4573 $as_echo_n "checking for C compiler default output file name... " >&6; }
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4575 $as_echo "$ac_file" >&6; }
4576 ac_exeext
=$ac_cv_exeext
4578 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4579 ac_clean_files
=$ac_clean_files_save
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4581 $as_echo_n "checking for suffix of executables... " >&6; }
4582 if { { ac_try
="$ac_link"
4584 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4585 *) ac_try_echo=$ac_try;;
4587 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4588 $as_echo "$ac_try_echo"; } >&5
4589 (eval "$ac_link") 2>&5
4591 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4592 test $ac_status = 0; }; then :
4593 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4594 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4595 # work properly (i.e., refer to `conftest.exe'), while it won't with
4597 for ac_file
in conftest.exe conftest conftest.
*; do
4598 test -f "$ac_file" ||
continue
4600 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4601 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4607 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4609 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4610 See \`config.log' for more details" "$LINENO" 5; }
4612 rm -f conftest conftest
$ac_cv_exeext
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4614 $as_echo "$ac_cv_exeext" >&6; }
4616 rm -f conftest.
$ac_ext
4617 EXEEXT
=$ac_cv_exeext
4619 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4625 FILE *f = fopen ("conftest.out", "w");
4626 return ferror (f) || fclose (f) != 0;
4632 ac_clean_files
="$ac_clean_files conftest.out"
4633 # Check that the compiler produces executables we can run. If not, either
4634 # the compiler is broken, or we cross compile.
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4636 $as_echo_n "checking whether we are cross compiling... " >&6; }
4637 if test "$cross_compiling" != yes; then
4638 { { ac_try
="$ac_link"
4640 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4641 *) ac_try_echo=$ac_try;;
4643 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4644 $as_echo "$ac_try_echo"; } >&5
4645 (eval "$ac_link") 2>&5
4647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4648 test $ac_status = 0; }
4649 if { ac_try='./conftest$ac_cv_exeext'
4650 { { case "(($ac_try" in
4651 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4652 *) ac_try_echo
=$ac_try;;
4654 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4655 $as_echo "$ac_try_echo"; } >&5
4656 (eval "$ac_try") 2>&5
4658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4659 test $ac_status = 0; }; }; then
4662 if test "$cross_compiling" = maybe
; then
4665 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4667 as_fn_error $?
"cannot run C compiled programs.
4668 If you meant to cross compile, use \`--host'.
4669 See \`config.log' for more details" "$LINENO" 5; }
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4674 $as_echo "$cross_compiling" >&6; }
4676 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4677 ac_clean_files
=$ac_clean_files_save
4678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4679 $as_echo_n "checking for suffix of object files... " >&6; }
4680 if ${ac_cv_objext+:} false
; then :
4681 $as_echo_n "(cached) " >&6
4683 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4684 /* end confdefs.h. */
4694 rm -f conftest.o conftest.obj
4695 if { { ac_try
="$ac_compile"
4697 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4698 *) ac_try_echo=$ac_try;;
4700 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4701 $as_echo "$ac_try_echo"; } >&5
4702 (eval "$ac_compile") 2>&5
4704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4705 test $ac_status = 0; }; then :
4706 for ac_file in conftest.o conftest.obj conftest.*; do
4707 test -f "$ac_file" || continue;
4709 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4710 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4715 $as_echo "$as_me: failed program was:" >&5
4716 sed 's/^/| /' conftest.$ac_ext >&5
4718 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4719 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4720 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4721 See \
`config.log' for more details" "$LINENO" 5; }
4723 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4726 $as_echo "$ac_cv_objext" >&6; }
4727 OBJEXT=$ac_cv_objext
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4730 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4731 if ${ac_cv_c_compiler_gnu+:} false; then :
4732 $as_echo_n "(cached) " >&6
4734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4735 /* end confdefs.h. */
4748 if ac_fn_c_try_compile "$LINENO"; then :
4753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4754 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4758 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4759 if test $ac_compiler_gnu = yes; then
4764 ac_test_CFLAGS=${CFLAGS+set}
4765 ac_save_CFLAGS=$CFLAGS
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4767 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4768 if ${ac_cv_prog_cc_g+:} false; then :
4769 $as_echo_n "(cached) " >&6
4771 ac_save_c_werror_flag=$ac_c_werror_flag
4772 ac_c_werror_flag=yes
4775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4776 /* end confdefs.h. */
4786 if ac_fn_c_try_compile "$LINENO"; then :
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4801 if ac_fn_c_try_compile "$LINENO"; then :
4804 ac_c_werror_flag=$ac_save_c_werror_flag
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4817 if ac_fn_c_try_compile "$LINENO"; then :
4820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 ac_c_werror_flag=$ac_save_c_werror_flag
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4828 $as_echo "$ac_cv_prog_cc_g" >&6; }
4829 if test "$ac_test_CFLAGS" = set; then
4830 CFLAGS=$ac_save_CFLAGS
4831 elif test $ac_cv_prog_cc_g = yes; then
4832 if test "$GCC" = yes; then
4838 if test "$GCC" = yes; then
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4845 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4846 if ${ac_cv_prog_cc_c89+:} false; then :
4847 $as_echo_n "(cached) " >&6
4849 ac_cv_prog_cc_c89=no
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4856 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4857 struct buf { int x; };
4858 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4859 static char *e (p, i)
4865 static char *f (char * (*g) (char **, int), char **p, ...)
4870 s = g (p, va_arg (v,int));
4875 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4876 function prototypes and stuff, but not '\xHH' hex character constants.
4877 These don't provoke an error unfortunately, instead are silently treated
4878 as 'x'. The following induces an error, until -std is added to get
4879 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4880 array size at least. It's necessary to write '\x00'==0 to get something
4881 that's true only with -std. */
4882 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4884 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4885 inside strings and character constants. */
4887 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4889 int test (int i, double x);
4890 struct s1 {int (*f) (int a);};
4891 struct s2 {int (*f) (double a);};
4892 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4898 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4903 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4904 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4906 CC="$ac_save_CC $ac_arg"
4907 if ac_fn_c_try_compile "$LINENO"; then :
4908 ac_cv_prog_cc_c89=$ac_arg
4910 rm -f core conftest.err conftest.$ac_objext
4911 test "x$ac_cv_prog_cc_c89" != "xno" && break
4913 rm -f conftest.$ac_ext
4918 case "x$ac_cv_prog_cc_c89" in
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4921 $as_echo "none needed" >&6; } ;;
4923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4924 $as_echo "unsupported" >&6; } ;;
4926 CC="$CC $ac_cv_prog_cc_c89"
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4928 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4930 if test "x$ac_cv_prog_cc_c89" != xno; then :
4935 ac_cpp='$CPP $CPPFLAGS'
4936 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4937 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4938 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4941 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4942 if ${ac_cv_prog_cc_c99+:} false; then :
4943 $as_echo_n "(cached) " >&6
4945 ac_cv_prog_cc_c99=no
4947 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4948 /* end confdefs.h. */
4950 #include <stdbool.h>
4955 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4956 #define debug(...) fprintf (stderr, __VA_ARGS__)
4957 #define showlist(...) puts (#__VA_ARGS__)
4958 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4960 test_varargs_macros (void)
4965 debug ("X = %d\n", x);
4966 showlist (The first, second, and third items.);
4967 report (x>y, "x is %d but y is %d", x, y);
4970 // Check long long types.
4971 #define BIG64 18446744073709551615ull
4972 #define BIG32 4294967295ul
4973 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4975 your preprocessor is broken;
4979 your preprocessor is broken;
4981 static long long int bignum = -9223372036854775807LL;
4982 static unsigned long long int ubignum = BIG64;
4984 struct incomplete_array
4992 const wchar_t *name;
4996 typedef const char *ccp;
4999 test_restrict (ccp restrict text)
5001 // See if C++-style comments work.
5002 // Iterate through items via the restricted pointer.
5003 // Also check for declarations in for loops.
5004 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5009 // Check varargs and va_copy.
5011 test_varargs (const char *format, ...)
5014 va_start (args, format);
5016 va_copy (args_copy, args);
5027 str = va_arg (args_copy, const char *);
5030 number = va_arg (args_copy, int);
5033 fnumber = va_arg (args_copy, double);
5048 _Bool success = false;
5051 if (test_restrict ("String literal") == 0)
5053 char *restrict newvar = "Another string";
5056 test_varargs ("s, d' f .", "string", 65, 34.234);
5057 test_varargs_macros ();
5059 // Check flexible array members.
5060 struct incomplete_array *ia =
5061 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5063 for (int i = 0; i < ia->datasize; ++i)
5064 ia->data[i] = i * 1.234;
5066 // Check named initializers.
5067 struct named_init ni = {
5069 .name = L"Test wide string",
5070 .average = 543.34343,
5075 int dynamic_array[ni.number];
5076 dynamic_array[ni.number - 1] = 543;
5078 // work around unused variable warnings
5079 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5080 || dynamic_array[ni.number - 1] != 543);
5086 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5088 CC="$ac_save_CC $ac_arg"
5089 if ac_fn_c_try_compile "$LINENO"; then :
5090 ac_cv_prog_cc_c99=$ac_arg
5092 rm -f core conftest.err conftest.$ac_objext
5093 test "x$ac_cv_prog_cc_c99" != "xno" && break
5095 rm -f conftest.$ac_ext
5100 case "x$ac_cv_prog_cc_c99" in
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5103 $as_echo "none needed" >&6; } ;;
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5106 $as_echo "unsupported" >&6; } ;;
5108 CC="$CC $ac_cv_prog_cc_c99"
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5110 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5112 if test "x$ac_cv_prog_cc_c99" != xno; then :
5118 ac_cpp='$CXXCPP $CPPFLAGS'
5119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5122 if test -z "$CXX"; then
5123 if test -n "$CCC"; then
5126 if test -n "$ac_tool_prefix"; then
5127 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5129 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5130 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5132 $as_echo_n "checking for $ac_word... " >&6; }
5133 if ${ac_cv_prog_CXX+:} false; then :
5134 $as_echo_n "(cached) " >&6
5136 if test -n "$CXX"; then
5137 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5143 test -z "$as_dir" && as_dir=.
5144 for ac_exec_ext in '' $ac_executable_extensions; do
5145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5146 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 if test -n "$CXX"; then
5158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5159 $as_echo "$CXX" >&6; }
5161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5162 $as_echo "no" >&6; }
5166 test -n "$CXX" && break
5169 if test -z "$CXX"; then
5171 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5173 # Extract the first word of "$ac_prog", so it can be a program name with args.
5174 set dummy $ac_prog; ac_word=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; }
5177 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5178 $as_echo_n "(cached) " >&6
5180 if test -n "$ac_ct_CXX"; then
5181 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190 ac_cv_prog_ac_ct_CXX="$ac_prog"
5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5200 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5201 if test -n "$ac_ct_CXX"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5203 $as_echo "$ac_ct_CXX" >&6; }
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5210 test -n "$ac_ct_CXX" && break
5213 if test "x$ac_ct_CXX" = x; then
5216 case $cross_compiling:$ac_tool_warned in
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5219 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5220 ac_tool_warned=yes ;;
5228 # Provide some information about the compiler.
5229 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5232 for ac_option in --version -v -V -qversion; do
5233 { { ac_try="$ac_compiler $ac_option >&5"
5235 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5236 *) ac_try_echo
=$ac_try;;
5238 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5239 $as_echo "$ac_try_echo"; } >&5
5240 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5242 if test -s conftest.err
; then
5244 ... rest of stderr output deleted ...
5245 10q' conftest.err
>conftest.er1
5246 cat conftest.er1
>&5
5248 rm -f conftest.er1 conftest.err
5249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5250 test $ac_status = 0; }
5253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5254 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5255 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5256 $as_echo_n "(cached) " >&6
5258 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5259 /* end confdefs.h. */
5272 if ac_fn_cxx_try_compile
"$LINENO"; then :
5277 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5278 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5282 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5283 if test $ac_compiler_gnu = yes; then
5288 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5289 ac_save_CXXFLAGS
=$CXXFLAGS
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5291 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5292 if ${ac_cv_prog_cxx_g+:} false
; then :
5293 $as_echo_n "(cached) " >&6
5295 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5296 ac_cxx_werror_flag
=yes
5299 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5300 /* end confdefs.h. */
5310 if ac_fn_cxx_try_compile
"$LINENO"; then :
5311 ac_cv_prog_cxx_g
=yes
5314 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5325 if ac_fn_cxx_try_compile
"$LINENO"; then :
5328 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5341 if ac_fn_cxx_try_compile
"$LINENO"; then :
5342 ac_cv_prog_cxx_g
=yes
5344 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5346 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5348 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5349 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5352 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5353 if test "$ac_test_CXXFLAGS" = set; then
5354 CXXFLAGS
=$ac_save_CXXFLAGS
5355 elif test $ac_cv_prog_cxx_g = yes; then
5356 if test "$GXX" = yes; then
5362 if test "$GXX" = yes; then
5369 ac_cpp
='$CPP $CPPFLAGS'
5370 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5371 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5372 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5375 # We must set the default linker to the linker used by gcc for the correct
5376 # operation of libtool. If LD is not defined and we are using gcc, try to
5377 # set the LD default to the ld used by gcc.
5378 if test -z "$LD"; then
5379 if test "$GCC" = yes; then
5382 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5384 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5386 case $gcc_prog_ld in
5387 # Accept absolute paths.
5388 [\\/]* |
[A-Za-z
]:[\\/]*)
5389 LD
="$gcc_prog_ld" ;;
5394 # Check whether -static-libstdc++ -static-libgcc is supported.
5396 if test "$GCC" = yes; then
5397 saved_LDFLAGS
="$LDFLAGS"
5399 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5401 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5403 ac_cpp
='$CXXCPP $CPPFLAGS'
5404 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5405 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5406 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5412 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5413 #error -static-libstdc++ not implemented
5417 if ac_fn_cxx_try_link
"$LINENO"; then :
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5419 $as_echo "yes" >&6; }; have_static_libs
=yes
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5422 $as_echo "no" >&6; }
5424 rm -f core conftest.err conftest.
$ac_objext \
5425 conftest
$ac_exeext conftest.
$ac_ext
5427 ac_cpp
='$CPP $CPPFLAGS'
5428 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5429 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5430 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5433 LDFLAGS
="$saved_LDFLAGS"
5439 if test -n "$ac_tool_prefix"; then
5440 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5441 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 $as_echo_n "checking for $ac_word... " >&6; }
5444 if ${ac_cv_prog_GNATBIND+:} false
; then :
5445 $as_echo_n "(cached) " >&6
5447 if test -n "$GNATBIND"; then
5448 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5450 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5454 test -z "$as_dir" && as_dir
=.
5455 for ac_exec_ext
in '' $ac_executable_extensions; do
5456 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5457 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5467 GNATBIND
=$ac_cv_prog_GNATBIND
5468 if test -n "$GNATBIND"; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5470 $as_echo "$GNATBIND" >&6; }
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5473 $as_echo "no" >&6; }
5478 if test -z "$ac_cv_prog_GNATBIND"; then
5479 ac_ct_GNATBIND
=$GNATBIND
5480 # Extract the first word of "gnatbind", so it can be a program name with args.
5481 set dummy gnatbind
; ac_word
=$2
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5483 $as_echo_n "checking for $ac_word... " >&6; }
5484 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5485 $as_echo_n "(cached) " >&6
5487 if test -n "$ac_ct_GNATBIND"; then
5488 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5490 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5494 test -z "$as_dir" && as_dir
=.
5495 for ac_exec_ext
in '' $ac_executable_extensions; do
5496 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5497 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5507 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5508 if test -n "$ac_ct_GNATBIND"; then
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5510 $as_echo "$ac_ct_GNATBIND" >&6; }
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5513 $as_echo "no" >&6; }
5516 if test "x$ac_ct_GNATBIND" = x
; then
5519 case $cross_compiling:$ac_tool_warned in
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5522 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5523 ac_tool_warned
=yes ;;
5525 GNATBIND
=$ac_ct_GNATBIND
5528 GNATBIND
="$ac_cv_prog_GNATBIND"
5531 if test -n "$ac_tool_prefix"; then
5532 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5533 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5535 $as_echo_n "checking for $ac_word... " >&6; }
5536 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5537 $as_echo_n "(cached) " >&6
5539 if test -n "$GNATMAKE"; then
5540 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5542 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5546 test -z "$as_dir" && as_dir
=.
5547 for ac_exec_ext
in '' $ac_executable_extensions; do
5548 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5549 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5559 GNATMAKE
=$ac_cv_prog_GNATMAKE
5560 if test -n "$GNATMAKE"; then
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5562 $as_echo "$GNATMAKE" >&6; }
5564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5565 $as_echo "no" >&6; }
5570 if test -z "$ac_cv_prog_GNATMAKE"; then
5571 ac_ct_GNATMAKE
=$GNATMAKE
5572 # Extract the first word of "gnatmake", so it can be a program name with args.
5573 set dummy gnatmake
; ac_word
=$2
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5575 $as_echo_n "checking for $ac_word... " >&6; }
5576 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5577 $as_echo_n "(cached) " >&6
5579 if test -n "$ac_ct_GNATMAKE"; then
5580 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5582 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5586 test -z "$as_dir" && as_dir
=.
5587 for ac_exec_ext
in '' $ac_executable_extensions; do
5588 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5589 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5599 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5600 if test -n "$ac_ct_GNATMAKE"; then
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5602 $as_echo "$ac_ct_GNATMAKE" >&6; }
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5605 $as_echo "no" >&6; }
5608 if test "x$ac_ct_GNATMAKE" = x
; then
5611 case $cross_compiling:$ac_tool_warned in
5613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5615 ac_tool_warned
=yes ;;
5617 GNATMAKE
=$ac_ct_GNATMAKE
5620 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5624 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5625 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5626 $as_echo_n "(cached) " >&6
5628 cat >conftest.adb
<<EOF
5629 procedure conftest is begin null; end conftest;
5631 acx_cv_cc_gcc_supports_ada
=no
5632 # There is a bug in old released versions of GCC which causes the
5633 # driver to exit successfully when the appropriate language module
5634 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5635 # Therefore we must check for the error message as well as an
5636 # unsuccessful exit.
5637 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5638 # given a .adb file, but produce no object file. So we must check
5639 # if an object file was really produced to guard against this.
5640 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5641 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5642 acx_cv_cc_gcc_supports_ada
=yes
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5647 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5649 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5656 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5657 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5658 $as_echo_n "(cached) " >&6
5662 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5663 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5664 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5667 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5670 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5671 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5674 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5681 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5682 do_compare
="$gcc_cv_prog_cmp_skip"
5686 # Check whether --enable-bootstrap was given.
5687 if test "${enable_bootstrap+set}" = set; then :
5688 enableval
=$enable_bootstrap;
5690 enable_bootstrap
=default
5694 # Issue errors and warnings for invalid/strange bootstrap combinations.
5695 if test -r $srcdir/gcc
/configure
; then
5701 case "$have_compiler:$host:$target:$enable_bootstrap" in
5704 # Default behavior. Enable bootstrap if we have a compiler
5705 # and we are in a native configuration.
5706 yes:$build:$build:default
)
5707 enable_bootstrap
=yes ;;
5710 enable_bootstrap
=no
;;
5712 # We have a compiler and we are in a native configuration, bootstrap is ok
5713 yes:$build:$build:yes)
5716 # Other configurations, but we have a compiler. Assume the user knows
5719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5720 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5723 # No compiler: if they passed --enable-bootstrap explicitly, fail
5725 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5727 # Fail if wrong command line
5729 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5733 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5734 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5735 # require C++11 (or higher).
5736 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5737 CXX
="$CXX -std=c++11"
5738 elif test "$have_compiler" = yes; then
5739 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5741 ac_cpp
='$CXXCPP $CPPFLAGS'
5742 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5748 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5749 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5750 $as_echo_n "(cached) " >&6
5752 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5753 /* end confdefs.h. */
5756 // If the compiler admits that it is not ready for C++11, why torture it?
5757 // Hopefully, this will speed up the test.
5761 #error "This is not a C++ compiler"
5763 #elif __cplusplus < 201103L
5765 #error "This is not a C++11 compiler"
5772 namespace test_static_assert
5775 template <typename T>
5778 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5783 namespace test_final_override
5792 struct Derived : public Base
5794 virtual ~Derived() override {}
5795 virtual void f() override {}
5800 namespace test_double_right_angle_brackets
5803 template < typename T >
5806 typedef check<void> single_type;
5807 typedef check<check<void>> double_type;
5808 typedef check<check<check<void>>> triple_type;
5809 typedef check<check<check<check<void>>>> quadruple_type;
5813 namespace test_decltype
5826 namespace test_type_deduction
5829 template < typename T1, typename T2 >
5832 static const bool value = false;
5835 template < typename T >
5836 struct is_same<T, T>
5838 static const bool value = true;
5841 template < typename T1, typename T2 >
5843 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5849 test(const int c, volatile int v)
5851 static_assert(is_same<int, decltype(0)>::value == true, "");
5852 static_assert(is_same<int, decltype(c)>::value == false, "");
5853 static_assert(is_same<int, decltype(v)>::value == false, "");
5856 auto sumi = ac + av + 'x';
5857 auto sumf = ac + av + 1.0;
5858 static_assert(is_same<int, decltype(ac)>::value == true, "");
5859 static_assert(is_same<int, decltype(av)>::value == true, "");
5860 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5861 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5862 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5863 return (sumf > 0.0) ? sumi : add(c, v);
5868 namespace test_noexcept
5871 int f() { return 0; }
5872 int g() noexcept { return 0; }
5874 static_assert(noexcept(f()) == false, "");
5875 static_assert(noexcept(g()) == true, "");
5879 namespace test_constexpr
5882 template < typename CharT >
5883 unsigned long constexpr
5884 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5886 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5889 template < typename CharT >
5890 unsigned long constexpr
5891 strlen_c(const CharT *const s) noexcept
5893 return strlen_c_r(s, 0UL);
5896 static_assert(strlen_c("") == 0UL, "");
5897 static_assert(strlen_c("1") == 1UL, "");
5898 static_assert(strlen_c("example") == 7UL, "");
5899 static_assert(strlen_c("another\0example") == 7UL, "");
5903 namespace test_rvalue_references
5909 static constexpr int value = N;
5912 answer<1> f(int&) { return answer<1>(); }
5913 answer<2> f(const int&) { return answer<2>(); }
5914 answer<3> f(int&&) { return answer<3>(); }
5921 static_assert(decltype(f(i))::value == 1, "");
5922 static_assert(decltype(f(c))::value == 2, "");
5923 static_assert(decltype(f(0))::value == 3, "");
5928 namespace test_uniform_initialization
5933 static const int zero {};
5934 static const int one {1};
5937 static_assert(test::zero == 0, "");
5938 static_assert(test::one == 1, "");
5942 namespace test_lambdas
5948 auto lambda1 = [](){};
5949 auto lambda2 = lambda1;
5957 auto a = [](int i, int j){ return i + j; }(1, 2);
5958 auto b = []() -> int { return '0'; }();
5959 auto c = [=](){ return a + b; }();
5960 auto d = [&](){ return c; }();
5961 auto e = [a, &b](int x) mutable {
5962 const auto identity = [](int y){ return y; };
5963 for (auto i = 0; i < a; ++i)
5965 return x + identity(a + b);
5967 return a + b + c + d + e;
5973 const auto nullary = [](){ return 0; };
5974 const auto unary = [](int x){ return x; };
5975 using nullary_t = decltype(nullary);
5976 using unary_t = decltype(unary);
5977 const auto higher1st = [](nullary_t f){ return f(); };
5978 const auto higher2nd = [unary](nullary_t f1){
5979 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5981 return higher1st(nullary) + higher2nd(nullary)(unary);
5986 namespace test_variadic_templates
5992 template <int N0, int... N1toN>
5993 struct sum<N0, N1toN...>
5995 static constexpr auto value = N0 + sum<N1toN...>::value;
6001 static constexpr auto value = 0;
6004 static_assert(sum<>::value == 0, "");
6005 static_assert(sum<1>::value == 1, "");
6006 static_assert(sum<23>::value == 23, "");
6007 static_assert(sum<1, 2>::value == 3, "");
6008 static_assert(sum<5, 5, 11>::value == 21, "");
6009 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6013 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6014 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6016 namespace test_template_alias_sfinae
6021 template<typename T>
6022 using member = typename T::member_type;
6024 template<typename T>
6027 template<typename T>
6028 void func(member<T>*) {}
6032 void test() { func<foo>(0); }
6036 } // namespace cxx11
6038 #endif // __cplusplus >= 201103L
6043 if ac_fn_cxx_try_compile
"$LINENO"; then :
6044 ax_cv_cxx_compile_cxx11
=yes
6046 ax_cv_cxx_compile_cxx11
=no
6048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6051 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6052 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6056 if test x
$ac_success = xno
; then
6057 for alternative
in ${ax_cxx_compile_alternatives}; do
6058 switch
="-std=gnu++${alternative}"
6059 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6061 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6062 if eval \
${$cachevar+:} false
; then :
6063 $as_echo_n "(cached) " >&6
6067 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6068 /* end confdefs.h. */
6071 // If the compiler admits that it is not ready for C++11, why torture it?
6072 // Hopefully, this will speed up the test.
6076 #error "This is not a C++ compiler"
6078 #elif __cplusplus < 201103L
6080 #error "This is not a C++11 compiler"
6087 namespace test_static_assert
6090 template <typename T>
6093 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6098 namespace test_final_override
6107 struct Derived : public Base
6109 virtual ~Derived() override {}
6110 virtual void f() override {}
6115 namespace test_double_right_angle_brackets
6118 template < typename T >
6121 typedef check<void> single_type;
6122 typedef check<check<void>> double_type;
6123 typedef check<check<check<void>>> triple_type;
6124 typedef check<check<check<check<void>>>> quadruple_type;
6128 namespace test_decltype
6141 namespace test_type_deduction
6144 template < typename T1, typename T2 >
6147 static const bool value = false;
6150 template < typename T >
6151 struct is_same<T, T>
6153 static const bool value = true;
6156 template < typename T1, typename T2 >
6158 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6164 test(const int c, volatile int v)
6166 static_assert(is_same<int, decltype(0)>::value == true, "");
6167 static_assert(is_same<int, decltype(c)>::value == false, "");
6168 static_assert(is_same<int, decltype(v)>::value == false, "");
6171 auto sumi = ac + av + 'x';
6172 auto sumf = ac + av + 1.0;
6173 static_assert(is_same<int, decltype(ac)>::value == true, "");
6174 static_assert(is_same<int, decltype(av)>::value == true, "");
6175 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6176 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6177 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6178 return (sumf > 0.0) ? sumi : add(c, v);
6183 namespace test_noexcept
6186 int f() { return 0; }
6187 int g() noexcept { return 0; }
6189 static_assert(noexcept(f()) == false, "");
6190 static_assert(noexcept(g()) == true, "");
6194 namespace test_constexpr
6197 template < typename CharT >
6198 unsigned long constexpr
6199 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6201 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6204 template < typename CharT >
6205 unsigned long constexpr
6206 strlen_c(const CharT *const s) noexcept
6208 return strlen_c_r(s, 0UL);
6211 static_assert(strlen_c("") == 0UL, "");
6212 static_assert(strlen_c("1") == 1UL, "");
6213 static_assert(strlen_c("example") == 7UL, "");
6214 static_assert(strlen_c("another\0example") == 7UL, "");
6218 namespace test_rvalue_references
6224 static constexpr int value = N;
6227 answer<1> f(int&) { return answer<1>(); }
6228 answer<2> f(const int&) { return answer<2>(); }
6229 answer<3> f(int&&) { return answer<3>(); }
6236 static_assert(decltype(f(i))::value == 1, "");
6237 static_assert(decltype(f(c))::value == 2, "");
6238 static_assert(decltype(f(0))::value == 3, "");
6243 namespace test_uniform_initialization
6248 static const int zero {};
6249 static const int one {1};
6252 static_assert(test::zero == 0, "");
6253 static_assert(test::one == 1, "");
6257 namespace test_lambdas
6263 auto lambda1 = [](){};
6264 auto lambda2 = lambda1;
6272 auto a = [](int i, int j){ return i + j; }(1, 2);
6273 auto b = []() -> int { return '0'; }();
6274 auto c = [=](){ return a + b; }();
6275 auto d = [&](){ return c; }();
6276 auto e = [a, &b](int x) mutable {
6277 const auto identity = [](int y){ return y; };
6278 for (auto i = 0; i < a; ++i)
6280 return x + identity(a + b);
6282 return a + b + c + d + e;
6288 const auto nullary = [](){ return 0; };
6289 const auto unary = [](int x){ return x; };
6290 using nullary_t = decltype(nullary);
6291 using unary_t = decltype(unary);
6292 const auto higher1st = [](nullary_t f){ return f(); };
6293 const auto higher2nd = [unary](nullary_t f1){
6294 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6296 return higher1st(nullary) + higher2nd(nullary)(unary);
6301 namespace test_variadic_templates
6307 template <int N0, int... N1toN>
6308 struct sum<N0, N1toN...>
6310 static constexpr auto value = N0 + sum<N1toN...>::value;
6316 static constexpr auto value = 0;
6319 static_assert(sum<>::value == 0, "");
6320 static_assert(sum<1>::value == 1, "");
6321 static_assert(sum<23>::value == 23, "");
6322 static_assert(sum<1, 2>::value == 3, "");
6323 static_assert(sum<5, 5, 11>::value == 21, "");
6324 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6328 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6329 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6331 namespace test_template_alias_sfinae
6336 template<typename T>
6337 using member = typename T::member_type;
6339 template<typename T>
6342 template<typename T>
6343 void func(member<T>*) {}
6347 void test() { func<foo>(0); }
6351 } // namespace cxx11
6353 #endif // __cplusplus >= 201103L
6358 if ac_fn_cxx_try_compile
"$LINENO"; then :
6363 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6366 eval ac_res
=\$
$cachevar
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6368 $as_echo "$ac_res" >&6; }
6369 if eval test x\$
$cachevar = xyes
; then
6371 if test -n "$CXXCPP" ; then
6372 CXXCPP
="$CXXCPP $switch"
6380 if test x
$ac_success = xno
; then
6381 for alternative
in ${ax_cxx_compile_alternatives}; do
6382 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6383 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6385 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6386 if eval \${$cachevar+:} false; then :
6387 $as_echo_n "(cached
) " >&6
6391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6392 /* end confdefs.h. */
6395 // If the compiler admits that it is not ready for C++11, why torture it?
6396 // Hopefully, this will speed up the test.
6400 #error "This is not a C
++ compiler
"
6402 #elif __cplusplus < 201103L
6404 #error "This is not a C
++11 compiler
"
6411 namespace test_static_assert
6414 template <typename T>
6417 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6422 namespace test_final_override
6431 struct Derived : public Base
6433 virtual ~Derived() override {}
6434 virtual void f() override {}
6439 namespace test_double_right_angle_brackets
6442 template < typename T >
6445 typedef check<void> single_type;
6446 typedef check<check<void>> double_type;
6447 typedef check<check<check<void>>> triple_type;
6448 typedef check<check<check<check<void>>>> quadruple_type;
6452 namespace test_decltype
6465 namespace test_type_deduction
6468 template < typename T1, typename T2 >
6471 static const bool value = false;
6474 template < typename T >
6475 struct is_same<T, T>
6477 static const bool value = true;
6480 template < typename T1, typename T2 >
6482 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6488 test(const int c, volatile int v)
6490 static_assert(is_same<int, decltype(0)>::value == true, "");
6491 static_assert(is_same<int, decltype(c)>::value == false, "");
6492 static_assert(is_same<int, decltype(v)>::value == false, "");
6495 auto sumi = ac + av + 'x';
6496 auto sumf = ac + av + 1.0;
6497 static_assert(is_same<int, decltype(ac)>::value == true, "");
6498 static_assert(is_same<int, decltype(av)>::value == true, "");
6499 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6500 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6501 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6502 return (sumf > 0.0) ? sumi : add(c, v);
6507 namespace test_noexcept
6510 int f() { return 0; }
6511 int g() noexcept { return 0; }
6513 static_assert(noexcept(f()) == false, "");
6514 static_assert(noexcept(g()) == true, "");
6518 namespace test_constexpr
6521 template < typename CharT >
6522 unsigned long constexpr
6523 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6525 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6528 template < typename CharT >
6529 unsigned long constexpr
6530 strlen_c(const CharT *const s) noexcept
6532 return strlen_c_r(s, 0UL);
6535 static_assert(strlen_c("") == 0UL, "");
6536 static_assert(strlen_c("1") == 1UL, "");
6537 static_assert(strlen_c("example
") == 7UL, "");
6538 static_assert(strlen_c("another\
0example
") == 7UL, "");
6542 namespace test_rvalue_references
6548 static constexpr int value = N;
6551 answer<1> f(int&) { return answer<1>(); }
6552 answer<2> f(const int&) { return answer<2>(); }
6553 answer<3> f(int&&) { return answer<3>(); }
6560 static_assert(decltype(f(i))::value == 1, "");
6561 static_assert(decltype(f(c))::value == 2, "");
6562 static_assert(decltype(f(0))::value == 3, "");
6567 namespace test_uniform_initialization
6572 static const int zero {};
6573 static const int one {1};
6576 static_assert(test::zero == 0, "");
6577 static_assert(test::one == 1, "");
6581 namespace test_lambdas
6587 auto lambda1 = [](){};
6588 auto lambda2 = lambda1;
6596 auto a = [](int i, int j){ return i + j; }(1, 2);
6597 auto b = []() -> int { return '0'; }();
6598 auto c = [=](){ return a + b; }();
6599 auto d = [&](){ return c; }();
6600 auto e = [a, &b](int x) mutable {
6601 const auto identity = [](int y){ return y; };
6602 for (auto i = 0; i < a; ++i)
6604 return x + identity(a + b);
6606 return a + b + c + d + e;
6612 const auto nullary = [](){ return 0; };
6613 const auto unary = [](int x){ return x; };
6614 using nullary_t = decltype(nullary);
6615 using unary_t = decltype(unary);
6616 const auto higher1st = [](nullary_t f){ return f(); };
6617 const auto higher2nd = [unary](nullary_t f1){
6618 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6620 return higher1st(nullary) + higher2nd(nullary)(unary);
6625 namespace test_variadic_templates
6631 template <int N0, int... N1toN>
6632 struct sum<N0, N1toN...>
6634 static constexpr auto value = N0 + sum<N1toN...>::value;
6640 static constexpr auto value = 0;
6643 static_assert(sum<>::value == 0, "");
6644 static_assert(sum<1>::value == 1, "");
6645 static_assert(sum<23>::value == 23, "");
6646 static_assert(sum<1, 2>::value == 3, "");
6647 static_assert(sum<5, 5, 11>::value == 21, "");
6648 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6652 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6653 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6655 namespace test_template_alias_sfinae
6660 template<typename T>
6661 using member = typename T::member_type;
6663 template<typename T>
6666 template<typename T>
6667 void func(member<T>*) {}
6671 void test() { func<foo>(0); }
6675 } // namespace cxx11
6677 #endif // __cplusplus >= 201103L
6682 if ac_fn_cxx_try_compile "$LINENO"; then :
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6690 eval ac_res=\$$cachevar
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6692 $as_echo "$ac_res" >&6; }
6693 if eval test x\$$cachevar = xyes; then
6695 if test -n "$CXXCPP" ; then
6696 CXXCPP="$CXXCPP $switch"
6702 if test x$ac_success = xyes; then
6709 ac_cpp='$CPP $CPPFLAGS'
6710 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6711 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6712 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6714 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6715 if test x$ac_success = xno; then
6716 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6719 if test x$ac_success = xno; then
6721 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6722 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6726 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6732 if test "${build}" != "${host}"; then
6733 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6735 ac_cpp
='$CXXCPP $CPPFLAGS'
6736 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6737 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6738 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6740 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6741 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6742 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6743 CXX
="$CXX_FOR_BUILD"
6744 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6745 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6747 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6748 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6749 $as_echo_n "(cached) " >&6
6751 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6752 /* end confdefs.h. */
6755 // If the compiler admits that it is not ready for C++11, why torture it?
6756 // Hopefully, this will speed up the test.
6760 #error "This is not a C++ compiler"
6762 #elif __cplusplus < 201103L
6764 #error "This is not a C++11 compiler"
6771 namespace test_static_assert
6774 template <typename T>
6777 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6782 namespace test_final_override
6791 struct Derived : public Base
6793 virtual ~Derived() override {}
6794 virtual void f() override {}
6799 namespace test_double_right_angle_brackets
6802 template < typename T >
6805 typedef check<void> single_type;
6806 typedef check<check<void>> double_type;
6807 typedef check<check<check<void>>> triple_type;
6808 typedef check<check<check<check<void>>>> quadruple_type;
6812 namespace test_decltype
6825 namespace test_type_deduction
6828 template < typename T1, typename T2 >
6831 static const bool value = false;
6834 template < typename T >
6835 struct is_same<T, T>
6837 static const bool value = true;
6840 template < typename T1, typename T2 >
6842 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6848 test(const int c, volatile int v)
6850 static_assert(is_same<int, decltype(0)>::value == true, "");
6851 static_assert(is_same<int, decltype(c)>::value == false, "");
6852 static_assert(is_same<int, decltype(v)>::value == false, "");
6855 auto sumi = ac + av + 'x';
6856 auto sumf = ac + av + 1.0;
6857 static_assert(is_same<int, decltype(ac)>::value == true, "");
6858 static_assert(is_same<int, decltype(av)>::value == true, "");
6859 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6860 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6861 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6862 return (sumf > 0.0) ? sumi : add(c, v);
6867 namespace test_noexcept
6870 int f() { return 0; }
6871 int g() noexcept { return 0; }
6873 static_assert(noexcept(f()) == false, "");
6874 static_assert(noexcept(g()) == true, "");
6878 namespace test_constexpr
6881 template < typename CharT >
6882 unsigned long constexpr
6883 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6885 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6888 template < typename CharT >
6889 unsigned long constexpr
6890 strlen_c(const CharT *const s) noexcept
6892 return strlen_c_r(s, 0UL);
6895 static_assert(strlen_c("") == 0UL, "");
6896 static_assert(strlen_c("1") == 1UL, "");
6897 static_assert(strlen_c("example") == 7UL, "");
6898 static_assert(strlen_c("another\0example") == 7UL, "");
6902 namespace test_rvalue_references
6908 static constexpr int value = N;
6911 answer<1> f(int&) { return answer<1>(); }
6912 answer<2> f(const int&) { return answer<2>(); }
6913 answer<3> f(int&&) { return answer<3>(); }
6920 static_assert(decltype(f(i))::value == 1, "");
6921 static_assert(decltype(f(c))::value == 2, "");
6922 static_assert(decltype(f(0))::value == 3, "");
6927 namespace test_uniform_initialization
6932 static const int zero {};
6933 static const int one {1};
6936 static_assert(test::zero == 0, "");
6937 static_assert(test::one == 1, "");
6941 namespace test_lambdas
6947 auto lambda1 = [](){};
6948 auto lambda2 = lambda1;
6956 auto a = [](int i, int j){ return i + j; }(1, 2);
6957 auto b = []() -> int { return '0'; }();
6958 auto c = [=](){ return a + b; }();
6959 auto d = [&](){ return c; }();
6960 auto e = [a, &b](int x) mutable {
6961 const auto identity = [](int y){ return y; };
6962 for (auto i = 0; i < a; ++i)
6964 return x + identity(a + b);
6966 return a + b + c + d + e;
6972 const auto nullary = [](){ return 0; };
6973 const auto unary = [](int x){ return x; };
6974 using nullary_t = decltype(nullary);
6975 using unary_t = decltype(unary);
6976 const auto higher1st = [](nullary_t f){ return f(); };
6977 const auto higher2nd = [unary](nullary_t f1){
6978 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6980 return higher1st(nullary) + higher2nd(nullary)(unary);
6985 namespace test_variadic_templates
6991 template <int N0, int... N1toN>
6992 struct sum<N0, N1toN...>
6994 static constexpr auto value = N0 + sum<N1toN...>::value;
7000 static constexpr auto value = 0;
7003 static_assert(sum<>::value == 0, "");
7004 static_assert(sum<1>::value == 1, "");
7005 static_assert(sum<23>::value == 23, "");
7006 static_assert(sum<1, 2>::value == 3, "");
7007 static_assert(sum<5, 5, 11>::value == 21, "");
7008 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7012 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7013 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7015 namespace test_template_alias_sfinae
7020 template<typename T>
7021 using member = typename T::member_type;
7023 template<typename T>
7026 template<typename T>
7027 void func(member<T>*) {}
7031 void test() { func<foo>(0); }
7035 } // namespace cxx11
7037 #endif // __cplusplus >= 201103L
7042 if ac_fn_cxx_try_compile
"$LINENO"; then :
7043 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7045 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7047 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7050 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7051 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7055 if test x
$ac_success = xno
; then
7056 for alternative
in ${ax_cxx_compile_alternatives}; do
7057 switch
="-std=gnu++${alternative}"
7058 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7060 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7061 if eval \
${$cachevar+:} false
; then :
7062 $as_echo_n "(cached) " >&6
7066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7067 /* end confdefs.h. */
7070 // If the compiler admits that it is not ready for C++11, why torture it?
7071 // Hopefully, this will speed up the test.
7075 #error "This is not a C++ compiler"
7077 #elif __cplusplus < 201103L
7079 #error "This is not a C++11 compiler"
7086 namespace test_static_assert
7089 template <typename T>
7092 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7097 namespace test_final_override
7106 struct Derived : public Base
7108 virtual ~Derived() override {}
7109 virtual void f() override {}
7114 namespace test_double_right_angle_brackets
7117 template < typename T >
7120 typedef check<void> single_type;
7121 typedef check<check<void>> double_type;
7122 typedef check<check<check<void>>> triple_type;
7123 typedef check<check<check<check<void>>>> quadruple_type;
7127 namespace test_decltype
7140 namespace test_type_deduction
7143 template < typename T1, typename T2 >
7146 static const bool value = false;
7149 template < typename T >
7150 struct is_same<T, T>
7152 static const bool value = true;
7155 template < typename T1, typename T2 >
7157 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7163 test(const int c, volatile int v)
7165 static_assert(is_same<int, decltype(0)>::value == true, "");
7166 static_assert(is_same<int, decltype(c)>::value == false, "");
7167 static_assert(is_same<int, decltype(v)>::value == false, "");
7170 auto sumi = ac + av + 'x';
7171 auto sumf = ac + av + 1.0;
7172 static_assert(is_same<int, decltype(ac)>::value == true, "");
7173 static_assert(is_same<int, decltype(av)>::value == true, "");
7174 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7175 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7176 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7177 return (sumf > 0.0) ? sumi : add(c, v);
7182 namespace test_noexcept
7185 int f() { return 0; }
7186 int g() noexcept { return 0; }
7188 static_assert(noexcept(f()) == false, "");
7189 static_assert(noexcept(g()) == true, "");
7193 namespace test_constexpr
7196 template < typename CharT >
7197 unsigned long constexpr
7198 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7200 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7203 template < typename CharT >
7204 unsigned long constexpr
7205 strlen_c(const CharT *const s) noexcept
7207 return strlen_c_r(s, 0UL);
7210 static_assert(strlen_c("") == 0UL, "");
7211 static_assert(strlen_c("1") == 1UL, "");
7212 static_assert(strlen_c("example") == 7UL, "");
7213 static_assert(strlen_c("another\0example") == 7UL, "");
7217 namespace test_rvalue_references
7223 static constexpr int value = N;
7226 answer<1> f(int&) { return answer<1>(); }
7227 answer<2> f(const int&) { return answer<2>(); }
7228 answer<3> f(int&&) { return answer<3>(); }
7235 static_assert(decltype(f(i))::value == 1, "");
7236 static_assert(decltype(f(c))::value == 2, "");
7237 static_assert(decltype(f(0))::value == 3, "");
7242 namespace test_uniform_initialization
7247 static const int zero {};
7248 static const int one {1};
7251 static_assert(test::zero == 0, "");
7252 static_assert(test::one == 1, "");
7256 namespace test_lambdas
7262 auto lambda1 = [](){};
7263 auto lambda2 = lambda1;
7271 auto a = [](int i, int j){ return i + j; }(1, 2);
7272 auto b = []() -> int { return '0'; }();
7273 auto c = [=](){ return a + b; }();
7274 auto d = [&](){ return c; }();
7275 auto e = [a, &b](int x) mutable {
7276 const auto identity = [](int y){ return y; };
7277 for (auto i = 0; i < a; ++i)
7279 return x + identity(a + b);
7281 return a + b + c + d + e;
7287 const auto nullary = [](){ return 0; };
7288 const auto unary = [](int x){ return x; };
7289 using nullary_t = decltype(nullary);
7290 using unary_t = decltype(unary);
7291 const auto higher1st = [](nullary_t f){ return f(); };
7292 const auto higher2nd = [unary](nullary_t f1){
7293 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7295 return higher1st(nullary) + higher2nd(nullary)(unary);
7300 namespace test_variadic_templates
7306 template <int N0, int... N1toN>
7307 struct sum<N0, N1toN...>
7309 static constexpr auto value = N0 + sum<N1toN...>::value;
7315 static constexpr auto value = 0;
7318 static_assert(sum<>::value == 0, "");
7319 static_assert(sum<1>::value == 1, "");
7320 static_assert(sum<23>::value == 23, "");
7321 static_assert(sum<1, 2>::value == 3, "");
7322 static_assert(sum<5, 5, 11>::value == 21, "");
7323 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7327 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7328 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7330 namespace test_template_alias_sfinae
7335 template<typename T>
7336 using member = typename T::member_type;
7338 template<typename T>
7341 template<typename T>
7342 void func(member<T>*) {}
7346 void test() { func<foo>(0); }
7350 } // namespace cxx11
7352 #endif // __cplusplus >= 201103L
7357 if ac_fn_cxx_try_compile
"$LINENO"; then :
7362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7365 eval ac_res
=\$
$cachevar
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7367 $as_echo "$ac_res" >&6; }
7368 if eval test x\$
$cachevar = xyes
; then
7370 if test -n "$CXXCPP" ; then
7371 CXXCPP
="$CXXCPP $switch"
7379 if test x
$ac_success = xno
; then
7380 for alternative
in ${ax_cxx_compile_alternatives}; do
7381 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7382 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7384 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7385 if eval \${$cachevar+:} false; then :
7386 $as_echo_n "(cached
) " >&6
7390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7391 /* end confdefs.h. */
7394 // If the compiler admits that it is not ready for C++11, why torture it?
7395 // Hopefully, this will speed up the test.
7399 #error "This is not a C
++ compiler
"
7401 #elif __cplusplus < 201103L
7403 #error "This is not a C
++11 compiler
"
7410 namespace test_static_assert
7413 template <typename T>
7416 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7421 namespace test_final_override
7430 struct Derived : public Base
7432 virtual ~Derived() override {}
7433 virtual void f() override {}
7438 namespace test_double_right_angle_brackets
7441 template < typename T >
7444 typedef check<void> single_type;
7445 typedef check<check<void>> double_type;
7446 typedef check<check<check<void>>> triple_type;
7447 typedef check<check<check<check<void>>>> quadruple_type;
7451 namespace test_decltype
7464 namespace test_type_deduction
7467 template < typename T1, typename T2 >
7470 static const bool value = false;
7473 template < typename T >
7474 struct is_same<T, T>
7476 static const bool value = true;
7479 template < typename T1, typename T2 >
7481 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7487 test(const int c, volatile int v)
7489 static_assert(is_same<int, decltype(0)>::value == true, "");
7490 static_assert(is_same<int, decltype(c)>::value == false, "");
7491 static_assert(is_same<int, decltype(v)>::value == false, "");
7494 auto sumi = ac + av + 'x';
7495 auto sumf = ac + av + 1.0;
7496 static_assert(is_same<int, decltype(ac)>::value == true, "");
7497 static_assert(is_same<int, decltype(av)>::value == true, "");
7498 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7499 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7500 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7501 return (sumf > 0.0) ? sumi : add(c, v);
7506 namespace test_noexcept
7509 int f() { return 0; }
7510 int g() noexcept { return 0; }
7512 static_assert(noexcept(f()) == false, "");
7513 static_assert(noexcept(g()) == true, "");
7517 namespace test_constexpr
7520 template < typename CharT >
7521 unsigned long constexpr
7522 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7524 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7527 template < typename CharT >
7528 unsigned long constexpr
7529 strlen_c(const CharT *const s) noexcept
7531 return strlen_c_r(s, 0UL);
7534 static_assert(strlen_c("") == 0UL, "");
7535 static_assert(strlen_c("1") == 1UL, "");
7536 static_assert(strlen_c("example
") == 7UL, "");
7537 static_assert(strlen_c("another\
0example
") == 7UL, "");
7541 namespace test_rvalue_references
7547 static constexpr int value = N;
7550 answer<1> f(int&) { return answer<1>(); }
7551 answer<2> f(const int&) { return answer<2>(); }
7552 answer<3> f(int&&) { return answer<3>(); }
7559 static_assert(decltype(f(i))::value == 1, "");
7560 static_assert(decltype(f(c))::value == 2, "");
7561 static_assert(decltype(f(0))::value == 3, "");
7566 namespace test_uniform_initialization
7571 static const int zero {};
7572 static const int one {1};
7575 static_assert(test::zero == 0, "");
7576 static_assert(test::one == 1, "");
7580 namespace test_lambdas
7586 auto lambda1 = [](){};
7587 auto lambda2 = lambda1;
7595 auto a = [](int i, int j){ return i + j; }(1, 2);
7596 auto b = []() -> int { return '0'; }();
7597 auto c = [=](){ return a + b; }();
7598 auto d = [&](){ return c; }();
7599 auto e = [a, &b](int x) mutable {
7600 const auto identity = [](int y){ return y; };
7601 for (auto i = 0; i < a; ++i)
7603 return x + identity(a + b);
7605 return a + b + c + d + e;
7611 const auto nullary = [](){ return 0; };
7612 const auto unary = [](int x){ return x; };
7613 using nullary_t = decltype(nullary);
7614 using unary_t = decltype(unary);
7615 const auto higher1st = [](nullary_t f){ return f(); };
7616 const auto higher2nd = [unary](nullary_t f1){
7617 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7619 return higher1st(nullary) + higher2nd(nullary)(unary);
7624 namespace test_variadic_templates
7630 template <int N0, int... N1toN>
7631 struct sum<N0, N1toN...>
7633 static constexpr auto value = N0 + sum<N1toN...>::value;
7639 static constexpr auto value = 0;
7642 static_assert(sum<>::value == 0, "");
7643 static_assert(sum<1>::value == 1, "");
7644 static_assert(sum<23>::value == 23, "");
7645 static_assert(sum<1, 2>::value == 3, "");
7646 static_assert(sum<5, 5, 11>::value == 21, "");
7647 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7651 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7652 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7654 namespace test_template_alias_sfinae
7659 template<typename T>
7660 using member = typename T::member_type;
7662 template<typename T>
7665 template<typename T>
7666 void func(member<T>*) {}
7670 void test() { func<foo>(0); }
7674 } // namespace cxx11
7676 #endif // __cplusplus >= 201103L
7681 if ac_fn_cxx_try_compile "$LINENO"; then :
7686 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7689 eval ac_res=\$$cachevar
7690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7691 $as_echo "$ac_res" >&6; }
7692 if eval test x\$$cachevar = xyes; then
7694 if test -n "$CXXCPP" ; then
7695 CXXCPP="$CXXCPP $switch"
7701 if test x$ac_success = xyes; then
7706 CXX_FOR_BUILD="$CXX"
7707 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7708 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7709 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7710 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7711 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7713 ac_cpp='$CPP $CPPFLAGS'
7714 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7715 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7716 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7718 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7719 if test x$ac_success = xno; then
7720 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7723 if test x$ac_success = xno; then
7724 HAVE_CXX11_FOR_BUILD=0
7725 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7726 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7728 HAVE_CXX11_FOR_BUILD=1
7730 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7738 # Used for setting $lt_cv_objdir
7739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7740 $as_echo_n "checking for objdir... " >&6; }
7741 if ${lt_cv_objdir+:} false
; then :
7742 $as_echo_n "(cached) " >&6
7744 rm -f .libs
2>/dev
/null
7745 mkdir .libs
2>/dev
/null
7746 if test -d .libs
; then
7749 # MS-DOS does not allow filenames that begin with a dot.
7752 rmdir .libs
2>/dev
/null
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7755 $as_echo "$lt_cv_objdir" >&6; }
7756 objdir
=$lt_cv_objdir
7762 cat >>confdefs.h
<<_ACEOF
7763 #define LT_OBJDIR "$lt_cv_objdir/"
7768 # Check for GMP, MPFR and MPC
7769 gmplibs
="-lmpc -lmpfr -lgmp"
7773 # Specify a location for mpc
7774 # check for this first so it ends up on the link line before mpfr.
7776 # Check whether --with-mpc was given.
7777 if test "${with_mpc+set}" = set; then :
7782 # Check whether --with-mpc-include was given.
7783 if test "${with_mpc_include+set}" = set; then :
7784 withval
=$with_mpc_include;
7788 # Check whether --with-mpc-lib was given.
7789 if test "${with_mpc_lib+set}" = set; then :
7790 withval
=$with_mpc_lib;
7794 if test "x$with_mpc" != x
; then
7795 gmplibs
="-L$with_mpc/lib $gmplibs"
7796 gmpinc
="-I$with_mpc/include $gmpinc"
7798 if test "x$with_mpc_include" != x
; then
7799 gmpinc
="-I$with_mpc_include $gmpinc"
7801 if test "x$with_mpc_lib" != x
; then
7802 gmplibs
="-L$with_mpc_lib $gmplibs"
7804 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
7805 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7806 gmpinc
='-I$$s/mpc/src '"$gmpinc"
7807 # Do not test the mpc version. Assume that it is sufficient, since
7808 # it is in the source tree, and the library has not been built yet
7809 # but it would be included on the link line in the version check below
7810 # hence making the test fail.
7814 # Specify a location for mpfr
7815 # check for this first so it ends up on the link line before gmp.
7817 # Check whether --with-mpfr-dir was given.
7818 if test "${with_mpfr_dir+set}" = set; then :
7819 withval
=$with_mpfr_dir; as_fn_error $?
"The --with-mpfr-dir=PATH option has been removed.
7820 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7825 # Check whether --with-mpfr was given.
7826 if test "${with_mpfr+set}" = set; then :
7831 # Check whether --with-mpfr-include was given.
7832 if test "${with_mpfr_include+set}" = set; then :
7833 withval
=$with_mpfr_include;
7837 # Check whether --with-mpfr-lib was given.
7838 if test "${with_mpfr_lib+set}" = set; then :
7839 withval
=$with_mpfr_lib;
7843 if test "x$with_mpfr" != x
; then
7844 gmplibs
="-L$with_mpfr/lib $gmplibs"
7845 gmpinc
="-I$with_mpfr/include $gmpinc"
7847 if test "x$with_mpfr_include" != x
; then
7848 gmpinc
="-I$with_mpfr_include $gmpinc"
7850 if test "x$with_mpfr_lib" != x
; then
7851 gmplibs
="-L$with_mpfr_lib $gmplibs"
7853 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
7854 # MPFR v3.1.0 moved the sources into a src sub-directory.
7855 if ! test -d ${srcdir}/mpfr
/src
; then
7856 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7858 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7859 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7860 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7861 # Do not test the mpfr version. Assume that it is sufficient, since
7862 # it is in the source tree, and the library has not been built yet
7863 # but it would be included on the link line in the version check below
7864 # hence making the test fail.
7868 # Specify a location for gmp
7870 # Check whether --with-gmp-dir was given.
7871 if test "${with_gmp_dir+set}" = set; then :
7872 withval
=$with_gmp_dir; as_fn_error $?
"The --with-gmp-dir=PATH option has been removed.
7873 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7878 # Check whether --with-gmp was given.
7879 if test "${with_gmp+set}" = set; then :
7884 # Check whether --with-gmp-include was given.
7885 if test "${with_gmp_include+set}" = set; then :
7886 withval
=$with_gmp_include;
7890 # Check whether --with-gmp-lib was given.
7891 if test "${with_gmp_lib+set}" = set; then :
7892 withval
=$with_gmp_lib;
7897 if test "x$with_gmp" != x
; then
7898 gmplibs
="-L$with_gmp/lib $gmplibs"
7899 gmpinc
="-I$with_gmp/include $gmpinc"
7901 if test "x$with_gmp_include" != x
; then
7902 gmpinc
="-I$with_gmp_include $gmpinc"
7904 if test "x$with_gmp_lib" != x
; then
7905 gmplibs
="-L$with_gmp_lib $gmplibs"
7907 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
7908 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
7909 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
7910 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7911 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7912 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
7913 # Do not test the gmp version. Assume that it is sufficient, since
7914 # it is in the source tree, and the library has not been built yet
7915 # but it would be included on the link line in the version check below
7916 # hence making the test fail.
7920 if test -d ${srcdir}/gcc
&& test "x$have_gmp" = xno
; then
7922 saved_CFLAGS
="$CFLAGS"
7923 CFLAGS
="$CFLAGS $gmpinc"
7924 # Check for the recommended and required versions of GMP.
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
7926 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
7928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7929 /* end confdefs.h. */
7935 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7936 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7937 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
7945 if ac_fn_c_try_compile
"$LINENO"; then :
7946 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7947 /* end confdefs.h. */
7953 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7954 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7955 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
7963 if ac_fn_c_try_compile
"$LINENO"; then :
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7965 $as_echo "yes" >&6; }
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7968 $as_echo "buggy but acceptable" >&6; }
7970 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7973 $as_echo "no" >&6; }; have_gmp
=no
7975 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7977 # If we have GMP, check the MPFR version.
7978 if test x
"$have_gmp" = xyes
; then
7979 # Check for the recommended and required versions of MPFR.
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
7981 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
7982 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7983 /* end confdefs.h. */
7990 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
7998 if ac_fn_c_try_compile
"$LINENO"; then :
7999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8000 /* end confdefs.h. */
8007 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8015 if ac_fn_c_try_compile
"$LINENO"; then :
8016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8017 $as_echo "yes" >&6; }
8019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8020 $as_echo "buggy but acceptable" >&6; }
8022 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }; have_gmp
=no
8027 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8030 # Check for the MPC header version.
8031 if test x
"$have_gmp" = xyes
; then
8032 # Check for the recommended and required versions of MPC.
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8034 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8035 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8036 /* end confdefs.h. */
8042 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8050 if ac_fn_c_try_compile
"$LINENO"; then :
8051 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8052 /* end confdefs.h. */
8058 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8066 if ac_fn_c_try_compile
"$LINENO"; then :
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8068 $as_echo "yes" >&6; }
8070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8071 $as_echo "buggy but acceptable" >&6; }
8073 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8076 $as_echo "no" >&6; }; have_gmp
=no
8078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8081 # Now check the MPFR library.
8082 if test x
"$have_gmp" = xyes
; then
8084 LIBS
="$LIBS $gmplibs"
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8086 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8087 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8088 /* end confdefs.h. */
8100 mpfr_atan2 (n, n, x, MPFR_RNDN);
8101 mpfr_erfc (n, x, MPFR_RNDN);
8102 mpfr_subnormalize (x, t, MPFR_RNDN);
8106 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8107 mpc_cosh (c, c, MPC_RNDNN);
8108 mpc_pow (c, c, c, MPC_RNDNN);
8109 mpc_acosh (c, c, MPC_RNDNN);
8116 if ac_fn_c_try_link
"$LINENO"; then :
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8118 $as_echo "yes" >&6; }
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8121 $as_echo "no" >&6; }; have_gmp
=no
8123 rm -f core conftest.err conftest.
$ac_objext \
8124 conftest
$ac_exeext conftest.
$ac_ext
8128 CFLAGS
="$saved_CFLAGS"
8130 # The library versions listed in the error message below should match
8131 # the HARD-minimums enforced above.
8132 if test x
$have_gmp != xyes
; then
8133 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8134 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8135 their locations. Source code for these libraries can be found at
8136 their respective hosting sites as well as at
8137 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8138 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8139 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8140 make sure that you have installed both the libraries and the header
8141 files. They may be located in separate packages." "$LINENO" 5
8145 # Flags needed for both GMP, MPFR and/or MPC.
8153 # Libraries to use for stage1 or when not bootstrapping.
8155 # Check whether --with-stage1-libs was given.
8156 if test "${with_stage1_libs+set}" = set; then :
8157 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8160 stage1_libs
=$withval
8168 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8169 # default is yes if gcc is being built; no otherwise. The reason for
8170 # this default is that gdb is sometimes linked against GNU Source
8171 # Highlight, which is a shared library that uses C++ exceptions. In
8172 # this case, -static-libstdc++ will cause crashes.
8174 # Check whether --with-static-standard-libraries was given.
8175 if test "${with_static_standard_libraries+set}" = set; then :
8176 withval
=$with_static_standard_libraries;
8178 with_static_standard_libraries
=auto
8181 if test "$with_static_standard_libraries" = auto
; then
8182 with_static_standard_libraries
=$have_compiler
8185 # Linker flags to use for stage1 or when not bootstrapping.
8187 # Check whether --with-stage1-ldflags was given.
8188 if test "${with_stage1_ldflags+set}" = set; then :
8189 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8192 stage1_ldflags
=$withval
8196 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8197 # if supported. But if the user explicitly specified the libraries to use,
8198 # trust that they are doing what they want.
8199 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8200 -a "$have_static_libs" = yes; then
8201 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8207 # Libraries to use for stage2 and later builds.
8209 # Check whether --with-boot-libs was given.
8210 if test "${with_boot_libs+set}" = set; then :
8211 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8214 poststage1_libs
=$withval
8222 # Linker flags to use for stage2 and later builds.
8224 # Check whether --with-boot-ldflags was given.
8225 if test "${with_boot_ldflags+set}" = set; then :
8226 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8229 poststage1_ldflags
=$withval
8233 # In stages 2 and 3, default to linking libstdc++ and libgcc
8234 # statically. But if the user explicitly specified the libraries to
8235 # use, trust that they are doing what they want.
8236 if test "$poststage1_libs" = ""; then
8237 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8243 # GCC GRAPHITE dependency isl.
8244 # Basic setup is inlined here, actual checks are in config/isl.m4
8247 # Check whether --with-isl was given.
8248 if test "${with_isl+set}" = set; then :
8253 # Treat --without-isl as a request to disable
8254 # GRAPHITE support and skip all following checks.
8255 if test "x$with_isl" != "xno"; then
8259 # Check whether --with-isl-include was given.
8260 if test "${with_isl_include+set}" = set; then :
8261 withval
=$with_isl_include;
8265 # Check whether --with-isl-lib was given.
8266 if test "${with_isl_lib+set}" = set; then :
8267 withval
=$with_isl_lib;
8271 # Check whether --enable-isl-version-check was given.
8272 if test "${enable_isl_version_check+set}" = set; then :
8273 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8275 ENABLE_ISL_CHECK
=yes
8279 # Initialize isllibs and islinc.
8288 isllibs
="-L$with_isl/lib"
8289 islinc
="-I$with_isl/include"
8292 if test "x${with_isl_include}" != x
; then
8293 islinc
="-I$with_isl_include"
8295 if test "x${with_isl_lib}" != x
; then
8296 isllibs
="-L$with_isl_lib"
8298 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8299 && test -d ${srcdir}/isl
; then
8300 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8301 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8304 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8307 isllibs
="${isllibs} -lisl"
8311 if test "${ENABLE_ISL_CHECK}" = yes ; then
8312 _isl_saved_CFLAGS
=$CFLAGS
8313 _isl_saved_LDFLAGS
=$LDFLAGS
8314 _isl_saved_LIBS
=$LIBS
8316 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8317 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8318 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8321 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8324 #include <isl/schedule.h>
8328 isl_options_set_schedule_serialize_sccs (NULL, 0);
8333 if ac_fn_c_try_link
"$LINENO"; then :
8338 rm -f core conftest.err conftest.
$ac_objext \
8339 conftest
$ac_exeext conftest.
$ac_ext
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8341 $as_echo "$gcc_cv_isl" >&6; }
8343 if test "${gcc_cv_isl}" = no
; then
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8345 $as_echo "required isl version is 0.15 or later" >&6; }
8348 CFLAGS
=$_isl_saved_CFLAGS
8349 LDFLAGS
=$_isl_saved_LDFLAGS
8350 LIBS
=$_isl_saved_LIBS
8358 if test "x${with_isl}" = xno
; then
8359 graphite_requested
=no
8360 elif test "x${with_isl}" != x \
8361 ||
test "x${with_isl_include}" != x \
8362 ||
test "x${with_isl_lib}" != x
; then
8363 graphite_requested
=yes
8365 graphite_requested
=no
8370 if test "${gcc_cv_isl}" = no
; then
8375 if test "${graphite_requested}" = yes \
8376 && test "x${isllibs}" = x \
8377 && test "x${islinc}" = x
; then
8379 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8385 # If the isl check failed, disable builds of in-tree variant of isl
8386 if test "x$with_isl" = xno ||
8387 test "x$gcc_cv_isl" = xno
; then
8388 noconfigdirs
="$noconfigdirs isl"
8395 # Check for LTO support.
8396 # Check whether --enable-lto was given.
8397 if test "${enable_lto+set}" = set; then :
8398 enableval
=$enable_lto; enable_lto
=$enableval
8400 enable_lto
=yes; default_enable_lto
=yes
8409 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8410 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8411 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8420 if test $target_elf = yes; then :
8421 # ELF platforms build the lto-plugin always.
8422 build_lto_plugin
=yes
8425 if test x
"$default_enable_lto" = x
"yes" ; then
8427 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8428 # On other non-ELF platforms, LTO has yet to be validated.
8432 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8433 # It would also be nice to check the binutils support, but we don't
8434 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8435 # warn during gcc/ subconfigure; unless you're bootstrapping with
8436 # -flto it won't be needed until after installation anyway.
8438 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8439 *) if test x
"$enable_lto" = x
"yes"; then
8440 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8445 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8446 # Build it unless LTO was explicitly disabled.
8448 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8455 # Check whether --enable-linker-plugin-configure-flags was given.
8456 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8457 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8459 extra_linker_plugin_configure_flags
=
8463 # Check whether --enable-linker-plugin-flags was given.
8464 if test "${enable_linker_plugin_flags+set}" = set; then :
8465 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8467 extra_linker_plugin_flags
=
8472 # Enable --enable-host-shared.
8473 # Checked early to determine whether jit is an 'all' language
8474 # Check whether --enable-host-shared was given.
8475 if test "${enable_host_shared+set}" = set; then :
8476 enableval
=$enable_host_shared; host_shared
=$enableval
8483 # By default, C and C++ are the only stage 1 languages.
8484 stage1_languages
=,c
,
8486 # Target libraries that we bootstrap.
8487 bootstrap_target_libs
=,target-libgcc
,
8489 # Figure out what language subdirectories are present.
8490 # Look if the user specified --enable-languages="..."; if not, use
8491 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8493 # NB: embedded tabs in this IF block -- do not untabify
8494 if test -d ${srcdir}/gcc
; then
8495 if test x
"${enable_languages+set}" != xset
; then
8496 if test x
"${LANGUAGES+set}" = xset
; then
8497 enable_languages
="${LANGUAGES}"
8498 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8500 enable_languages
=default
8503 if test x
"${enable_languages}" = x ||
8504 test x
"${enable_languages}" = xyes
;
8506 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8510 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8512 # 'f95' is the old name for the 'fortran' language. We issue a warning
8513 # and make the substitution.
8514 case ,${enable_languages}, in
8516 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8517 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8521 # If bootstrapping, C++ must be enabled.
8522 case ",$enable_languages,:$enable_bootstrap" in
8525 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8526 enable_languages
="${enable_languages},c++"
8528 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8533 # First scan to see if an enabled language requires some other language.
8534 # We assume that a given config-lang.in will list all the language
8535 # front ends it requires, even if some are required indirectly.
8536 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8537 case ${lang_frag} in
8539 # The odd quoting in the next line works around
8540 # an apparent bug in bash 1.12 on linux.
8541 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8543 # From the config-lang.in, get $language, $lang_requires, and
8544 # $lang_requires_boot_languages.
8547 lang_requires_boot_languages
=
8548 # set srcdir during sourcing lang_frag to the gcc dir.
8549 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8550 # polutes this shell
8551 saved_srcdir
=${srcdir}
8552 srcdir
=${srcdir}/gcc .
${lang_frag}
8553 srcdir
=${saved_srcdir}
8554 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8555 case ,${enable_languages}, in
8560 echo " \`$other' language required by \`$language'; enabling" 1>&2
8561 enable_languages
="${enable_languages},${other}"
8565 for other
in ${lang_requires_boot_languages} ; do
8566 if test "$other" != "c"; then
8567 case ,${enable_stage1_languages}, in
8572 case ,${enable_languages}, in
8574 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8575 enable_stage1_languages
="$enable_stage1_languages,${other}"
8586 new_enable_languages
=,c
,
8588 # If LTO is enabled, add the LTO front end.
8589 if test "$enable_lto" = "yes" ; then
8590 case ,${enable_languages}, in
8592 *) enable_languages
="${enable_languages},lto" ;;
8594 if test "${build_lto_plugin}" = "yes" ; then
8595 configdirs
="$configdirs lto-plugin"
8599 # If we're building an offloading compiler, add the LTO front end.
8600 if test x
"$enable_as_accelerator_for" != x
; then
8601 case ,${enable_languages}, in
8603 *) enable_languages
="${enable_languages},lto" ;;
8607 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8608 potential_languages
=,c
,
8610 enabled_target_libs
=
8611 disabled_target_libs
=
8613 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8614 case ${lang_frag} in
8616 # The odd quoting in the next line works around
8617 # an apparent bug in bash 1.12 on linux.
8618 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8620 # From the config-lang.in, get $language, $target_libs,
8621 # $lang_dirs, $boot_language, and $build_by_default
8627 build_by_default
=yes
8628 # set srcdir during sourcing. See above about save & restore
8629 saved_srcdir
=${srcdir}
8630 srcdir
=${srcdir}/gcc .
${lang_frag}
8631 srcdir
=${saved_srcdir}
8632 if test x
${language} = x
; then
8633 echo "${lang_frag} doesn't set \$language." 1>&2
8637 if test "$language" = "c++"; then
8642 # C is always enabled, so no need to add it again
8643 if test "$language" != "c"; then
8644 case ,${enable_languages}, in
8646 # Language was explicitly selected; include it
8650 # All languages are enabled
8654 # 'default' was selected, select it if it is a default language
8655 add_this_lang
=${build_by_default}
8660 # Disable languages that need other directories if these aren't available.
8661 for i
in $subdir_requires; do
8662 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8663 case ${add_this_lang} in
8665 # Specifically requested language; tell them.
8666 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8670 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8671 add_this_lang
=unsupported
8675 add_this_lang
=unsupported
8680 # Disable Ada if no preexisting GNAT is available.
8681 case ${add_this_lang}:${language}:${have_gnat} in
8683 # Specifically requested language; tell them.
8684 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8687 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8688 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8689 add_this_lang
=unsupported
8693 add_this_lang
=unsupported
8697 # Disable jit if -enable-host-shared not specified
8698 # but not if building for Mingw. All code in Windows
8699 # is position independent code (PIC).
8703 case ${add_this_lang}:${language}:${host_shared} in
8705 # PR jit/64780: explicitly specify --enable-host-shared
8707 Enabling language \"jit\" requires --enable-host-shared.
8709 --enable-host-shared typically slows the rest of the compiler down by
8710 a few %, so you must explicitly enable it.
8712 If you want to build both the jit and the regular compiler, it is often
8713 best to do this via two separate configure/builds, in separate
8714 directories, to avoid imposing the performance cost of
8715 --enable-host-shared on the regular compiler." "$LINENO" 5
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8719 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8720 add_this_lang
=unsupported
8724 add_this_lang
=unsupported
8730 # Disable a language that is unsupported by the target.
8731 case "${add_this_lang}: $unsupported_languages " in
8735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8736 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8737 add_this_lang
=unsupported
8741 case $add_this_lang in
8743 # Remove language-dependent dirs.
8744 disabled_target_libs
="$disabled_target_libs $target_libs"
8745 noconfigdirs
="$noconfigdirs $lang_dirs"
8748 # Remove language-dependent dirs; still show language as supported.
8749 disabled_target_libs
="$disabled_target_libs $target_libs"
8750 noconfigdirs
="$noconfigdirs $lang_dirs"
8751 potential_languages
="${potential_languages}${language},"
8754 new_enable_languages
="${new_enable_languages}${language},"
8755 potential_languages
="${potential_languages}${language},"
8756 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
8757 enabled_target_libs
="$enabled_target_libs $target_libs"
8758 case "${boot_language}:,$enable_stage1_languages," in
8759 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
8760 # Add to (comma-separated) list of stage 1 languages.
8761 case ",$stage1_languages," in
8762 *,$language,* |
,yes, |
,all
,) ;;
8763 *) stage1_languages
="${stage1_languages}${language}," ;;
8765 # We need to bootstrap any supporting libraries.
8766 bootstrap_target_libs
="${bootstrap_target_libs}${target_libs},"
8775 # Add target libraries which are only needed for disabled languages
8777 if test -n "$disabled_target_libs"; then
8778 for dir
in $disabled_target_libs; do
8779 case " $enabled_target_libs " in
8781 *) noconfigdirs
="$noconfigdirs $dir" ;;
8786 # Check whether --enable-stage1-languages was given.
8787 if test "${enable_stage1_languages+set}" = set; then :
8788 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8790 # Set it to something that will have no effect in the loop below
8791 enable_stage1_languages
=c
;;
8793 enable_stage1_languages
=`echo $new_enable_languages | \
8794 sed -e "s/^,//" -e "s/,$//" ` ;;
8796 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
8797 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8800 # Add "good" languages from enable_stage1_languages to stage1_languages,
8801 # while "bad" languages go in missing_languages. Leave no duplicates.
8802 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8803 case $potential_languages in
8805 case $stage1_languages in
8807 *) stage1_languages
="$stage1_languages$i," ;;
8810 case $missing_languages in
8812 *) missing_languages
="$missing_languages$i," ;;
8819 # Remove leading/trailing commas that were added for simplicity
8820 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8821 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8822 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8823 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8825 if test "x$missing_languages" != x
; then
8827 The following requested languages could not be built: ${missing_languages}
8828 Supported languages are: ${potential_languages}" "$LINENO" 5
8830 if test "x$new_enable_languages" != "x$enable_languages"; then
8831 echo The following languages will be built
: ${new_enable_languages}
8832 enable_languages
="$new_enable_languages"
8836 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8839 # Handle --disable-<component> generically.
8840 for dir
in $configdirs $build_configdirs $target_configdirs ; do
8841 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8842 varname
=`echo $dirname | sed -e s/+/_/g`
8843 if eval test x\
${enable_${varname}} "=" xno
; then
8844 noconfigdirs
="$noconfigdirs $dir"
8848 # Check for Boehm's garbage collector
8849 # Check whether --enable-objc-gc was given.
8850 if test "${enable_objc_gc+set}" = set; then :
8851 enableval
=$enable_objc_gc;
8855 # Check whether --with-target-bdw-gc was given.
8856 if test "${with_target_bdw_gc+set}" = set; then :
8857 withval
=$with_target_bdw_gc;
8861 # Check whether --with-target-bdw-gc-include was given.
8862 if test "${with_target_bdw_gc_include+set}" = set; then :
8863 withval
=$with_target_bdw_gc_include;
8867 # Check whether --with-target-bdw-gc-lib was given.
8868 if test "${with_target_bdw_gc_lib+set}" = set; then :
8869 withval
=$with_target_bdw_gc_lib;
8873 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
8874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8875 $as_echo_n "checking for bdw garbage collector... " >&6; }
8876 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8878 $as_echo "using bdw-gc in default locations" >&6; }
8880 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
8881 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
8882 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
8883 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8886 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8891 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8892 case ,${enable_languages}, in
8894 # Disable libitm, libsanitizer if we're not building libstdc++
8895 case "${noconfigdirs}" in
8896 *target-libstdc
++-v3*)
8897 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
8903 noconfigdirs
="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
8907 # If gcc/ is not in the source tree then we'll not be building a
8908 # target compiler, assume in that case we don't want to build any
8909 # target libraries or tools.
8911 # This was added primarily for the benefit for binutils-gdb who reuse
8912 # this configure script, but don't always have target tools available.
8913 if test ! -d ${srcdir}/gcc
; then
8914 skipdirs
="${skipdirs} ${target_configdirs}"
8917 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8918 # $build_configdirs and $target_configdirs.
8919 # If we have the source for $noconfigdirs entries, add them to $notsupp.
8922 for dir
in .
$skipdirs $noconfigdirs ; do
8923 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8924 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8925 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
8926 if test -r $srcdir/$dirname/configure
; then
8927 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8930 notsupp
="$notsupp $dir"
8934 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8935 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
8936 if test -r $srcdir/$dirname/configure
; then
8937 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8940 notsupp
="$notsupp $dir"
8944 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8945 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
8946 if test -r $srcdir/$dirname/configure
; then
8947 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8950 notsupp
="$notsupp $dir"
8956 # Quietly strip out all directories which aren't configurable in this tree.
8957 # This relies on all configurable subdirectories being autoconfiscated, which
8959 build_configdirs_all
="$build_configdirs"
8961 for i
in ${build_configdirs_all} ; do
8962 j
=`echo $i | sed -e s/build-//g`
8963 if test -f ${srcdir}/$j/configure
; then
8964 build_configdirs
="${build_configdirs} $i"
8968 configdirs_all
="$configdirs"
8970 for i
in ${configdirs_all} ; do
8971 if test -f ${srcdir}/$i/configure
; then
8972 configdirs
="${configdirs} $i"
8976 target_configdirs_all
="$target_configdirs"
8978 for i
in ${target_configdirs_all} ; do
8979 j
=`echo $i | sed -e s/target-//g`
8980 if test -f ${srcdir}/$j/configure
; then
8981 target_configdirs
="${target_configdirs} $i"
8985 # libiberty-linker-plugin is special: it doesn't have its own source directory,
8986 # so we have to add it after the preceding checks.
8987 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
8989 case " $configdirs " in
8991 # If we can build libiberty, we can also build libiberty-linker-plugin.
8992 configdirs
="$configdirs libiberty-linker-plugin"
8993 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
8994 --with-libiberty=../libiberty-linker-plugin";;
8996 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9000 # Sometimes we have special requirements for the host libiberty.
9001 extra_host_libiberty_configure_flags
=
9002 extra_host_zlib_configure_flags
=
9003 case " $configdirs " in
9004 *" lto-plugin "* |
*" libcc1 "*)
9005 # When these are to be built as shared libraries, the same applies to
9007 extra_host_libiberty_configure_flags
=--enable-shared
9010 # When bfd is to be built as a shared library, the same applies to
9012 if test "$enable_shared" = "yes"; then
9013 extra_host_zlib_configure_flags
=--enable-host-shared
9020 # Produce a warning message for the subdirs we can't configure.
9021 # This isn't especially interesting in the Cygnus tree, but in the individual
9022 # FSF releases, it's important to let people know when their machine isn't
9023 # supported by the one or two programs in a package.
9025 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9026 # If $appdirs is non-empty, at least one of those directories must still
9027 # be configured, or we error out. (E.g., if the gas release supports a
9028 # specified target in some subdirs but not the gas subdir, we shouldn't
9029 # pretend that all is well.)
9030 if test -n "$appdirs" ; then
9031 for dir
in $appdirs ; do
9032 if test -r $dir/Makefile.
in ; then
9033 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9037 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9043 if test -n "$appdirs" ; then
9044 echo "*** This configuration is not supported by this package." 1>&2
9048 # Okay, some application will build, or we don't care to check. Still
9049 # notify of subdirs not getting built.
9050 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9051 echo " ${notsupp}" 1>&2
9052 echo " (Any other directories should still work fine.)" 1>&2
9060 # To find our prefix, in gcc_cv_tool_prefix.
9062 # The user is always right.
9063 if test "${PATH_SEPARATOR+set}" != set; then
9064 echo "#! /bin/sh" >conf$$.sh
9065 echo "exit 0" >>conf$$.sh
9067 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9076 get_gcc_base_ver
="cat"
9078 # Check whether --with-gcc-major-version-only was given.
9079 if test "${with_gcc_major_version_only+set}" = set; then :
9080 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9081 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9091 if test "x$exec_prefix" = xNONE
; then
9092 if test "x$prefix" = xNONE
; then
9093 gcc_cv_tool_prefix
=$ac_default_prefix
9095 gcc_cv_tool_prefix
=$prefix
9098 gcc_cv_tool_prefix
=$exec_prefix
9101 # If there is no compiler in the tree, use the PATH only. In any
9102 # case, if there is no compiler in the tree nobody should use
9103 # AS_FOR_TARGET and LD_FOR_TARGET.
9104 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9105 if test x
$with_gcc_major_version_only = xyes
; then
9106 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9108 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9110 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9111 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9112 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9113 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9114 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9115 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9120 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9121 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9129 # Check whether --with-build-sysroot was given.
9130 if test "${with_build_sysroot+set}" = set; then :
9131 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9132 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9135 SYSROOT_CFLAGS_FOR_TARGET
=
9141 # Check whether --with-debug-prefix-map was given.
9142 if test "${with_debug_prefix_map+set}" = set; then :
9143 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9144 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9145 for debug_map
in $withval; do
9146 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9150 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9155 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9156 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9157 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9158 # We want to ensure that TARGET libraries (which we know are built with
9159 # gcc) are built with "-O2 -g", so include those options when setting
9160 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9161 if test "x$CFLAGS_FOR_TARGET" = x
; then
9162 if test "x${is_cross_compiler}" = xyes
; then
9163 CFLAGS_FOR_TARGET
="-g -O2"
9165 CFLAGS_FOR_TARGET
=$CFLAGS
9168 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9171 *" -g "* |
*" -g3 "*) ;;
9172 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9178 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9179 if test "x${is_cross_compiler}" = xyes
; then
9180 CXXFLAGS_FOR_TARGET
="-g -O2"
9182 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9183 case " $CXXFLAGS " in
9185 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9187 case " $CXXFLAGS " in
9188 *" -g "* |
*" -g3 "*) ;;
9189 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9197 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9198 # the named directory are copied to $(tooldir)/sys-include.
9199 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9200 if test x
${is_cross_compiler} = xno
; then
9201 echo 1>&2 '***' --with-headers is only supported when cross compiling
9204 if test x
"${with_headers}" != xyes
; then
9205 x
=${gcc_cv_tool_prefix}
9206 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9210 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9211 # the name directories are copied to $(tooldir)/lib. Multiple directories
9213 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9214 if test x
${is_cross_compiler} = xno
; then
9215 echo 1>&2 '***' --with-libs is only supported when cross compiling
9218 if test x
"${with_libs}" != xyes
; then
9219 # Copy the libraries in reverse order, so that files in the first named
9220 # library override files in subsequent libraries.
9221 x
=${gcc_cv_tool_prefix}
9222 for l
in ${with_libs}; do
9223 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9228 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9230 # This is done by determining whether or not the appropriate directory
9231 # is available, and by checking whether or not specific configurations
9232 # have requested that this magic not happen.
9234 # The command line options always override the explicit settings in
9235 # configure.ac, and the settings in configure.ac override this magic.
9237 # If the default for a toolchain is to use GNU as and ld, and you don't
9238 # want to do that, then you should use the --without-gnu-as and
9239 # --without-gnu-ld options for the configure script. Similarly, if
9240 # the default is to use the included zlib and you don't want to do that,
9241 # you should use the --with-system-zlib option for the configure script.
9243 if test x
${use_gnu_as} = x
&&
9244 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9246 extra_host_args
="$extra_host_args --with-gnu-as"
9249 if test x
${use_gnu_ld} = x
&&
9250 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9252 extra_host_args
="$extra_host_args --with-gnu-ld"
9255 if test x
${use_included_zlib} = x
&&
9256 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9259 with_system_zlib
=yes
9260 extra_host_args
="$extra_host_args --with-system-zlib"
9263 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9264 # can detect this case.
9266 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9268 extra_host_args
="$extra_host_args --with-newlib"
9271 # Handle ${copy_dirs}
9272 set fnord
${copy_dirs}
9274 while test $# != 0 ; do
9275 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9278 echo Copying
$1 to
$2
9280 # Use the install script to create the directory and all required
9281 # parent directories.
9282 if test -d $2 ; then
9286 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9289 # Copy the directory, assuming we have tar.
9290 # FIXME: Should we use B in the second tar? Not all systems support it.
9291 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9293 # It is the responsibility of the user to correctly adjust all
9294 # symlinks. If somebody can figure out how to handle them correctly
9295 # here, feel free to add the code.
9302 # Determine a target-dependent exec_prefix that the installed
9303 # gcc will search in. Keep this list sorted by triplet, with
9304 # the *-*-osname triplets last.
9307 i
[34567]86-pc-msdosdjgpp*)
9308 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9313 md_exec_prefix
=/usr
/ccs
/bin
9317 extra_arflags_for_target
=
9318 extra_nmflags_for_target
=
9319 extra_ranlibflags_for_target
=
9320 target_makefile_frag
=/dev
/null
9323 target_makefile_frag
="config/mt-spu"
9325 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9326 target_makefile_frag
="config/mt-sde"
9328 mipsisa
*-*-elfoabi*)
9329 target_makefile_frag
="config/mt-mips-elfoabi"
9331 mips
*-*-*linux
* | mips
*-*-gnu*)
9332 target_makefile_frag
="config/mt-mips-gnu"
9335 target_makefile_frag
="config/mt-nios2-elf"
9338 target_makefile_frag
="config/mt-android"
9340 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9341 target_makefile_frag
="config/mt-gnu"
9343 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9344 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9345 # commands to handle both 32-bit and 64-bit objects. These flags are
9346 # harmless if we're using GNU nm or ar.
9347 extra_arflags_for_target
=" -X32_64"
9348 extra_nmflags_for_target
=" -B -X32_64"
9352 alphaieee_frag
=/dev
/null
9355 # This just makes sure to use the -mieee option to build target libs.
9356 # This should probably be set individually by each library.
9357 alphaieee_frag
="config/mt-alphaieee"
9361 # If --enable-target-optspace always use -Os instead of -O2 to build
9362 # the target libraries, similarly if it is not specified, use -Os
9363 # on selected platforms.
9364 ospace_frag
=/dev
/null
9365 case "${enable_target_optspace}:${target}" in
9367 ospace_frag
="config/mt-ospace"
9370 ospace_frag
="config/mt-d30v"
9372 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9373 ospace_frag
="config/mt-ospace"
9378 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9382 # Some systems (e.g., one of the i386-aix systems the gas testers are
9383 # using) don't handle "\$" correctly, so don't use it here.
9384 tooldir
='${exec_prefix}'/${target_noncanonical}
9385 build_tooldir
=${tooldir}
9387 # Create a .gdbinit file which runs the one in srcdir
9388 # and tells GDB to look there for source files.
9390 if test -r ${srcdir}/.gdbinit
; then
9393 *) cat > .
/.gdbinit
<<EOF
9397 source ${srcdir}/.gdbinit
9403 # Make sure that the compiler is able to generate an executable. If it
9404 # can't, we are probably in trouble. We don't care whether we can run the
9405 # executable--we might be using a cross compiler--we only care whether it
9406 # can be created. At this point the main configure script has set CC.
9408 echo "int main () { return 0; }" > conftest.c
9409 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9410 if test $?
= 0 ; then
9411 if test -s conftest ||
test -s conftest.exe
; then
9417 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9418 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9425 # Decide which environment variable is used to find dynamic libraries.
9427 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9428 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9429 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9430 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9433 # On systems where the dynamic library environment variable is PATH,
9434 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9435 # built executables to PATH.
9436 if test "$RPATH_ENVVAR" = PATH
; then
9437 GCC_SHLIB_SUBDIR
=/shlib
9442 # Adjust the toplevel makefile according to whether bootstrap was selected.
9443 case $enable_bootstrap in
9445 bootstrap_suffix
=bootstrap
9446 BUILD_CONFIG
=bootstrap-debug
9449 bootstrap_suffix
=no-bootstrap
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9455 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9458 # Check whether --with-build-config was given.
9459 if test "${with_build_config+set}" = set; then :
9460 withval
=$with_build_config; case $with_build_config in
9461 yes) with_build_config
= ;;
9462 no
) with_build_config
= BUILD_CONFIG
= ;;
9467 if test "x${with_build_config}" != x
; then
9468 BUILD_CONFIG
=$with_build_config
9470 case $BUILD_CONFIG in
9472 if echo "int f (void) { return 0; }" > conftest.c
&&
9473 ${CC} -c conftest.c
&&
9474 mv conftest.o conftest.o.g0
&&
9475 ${CC} -c -g conftest.c
&&
9476 mv conftest.o conftest.o.g
&&
9477 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9482 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9487 $as_echo "$BUILD_CONFIG" >&6; }
9490 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9492 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9493 # Check whether --enable-vtable-verify was given.
9494 if test "${enable_vtable_verify+set}" = set; then :
9495 enableval
=$enable_vtable_verify; case "$enableval" in
9496 yes) enable_vtable_verify
=yes ;;
9497 no
) enable_vtable_verify
=no
;;
9498 *) enable_vtable_verify
=no
;;
9501 enable_vtable_verify
=no
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9505 $as_echo "$enable_vtable_verify" >&6; }
9507 # Record target_configdirs and the configure arguments for target and
9508 # build configuration in Makefile.
9509 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9510 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9511 bootstrap_fixincludes
=no
9513 # If we are building libgomp, bootstrap it.
9514 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9515 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9518 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9519 # or bootstrap-ubsan, bootstrap it.
9520 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9521 case "$BUILD_CONFIG" in
9522 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9523 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9524 bootstrap_fixincludes
=yes
9529 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9530 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9531 test "$enable_vtable_verify" != no
; then
9532 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9535 # Determine whether gdb needs tk/tcl or not.
9536 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9537 # and in that case we want gdb to be built without tk. Ugh!
9538 # In fact I believe gdb is the *only* package directly dependent on tk,
9539 # so we should be able to put the 'maybe's in unconditionally and
9540 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9541 # 100% sure that that's safe though.
9543 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9544 case "$enable_gdbtk" in
9548 GDB_TK
="${gdb_tk}" ;;
9550 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9551 # distro. Eventually someone will fix this and move Insight, nee
9552 # gdbtk to a separate directory.
9553 if test -d ${srcdir}/gdb
/gdbtk
; then
9560 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9561 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9563 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9564 # else does, only include them if one of these is built. The Makefile
9565 # provides the ordering, so it's enough here to add to the list.
9566 case " ${configdirs} " in
9568 configdirs
="${configdirs} gnulib gdbsupport"
9571 configdirs
="${configdirs} gnulib gdbsupport"
9574 configdirs
="${configdirs} gnulib"
9578 # Strip out unwanted targets.
9580 # While at that, we remove Makefiles if we were started for recursive
9581 # configuration, so that the top-level Makefile reconfigures them,
9582 # like we used to do when configure itself was recursive.
9584 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9585 # but now we're fixing up the Makefile ourselves with the additional
9586 # commands passed to AC_CONFIG_FILES. Use separate variables
9587 # extrasub-{build,host,target} not because there is any reason to split
9588 # the substitutions up that way, but only to remain below the limit of
9589 # 99 commands in a script, for HP-UX sed.
9591 # Do not nest @if/@endif or @unless/@endunless pairs, because
9592 # configure will not warn you at all.
9594 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9595 yes:yes:*\ gold\
*:*,c
++,*) ;;
9596 yes:yes:*\ gold\
*:*)
9597 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9602 for module
in ${build_configdirs} ; do
9603 if test -z "${no_recursion}" \
9604 && test -f ${build_subdir}/${module}/Makefile
; then
9605 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9606 rm -f ${build_subdir}/${module}/Makefile
9608 extrasub_build
="$extrasub_build
9609 /^@if build-$module\$/d
9610 /^@endif build-$module\$/d
9611 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9612 /^@if build-$module-$bootstrap_suffix\$/d
9613 /^@endif build-$module-$bootstrap_suffix\$/d
9614 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9617 for module
in ${configdirs} ; do
9618 if test -z "${no_recursion}"; then
9619 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9620 if test -f ${file}; then
9621 echo 1>&2 "*** removing ${file} to force reconfigure"
9626 case ${module},${bootstrap_fixincludes} in
9627 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9628 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9630 extrasub_host
="$extrasub_host
9632 /^@endif $module\$/d
9633 /^@unless $module\$/,/^@endunless $module\$/d
9634 /^@if $module-$host_bootstrap_suffix\$/d
9635 /^@endif $module-$host_bootstrap_suffix\$/d
9636 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9639 for module
in ${target_configdirs} ; do
9640 if test -z "${no_recursion}" \
9641 && test -f ${target_subdir}/${module}/Makefile
; then
9642 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9643 rm -f ${target_subdir}/${module}/Makefile
9646 # We only bootstrap target libraries listed in bootstrap_target_libs.
9647 case $bootstrap_target_libs in
9648 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9649 *) target_bootstrap_suffix
=no-bootstrap
;;
9652 extrasub_target
="$extrasub_target
9653 /^@if target-$module\$/d
9654 /^@endif target-$module\$/d
9655 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9656 /^@if target-$module-$target_bootstrap_suffix\$/d
9657 /^@endif target-$module-$target_bootstrap_suffix\$/d
9658 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9661 # Do the final fixup along with target modules.
9662 extrasub_target
="$extrasub_target
9667 # Create the serialization dependencies. This uses a temporary file.
9669 # Check whether --enable-serial-configure was given.
9670 if test "${enable_serial_configure+set}" = set; then :
9671 enableval
=$enable_serial_configure;
9675 case ${enable_serial_configure} in
9677 enable_serial_build_configure
=yes
9678 enable_serial_host_configure
=yes
9679 enable_serial_target_configure
=yes
9683 # These force 'configure's to be done one at a time, to avoid problems
9684 # with contention over a shared config.cache.
9686 echo '# serdep.tmp' > serdep.tmp
9688 test "x${enable_serial_build_configure}" = xyes
&&
9689 for item
in ${build_configdirs} ; do
9692 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
9697 test "x${enable_serial_host_configure}" = xyes
&&
9698 for item
in ${configdirs} ; do
9701 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
9706 test "x${enable_serial_target_configure}" = xyes
&&
9707 for item
in ${target_configdirs} ; do
9710 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
9714 serialization_dependencies
=serdep.tmp
9717 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9718 # target, nonopt, and variable assignments. These are the ones we
9719 # might not want to pass down to subconfigures. The exception being
9720 # --cache-file=/dev/null, which is used to turn off the use of cache
9721 # files altogether, and which should be passed on to subconfigures.
9722 # Also strip program-prefix, program-suffix, and program-transform-name,
9723 # so that we can pass down a consistent program-transform-name.
9728 eval "set -- $ac_configure_args"
9731 if test X
"$skip_next" = X
"yes"; then
9735 if test X
"$keep_next" = X
"yes"; then
9738 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9740 baseargs
="$baseargs '$ac_arg'"
9741 tbaseargs
="$tbaseargs '$ac_arg'"
9746 # Handle separated arguments. Based on the logic generated by
9749 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
9750 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
9751 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
9752 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
9766 --with-* |
--without-*)
9767 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9771 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
9774 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
9783 mpc | mpfr | gmp | isl
)
9784 # If we're processing --with-$lib, --with-$lib-include or
9785 # --with-$lib-lib, for one of the libs above, and target is
9786 # different from host, don't pass the current argument to any
9787 # target library's configure.
9788 if test x
$is_cross_compiler = xyes
; then
9797 --cache-file=/dev
/null | \
9798 -cache-file=/dev
/null
)
9799 # Handled here to avoid the test to skip args below.
9800 baseargs
="$baseargs '$ac_arg'"
9801 tbaseargs
="$tbaseargs '$ac_arg'"
9802 # Assert: $separate_arg should always be no.
9803 keep_next
=$separate_arg
9819 -program-prefix* | \
9820 -program-suffix* | \
9821 -program-transform-name* )
9822 skip_next
=$separate_arg
9826 # An option. Add it.
9829 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9831 baseargs
="$baseargs '$ac_arg'"
9832 if test X
"$skip_targ" = Xno
; then
9833 tbaseargs
="$tbaseargs '$ac_arg'"
9835 keep_next
=$separate_arg
9838 # Either a variable assignment, or a nonopt (triplet). Don't
9839 # pass it down; let the Makefile handle this.
9844 # Remove the initial space we just introduced and, as these will be
9845 # expanded by make, quote '$'.
9846 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9848 # Add in --program-transform-name, after --program-prefix and
9849 # --program-suffix have been applied to it. Autoconf has already
9850 # doubled dollar signs and backslashes in program_transform_name; we want
9851 # the backslashes un-doubled, and then the entire thing wrapped in single
9852 # quotes, because this will be expanded first by make and then by the shell.
9853 # Also, because we want to override the logic in subdir configure scripts to
9854 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9855 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9856 ${program_transform_name}
9858 gcc_transform_name
=`cat conftestsed.out`
9859 rm -f conftestsed.out
9860 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
9861 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9862 if test "$silent" = yes; then
9863 baseargs
="$baseargs --silent"
9864 tbaseargs
="$tbaseargs --silent"
9866 baseargs
="$baseargs --disable-option-checking"
9867 tbaseargs
="$tbaseargs --disable-option-checking"
9869 # Record and document user additions to sub configure arguments.
9874 # For the build-side libraries, we just need to pretend we're native,
9875 # and not use the same cache file. Multilibs are neither needed nor
9876 # desired. We can't even use the same cache file for all build-side
9877 # libraries, as they're compiled differently; some with C, some with
9878 # C++ or with different feature-enabling options.
9879 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
9881 # For host modules, accept cache file option, or specification as blank.
9882 case "${cache_file}" in
9884 cache_file_option
="" ;;
9885 /* |
[A-Za-z
]:[\\/]* ) # absolute path
9886 cache_file_option
="--cache-file=${cache_file}" ;;
9888 cache_file_option
="--cache-file=../${cache_file}" ;;
9891 # Host dirs don't like to share a cache file either, horribly enough.
9892 # This seems to be due to autoconf 2.5x stupidity.
9893 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
9895 target_configargs
="$target_configargs ${tbaseargs}"
9897 # Passing a --with-cross-host argument lets the target libraries know
9898 # whether they are being built with a cross-compiler or being built
9899 # native. However, it would be better to use other mechanisms to make the
9900 # sorts of decisions they want to make on this basis. Please consider
9901 # this option to be deprecated. FIXME.
9902 if test x
${is_cross_compiler} = xyes
; then
9903 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
9906 # Special user-friendly check for native x86_64-linux build, if
9907 # multilib is not explicitly enabled.
9908 case "$target:$have_compiler:$host:$target:$enable_multilib" in
9909 x86_64-
*linux
*:yes:$build:$build:)
9910 # Make sure we have a development environment that handles 32-bit
9912 echo "int main () { return 0; }" > conftest.c
9913 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9914 if test $?
= 0 ; then
9915 if test -s conftest ||
test -s conftest.exe
; then
9920 if test x
${dev64} != xyes
; then
9921 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
9926 # Default to --enable-multilib.
9927 if test x
${enable_multilib} = x
; then
9928 target_configargs
="--enable-multilib ${target_configargs}"
9931 # Pass --with-newlib if appropriate. Note that target_configdirs has
9932 # changed from the earlier setting of with_newlib.
9933 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
9934 target_configargs
="--with-newlib ${target_configargs}"
9937 # Different target subdirs use different values of certain variables
9938 # (notably CXX). Worse, multilibs use *lots* of different values.
9939 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9940 # it doesn't automatically accept command-line overrides of them.
9941 # This means it's not safe for target subdirs to share a cache file,
9942 # which is disgusting, but there you have it. Hopefully this can be
9943 # fixed in future. It's still worthwhile to use a cache file for each
9944 # directory. I think.
9946 # Pass the appropriate --build, --host, --target and --cache-file arguments.
9947 # We need to pass --target, as newer autoconf's requires consistency
9948 # for target_alias and gcc doesn't manage it consistently.
9949 target_configargs
="--cache-file=./config.cache ${target_configargs}"
9952 case " $target_configdirs " in
9954 case " $target_configargs " in
9955 *" --with-newlib "*)
9958 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
9962 # If we're not building GCC, don't discard standard headers.
9963 if test -d ${srcdir}/gcc
; then
9964 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
9966 if test "${build}" != "${host}"; then
9967 # On Canadian crosses, CC_FOR_TARGET will have already been set
9968 # by `configure', so we won't have an opportunity to add -Bgcc/
9969 # to it. This is right: we don't want to search that directory
9970 # for binaries, but we want the header files in there, so add
9972 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
9974 # Someone might think of using the pre-installed headers on
9975 # Canadian crosses, in case the installed compiler is not fully
9976 # compatible with the compiler being built. In this case, it
9977 # would be better to flag an error than risking having
9978 # incompatible object files being constructed. We can't
9979 # guarantee that an error will be flagged, but let's hope the
9980 # compiler will do it, when presented with incompatible header
9985 case "${target}-${is_cross_compiler}" in
9986 i
[3456789]86-*-linux*-no)
9987 # Here host == target, so we don't need to build gcc,
9988 # so we don't want to discard standard headers.
9989 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9992 # If we're building newlib, use its generic headers last, but search
9993 # for any libc-related directories first (so make it the last -B
9995 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
9997 # If we're building libgloss, find the startup file, simulator library
9998 # and linker script.
9999 case " $target_configdirs " in
10001 # Look for startup file, simulator library and maybe linker script.
10002 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10003 # Look for libnosys.a in case the target needs it.
10004 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10005 # Most targets have the linker script in the source directory.
10006 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10017 x86_64-
*mingw
* |
*-w64-mingw*)
10018 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10019 # however, use a symlink named 'mingw' in ${prefix} .
10020 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10023 # MinGW can't be handled as Cygwin above since it does not use newlib.
10024 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'
10028 # Allow the user to override the flags for
10029 # our build compiler if desired.
10030 if test x
"${build}" = x
"${host}" ; then
10031 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10032 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10033 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10036 # On Canadian crosses, we'll be searching the right directories for
10037 # the previously-installed cross compiler, so don't bother to add
10038 # flags for directories within the install tree of the compiler
10039 # being built; programs in there won't even run.
10040 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10041 # Search for pre-installed headers if nothing else fits.
10042 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10045 if test "x
${use_gnu_ld}" = x &&
10046 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10047 # Arrange for us to find uninstalled linker scripts.
10048 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10051 # Search for other target-specific linker scripts and such.
10052 case "${target}" in
10054 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10058 # Makefile fragments.
10059 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10061 eval fragval=\$$frag
10062 if test $fragval != /dev/null; then
10063 eval $frag=${srcdir}/$fragval
10071 # Miscellanea: directories, flags, etc.
10080 # Build module lists & subconfigure args.
10084 # Host module lists & subconfigure args.
10089 # Target module lists & subconfigure args.
10112 # Generate default definitions for YACC, M4, LEX and other programs that run
10113 # on the build machine. These are used if the Makefile can't locate these
10114 # programs in objdir.
10115 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10117 for ac_prog in 'bison -y' byacc yacc
10119 # Extract the first word of "$ac_prog", so it can be a program name with args.
10120 set dummy $ac_prog; ac_word=$2
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10122 $as_echo_n "checking
for $ac_word...
" >&6; }
10123 if ${ac_cv_prog_YACC+:} false; then :
10124 $as_echo_n "(cached
) " >&6
10126 if test -n "$YACC"; then
10127 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10130 for as_dir in $PATH
10133 test -z "$as_dir" && as_dir=.
10134 for ac_exec_ext in '' $ac_executable_extensions; do
10135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10136 ac_cv_prog_YACC="$ac_prog"
10137 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10146 YACC=$ac_cv_prog_YACC
10147 if test -n "$YACC"; then
10148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10149 $as_echo "$YACC" >&6; }
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10152 $as_echo "no
" >&6; }
10156 test -n "$YACC" && break
10158 test -n "$YACC" || YACC="$MISSING bison
-y"
10160 case " $build_configdirs " in
10161 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10164 for ac_prog in bison
10166 # Extract the first word of "$ac_prog", so it can be a program name with args.
10167 set dummy $ac_prog; ac_word=$2
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10169 $as_echo_n "checking
for $ac_word...
" >&6; }
10170 if ${ac_cv_prog_BISON+:} false; then :
10171 $as_echo_n "(cached
) " >&6
10173 if test -n "$BISON"; then
10174 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10177 for as_dir in $PATH
10180 test -z "$as_dir" && as_dir=.
10181 for ac_exec_ext in '' $ac_executable_extensions; do
10182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10183 ac_cv_prog_BISON="$ac_prog"
10184 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10193 BISON=$ac_cv_prog_BISON
10194 if test -n "$BISON"; then
10195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10196 $as_echo "$BISON" >&6; }
10198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10199 $as_echo "no
" >&6; }
10203 test -n "$BISON" && break
10205 test -n "$BISON" || BISON="$MISSING bison
"
10207 case " $build_configdirs " in
10208 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10211 for ac_prog in gm4 gnum4 m4
10213 # Extract the first word of "$ac_prog", so it can be a program name with args.
10214 set dummy $ac_prog; ac_word=$2
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10216 $as_echo_n "checking
for $ac_word...
" >&6; }
10217 if ${ac_cv_prog_M4+:} false; then :
10218 $as_echo_n "(cached
) " >&6
10220 if test -n "$M4"; then
10221 ac_cv_prog_M4="$M4" # Let the user override the test.
10223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10224 for as_dir in $PATH
10227 test -z "$as_dir" && as_dir=.
10228 for ac_exec_ext in '' $ac_executable_extensions; do
10229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10230 ac_cv_prog_M4="$ac_prog"
10231 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10241 if test -n "$M4"; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10243 $as_echo "$M4" >&6; }
10245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10246 $as_echo "no
" >&6; }
10250 test -n "$M4" && break
10252 test -n "$M4" || M4="$MISSING m4"
10254 case " $build_configdirs " in
10255 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10258 for ac_prog in flex lex
10260 # Extract the first word of "$ac_prog", so it can be a program name with args.
10261 set dummy $ac_prog; ac_word=$2
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10263 $as_echo_n "checking
for $ac_word...
" >&6; }
10264 if ${ac_cv_prog_LEX+:} false; then :
10265 $as_echo_n "(cached
) " >&6
10267 if test -n "$LEX"; then
10268 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10271 for as_dir in $PATH
10274 test -z "$as_dir" && as_dir=.
10275 for ac_exec_ext in '' $ac_executable_extensions; do
10276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10277 ac_cv_prog_LEX="$ac_prog"
10278 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10287 LEX=$ac_cv_prog_LEX
10288 if test -n "$LEX"; then
10289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10290 $as_echo "$LEX" >&6; }
10292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10293 $as_echo "no
" >&6; }
10297 test -n "$LEX" && break
10299 test -n "$LEX" || LEX="$MISSING flex
"
10301 case " $build_configdirs " in
10302 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10303 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10306 for ac_prog in flex
10308 # Extract the first word of "$ac_prog", so it can be a program name with args.
10309 set dummy $ac_prog; ac_word=$2
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10311 $as_echo_n "checking
for $ac_word...
" >&6; }
10312 if ${ac_cv_prog_FLEX+:} false; then :
10313 $as_echo_n "(cached
) " >&6
10315 if test -n "$FLEX"; then
10316 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10319 for as_dir in $PATH
10322 test -z "$as_dir" && as_dir=.
10323 for ac_exec_ext in '' $ac_executable_extensions; do
10324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10325 ac_cv_prog_FLEX="$ac_prog"
10326 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10335 FLEX=$ac_cv_prog_FLEX
10336 if test -n "$FLEX"; then
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10338 $as_echo "$FLEX" >&6; }
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10341 $as_echo "no
" >&6; }
10345 test -n "$FLEX" && break
10347 test -n "$FLEX" || FLEX="$MISSING flex
"
10349 case " $build_configdirs " in
10350 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10353 for ac_prog in makeinfo
10355 # Extract the first word of "$ac_prog", so it can be a program name with args.
10356 set dummy $ac_prog; ac_word=$2
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10358 $as_echo_n "checking
for $ac_word...
" >&6; }
10359 if ${ac_cv_prog_MAKEINFO+:} false; then :
10360 $as_echo_n "(cached
) " >&6
10362 if test -n "$MAKEINFO"; then
10363 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10366 for as_dir in $PATH
10369 test -z "$as_dir" && as_dir=.
10370 for ac_exec_ext in '' $ac_executable_extensions; do
10371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10372 ac_cv_prog_MAKEINFO="$ac_prog"
10373 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10382 MAKEINFO=$ac_cv_prog_MAKEINFO
10383 if test -n "$MAKEINFO"; then
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10385 $as_echo "$MAKEINFO" >&6; }
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10388 $as_echo "no
" >&6; }
10392 test -n "$MAKEINFO" && break
10394 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10396 case " $build_configdirs " in
10397 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10400 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10401 # higher, else we use the "missing
" dummy.
10402 if ${MAKEINFO} --version \
10403 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10406 MAKEINFO="$MISSING makeinfo
"
10412 # FIXME: expect and dejagnu may become build tools?
10414 for ac_prog in expect
10416 # Extract the first word of "$ac_prog", so it can be a program name with args.
10417 set dummy $ac_prog; ac_word=$2
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10419 $as_echo_n "checking
for $ac_word...
" >&6; }
10420 if ${ac_cv_prog_EXPECT+:} false; then :
10421 $as_echo_n "(cached
) " >&6
10423 if test -n "$EXPECT"; then
10424 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10427 for as_dir in $PATH
10430 test -z "$as_dir" && as_dir=.
10431 for ac_exec_ext in '' $ac_executable_extensions; do
10432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10433 ac_cv_prog_EXPECT="$ac_prog"
10434 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10443 EXPECT=$ac_cv_prog_EXPECT
10444 if test -n "$EXPECT"; then
10445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10446 $as_echo "$EXPECT" >&6; }
10448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10449 $as_echo "no
" >&6; }
10453 test -n "$EXPECT" && break
10455 test -n "$EXPECT" || EXPECT="expect
"
10457 case " $configdirs " in
10459 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10463 for ac_prog in runtest
10465 # Extract the first word of "$ac_prog", so it can be a program name with args.
10466 set dummy $ac_prog; ac_word=$2
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10468 $as_echo_n "checking
for $ac_word...
" >&6; }
10469 if ${ac_cv_prog_RUNTEST+:} false; then :
10470 $as_echo_n "(cached
) " >&6
10472 if test -n "$RUNTEST"; then
10473 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10476 for as_dir in $PATH
10479 test -z "$as_dir" && as_dir=.
10480 for ac_exec_ext in '' $ac_executable_extensions; do
10481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10482 ac_cv_prog_RUNTEST="$ac_prog"
10483 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10492 RUNTEST=$ac_cv_prog_RUNTEST
10493 if test -n "$RUNTEST"; then
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10495 $as_echo "$RUNTEST" >&6; }
10497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10498 $as_echo "no
" >&6; }
10502 test -n "$RUNTEST" && break
10504 test -n "$RUNTEST" || RUNTEST="runtest
"
10506 case " $configdirs " in
10508 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10515 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10516 ncn_target_tool_prefix=
10517 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10521 if test -n "$AR"; then
10523 elif test -n "$ac_cv_prog_AR"; then
10527 if test -n "$ac_cv_prog_AR"; then
10528 for ncn_progname in ar; do
10529 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10530 set dummy ${ncn_progname}; ac_word=$2
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10532 $as_echo_n "checking
for $ac_word...
" >&6; }
10533 if ${ac_cv_prog_AR+:} false; then :
10534 $as_echo_n "(cached
) " >&6
10536 if test -n "$AR"; then
10537 ac_cv_prog_AR="$AR" # Let the user override the test.
10539 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10540 for as_dir in $PATH
10543 test -z "$as_dir" && as_dir=.
10544 for ac_exec_ext in '' $ac_executable_extensions; do
10545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10546 ac_cv_prog_AR="${ncn_progname}"
10547 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10557 if test -n "$AR"; then
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10559 $as_echo "$AR" >&6; }
10561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10562 $as_echo "no
" >&6; }
10569 for ncn_progname in ar; do
10570 if test -n "$ncn_tool_prefix"; then
10571 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10572 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10574 $as_echo_n "checking
for $ac_word...
" >&6; }
10575 if ${ac_cv_prog_AR+:} false; then :
10576 $as_echo_n "(cached
) " >&6
10578 if test -n "$AR"; then
10579 ac_cv_prog_AR="$AR" # Let the user override the test.
10581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10582 for as_dir in $PATH
10585 test -z "$as_dir" && as_dir=.
10586 for ac_exec_ext in '' $ac_executable_extensions; do
10587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10588 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10589 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10599 if test -n "$AR"; then
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10601 $as_echo "$AR" >&6; }
10603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10604 $as_echo "no
" >&6; }
10609 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10610 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10611 set dummy ${ncn_progname}; ac_word=$2
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10613 $as_echo_n "checking
for $ac_word...
" >&6; }
10614 if ${ac_cv_prog_AR+:} false; then :
10615 $as_echo_n "(cached
) " >&6
10617 if test -n "$AR"; then
10618 ac_cv_prog_AR="$AR" # Let the user override the test.
10620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10621 for as_dir in $PATH
10624 test -z "$as_dir" && as_dir=.
10625 for ac_exec_ext in '' $ac_executable_extensions; do
10626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10627 ac_cv_prog_AR="${ncn_progname}"
10628 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10638 if test -n "$AR"; then
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10640 $as_echo "$AR" >&6; }
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10643 $as_echo "no
" >&6; }
10648 test -n "$ac_cv_prog_AR" && break
10651 if test -z "$ac_cv_prog_AR" ; then
10653 if test $build = $host ; then
10656 AR="${ncn_tool_prefix}$2"
10662 if test -n "$AS"; then
10664 elif test -n "$ac_cv_prog_AS"; then
10668 if test -n "$ac_cv_prog_AS"; then
10669 for ncn_progname in as; do
10670 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10671 set dummy ${ncn_progname}; ac_word=$2
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10673 $as_echo_n "checking
for $ac_word...
" >&6; }
10674 if ${ac_cv_prog_AS+:} false; then :
10675 $as_echo_n "(cached
) " >&6
10677 if test -n "$AS"; then
10678 ac_cv_prog_AS="$AS" # Let the user override the test.
10680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681 for as_dir in $PATH
10684 test -z "$as_dir" && as_dir=.
10685 for ac_exec_ext in '' $ac_executable_extensions; do
10686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10687 ac_cv_prog_AS="${ncn_progname}"
10688 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10698 if test -n "$AS"; then
10699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10700 $as_echo "$AS" >&6; }
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10703 $as_echo "no
" >&6; }
10710 for ncn_progname in as; do
10711 if test -n "$ncn_tool_prefix"; then
10712 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10713 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10715 $as_echo_n "checking
for $ac_word...
" >&6; }
10716 if ${ac_cv_prog_AS+:} false; then :
10717 $as_echo_n "(cached
) " >&6
10719 if test -n "$AS"; then
10720 ac_cv_prog_AS="$AS" # Let the user override the test.
10722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10723 for as_dir in $PATH
10726 test -z "$as_dir" && as_dir=.
10727 for ac_exec_ext in '' $ac_executable_extensions; do
10728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10729 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10730 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10740 if test -n "$AS"; then
10741 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10742 $as_echo "$AS" >&6; }
10744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10745 $as_echo "no
" >&6; }
10750 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10751 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10752 set dummy ${ncn_progname}; ac_word=$2
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10754 $as_echo_n "checking
for $ac_word...
" >&6; }
10755 if ${ac_cv_prog_AS+:} false; then :
10756 $as_echo_n "(cached
) " >&6
10758 if test -n "$AS"; then
10759 ac_cv_prog_AS="$AS" # Let the user override the test.
10761 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10762 for as_dir in $PATH
10765 test -z "$as_dir" && as_dir=.
10766 for ac_exec_ext in '' $ac_executable_extensions; do
10767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10768 ac_cv_prog_AS="${ncn_progname}"
10769 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10779 if test -n "$AS"; then
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10781 $as_echo "$AS" >&6; }
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10784 $as_echo "no
" >&6; }
10789 test -n "$ac_cv_prog_AS" && break
10792 if test -z "$ac_cv_prog_AS" ; then
10794 if test $build = $host ; then
10797 AS="${ncn_tool_prefix}$2"
10803 if test -n "$DLLTOOL"; then
10804 ac_cv_prog_DLLTOOL=$DLLTOOL
10805 elif test -n "$ac_cv_prog_DLLTOOL"; then
10806 DLLTOOL=$ac_cv_prog_DLLTOOL
10809 if test -n "$ac_cv_prog_DLLTOOL"; then
10810 for ncn_progname in dlltool; do
10811 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10812 set dummy ${ncn_progname}; ac_word=$2
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10814 $as_echo_n "checking
for $ac_word...
" >&6; }
10815 if ${ac_cv_prog_DLLTOOL+:} false; then :
10816 $as_echo_n "(cached
) " >&6
10818 if test -n "$DLLTOOL"; then
10819 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10822 for as_dir in $PATH
10825 test -z "$as_dir" && as_dir=.
10826 for ac_exec_ext in '' $ac_executable_extensions; do
10827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10828 ac_cv_prog_DLLTOOL="${ncn_progname}"
10829 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10838 DLLTOOL=$ac_cv_prog_DLLTOOL
10839 if test -n "$DLLTOOL"; then
10840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
10841 $as_echo "$DLLTOOL" >&6; }
10843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10844 $as_echo "no
" >&6; }
10851 for ncn_progname in dlltool; do
10852 if test -n "$ncn_tool_prefix"; then
10853 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10854 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10856 $as_echo_n "checking
for $ac_word...
" >&6; }
10857 if ${ac_cv_prog_DLLTOOL+:} false; then :
10858 $as_echo_n "(cached
) " >&6
10860 if test -n "$DLLTOOL"; then
10861 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10864 for as_dir in $PATH
10867 test -z "$as_dir" && as_dir=.
10868 for ac_exec_ext in '' $ac_executable_extensions; do
10869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10870 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10871 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10880 DLLTOOL=$ac_cv_prog_DLLTOOL
10881 if test -n "$DLLTOOL"; then
10882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
10883 $as_echo "$DLLTOOL" >&6; }
10885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10886 $as_echo "no
" >&6; }
10891 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10892 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10893 set dummy ${ncn_progname}; ac_word=$2
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10895 $as_echo_n "checking
for $ac_word...
" >&6; }
10896 if ${ac_cv_prog_DLLTOOL+:} false; then :
10897 $as_echo_n "(cached
) " >&6
10899 if test -n "$DLLTOOL"; then
10900 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10903 for as_dir in $PATH
10906 test -z "$as_dir" && as_dir=.
10907 for ac_exec_ext in '' $ac_executable_extensions; do
10908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10909 ac_cv_prog_DLLTOOL="${ncn_progname}"
10910 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10919 DLLTOOL=$ac_cv_prog_DLLTOOL
10920 if test -n "$DLLTOOL"; then
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
10922 $as_echo "$DLLTOOL" >&6; }
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10925 $as_echo "no
" >&6; }
10930 test -n "$ac_cv_prog_DLLTOOL" && break
10933 if test -z "$ac_cv_prog_DLLTOOL" ; then
10935 if test $build = $host ; then
10938 DLLTOOL="${ncn_tool_prefix}$2"
10944 if test -n "$DSYMUTIL"; then
10945 ac_cv_prog_DSYMUTIL=$DSYMUTIL
10946 elif test -n "$ac_cv_prog_DSYMUTIL"; then
10947 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10950 if test -n "$ac_cv_prog_DSYMUTIL"; then
10951 for ncn_progname in dsymutil; do
10952 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10953 set dummy ${ncn_progname}; ac_word=$2
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10955 $as_echo_n "checking
for $ac_word...
" >&6; }
10956 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10957 $as_echo_n "(cached
) " >&6
10959 if test -n "$DSYMUTIL"; then
10960 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10962 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10963 for as_dir in $PATH
10966 test -z "$as_dir" && as_dir=.
10967 for ac_exec_ext in '' $ac_executable_extensions; do
10968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10969 ac_cv_prog_DSYMUTIL="${ncn_progname}"
10970 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10979 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10980 if test -n "$DSYMUTIL"; then
10981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
10982 $as_echo "$DSYMUTIL" >&6; }
10984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10985 $as_echo "no
" >&6; }
10992 for ncn_progname in dsymutil; do
10993 if test -n "$ncn_tool_prefix"; then
10994 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10995 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10997 $as_echo_n "checking
for $ac_word...
" >&6; }
10998 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10999 $as_echo_n "(cached
) " >&6
11001 if test -n "$DSYMUTIL"; then
11002 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11005 for as_dir in $PATH
11008 test -z "$as_dir" && as_dir=.
11009 for ac_exec_ext in '' $ac_executable_extensions; do
11010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11011 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11012 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11021 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11022 if test -n "$DSYMUTIL"; then
11023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11024 $as_echo "$DSYMUTIL" >&6; }
11026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11027 $as_echo "no
" >&6; }
11032 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11033 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11034 set dummy ${ncn_progname}; ac_word=$2
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11036 $as_echo_n "checking
for $ac_word...
" >&6; }
11037 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11038 $as_echo_n "(cached
) " >&6
11040 if test -n "$DSYMUTIL"; then
11041 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11044 for as_dir in $PATH
11047 test -z "$as_dir" && as_dir=.
11048 for ac_exec_ext in '' $ac_executable_extensions; do
11049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11050 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11051 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11060 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11061 if test -n "$DSYMUTIL"; then
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11063 $as_echo "$DSYMUTIL" >&6; }
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11066 $as_echo "no
" >&6; }
11071 test -n "$ac_cv_prog_DSYMUTIL" && break
11074 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11076 if test $build = $host ; then
11079 DSYMUTIL="${ncn_tool_prefix}$2"
11085 if test -n "$LD"; then
11087 elif test -n "$ac_cv_prog_LD"; then
11091 if test -n "$ac_cv_prog_LD"; then
11092 for ncn_progname in ld; do
11093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11094 set dummy ${ncn_progname}; ac_word=$2
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11096 $as_echo_n "checking
for $ac_word...
" >&6; }
11097 if ${ac_cv_prog_LD+:} false; then :
11098 $as_echo_n "(cached
) " >&6
11100 if test -n "$LD"; then
11101 ac_cv_prog_LD="$LD" # Let the user override the test.
11103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11104 for as_dir in $PATH
11107 test -z "$as_dir" && as_dir=.
11108 for ac_exec_ext in '' $ac_executable_extensions; do
11109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11110 ac_cv_prog_LD="${ncn_progname}"
11111 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11121 if test -n "$LD"; then
11122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11123 $as_echo "$LD" >&6; }
11125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11126 $as_echo "no
" >&6; }
11133 for ncn_progname in ld; do
11134 if test -n "$ncn_tool_prefix"; then
11135 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11136 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11138 $as_echo_n "checking
for $ac_word...
" >&6; }
11139 if ${ac_cv_prog_LD+:} false; then :
11140 $as_echo_n "(cached
) " >&6
11142 if test -n "$LD"; then
11143 ac_cv_prog_LD="$LD" # Let the user override the test.
11145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11146 for as_dir in $PATH
11149 test -z "$as_dir" && as_dir=.
11150 for ac_exec_ext in '' $ac_executable_extensions; do
11151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11152 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11153 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11163 if test -n "$LD"; then
11164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11165 $as_echo "$LD" >&6; }
11167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11168 $as_echo "no
" >&6; }
11173 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11175 set dummy ${ncn_progname}; ac_word=$2
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11177 $as_echo_n "checking
for $ac_word...
" >&6; }
11178 if ${ac_cv_prog_LD+:} false; then :
11179 $as_echo_n "(cached
) " >&6
11181 if test -n "$LD"; then
11182 ac_cv_prog_LD="$LD" # Let the user override the test.
11184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11185 for as_dir in $PATH
11188 test -z "$as_dir" && as_dir=.
11189 for ac_exec_ext in '' $ac_executable_extensions; do
11190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11191 ac_cv_prog_LD="${ncn_progname}"
11192 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11202 if test -n "$LD"; then
11203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11204 $as_echo "$LD" >&6; }
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11207 $as_echo "no
" >&6; }
11212 test -n "$ac_cv_prog_LD" && break
11215 if test -z "$ac_cv_prog_LD" ; then
11217 if test $build = $host ; then
11220 LD="${ncn_tool_prefix}$2"
11226 if test -n "$LIPO"; then
11227 ac_cv_prog_LIPO=$LIPO
11228 elif test -n "$ac_cv_prog_LIPO"; then
11229 LIPO=$ac_cv_prog_LIPO
11232 if test -n "$ac_cv_prog_LIPO"; then
11233 for ncn_progname in lipo; do
11234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11235 set dummy ${ncn_progname}; ac_word=$2
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11237 $as_echo_n "checking
for $ac_word...
" >&6; }
11238 if ${ac_cv_prog_LIPO+:} false; then :
11239 $as_echo_n "(cached
) " >&6
11241 if test -n "$LIPO"; then
11242 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11245 for as_dir in $PATH
11248 test -z "$as_dir" && as_dir=.
11249 for ac_exec_ext in '' $ac_executable_extensions; do
11250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11251 ac_cv_prog_LIPO="${ncn_progname}"
11252 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11261 LIPO=$ac_cv_prog_LIPO
11262 if test -n "$LIPO"; then
11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11264 $as_echo "$LIPO" >&6; }
11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11267 $as_echo "no
" >&6; }
11274 for ncn_progname in lipo; do
11275 if test -n "$ncn_tool_prefix"; then
11276 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11277 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11279 $as_echo_n "checking
for $ac_word...
" >&6; }
11280 if ${ac_cv_prog_LIPO+:} false; then :
11281 $as_echo_n "(cached
) " >&6
11283 if test -n "$LIPO"; then
11284 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11287 for as_dir in $PATH
11290 test -z "$as_dir" && as_dir=.
11291 for ac_exec_ext in '' $ac_executable_extensions; do
11292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11293 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11294 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11303 LIPO=$ac_cv_prog_LIPO
11304 if test -n "$LIPO"; then
11305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11306 $as_echo "$LIPO" >&6; }
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11309 $as_echo "no
" >&6; }
11314 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11316 set dummy ${ncn_progname}; ac_word=$2
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11318 $as_echo_n "checking
for $ac_word...
" >&6; }
11319 if ${ac_cv_prog_LIPO+:} false; then :
11320 $as_echo_n "(cached
) " >&6
11322 if test -n "$LIPO"; then
11323 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11326 for as_dir in $PATH
11329 test -z "$as_dir" && as_dir=.
11330 for ac_exec_ext in '' $ac_executable_extensions; do
11331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11332 ac_cv_prog_LIPO="${ncn_progname}"
11333 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11342 LIPO=$ac_cv_prog_LIPO
11343 if test -n "$LIPO"; then
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11345 $as_echo "$LIPO" >&6; }
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11348 $as_echo "no
" >&6; }
11353 test -n "$ac_cv_prog_LIPO" && break
11356 if test -z "$ac_cv_prog_LIPO" ; then
11358 if test $build = $host ; then
11361 LIPO="${ncn_tool_prefix}$2"
11367 if test -n "$NM"; then
11369 elif test -n "$ac_cv_prog_NM"; then
11373 if test -n "$ac_cv_prog_NM"; then
11374 for ncn_progname in nm; do
11375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11376 set dummy ${ncn_progname}; ac_word=$2
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11378 $as_echo_n "checking
for $ac_word...
" >&6; }
11379 if ${ac_cv_prog_NM+:} false; then :
11380 $as_echo_n "(cached
) " >&6
11382 if test -n "$NM"; then
11383 ac_cv_prog_NM="$NM" # Let the user override the test.
11385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11386 for as_dir in $PATH
11389 test -z "$as_dir" && as_dir=.
11390 for ac_exec_ext in '' $ac_executable_extensions; do
11391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11392 ac_cv_prog_NM="${ncn_progname}"
11393 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11403 if test -n "$NM"; then
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11405 $as_echo "$NM" >&6; }
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11408 $as_echo "no
" >&6; }
11415 for ncn_progname in nm; do
11416 if test -n "$ncn_tool_prefix"; then
11417 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11418 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11420 $as_echo_n "checking
for $ac_word...
" >&6; }
11421 if ${ac_cv_prog_NM+:} false; then :
11422 $as_echo_n "(cached
) " >&6
11424 if test -n "$NM"; then
11425 ac_cv_prog_NM="$NM" # Let the user override the test.
11427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428 for as_dir in $PATH
11431 test -z "$as_dir" && as_dir=.
11432 for ac_exec_ext in '' $ac_executable_extensions; do
11433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11434 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11435 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11445 if test -n "$NM"; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11447 $as_echo "$NM" >&6; }
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11450 $as_echo "no
" >&6; }
11455 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11457 set dummy ${ncn_progname}; ac_word=$2
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11459 $as_echo_n "checking
for $ac_word...
" >&6; }
11460 if ${ac_cv_prog_NM+:} false; then :
11461 $as_echo_n "(cached
) " >&6
11463 if test -n "$NM"; then
11464 ac_cv_prog_NM="$NM" # Let the user override the test.
11466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11467 for as_dir in $PATH
11470 test -z "$as_dir" && as_dir=.
11471 for ac_exec_ext in '' $ac_executable_extensions; do
11472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11473 ac_cv_prog_NM="${ncn_progname}"
11474 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11484 if test -n "$NM"; then
11485 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11486 $as_echo "$NM" >&6; }
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11489 $as_echo "no
" >&6; }
11494 test -n "$ac_cv_prog_NM" && break
11497 if test -z "$ac_cv_prog_NM" ; then
11499 if test $build = $host ; then
11502 NM="${ncn_tool_prefix}$2"
11508 if test -n "$RANLIB"; then
11509 ac_cv_prog_RANLIB=$RANLIB
11510 elif test -n "$ac_cv_prog_RANLIB"; then
11511 RANLIB=$ac_cv_prog_RANLIB
11514 if test -n "$ac_cv_prog_RANLIB"; then
11515 for ncn_progname in ranlib; do
11516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11517 set dummy ${ncn_progname}; ac_word=$2
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11519 $as_echo_n "checking
for $ac_word...
" >&6; }
11520 if ${ac_cv_prog_RANLIB+:} false; then :
11521 $as_echo_n "(cached
) " >&6
11523 if test -n "$RANLIB"; then
11524 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11527 for as_dir in $PATH
11530 test -z "$as_dir" && as_dir=.
11531 for ac_exec_ext in '' $ac_executable_extensions; do
11532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11533 ac_cv_prog_RANLIB="${ncn_progname}"
11534 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11543 RANLIB=$ac_cv_prog_RANLIB
11544 if test -n "$RANLIB"; then
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11546 $as_echo "$RANLIB" >&6; }
11548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11549 $as_echo "no
" >&6; }
11556 for ncn_progname in ranlib; do
11557 if test -n "$ncn_tool_prefix"; then
11558 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11559 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11561 $as_echo_n "checking
for $ac_word...
" >&6; }
11562 if ${ac_cv_prog_RANLIB+:} false; then :
11563 $as_echo_n "(cached
) " >&6
11565 if test -n "$RANLIB"; then
11566 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11569 for as_dir in $PATH
11572 test -z "$as_dir" && as_dir=.
11573 for ac_exec_ext in '' $ac_executable_extensions; do
11574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11575 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11576 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11585 RANLIB=$ac_cv_prog_RANLIB
11586 if test -n "$RANLIB"; then
11587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11588 $as_echo "$RANLIB" >&6; }
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11591 $as_echo "no
" >&6; }
11596 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11598 set dummy ${ncn_progname}; ac_word=$2
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11600 $as_echo_n "checking
for $ac_word...
" >&6; }
11601 if ${ac_cv_prog_RANLIB+:} false; then :
11602 $as_echo_n "(cached
) " >&6
11604 if test -n "$RANLIB"; then
11605 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11608 for as_dir in $PATH
11611 test -z "$as_dir" && as_dir=.
11612 for ac_exec_ext in '' $ac_executable_extensions; do
11613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11614 ac_cv_prog_RANLIB="${ncn_progname}"
11615 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11624 RANLIB=$ac_cv_prog_RANLIB
11625 if test -n "$RANLIB"; then
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11627 $as_echo "$RANLIB" >&6; }
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11630 $as_echo "no
" >&6; }
11635 test -n "$ac_cv_prog_RANLIB" && break
11638 if test -z "$ac_cv_prog_RANLIB" ; then
11644 if test -n "$STRIP"; then
11645 ac_cv_prog_STRIP=$STRIP
11646 elif test -n "$ac_cv_prog_STRIP"; then
11647 STRIP=$ac_cv_prog_STRIP
11650 if test -n "$ac_cv_prog_STRIP"; then
11651 for ncn_progname in strip; do
11652 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11653 set dummy ${ncn_progname}; ac_word=$2
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11655 $as_echo_n "checking
for $ac_word...
" >&6; }
11656 if ${ac_cv_prog_STRIP+:} false; then :
11657 $as_echo_n "(cached
) " >&6
11659 if test -n "$STRIP"; then
11660 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11663 for as_dir in $PATH
11666 test -z "$as_dir" && as_dir=.
11667 for ac_exec_ext in '' $ac_executable_extensions; do
11668 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11669 ac_cv_prog_STRIP="${ncn_progname}"
11670 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11679 STRIP=$ac_cv_prog_STRIP
11680 if test -n "$STRIP"; then
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11682 $as_echo "$STRIP" >&6; }
11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11685 $as_echo "no
" >&6; }
11692 for ncn_progname in strip; do
11693 if test -n "$ncn_tool_prefix"; then
11694 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11695 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11697 $as_echo_n "checking
for $ac_word...
" >&6; }
11698 if ${ac_cv_prog_STRIP+:} false; then :
11699 $as_echo_n "(cached
) " >&6
11701 if test -n "$STRIP"; then
11702 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11705 for as_dir in $PATH
11708 test -z "$as_dir" && as_dir=.
11709 for ac_exec_ext in '' $ac_executable_extensions; do
11710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11711 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11712 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11721 STRIP=$ac_cv_prog_STRIP
11722 if test -n "$STRIP"; then
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11724 $as_echo "$STRIP" >&6; }
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11727 $as_echo "no
" >&6; }
11732 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11733 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11734 set dummy ${ncn_progname}; ac_word=$2
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11736 $as_echo_n "checking
for $ac_word...
" >&6; }
11737 if ${ac_cv_prog_STRIP+:} false; then :
11738 $as_echo_n "(cached
) " >&6
11740 if test -n "$STRIP"; then
11741 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11743 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11744 for as_dir in $PATH
11747 test -z "$as_dir" && as_dir=.
11748 for ac_exec_ext in '' $ac_executable_extensions; do
11749 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11750 ac_cv_prog_STRIP="${ncn_progname}"
11751 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11760 STRIP=$ac_cv_prog_STRIP
11761 if test -n "$STRIP"; then
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11763 $as_echo "$STRIP" >&6; }
11765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11766 $as_echo "no
" >&6; }
11771 test -n "$ac_cv_prog_STRIP" && break
11774 if test -z "$ac_cv_prog_STRIP" ; then
11780 if test -n "$WINDRES"; then
11781 ac_cv_prog_WINDRES=$WINDRES
11782 elif test -n "$ac_cv_prog_WINDRES"; then
11783 WINDRES=$ac_cv_prog_WINDRES
11786 if test -n "$ac_cv_prog_WINDRES"; then
11787 for ncn_progname in windres; do
11788 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11789 set dummy ${ncn_progname}; ac_word=$2
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11791 $as_echo_n "checking
for $ac_word...
" >&6; }
11792 if ${ac_cv_prog_WINDRES+:} false; then :
11793 $as_echo_n "(cached
) " >&6
11795 if test -n "$WINDRES"; then
11796 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11799 for as_dir in $PATH
11802 test -z "$as_dir" && as_dir=.
11803 for ac_exec_ext in '' $ac_executable_extensions; do
11804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11805 ac_cv_prog_WINDRES="${ncn_progname}"
11806 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11815 WINDRES=$ac_cv_prog_WINDRES
11816 if test -n "$WINDRES"; then
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
11818 $as_echo "$WINDRES" >&6; }
11820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11821 $as_echo "no
" >&6; }
11828 for ncn_progname in windres; do
11829 if test -n "$ncn_tool_prefix"; then
11830 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11831 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11833 $as_echo_n "checking
for $ac_word...
" >&6; }
11834 if ${ac_cv_prog_WINDRES+:} false; then :
11835 $as_echo_n "(cached
) " >&6
11837 if test -n "$WINDRES"; then
11838 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11841 for as_dir in $PATH
11844 test -z "$as_dir" && as_dir=.
11845 for ac_exec_ext in '' $ac_executable_extensions; do
11846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11847 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11848 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11857 WINDRES=$ac_cv_prog_WINDRES
11858 if test -n "$WINDRES"; then
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
11860 $as_echo "$WINDRES" >&6; }
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11863 $as_echo "no
" >&6; }
11868 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11869 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11870 set dummy ${ncn_progname}; ac_word=$2
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11872 $as_echo_n "checking
for $ac_word...
" >&6; }
11873 if ${ac_cv_prog_WINDRES+:} false; then :
11874 $as_echo_n "(cached
) " >&6
11876 if test -n "$WINDRES"; then
11877 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11880 for as_dir in $PATH
11883 test -z "$as_dir" && as_dir=.
11884 for ac_exec_ext in '' $ac_executable_extensions; do
11885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11886 ac_cv_prog_WINDRES="${ncn_progname}"
11887 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11896 WINDRES=$ac_cv_prog_WINDRES
11897 if test -n "$WINDRES"; then
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
11899 $as_echo "$WINDRES" >&6; }
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11902 $as_echo "no
" >&6; }
11907 test -n "$ac_cv_prog_WINDRES" && break
11910 if test -z "$ac_cv_prog_WINDRES" ; then
11912 if test $build = $host ; then
11915 WINDRES="${ncn_tool_prefix}$2"
11921 if test -n "$WINDMC"; then
11922 ac_cv_prog_WINDMC=$WINDMC
11923 elif test -n "$ac_cv_prog_WINDMC"; then
11924 WINDMC=$ac_cv_prog_WINDMC
11927 if test -n "$ac_cv_prog_WINDMC"; then
11928 for ncn_progname in windmc; do
11929 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11930 set dummy ${ncn_progname}; ac_word=$2
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11932 $as_echo_n "checking
for $ac_word...
" >&6; }
11933 if ${ac_cv_prog_WINDMC+:} false; then :
11934 $as_echo_n "(cached
) " >&6
11936 if test -n "$WINDMC"; then
11937 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11940 for as_dir in $PATH
11943 test -z "$as_dir" && as_dir=.
11944 for ac_exec_ext in '' $ac_executable_extensions; do
11945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11946 ac_cv_prog_WINDMC="${ncn_progname}"
11947 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11956 WINDMC=$ac_cv_prog_WINDMC
11957 if test -n "$WINDMC"; then
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
11959 $as_echo "$WINDMC" >&6; }
11961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11962 $as_echo "no
" >&6; }
11969 for ncn_progname in windmc; do
11970 if test -n "$ncn_tool_prefix"; then
11971 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11972 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11974 $as_echo_n "checking
for $ac_word...
" >&6; }
11975 if ${ac_cv_prog_WINDMC+:} false; then :
11976 $as_echo_n "(cached
) " >&6
11978 if test -n "$WINDMC"; then
11979 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11982 for as_dir in $PATH
11985 test -z "$as_dir" && as_dir=.
11986 for ac_exec_ext in '' $ac_executable_extensions; do
11987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11988 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
11989 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11998 WINDMC=$ac_cv_prog_WINDMC
11999 if test -n "$WINDMC"; then
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12001 $as_echo "$WINDMC" >&6; }
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12004 $as_echo "no
" >&6; }
12009 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12010 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12011 set dummy ${ncn_progname}; ac_word=$2
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12013 $as_echo_n "checking
for $ac_word...
" >&6; }
12014 if ${ac_cv_prog_WINDMC+:} false; then :
12015 $as_echo_n "(cached
) " >&6
12017 if test -n "$WINDMC"; then
12018 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12021 for as_dir in $PATH
12024 test -z "$as_dir" && as_dir=.
12025 for ac_exec_ext in '' $ac_executable_extensions; do
12026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12027 ac_cv_prog_WINDMC="${ncn_progname}"
12028 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12037 WINDMC=$ac_cv_prog_WINDMC
12038 if test -n "$WINDMC"; then
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12040 $as_echo "$WINDMC" >&6; }
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12043 $as_echo "no
" >&6; }
12048 test -n "$ac_cv_prog_WINDMC" && break
12051 if test -z "$ac_cv_prog_WINDMC" ; then
12053 if test $build = $host ; then
12056 WINDMC="${ncn_tool_prefix}$2"
12062 if test -n "$OBJCOPY"; then
12063 ac_cv_prog_OBJCOPY=$OBJCOPY
12064 elif test -n "$ac_cv_prog_OBJCOPY"; then
12065 OBJCOPY=$ac_cv_prog_OBJCOPY
12068 if test -n "$ac_cv_prog_OBJCOPY"; then
12069 for ncn_progname in objcopy; do
12070 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12071 set dummy ${ncn_progname}; ac_word=$2
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12073 $as_echo_n "checking
for $ac_word...
" >&6; }
12074 if ${ac_cv_prog_OBJCOPY+:} false; then :
12075 $as_echo_n "(cached
) " >&6
12077 if test -n "$OBJCOPY"; then
12078 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12081 for as_dir in $PATH
12084 test -z "$as_dir" && as_dir=.
12085 for ac_exec_ext in '' $ac_executable_extensions; do
12086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12087 ac_cv_prog_OBJCOPY="${ncn_progname}"
12088 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12097 OBJCOPY=$ac_cv_prog_OBJCOPY
12098 if test -n "$OBJCOPY"; then
12099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12100 $as_echo "$OBJCOPY" >&6; }
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12103 $as_echo "no
" >&6; }
12110 for ncn_progname in objcopy; do
12111 if test -n "$ncn_tool_prefix"; then
12112 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12113 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12115 $as_echo_n "checking
for $ac_word...
" >&6; }
12116 if ${ac_cv_prog_OBJCOPY+:} false; then :
12117 $as_echo_n "(cached
) " >&6
12119 if test -n "$OBJCOPY"; then
12120 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12123 for as_dir in $PATH
12126 test -z "$as_dir" && as_dir=.
12127 for ac_exec_ext in '' $ac_executable_extensions; do
12128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12129 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12130 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12139 OBJCOPY=$ac_cv_prog_OBJCOPY
12140 if test -n "$OBJCOPY"; then
12141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12142 $as_echo "$OBJCOPY" >&6; }
12144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12145 $as_echo "no
" >&6; }
12150 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12151 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12152 set dummy ${ncn_progname}; ac_word=$2
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12154 $as_echo_n "checking
for $ac_word...
" >&6; }
12155 if ${ac_cv_prog_OBJCOPY+:} false; then :
12156 $as_echo_n "(cached
) " >&6
12158 if test -n "$OBJCOPY"; then
12159 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12162 for as_dir in $PATH
12165 test -z "$as_dir" && as_dir=.
12166 for ac_exec_ext in '' $ac_executable_extensions; do
12167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12168 ac_cv_prog_OBJCOPY="${ncn_progname}"
12169 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12178 OBJCOPY=$ac_cv_prog_OBJCOPY
12179 if test -n "$OBJCOPY"; then
12180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12181 $as_echo "$OBJCOPY" >&6; }
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12184 $as_echo "no
" >&6; }
12189 test -n "$ac_cv_prog_OBJCOPY" && break
12192 if test -z "$ac_cv_prog_OBJCOPY" ; then
12194 if test $build = $host ; then
12197 OBJCOPY="${ncn_tool_prefix}$2"
12203 if test -n "$OBJDUMP"; then
12204 ac_cv_prog_OBJDUMP=$OBJDUMP
12205 elif test -n "$ac_cv_prog_OBJDUMP"; then
12206 OBJDUMP=$ac_cv_prog_OBJDUMP
12209 if test -n "$ac_cv_prog_OBJDUMP"; then
12210 for ncn_progname in objdump; do
12211 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12212 set dummy ${ncn_progname}; ac_word=$2
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12214 $as_echo_n "checking
for $ac_word...
" >&6; }
12215 if ${ac_cv_prog_OBJDUMP+:} false; then :
12216 $as_echo_n "(cached
) " >&6
12218 if test -n "$OBJDUMP"; then
12219 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12222 for as_dir in $PATH
12225 test -z "$as_dir" && as_dir=.
12226 for ac_exec_ext in '' $ac_executable_extensions; do
12227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12228 ac_cv_prog_OBJDUMP="${ncn_progname}"
12229 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12238 OBJDUMP=$ac_cv_prog_OBJDUMP
12239 if test -n "$OBJDUMP"; then
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12241 $as_echo "$OBJDUMP" >&6; }
12243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12244 $as_echo "no
" >&6; }
12251 for ncn_progname in objdump; do
12252 if test -n "$ncn_tool_prefix"; then
12253 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12254 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12256 $as_echo_n "checking
for $ac_word...
" >&6; }
12257 if ${ac_cv_prog_OBJDUMP+:} false; then :
12258 $as_echo_n "(cached
) " >&6
12260 if test -n "$OBJDUMP"; then
12261 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12264 for as_dir in $PATH
12267 test -z "$as_dir" && as_dir=.
12268 for ac_exec_ext in '' $ac_executable_extensions; do
12269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12270 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12271 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12280 OBJDUMP=$ac_cv_prog_OBJDUMP
12281 if test -n "$OBJDUMP"; then
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12283 $as_echo "$OBJDUMP" >&6; }
12285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12286 $as_echo "no
" >&6; }
12291 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12293 set dummy ${ncn_progname}; ac_word=$2
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12295 $as_echo_n "checking
for $ac_word...
" >&6; }
12296 if ${ac_cv_prog_OBJDUMP+:} false; then :
12297 $as_echo_n "(cached
) " >&6
12299 if test -n "$OBJDUMP"; then
12300 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12303 for as_dir in $PATH
12306 test -z "$as_dir" && as_dir=.
12307 for ac_exec_ext in '' $ac_executable_extensions; do
12308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12309 ac_cv_prog_OBJDUMP="${ncn_progname}"
12310 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12319 OBJDUMP=$ac_cv_prog_OBJDUMP
12320 if test -n "$OBJDUMP"; then
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12322 $as_echo "$OBJDUMP" >&6; }
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12325 $as_echo "no
" >&6; }
12330 test -n "$ac_cv_prog_OBJDUMP" && break
12333 if test -z "$ac_cv_prog_OBJDUMP" ; then
12335 if test $build = $host ; then
12338 OBJDUMP="${ncn_tool_prefix}$2"
12344 if test -n "$OTOOL"; then
12345 ac_cv_prog_OTOOL=$OTOOL
12346 elif test -n "$ac_cv_prog_OTOOL"; then
12347 OTOOL=$ac_cv_prog_OTOOL
12350 if test -n "$ac_cv_prog_OTOOL"; then
12351 for ncn_progname in otool; do
12352 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12353 set dummy ${ncn_progname}; ac_word=$2
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12355 $as_echo_n "checking
for $ac_word...
" >&6; }
12356 if ${ac_cv_prog_OTOOL+:} false; then :
12357 $as_echo_n "(cached
) " >&6
12359 if test -n "$OTOOL"; then
12360 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12363 for as_dir in $PATH
12366 test -z "$as_dir" && as_dir=.
12367 for ac_exec_ext in '' $ac_executable_extensions; do
12368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12369 ac_cv_prog_OTOOL="${ncn_progname}"
12370 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12379 OTOOL=$ac_cv_prog_OTOOL
12380 if test -n "$OTOOL"; then
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12382 $as_echo "$OTOOL" >&6; }
12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12385 $as_echo "no
" >&6; }
12392 for ncn_progname in otool; do
12393 if test -n "$ncn_tool_prefix"; then
12394 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12395 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12397 $as_echo_n "checking
for $ac_word...
" >&6; }
12398 if ${ac_cv_prog_OTOOL+:} false; then :
12399 $as_echo_n "(cached
) " >&6
12401 if test -n "$OTOOL"; then
12402 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12405 for as_dir in $PATH
12408 test -z "$as_dir" && as_dir=.
12409 for ac_exec_ext in '' $ac_executable_extensions; do
12410 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12411 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12412 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12421 OTOOL=$ac_cv_prog_OTOOL
12422 if test -n "$OTOOL"; then
12423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12424 $as_echo "$OTOOL" >&6; }
12426 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12427 $as_echo "no
" >&6; }
12432 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12433 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12434 set dummy ${ncn_progname}; ac_word=$2
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12436 $as_echo_n "checking
for $ac_word...
" >&6; }
12437 if ${ac_cv_prog_OTOOL+:} false; then :
12438 $as_echo_n "(cached
) " >&6
12440 if test -n "$OTOOL"; then
12441 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12444 for as_dir in $PATH
12447 test -z "$as_dir" && as_dir=.
12448 for ac_exec_ext in '' $ac_executable_extensions; do
12449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12450 ac_cv_prog_OTOOL="${ncn_progname}"
12451 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12460 OTOOL=$ac_cv_prog_OTOOL
12461 if test -n "$OTOOL"; then
12462 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12463 $as_echo "$OTOOL" >&6; }
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12466 $as_echo "no
" >&6; }
12471 test -n "$ac_cv_prog_OTOOL" && break
12474 if test -z "$ac_cv_prog_OTOOL" ; then
12476 if test $build = $host ; then
12479 OTOOL="${ncn_tool_prefix}$2"
12485 if test -n "$READELF"; then
12486 ac_cv_prog_READELF=$READELF
12487 elif test -n "$ac_cv_prog_READELF"; then
12488 READELF=$ac_cv_prog_READELF
12491 if test -n "$ac_cv_prog_READELF"; then
12492 for ncn_progname in readelf; do
12493 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12494 set dummy ${ncn_progname}; ac_word=$2
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12496 $as_echo_n "checking
for $ac_word...
" >&6; }
12497 if ${ac_cv_prog_READELF+:} false; then :
12498 $as_echo_n "(cached
) " >&6
12500 if test -n "$READELF"; then
12501 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12504 for as_dir in $PATH
12507 test -z "$as_dir" && as_dir=.
12508 for ac_exec_ext in '' $ac_executable_extensions; do
12509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12510 ac_cv_prog_READELF="${ncn_progname}"
12511 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12520 READELF=$ac_cv_prog_READELF
12521 if test -n "$READELF"; then
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12523 $as_echo "$READELF" >&6; }
12525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12526 $as_echo "no
" >&6; }
12533 for ncn_progname in readelf; do
12534 if test -n "$ncn_tool_prefix"; then
12535 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12536 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12538 $as_echo_n "checking
for $ac_word...
" >&6; }
12539 if ${ac_cv_prog_READELF+:} false; then :
12540 $as_echo_n "(cached
) " >&6
12542 if test -n "$READELF"; then
12543 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546 for as_dir in $PATH
12549 test -z "$as_dir" && as_dir=.
12550 for ac_exec_ext in '' $ac_executable_extensions; do
12551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12552 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12553 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12562 READELF=$ac_cv_prog_READELF
12563 if test -n "$READELF"; then
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12565 $as_echo "$READELF" >&6; }
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12568 $as_echo "no
" >&6; }
12573 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12574 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12575 set dummy ${ncn_progname}; ac_word=$2
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12577 $as_echo_n "checking
for $ac_word...
" >&6; }
12578 if ${ac_cv_prog_READELF+:} false; then :
12579 $as_echo_n "(cached
) " >&6
12581 if test -n "$READELF"; then
12582 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12584 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12585 for as_dir in $PATH
12588 test -z "$as_dir" && as_dir=.
12589 for ac_exec_ext in '' $ac_executable_extensions; do
12590 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12591 ac_cv_prog_READELF="${ncn_progname}"
12592 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12601 READELF=$ac_cv_prog_READELF
12602 if test -n "$READELF"; then
12603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12604 $as_echo "$READELF" >&6; }
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12607 $as_echo "no
" >&6; }
12612 test -n "$ac_cv_prog_READELF" && break
12615 if test -z "$ac_cv_prog_READELF" ; then
12617 if test $build = $host ; then
12620 READELF="${ncn_tool_prefix}$2"
12631 # Check whether --with-build-time-tools was given.
12632 if test "${with_build_time_tools+set}" = set; then :
12633 withval=$with_build_time_tools; case x"$withval" in
12636 with_build_time_tools=
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
12638 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
12642 with_build_time_tools=
12648 if test -n "$CC_FOR_TARGET"; then
12649 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12650 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12651 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12654 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12655 for ncn_progname in cc gcc; do
12656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12657 set dummy ${ncn_progname}; ac_word=$2
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12659 $as_echo_n "checking
for $ac_word...
" >&6; }
12660 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12661 $as_echo_n "(cached
) " >&6
12663 if test -n "$CC_FOR_TARGET"; then
12664 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667 for as_dir in $PATH
12670 test -z "$as_dir" && as_dir=.
12671 for ac_exec_ext in '' $ac_executable_extensions; do
12672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12673 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12674 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12683 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12684 if test -n "$CC_FOR_TARGET"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12686 $as_echo "$CC_FOR_TARGET" >&6; }
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12689 $as_echo "no
" >&6; }
12696 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12697 for ncn_progname in cc gcc; do
12698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12699 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12700 if test -x $with_build_time_tools/${ncn_progname}; then
12701 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12703 $as_echo "yes" >&6; }
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12707 $as_echo "no
" >&6; }
12712 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12713 for ncn_progname in cc gcc; do
12714 if test -n "$ncn_target_tool_prefix"; then
12715 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12716 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12718 $as_echo_n "checking
for $ac_word...
" >&6; }
12719 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12720 $as_echo_n "(cached
) " >&6
12722 if test -n "$CC_FOR_TARGET"; then
12723 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12726 for as_dir in $PATH
12729 test -z "$as_dir" && as_dir=.
12730 for ac_exec_ext in '' $ac_executable_extensions; do
12731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12732 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12733 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12742 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12743 if test -n "$CC_FOR_TARGET"; then
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12745 $as_echo "$CC_FOR_TARGET" >&6; }
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12748 $as_echo "no
" >&6; }
12753 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12754 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12755 set dummy ${ncn_progname}; ac_word=$2
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12757 $as_echo_n "checking
for $ac_word...
" >&6; }
12758 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12759 $as_echo_n "(cached
) " >&6
12761 if test -n "$CC_FOR_TARGET"; then
12762 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12765 for as_dir in $PATH
12768 test -z "$as_dir" && as_dir=.
12769 for ac_exec_ext in '' $ac_executable_extensions; do
12770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12771 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12772 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12781 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12782 if test -n "$CC_FOR_TARGET"; then
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12784 $as_echo "$CC_FOR_TARGET" >&6; }
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12787 $as_echo "no
" >&6; }
12792 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12796 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12798 if test $build = $target ; then
12801 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12804 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12809 if test -n "$CXX_FOR_TARGET"; then
12810 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12811 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12812 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12815 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12816 for ncn_progname in c++ g++ cxx gxx; do
12817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12818 set dummy ${ncn_progname}; ac_word=$2
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12820 $as_echo_n "checking
for $ac_word...
" >&6; }
12821 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12822 $as_echo_n "(cached
) " >&6
12824 if test -n "$CXX_FOR_TARGET"; then
12825 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $PATH
12831 test -z "$as_dir" && as_dir=.
12832 for ac_exec_ext in '' $ac_executable_extensions; do
12833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12834 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12835 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12844 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12845 if test -n "$CXX_FOR_TARGET"; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
12847 $as_echo "$CXX_FOR_TARGET" >&6; }
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12850 $as_echo "no
" >&6; }
12857 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
12858 for ncn_progname in c++ g++ cxx gxx; do
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12860 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12861 if test -x $with_build_time_tools/${ncn_progname}; then
12862 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12864 $as_echo "yes" >&6; }
12867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12868 $as_echo "no
" >&6; }
12873 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12874 for ncn_progname in c++ g++ cxx gxx; do
12875 if test -n "$ncn_target_tool_prefix"; then
12876 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12877 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12879 $as_echo_n "checking
for $ac_word...
" >&6; }
12880 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12881 $as_echo_n "(cached
) " >&6
12883 if test -n "$CXX_FOR_TARGET"; then
12884 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12887 for as_dir in $PATH
12890 test -z "$as_dir" && as_dir=.
12891 for ac_exec_ext in '' $ac_executable_extensions; do
12892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12893 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12894 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12903 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12904 if test -n "$CXX_FOR_TARGET"; then
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
12906 $as_echo "$CXX_FOR_TARGET" >&6; }
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12909 $as_echo "no
" >&6; }
12914 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12916 set dummy ${ncn_progname}; ac_word=$2
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12918 $as_echo_n "checking
for $ac_word...
" >&6; }
12919 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12920 $as_echo_n "(cached
) " >&6
12922 if test -n "$CXX_FOR_TARGET"; then
12923 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12926 for as_dir in $PATH
12929 test -z "$as_dir" && as_dir=.
12930 for ac_exec_ext in '' $ac_executable_extensions; do
12931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12932 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12933 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12942 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12943 if test -n "$CXX_FOR_TARGET"; then
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
12945 $as_echo "$CXX_FOR_TARGET" >&6; }
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12948 $as_echo "no
" >&6; }
12953 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12957 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12958 set dummy c++ g++ cxx gxx
12959 if test $build = $target ; then
12960 CXX_FOR_TARGET="$2"
12962 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
12965 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
12970 if test -n "$GCC_FOR_TARGET"; then
12971 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12972 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12973 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12976 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12977 for ncn_progname in gcc; do
12978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12979 set dummy ${ncn_progname}; ac_word=$2
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12981 $as_echo_n "checking
for $ac_word...
" >&6; }
12982 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12983 $as_echo_n "(cached
) " >&6
12985 if test -n "$GCC_FOR_TARGET"; then
12986 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12989 for as_dir in $PATH
12992 test -z "$as_dir" && as_dir=.
12993 for ac_exec_ext in '' $ac_executable_extensions; do
12994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12995 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12996 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13005 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13006 if test -n "$GCC_FOR_TARGET"; then
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13008 $as_echo "$GCC_FOR_TARGET" >&6; }
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13011 $as_echo "no
" >&6; }
13018 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13019 for ncn_progname in gcc; do
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13021 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13022 if test -x $with_build_time_tools/${ncn_progname}; then
13023 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13025 $as_echo "yes" >&6; }
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13029 $as_echo "no
" >&6; }
13034 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13035 for ncn_progname in gcc; do
13036 if test -n "$ncn_target_tool_prefix"; then
13037 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13038 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13040 $as_echo_n "checking
for $ac_word...
" >&6; }
13041 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13042 $as_echo_n "(cached
) " >&6
13044 if test -n "$GCC_FOR_TARGET"; then
13045 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13064 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13065 if test -n "$GCC_FOR_TARGET"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13067 $as_echo "$GCC_FOR_TARGET" >&6; }
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13070 $as_echo "no
" >&6; }
13075 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13077 set dummy ${ncn_progname}; ac_word=$2
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13079 $as_echo_n "checking
for $ac_word...
" >&6; }
13080 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13081 $as_echo_n "(cached
) " >&6
13083 if test -n "$GCC_FOR_TARGET"; then
13084 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13090 test -z "$as_dir" && as_dir=.
13091 for ac_exec_ext in '' $ac_executable_extensions; do
13092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13093 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13094 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13103 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13104 if test -n "$GCC_FOR_TARGET"; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13106 $as_echo "$GCC_FOR_TARGET" >&6; }
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13109 $as_echo "no
" >&6; }
13114 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13118 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13119 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13121 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13126 if test -n "$GFORTRAN_FOR_TARGET"; then
13127 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13128 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13129 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13132 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13133 for ncn_progname in gfortran; do
13134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13135 set dummy ${ncn_progname}; ac_word=$2
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13137 $as_echo_n "checking
for $ac_word...
" >&6; }
13138 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13139 $as_echo_n "(cached
) " >&6
13141 if test -n "$GFORTRAN_FOR_TARGET"; then
13142 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13145 for as_dir in $PATH
13148 test -z "$as_dir" && as_dir=.
13149 for ac_exec_ext in '' $ac_executable_extensions; do
13150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13151 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13152 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13161 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13162 if test -n "$GFORTRAN_FOR_TARGET"; then
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13164 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13167 $as_echo "no
" >&6; }
13174 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13175 for ncn_progname in gfortran; do
13176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13177 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13178 if test -x $with_build_time_tools/${ncn_progname}; then
13179 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13181 $as_echo "yes" >&6; }
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13185 $as_echo "no
" >&6; }
13190 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13191 for ncn_progname in gfortran; do
13192 if test -n "$ncn_target_tool_prefix"; then
13193 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13194 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13196 $as_echo_n "checking
for $ac_word...
" >&6; }
13197 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13198 $as_echo_n "(cached
) " >&6
13200 if test -n "$GFORTRAN_FOR_TARGET"; then
13201 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13204 for as_dir in $PATH
13207 test -z "$as_dir" && as_dir=.
13208 for ac_exec_ext in '' $ac_executable_extensions; do
13209 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13210 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13211 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13220 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13221 if test -n "$GFORTRAN_FOR_TARGET"; then
13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13223 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13226 $as_echo "no
" >&6; }
13231 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13232 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13233 set dummy ${ncn_progname}; ac_word=$2
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13235 $as_echo_n "checking
for $ac_word...
" >&6; }
13236 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13237 $as_echo_n "(cached
) " >&6
13239 if test -n "$GFORTRAN_FOR_TARGET"; then
13240 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13243 for as_dir in $PATH
13246 test -z "$as_dir" && as_dir=.
13247 for ac_exec_ext in '' $ac_executable_extensions; do
13248 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13249 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13250 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13259 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13260 if test -n "$GFORTRAN_FOR_TARGET"; then
13261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13262 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13265 $as_echo "no
" >&6; }
13270 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13274 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13276 if test $build = $target ; then
13277 GFORTRAN_FOR_TARGET="$2"
13279 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13282 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13287 if test -n "$GOC_FOR_TARGET"; then
13288 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13289 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13290 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13293 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13294 for ncn_progname in gccgo; do
13295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13296 set dummy ${ncn_progname}; ac_word=$2
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13298 $as_echo_n "checking
for $ac_word...
" >&6; }
13299 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13300 $as_echo_n "(cached
) " >&6
13302 if test -n "$GOC_FOR_TARGET"; then
13303 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13306 for as_dir in $PATH
13309 test -z "$as_dir" && as_dir=.
13310 for ac_exec_ext in '' $ac_executable_extensions; do
13311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13312 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13313 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13322 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13323 if test -n "$GOC_FOR_TARGET"; then
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13325 $as_echo "$GOC_FOR_TARGET" >&6; }
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13328 $as_echo "no
" >&6; }
13335 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13336 for ncn_progname in gccgo; do
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13338 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13339 if test -x $with_build_time_tools/${ncn_progname}; then
13340 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13342 $as_echo "yes" >&6; }
13345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13346 $as_echo "no
" >&6; }
13351 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13352 for ncn_progname in gccgo; do
13353 if test -n "$ncn_target_tool_prefix"; then
13354 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13355 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13357 $as_echo_n "checking
for $ac_word...
" >&6; }
13358 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13359 $as_echo_n "(cached
) " >&6
13361 if test -n "$GOC_FOR_TARGET"; then
13362 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13365 for as_dir in $PATH
13368 test -z "$as_dir" && as_dir=.
13369 for ac_exec_ext in '' $ac_executable_extensions; do
13370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13371 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13372 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13381 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13382 if test -n "$GOC_FOR_TARGET"; then
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13384 $as_echo "$GOC_FOR_TARGET" >&6; }
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13387 $as_echo "no
" >&6; }
13392 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13394 set dummy ${ncn_progname}; ac_word=$2
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13396 $as_echo_n "checking
for $ac_word...
" >&6; }
13397 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13398 $as_echo_n "(cached
) " >&6
13400 if test -n "$GOC_FOR_TARGET"; then
13401 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13404 for as_dir in $PATH
13407 test -z "$as_dir" && as_dir=.
13408 for ac_exec_ext in '' $ac_executable_extensions; do
13409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13410 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13411 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13420 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13421 if test -n "$GOC_FOR_TARGET"; then
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13423 $as_echo "$GOC_FOR_TARGET" >&6; }
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13426 $as_echo "no
" >&6; }
13431 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13435 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13437 if test $build = $target ; then
13438 GOC_FOR_TARGET="$2"
13440 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13443 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13448 if test -n "$GDC_FOR_TARGET"; then
13449 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13450 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13451 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13454 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13455 for ncn_progname in gdc; do
13456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13457 set dummy ${ncn_progname}; ac_word=$2
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13459 $as_echo_n "checking
for $ac_word...
" >&6; }
13460 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13461 $as_echo_n "(cached
) " >&6
13463 if test -n "$GDC_FOR_TARGET"; then
13464 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13467 for as_dir in $PATH
13470 test -z "$as_dir" && as_dir=.
13471 for ac_exec_ext in '' $ac_executable_extensions; do
13472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13473 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13474 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13483 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13484 if test -n "$GDC_FOR_TARGET"; then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13486 $as_echo "$GDC_FOR_TARGET" >&6; }
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13489 $as_echo "no
" >&6; }
13496 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13497 for ncn_progname in gdc; do
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13499 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13500 if test -x $with_build_time_tools/${ncn_progname}; then
13501 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13503 $as_echo "yes" >&6; }
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13507 $as_echo "no
" >&6; }
13512 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13513 for ncn_progname in gdc; do
13514 if test -n "$ncn_target_tool_prefix"; then
13515 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13516 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13518 $as_echo_n "checking
for $ac_word...
" >&6; }
13519 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13520 $as_echo_n "(cached
) " >&6
13522 if test -n "$GDC_FOR_TARGET"; then
13523 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13532 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13542 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13543 if test -n "$GDC_FOR_TARGET"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13545 $as_echo "$GDC_FOR_TARGET" >&6; }
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13548 $as_echo "no
" >&6; }
13553 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13555 set dummy ${ncn_progname}; ac_word=$2
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13557 $as_echo_n "checking
for $ac_word...
" >&6; }
13558 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13559 $as_echo_n "(cached
) " >&6
13561 if test -n "$GDC_FOR_TARGET"; then
13562 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565 for as_dir in $PATH
13568 test -z "$as_dir" && as_dir=.
13569 for ac_exec_ext in '' $ac_executable_extensions; do
13570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13571 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13572 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13581 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13582 if test -n "$GDC_FOR_TARGET"; then
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13584 $as_echo "$GDC_FOR_TARGET" >&6; }
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13587 $as_echo "no
" >&6; }
13592 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13596 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13598 if test $build = $target ; then
13599 GDC_FOR_TARGET="$2"
13601 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13604 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13609 if test -n "$GM2_FOR_TARGET"; then
13610 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
13611 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13612 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13615 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13616 for ncn_progname in gm2; do
13617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13618 set dummy ${ncn_progname}; ac_word=$2
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13620 $as_echo_n "checking
for $ac_word...
" >&6; }
13621 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13622 $as_echo_n "(cached
) " >&6
13624 if test -n "$GM2_FOR_TARGET"; then
13625 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
13633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13634 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13635 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13644 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13645 if test -n "$GM2_FOR_TARGET"; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
13647 $as_echo "$GM2_FOR_TARGET" >&6; }
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13650 $as_echo "no
" >&6; }
13657 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
13658 for ncn_progname in gm2; do
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13660 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13661 if test -x $with_build_time_tools/${ncn_progname}; then
13662 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13664 $as_echo "yes" >&6; }
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13668 $as_echo "no
" >&6; }
13673 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
13674 for ncn_progname in gm2; do
13675 if test -n "$ncn_target_tool_prefix"; then
13676 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13677 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13679 $as_echo_n "checking
for $ac_word...
" >&6; }
13680 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13681 $as_echo_n "(cached
) " >&6
13683 if test -n "$GM2_FOR_TARGET"; then
13684 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13687 for as_dir in $PATH
13690 test -z "$as_dir" && as_dir=.
13691 for ac_exec_ext in '' $ac_executable_extensions; do
13692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13693 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13694 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13703 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13704 if test -n "$GM2_FOR_TARGET"; then
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
13706 $as_echo "$GM2_FOR_TARGET" >&6; }
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13709 $as_echo "no
" >&6; }
13714 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
13715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13716 set dummy ${ncn_progname}; ac_word=$2
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13718 $as_echo_n "checking
for $ac_word...
" >&6; }
13719 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13720 $as_echo_n "(cached
) " >&6
13722 if test -n "$GM2_FOR_TARGET"; then
13723 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13729 test -z "$as_dir" && as_dir=.
13730 for ac_exec_ext in '' $ac_executable_extensions; do
13731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13732 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13733 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13742 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13743 if test -n "$GM2_FOR_TARGET"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
13745 $as_echo "$GM2_FOR_TARGET" >&6; }
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13748 $as_echo "no
" >&6; }
13753 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
13757 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
13759 if test $build = $target ; then
13760 GM2_FOR_TARGET="$2"
13762 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
13765 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
13770 cat > conftest.c << \EOF
13775 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13776 have_gcc_for_target=yes
13778 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13779 have_gcc_for_target=no
13786 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13787 if test -n "$with_build_time_tools"; then
13788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
13789 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
13790 if test -x $with_build_time_tools/ar; then
13791 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13792 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
13794 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13797 $as_echo "no
" >&6; }
13799 elif test $build != $host && test $have_gcc_for_target = yes; then
13800 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13801 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13802 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13805 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13806 # Extract the first word of "ar", so it can be a program name with args.
13807 set dummy ar; ac_word=$2
13808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13809 $as_echo_n "checking
for $ac_word...
" >&6; }
13810 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13811 $as_echo_n "(cached
) " >&6
13813 case $AR_FOR_TARGET in
13815 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13819 for as_dir in $gcc_cv_tool_dirs
13822 test -z "$as_dir" && as_dir=.
13823 for ac_exec_ext in '' $ac_executable_extensions; do
13824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13825 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13826 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13836 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13837 if test -n "$AR_FOR_TARGET"; then
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13839 $as_echo "$AR_FOR_TARGET" >&6; }
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13842 $as_echo "no
" >&6; }
13847 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13850 if test -n "$AR_FOR_TARGET"; then
13851 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13852 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13853 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13856 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13857 for ncn_progname in ar; do
13858 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13859 set dummy ${ncn_progname}; ac_word=$2
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13861 $as_echo_n "checking
for $ac_word...
" >&6; }
13862 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13863 $as_echo_n "(cached
) " >&6
13865 if test -n "$AR_FOR_TARGET"; then
13866 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13869 for as_dir in $PATH
13872 test -z "$as_dir" && as_dir=.
13873 for ac_exec_ext in '' $ac_executable_extensions; do
13874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13875 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13876 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13885 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13886 if test -n "$AR_FOR_TARGET"; then
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13888 $as_echo "$AR_FOR_TARGET" >&6; }
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13891 $as_echo "no
" >&6; }
13898 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13899 for ncn_progname in ar; do
13900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13901 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13902 if test -x $with_build_time_tools/${ncn_progname}; then
13903 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13905 $as_echo "yes" >&6; }
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13909 $as_echo "no
" >&6; }
13914 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13915 for ncn_progname in ar; do
13916 if test -n "$ncn_target_tool_prefix"; then
13917 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13918 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13920 $as_echo_n "checking
for $ac_word...
" >&6; }
13921 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13922 $as_echo_n "(cached
) " >&6
13924 if test -n "$AR_FOR_TARGET"; then
13925 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13928 for as_dir in $PATH
13931 test -z "$as_dir" && as_dir=.
13932 for ac_exec_ext in '' $ac_executable_extensions; do
13933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13934 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13935 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13944 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13945 if test -n "$AR_FOR_TARGET"; then
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13947 $as_echo "$AR_FOR_TARGET" >&6; }
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13950 $as_echo "no
" >&6; }
13955 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13957 set dummy ${ncn_progname}; ac_word=$2
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13959 $as_echo_n "checking
for $ac_word...
" >&6; }
13960 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13961 $as_echo_n "(cached
) " >&6
13963 if test -n "$AR_FOR_TARGET"; then
13964 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $PATH
13970 test -z "$as_dir" && as_dir=.
13971 for ac_exec_ext in '' $ac_executable_extensions; do
13972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13973 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13974 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13983 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13984 if test -n "$AR_FOR_TARGET"; then
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13986 $as_echo "$AR_FOR_TARGET" >&6; }
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13989 $as_echo "no
" >&6; }
13994 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13998 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14000 if test $build = $target ; then
14003 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14006 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14010 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14016 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14017 if test -n "$with_build_time_tools"; then
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14019 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14020 if test -x $with_build_time_tools/as; then
14021 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14022 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14024 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14027 $as_echo "no
" >&6; }
14029 elif test $build != $host && test $have_gcc_for_target = yes; then
14030 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14031 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14032 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14035 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14036 # Extract the first word of "as
", so it can be a program name with args.
14037 set dummy as; ac_word=$2
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14039 $as_echo_n "checking
for $ac_word...
" >&6; }
14040 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14041 $as_echo_n "(cached
) " >&6
14043 case $AS_FOR_TARGET in
14045 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049 for as_dir in $gcc_cv_tool_dirs
14052 test -z "$as_dir" && as_dir=.
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14055 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14056 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14066 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14067 if test -n "$AS_FOR_TARGET"; then
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14069 $as_echo "$AS_FOR_TARGET" >&6; }
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14072 $as_echo "no
" >&6; }
14077 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14080 if test -n "$AS_FOR_TARGET"; then
14081 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14082 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14083 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14086 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14087 for ncn_progname in as; do
14088 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14089 set dummy ${ncn_progname}; ac_word=$2
14090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14091 $as_echo_n "checking
for $ac_word...
" >&6; }
14092 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14093 $as_echo_n "(cached
) " >&6
14095 if test -n "$AS_FOR_TARGET"; then
14096 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14098 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14099 for as_dir in $PATH
14102 test -z "$as_dir" && as_dir=.
14103 for ac_exec_ext in '' $ac_executable_extensions; do
14104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14105 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14106 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14115 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14116 if test -n "$AS_FOR_TARGET"; then
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14118 $as_echo "$AS_FOR_TARGET" >&6; }
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14121 $as_echo "no
" >&6; }
14128 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14129 for ncn_progname in as; do
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14131 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14132 if test -x $with_build_time_tools/${ncn_progname}; then
14133 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14135 $as_echo "yes" >&6; }
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14139 $as_echo "no
" >&6; }
14144 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14145 for ncn_progname in as; do
14146 if test -n "$ncn_target_tool_prefix"; then
14147 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14148 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14150 $as_echo_n "checking
for $ac_word...
" >&6; }
14151 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14152 $as_echo_n "(cached
) " >&6
14154 if test -n "$AS_FOR_TARGET"; then
14155 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14158 for as_dir in $PATH
14161 test -z "$as_dir" && as_dir=.
14162 for ac_exec_ext in '' $ac_executable_extensions; do
14163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14164 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14165 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14174 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14175 if test -n "$AS_FOR_TARGET"; then
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14177 $as_echo "$AS_FOR_TARGET" >&6; }
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14180 $as_echo "no
" >&6; }
14185 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14186 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14187 set dummy ${ncn_progname}; ac_word=$2
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14189 $as_echo_n "checking
for $ac_word...
" >&6; }
14190 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14191 $as_echo_n "(cached
) " >&6
14193 if test -n "$AS_FOR_TARGET"; then
14194 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14197 for as_dir in $PATH
14200 test -z "$as_dir" && as_dir=.
14201 for ac_exec_ext in '' $ac_executable_extensions; do
14202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14203 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14204 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14213 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14214 if test -n "$AS_FOR_TARGET"; then
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14216 $as_echo "$AS_FOR_TARGET" >&6; }
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14219 $as_echo "no
" >&6; }
14224 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14228 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14230 if test $build = $target ; then
14233 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14236 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14240 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14246 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14247 if test -n "$with_build_time_tools"; then
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14249 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14250 if test -x $with_build_time_tools/dlltool; then
14251 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14252 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14254 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14257 $as_echo "no
" >&6; }
14259 elif test $build != $host && test $have_gcc_for_target = yes; then
14260 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14261 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14262 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14265 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14266 # Extract the first word of "dlltool
", so it can be a program name with args.
14267 set dummy dlltool; ac_word=$2
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14269 $as_echo_n "checking
for $ac_word...
" >&6; }
14270 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14271 $as_echo_n "(cached
) " >&6
14273 case $DLLTOOL_FOR_TARGET in
14275 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14279 for as_dir in $gcc_cv_tool_dirs
14282 test -z "$as_dir" && as_dir=.
14283 for ac_exec_ext in '' $ac_executable_extensions; do
14284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14285 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14286 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14296 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14297 if test -n "$DLLTOOL_FOR_TARGET"; then
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14299 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14302 $as_echo "no
" >&6; }
14307 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14310 if test -n "$DLLTOOL_FOR_TARGET"; then
14311 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14312 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14313 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14316 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14317 for ncn_progname in dlltool; do
14318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14319 set dummy ${ncn_progname}; ac_word=$2
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14321 $as_echo_n "checking
for $ac_word...
" >&6; }
14322 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14323 $as_echo_n "(cached
) " >&6
14325 if test -n "$DLLTOOL_FOR_TARGET"; then
14326 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14329 for as_dir in $PATH
14332 test -z "$as_dir" && as_dir=.
14333 for ac_exec_ext in '' $ac_executable_extensions; do
14334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14335 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14336 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14345 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14346 if test -n "$DLLTOOL_FOR_TARGET"; then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14348 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14351 $as_echo "no
" >&6; }
14358 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14359 for ncn_progname in dlltool; do
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14361 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14362 if test -x $with_build_time_tools/${ncn_progname}; then
14363 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14365 $as_echo "yes" >&6; }
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14369 $as_echo "no
" >&6; }
14374 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14375 for ncn_progname in dlltool; do
14376 if test -n "$ncn_target_tool_prefix"; then
14377 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14378 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14380 $as_echo_n "checking
for $ac_word...
" >&6; }
14381 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14382 $as_echo_n "(cached
) " >&6
14384 if test -n "$DLLTOOL_FOR_TARGET"; then
14385 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14388 for as_dir in $PATH
14391 test -z "$as_dir" && as_dir=.
14392 for ac_exec_ext in '' $ac_executable_extensions; do
14393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14394 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14395 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14404 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14405 if test -n "$DLLTOOL_FOR_TARGET"; then
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14407 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14410 $as_echo "no
" >&6; }
14415 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14417 set dummy ${ncn_progname}; ac_word=$2
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14419 $as_echo_n "checking
for $ac_word...
" >&6; }
14420 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14421 $as_echo_n "(cached
) " >&6
14423 if test -n "$DLLTOOL_FOR_TARGET"; then
14424 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14427 for as_dir in $PATH
14430 test -z "$as_dir" && as_dir=.
14431 for ac_exec_ext in '' $ac_executable_extensions; do
14432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14433 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14434 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14443 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14444 if test -n "$DLLTOOL_FOR_TARGET"; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14446 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14449 $as_echo "no
" >&6; }
14454 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14458 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14460 if test $build = $target ; then
14461 DLLTOOL_FOR_TARGET="$2"
14463 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14466 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14470 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14476 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14477 if test -n "$with_build_time_tools"; then
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
14479 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
14480 if test -x $with_build_time_tools/dsymutil; then
14481 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14482 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14484 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14487 $as_echo "no
" >&6; }
14489 elif test $build != $host && test $have_gcc_for_target = yes; then
14490 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14491 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14492 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14495 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14496 # Extract the first word of "dsymutil
", so it can be a program name with args.
14497 set dummy dsymutil; ac_word=$2
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14499 $as_echo_n "checking
for $ac_word...
" >&6; }
14500 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14501 $as_echo_n "(cached
) " >&6
14503 case $DSYMUTIL_FOR_TARGET in
14505 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14509 for as_dir in $gcc_cv_tool_dirs
14512 test -z "$as_dir" && as_dir=.
14513 for ac_exec_ext in '' $ac_executable_extensions; do
14514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14515 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14516 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14526 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14527 if test -n "$DSYMUTIL_FOR_TARGET"; then
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14529 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14532 $as_echo "no
" >&6; }
14537 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14540 if test -n "$DSYMUTIL_FOR_TARGET"; then
14541 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14542 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14543 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14546 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14547 for ncn_progname in dsymutil; do
14548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14549 set dummy ${ncn_progname}; ac_word=$2
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14551 $as_echo_n "checking
for $ac_word...
" >&6; }
14552 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14553 $as_echo_n "(cached
) " >&6
14555 if test -n "$DSYMUTIL_FOR_TARGET"; then
14556 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14559 for as_dir in $PATH
14562 test -z "$as_dir" && as_dir=.
14563 for ac_exec_ext in '' $ac_executable_extensions; do
14564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14565 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14566 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14575 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14576 if test -n "$DSYMUTIL_FOR_TARGET"; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14578 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14581 $as_echo "no
" >&6; }
14588 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14589 for ncn_progname in dsymutil; do
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14591 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14592 if test -x $with_build_time_tools/${ncn_progname}; then
14593 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14595 $as_echo "yes" >&6; }
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14599 $as_echo "no
" >&6; }
14604 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14605 for ncn_progname in dsymutil; do
14606 if test -n "$ncn_target_tool_prefix"; then
14607 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14608 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14610 $as_echo_n "checking
for $ac_word...
" >&6; }
14611 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14612 $as_echo_n "(cached
) " >&6
14614 if test -n "$DSYMUTIL_FOR_TARGET"; then
14615 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14618 for as_dir in $PATH
14621 test -z "$as_dir" && as_dir=.
14622 for ac_exec_ext in '' $ac_executable_extensions; do
14623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14624 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14625 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14634 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14635 if test -n "$DSYMUTIL_FOR_TARGET"; then
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14637 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14640 $as_echo "no
" >&6; }
14645 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14646 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14647 set dummy ${ncn_progname}; ac_word=$2
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14649 $as_echo_n "checking
for $ac_word...
" >&6; }
14650 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14651 $as_echo_n "(cached
) " >&6
14653 if test -n "$DSYMUTIL_FOR_TARGET"; then
14654 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14657 for as_dir in $PATH
14660 test -z "$as_dir" && as_dir=.
14661 for ac_exec_ext in '' $ac_executable_extensions; do
14662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14663 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14664 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14673 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14674 if test -n "$DSYMUTIL_FOR_TARGET"; then
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14676 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14679 $as_echo "no
" >&6; }
14684 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14688 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14690 if test $build = $target ; then
14691 DSYMUTIL_FOR_TARGET="$2"
14693 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14696 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14700 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14706 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14707 if test -n "$with_build_time_tools"; then
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
14709 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
14710 if test -x $with_build_time_tools/ld; then
14711 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14712 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
14714 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14717 $as_echo "no
" >&6; }
14719 elif test $build != $host && test $have_gcc_for_target = yes; then
14720 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14721 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14722 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14725 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14726 # Extract the first word of "ld
", so it can be a program name with args.
14727 set dummy ld; ac_word=$2
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14729 $as_echo_n "checking
for $ac_word...
" >&6; }
14730 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14731 $as_echo_n "(cached
) " >&6
14733 case $LD_FOR_TARGET in
14735 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14739 for as_dir in $gcc_cv_tool_dirs
14742 test -z "$as_dir" && as_dir=.
14743 for ac_exec_ext in '' $ac_executable_extensions; do
14744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14745 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14746 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14756 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14757 if test -n "$LD_FOR_TARGET"; then
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14759 $as_echo "$LD_FOR_TARGET" >&6; }
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14762 $as_echo "no
" >&6; }
14767 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14770 if test -n "$LD_FOR_TARGET"; then
14771 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14772 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14773 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14776 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14777 for ncn_progname in ld; do
14778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14779 set dummy ${ncn_progname}; ac_word=$2
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14781 $as_echo_n "checking
for $ac_word...
" >&6; }
14782 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14783 $as_echo_n "(cached
) " >&6
14785 if test -n "$LD_FOR_TARGET"; then
14786 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14789 for as_dir in $PATH
14792 test -z "$as_dir" && as_dir=.
14793 for ac_exec_ext in '' $ac_executable_extensions; do
14794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14795 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14796 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14805 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14806 if test -n "$LD_FOR_TARGET"; then
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14808 $as_echo "$LD_FOR_TARGET" >&6; }
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14811 $as_echo "no
" >&6; }
14818 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14819 for ncn_progname in ld; do
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14821 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14822 if test -x $with_build_time_tools/${ncn_progname}; then
14823 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14825 $as_echo "yes" >&6; }
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14829 $as_echo "no
" >&6; }
14834 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14835 for ncn_progname in ld; do
14836 if test -n "$ncn_target_tool_prefix"; then
14837 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14838 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14840 $as_echo_n "checking
for $ac_word...
" >&6; }
14841 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14842 $as_echo_n "(cached
) " >&6
14844 if test -n "$LD_FOR_TARGET"; then
14845 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14848 for as_dir in $PATH
14851 test -z "$as_dir" && as_dir=.
14852 for ac_exec_ext in '' $ac_executable_extensions; do
14853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14854 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14855 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14864 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14865 if test -n "$LD_FOR_TARGET"; then
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14867 $as_echo "$LD_FOR_TARGET" >&6; }
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14870 $as_echo "no
" >&6; }
14875 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14877 set dummy ${ncn_progname}; ac_word=$2
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14879 $as_echo_n "checking
for $ac_word...
" >&6; }
14880 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14881 $as_echo_n "(cached
) " >&6
14883 if test -n "$LD_FOR_TARGET"; then
14884 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14887 for as_dir in $PATH
14890 test -z "$as_dir" && as_dir=.
14891 for ac_exec_ext in '' $ac_executable_extensions; do
14892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14893 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14894 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14903 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14904 if test -n "$LD_FOR_TARGET"; then
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14906 $as_echo "$LD_FOR_TARGET" >&6; }
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14909 $as_echo "no
" >&6; }
14914 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14918 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14920 if test $build = $target ; then
14923 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14926 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14930 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14936 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14937 if test -n "$with_build_time_tools"; then
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
14939 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
14940 if test -x $with_build_time_tools/lipo; then
14941 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14942 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
14944 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14947 $as_echo "no
" >&6; }
14949 elif test $build != $host && test $have_gcc_for_target = yes; then
14950 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14951 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14952 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14955 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14956 # Extract the first word of "lipo
", so it can be a program name with args.
14957 set dummy lipo; ac_word=$2
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14959 $as_echo_n "checking
for $ac_word...
" >&6; }
14960 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14961 $as_echo_n "(cached
) " >&6
14963 case $LIPO_FOR_TARGET in
14965 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14969 for as_dir in $gcc_cv_tool_dirs
14972 test -z "$as_dir" && as_dir=.
14973 for ac_exec_ext in '' $ac_executable_extensions; do
14974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14975 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14976 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14986 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14987 if test -n "$LIPO_FOR_TARGET"; then
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
14989 $as_echo "$LIPO_FOR_TARGET" >&6; }
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14992 $as_echo "no
" >&6; }
14997 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15000 if test -n "$LIPO_FOR_TARGET"; then
15001 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15002 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15003 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15006 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15007 for ncn_progname in lipo; do
15008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15009 set dummy ${ncn_progname}; ac_word=$2
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15011 $as_echo_n "checking
for $ac_word...
" >&6; }
15012 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15013 $as_echo_n "(cached
) " >&6
15015 if test -n "$LIPO_FOR_TARGET"; then
15016 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15019 for as_dir in $PATH
15022 test -z "$as_dir" && as_dir=.
15023 for ac_exec_ext in '' $ac_executable_extensions; do
15024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15025 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15026 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15035 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15036 if test -n "$LIPO_FOR_TARGET"; then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15038 $as_echo "$LIPO_FOR_TARGET" >&6; }
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15041 $as_echo "no
" >&6; }
15048 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15049 for ncn_progname in lipo; do
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15051 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15052 if test -x $with_build_time_tools/${ncn_progname}; then
15053 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15055 $as_echo "yes" >&6; }
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15059 $as_echo "no
" >&6; }
15064 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15065 for ncn_progname in lipo; do
15066 if test -n "$ncn_target_tool_prefix"; then
15067 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15068 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15070 $as_echo_n "checking
for $ac_word...
" >&6; }
15071 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15072 $as_echo_n "(cached
) " >&6
15074 if test -n "$LIPO_FOR_TARGET"; then
15075 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15078 for as_dir in $PATH
15081 test -z "$as_dir" && as_dir=.
15082 for ac_exec_ext in '' $ac_executable_extensions; do
15083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15084 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15085 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15094 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15095 if test -n "$LIPO_FOR_TARGET"; then
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15097 $as_echo "$LIPO_FOR_TARGET" >&6; }
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15100 $as_echo "no
" >&6; }
15105 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15107 set dummy ${ncn_progname}; ac_word=$2
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15109 $as_echo_n "checking
for $ac_word...
" >&6; }
15110 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15111 $as_echo_n "(cached
) " >&6
15113 if test -n "$LIPO_FOR_TARGET"; then
15114 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15117 for as_dir in $PATH
15120 test -z "$as_dir" && as_dir=.
15121 for ac_exec_ext in '' $ac_executable_extensions; do
15122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15123 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15124 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15133 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15134 if test -n "$LIPO_FOR_TARGET"; then
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15136 $as_echo "$LIPO_FOR_TARGET" >&6; }
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15139 $as_echo "no
" >&6; }
15144 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15148 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15150 if test $build = $target ; then
15151 LIPO_FOR_TARGET="$2"
15153 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15156 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15160 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15166 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15167 if test -n "$with_build_time_tools"; then
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15169 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15170 if test -x $with_build_time_tools/nm; then
15171 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15172 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15174 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15177 $as_echo "no
" >&6; }
15179 elif test $build != $host && test $have_gcc_for_target = yes; then
15180 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15181 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15182 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15185 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15186 # Extract the first word of "nm
", so it can be a program name with args.
15187 set dummy nm; ac_word=$2
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15189 $as_echo_n "checking
for $ac_word...
" >&6; }
15190 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15191 $as_echo_n "(cached
) " >&6
15193 case $NM_FOR_TARGET in
15195 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15199 for as_dir in $gcc_cv_tool_dirs
15202 test -z "$as_dir" && as_dir=.
15203 for ac_exec_ext in '' $ac_executable_extensions; do
15204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15205 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15206 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15216 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15217 if test -n "$NM_FOR_TARGET"; then
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15219 $as_echo "$NM_FOR_TARGET" >&6; }
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15222 $as_echo "no
" >&6; }
15227 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15230 if test -n "$NM_FOR_TARGET"; then
15231 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15232 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15233 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15236 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15237 for ncn_progname in nm; do
15238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15239 set dummy ${ncn_progname}; ac_word=$2
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15241 $as_echo_n "checking
for $ac_word...
" >&6; }
15242 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15243 $as_echo_n "(cached
) " >&6
15245 if test -n "$NM_FOR_TARGET"; then
15246 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15249 for as_dir in $PATH
15252 test -z "$as_dir" && as_dir=.
15253 for ac_exec_ext in '' $ac_executable_extensions; do
15254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15255 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15256 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15265 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15266 if test -n "$NM_FOR_TARGET"; then
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15268 $as_echo "$NM_FOR_TARGET" >&6; }
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15271 $as_echo "no
" >&6; }
15278 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15279 for ncn_progname in nm; do
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15281 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15282 if test -x $with_build_time_tools/${ncn_progname}; then
15283 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15285 $as_echo "yes" >&6; }
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15289 $as_echo "no
" >&6; }
15294 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15295 for ncn_progname in nm; do
15296 if test -n "$ncn_target_tool_prefix"; then
15297 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15298 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15300 $as_echo_n "checking
for $ac_word...
" >&6; }
15301 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15302 $as_echo_n "(cached
) " >&6
15304 if test -n "$NM_FOR_TARGET"; then
15305 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15308 for as_dir in $PATH
15311 test -z "$as_dir" && as_dir=.
15312 for ac_exec_ext in '' $ac_executable_extensions; do
15313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15314 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15315 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15324 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15325 if test -n "$NM_FOR_TARGET"; then
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15327 $as_echo "$NM_FOR_TARGET" >&6; }
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15330 $as_echo "no
" >&6; }
15335 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15337 set dummy ${ncn_progname}; ac_word=$2
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15339 $as_echo_n "checking
for $ac_word...
" >&6; }
15340 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15341 $as_echo_n "(cached
) " >&6
15343 if test -n "$NM_FOR_TARGET"; then
15344 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15347 for as_dir in $PATH
15350 test -z "$as_dir" && as_dir=.
15351 for ac_exec_ext in '' $ac_executable_extensions; do
15352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15353 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15354 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15363 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15364 if test -n "$NM_FOR_TARGET"; then
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15366 $as_echo "$NM_FOR_TARGET" >&6; }
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15369 $as_echo "no
" >&6; }
15374 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15378 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15380 if test $build = $target ; then
15383 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15386 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15390 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15396 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15397 if test -n "$with_build_time_tools"; then
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15399 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15400 if test -x $with_build_time_tools/objcopy; then
15401 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15402 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15404 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15407 $as_echo "no
" >&6; }
15409 elif test $build != $host && test $have_gcc_for_target = yes; then
15410 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15411 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15412 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15415 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15416 # Extract the first word of "objcopy
", so it can be a program name with args.
15417 set dummy objcopy; ac_word=$2
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15419 $as_echo_n "checking
for $ac_word...
" >&6; }
15420 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15421 $as_echo_n "(cached
) " >&6
15423 case $OBJCOPY_FOR_TARGET in
15425 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15429 for as_dir in $gcc_cv_tool_dirs
15432 test -z "$as_dir" && as_dir=.
15433 for ac_exec_ext in '' $ac_executable_extensions; do
15434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15435 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15436 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15446 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15447 if test -n "$OBJCOPY_FOR_TARGET"; then
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15449 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15452 $as_echo "no
" >&6; }
15457 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15460 if test -n "$OBJCOPY_FOR_TARGET"; then
15461 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15462 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15463 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15466 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15467 for ncn_progname in objcopy; do
15468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15469 set dummy ${ncn_progname}; ac_word=$2
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15471 $as_echo_n "checking
for $ac_word...
" >&6; }
15472 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15473 $as_echo_n "(cached
) " >&6
15475 if test -n "$OBJCOPY_FOR_TARGET"; then
15476 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15479 for as_dir in $PATH
15482 test -z "$as_dir" && as_dir=.
15483 for ac_exec_ext in '' $ac_executable_extensions; do
15484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15485 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15486 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15495 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15496 if test -n "$OBJCOPY_FOR_TARGET"; then
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15498 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15501 $as_echo "no
" >&6; }
15508 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15509 for ncn_progname in objcopy; do
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15511 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15512 if test -x $with_build_time_tools/${ncn_progname}; then
15513 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15515 $as_echo "yes" >&6; }
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15519 $as_echo "no
" >&6; }
15524 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15525 for ncn_progname in objcopy; do
15526 if test -n "$ncn_target_tool_prefix"; then
15527 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15528 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15530 $as_echo_n "checking
for $ac_word...
" >&6; }
15531 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15532 $as_echo_n "(cached
) " >&6
15534 if test -n "$OBJCOPY_FOR_TARGET"; then
15535 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15538 for as_dir in $PATH
15541 test -z "$as_dir" && as_dir=.
15542 for ac_exec_ext in '' $ac_executable_extensions; do
15543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15544 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15545 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15554 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15555 if test -n "$OBJCOPY_FOR_TARGET"; then
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15557 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15560 $as_echo "no
" >&6; }
15565 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15567 set dummy ${ncn_progname}; ac_word=$2
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15569 $as_echo_n "checking
for $ac_word...
" >&6; }
15570 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15571 $as_echo_n "(cached
) " >&6
15573 if test -n "$OBJCOPY_FOR_TARGET"; then
15574 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15577 for as_dir in $PATH
15580 test -z "$as_dir" && as_dir=.
15581 for ac_exec_ext in '' $ac_executable_extensions; do
15582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15583 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15584 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15593 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15594 if test -n "$OBJCOPY_FOR_TARGET"; then
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15596 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15599 $as_echo "no
" >&6; }
15604 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15608 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15610 if test $build = $target ; then
15611 OBJCOPY_FOR_TARGET="$2"
15613 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15616 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15620 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15626 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15627 if test -n "$with_build_time_tools"; then
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
15629 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
15630 if test -x $with_build_time_tools/objdump; then
15631 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15632 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15634 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15637 $as_echo "no
" >&6; }
15639 elif test $build != $host && test $have_gcc_for_target = yes; then
15640 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15641 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15642 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15645 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15646 # Extract the first word of "objdump
", so it can be a program name with args.
15647 set dummy objdump; ac_word=$2
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15649 $as_echo_n "checking
for $ac_word...
" >&6; }
15650 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15651 $as_echo_n "(cached
) " >&6
15653 case $OBJDUMP_FOR_TARGET in
15655 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15659 for as_dir in $gcc_cv_tool_dirs
15662 test -z "$as_dir" && as_dir=.
15663 for ac_exec_ext in '' $ac_executable_extensions; do
15664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15665 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15666 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15676 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15677 if test -n "$OBJDUMP_FOR_TARGET"; then
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15679 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15682 $as_echo "no
" >&6; }
15687 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15690 if test -n "$OBJDUMP_FOR_TARGET"; then
15691 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15692 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15693 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15696 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15697 for ncn_progname in objdump; do
15698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15699 set dummy ${ncn_progname}; ac_word=$2
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15701 $as_echo_n "checking
for $ac_word...
" >&6; }
15702 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15703 $as_echo_n "(cached
) " >&6
15705 if test -n "$OBJDUMP_FOR_TARGET"; then
15706 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15709 for as_dir in $PATH
15712 test -z "$as_dir" && as_dir=.
15713 for ac_exec_ext in '' $ac_executable_extensions; do
15714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15715 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15716 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15725 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15726 if test -n "$OBJDUMP_FOR_TARGET"; then
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15728 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15731 $as_echo "no
" >&6; }
15738 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15739 for ncn_progname in objdump; do
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15741 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15742 if test -x $with_build_time_tools/${ncn_progname}; then
15743 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15745 $as_echo "yes" >&6; }
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15749 $as_echo "no
" >&6; }
15754 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15755 for ncn_progname in objdump; do
15756 if test -n "$ncn_target_tool_prefix"; then
15757 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15758 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15760 $as_echo_n "checking
for $ac_word...
" >&6; }
15761 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15762 $as_echo_n "(cached
) " >&6
15764 if test -n "$OBJDUMP_FOR_TARGET"; then
15765 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15768 for as_dir in $PATH
15771 test -z "$as_dir" && as_dir=.
15772 for ac_exec_ext in '' $ac_executable_extensions; do
15773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15774 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15775 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15784 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15785 if test -n "$OBJDUMP_FOR_TARGET"; then
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15787 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15790 $as_echo "no
" >&6; }
15795 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15797 set dummy ${ncn_progname}; ac_word=$2
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15799 $as_echo_n "checking
for $ac_word...
" >&6; }
15800 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15801 $as_echo_n "(cached
) " >&6
15803 if test -n "$OBJDUMP_FOR_TARGET"; then
15804 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15807 for as_dir in $PATH
15810 test -z "$as_dir" && as_dir=.
15811 for ac_exec_ext in '' $ac_executable_extensions; do
15812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15813 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15814 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15823 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15824 if test -n "$OBJDUMP_FOR_TARGET"; then
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15826 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15829 $as_echo "no
" >&6; }
15834 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15838 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15840 if test $build = $target ; then
15841 OBJDUMP_FOR_TARGET="$2"
15843 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15846 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15850 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15856 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15857 if test -n "$with_build_time_tools"; then
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
15859 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
15860 if test -x $with_build_time_tools/otool; then
15861 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15862 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15864 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15867 $as_echo "no
" >&6; }
15869 elif test $build != $host && test $have_gcc_for_target = yes; then
15870 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15871 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15872 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15875 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15876 # Extract the first word of "otool
", so it can be a program name with args.
15877 set dummy otool; ac_word=$2
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15879 $as_echo_n "checking
for $ac_word...
" >&6; }
15880 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15881 $as_echo_n "(cached
) " >&6
15883 case $OTOOL_FOR_TARGET in
15885 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15889 for as_dir in $gcc_cv_tool_dirs
15892 test -z "$as_dir" && as_dir=.
15893 for ac_exec_ext in '' $ac_executable_extensions; do
15894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15895 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15896 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15906 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15907 if test -n "$OTOOL_FOR_TARGET"; then
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
15909 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15912 $as_echo "no
" >&6; }
15917 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15920 if test -n "$OTOOL_FOR_TARGET"; then
15921 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15922 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15923 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15926 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15927 for ncn_progname in otool; do
15928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15929 set dummy ${ncn_progname}; ac_word=$2
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15931 $as_echo_n "checking
for $ac_word...
" >&6; }
15932 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15933 $as_echo_n "(cached
) " >&6
15935 if test -n "$OTOOL_FOR_TARGET"; then
15936 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15939 for as_dir in $PATH
15942 test -z "$as_dir" && as_dir=.
15943 for ac_exec_ext in '' $ac_executable_extensions; do
15944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15945 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15946 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15955 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15956 if test -n "$OTOOL_FOR_TARGET"; then
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
15958 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15961 $as_echo "no
" >&6; }
15968 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15969 for ncn_progname in otool; do
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15971 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15972 if test -x $with_build_time_tools/${ncn_progname}; then
15973 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15975 $as_echo "yes" >&6; }
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15979 $as_echo "no
" >&6; }
15984 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15985 for ncn_progname in otool; do
15986 if test -n "$ncn_target_tool_prefix"; then
15987 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15988 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15990 $as_echo_n "checking
for $ac_word...
" >&6; }
15991 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15992 $as_echo_n "(cached
) " >&6
15994 if test -n "$OTOOL_FOR_TARGET"; then
15995 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15998 for as_dir in $PATH
16001 test -z "$as_dir" && as_dir=.
16002 for ac_exec_ext in '' $ac_executable_extensions; do
16003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16004 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16005 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16014 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16015 if test -n "$OTOOL_FOR_TARGET"; then
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16017 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16020 $as_echo "no
" >&6; }
16025 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16027 set dummy ${ncn_progname}; ac_word=$2
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16029 $as_echo_n "checking
for $ac_word...
" >&6; }
16030 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16031 $as_echo_n "(cached
) " >&6
16033 if test -n "$OTOOL_FOR_TARGET"; then
16034 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16037 for as_dir in $PATH
16040 test -z "$as_dir" && as_dir=.
16041 for ac_exec_ext in '' $ac_executable_extensions; do
16042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16043 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16044 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16053 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16054 if test -n "$OTOOL_FOR_TARGET"; then
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16056 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16059 $as_echo "no
" >&6; }
16064 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16068 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16070 if test $build = $target ; then
16071 OTOOL_FOR_TARGET="$2"
16073 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16076 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16080 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16086 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16087 if test -n "$with_build_time_tools"; then
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16089 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16090 if test -x $with_build_time_tools/ranlib; then
16091 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16092 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16094 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16097 $as_echo "no
" >&6; }
16099 elif test $build != $host && test $have_gcc_for_target = yes; then
16100 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16101 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16102 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16105 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16106 # Extract the first word of "ranlib
", so it can be a program name with args.
16107 set dummy ranlib; ac_word=$2
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16109 $as_echo_n "checking
for $ac_word...
" >&6; }
16110 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16111 $as_echo_n "(cached
) " >&6
16113 case $RANLIB_FOR_TARGET in
16115 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16119 for as_dir in $gcc_cv_tool_dirs
16122 test -z "$as_dir" && as_dir=.
16123 for ac_exec_ext in '' $ac_executable_extensions; do
16124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16125 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16126 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16136 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16137 if test -n "$RANLIB_FOR_TARGET"; then
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16139 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16142 $as_echo "no
" >&6; }
16147 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16150 if test -n "$RANLIB_FOR_TARGET"; then
16151 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16152 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16153 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16156 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16157 for ncn_progname in ranlib; do
16158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16159 set dummy ${ncn_progname}; ac_word=$2
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16161 $as_echo_n "checking
for $ac_word...
" >&6; }
16162 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16163 $as_echo_n "(cached
) " >&6
16165 if test -n "$RANLIB_FOR_TARGET"; then
16166 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16169 for as_dir in $PATH
16172 test -z "$as_dir" && as_dir=.
16173 for ac_exec_ext in '' $ac_executable_extensions; do
16174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16175 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16176 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16185 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16186 if test -n "$RANLIB_FOR_TARGET"; then
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16188 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16191 $as_echo "no
" >&6; }
16198 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16199 for ncn_progname in ranlib; do
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16201 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16202 if test -x $with_build_time_tools/${ncn_progname}; then
16203 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16205 $as_echo "yes" >&6; }
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16209 $as_echo "no
" >&6; }
16214 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16215 for ncn_progname in ranlib; do
16216 if test -n "$ncn_target_tool_prefix"; then
16217 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16218 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16220 $as_echo_n "checking
for $ac_word...
" >&6; }
16221 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16222 $as_echo_n "(cached
) " >&6
16224 if test -n "$RANLIB_FOR_TARGET"; then
16225 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16228 for as_dir in $PATH
16231 test -z "$as_dir" && as_dir=.
16232 for ac_exec_ext in '' $ac_executable_extensions; do
16233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16234 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16235 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16244 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16245 if test -n "$RANLIB_FOR_TARGET"; then
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16247 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16250 $as_echo "no
" >&6; }
16255 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16257 set dummy ${ncn_progname}; ac_word=$2
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16259 $as_echo_n "checking
for $ac_word...
" >&6; }
16260 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16261 $as_echo_n "(cached
) " >&6
16263 if test -n "$RANLIB_FOR_TARGET"; then
16264 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16267 for as_dir in $PATH
16270 test -z "$as_dir" && as_dir=.
16271 for ac_exec_ext in '' $ac_executable_extensions; do
16272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16273 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16274 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16283 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16284 if test -n "$RANLIB_FOR_TARGET"; then
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16286 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16289 $as_echo "no
" >&6; }
16294 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16298 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16300 if test $build = $target ; then
16301 RANLIB_FOR_TARGET="$2"
16303 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16306 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16310 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16316 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16317 if test -n "$with_build_time_tools"; then
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16319 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16320 if test -x $with_build_time_tools/readelf; then
16321 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16322 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16324 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16327 $as_echo "no
" >&6; }
16329 elif test $build != $host && test $have_gcc_for_target = yes; then
16330 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16331 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16332 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16335 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16336 # Extract the first word of "readelf
", so it can be a program name with args.
16337 set dummy readelf; ac_word=$2
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16339 $as_echo_n "checking
for $ac_word...
" >&6; }
16340 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16341 $as_echo_n "(cached
) " >&6
16343 case $READELF_FOR_TARGET in
16345 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16349 for as_dir in $gcc_cv_tool_dirs
16352 test -z "$as_dir" && as_dir=.
16353 for ac_exec_ext in '' $ac_executable_extensions; do
16354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16355 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16356 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16366 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16367 if test -n "$READELF_FOR_TARGET"; then
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16369 $as_echo "$READELF_FOR_TARGET" >&6; }
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16372 $as_echo "no
" >&6; }
16377 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16380 if test -n "$READELF_FOR_TARGET"; then
16381 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16382 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16383 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16386 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16387 for ncn_progname in readelf; do
16388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16389 set dummy ${ncn_progname}; ac_word=$2
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16391 $as_echo_n "checking
for $ac_word...
" >&6; }
16392 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16393 $as_echo_n "(cached
) " >&6
16395 if test -n "$READELF_FOR_TARGET"; then
16396 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16399 for as_dir in $PATH
16402 test -z "$as_dir" && as_dir=.
16403 for ac_exec_ext in '' $ac_executable_extensions; do
16404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16405 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16406 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16415 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16416 if test -n "$READELF_FOR_TARGET"; then
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16418 $as_echo "$READELF_FOR_TARGET" >&6; }
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16421 $as_echo "no
" >&6; }
16428 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16429 for ncn_progname in readelf; do
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16431 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16432 if test -x $with_build_time_tools/${ncn_progname}; then
16433 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16435 $as_echo "yes" >&6; }
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16439 $as_echo "no
" >&6; }
16444 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16445 for ncn_progname in readelf; do
16446 if test -n "$ncn_target_tool_prefix"; then
16447 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16448 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16450 $as_echo_n "checking
for $ac_word...
" >&6; }
16451 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16452 $as_echo_n "(cached
) " >&6
16454 if test -n "$READELF_FOR_TARGET"; then
16455 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16458 for as_dir in $PATH
16461 test -z "$as_dir" && as_dir=.
16462 for ac_exec_ext in '' $ac_executable_extensions; do
16463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16464 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16465 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16474 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16475 if test -n "$READELF_FOR_TARGET"; then
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16477 $as_echo "$READELF_FOR_TARGET" >&6; }
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16480 $as_echo "no
" >&6; }
16485 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16487 set dummy ${ncn_progname}; ac_word=$2
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16489 $as_echo_n "checking
for $ac_word...
" >&6; }
16490 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16491 $as_echo_n "(cached
) " >&6
16493 if test -n "$READELF_FOR_TARGET"; then
16494 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16497 for as_dir in $PATH
16500 test -z "$as_dir" && as_dir=.
16501 for ac_exec_ext in '' $ac_executable_extensions; do
16502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16503 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16504 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16513 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16514 if test -n "$READELF_FOR_TARGET"; then
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16516 $as_echo "$READELF_FOR_TARGET" >&6; }
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16519 $as_echo "no
" >&6; }
16524 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16528 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16530 if test $build = $target ; then
16531 READELF_FOR_TARGET="$2"
16533 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16536 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16540 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16546 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16547 if test -n "$with_build_time_tools"; then
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
16549 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
16550 if test -x $with_build_time_tools/strip; then
16551 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16552 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
16554 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16557 $as_echo "no
" >&6; }
16559 elif test $build != $host && test $have_gcc_for_target = yes; then
16560 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16561 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16562 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16565 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16566 # Extract the first word of "strip
", so it can be a program name with args.
16567 set dummy strip; ac_word=$2
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16569 $as_echo_n "checking
for $ac_word...
" >&6; }
16570 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16571 $as_echo_n "(cached
) " >&6
16573 case $STRIP_FOR_TARGET in
16575 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16579 for as_dir in $gcc_cv_tool_dirs
16582 test -z "$as_dir" && as_dir=.
16583 for ac_exec_ext in '' $ac_executable_extensions; do
16584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16585 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16586 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16596 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16597 if test -n "$STRIP_FOR_TARGET"; then
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16599 $as_echo "$STRIP_FOR_TARGET" >&6; }
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16602 $as_echo "no
" >&6; }
16607 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16610 if test -n "$STRIP_FOR_TARGET"; then
16611 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16612 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16613 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16616 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16617 for ncn_progname in strip; do
16618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16619 set dummy ${ncn_progname}; ac_word=$2
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16621 $as_echo_n "checking
for $ac_word...
" >&6; }
16622 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16623 $as_echo_n "(cached
) " >&6
16625 if test -n "$STRIP_FOR_TARGET"; then
16626 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16629 for as_dir in $PATH
16632 test -z "$as_dir" && as_dir=.
16633 for ac_exec_ext in '' $ac_executable_extensions; do
16634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16635 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16636 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16645 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16646 if test -n "$STRIP_FOR_TARGET"; then
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16648 $as_echo "$STRIP_FOR_TARGET" >&6; }
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16651 $as_echo "no
" >&6; }
16658 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16659 for ncn_progname in strip; do
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16661 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16662 if test -x $with_build_time_tools/${ncn_progname}; then
16663 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16665 $as_echo "yes" >&6; }
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16669 $as_echo "no
" >&6; }
16674 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16675 for ncn_progname in strip; do
16676 if test -n "$ncn_target_tool_prefix"; then
16677 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16678 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16680 $as_echo_n "checking
for $ac_word...
" >&6; }
16681 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16682 $as_echo_n "(cached
) " >&6
16684 if test -n "$STRIP_FOR_TARGET"; then
16685 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16688 for as_dir in $PATH
16691 test -z "$as_dir" && as_dir=.
16692 for ac_exec_ext in '' $ac_executable_extensions; do
16693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16694 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16695 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16704 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16705 if test -n "$STRIP_FOR_TARGET"; then
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16707 $as_echo "$STRIP_FOR_TARGET" >&6; }
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16710 $as_echo "no
" >&6; }
16715 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16717 set dummy ${ncn_progname}; ac_word=$2
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16719 $as_echo_n "checking
for $ac_word...
" >&6; }
16720 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16721 $as_echo_n "(cached
) " >&6
16723 if test -n "$STRIP_FOR_TARGET"; then
16724 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16727 for as_dir in $PATH
16730 test -z "$as_dir" && as_dir=.
16731 for ac_exec_ext in '' $ac_executable_extensions; do
16732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16733 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16734 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16743 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16744 if test -n "$STRIP_FOR_TARGET"; then
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16746 $as_echo "$STRIP_FOR_TARGET" >&6; }
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16749 $as_echo "no
" >&6; }
16754 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16758 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16760 if test $build = $target ; then
16761 STRIP_FOR_TARGET="$2"
16763 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16766 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16770 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16776 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16777 if test -n "$with_build_time_tools"; then
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
16779 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
16780 if test -x $with_build_time_tools/windres; then
16781 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16782 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16784 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16787 $as_echo "no
" >&6; }
16789 elif test $build != $host && test $have_gcc_for_target = yes; then
16790 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16791 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16792 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16795 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16796 # Extract the first word of "windres
", so it can be a program name with args.
16797 set dummy windres; ac_word=$2
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16799 $as_echo_n "checking
for $ac_word...
" >&6; }
16800 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16801 $as_echo_n "(cached
) " >&6
16803 case $WINDRES_FOR_TARGET in
16805 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16809 for as_dir in $gcc_cv_tool_dirs
16812 test -z "$as_dir" && as_dir=.
16813 for ac_exec_ext in '' $ac_executable_extensions; do
16814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16815 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16816 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16826 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16827 if test -n "$WINDRES_FOR_TARGET"; then
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16829 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16832 $as_echo "no
" >&6; }
16837 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16840 if test -n "$WINDRES_FOR_TARGET"; then
16841 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16842 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16843 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16846 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16847 for ncn_progname in windres; do
16848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16849 set dummy ${ncn_progname}; ac_word=$2
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16851 $as_echo_n "checking
for $ac_word...
" >&6; }
16852 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16853 $as_echo_n "(cached
) " >&6
16855 if test -n "$WINDRES_FOR_TARGET"; then
16856 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16859 for as_dir in $PATH
16862 test -z "$as_dir" && as_dir=.
16863 for ac_exec_ext in '' $ac_executable_extensions; do
16864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16865 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16866 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16875 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16876 if test -n "$WINDRES_FOR_TARGET"; then
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16878 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16881 $as_echo "no
" >&6; }
16888 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16889 for ncn_progname in windres; do
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16891 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16892 if test -x $with_build_time_tools/${ncn_progname}; then
16893 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16895 $as_echo "yes" >&6; }
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16899 $as_echo "no
" >&6; }
16904 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16905 for ncn_progname in windres; do
16906 if test -n "$ncn_target_tool_prefix"; then
16907 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16908 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16910 $as_echo_n "checking
for $ac_word...
" >&6; }
16911 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16912 $as_echo_n "(cached
) " >&6
16914 if test -n "$WINDRES_FOR_TARGET"; then
16915 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16918 for as_dir in $PATH
16921 test -z "$as_dir" && as_dir=.
16922 for ac_exec_ext in '' $ac_executable_extensions; do
16923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16924 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16925 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16934 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16935 if test -n "$WINDRES_FOR_TARGET"; then
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16937 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16940 $as_echo "no
" >&6; }
16945 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16947 set dummy ${ncn_progname}; ac_word=$2
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16949 $as_echo_n "checking
for $ac_word...
" >&6; }
16950 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16951 $as_echo_n "(cached
) " >&6
16953 if test -n "$WINDRES_FOR_TARGET"; then
16954 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16957 for as_dir in $PATH
16960 test -z "$as_dir" && as_dir=.
16961 for ac_exec_ext in '' $ac_executable_extensions; do
16962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16963 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16964 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16973 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16974 if test -n "$WINDRES_FOR_TARGET"; then
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16976 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16979 $as_echo "no
" >&6; }
16984 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16988 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16990 if test $build = $target ; then
16991 WINDRES_FOR_TARGET="$2"
16993 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16996 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17000 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17006 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17007 if test -n "$with_build_time_tools"; then
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17009 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17010 if test -x $with_build_time_tools/windmc; then
17011 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17012 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17014 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17017 $as_echo "no
" >&6; }
17019 elif test $build != $host && test $have_gcc_for_target = yes; then
17020 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17021 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17022 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17025 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17026 # Extract the first word of "windmc
", so it can be a program name with args.
17027 set dummy windmc; ac_word=$2
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17029 $as_echo_n "checking
for $ac_word...
" >&6; }
17030 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17031 $as_echo_n "(cached
) " >&6
17033 case $WINDMC_FOR_TARGET in
17035 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17039 for as_dir in $gcc_cv_tool_dirs
17042 test -z "$as_dir" && as_dir=.
17043 for ac_exec_ext in '' $ac_executable_extensions; do
17044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17045 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17046 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17056 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17057 if test -n "$WINDMC_FOR_TARGET"; then
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17059 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17062 $as_echo "no
" >&6; }
17067 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17070 if test -n "$WINDMC_FOR_TARGET"; then
17071 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17072 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17073 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17076 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17077 for ncn_progname in windmc; do
17078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17079 set dummy ${ncn_progname}; ac_word=$2
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17081 $as_echo_n "checking
for $ac_word...
" >&6; }
17082 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17083 $as_echo_n "(cached
) " >&6
17085 if test -n "$WINDMC_FOR_TARGET"; then
17086 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17089 for as_dir in $PATH
17092 test -z "$as_dir" && as_dir=.
17093 for ac_exec_ext in '' $ac_executable_extensions; do
17094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17095 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17096 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17105 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17106 if test -n "$WINDMC_FOR_TARGET"; then
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17108 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17111 $as_echo "no
" >&6; }
17118 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17119 for ncn_progname in windmc; do
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17121 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17122 if test -x $with_build_time_tools/${ncn_progname}; then
17123 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17125 $as_echo "yes" >&6; }
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17129 $as_echo "no
" >&6; }
17134 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17135 for ncn_progname in windmc; do
17136 if test -n "$ncn_target_tool_prefix"; then
17137 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17138 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17140 $as_echo_n "checking
for $ac_word...
" >&6; }
17141 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17142 $as_echo_n "(cached
) " >&6
17144 if test -n "$WINDMC_FOR_TARGET"; then
17145 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17148 for as_dir in $PATH
17151 test -z "$as_dir" && as_dir=.
17152 for ac_exec_ext in '' $ac_executable_extensions; do
17153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17154 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17155 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17164 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17165 if test -n "$WINDMC_FOR_TARGET"; then
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17167 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17170 $as_echo "no
" >&6; }
17175 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17177 set dummy ${ncn_progname}; ac_word=$2
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17179 $as_echo_n "checking
for $ac_word...
" >&6; }
17180 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17181 $as_echo_n "(cached
) " >&6
17183 if test -n "$WINDMC_FOR_TARGET"; then
17184 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17187 for as_dir in $PATH
17190 test -z "$as_dir" && as_dir=.
17191 for ac_exec_ext in '' $ac_executable_extensions; do
17192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17193 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17194 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17203 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17204 if test -n "$WINDMC_FOR_TARGET"; then
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17206 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17209 $as_echo "no
" >&6; }
17214 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17218 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17220 if test $build = $target ; then
17221 WINDMC_FOR_TARGET="$2"
17223 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17226 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17230 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17234 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17237 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17238 if test "x
${build}" != "x
${host}" ; then
17239 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17240 # We already found the complete path
17241 ac_dir=`dirname $AR_FOR_TARGET`
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17243 $as_echo "pre-installed
in $ac_dir" >&6; }
17245 # Canadian cross, just use what we found
17246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17247 $as_echo "pre-installed
" >&6; }
17251 case " ${configdirs} " in
17256 if test $ok = yes; then
17257 # An in-tree tool is available and we can use it
17258 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17260 $as_echo "just compiled
" >&6; }
17261 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17262 # We already found the complete path
17263 ac_dir=`dirname $AR_FOR_TARGET`
17264 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17265 $as_echo "pre-installed
in $ac_dir" >&6; }
17266 elif test "x
$target" = "x
$host"; then
17267 # We can use an host tool
17268 AR_FOR_TARGET='$(AR)'
17269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17270 $as_echo "host tool
" >&6; }
17272 # We need a cross tool
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17274 $as_echo "pre-installed
" >&6; }
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17279 $as_echo_n "checking where to
find the target as...
" >&6; }
17280 if test "x
${build}" != "x
${host}" ; then
17281 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17282 # We already found the complete path
17283 ac_dir=`dirname $AS_FOR_TARGET`
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17285 $as_echo "pre-installed
in $ac_dir" >&6; }
17287 # Canadian cross, just use what we found
17288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17289 $as_echo "pre-installed
" >&6; }
17293 case " ${configdirs} " in
17298 if test $ok = yes; then
17299 # An in-tree tool is available and we can use it
17300 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17302 $as_echo "just compiled
" >&6; }
17303 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17304 # We already found the complete path
17305 ac_dir=`dirname $AS_FOR_TARGET`
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17307 $as_echo "pre-installed
in $ac_dir" >&6; }
17308 elif test "x
$target" = "x
$host"; then
17309 # We can use an host tool
17310 AS_FOR_TARGET='$(AS)'
17311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17312 $as_echo "host tool
" >&6; }
17314 # We need a cross tool
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17316 $as_echo "pre-installed
" >&6; }
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17321 $as_echo_n "checking where to
find the target cc...
" >&6; }
17322 if test "x
${build}" != "x
${host}" ; then
17323 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17324 # We already found the complete path
17325 ac_dir=`dirname $CC_FOR_TARGET`
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17327 $as_echo "pre-installed
in $ac_dir" >&6; }
17329 # Canadian cross, just use what we found
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17331 $as_echo "pre-installed
" >&6; }
17335 case " ${configdirs} " in
17340 if test $ok = yes; then
17341 # An in-tree tool is available and we can use it
17342 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17344 $as_echo "just compiled
" >&6; }
17345 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17346 # We already found the complete path
17347 ac_dir=`dirname $CC_FOR_TARGET`
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17349 $as_echo "pre-installed
in $ac_dir" >&6; }
17350 elif test "x
$target" = "x
$host"; then
17351 # We can use an host tool
17352 CC_FOR_TARGET='$(CC)'
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17354 $as_echo "host tool
" >&6; }
17356 # We need a cross tool
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17358 $as_echo "pre-installed
" >&6; }
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17363 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17364 if test "x
${build}" != "x
${host}" ; then
17365 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17366 # We already found the complete path
17367 ac_dir=`dirname $CXX_FOR_TARGET`
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17369 $as_echo "pre-installed
in $ac_dir" >&6; }
17371 # Canadian cross, just use what we found
17372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17373 $as_echo "pre-installed
" >&6; }
17377 case " ${configdirs} " in
17381 case ,${enable_languages}, in
17385 if test $ok = yes; then
17386 # An in-tree tool is available and we can use it
17387 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'
17388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17389 $as_echo "just compiled
" >&6; }
17390 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17391 # We already found the complete path
17392 ac_dir=`dirname $CXX_FOR_TARGET`
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17394 $as_echo "pre-installed
in $ac_dir" >&6; }
17395 elif test "x
$target" = "x
$host"; then
17396 # We can use an host tool
17397 CXX_FOR_TARGET='$(CXX)'
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17399 $as_echo "host tool
" >&6; }
17401 # We need a cross tool
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17403 $as_echo "pre-installed
" >&6; }
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
17408 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17409 if test "x
${build}" != "x
${host}" ; then
17410 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17411 # We already found the complete path
17412 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17414 $as_echo "pre-installed
in $ac_dir" >&6; }
17416 # Canadian cross, just use what we found
17417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17418 $as_echo "pre-installed
" >&6; }
17422 case " ${configdirs} " in
17426 case ,${enable_languages}, in
17430 if test $ok = yes; then
17431 # An in-tree tool is available and we can use it
17432 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'
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17434 $as_echo "just compiled
" >&6; }
17435 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17436 # We already found the complete path
17437 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17439 $as_echo "pre-installed
in $ac_dir" >&6; }
17440 elif test "x
$target" = "x
$host"; then
17441 # We can use an host tool
17442 RAW_CXX_FOR_TARGET='$(CXX)'
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17444 $as_echo "host tool
" >&6; }
17446 # We need a cross tool
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17448 $as_echo "pre-installed
" >&6; }
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
17453 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17454 if test "x
${build}" != "x
${host}" ; then
17455 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17456 # We already found the complete path
17457 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17459 $as_echo "pre-installed
in $ac_dir" >&6; }
17461 # Canadian cross, just use what we found
17462 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17463 $as_echo "pre-installed
" >&6; }
17467 case " ${configdirs} " in
17472 if test $ok = yes; then
17473 # An in-tree tool is available and we can use it
17474 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17476 $as_echo "just compiled
" >&6; }
17477 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17478 # We already found the complete path
17479 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17481 $as_echo "pre-installed
in $ac_dir" >&6; }
17482 elif test "x
$target" = "x
$host"; then
17483 # We can use an host tool
17484 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17486 $as_echo "host tool
" >&6; }
17488 # We need a cross tool
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17490 $as_echo "pre-installed
" >&6; }
17494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
17495 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
17496 if test "x
${build}" != "x
${host}" ; then
17497 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17498 # We already found the complete path
17499 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17501 $as_echo "pre-installed
in $ac_dir" >&6; }
17503 # Canadian cross, just use what we found
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17505 $as_echo "pre-installed
" >&6; }
17508 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17509 # We already found the complete path
17510 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17512 $as_echo "pre-installed
in $ac_dir" >&6; }
17513 elif test "x
$target" = "x
$host"; then
17514 # We can use an host tool
17515 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17517 $as_echo "host tool
" >&6; }
17519 # We need a cross tool
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17521 $as_echo "pre-installed
" >&6; }
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
17526 $as_echo_n "checking where to
find the target gcc...
" >&6; }
17527 if test "x
${build}" != "x
${host}" ; then
17528 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17529 # We already found the complete path
17530 ac_dir=`dirname $GCC_FOR_TARGET`
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17532 $as_echo "pre-installed
in $ac_dir" >&6; }
17534 # Canadian cross, just use what we found
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17536 $as_echo "pre-installed
" >&6; }
17540 case " ${configdirs} " in
17545 if test $ok = yes; then
17546 # An in-tree tool is available and we can use it
17547 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17549 $as_echo "just compiled
" >&6; }
17550 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17551 # We already found the complete path
17552 ac_dir=`dirname $GCC_FOR_TARGET`
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17554 $as_echo "pre-installed
in $ac_dir" >&6; }
17555 elif test "x
$target" = "x
$host"; then
17556 # We can use an host tool
17557 GCC_FOR_TARGET='$()'
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17559 $as_echo "host tool
" >&6; }
17561 # We need a cross tool
17562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17563 $as_echo "pre-installed
" >&6; }
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
17568 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
17569 if test "x
${build}" != "x
${host}" ; then
17570 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17571 # We already found the complete path
17572 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17574 $as_echo "pre-installed
in $ac_dir" >&6; }
17576 # Canadian cross, just use what we found
17577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17578 $as_echo "pre-installed
" >&6; }
17582 case " ${configdirs} " in
17586 case ,${enable_languages}, in
17590 if test $ok = yes; then
17591 # An in-tree tool is available and we can use it
17592 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17594 $as_echo "just compiled
" >&6; }
17595 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17596 # We already found the complete path
17597 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17599 $as_echo "pre-installed
in $ac_dir" >&6; }
17600 elif test "x
$target" = "x
$host"; then
17601 # We can use an host tool
17602 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17604 $as_echo "host tool
" >&6; }
17606 # We need a cross tool
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17608 $as_echo "pre-installed
" >&6; }
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
17613 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
17614 if test "x
${build}" != "x
${host}" ; then
17615 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17616 # We already found the complete path
17617 ac_dir=`dirname $GOC_FOR_TARGET`
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17619 $as_echo "pre-installed
in $ac_dir" >&6; }
17621 # Canadian cross, just use what we found
17622 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17623 $as_echo "pre-installed
" >&6; }
17627 case " ${configdirs} " in
17631 case ,${enable_languages}, in
17635 if test $ok = yes; then
17636 # An in-tree tool is available and we can use it
17637 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17639 $as_echo "just compiled
" >&6; }
17640 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17641 # We already found the complete path
17642 ac_dir=`dirname $GOC_FOR_TARGET`
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17644 $as_echo "pre-installed
in $ac_dir" >&6; }
17645 elif test "x
$target" = "x
$host"; then
17646 # We can use an host tool
17647 GOC_FOR_TARGET='$(GOC)'
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17649 $as_echo "host tool
" >&6; }
17651 # We need a cross tool
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17653 $as_echo "pre-installed
" >&6; }
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
17658 $as_echo_n "checking where to
find the target gdc...
" >&6; }
17659 if test "x
${build}" != "x
${host}" ; then
17660 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17661 # We already found the complete path
17662 ac_dir=`dirname $GDC_FOR_TARGET`
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17664 $as_echo "pre-installed
in $ac_dir" >&6; }
17666 # Canadian cross, just use what we found
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17668 $as_echo "pre-installed
" >&6; }
17672 case " ${configdirs} " in
17676 case ,${enable_languages}, in
17680 if test $ok = yes; then
17681 # An in-tree tool is available and we can use it
17682 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17684 $as_echo "just compiled
" >&6; }
17685 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17686 # We already found the complete path
17687 ac_dir=`dirname $GDC_FOR_TARGET`
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17689 $as_echo "pre-installed
in $ac_dir" >&6; }
17690 elif test "x
$target" = "x
$host"; then
17691 # We can use an host tool
17692 GDC_FOR_TARGET='$(GDC)'
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17694 $as_echo "host tool
" >&6; }
17696 # We need a cross tool
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17698 $as_echo "pre-installed
" >&6; }
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gm2
" >&5
17703 $as_echo_n "checking where to
find the target gm2...
" >&6; }
17704 if test "x
${build}" != "x
${host}" ; then
17705 if expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
17706 # We already found the complete path
17707 ac_dir=`dirname $GM2_FOR_TARGET`
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17709 $as_echo "pre-installed
in $ac_dir" >&6; }
17711 # Canadian cross, just use what we found
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17713 $as_echo "pre-installed
" >&6; }
17717 case " ${configdirs} " in
17721 case ,${enable_languages}, in
17725 if test $ok = yes; then
17726 # An in-tree tool is available and we can use it
17727 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17729 $as_echo "just compiled
" >&6; }
17730 elif expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
17731 # We already found the complete path
17732 ac_dir=`dirname $GM2_FOR_TARGET`
17733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17734 $as_echo "pre-installed
in $ac_dir" >&6; }
17735 elif test "x
$target" = "x
$host"; then
17736 # We can use an host tool
17737 GM2_FOR_TARGET='$(GM2)'
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17739 $as_echo "host tool
" >&6; }
17741 # We need a cross tool
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17743 $as_echo "pre-installed
" >&6; }
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
17748 $as_echo_n "checking where to
find the target ld...
" >&6; }
17749 if test "x
${build}" != "x
${host}" ; then
17750 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17751 # We already found the complete path
17752 ac_dir=`dirname $LD_FOR_TARGET`
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17754 $as_echo "pre-installed
in $ac_dir" >&6; }
17756 # Canadian cross, just use what we found
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17758 $as_echo "pre-installed
" >&6; }
17762 case " ${configdirs} " in
17767 if test $ok = yes; then
17768 # An in-tree tool is available and we can use it
17769 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17771 $as_echo "just compiled
" >&6; }
17772 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17773 # We already found the complete path
17774 ac_dir=`dirname $LD_FOR_TARGET`
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17776 $as_echo "pre-installed
in $ac_dir" >&6; }
17777 elif test "x
$target" = "x
$host"; then
17778 # We can use an host tool
17779 LD_FOR_TARGET='$(LD)'
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17781 $as_echo "host tool
" >&6; }
17783 # We need a cross tool
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17785 $as_echo "pre-installed
" >&6; }
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
17790 $as_echo_n "checking where to
find the target lipo...
" >&6; }
17791 if test "x
${build}" != "x
${host}" ; then
17792 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
17793 # We already found the complete path
17794 ac_dir=`dirname $LIPO_FOR_TARGET`
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17796 $as_echo "pre-installed
in $ac_dir" >&6; }
17798 # Canadian cross, just use what we found
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17800 $as_echo "pre-installed
" >&6; }
17803 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
17804 # We already found the complete path
17805 ac_dir=`dirname $LIPO_FOR_TARGET`
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17807 $as_echo "pre-installed
in $ac_dir" >&6; }
17808 elif test "x
$target" = "x
$host"; then
17809 # We can use an host tool
17810 LIPO_FOR_TARGET='$(LIPO)'
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17812 $as_echo "host tool
" >&6; }
17814 # We need a cross tool
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17816 $as_echo "pre-installed
" >&6; }
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
17821 $as_echo_n "checking where to
find the target nm...
" >&6; }
17822 if test "x
${build}" != "x
${host}" ; then
17823 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
17824 # We already found the complete path
17825 ac_dir=`dirname $NM_FOR_TARGET`
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17827 $as_echo "pre-installed
in $ac_dir" >&6; }
17829 # Canadian cross, just use what we found
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17831 $as_echo "pre-installed
" >&6; }
17835 case " ${configdirs} " in
17840 if test $ok = yes; then
17841 # An in-tree tool is available and we can use it
17842 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17844 $as_echo "just compiled
" >&6; }
17845 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
17846 # We already found the complete path
17847 ac_dir=`dirname $NM_FOR_TARGET`
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17849 $as_echo "pre-installed
in $ac_dir" >&6; }
17850 elif test "x
$target" = "x
$host"; then
17851 # We can use an host tool
17852 NM_FOR_TARGET='$(NM)'
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17854 $as_echo "host tool
" >&6; }
17856 # We need a cross tool
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17858 $as_echo "pre-installed
" >&6; }
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
17863 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
17864 if test "x
${build}" != "x
${host}" ; then
17865 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
17866 # We already found the complete path
17867 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17869 $as_echo "pre-installed
in $ac_dir" >&6; }
17871 # Canadian cross, just use what we found
17872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17873 $as_echo "pre-installed
" >&6; }
17877 case " ${configdirs} " in
17882 if test $ok = yes; then
17883 # An in-tree tool is available and we can use it
17884 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17886 $as_echo "just compiled
" >&6; }
17887 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
17888 # We already found the complete path
17889 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17891 $as_echo "pre-installed
in $ac_dir" >&6; }
17892 elif test "x
$target" = "x
$host"; then
17893 # We can use an host tool
17894 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17896 $as_echo "host tool
" >&6; }
17898 # We need a cross tool
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17900 $as_echo "pre-installed
" >&6; }
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
17905 $as_echo_n "checking where to
find the target objdump...
" >&6; }
17906 if test "x
${build}" != "x
${host}" ; then
17907 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
17908 # We already found the complete path
17909 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17911 $as_echo "pre-installed
in $ac_dir" >&6; }
17913 # Canadian cross, just use what we found
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17915 $as_echo "pre-installed
" >&6; }
17919 case " ${configdirs} " in
17924 if test $ok = yes; then
17925 # An in-tree tool is available and we can use it
17926 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17928 $as_echo "just compiled
" >&6; }
17929 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
17930 # We already found the complete path
17931 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17933 $as_echo "pre-installed
in $ac_dir" >&6; }
17934 elif test "x
$target" = "x
$host"; then
17935 # We can use an host tool
17936 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17938 $as_echo "host tool
" >&6; }
17940 # We need a cross tool
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17942 $as_echo "pre-installed
" >&6; }
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
17947 $as_echo_n "checking where to
find the target otool...
" >&6; }
17948 if test "x
${build}" != "x
${host}" ; then
17949 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17950 # We already found the complete path
17951 ac_dir=`dirname $OTOOL_FOR_TARGET`
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17953 $as_echo "pre-installed
in $ac_dir" >&6; }
17955 # Canadian cross, just use what we found
17956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17957 $as_echo "pre-installed
" >&6; }
17960 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17961 # We already found the complete path
17962 ac_dir=`dirname $OTOOL_FOR_TARGET`
17963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17964 $as_echo "pre-installed
in $ac_dir" >&6; }
17965 elif test "x
$target" = "x
$host"; then
17966 # We can use an host tool
17967 OTOOL_FOR_TARGET='$(OTOOL)'
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17969 $as_echo "host tool
" >&6; }
17971 # We need a cross tool
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17973 $as_echo "pre-installed
" >&6; }
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
17978 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
17979 if test "x
${build}" != "x
${host}" ; then
17980 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
17981 # We already found the complete path
17982 ac_dir=`dirname $RANLIB_FOR_TARGET`
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17984 $as_echo "pre-installed
in $ac_dir" >&6; }
17986 # Canadian cross, just use what we found
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17988 $as_echo "pre-installed
" >&6; }
17992 case " ${configdirs} " in
17997 if test $ok = yes; then
17998 # An in-tree tool is available and we can use it
17999 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18001 $as_echo "just compiled
" >&6; }
18002 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18003 # We already found the complete path
18004 ac_dir=`dirname $RANLIB_FOR_TARGET`
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18006 $as_echo "pre-installed
in $ac_dir" >&6; }
18007 elif test "x
$target" = "x
$host"; then
18008 # We can use an host tool
18009 RANLIB_FOR_TARGET='$(RANLIB)'
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18011 $as_echo "host tool
" >&6; }
18013 # We need a cross tool
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18015 $as_echo "pre-installed
" >&6; }
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18020 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18021 if test "x
${build}" != "x
${host}" ; then
18022 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18023 # We already found the complete path
18024 ac_dir=`dirname $READELF_FOR_TARGET`
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18026 $as_echo "pre-installed
in $ac_dir" >&6; }
18028 # Canadian cross, just use what we found
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18030 $as_echo "pre-installed
" >&6; }
18034 case " ${configdirs} " in
18039 if test $ok = yes; then
18040 # An in-tree tool is available and we can use it
18041 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18043 $as_echo "just compiled
" >&6; }
18044 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18045 # We already found the complete path
18046 ac_dir=`dirname $READELF_FOR_TARGET`
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18048 $as_echo "pre-installed
in $ac_dir" >&6; }
18049 elif test "x
$target" = "x
$host"; then
18050 # We can use an host tool
18051 READELF_FOR_TARGET='$(READELF)'
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18053 $as_echo "host tool
" >&6; }
18055 # We need a cross tool
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18057 $as_echo "pre-installed
" >&6; }
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18062 $as_echo_n "checking where to
find the target strip...
" >&6; }
18063 if test "x
${build}" != "x
${host}" ; then
18064 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18065 # We already found the complete path
18066 ac_dir=`dirname $STRIP_FOR_TARGET`
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18068 $as_echo "pre-installed
in $ac_dir" >&6; }
18070 # Canadian cross, just use what we found
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18072 $as_echo "pre-installed
" >&6; }
18076 case " ${configdirs} " in
18081 if test $ok = yes; then
18082 # An in-tree tool is available and we can use it
18083 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18085 $as_echo "just compiled
" >&6; }
18086 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18087 # We already found the complete path
18088 ac_dir=`dirname $STRIP_FOR_TARGET`
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18090 $as_echo "pre-installed
in $ac_dir" >&6; }
18091 elif test "x
$target" = "x
$host"; then
18092 # We can use an host tool
18093 STRIP_FOR_TARGET='$(STRIP)'
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18095 $as_echo "host tool
" >&6; }
18097 # We need a cross tool
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18099 $as_echo "pre-installed
" >&6; }
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18104 $as_echo_n "checking where to
find the target windres...
" >&6; }
18105 if test "x
${build}" != "x
${host}" ; then
18106 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18107 # We already found the complete path
18108 ac_dir=`dirname $WINDRES_FOR_TARGET`
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18110 $as_echo "pre-installed
in $ac_dir" >&6; }
18112 # Canadian cross, just use what we found
18113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18114 $as_echo "pre-installed
" >&6; }
18118 case " ${configdirs} " in
18123 if test $ok = yes; then
18124 # An in-tree tool is available and we can use it
18125 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18127 $as_echo "just compiled
" >&6; }
18128 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18129 # We already found the complete path
18130 ac_dir=`dirname $WINDRES_FOR_TARGET`
18131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18132 $as_echo "pre-installed
in $ac_dir" >&6; }
18133 elif test "x
$target" = "x
$host"; then
18134 # We can use an host tool
18135 WINDRES_FOR_TARGET='$(WINDRES)'
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18137 $as_echo "host tool
" >&6; }
18139 # We need a cross tool
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18141 $as_echo "pre-installed
" >&6; }
18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18146 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18147 if test "x
${build}" != "x
${host}" ; then
18148 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18149 # We already found the complete path
18150 ac_dir=`dirname $WINDMC_FOR_TARGET`
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18152 $as_echo "pre-installed
in $ac_dir" >&6; }
18154 # Canadian cross, just use what we found
18155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18156 $as_echo "pre-installed
" >&6; }
18160 case " ${configdirs} " in
18165 if test $ok = yes; then
18166 # An in-tree tool is available and we can use it
18167 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18169 $as_echo "just compiled
" >&6; }
18170 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18171 # We already found the complete path
18172 ac_dir=`dirname $WINDMC_FOR_TARGET`
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18174 $as_echo "pre-installed
in $ac_dir" >&6; }
18175 elif test "x
$target" = "x
$host"; then
18176 # We can use an host tool
18177 WINDMC_FOR_TARGET='$(WINDMC)'
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18179 $as_echo "host tool
" >&6; }
18181 # We need a cross tool
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18183 $as_echo "pre-installed
" >&6; }
18191 # Certain tools may need extra flags.
18192 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18193 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18194 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18196 # When building target libraries, except in a Canadian cross, we use
18197 # the same toolchain as the compiler we just built.
18198 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18199 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18200 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18201 if test $host = $build; then
18202 case " $configdirs " in
18204 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18205 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18206 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18216 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18217 # Check whether --enable-maintainer-mode was given.
18218 if test "${enable_maintainer_mode+set}" = set; then :
18219 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18221 USE_MAINTAINER_MODE=no
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18225 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18228 if test "$USE_MAINTAINER_MODE" = yes; then
18229 MAINTAINER_MODE_TRUE=
18230 MAINTAINER_MODE_FALSE='#'
18232 MAINTAINER_MODE_TRUE='#'
18233 MAINTAINER_MODE_FALSE=
18235 MAINT=$MAINTAINER_MODE_TRUE
18237 # ---------------------
18238 # GCC bootstrap support
18239 # ---------------------
18241 # Stage specific cflags for build.
18246 yes) stage1_cflags="-g -Wa,-J" ;;
18247 *) stage1_cflags="-g -J" ;;
18253 # Enable --enable-checking in stage1 of the compiler.
18254 # Check whether --enable-stage1-checking was given.
18255 if test "${enable_stage1_checking+set}" = set; then :
18256 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18258 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18259 # For --disable-checking or implicit --enable-checking=release, avoid
18260 # setting --enable-checking=gc in the default stage1 checking for LTO
18261 # bootstraps. See PR62077.
18262 case $BUILD_CONFIG in
18264 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18266 stage1_checking=--enable-checking=yes,types;;
18268 if test "x
$enable_checking" = x && \
18269 test -d ${srcdir}/gcc && \
18270 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18271 stage1_checking=--enable-checking=yes,types,extra
18274 stage1_checking=--enable-checking=$enable_checking,types
18280 # Enable -Werror in bootstrap stage2 and later.
18281 # Check whether --enable-werror was given.
18282 if test "${enable_werror+set}" = set; then :
18283 enableval=$enable_werror;
18284 case ${enable_werror} in
18285 yes) stage2_werror_flag="--enable-werror-always" ;;
18286 *) stage2_werror_flag="" ;;
18291 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18292 case $BUILD_CONFIG in
18294 stage2_werror_flag="--enable-werror-always" ;;
18296 stage2_werror_flag="--enable-werror-always" ;;
18305 # Specify what files to not compare during bootstrap.
18307 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18308 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/M2Version
*"
18309 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/SYSTEM
*"
18310 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2version
*"
18312 hppa*64*-*-hpux*) ;;
18313 hppa*-*-hpux*) compare_exclusions="$compare_exclusions |
*/libgcc
/lib2funcs
* | gcc
/function-tests.o
" ;;
18314 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18318 ac_config_files="$ac_config_files Makefile
"
18320 cat >confcache <<\_ACEOF
18321 # This file is a shell script that caches the results of configure
18322 # tests run on this system so they can be shared between configure
18323 # scripts and configure runs, see configure's option --config-cache.
18324 # It is not useful on other systems. If it contains results you don't
18325 # want to keep, you may remove or edit it.
18327 # config.status only pays attention to the cache file if you give it
18328 # the --recheck option to rerun configure.
18330 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18331 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18332 # following values.
18336 # The following way of writing the cache mishandles newlines in values,
18337 # but we know of no workaround that is simple, portable, and efficient.
18338 # So, we kill variables containing newlines.
18339 # Ultrix sh set writes to stderr and can't be redirected directly,
18340 # and sets the high bit in the cache file unless we assign to the vars.
18342 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18343 eval ac_val=\$$ac_var
18347 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18348 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18351 _ | IFS | as_nl) ;; #(
18352 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18353 *) { eval $ac_var=; unset $ac_var;} ;;
18359 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18360 *${as_nl}ac_space=\ *)
18361 # `set' does not quote correctly, so add quotes: double-quote
18362 # substitution turns \\\\ into \\, and sed turns \\ into \.
18365 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18368 # `set' quotes correctly as required by POSIX, so do not add quotes.
18369 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18378 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18380 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18382 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18383 if test -w "$cache_file"; then
18384 if test "x
$cache_file" != "x
/dev
/null
"; then
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18386 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18387 if test ! -f "$cache_file" || test -h "$cache_file"; then
18388 cat confcache >"$cache_file"
18390 case $cache_file in #(
18392 mv -f confcache "$cache_file"$$ &&
18393 mv -f "$cache_file"$$ "$cache_file" ;; #(
18395 mv -f confcache "$cache_file" ;;
18400 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18401 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18406 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18407 # Let make expand exec_prefix.
18408 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18410 # Transform confdefs.h into DEFS.
18411 # Protect against shell expansion while executing Makefile rules.
18412 # Protect against Makefile macro expansion.
18414 # If the first sed substitution is executed (which looks for macros that
18415 # take arguments), then branch to the quote section. Otherwise,
18416 # look for a macro that doesn't take arguments.
18426 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18428 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18432 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18445 DEFS=`sed -n "$ac_script" confdefs.h`
18451 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18452 # 1. Remove the extension, and $U if already installed.
18453 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18454 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18455 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18456 # will be set to the directory where LIBOBJS objects are built.
18457 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18458 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
18460 LIBOBJS=$ac_libobjs
18462 LTLIBOBJS=$ac_ltlibobjs
18466 : "${CONFIG_STATUS=./config.status}"
18468 ac_clean_files_save=$ac_clean_files
18469 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18471 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18473 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18475 # Generated by $as_me.
18476 # Run this file to recreate the current configuration.
18477 # Compiler output produced by configure, useful for debugging
18478 # configure, is in config.log if it exists.
18481 ac_cs_recheck=false
18484 SHELL=\${CONFIG_SHELL-$SHELL}
18487 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18488 ## -------------------- ##
18489 ## M4sh Initialization. ##
18490 ## -------------------- ##
18492 # Be more Bourne compatible
18493 DUALCASE=1; export DUALCASE # for MKS sh
18494 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18497 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18498 # is contrary to our usage. Disable this feature.
18499 alias -g '${1+"$@"}'='"$@"'
18500 setopt NO_GLOB_SUBST
18502 case `(set -o) 2>/dev/null` in #(
18514 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18515 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18516 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
18517 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18518 # Prefer a ksh shell builtin over an external printf program on Solaris,
18519 # but without wasting forks for bash or zsh.
18520 if test -z "$BASH_VERSION$ZSH_VERSION" \
18521 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18522 as_echo
='print -r --'
18523 as_echo_n
='print -rn --'
18524 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18525 as_echo
='printf %s\n'
18526 as_echo_n
='printf %s'
18528 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18529 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
18530 as_echo_n
='/usr/ucb/echo -n'
18532 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
18533 as_echo_n_body
='eval
18537 expr "X$arg" : "X\\(.*\\)$as_nl";
18538 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18540 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18542 export as_echo_n_body
18543 as_echo_n
='sh -c $as_echo_n_body as_echo'
18545 export as_echo_body
18546 as_echo
='sh -c $as_echo_body as_echo'
18549 # The user is always right.
18550 if test "${PATH_SEPARATOR+set}" != set; then
18552 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
18553 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
18560 # We need space, tab and new line, in precisely that order. Quoting is
18561 # there to prevent editors from complaining about space-tab.
18562 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18563 # splitting by setting IFS to empty value.)
18566 # Find who we are. Look in the path if we contain no directory separator.
18569 *[\\/]* ) as_myself
=$0 ;;
18570 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18571 for as_dir
in $PATH
18574 test -z "$as_dir" && as_dir
=.
18575 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18581 # We did not find ourselves, most probably we were run as `sh COMMAND'
18582 # in which case we are not to be found in the path.
18583 if test "x$as_myself" = x
; then
18586 if test ! -f "$as_myself"; then
18587 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18591 # Unset variables that we do not need and which cause bugs (e.g. in
18592 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18593 # suppresses any "Segmentation fault" message there. '((' could
18594 # trigger a bug in pdksh 5.2.14.
18595 for as_var
in BASH_ENV ENV MAIL MAILPATH
18596 do eval test x\
${$as_var+set} = xset \
18597 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18610 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18613 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18614 # ----------------------------------------
18615 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18616 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18617 # script with STATUS, using 1 if that was 0.
18620 as_status
=$1; test $as_status -eq 0 && as_status
=1
18622 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18623 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18625 $as_echo "$as_me: error: $2" >&2
18626 as_fn_exit
$as_status
18630 # as_fn_set_status STATUS
18631 # -----------------------
18632 # Set $? to STATUS, without forking.
18633 as_fn_set_status
()
18636 } # as_fn_set_status
18638 # as_fn_exit STATUS
18639 # -----------------
18640 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18644 as_fn_set_status
$1
18650 # Portably unset VAR.
18653 { eval $1=; unset $1;}
18655 as_unset
=as_fn_unset
18656 # as_fn_append VAR VALUE
18657 # ----------------------
18658 # Append the text in VALUE to the end of the definition contained in VAR. Take
18659 # advantage of any shell optimizations that allow amortized linear growth over
18660 # repeated appends, instead of the typical quadratic growth present in naive
18662 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18663 eval 'as_fn_append ()
18674 # as_fn_arith ARG...
18675 # ------------------
18676 # Perform arithmetic evaluation on the ARGs, and store the result in the
18677 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18678 # must be portable across $(()) and expr.
18679 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18680 eval 'as_fn_arith ()
18687 as_val
=`expr "$@" || test $? -eq 1`
18692 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18693 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18699 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18700 as_basename
=basename
18705 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18711 as_me
=`$as_basename -- "$0" ||
18712 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18713 X"$0" : 'X\(//\)$' \| \
18714 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18716 sed '/^.*\/\([^/][^/]*\)\/*$/{
18730 # Avoid depending upon Character Ranges.
18731 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18732 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18733 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18734 as_cr_digits
='0123456789'
18735 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18737 ECHO_C
= ECHO_N
= ECHO_T
=
18738 case `echo -n x` in #(((((
18740 case `echo 'xy\c'` in
18741 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18743 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18750 rm -f conf$$ conf$$.exe conf$$.
file
18751 if test -d conf$$.dir
; then
18752 rm -f conf$$.dir
/conf$$.
file
18755 mkdir conf$$.dir
2>/dev
/null
18757 if (echo >conf$$.
file) 2>/dev
/null
; then
18758 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18760 # ... but there are two gotchas:
18761 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18762 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18763 # In both cases, we have to default to `cp -pR'.
18764 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18766 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18774 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18775 rmdir conf$$.dir
2>/dev
/null
18780 # Create "$as_dir" as a directory, including parents if necessary.
18785 -*) as_dir
=.
/$as_dir;;
18787 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18791 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18792 *) as_qdir
=$as_dir;;
18794 as_dirs
="'$as_qdir' $as_dirs"
18795 as_dir
=`$as_dirname -- "$as_dir" ||
18796 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18797 X"$as_dir" : 'X\(//\)[^/]' \| \
18798 X"$as_dir" : 'X\(//\)$' \| \
18799 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18800 $as_echo X"$as_dir" |
18801 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18805 /^X\(\/\/\)[^/].*/{
18818 test -d "$as_dir" && break
18820 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18821 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18825 if mkdir
-p .
2>/dev
/null
; then
18826 as_mkdir_p
='mkdir -p "$as_dir"'
18828 test -d .
/-p && rmdir .
/-p
18833 # as_fn_executable_p FILE
18834 # -----------------------
18835 # Test if FILE is an executable regular file.
18836 as_fn_executable_p
()
18838 test -f "$1" && test -x "$1"
18839 } # as_fn_executable_p
18840 as_test_x
='test -x'
18841 as_executable_p
=as_fn_executable_p
18843 # Sed expression to map a string onto a valid CPP name.
18844 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18846 # Sed expression to map a string onto a valid variable name.
18847 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18851 ## ----------------------------------- ##
18852 ## Main body of $CONFIG_STATUS script. ##
18853 ## ----------------------------------- ##
18855 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18857 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18858 # Save the log message, to keep $0 and so on meaningful, and to
18859 # report actual input values of CONFIG_FILES etc. instead of their
18860 # values after options handling.
18862 This file was extended by $as_me, which was
18863 generated by GNU Autoconf 2.69. Invocation command line was
18865 CONFIG_FILES = $CONFIG_FILES
18866 CONFIG_HEADERS = $CONFIG_HEADERS
18867 CONFIG_LINKS = $CONFIG_LINKS
18868 CONFIG_COMMANDS = $CONFIG_COMMANDS
18871 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18876 case $ac_config_files in *"
18877 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18882 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18883 # Files that config.status was made for.
18884 config_files="$ac_config_files"
18888 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18890 \`$as_me' instantiates files and other configuration actions
18891 from templates according to the current configuration. Unless the files
18892 and actions are specified as TAGs, all are instantiated by default.
18894 Usage: $0 [OPTION]... [TAG]...
18896 -h, --help print this help, then exit
18897 -V, --version print version number and configuration settings, then exit
18898 --config print configuration, then exit
18899 -q, --quiet, --silent
18900 do not print progress messages
18901 -d, --debug don't remove temporary files
18902 --recheck update $as_me by reconfiguring in the same conditions
18903 --file=FILE[:TEMPLATE]
18904 instantiate the configuration file FILE
18906 Configuration files:
18909 Report bugs to the package provider."
18912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18913 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18916 configured by $0, generated by GNU Autoconf 2.69,
18917 with options \\"\$ac_cs_config\\"
18919 Copyright (C) 2012 Free Software Foundation, Inc.
18920 This config.status script is free software; the Free Software Foundation
18921 gives unlimited permission to copy, distribute and modify it."
18927 test -n "\$AWK" || AWK=awk
18930 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18931 # The default lists apply if the user does not specify any file.
18937 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18938 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18942 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18954 # Handling of the options.
18955 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18957 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18958 $as_echo "$ac_cs_version"; exit ;;
18959 --config |
--confi |
--conf |
--con |
--co |
--c )
18960 $as_echo "$ac_cs_config"; exit ;;
18961 --debug |
--debu |
--deb |
--de |
--d |
-d )
18963 --file |
--fil |
--fi |
--f )
18966 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18967 '') as_fn_error $?
"missing file argument" ;;
18969 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18970 ac_need_defaults
=false
;;
18971 --he |
--h |
--help |
--hel |
-h )
18972 $as_echo "$ac_cs_usage"; exit ;;
18973 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18974 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18977 # This is an error.
18978 -*) as_fn_error $?
"unrecognized option: \`$1'
18979 Try \`$0 --help' for more information." ;;
18981 *) as_fn_append ac_config_targets
" $1"
18982 ac_need_defaults
=false
;;
18988 ac_configure_extra_args
=
18990 if $ac_cs_silent; then
18992 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18997 if \$ac_cs_recheck; then
18998 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19000 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19001 CONFIG_SHELL='$SHELL'
19002 export CONFIG_SHELL
19007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19011 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19012 ## Running $as_me. ##
19018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19022 extrasub_build="$extrasub_build"
19023 extrasub_host="$extrasub_host"
19024 extrasub_target="$extrasub_target"
19028 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19030 # Handling of arguments.
19031 for ac_config_target
in $ac_config_targets
19033 case $ac_config_target in
19034 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19036 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19041 # If the user did not use the arguments to specify the items to instantiate,
19042 # then the envvar interface is used. Set only those that are not.
19043 # We use the long form for the default assignment because of an extremely
19044 # bizarre bug on SunOS 4.1.3.
19045 if $ac_need_defaults; then
19046 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19049 # Have a temporary directory for convenience. Make it in the build tree
19050 # simply because there is no reason against having it here, and in addition,
19051 # creating and moving files from /tmp can sometimes cause problems.
19052 # Hook for its removal unless debugging.
19053 # Note that there is a small window in which the directory will not be cleaned:
19054 # after its creation but before its name has been assigned to `$tmp'.
19058 trap 'exit_status=$?
19059 : "${ac_tmp:=$tmp}"
19060 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19062 trap 'as_fn_exit 1' 1 2 13 15
19064 # Create a (secure) tmp directory for tmp files.
19067 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19071 tmp
=.
/conf$$
-$RANDOM
19072 (umask 077 && mkdir
"$tmp")
19073 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19076 # Set up the scripts for CONFIG_FILES section.
19077 # No need to generate them if there are no CONFIG_FILES.
19078 # This happens for instance with `./config.status config.h'.
19079 if test -n "$CONFIG_FILES"; then
19081 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19082 ac_cs_awk_getline
=:
19083 ac_cs_awk_pipe_init
=
19084 ac_cs_awk_read_file
='
19085 while ((getline aline < (F[key])) > 0)
19088 ac_cs_awk_pipe_fini
=
19090 ac_cs_awk_getline
=false
19091 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19092 ac_cs_awk_read_file
='
19094 print "cat " F[key] " &&"
19095 '$ac_cs_awk_pipe_init
19096 # The final `:' finishes the AND list.
19097 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19099 ac_cr
=`echo X | tr X '\015'`
19100 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19101 # But we know of no other shell where ac_cr would be empty at this
19102 # point, so we can use a bashism as a fallback.
19103 if test "x$ac_cr" = x
; then
19104 eval ac_cr
=\$
\'\\r
\'
19106 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19107 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19110 ac_cs_awk_cr
=$ac_cr
19113 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19116 # Create commands to substitute file output variables.
19118 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19119 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19120 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19123 } >conf$
$files.sh
&&
19124 . .
/conf$
$files.sh ||
19125 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19126 rm -f conf$
$files.sh
19129 echo "cat >conf$$subs.awk <<_ACEOF" &&
19130 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19132 } >conf$$subs.sh ||
19133 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19134 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19136 for ac_last_try in false false false false false :; do
19137 . ./conf$$subs.sh ||
19138 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19140 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19141 if test $ac_delim_n = $ac_delim_num; then
19143 elif $ac_last_try; then
19144 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19146 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19149 rm -f conf$$subs.sh
19151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19152 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19156 s/^/S["/; s
/!.
*/"]=/
19166 s/\(.\{148\}\)..*/\1/
19168 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19173 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19180 s/\(.\{148\}\)..*/\1/
19182 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19186 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19191 ' <conf$$subs.awk | sed '
19196 ' >>$CONFIG_STATUS || ac_write_fail=1
19197 rm -f conf$$subs.awk
19198 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19200 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19201 for (key in S) S_is_set[key] = 1
19203 \$ac_cs_awk_pipe_init
19207 nfields = split(line, field, "@
")
19209 len = length(field[1])
19210 for (i = 2; i < nfields; i++) {
19212 keylen = length(key)
19213 if (S_is_set[key]) {
19215 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19216 len += length(value) + length(field[++i])
19221 if (nfields == 3 && !substed) {
19223 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19224 \$ac_cs_awk_read_file
19230 \$ac_cs_awk_pipe_fini
19233 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19234 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19235 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19238 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19239 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19242 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19243 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19244 # trailing colons and then remove the whole line if VPATH becomes empty
19245 # (actually we leave an empty line to preserve line numbers).
19246 if test "x
$srcdir" = x.; then
19247 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19266 fi # test -n "$CONFIG_FILES"
19269 eval set X " :F
$CONFIG_FILES "
19274 :[FHLC]) ac_mode=$ac_tag; continue;;
19276 case $ac_mode$ac_tag in
19278 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19279 :[FH]-) ac_tag=-:-;;
19280 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19297 -) ac_f="$ac_tmp/stdin";;
19298 *) # Look for the file first in the build tree, then in the source tree
19299 # (if the path is not absolute). The absolute path cannot be DOS-style,
19300 # because $ac_f cannot contain `:'.
19304 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19306 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19308 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19309 as_fn_append ac_file_inputs " '$ac_f'"
19312 # Let's still pretend it is `configure' which instantiates (i.e., don't
19313 # use $as_me), people would be surprised to read:
19314 # /* config.h. Generated by config.status. */
19315 configure_input='Generated from '`
19316 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19318 if test x"$ac_file" != x-; then
19319 configure_input="$ac_file.
$configure_input"
19320 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19321 $as_echo "$as_me: creating
$ac_file" >&6;}
19323 # Neutralize special characters interpreted by sed in replacement strings.
19324 case $configure_input in #(
19325 *\&* | *\|* | *\\* )
19326 ac_sed_conf_input=`$as_echo "$configure_input" |
19327 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19328 *) ac_sed_conf_input=$configure_input;;
19332 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19333 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19338 ac_dir=`$as_dirname -- "$ac_file" ||
19339 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19340 X"$ac_file" : 'X\(//\)[^/]' \| \
19341 X"$ac_file" : 'X\(//\)$' \| \
19342 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19343 $as_echo X"$ac_file" |
19344 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19348 /^X\(\/\/\)[^/].*/{
19361 as_dir="$ac_dir"; as_fn_mkdir_p
19365 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19367 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19368 # A "..
" for each directory in $ac_dir_suffix.
19369 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19370 case $ac_top_builddir_sub in
19371 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19372 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19375 ac_abs_top_builddir=$ac_pwd
19376 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19377 # for backward compatibility:
19378 ac_top_builddir=$ac_top_build_prefix
19381 .) # We are building in place.
19383 ac_top_srcdir=$ac_top_builddir_sub
19384 ac_abs_top_srcdir=$ac_pwd ;;
19385 [\\/]* | ?:[\\/]* ) # Absolute name.
19386 ac_srcdir=$srcdir$ac_dir_suffix;
19387 ac_top_srcdir=$srcdir
19388 ac_abs_top_srcdir=$srcdir ;;
19389 *) # Relative name.
19390 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19391 ac_top_srcdir=$ac_top_build_prefix$srcdir
19392 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19394 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19404 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19405 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19409 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19410 # If the template does not know about datarootdir, expand it.
19411 # FIXME: This hack should be removed a few years after 2.60.
19412 ac_datarootdir_hack=; ac_datarootdir_seen=
19423 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19424 *datarootdir*) ac_datarootdir_seen=yes;;
19425 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19427 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19429 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19430 ac_datarootdir_hack='
19431 s&@datadir@&$datadir&g
19432 s&@docdir@&$docdir&g
19433 s&@infodir@&$infodir&g
19434 s&@localedir@&$localedir&g
19435 s&@mandir@&$mandir&g
19436 s&\\\${datarootdir}&$datarootdir&g' ;;
19440 # Neutralize VPATH when `$srcdir' = `.'.
19441 # Shell code in configure.ac might set extrasub.
19442 # FIXME: do we really want to maintain this feature?
19443 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19444 ac_sed_extra="$ac_vpsub
19447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19449 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19450 s|@configure_input@|
$ac_sed_conf_input|
;t t
19451 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19452 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19453 s
&@srcdir@
&$ac_srcdir&;t t
19454 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19455 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19456 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19457 s
&@builddir@
&$ac_builddir&;t t
19458 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19459 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19460 s
&@INSTALL@
&$ac_INSTALL&;t t
19461 $ac_datarootdir_hack
19463 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19464 if $ac_cs_awk_getline; then
19465 $AWK -f "$ac_tmp/subs.
awk"
19467 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19469 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19471 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19472 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19473 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19474 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19476 which seems to be undefined. Please make sure it is defined" >&5
19477 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19478 which seems to be undefined. Please make sure it is defined" >&2;}
19480 rm -f "$ac_tmp/stdin"
19482 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19483 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19485 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19493 case $ac_file$ac_mode in
19494 "Makefile":F) sed "$extrasub_build" Makefile |
19495 sed "$extrasub_host" |
19496 sed "$extrasub_target" > mf$$
19497 mv -f mf$$ Makefile ;;
19505 ac_clean_files=$ac_clean_files_save
19507 test $ac_write_fail = 0 ||
19508 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19511 # configure is writing to config.log, and then calls config.status.
19512 # config.status does its own redirection, appending to config.log.
19513 # Unfortunately, on DOS this fails, as config.log is still kept open
19514 # by configure, so config.status won't be able to
write to it
; its
19515 # output is simply discarded. So we exec the FD to /dev/null,
19516 # effectively closing config.log, so it can be properly (re)opened and
19517 # appended to by config.status. When coming back to configure, we
19518 # need to make the FD available again.
19519 if test "$no_create" != yes; then
19521 ac_config_status_args
=
19522 test "$silent" = yes &&
19523 ac_config_status_args
="$ac_config_status_args --quiet"
19525 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19527 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19528 # would make configure fail if this is the last instruction.
19529 $ac_cs_success || as_fn_exit
1
19531 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19532 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19533 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}