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
682 DEBUG_PREFIX_CFLAGS_FOR_TARGET
683 SYSROOT_CFLAGS_FOR_TARGET
685 extra_host_zlib_configure_flags
686 extra_host_libiberty_configure_flags
691 extra_linker_plugin_flags
692 extra_linker_plugin_configure_flags
699 extra_isl_gmp_configure_flags
700 extra_mpc_mpfr_configure_flags
701 extra_mpc_gmp_configure_flags
702 extra_mpfr_configure_flags
750 TOPLEVEL_CONFIGURE_ARGUMENTS
778 program_transform_name
789 ac_subst_files
='serialization_dependencies
795 enable_option_checking
798 enable_as_accelerator_for
799 enable_offload_targets
800 enable_offload_defaulted
803 enable_compressed_debug_sections
805 enable_libquadmath_support
821 with_static_standard_libraries
828 enable_isl_version_check
830 enable_linker_plugin_configure_flags
831 enable_linker_plugin_flags
834 enable_stage1_languages
837 with_target_bdw_gc_include
838 with_target_bdw_gc_lib
839 with_gcc_major_version_only
841 with_debug_prefix_map
844 enable_serial_configure
845 with_build_time_tools
846 enable_maintainer_mode
847 enable_stage1_checking
850 ac_precious_vars
='build_alias
902 # Initialize some variables set by options.
904 ac_init_version
=false
905 ac_unrecognized_opts
=
907 # The variables have the same names as the options, with
908 # dashes changed to underlines.
916 program_transform_name
=s
,x
,x
,
924 # Installation directory options.
925 # These are left unexpanded so users can "make install exec_prefix=/foo"
926 # and all the variables that are supposed to be based on exec_prefix
927 # by default will actually change.
928 # Use braces instead of parens because sh, perl, etc. also accept them.
929 # (The list follows the same order as the GNU Coding Standards.)
930 bindir
='${exec_prefix}/bin'
931 sbindir
='${exec_prefix}/sbin'
932 libexecdir
='${exec_prefix}/libexec'
933 datarootdir
='${prefix}/share'
934 datadir
='${datarootdir}'
935 sysconfdir
='${prefix}/etc'
936 sharedstatedir
='${prefix}/com'
937 localstatedir
='${prefix}/var'
938 includedir
='${prefix}/include'
939 oldincludedir
='/usr/include'
940 docdir
='${datarootdir}/doc/${PACKAGE}'
941 infodir
='${datarootdir}/info'
946 libdir
='${exec_prefix}/lib'
947 localedir
='${datarootdir}/locale'
948 mandir
='${datarootdir}/man'
954 # If the previous option needs an argument, assign it.
955 if test -n "$ac_prev"; then
956 eval $ac_prev=\
$ac_option
962 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
967 # Accept the important Cygnus configure options, so we can diagnose typos.
969 case $ac_dashdash$ac_option in
973 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
975 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
978 -build |
--build |
--buil |
--bui |
--bu)
979 ac_prev
=build_alias
;;
980 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
981 build_alias
=$ac_optarg ;;
983 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
984 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
985 ac_prev
=cache_file
;;
986 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
987 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
988 cache_file
=$ac_optarg ;;
991 cache_file
=config.cache
;;
993 -datadir |
--datadir |
--datadi |
--datad)
995 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
996 datadir
=$ac_optarg ;;
998 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
999 |
--dataroo |
--dataro |
--datar)
1000 ac_prev
=datarootdir
;;
1001 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1002 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1003 datarootdir
=$ac_optarg ;;
1005 -disable-* |
--disable-*)
1006 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1007 # Reject names that are not valid shell variable names.
1008 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1009 as_fn_error $?
"invalid feature name: $ac_useropt"
1010 ac_useropt_orig
=$ac_useropt
1011 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1012 case $ac_user_opts in
1014 "enable_
$ac_useropt"
1016 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1017 ac_unrecognized_sep
=', ';;
1019 eval enable_
$ac_useropt=no
;;
1021 -docdir |
--docdir |
--docdi |
--doc |
--do)
1023 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1024 docdir
=$ac_optarg ;;
1026 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1028 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1029 dvidir
=$ac_optarg ;;
1031 -enable-* |
--enable-*)
1032 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1035 as_fn_error $?
"invalid feature name: $ac_useropt"
1036 ac_useropt_orig
=$ac_useropt
1037 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1040 "enable_
$ac_useropt"
1042 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1043 ac_unrecognized_sep
=', ';;
1045 eval enable_
$ac_useropt=\
$ac_optarg ;;
1047 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1048 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1049 |
--exec |
--exe |
--ex)
1050 ac_prev
=exec_prefix
;;
1051 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1052 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1053 |
--exec=* |
--exe=* |
--ex=*)
1054 exec_prefix
=$ac_optarg ;;
1056 -gas |
--gas |
--ga |
--g)
1057 # Obsolete; use --with-gas.
1060 -help |
--help |
--hel |
--he |
-h)
1061 ac_init_help
=long
;;
1062 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1063 ac_init_help
=recursive
;;
1064 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1065 ac_init_help
=short
;;
1067 -host |
--host |
--hos |
--ho)
1068 ac_prev
=host_alias
;;
1069 -host=* |
--host=* |
--hos=* |
--ho=*)
1070 host_alias
=$ac_optarg ;;
1072 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1074 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1076 htmldir
=$ac_optarg ;;
1078 -includedir |
--includedir |
--includedi |
--included |
--include \
1079 |
--includ |
--inclu |
--incl |
--inc)
1080 ac_prev
=includedir
;;
1081 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1082 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1083 includedir
=$ac_optarg ;;
1085 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1087 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1088 infodir
=$ac_optarg ;;
1090 -libdir |
--libdir |
--libdi |
--libd)
1092 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1093 libdir
=$ac_optarg ;;
1095 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1096 |
--libexe |
--libex |
--libe)
1097 ac_prev
=libexecdir
;;
1098 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1099 |
--libexe=* |
--libex=* |
--libe=*)
1100 libexecdir
=$ac_optarg ;;
1102 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1103 ac_prev
=localedir
;;
1104 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1105 localedir
=$ac_optarg ;;
1107 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1108 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1109 ac_prev
=localstatedir
;;
1110 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1111 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1112 localstatedir
=$ac_optarg ;;
1114 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1116 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1117 mandir
=$ac_optarg ;;
1119 -nfp |
--nfp |
--nf)
1120 # Obsolete; use --without-fp.
1123 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1124 |
--no-cr |
--no-c |
-n)
1127 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1128 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1131 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1132 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1133 |
--oldin |
--oldi |
--old |
--ol |
--o)
1134 ac_prev
=oldincludedir
;;
1135 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1136 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1137 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1138 oldincludedir
=$ac_optarg ;;
1140 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1142 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1143 prefix
=$ac_optarg ;;
1145 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1146 |
--program-pre |
--program-pr |
--program-p)
1147 ac_prev
=program_prefix
;;
1148 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1149 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1150 program_prefix
=$ac_optarg ;;
1152 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1153 |
--program-suf |
--program-su |
--program-s)
1154 ac_prev
=program_suffix
;;
1155 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1156 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1157 program_suffix
=$ac_optarg ;;
1159 -program-transform-name |
--program-transform-name \
1160 |
--program-transform-nam |
--program-transform-na \
1161 |
--program-transform-n |
--program-transform- \
1162 |
--program-transform |
--program-transfor \
1163 |
--program-transfo |
--program-transf \
1164 |
--program-trans |
--program-tran \
1165 |
--progr-tra |
--program-tr |
--program-t)
1166 ac_prev
=program_transform_name
;;
1167 -program-transform-name=* |
--program-transform-name=* \
1168 |
--program-transform-nam=* |
--program-transform-na=* \
1169 |
--program-transform-n=* |
--program-transform-=* \
1170 |
--program-transform=* |
--program-transfor=* \
1171 |
--program-transfo=* |
--program-transf=* \
1172 |
--program-trans=* |
--program-tran=* \
1173 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1174 program_transform_name
=$ac_optarg ;;
1176 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1178 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1179 pdfdir
=$ac_optarg ;;
1181 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1183 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1186 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1187 |
-silent |
--silent |
--silen |
--sile |
--sil)
1190 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1192 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1194 sbindir
=$ac_optarg ;;
1196 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1197 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1198 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1200 ac_prev
=sharedstatedir
;;
1201 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1202 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1203 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1205 sharedstatedir
=$ac_optarg ;;
1207 -site |
--site |
--sit)
1209 -site=* |
--site=* |
--sit=*)
1212 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1214 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1215 srcdir
=$ac_optarg ;;
1217 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1218 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1219 ac_prev
=sysconfdir
;;
1220 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1221 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1222 sysconfdir
=$ac_optarg ;;
1224 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1225 ac_prev
=target_alias
;;
1226 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1227 target_alias
=$ac_optarg ;;
1229 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1232 -version |
--version |
--versio |
--versi |
--vers |
-V)
1233 ac_init_version
=: ;;
1236 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1239 as_fn_error $?
"invalid package name: $ac_useropt"
1240 ac_useropt_orig
=$ac_useropt
1241 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1242 case $ac_user_opts in
1246 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1247 ac_unrecognized_sep
=', ';;
1249 eval with_
$ac_useropt=\
$ac_optarg ;;
1251 -without-* |
--without-*)
1252 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1253 # Reject names that are not valid shell variable names.
1254 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1255 as_fn_error $?
"invalid package name: $ac_useropt"
1256 ac_useropt_orig
=$ac_useropt
1257 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1258 case $ac_user_opts in
1262 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1263 ac_unrecognized_sep
=', ';;
1265 eval with_
$ac_useropt=no
;;
1268 # Obsolete; use --with-x.
1271 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1272 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1273 ac_prev
=x_includes
;;
1274 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1275 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1276 x_includes
=$ac_optarg ;;
1278 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1279 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1280 ac_prev
=x_libraries
;;
1281 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1282 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1283 x_libraries
=$ac_optarg ;;
1285 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1286 Try \`$0 --help' for more information"
1290 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1291 # Reject names that are not valid shell variable names.
1292 case $ac_envvar in #(
1293 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1294 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1296 eval $ac_envvar=\
$ac_optarg
1297 export $ac_envvar ;;
1300 # FIXME: should be removed in autoconf 3.0.
1301 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1302 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1303 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1304 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1310 if test -n "$ac_prev"; then
1311 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1312 as_fn_error $?
"missing argument to $ac_option"
1315 if test -n "$ac_unrecognized_opts"; then
1316 case $enable_option_checking in
1318 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1319 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1323 # Check all directory arguments for consistency.
1324 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1325 datadir sysconfdir sharedstatedir localstatedir includedir \
1326 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1327 libdir localedir mandir
1329 eval ac_val
=\$
$ac_var
1330 # Remove trailing slashes.
1333 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1334 eval $ac_var=\
$ac_val;;
1336 # Be sure to have absolute directory names.
1338 [\\/$
]* | ?
:[\\/]* ) continue;;
1339 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1341 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1344 # There might be people who depend on the old broken behavior: `$host'
1345 # used to hold the argument of --host etc.
1346 # FIXME: To remove some day.
1349 target
=$target_alias
1351 # FIXME: To remove some day.
1352 if test "x$host_alias" != x
; then
1353 if test "x$build_alias" = x
; then
1354 cross_compiling
=maybe
1355 elif test "x$build_alias" != "x$host_alias"; then
1361 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1363 test "$silent" = yes && exec 6>/dev
/null
1366 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1367 ac_ls_di
=`ls -di .` &&
1368 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1369 as_fn_error $?
"working directory cannot be determined"
1370 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1371 as_fn_error $?
"pwd does not report name of working directory"
1374 # Find the source files, if location was not specified.
1375 if test -z "$srcdir"; then
1376 ac_srcdir_defaulted
=yes
1377 # Try the directory containing this script, then the parent directory.
1378 ac_confdir
=`$as_dirname -- "$as_myself" ||
1379 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1380 X"$as_myself" : 'X\(//\)[^/]' \| \
1381 X"$as_myself" : 'X\(//\)$' \| \
1382 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1383 $as_echo X"$as_myself" |
1384 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1402 if test ! -r "$srcdir/$ac_unique_file"; then
1406 ac_srcdir_defaulted
=no
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1409 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1410 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1412 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1414 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1416 # When building in place, set srcdir=.
1417 if test "$ac_abs_confdir" = "$ac_pwd"; then
1420 # Remove unnecessary trailing slashes from srcdir.
1421 # Double slashes in file names in object file debugging info
1422 # mess up M-x gdb in Emacs.
1424 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1428 as_fn_error $?
"path to source, $srcdir, contains spaces"
1431 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1433 for ac_var
in $ac_precious_vars; do
1434 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1435 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1436 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1437 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1441 # Report the --help message.
1443 if test "$ac_init_help" = "long"; then
1444 # Omit some internal or obsolete options to make the list less imposing.
1445 # This message is too long to be a string in the A/UX 3.1 sh.
1447 \`configure' configures this package to adapt to many kinds of systems.
1449 Usage: $0 [OPTION]... [VAR=VALUE]...
1451 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1452 VAR=VALUE. See below for descriptions of some of the useful variables.
1454 Defaults for the options are specified in brackets.
1457 -h, --help display this help and exit
1458 --help=short display options specific to this package
1459 --help=recursive display the short help of all the included packages
1460 -V, --version display version information and exit
1461 -q, --quiet, --silent do not print \`checking ...' messages
1462 --cache-file=FILE cache test results in FILE [disabled]
1463 -C, --config-cache alias for \`--cache-file=config.cache'
1464 -n, --no-create do not create output files
1465 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1467 Installation directories:
1468 --prefix=PREFIX install architecture-independent files in PREFIX
1469 [$ac_default_prefix]
1470 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1473 By default, \`make install' will install all the files in
1474 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1475 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1476 for instance \`--prefix=\$HOME'.
1478 For better control, use the options below.
1480 Fine tuning of the installation directories:
1481 --bindir=DIR user executables [EPREFIX/bin]
1482 --sbindir=DIR system admin executables [EPREFIX/sbin]
1483 --libexecdir=DIR program executables [EPREFIX/libexec]
1484 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1485 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1486 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1487 --libdir=DIR object code libraries [EPREFIX/lib]
1488 --includedir=DIR C header files [PREFIX/include]
1489 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1490 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1491 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1492 --infodir=DIR info documentation [DATAROOTDIR/info]
1493 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1494 --mandir=DIR man documentation [DATAROOTDIR/man]
1495 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1496 --htmldir=DIR html documentation [DOCDIR]
1497 --dvidir=DIR dvi documentation [DOCDIR]
1498 --pdfdir=DIR pdf documentation [DOCDIR]
1499 --psdir=DIR ps documentation [DOCDIR]
1505 --program-prefix=PREFIX prepend PREFIX to installed program names
1506 --program-suffix=SUFFIX append SUFFIX to installed program names
1507 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1510 --build=BUILD configure
for building on BUILD
[guessed
]
1511 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1512 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1516 if test -n "$ac_init_help"; then
1521 --disable-option-checking ignore unrecognized
--enable/--with options
1522 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1523 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1524 --enable-as-accelerator-for=ARG
1525 build as offload target compiler. Specify offload
1527 --enable-offload-targets=LIST
1528 enable offloading to devices from comma-separated
1529 LIST of TARGET
[=DIR
]. Use optional path to
find
1530 offload target compiler during the build
1531 --enable-offload-defaulted
1532 If enabled
, configured but not installed offload compilers and
1533 libgomp plugins are silently ignored. Useful
for distribution
1534 compilers where those are
in separate optional packages.
1536 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1537 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1538 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1539 Enable compressed debug sections
for gas
, gold or ld
1541 --disable-libquadmath do not build libquadmath directory
1542 --disable-libquadmath-support
1543 disable libquadmath support
for Fortran
1544 --enable-libada build libada directory
1545 --enable-libssp build libssp directory
1546 --disable-libstdcxx do not build libstdc
++-v3 directory
1547 --enable-bootstrap enable bootstrapping
[yes if native build
]
1548 --enable-pgo-build[=lto
]
1549 enable the PGO build
1550 --disable-isl-version-check
1551 disable check
for isl version
1552 --enable-lto enable link
time optimization support
1553 --enable-linker-plugin-configure-flags=FLAGS
1554 additional flags
for configuring linker plugins
1556 --enable-linker-plugin-flags=FLAGS
1557 additional flags
for configuring and building linker
1559 --enable-host-shared build
host code as shared libraries
1560 --enable-host-pie build
host code as PIE
1561 --enable-stage1-languages[=all
]
1562 choose additional languages to build during stage1.
1563 Mostly useful
for compiler development
1564 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1566 --enable-vtable-verify Enable vtable verification feature
1567 --enable-serial-[{host,target,build}-]configure
1568 force sequential configuration of sub-packages for
1569 the host, target or build machine, or all
1571 --enable-maintainer-mode
1572 enable make rules and dependencies not useful (and
1573 sometimes confusing) to the casual installer
1574 --enable-stage1-checking[=all]
1575 choose additional checking for stage1 of the
1577 --enable-werror enable -Werror in bootstrap stage2 and later
1580 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1581 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1582 --with-build-libsubdir=DIR Directory where to find libraries for build system
1583 --with-system-zlib use installed libz
1584 --with-mpc=PATH specify prefix directory for installed MPC package.
1585 Equivalent to --with-mpc-include=PATH/include plus
1586 --with-mpc-lib=PATH/lib
1587 --with-mpc-include=PATH specify directory for installed MPC include files
1588 --with-mpc-lib=PATH specify directory for the installed MPC library
1589 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1590 Equivalent to --with-mpfr-include=PATH/include plus
1591 --with-mpfr-lib=PATH/lib
1592 --with-mpfr-include=PATH
1593 specify directory for installed MPFR include files
1594 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1595 --with-gmp=PATH specify prefix directory for the installed GMP
1596 package. Equivalent to
1597 --with-gmp-include=PATH/include plus
1598 --with-gmp-lib=PATH/lib
1599 --with-gmp-include=PATH specify directory for installed GMP include files
1600 --with-gmp-lib=PATH specify directory for the installed GMP library
1601 --with-stage1-libs=LIBS libraries for stage1
1602 --with-static-standard-libraries
1603 use -static-libstdc++ and -static-libgcc
1605 --with-stage1-ldflags=FLAGS
1606 linker flags for stage1
1607 --with-boot-libs=LIBS libraries for stage2 and later
1608 --with-boot-ldflags=FLAGS
1609 linker flags for stage2 and later
1610 --with-isl=PATH Specify prefix directory for the installed isl
1611 package. Equivalent to
1612 --with-isl-include=PATH/include plus
1613 --with-isl-lib=PATH/lib
1614 --with-isl-include=PATH Specify directory for installed isl include files
1615 --with-isl-lib=PATH Specify the directory for the installed isl library
1616 --with-target-bdw-gc=PATHLIST
1617 specify prefix directory for installed bdw-gc
1618 package. Equivalent to
1619 --with-target-bdw-gc-include=PATH/include plus
1620 --with-target-bdw-gc-lib=PATH/lib
1621 --with-target-bdw-gc-include=PATHLIST
1622 specify directories for installed bdw-gc include
1624 --with-target-bdw-gc-lib=PATHLIST
1625 specify directories for installed bdw-gc library
1626 --with-gcc-major-version-only
1627 use only GCC major number in filesystem paths
1628 --with-build-sysroot=SYSROOT
1629 use sysroot as the system root during the build
1630 --with-debug-prefix-map='A
=B C
=D ...
'
1631 map A to B, C to D ... in debug information
1632 --with-build-config='NAME NAME2...
'
1633 use config/NAME.mk build configuration
1634 --with-build-time-tools=PATH
1635 use given path to find target tools during the build
1637 Some influential environment variables:
1638 CC C compiler command
1639 CFLAGS C compiler flags
1640 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1641 nonstandard directory <lib dir>
1642 LIBS libraries to pass to the linker, e.g. -l<library>
1643 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1644 you have headers in a nonstandard directory <include dir>
1645 CXX C++ compiler command
1646 CXXFLAGS C++ compiler flags
1648 additional configure arguments for build directories
1650 additional configure arguments for host directories
1652 additional configure arguments for target directories
1655 DLLTOOL DLLTOOL for the host
1656 DSYMUTIL DSYMUTIL for the host
1658 LIPO LIPO for the host
1660 RANLIB RANLIB for the host
1661 STRIP STRIP for the host
1662 WINDRES WINDRES for the host
1663 WINDMC WINDMC for the host
1664 OBJCOPY OBJCOPY for the host
1665 OBJDUMP OBJDUMP for the host
1666 OTOOL OTOOL for the host
1667 READELF READELF for the host
1675 GFORTRAN for the target
1685 DLLTOOL for the target
1687 DSYMUTIL for the target
1695 OBJCOPY for the target
1697 OBJDUMP for the target
1699 OTOOL for the target
1701 RANLIB for the target
1703 READELF for the target
1705 STRIP for the target
1707 WINDRES for the target
1709 WINDMC for the target
1711 Use these variables to override the choices made by `configure' or to
help
1712 it to
find libraries and programs with nonstandard names
/locations.
1714 Report bugs to the package provider.
1719 if test "$ac_init_help" = "recursive"; then
1720 # If there are subdirs, report their specific --help.
1721 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1722 test -d "$ac_dir" ||
1723 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1728 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1730 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1731 # A ".." for each directory in $ac_dir_suffix.
1732 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1733 case $ac_top_builddir_sub in
1734 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1735 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1738 ac_abs_top_builddir
=$ac_pwd
1739 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1740 # for backward compatibility:
1741 ac_top_builddir
=$ac_top_build_prefix
1744 .
) # We are building in place.
1746 ac_top_srcdir
=$ac_top_builddir_sub
1747 ac_abs_top_srcdir
=$ac_pwd ;;
1748 [\\/]* | ?
:[\\/]* ) # Absolute name.
1749 ac_srcdir
=$srcdir$ac_dir_suffix;
1750 ac_top_srcdir
=$srcdir
1751 ac_abs_top_srcdir
=$srcdir ;;
1753 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1754 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1755 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1757 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1759 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1760 # Check for guested configure.
1761 if test -f "$ac_srcdir/configure.gnu"; then
1763 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1764 elif test -f "$ac_srcdir/configure"; then
1766 $SHELL "$ac_srcdir/configure" --help=recursive
1768 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1770 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1774 test -n "$ac_init_help" && exit $ac_status
1775 if $ac_init_version; then
1778 generated by GNU Autoconf
2.69
1780 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1781 This configure
script is free software
; the Free Software Foundation
1782 gives unlimited permission to copy
, distribute and modify it.
1787 ## ------------------------ ##
1788 ## Autoconf initialization. ##
1789 ## ------------------------ ##
1791 # ac_fn_c_try_compile LINENO
1792 # --------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_compile
()
1796 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1797 rm -f conftest.
$ac_objext
1798 if { { ac_try
="$ac_compile"
1800 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.$ac_objext; then :
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1827 } # ac_fn_c_try_compile
1829 # ac_fn_cxx_try_compile LINENO
1830 # ----------------------------
1831 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_cxx_try_compile ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext
1836 if { { ac_try="$ac_compile"
1838 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1839 *) ac_try_echo
=$ac_try;;
1841 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_compile") 2>conftest.err
1845 if test -s conftest.err
; then
1846 grep -v '^ *+' conftest.err
>conftest.er1
1847 cat conftest.er1
>&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_cxx_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest.
$ac_objext; then :
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.
$ac_ext >&5
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 as_fn_set_status
$ac_retval
1865 } # ac_fn_cxx_try_compile
1867 # ac_fn_cxx_try_link LINENO
1868 # -------------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_cxx_try_link
()
1872 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1873 rm -f conftest.
$ac_objext conftest
$ac_exeext
1874 if { { ac_try
="$ac_link"
1876 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>conftest.err
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_cxx_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest$ac_exeext && {
1893 test "$cross_compiling" = yes ||
1894 test -x conftest$ac_exeext
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1903 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905 # interfere with the next link command; also delete a directory that is
1906 # left behind by Apple's compiler. We do this before executing the actions.
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
1911 } # ac_fn_cxx_try_link
1913 # ac_fn_c_try_link LINENO
1914 # -----------------------
1915 # Try to link conftest.$ac_ext, and return whether this succeeded.
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 rm -f conftest.$ac_objext conftest$ac_exeext
1920 if { { ac_try="$ac_link"
1922 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1923 *) ac_try_echo
=$ac_try;;
1925 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927 (eval "$ac_link") 2>conftest.err
1929 if test -s conftest.err
; then
1930 grep -v '^ *+' conftest.err
>conftest.er1
1931 cat conftest.er1
>&5
1932 mv -f conftest.er1 conftest.err
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } && {
1936 test -z "$ac_c_werror_flag" ||
1937 test ! -s conftest.err
1938 } && test -s conftest
$ac_exeext && {
1939 test "$cross_compiling" = yes ||
1940 test -x conftest
$ac_exeext
1944 $as_echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.
$ac_ext >&5
1949 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1950 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1951 # interfere with the next link command; also delete a directory that is
1952 # left behind by Apple's compiler. We do this before executing the actions.
1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 as_fn_set_status
$ac_retval
1957 } # ac_fn_c_try_link
1958 cat >config.log
<<_ACEOF
1959 This file contains any messages produced by compilers while
1960 running configure, to aid debugging if configure makes a mistake.
1962 It was created by $as_me, which was
1963 generated by GNU Autoconf 2.69. Invocation command line was
1975 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1976 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1977 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1978 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1979 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1981 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1982 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1984 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1985 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1986 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1987 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1988 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1989 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1990 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1994 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1998 test -z "$as_dir" && as_dir
=.
1999 $as_echo "PATH: $as_dir"
2015 # Keep a trace of the command line.
2016 # Strip out --no-create and --no-recursion so they do not pile up.
2017 # Strip out --silent because we don't want to record it for future runs.
2018 # Also quote any args containing shell meta-characters.
2019 # Make two passes to allow for proper duplicate-argument suppression.
2023 ac_must_keep_next
=false
2029 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2030 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2031 |
-silent |
--silent |
--silen |
--sile |
--sil)
2034 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2037 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2039 as_fn_append ac_configure_args1
" '$ac_arg'"
2040 if test $ac_must_keep_next = true
; then
2041 ac_must_keep_next
=false
# Got value, back to normal.
2044 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2045 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2046 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2047 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2048 case "$ac_configure_args0 " in
2049 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2052 -* ) ac_must_keep_next
=true
;;
2055 as_fn_append ac_configure_args
" '$ac_arg'"
2060 { ac_configure_args0
=; unset ac_configure_args0
;}
2061 { ac_configure_args1
=; unset ac_configure_args1
;}
2063 # When interrupted or exit'd, cleanup temporary files, and complete
2064 # config.log. We remove comments because anyway the quotes in there
2065 # would cause problems or look ugly.
2066 # WARNING: Use '\'' to represent an apostrophe within the trap.
2067 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2068 trap 'exit_status=$?
2069 # Save into config.log some information that might help in debugging.
2073 $as_echo "## ---------------- ##
2074 ## Cache variables. ##
2075 ## ---------------- ##"
2077 # The following way of writing the cache mishandles newlines in values,
2079 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2080 eval ac_val=\$$ac_var
2084 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2085 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2088 _ | IFS | as_nl) ;; #(
2089 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2090 *) { eval $ac_var=; unset $ac_var;} ;;
2095 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2096 *${as_nl}ac_space=\ *)
2098 "s/'\''/'\''\\\\'\'''\''/g;
2099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2102 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2109 $as_echo "## ----------------- ##
2110 ## Output variables. ##
2111 ## ----------------- ##"
2113 for ac_var in $ac_subst_vars
2115 eval ac_val=\$$ac_var
2117 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119 $as_echo "$ac_var='\''$ac_val'\''"
2123 if test -n "$ac_subst_files"; then
2124 $as_echo "## ------------------- ##
2125 ## File substitutions. ##
2126 ## ------------------- ##"
2128 for ac_var
in $ac_subst_files
2130 eval ac_val
=\$
$ac_var
2132 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2134 $as_echo "$ac_var='\''$ac_val'\''"
2139 if test -s confdefs.h; then
2140 $as_echo "## ----------- ##
2147 test "$ac_signal" != 0 &&
2148 $as_echo "$as_me: caught signal $ac_signal"
2149 $as_echo "$as_me: exit $exit_status"
2151 rm -f core *.core core.conftest.* &&
2152 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2155 for ac_signal
in 1 2 13 15; do
2156 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2160 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2161 rm -f -r conftest
* confdefs.h
2163 $as_echo "/* confdefs.h */" > confdefs.h
2165 # Predefined preprocessor variables.
2167 cat >>confdefs.h
<<_ACEOF
2168 #define PACKAGE_NAME "$PACKAGE_NAME"
2171 cat >>confdefs.h
<<_ACEOF
2172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2175 cat >>confdefs.h
<<_ACEOF
2176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2179 cat >>confdefs.h
<<_ACEOF
2180 #define PACKAGE_STRING "$PACKAGE_STRING"
2183 cat >>confdefs.h
<<_ACEOF
2184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2187 cat >>confdefs.h
<<_ACEOF
2188 #define PACKAGE_URL "$PACKAGE_URL"
2192 # Let the site file select an alternate cache file if it wants to.
2193 # Prefer an explicitly selected file to automatically selected ones.
2196 if test -n "$CONFIG_SITE"; then
2197 # We do not want a PATH search for config.site.
2198 case $CONFIG_SITE in #((
2199 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2200 */*) ac_site_file1
=$CONFIG_SITE;;
2201 *) ac_site_file1
=.
/$CONFIG_SITE;;
2203 elif test "x$prefix" != xNONE
; then
2204 ac_site_file1
=$prefix/share
/config.site
2205 ac_site_file2
=$prefix/etc
/config.site
2207 ac_site_file1
=$ac_default_prefix/share
/config.site
2208 ac_site_file2
=$ac_default_prefix/etc
/config.site
2210 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2212 test "x$ac_site_file" = xNONE
&& continue
2213 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2215 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2216 sed 's/^/| /' "$ac_site_file" >&5
2218 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2220 as_fn_error $?
"failed to load site script $ac_site_file
2221 See \`config.log' for more details" "$LINENO" 5; }
2225 if test -r "$cache_file"; then
2226 # Some versions of bash will fail to source /dev/null (special files
2227 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2228 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2230 $as_echo "$as_me: loading cache $cache_file" >&6;}
2232 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2233 *) .
"./$cache_file";;
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2238 $as_echo "$as_me: creating cache $cache_file" >&6;}
2242 # Check that the precious variables saved in the cache have kept the same
2244 ac_cache_corrupted
=false
2245 for ac_var
in $ac_precious_vars; do
2246 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2247 eval ac_new_set
=\
$ac_env_${ac_var}_set
2248 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2249 eval ac_new_val
=\
$ac_env_${ac_var}_value
2250 case $ac_old_set,$ac_new_set in
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2253 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2254 ac_cache_corrupted
=: ;;
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2258 ac_cache_corrupted
=: ;;
2261 if test "x$ac_old_val" != "x$ac_new_val"; then
2262 # differences in whitespace do not lead to failure.
2263 ac_old_val_w
=`echo x $ac_old_val`
2264 ac_new_val_w
=`echo x $ac_new_val`
2265 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2267 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2268 ac_cache_corrupted
=:
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2271 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2272 eval $ac_var=\
$ac_old_val
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2275 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2277 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2280 # Pass precious variables to config.status.
2281 if test "$ac_new_set" = set; then
2283 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2284 *) ac_arg
=$ac_var=$ac_new_val ;;
2286 case " $ac_configure_args " in
2287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2288 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2292 if $ac_cache_corrupted; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2296 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2297 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2299 ## -------------------- ##
2300 ## Main body of script. ##
2301 ## -------------------- ##
2304 ac_cpp
='$CPP $CPPFLAGS'
2305 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2317 # if PWD already has a value, it is probably wrong.
2318 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2320 # Export original configure arguments for use by sub-configures.
2321 # Quote arguments with shell meta charatcers.
2322 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2323 set -- "$progname" "$@"
2327 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2328 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2329 # if the argument is of the form -foo=baz, quote the baz part only
2330 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2333 # Add the quoted argument to the list.
2334 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2336 if test "$silent" = yes; then
2337 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2339 # Remove the initial space we just introduced and, as these will be
2340 # expanded by make, quote '$'.
2341 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2344 # Find the build, host, and target systems.
2346 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2347 if test -f "$ac_dir/install-sh"; then
2349 ac_install_sh
="$ac_aux_dir/install-sh -c"
2351 elif test -f "$ac_dir/install.sh"; then
2353 ac_install_sh
="$ac_aux_dir/install.sh -c"
2355 elif test -f "$ac_dir/shtool"; then
2357 ac_install_sh
="$ac_aux_dir/shtool install -c"
2361 if test -z "$ac_aux_dir"; then
2362 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2365 # These three variables are undocumented and unsupported,
2366 # and are intended to be withdrawn in a future Autoconf release.
2367 # They can cause serious problems if a builder's source tree is in a directory
2368 # whose full name contains unusual characters.
2369 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2370 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2371 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2374 # Make sure we can run config.sub.
2375 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2376 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2379 $as_echo_n "checking build system type... " >&6; }
2380 if ${ac_cv_build+:} false
; then :
2381 $as_echo_n "(cached) " >&6
2383 ac_build_alias
=$build_alias
2384 test "x$ac_build_alias" = x
&&
2385 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2386 test "x$ac_build_alias" = x
&&
2387 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2388 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2389 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2393 $as_echo "$ac_cv_build" >&6; }
2394 case $ac_cv_build in
2396 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2399 ac_save_IFS
=$IFS; IFS
='-'
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2409 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2412 case ${build_alias} in
2413 "") build_noncanonical
=${build} ;;
2414 *) build_noncanonical
=${build_alias} ;;
2419 case ${host_alias} in
2420 "") host_noncanonical
=${build_noncanonical} ;;
2421 *) host_noncanonical
=${host_alias} ;;
2426 case ${target_alias} in
2427 "") target_noncanonical
=${host_noncanonical} ;;
2428 *) target_noncanonical
=${target_alias} ;;
2434 test "$host_noncanonical" = "$target_noncanonical" &&
2435 test "$program_prefix$program_suffix$program_transform_name" = \
2437 program_transform_name
=s
,y
,y
,
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2440 $as_echo_n "checking host system type... " >&6; }
2441 if ${ac_cv_host+:} false
; then :
2442 $as_echo_n "(cached) " >&6
2444 if test "x$host_alias" = x
; then
2445 ac_cv_host
=$ac_cv_build
2447 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2448 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2453 $as_echo "$ac_cv_host" >&6; }
2456 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2459 ac_save_IFS
=$IFS; IFS
='-'
2465 # Remember, the first character of IFS is used to create $*,
2466 # except with old shells:
2469 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2473 $as_echo_n "checking target system type... " >&6; }
2474 if ${ac_cv_target+:} false
; then :
2475 $as_echo_n "(cached) " >&6
2477 if test "x$target_alias" = x
; then
2478 ac_cv_target
=$ac_cv_host
2480 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2481 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2486 $as_echo "$ac_cv_target" >&6; }
2487 case $ac_cv_target in
2489 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2491 target
=$ac_cv_target
2492 ac_save_IFS
=$IFS; IFS
='-'
2498 # Remember, the first character of IFS is used to create $*,
2499 # except with old shells:
2502 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2505 # The aliases save the names the user supplied, while $host etc.
2506 # will get canonicalized.
2507 test -n "$target_alias" &&
2508 test "$program_prefix$program_suffix$program_transform_name" = \
2510 program_prefix
=${target_alias}-
2512 test "$program_prefix" != NONE
&&
2513 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2514 # Use a double $ so make ignores it.
2515 test "$program_suffix" != NONE
&&
2516 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2517 # Double any \ or $.
2518 # By default was `s,x,x', remove it if useless.
2519 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2520 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2524 # Get 'install' or 'install-sh' and its variants.
2525 # Find a good install program. We prefer a C program (faster),
2526 # so one script is as good as another. But avoid the broken or
2527 # incompatible versions:
2528 # SysV /etc/install, /usr/sbin/install
2529 # SunOS /usr/etc/install
2530 # IRIX /sbin/install
2532 # AmigaOS /C/install, which installs bootblocks on floppy discs
2533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2536 # OS/2's system install, which has a completely different semantic
2537 # ./install, which can be erroneously created by make from ./install.sh.
2538 # Reject install programs that cannot install multiple files.
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2540 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2541 if test -z "$INSTALL"; then
2542 if ${ac_cv_path_install+:} false
; then :
2543 $as_echo_n "(cached) " >&6
2545 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2549 test -z "$as_dir" && as_dir
=.
2550 # Account for people who put trailing slashes in PATH elements.
2551 case $as_dir/ in #((
2552 .
/ | .
// |
/[cC
]/* | \
2553 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2554 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2557 # OSF1 and SCO ODT 3.0 have their own names for install.
2558 # Don't use installbsd from OSF since it installs stuff as root
2560 for ac_prog
in ginstall scoinst
install; do
2561 for ac_exec_ext
in '' $ac_executable_extensions; do
2562 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2563 if test $ac_prog = install &&
2564 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2565 # AIX install. It has an incompatible calling convention.
2567 elif test $ac_prog = install &&
2568 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2569 # program-specific install script used by HP pwplus--don't use.
2572 rm -rf conftest.one conftest.two conftest.dir
2573 echo one
> conftest.one
2574 echo two
> conftest.two
2576 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2577 test -s conftest.one
&& test -s conftest.two
&&
2578 test -s conftest.dir
/conftest.one
&&
2579 test -s conftest.dir
/conftest.two
2581 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2594 rm -rf conftest.one conftest.two conftest.dir
2597 if test "${ac_cv_path_install+set}" = set; then
2598 INSTALL
=$ac_cv_path_install
2600 # As a last resort, use the slow shell script. Don't cache a
2601 # value for INSTALL within a source directory, because that will
2602 # break other packages using the cache if that directory is
2603 # removed, or if the value is a relative name.
2604 INSTALL
=$ac_install_sh
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2608 $as_echo "$INSTALL" >&6; }
2610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2611 # It thinks the first close brace ends the variable substitution.
2612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2616 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2619 $as_echo_n "checking whether ln works... " >&6; }
2620 if ${acx_cv_prog_LN+:} false
; then :
2621 $as_echo_n "(cached) " >&6
2623 rm -f conftestdata_t
2624 echo >conftestdata_f
2625 if ln conftestdata_f conftestdata_t
2>/dev
/null
2631 rm -f conftestdata_f conftestdata_t
2634 if test $acx_cv_prog_LN = no
; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2637 $as_echo "no, using $LN" >&6; }
2639 LN
="$acx_cv_prog_LN"
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2641 $as_echo "yes" >&6; }
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2645 $as_echo_n "checking whether ln -s works... " >&6; }
2647 if test "$LN_S" = "ln -s"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649 $as_echo "yes" >&6; }
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2652 $as_echo "no, using $LN_S" >&6; }
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2656 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2657 if ${ac_cv_path_SED+:} false
; then :
2658 $as_echo_n "(cached) " >&6
2660 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2661 for ac_i
in 1 2 3 4 5 6 7; do
2662 ac_script
="$ac_script$as_nl$ac_script"
2664 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2665 { ac_script
=; unset ac_script
;}
2666 if test -z "$SED"; then
2667 ac_path_SED_found
=false
2668 # Loop through the user's path and test for each of PROGNAME-LIST
2669 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir
=.
2674 for ac_prog
in sed gsed
; do
2675 for ac_exec_ext
in '' $ac_executable_extensions; do
2676 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2677 as_fn_executable_p
"$ac_path_SED" ||
continue
2678 # Check for GNU ac_path_SED and select it if it is found.
2679 # Check for GNU $ac_path_SED
2680 case `"$ac_path_SED" --version 2>&1` in
2682 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2685 $as_echo_n 0123456789 >"conftest.in"
2688 cat "conftest.in" "conftest.in" >"conftest.tmp"
2689 mv "conftest.tmp" "conftest.in"
2690 cp "conftest.in" "conftest.nl"
2691 $as_echo '' >> "conftest.nl"
2692 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2693 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2694 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2695 if test $ac_count -gt ${ac_path_SED_max-0}; then
2696 # Best one so far, save it but keep looking for a better one
2697 ac_cv_path_SED
="$ac_path_SED"
2698 ac_path_SED_max
=$ac_count
2700 # 10*(2^10) chars as input seems more than enough
2701 test $ac_count -gt 10 && break
2703 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2706 $ac_path_SED_found && break 3
2711 if test -z "$ac_cv_path_SED"; then
2712 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2720 $as_echo "$ac_cv_path_SED" >&6; }
2721 SED
="$ac_cv_path_SED"
2724 for ac_prog
in gawk mawk nawk
awk
2726 # Extract the first word of "$ac_prog", so it can be a program name with args.
2727 set dummy
$ac_prog; ac_word
=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if ${ac_cv_prog_AWK+:} false
; then :
2731 $as_echo_n "(cached) " >&6
2733 if test -n "$AWK"; then
2734 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2740 test -z "$as_dir" && as_dir
=.
2741 for ac_exec_ext
in '' $ac_executable_extensions; do
2742 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_AWK
="$ac_prog"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 if test -n "$AWK"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2756 $as_echo "$AWK" >&6; }
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2763 test -n "$AWK" && break
2767 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2769 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2771 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2772 INSTALL
="${srcpwd}/install-sh -c"
2775 # Set srcdir to "." if that's what it is.
2776 # This is important for multilib support.
2778 if test "${pwd}" = "${srcpwd}" ; then
2786 ### To add a new directory to the tree, first choose whether it is a target
2787 ### or a host dependent tool. Then put it into the appropriate list
2788 ### (library or tools, host or target), doing a dependency sort.
2790 # Subdirs will be configured in the order listed in build_configdirs,
2791 # configdirs, or target_configdirs; see the serialization section below.
2793 # Dependency sorting is only needed when *configuration* must be done in
2794 # a particular order. In all cases a dependency should be specified in
2795 # the Makefile, whether or not it's implicitly specified here.
2797 # Double entries in build_configdirs, configdirs, or target_configdirs may
2798 # cause circular dependencies and break everything horribly.
2800 # these library is used by various programs built for the build
2803 build_libs
="build-libiberty build-libcpp"
2805 # these tools are built for the build environment
2806 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2808 # these libraries are used by various programs built for the host environment
2810 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf"
2812 # these tools are built for the host environment
2813 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2814 # know that we are building the simulator.
2815 # binutils, gas and ld appear in that order because it makes sense to run
2816 # "make check" in that particular order.
2817 # If --enable-gold is used, "gold" may replace "ld".
2818 host_tools
="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
2820 # these libraries are built for the target environment, and are built after
2821 # the host libraries and the host tools (which may be a cross compiler)
2822 # Note that libiberty is not a target library.
2823 target_libraries
="target-libgcc \
2824 target-libbacktrace \
2830 target-libstdc++-v3 \
2831 target-libsanitizer \
2834 target-libquadmath \
2835 target-libgfortran \
2843 # these tools are built using the target libraries, and are intended to
2844 # run only in the target environment
2846 # note: any program that *uses* libraries that are in the "target_libraries"
2847 # list belongs in this list.
2849 target_tools
="target-rda"
2851 ################################################################################
2853 ## All tools belong in one of the four categories, and are assigned above
2854 ## We assign ${configdirs} this way to remove all embedded newlines. This
2855 ## is important because configure will choke if they ever get through.
2856 ## ${configdirs} is directories we build using the host tools.
2857 ## ${target_configdirs} is directories we build using the target tools.
2858 configdirs
=`echo ${host_libs} ${host_tools}`
2859 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2860 build_configdirs
=`echo ${build_libs} ${build_tools}`
2864 ################################################################################
2866 srcname
="gnu development package"
2868 # This gets set non-empty for some net releases of packages.
2871 # Define is_cross_compiler to save on calls to 'test'.
2873 if test x
"${host}" = x
"${target}" ; then
2874 is_cross_compiler
=no
2876 is_cross_compiler
=yes
2879 # Find the build and target subdir names.
2881 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2882 # have matching libraries, they should use host libraries: Makefile.tpl
2883 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2884 # However, they still use the build modules, because the corresponding
2885 # host modules (e.g. bison) are only built for the host when bootstrap
2887 # - build_subdir is where we find build modules, and never changes.
2888 # - build_libsubdir is where we find build libraries, and can be overridden.
2890 # Prefix 'build-' so this never conflicts with target_subdir.
2891 build_subdir
="build-${build_noncanonical}"
2893 # Check whether --with-build-libsubdir was given.
2894 if test "${with_build_libsubdir+set}" = set; then :
2895 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2897 build_libsubdir
="$build_subdir"
2900 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2901 if ( test $srcdir = .
&& test -d gcc
) \
2902 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2903 host_subdir
="host-${host_noncanonical}"
2908 target_subdir
=${target_noncanonical}
2910 # Be sure to cover against remnants of an in-tree build.
2911 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2912 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2913 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2916 # Skipdirs are removed silently.
2918 # Noconfigdirs are removed loudly.
2922 # Make sure we don't let GNU ld be added if we didn't want it.
2923 if test x
$with_gnu_ld = xno
; then
2925 noconfigdirs
="$noconfigdirs ld gold"
2929 # Make sure we don't let GNU as be added if we didn't want it.
2930 if test x
$with_gnu_as = xno
; then
2932 noconfigdirs
="$noconfigdirs gas"
2937 # Check whether --with-system-zlib was given.
2938 if test "${with_system_zlib+set}" = set; then :
2939 withval
=$with_system_zlib;
2942 # Make sure we don't let ZLIB be added if we didn't want it.
2943 if test x
$with_system_zlib = xyes
; then
2944 use_included_zlib
=no
2945 noconfigdirs
="$noconfigdirs zlib"
2948 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2950 if test x
$with_system_readline = xyes
; then
2951 noconfigdirs
="$noconfigdirs readline"
2954 # some tools are so dependent upon X11 that if we're not building with X,
2955 # it's not even worth trying to configure, much less build, that tool.
2958 yes |
"") ;; # the default value for this tree is that X11 is available
2960 skipdirs
="${skipdirs} tk itcl libgui"
2961 # We won't be able to build gdbtk without X.
2964 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2967 # Some are only suitable for cross toolchains.
2968 # Remove these if host=target.
2969 cross_only
="target-libgloss target-newlib target-opcodes"
2971 case $is_cross_compiler in
2972 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2975 # If both --with-headers and --with-libs are specified, default to
2977 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2978 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2979 if test x
"${with_newlib}" = x
; then
2984 # Recognize --with-newlib/--without-newlib.
2985 case ${with_newlib} in
2986 no
) skipdirs
="${skipdirs} target-newlib" ;;
2987 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2990 # Check whether --enable-as-accelerator-for was given.
2991 if test "${enable_as_accelerator_for+set}" = set; then :
2992 enableval
=$enable_as_accelerator_for;
2996 # Check whether --enable-offload-targets was given.
2997 if test "${enable_offload_targets+set}" = set; then :
2998 enableval
=$enable_offload_targets;
2999 if test x
"$enable_offload_targets" = x
; then
3000 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3004 enable_offload_targets
=
3008 # Check whether --enable-offload-defaulted was given.
3009 if test "${enable_offload_defaulted+set}" = set; then :
3010 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3012 enable_offload_defaulted
=
3016 # Handle --enable-gold, --enable-ld.
3017 # --disable-gold [--enable-ld]
3018 # Build only ld. Default option.
3019 # --enable-gold [--enable-ld]
3020 # Build both gold and ld. Install gold as "ld.gold", install ld
3021 # as "ld.bfd" and "ld".
3022 # --enable-gold=default [--enable-ld]
3023 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3024 # install ld as "ld.bfd".
3025 # --enable-gold[=default] --disable-ld
3026 # Build only gold, which is then installed as both "ld.gold" and "ld".
3027 # --enable-gold --enable-ld=default
3028 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3030 # In other words, ld is default
3031 # --enable-gold=default --enable-ld=default
3035 # Check whether --enable-gold was given.
3036 if test "${enable_gold+set}" = set; then :
3037 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3042 case "${ENABLE_GOLD}" in
3044 # Check for ELF target.
3047 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3048 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3049 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3050 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3052 *-*-linux*aout
* |
*-*-linux*oldld
*)
3060 if test "$is_elf" = "yes"; then
3061 # Check for target supported by gold.
3063 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3064 | aarch64
*-*-* | mips
*-*-* | s390
*-*-* | loongarch
*-*-*)
3065 configdirs
="$configdirs gold"
3066 if test x
${ENABLE_GOLD} = xdefault
; then
3077 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3081 # Check whether --enable-ld was given.
3082 if test "${enable_ld+set}" = set; then :
3083 enableval
=$enable_ld; ENABLE_LD
=$enableval
3089 case "${ENABLE_LD}" in
3091 if test x
${default_ld} != x
; then
3092 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3098 if test x
${ENABLE_GOLD} != xyes
; then
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3100 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3102 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3105 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3110 # Decide the default method for compressing debug sections.
3111 # Provide a configure time option to override our default.
3112 # Check whether --enable-compressed_debug_sections was given.
3113 if test "${enable_compressed_debug_sections+set}" = set; then :
3114 enableval
=$enable_compressed_debug_sections;
3115 if test x
"$enable_compressed_debug_sections" = xyes
; then
3116 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3120 enable_compressed_debug_sections
=
3124 # Configure extra directories which are host specific
3128 configdirs
="$configdirs libtermcap" ;;
3131 # A target can indicate whether a language isn't supported for some reason.
3132 # Only spaces may be used in this macro; not newlines or tabs.
3133 unsupported_languages
=
3135 # Remove more programs from consideration, based on the host or
3136 # target this usually means that a port of the program doesn't
3140 i
[3456789]86-*-msdosdjgpp*)
3141 noconfigdirs
="$noconfigdirs tcl tk itcl"
3146 # Check whether --enable-libquadmath was given.
3147 if test "${enable_libquadmath+set}" = set; then :
3148 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3150 ENABLE_LIBQUADMATH
=yes
3153 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3154 noconfigdirs
="$noconfigdirs target-libquadmath"
3158 # Check whether --enable-libquadmath-support was given.
3159 if test "${enable_libquadmath_support+set}" = set; then :
3160 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3162 ENABLE_LIBQUADMATH_SUPPORT
=yes
3165 enable_libquadmath_support
=
3166 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3167 enable_libquadmath_support
=no
3171 # Check whether --enable-libada was given.
3172 if test "${enable_libada+set}" = set; then :
3173 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3178 if test "${ENABLE_LIBADA}" != "yes" ; then
3179 noconfigdirs
="$noconfigdirs gnattools"
3182 # Check whether --enable-libssp was given.
3183 if test "${enable_libssp+set}" = set; then :
3184 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3190 # Check whether --enable-libstdcxx was given.
3191 if test "${enable_libstdcxx+set}" = set; then :
3192 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3194 ENABLE_LIBSTDCXX
=default
3197 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3198 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3201 # Enable libgomp by default on hosted POSIX systems, and a few others.
3202 if test x
$enable_libgomp = x
; then
3204 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3206 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3208 *-*-solaris2* |
*-*-hpux11*)
3210 *-*-darwin* |
*-*-aix*)
3212 nvptx
*-*-* | amdgcn
*-*-*)
3215 noconfigdirs
="$noconfigdirs target-libgomp"
3220 # Disable libatomic on unsupported systems.
3221 if test -d ${srcdir}/libatomic
; then
3222 if test x
$enable_libatomic = x
; then
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3224 $as_echo_n "checking for libatomic support... " >&6; }
3225 if (srcdir
=${srcdir}/libatomic
; \
3226 .
${srcdir}/configure.tgt
; \
3227 test -n "$UNSUPPORTED")
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3231 noconfigdirs
="$noconfigdirs target-libatomic"
3233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3234 $as_echo "yes" >&6; }
3239 # Disable libitm on unsupported systems.
3240 if test -d ${srcdir}/libitm
; then
3241 if test x
$enable_libitm = x
; then
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3243 $as_echo_n "checking for libitm support... " >&6; }
3244 if (srcdir
=${srcdir}/libitm
; \
3245 .
${srcdir}/configure.tgt
; \
3246 test -n "$UNSUPPORTED")
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3249 $as_echo "no" >&6; }
3250 noconfigdirs
="$noconfigdirs target-libitm"
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3253 $as_echo "yes" >&6; }
3258 # Disable libsanitizer on unsupported systems.
3259 if test -d ${srcdir}/libsanitizer
; then
3260 if test x
$enable_libsanitizer = x
; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3262 $as_echo_n "checking for libsanitizer support... " >&6; }
3263 if (srcdir
=${srcdir}/libsanitizer
; \
3264 .
${srcdir}/configure.tgt
; \
3265 test -n "$UNSUPPORTED")
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3268 $as_echo "no" >&6; }
3269 noconfigdirs
="$noconfigdirs target-libsanitizer"
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3272 $as_echo "yes" >&6; }
3277 # Disable libvtv on unsupported systems.
3278 if test -d ${srcdir}/libvtv
; then
3279 if test x
$enable_libvtv = x
; then
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3281 $as_echo_n "checking for libvtv support... " >&6; }
3282 if (srcdir
=${srcdir}/libvtv
; \
3283 .
${srcdir}/configure.tgt
; \
3284 test "$VTV_SUPPORTED" != "yes")
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3287 $as_echo "no" >&6; }
3288 noconfigdirs
="$noconfigdirs target-libvtv"
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3291 $as_echo "yes" >&6; }
3296 # Disable libquadmath for some systems.
3299 noconfigdirs
="$noconfigdirs target-libquadmath"
3301 # libquadmath is unused on AIX and libquadmath build process use of
3302 # LD_LIBRARY_PATH can break AIX bootstrap.
3303 powerpc-
*-aix* | rs6000-
*-aix*)
3304 noconfigdirs
="$noconfigdirs target-libquadmath"
3308 # Disable libssp for some systems.
3311 # No hosted I/O support.
3312 noconfigdirs
="$noconfigdirs target-libssp"
3315 noconfigdirs
="$noconfigdirs target-libssp"
3317 powerpc-
*-aix* | rs6000-
*-aix*)
3318 noconfigdirs
="$noconfigdirs target-libssp"
3321 # No hosted I/O support.
3322 noconfigdirs
="$noconfigdirs target-libssp"
3325 # libssp uses a misaligned load to trigger a fault, but the RL78
3326 # doesn't fault for those - instead, it gives a build-time error
3327 # for explicit misaligned loads.
3328 noconfigdirs
="$noconfigdirs target-libssp"
3331 # No hosted I/O support.
3332 noconfigdirs
="$noconfigdirs target-libssp"
3336 # Disable libstdc++-v3 for some systems.
3337 # Allow user to override this if they pass --enable-libstdcxx
3338 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3341 # VxWorks uses the Dinkumware C++ library.
3342 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3345 # Not ported/fails to build when using newlib.
3346 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3349 # the C++ libraries don't build on top of CE's C libraries
3350 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3353 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3356 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3359 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3364 # Disable C++ on systems where it is known to not work.
3365 # For testing, you can override this with --enable-languages=c++.
3366 case ,${enable_languages}, in
3372 unsupported_languages
="$unsupported_languages c++"
3378 # Disable Objc on systems where it is known to not work.
3379 # For testing, you can override this with --enable-languages=objc.
3380 case ,${enable_languages}, in
3386 unsupported_languages
="$unsupported_languages objc"
3392 # Disable D on systems where it is known to not work.
3393 # For testing, you can override this with --enable-languages=d.
3394 case ,${enable_languages}, in
3400 unsupported_languages
="$unsupported_languages d"
3406 # Disable libphobos on unsupported systems.
3407 # For testing, you can override this with --enable-libphobos.
3408 if test -d ${srcdir}/libphobos
; then
3409 if test x
$enable_libphobos = x
; then
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3411 $as_echo_n "checking for libphobos support... " >&6; }
3412 if (srcdir
=${srcdir}/libphobos
; \
3413 .
${srcdir}/configure.tgt
; \
3414 test "$LIBPHOBOS_SUPPORTED" != "yes")
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3417 $as_echo "no" >&6; }
3418 noconfigdirs
="$noconfigdirs target-libphobos"
3420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3421 $as_echo "yes" >&6; }
3426 # Disable Fortran for some systems.
3429 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3430 unsupported_languages
="$unsupported_languages fortran"
3433 unsupported_languages
="$unsupported_languages fortran"
3437 # Disable libffi for some systems.
3441 i
[3456789]86-*-darwin*)
3443 x86_64-
*-darwin[912]*)
3446 noconfigdirs
="$noconfigdirs target-libffi"
3449 noconfigdirs
="$noconfigdirs target-libffi"
3452 noconfigdirs
="$noconfigdirs target-libffi"
3455 noconfigdirs
="$noconfigdirs target-libffi"
3458 noconfigdirs
="$noconfigdirs target-libffi"
3461 noconfigdirs
="$noconfigdirs target-libffi"
3464 noconfigdirs
="$noconfigdirs target-libffi"
3466 aarch64
*-*-freebsd*)
3467 noconfigdirs
="$noconfigdirs target-libffi"
3470 noconfigdirs
="$noconfigdirs target-libffi"
3473 noconfigdirs
="$noconfigdirs target-libffi"
3476 noconfigdirs
="$noconfigdirs target-libffi"
3479 noconfigdirs
="$noconfigdirs target-libffi"
3482 noconfigdirs
="$noconfigdirs target-libffi"
3484 cris-
*-* | crisv32-
*-*)
3488 *) # See PR46792 regarding target-libffi.
3489 noconfigdirs
="$noconfigdirs target-libffi";;
3493 noconfigdirs
="$noconfigdirs target-libffi"
3496 noconfigdirs
="$noconfigdirs target-libffi"
3498 i
[3456789]86-w64-mingw*)
3499 noconfigdirs
="$noconfigdirs target-libffi"
3501 i
[3456789]86-*-mingw*)
3502 noconfigdirs
="$noconfigdirs target-libffi"
3505 noconfigdirs
="$noconfigdirs target-libffi"
3508 noconfigdirs
="$noconfigdirs target-libffi"
3515 noconfigdirs
="$noconfigdirs target-libffi"
3518 noconfigdirs
="$noconfigdirs target-libffi"
3522 # Disable the go frontend on systems where it is known to not work. Please keep
3523 # this in sync with contrib/config-list.mk.
3525 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3526 unsupported_languages
="$unsupported_languages go"
3530 # Only allow gdbserver on some systems.
3531 if test -d ${srcdir}/gdbserver
; then
3532 if test x
$enable_gdbserver = x
; then
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3534 $as_echo_n "checking for gdbserver support... " >&6; }
3535 if (srcdir
=${srcdir}/gdbserver
; \
3536 .
${srcdir}/configure.srv
; \
3537 test -n "$UNSUPPORTED")
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3540 $as_echo "no" >&6; }
3541 noconfigdirs
="$noconfigdirs gdbserver"
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3544 $as_echo "yes" >&6; }
3549 # Disable libgo for some systems where it is known to not work.
3550 # For testing, you can easily override this with --enable-libgo.
3551 if test x
$enable_libgo = x
; then
3555 noconfigdirs
="$noconfigdirs target-libgo"
3557 *-*-cygwin* |
*-*-mingw*)
3558 noconfigdirs
="$noconfigdirs target-libgo"
3561 noconfigdirs
="$noconfigdirs target-libgo"
3566 # Default libgloss CPU subdirectory.
3567 libgloss_dir
="$target_cpu"
3570 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3574 libgloss_dir
=aarch64
3579 cris-
*-* | crisv32-
*-*)
3589 libgloss_dir
=loongarch
3591 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3592 libgloss_dir
=m68hc11
3594 m68
*-*-* | fido-
*-*)
3611 # Disable newlib and libgloss for various target OSes.
3614 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3616 i
[3456789]86-*-linux*)
3617 # This section makes it possible to build newlib natively on linux.
3618 # If we are using a cross compiler then don't configure newlib.
3619 if test x
${is_cross_compiler} != xno
; then
3620 noconfigdirs
="$noconfigdirs target-newlib"
3622 noconfigdirs
="$noconfigdirs target-libgloss"
3623 # If we are not using a cross compiler, do configure newlib.
3624 # Note however, that newlib will only be configured in this situation
3625 # if the --with-newlib option has been given, because otherwise
3626 # 'target-newlib' will appear in skipdirs.
3628 i
[3456789]86-*-rdos*)
3629 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3631 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3632 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3635 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3638 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3641 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3644 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3647 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3650 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3653 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3655 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3656 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3659 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3662 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3665 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3668 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3671 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3674 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3677 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3685 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3686 noconfigdirs
="$noconfigdirs sim target-rda"
3691 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3692 noconfigdirs
="$noconfigdirs sim target-rda"
3695 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3696 noconfigdirs
="$noconfigdirs sim target-rda"
3698 i
[3456789]86-*-darwin*)
3699 noconfigdirs
="$noconfigdirs ld gprof"
3700 noconfigdirs
="$noconfigdirs sim target-rda"
3702 x86_64-
*-darwin[912]*)
3703 noconfigdirs
="$noconfigdirs ld gas gprof"
3704 noconfigdirs
="$noconfigdirs sim target-rda"
3707 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3708 noconfigdirs
="$noconfigdirs sim target-rda"
3713 if test "x$with_gmp" = x \
3714 && ! test -d ${srcdir}/gmp \
3715 && test -f /usr
/local
/include
/gmp.h
; then
3720 # Remove unsupported stuff on all kaOS configurations.
3721 noconfigdirs
="$noconfigdirs target-libgloss"
3728 noconfigdirs
="$noconfigdirs target-libgloss"
3731 noconfigdirs
="$noconfigdirs target-libgloss"
3733 # The tpf target doesn't support gdb yet.
3735 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3738 noconfigdirs
="$noconfigdirs target-rda"
3743 # ld works, but does not support shared libraries.
3744 # gas doesn't generate exception information.
3745 noconfigdirs
="$noconfigdirs gas ld"
3748 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3751 # newlib is not 64 bit ready
3752 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3755 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3757 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3758 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3761 noconfigdirs
="$noconfigdirs sim"
3764 noconfigdirs
="$noconfigdirs target-libgloss"
3767 noconfigdirs
="$noconfigdirs ld target-libgloss"
3770 if test x
${with_avrlibc} != xno
; then
3771 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3774 c4x-
*-* | tic4x-
*-*)
3775 noconfigdirs
="$noconfigdirs target-libgloss"
3778 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3781 noconfigdirs
="$noconfigdirs target-libgloss"
3784 noconfigdirs
="$noconfigdirs gdb"
3787 noconfigdirs
="$noconfigdirs gdb"
3790 noconfigdirs
="$noconfigdirs target-rda gprof"
3793 noconfigdirs
="$noconfigdirs"
3796 noconfigdirs
="$noconfigdirs target-libgloss"
3799 noconfigdirs
="$noconfigdirs target-libgloss"
3802 noconfigdirs
="$noconfigdirs gdb"
3810 hppa
*-*-openbsd* | \
3816 noconfigdirs
="$noconfigdirs ld"
3819 noconfigdirs
="$noconfigdirs gdb"
3822 # No gdb support yet.
3823 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3826 # No ld support yet.
3827 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3830 # No ld support yet.
3831 noconfigdirs
="$noconfigdirs libgui itcl ld"
3833 i
[3456789]86-w64-mingw*)
3835 i
[3456789]86-*-mingw*)
3836 target_configdirs
="$target_configdirs target-winsup"
3839 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3840 noconfigdirs
="$noconfigdirs target-libgloss"
3841 # always build newlib if winsup directory is present.
3842 if test -d "$srcdir/winsup/cygwin"; then
3843 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3844 elif test -d "$srcdir/newlib"; then
3845 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3849 noconfigdirs
="$noconfigdirs target-libgloss"
3851 i
[3456789]86-*-sco3.2v5
*)
3852 # The linker does not yet know about weak symbols in COFF,
3853 # and is not configured to handle mixed ELF and COFF.
3854 noconfigdirs
="$noconfigdirs ld target-libgloss"
3856 i
[3456789]86-*-sco*)
3857 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3859 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3860 noconfigdirs
="$noconfigdirs target-libgloss"
3862 i
[3456789]86-*-sysv4*)
3863 noconfigdirs
="$noconfigdirs target-libgloss"
3865 i
[3456789]86-*-beos*)
3866 noconfigdirs
="$noconfigdirs gdb"
3868 i
[3456789]86-*-rdos*)
3869 noconfigdirs
="$noconfigdirs gdb"
3872 noconfigdirs
="$noconfigdirs gdb"
3875 noconfigdirs
="$noconfigdirs sim"
3878 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3879 noconfigdirs
="$noconfigdirs $target_libraries"
3882 noconfigdirs
="$noconfigdirs gdb gprof"
3885 # copied from rs6000-*-* entry
3886 noconfigdirs
="$noconfigdirs gprof"
3888 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3889 target_configdirs
="$target_configdirs target-winsup"
3890 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3891 # always build newlib.
3892 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3894 # This is temporary until we can link against shared libraries
3895 powerpcle-
*-solaris*)
3896 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3899 noconfigdirs
="$noconfigdirs gdb"
3902 noconfigdirs
="$noconfigdirs gprof"
3905 noconfigdirs
="$noconfigdirs gprof"
3908 noconfigdirs
="$noconfigdirs gprof"
3911 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
3914 noconfigdirs
="$noconfigdirs gprof"
3916 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
3917 if test x
$with_newlib = xyes
; then
3918 noconfigdirs
="$noconfigdirs gprof"
3922 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3925 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3928 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
3932 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
3933 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
3934 noconfigdirs
="$noconfigdirs ld gas gprof"
3937 noconfigdirs
="$noconfigdirs gprof"
3940 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3947 noconfigdirs
="$noconfigdirs target-libgloss" ;;
3951 if test x
${is_cross_compiler} = xno
; then
3956 noconfigdirs
="$noconfigdirs sim"
3959 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3962 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3965 noconfigdirs
="$noconfigdirs ld"
3967 loongarch
*-*-linux*)
3970 noconfigdirs
="$noconfigdirs gprof"
3974 # If we aren't building newlib, then don't build libgloss, since libgloss
3975 # depends upon some newlib header files.
3976 case "${noconfigdirs}" in
3977 *target-libgloss
*) ;;
3978 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
3981 # Work in distributions that contain no compiler tools, like Autoconf.
3982 host_makefile_frag
=/dev
/null
3983 if test -d ${srcdir}/config
; then
3985 i
[3456789]86-*-msdosdjgpp*)
3986 host_makefile_frag
="config/mh-djgpp"
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
3991 $as_echo_n "checking to see if cat works as expected... " >&6; }
3992 echo a
>cygwin-cat-check
3993 if test `cat cygwin-cat-check` = a
; then
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3996 $as_echo "yes" >&6; }
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4001 as_fn_error $?
"The cat command does not ignore carriage return characters.
4002 Please either mount the build directory in binary mode or run the following
4003 commands before running any configure script:
4009 host_makefile_frag
="config/mh-cygwin"
4012 host_makefile_frag
="config/mh-mingw"
4015 host_makefile_frag
="config/mh-alpha-linux"
4018 host_makefile_frag
="config/mh-pa"
4021 host_makefile_frag
="config/mh-pa"
4023 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4024 host_makefile_frag
="config/mh-darwin"
4027 host_makefile_frag
="config/mh-ppc-aix"
4030 host_makefile_frag
="config/mh-ppc-aix"
4035 if test "${build}" != "${host}" ; then
4036 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4037 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4038 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4039 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4040 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4041 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4042 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4043 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4044 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4045 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4046 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4047 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4048 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4049 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4050 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4052 AR_FOR_BUILD
="\$(AR)"
4053 AS_FOR_BUILD
="\$(AS)"
4054 CC_FOR_BUILD
="\$(CC)"
4055 CXX_FOR_BUILD
="\$(CXX)"
4056 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4057 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4058 GOC_FOR_BUILD
="\$(GOC)"
4059 GDC_FOR_BUILD
="\$(GDC)"
4060 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4061 LD_FOR_BUILD
="\$(LD)"
4062 NM_FOR_BUILD
="\$(NM)"
4063 RANLIB_FOR_BUILD
="\$(RANLIB)"
4064 WINDRES_FOR_BUILD
="\$(WINDRES)"
4065 WINDMC_FOR_BUILD
="\$(WINDMC)"
4069 ac_cpp
='$CPP $CPPFLAGS'
4070 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4073 if test -n "$ac_tool_prefix"; then
4074 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4075 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4077 $as_echo_n "checking for $ac_word... " >&6; }
4078 if ${ac_cv_prog_CC+:} false
; then :
4079 $as_echo_n "(cached) " >&6
4081 if test -n "$CC"; then
4082 ac_cv_prog_CC
="$CC" # Let the user override the test.
4084 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4088 test -z "$as_dir" && as_dir
=.
4089 for ac_exec_ext
in '' $ac_executable_extensions; do
4090 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4091 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102 if test -n "$CC"; then
4103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4104 $as_echo "$CC" >&6; }
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4107 $as_echo "no" >&6; }
4112 if test -z "$ac_cv_prog_CC"; then
4114 # Extract the first word of "gcc", so it can be a program name with args.
4115 set dummy gcc
; ac_word
=$2
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4117 $as_echo_n "checking for $ac_word... " >&6; }
4118 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4119 $as_echo_n "(cached) " >&6
4121 if test -n "$ac_ct_CC"; then
4122 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4124 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4128 test -z "$as_dir" && as_dir
=.
4129 for ac_exec_ext
in '' $ac_executable_extensions; do
4130 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4131 ac_cv_prog_ac_ct_CC
="gcc"
4132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4141 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4142 if test -n "$ac_ct_CC"; then
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4144 $as_echo "$ac_ct_CC" >&6; }
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4150 if test "x$ac_ct_CC" = x
; then
4153 case $cross_compiling:$ac_tool_warned in
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4157 ac_tool_warned
=yes ;;
4165 if test -z "$CC"; then
4166 if test -n "$ac_tool_prefix"; then
4167 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4168 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_prog_CC+:} false
; then :
4172 $as_echo_n "(cached) " >&6
4174 if test -n "$CC"; then
4175 ac_cv_prog_CC
="$CC" # Let the user override the test.
4177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4181 test -z "$as_dir" && as_dir
=.
4182 for ac_exec_ext
in '' $ac_executable_extensions; do
4183 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4184 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4195 if test -n "$CC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4197 $as_echo "$CC" >&6; }
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4206 if test -z "$CC"; then
4207 # Extract the first word of "cc", so it can be a program name with args.
4208 set dummy cc
; ac_word
=$2
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4210 $as_echo_n "checking for $ac_word... " >&6; }
4211 if ${ac_cv_prog_CC+:} false
; then :
4212 $as_echo_n "(cached) " >&6
4214 if test -n "$CC"; then
4215 ac_cv_prog_CC
="$CC" # Let the user override the test.
4218 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4222 test -z "$as_dir" && as_dir
=.
4223 for ac_exec_ext
in '' $ac_executable_extensions; do
4224 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4225 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4226 ac_prog_rejected
=yes
4230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4237 if test $ac_prog_rejected = yes; then
4238 # We found a bogon in the path, so make sure we never use it.
4239 set dummy
$ac_cv_prog_CC
4241 if test $# != 0; then
4242 # We chose a different compiler from the bogus one.
4243 # However, it has the same basename, so the bogon will be chosen
4244 # first if we set CC to just the basename; use the full file name.
4246 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4252 if test -n "$CC"; then
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4254 $as_echo "$CC" >&6; }
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4257 $as_echo "no" >&6; }
4262 if test -z "$CC"; then
4263 if test -n "$ac_tool_prefix"; then
4264 for ac_prog
in cl.exe
4266 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4267 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4269 $as_echo_n "checking for $ac_word... " >&6; }
4270 if ${ac_cv_prog_CC+:} false
; then :
4271 $as_echo_n "(cached) " >&6
4273 if test -n "$CC"; then
4274 ac_cv_prog_CC
="$CC" # Let the user override the test.
4276 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4280 test -z "$as_dir" && as_dir
=.
4281 for ac_exec_ext
in '' $ac_executable_extensions; do
4282 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4283 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4294 if test -n "$CC"; then
4295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4296 $as_echo "$CC" >&6; }
4298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4299 $as_echo "no" >&6; }
4303 test -n "$CC" && break
4306 if test -z "$CC"; then
4308 for ac_prog
in cl.exe
4310 # Extract the first word of "$ac_prog", so it can be a program name with args.
4311 set dummy
$ac_prog; ac_word
=$2
4312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4313 $as_echo_n "checking for $ac_word... " >&6; }
4314 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4315 $as_echo_n "(cached) " >&6
4317 if test -n "$ac_ct_CC"; then
4318 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4320 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4324 test -z "$as_dir" && as_dir
=.
4325 for ac_exec_ext
in '' $ac_executable_extensions; do
4326 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4327 ac_cv_prog_ac_ct_CC
="$ac_prog"
4328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4337 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4338 if test -n "$ac_ct_CC"; then
4339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4340 $as_echo "$ac_ct_CC" >&6; }
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4343 $as_echo "no" >&6; }
4347 test -n "$ac_ct_CC" && break
4350 if test "x$ac_ct_CC" = x
; then
4353 case $cross_compiling:$ac_tool_warned in
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4356 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4357 ac_tool_warned
=yes ;;
4366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4368 as_fn_error $?
"no acceptable C compiler found in \$PATH
4369 See \`config.log' for more details" "$LINENO" 5; }
4371 # Provide some information about the compiler.
4372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4375 for ac_option
in --version -v -V -qversion; do
4376 { { ac_try
="$ac_compiler $ac_option >&5"
4378 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4379 *) ac_try_echo=$ac_try;;
4381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4382 $as_echo "$ac_try_echo"; } >&5
4383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4385 if test -s conftest.err; then
4387 ... rest of stderr output deleted ...
4388 10q' conftest.err >conftest.er1
4389 cat conftest.er1 >&5
4391 rm -f conftest.er1 conftest.err
4392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4393 test $ac_status = 0; }
4396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4397 /* end confdefs.h. */
4407 ac_clean_files_save=$ac_clean_files
4408 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4409 # Try to create an executable without -o first, disregard a.out.
4410 # It will help us diagnose broken compilers, and finding out an intuition
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4413 $as_echo_n "checking whether the C compiler works... " >&6; }
4414 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4416 # The possible output files:
4417 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4420 for ac_file in $ac_files
4423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4424 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4429 if { { ac_try="$ac_link_default"
4431 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4432 *) ac_try_echo
=$ac_try;;
4434 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 $as_echo "$ac_try_echo"; } >&5
4436 (eval "$ac_link_default") 2>&5
4438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4439 test $ac_status = 0; }; then :
4440 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4441 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4442 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4443 # so that the user can short-circuit this test for compilers unknown to
4445 for ac_file
in $ac_files ''
4447 test -f "$ac_file" ||
continue
4449 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4452 # We found the default executable, but exeext='' is most
4456 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4458 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4460 # We set ac_cv_exeext here because the later test for it is not
4461 # safe: cross compilers may not add the suffix if given an `-o'
4462 # argument, so we may need to know it at that point already.
4463 # Even if this section looks crufty: it has the advantage of
4470 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4475 if test -z "$ac_file"; then :
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4477 $as_echo "no" >&6; }
4478 $as_echo "$as_me: failed program was:" >&5
4479 sed 's/^/| /' conftest.
$ac_ext >&5
4481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4483 as_fn_error
77 "C compiler cannot create executables
4484 See \`config.log' for more details" "$LINENO" 5; }
4486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4487 $as_echo "yes" >&6; }
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4490 $as_echo_n "checking for C compiler default output file name... " >&6; }
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4492 $as_echo "$ac_file" >&6; }
4493 ac_exeext
=$ac_cv_exeext
4495 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4496 ac_clean_files
=$ac_clean_files_save
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4498 $as_echo_n "checking for suffix of executables... " >&6; }
4499 if { { ac_try
="$ac_link"
4501 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4502 *) ac_try_echo=$ac_try;;
4504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4505 $as_echo "$ac_try_echo"; } >&5
4506 (eval "$ac_link") 2>&5
4508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4509 test $ac_status = 0; }; then :
4510 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4511 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4512 # work properly (i.e., refer to `conftest.exe'), while it won't with
4514 for ac_file
in conftest.exe conftest conftest.
*; do
4515 test -f "$ac_file" ||
continue
4517 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4518 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4526 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4527 See \`config.log' for more details" "$LINENO" 5; }
4529 rm -f conftest conftest
$ac_cv_exeext
4530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4531 $as_echo "$ac_cv_exeext" >&6; }
4533 rm -f conftest.
$ac_ext
4534 EXEEXT
=$ac_cv_exeext
4536 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4537 /* end confdefs.h. */
4542 FILE *f = fopen ("conftest.out", "w");
4543 return ferror (f) || fclose (f) != 0;
4549 ac_clean_files
="$ac_clean_files conftest.out"
4550 # Check that the compiler produces executables we can run. If not, either
4551 # the compiler is broken, or we cross compile.
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4553 $as_echo_n "checking whether we are cross compiling... " >&6; }
4554 if test "$cross_compiling" != yes; then
4555 { { ac_try
="$ac_link"
4557 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4561 $as_echo "$ac_try_echo"; } >&5
4562 (eval "$ac_link") 2>&5
4564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4565 test $ac_status = 0; }
4566 if { ac_try='./conftest$ac_cv_exeext'
4567 { { case "(($ac_try" in
4568 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4569 *) ac_try_echo
=$ac_try;;
4571 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4572 $as_echo "$ac_try_echo"; } >&5
4573 (eval "$ac_try") 2>&5
4575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4576 test $ac_status = 0; }; }; then
4579 if test "$cross_compiling" = maybe
; then
4582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4584 as_fn_error $?
"cannot run C compiled programs.
4585 If you meant to cross compile, use \`--host'.
4586 See \`config.log' for more details" "$LINENO" 5; }
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4591 $as_echo "$cross_compiling" >&6; }
4593 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4594 ac_clean_files
=$ac_clean_files_save
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4596 $as_echo_n "checking for suffix of object files... " >&6; }
4597 if ${ac_cv_objext+:} false
; then :
4598 $as_echo_n "(cached) " >&6
4600 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4601 /* end confdefs.h. */
4611 rm -f conftest.o conftest.obj
4612 if { { ac_try
="$ac_compile"
4614 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4615 *) ac_try_echo=$ac_try;;
4617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4618 $as_echo "$ac_try_echo"; } >&5
4619 (eval "$ac_compile") 2>&5
4621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4622 test $ac_status = 0; }; then :
4623 for ac_file in conftest.o conftest.obj conftest.*; do
4624 test -f "$ac_file" || continue;
4626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4627 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4632 $as_echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4637 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4638 See \
`config.log' for more details" "$LINENO" 5; }
4640 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4643 $as_echo "$ac_cv_objext" >&6; }
4644 OBJEXT=$ac_cv_objext
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4647 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4648 if ${ac_cv_c_compiler_gnu+:} false; then :
4649 $as_echo_n "(cached) " >&6
4651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4652 /* end confdefs.h. */
4665 if ac_fn_c_try_compile "$LINENO"; then :
4670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4675 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4676 if test $ac_compiler_gnu = yes; then
4681 ac_test_CFLAGS=${CFLAGS+set}
4682 ac_save_CFLAGS=$CFLAGS
4683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4684 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4685 if ${ac_cv_prog_cc_g+:} false; then :
4686 $as_echo_n "(cached) " >&6
4688 ac_save_c_werror_flag=$ac_c_werror_flag
4689 ac_c_werror_flag=yes
4692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4693 /* end confdefs.h. */
4703 if ac_fn_c_try_compile "$LINENO"; then :
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4718 if ac_fn_c_try_compile "$LINENO"; then :
4721 ac_c_werror_flag=$ac_save_c_werror_flag
4723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4724 /* end confdefs.h. */
4734 if ac_fn_c_try_compile "$LINENO"; then :
4737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4742 ac_c_werror_flag=$ac_save_c_werror_flag
4744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4745 $as_echo "$ac_cv_prog_cc_g" >&6; }
4746 if test "$ac_test_CFLAGS" = set; then
4747 CFLAGS=$ac_save_CFLAGS
4748 elif test $ac_cv_prog_cc_g = yes; then
4749 if test "$GCC" = yes; then
4755 if test "$GCC" = yes; then
4761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4762 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4763 if ${ac_cv_prog_cc_c89+:} false; then :
4764 $as_echo_n "(cached) " >&6
4766 ac_cv_prog_cc_c89=no
4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4769 /* end confdefs.h. */
4773 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4774 struct buf { int x; };
4775 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4776 static char *e (p, i)
4782 static char *f (char * (*g) (char **, int), char **p, ...)
4787 s = g (p, va_arg (v,int));
4792 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4793 function prototypes and stuff, but not '\xHH' hex character constants.
4794 These don't provoke an error unfortunately, instead are silently treated
4795 as 'x'. The following induces an error, until -std is added to get
4796 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4797 array size at least. It's necessary to write '\x00'==0 to get something
4798 that's true only with -std. */
4799 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4801 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4802 inside strings and character constants. */
4804 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4806 int test (int i, double x);
4807 struct s1 {int (*f) (int a);};
4808 struct s2 {int (*f) (double a);};
4809 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4815 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4820 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4821 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4823 CC="$ac_save_CC $ac_arg"
4824 if ac_fn_c_try_compile "$LINENO"; then :
4825 ac_cv_prog_cc_c89=$ac_arg
4827 rm -f core conftest.err conftest.$ac_objext
4828 test "x$ac_cv_prog_cc_c89" != "xno" && break
4830 rm -f conftest.$ac_ext
4835 case "x$ac_cv_prog_cc_c89" in
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4838 $as_echo "none needed" >&6; } ;;
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4841 $as_echo "unsupported" >&6; } ;;
4843 CC="$CC $ac_cv_prog_cc_c89"
4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4845 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4847 if test "x$ac_cv_prog_cc_c89" != xno; then :
4852 ac_cpp='$CPP $CPPFLAGS'
4853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4858 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4859 if ${ac_cv_prog_cc_c99+:} false; then :
4860 $as_echo_n "(cached) " >&6
4862 ac_cv_prog_cc_c99=no
4864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4865 /* end confdefs.h. */
4867 #include <stdbool.h>
4872 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4873 #define debug(...) fprintf (stderr, __VA_ARGS__)
4874 #define showlist(...) puts (#__VA_ARGS__)
4875 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4877 test_varargs_macros (void)
4882 debug ("X = %d\n", x);
4883 showlist (The first, second, and third items.);
4884 report (x>y, "x is %d but y is %d", x, y);
4887 // Check long long types.
4888 #define BIG64 18446744073709551615ull
4889 #define BIG32 4294967295ul
4890 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4892 your preprocessor is broken;
4896 your preprocessor is broken;
4898 static long long int bignum = -9223372036854775807LL;
4899 static unsigned long long int ubignum = BIG64;
4901 struct incomplete_array
4909 const wchar_t *name;
4913 typedef const char *ccp;
4916 test_restrict (ccp restrict text)
4918 // See if C++-style comments work.
4919 // Iterate through items via the restricted pointer.
4920 // Also check for declarations in for loops.
4921 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4926 // Check varargs and va_copy.
4928 test_varargs (const char *format, ...)
4931 va_start (args, format);
4933 va_copy (args_copy, args);
4944 str = va_arg (args_copy, const char *);
4947 number = va_arg (args_copy, int);
4950 fnumber = va_arg (args_copy, double);
4965 _Bool success = false;
4968 if (test_restrict ("String literal") == 0)
4970 char *restrict newvar = "Another string";
4973 test_varargs ("s, d' f .", "string", 65, 34.234);
4974 test_varargs_macros ();
4976 // Check flexible array members.
4977 struct incomplete_array *ia =
4978 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
4980 for (int i = 0; i < ia->datasize; ++i)
4981 ia->data[i] = i * 1.234;
4983 // Check named initializers.
4984 struct named_init ni = {
4986 .name = L"Test wide string",
4987 .average = 543.34343,
4992 int dynamic_array[ni.number];
4993 dynamic_array[ni.number - 1] = 543;
4995 // work around unused variable warnings
4996 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
4997 || dynamic_array[ni.number - 1] != 543);
5003 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5005 CC="$ac_save_CC $ac_arg"
5006 if ac_fn_c_try_compile "$LINENO"; then :
5007 ac_cv_prog_cc_c99=$ac_arg
5009 rm -f core conftest.err conftest.$ac_objext
5010 test "x$ac_cv_prog_cc_c99" != "xno" && break
5012 rm -f conftest.$ac_ext
5017 case "x$ac_cv_prog_cc_c99" in
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5020 $as_echo "none needed" >&6; } ;;
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5023 $as_echo "unsupported" >&6; } ;;
5025 CC="$CC $ac_cv_prog_cc_c99"
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5027 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5029 if test "x$ac_cv_prog_cc_c99" != xno; then :
5035 ac_cpp='$CXXCPP $CPPFLAGS'
5036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5039 if test -z "$CXX"; then
5040 if test -n "$CCC"; then
5043 if test -n "$ac_tool_prefix"; then
5044 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5046 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5047 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5049 $as_echo_n "checking for $ac_word... " >&6; }
5050 if ${ac_cv_prog_CXX+:} false; then :
5051 $as_echo_n "(cached) " >&6
5053 if test -n "$CXX"; then
5054 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5063 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 if test -n "$CXX"; then
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5076 $as_echo "$CXX" >&6; }
5078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5079 $as_echo "no" >&6; }
5083 test -n "$CXX" && break
5086 if test -z "$CXX"; then
5088 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5090 # Extract the first word of "$ac_prog", so it can be a program name with args.
5091 set dummy $ac_prog; ac_word=$2
5092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5093 $as_echo_n "checking for $ac_word... " >&6; }
5094 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5095 $as_echo_n "(cached) " >&6
5097 if test -n "$ac_ct_CXX"; then
5098 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5104 test -z "$as_dir" && as_dir=.
5105 for ac_exec_ext in '' $ac_executable_extensions; do
5106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5107 ac_cv_prog_ac_ct_CXX="$ac_prog"
5108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5118 if test -n "$ac_ct_CXX"; then
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5120 $as_echo "$ac_ct_CXX" >&6; }
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5123 $as_echo "no" >&6; }
5127 test -n "$ac_ct_CXX" && break
5130 if test "x$ac_ct_CXX" = x; then
5133 case $cross_compiling:$ac_tool_warned in
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5137 ac_tool_warned=yes ;;
5145 # Provide some information about the compiler.
5146 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5149 for ac_option in --version -v -V -qversion; do
5150 { { ac_try="$ac_compiler $ac_option >&5"
5152 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5153 *) ac_try_echo
=$ac_try;;
5155 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5156 $as_echo "$ac_try_echo"; } >&5
5157 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5159 if test -s conftest.err
; then
5161 ... rest of stderr output deleted ...
5162 10q' conftest.err
>conftest.er1
5163 cat conftest.er1
>&5
5165 rm -f conftest.er1 conftest.err
5166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5167 test $ac_status = 0; }
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5171 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5172 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5173 $as_echo_n "(cached) " >&6
5175 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5176 /* end confdefs.h. */
5189 if ac_fn_cxx_try_compile
"$LINENO"; then :
5194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5195 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5199 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5200 if test $ac_compiler_gnu = yes; then
5205 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5206 ac_save_CXXFLAGS
=$CXXFLAGS
5207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5208 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5209 if ${ac_cv_prog_cxx_g+:} false
; then :
5210 $as_echo_n "(cached) " >&6
5212 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5213 ac_cxx_werror_flag
=yes
5216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5227 if ac_fn_cxx_try_compile
"$LINENO"; then :
5228 ac_cv_prog_cxx_g
=yes
5231 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5242 if ac_fn_cxx_try_compile
"$LINENO"; then :
5245 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5247 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5248 /* end confdefs.h. */
5258 if ac_fn_cxx_try_compile
"$LINENO"; then :
5259 ac_cv_prog_cxx_g
=yes
5261 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5265 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5266 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5269 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5270 if test "$ac_test_CXXFLAGS" = set; then
5271 CXXFLAGS
=$ac_save_CXXFLAGS
5272 elif test $ac_cv_prog_cxx_g = yes; then
5273 if test "$GXX" = yes; then
5279 if test "$GXX" = yes; then
5286 ac_cpp
='$CPP $CPPFLAGS'
5287 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5288 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5289 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5292 # We must set the default linker to the linker used by gcc for the correct
5293 # operation of libtool. If LD is not defined and we are using gcc, try to
5294 # set the LD default to the ld used by gcc.
5295 if test -z "$LD"; then
5296 if test "$GCC" = yes; then
5299 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5301 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5303 case $gcc_prog_ld in
5304 # Accept absolute paths.
5305 [\\/]* |
[A-Za-z
]:[\\/]*)
5306 LD
="$gcc_prog_ld" ;;
5311 # Check whether -static-libstdc++ -static-libgcc is supported.
5313 if test "$GCC" = yes; then
5314 saved_LDFLAGS
="$LDFLAGS"
5316 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5318 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5320 ac_cpp
='$CXXCPP $CPPFLAGS'
5321 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5322 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5323 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5326 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5327 /* end confdefs.h. */
5329 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5330 #error -static-libstdc++ not implemented
5334 if ac_fn_cxx_try_link
"$LINENO"; then :
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5336 $as_echo "yes" >&6; }; have_static_libs
=yes
5338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5339 $as_echo "no" >&6; }
5341 rm -f core conftest.err conftest.
$ac_objext \
5342 conftest
$ac_exeext conftest.
$ac_ext
5344 ac_cpp
='$CPP $CPPFLAGS'
5345 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5346 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5347 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5350 LDFLAGS
="$saved_LDFLAGS"
5356 if test -n "$ac_tool_prefix"; then
5357 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5358 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5360 $as_echo_n "checking for $ac_word... " >&6; }
5361 if ${ac_cv_prog_GNATBIND+:} false
; then :
5362 $as_echo_n "(cached) " >&6
5364 if test -n "$GNATBIND"; then
5365 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5371 test -z "$as_dir" && as_dir
=.
5372 for ac_exec_ext
in '' $ac_executable_extensions; do
5373 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5374 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5384 GNATBIND
=$ac_cv_prog_GNATBIND
5385 if test -n "$GNATBIND"; then
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5387 $as_echo "$GNATBIND" >&6; }
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5390 $as_echo "no" >&6; }
5395 if test -z "$ac_cv_prog_GNATBIND"; then
5396 ac_ct_GNATBIND
=$GNATBIND
5397 # Extract the first word of "gnatbind", so it can be a program name with args.
5398 set dummy gnatbind
; ac_word
=$2
5399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5400 $as_echo_n "checking for $ac_word... " >&6; }
5401 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5402 $as_echo_n "(cached) " >&6
5404 if test -n "$ac_ct_GNATBIND"; then
5405 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5407 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5411 test -z "$as_dir" && as_dir
=.
5412 for ac_exec_ext
in '' $ac_executable_extensions; do
5413 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5414 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5424 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5425 if test -n "$ac_ct_GNATBIND"; then
5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5427 $as_echo "$ac_ct_GNATBIND" >&6; }
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5430 $as_echo "no" >&6; }
5433 if test "x$ac_ct_GNATBIND" = x
; then
5436 case $cross_compiling:$ac_tool_warned in
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5439 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5440 ac_tool_warned
=yes ;;
5442 GNATBIND
=$ac_ct_GNATBIND
5445 GNATBIND
="$ac_cv_prog_GNATBIND"
5448 if test -n "$ac_tool_prefix"; then
5449 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5450 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5452 $as_echo_n "checking for $ac_word... " >&6; }
5453 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5454 $as_echo_n "(cached) " >&6
5456 if test -n "$GNATMAKE"; then
5457 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5459 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5463 test -z "$as_dir" && as_dir
=.
5464 for ac_exec_ext
in '' $ac_executable_extensions; do
5465 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5466 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5467 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5476 GNATMAKE
=$ac_cv_prog_GNATMAKE
5477 if test -n "$GNATMAKE"; then
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5479 $as_echo "$GNATMAKE" >&6; }
5481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5482 $as_echo "no" >&6; }
5487 if test -z "$ac_cv_prog_GNATMAKE"; then
5488 ac_ct_GNATMAKE
=$GNATMAKE
5489 # Extract the first word of "gnatmake", so it can be a program name with args.
5490 set dummy gnatmake
; ac_word
=$2
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5492 $as_echo_n "checking for $ac_word... " >&6; }
5493 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5494 $as_echo_n "(cached) " >&6
5496 if test -n "$ac_ct_GNATMAKE"; then
5497 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5499 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5503 test -z "$as_dir" && as_dir
=.
5504 for ac_exec_ext
in '' $ac_executable_extensions; do
5505 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5506 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5517 if test -n "$ac_ct_GNATMAKE"; then
5518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5519 $as_echo "$ac_ct_GNATMAKE" >&6; }
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5522 $as_echo "no" >&6; }
5525 if test "x$ac_ct_GNATMAKE" = x
; then
5528 case $cross_compiling:$ac_tool_warned in
5530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5531 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5532 ac_tool_warned
=yes ;;
5534 GNATMAKE
=$ac_ct_GNATMAKE
5537 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5541 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5542 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5543 $as_echo_n "(cached) " >&6
5545 cat >conftest.adb
<<EOF
5546 pragma Warnings (Off);
5548 pragma Warnings (On);
5549 use type System.CRTL.int64;
5550 procedure conftest is begin null; end conftest;
5552 acx_cv_cc_gcc_supports_ada
=no
5553 # There is a bug in old released versions of GCC which causes the
5554 # driver to exit successfully when the appropriate language module
5555 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5556 # Therefore we must check for the error message as well as an
5557 # unsuccessful exit.
5558 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5559 # given a .adb file, but produce no object file. So we must check
5560 # if an object file was really produced to guard against this.
5561 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5562 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5563 acx_cv_cc_gcc_supports_ada
=yes
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5568 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5570 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5578 if test -n "$ac_tool_prefix"; then
5579 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5580 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5582 $as_echo_n "checking for $ac_word... " >&6; }
5583 if ${ac_cv_prog_GDC+:} false
; then :
5584 $as_echo_n "(cached) " >&6
5586 if test -n "$GDC"; then
5587 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5589 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5593 test -z "$as_dir" && as_dir
=.
5594 for ac_exec_ext
in '' $ac_executable_extensions; do
5595 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5596 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5607 if test -n "$GDC"; then
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5609 $as_echo "$GDC" >&6; }
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5612 $as_echo "no" >&6; }
5617 if test -z "$ac_cv_prog_GDC"; then
5619 # Extract the first word of "gdc", so it can be a program name with args.
5620 set dummy gdc
; ac_word
=$2
5621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5622 $as_echo_n "checking for $ac_word... " >&6; }
5623 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5624 $as_echo_n "(cached) " >&6
5626 if test -n "$ac_ct_GDC"; then
5627 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5629 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5633 test -z "$as_dir" && as_dir
=.
5634 for ac_exec_ext
in '' $ac_executable_extensions; do
5635 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5636 ac_cv_prog_ac_ct_GDC
="gdc"
5637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5646 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5647 if test -n "$ac_ct_GDC"; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5649 $as_echo "$ac_ct_GDC" >&6; }
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5652 $as_echo "no" >&6; }
5655 if test "x$ac_ct_GDC" = x
; then
5658 case $cross_compiling:$ac_tool_warned in
5660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5661 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5662 ac_tool_warned
=yes ;;
5667 GDC
="$ac_cv_prog_GDC"
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5671 $as_echo_n "checking whether the D compiler works... " >&6; }
5672 if ${acx_cv_d_compiler_works+:} false
; then :
5673 $as_echo_n "(cached) " >&6
5675 cat >conftest.d
<<EOF
5676 module conftest; int main() { return 0; }
5678 acx_cv_d_compiler_works
=no
5679 if test "x$GDC" != xno
; then
5680 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5681 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5682 acx_cv_d_compiler_works
=yes
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5688 $as_echo "$acx_cv_d_compiler_works" >&6; }
5689 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5696 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5697 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5698 $as_echo_n "(cached) " >&6
5702 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5703 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5704 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5707 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5710 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5711 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5714 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5721 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5722 do_compare
="$gcc_cv_prog_cmp_skip"
5726 # Check whether --enable-bootstrap was given.
5727 if test "${enable_bootstrap+set}" = set; then :
5728 enableval
=$enable_bootstrap;
5730 enable_bootstrap
=default
5734 # Issue errors and warnings for invalid/strange bootstrap combinations.
5735 if test -r $srcdir/gcc
/configure
; then
5741 case "$have_compiler:$host:$target:$enable_bootstrap" in
5744 # Default behavior. Enable bootstrap if we have a compiler
5745 # and we are in a native configuration.
5746 yes:$build:$build:default
)
5747 enable_bootstrap
=yes ;;
5750 enable_bootstrap
=no
;;
5752 # We have a compiler and we are in a native configuration, bootstrap is ok
5753 yes:$build:$build:yes)
5756 # Other configurations, but we have a compiler. Assume the user knows
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5760 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5763 # No compiler: if they passed --enable-bootstrap explicitly, fail
5765 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5767 # Fail if wrong command line
5769 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5773 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5774 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5775 # require C++11 (or higher).
5776 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5777 CXX
="$CXX -std=c++11"
5778 elif test "$have_compiler" = yes; then
5779 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5781 ac_cpp
='$CXXCPP $CPPFLAGS'
5782 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5783 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5784 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5788 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5789 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5790 $as_echo_n "(cached) " >&6
5792 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5793 /* end confdefs.h. */
5796 // If the compiler admits that it is not ready for C++11, why torture it?
5797 // Hopefully, this will speed up the test.
5801 #error "This is not a C++ compiler"
5803 #elif __cplusplus < 201103L
5805 #error "This is not a C++11 compiler"
5812 namespace test_static_assert
5815 template <typename T>
5818 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5823 namespace test_final_override
5832 struct Derived : public Base
5834 virtual ~Derived() override {}
5835 virtual void f() override {}
5840 namespace test_double_right_angle_brackets
5843 template < typename T >
5846 typedef check<void> single_type;
5847 typedef check<check<void>> double_type;
5848 typedef check<check<check<void>>> triple_type;
5849 typedef check<check<check<check<void>>>> quadruple_type;
5853 namespace test_decltype
5866 namespace test_type_deduction
5869 template < typename T1, typename T2 >
5872 static const bool value = false;
5875 template < typename T >
5876 struct is_same<T, T>
5878 static const bool value = true;
5881 template < typename T1, typename T2 >
5883 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5889 test(const int c, volatile int v)
5891 static_assert(is_same<int, decltype(0)>::value == true, "");
5892 static_assert(is_same<int, decltype(c)>::value == false, "");
5893 static_assert(is_same<int, decltype(v)>::value == false, "");
5896 auto sumi = ac + av + 'x';
5897 auto sumf = ac + av + 1.0;
5898 static_assert(is_same<int, decltype(ac)>::value == true, "");
5899 static_assert(is_same<int, decltype(av)>::value == true, "");
5900 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5901 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5902 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5903 return (sumf > 0.0) ? sumi : add(c, v);
5908 namespace test_noexcept
5911 int f() { return 0; }
5912 int g() noexcept { return 0; }
5914 static_assert(noexcept(f()) == false, "");
5915 static_assert(noexcept(g()) == true, "");
5919 namespace test_constexpr
5922 template < typename CharT >
5923 unsigned long constexpr
5924 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5926 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5929 template < typename CharT >
5930 unsigned long constexpr
5931 strlen_c(const CharT *const s) noexcept
5933 return strlen_c_r(s, 0UL);
5936 static_assert(strlen_c("") == 0UL, "");
5937 static_assert(strlen_c("1") == 1UL, "");
5938 static_assert(strlen_c("example") == 7UL, "");
5939 static_assert(strlen_c("another\0example") == 7UL, "");
5943 namespace test_rvalue_references
5949 static constexpr int value = N;
5952 answer<1> f(int&) { return answer<1>(); }
5953 answer<2> f(const int&) { return answer<2>(); }
5954 answer<3> f(int&&) { return answer<3>(); }
5961 static_assert(decltype(f(i))::value == 1, "");
5962 static_assert(decltype(f(c))::value == 2, "");
5963 static_assert(decltype(f(0))::value == 3, "");
5968 namespace test_uniform_initialization
5973 static const int zero {};
5974 static const int one {1};
5977 static_assert(test::zero == 0, "");
5978 static_assert(test::one == 1, "");
5982 namespace test_lambdas
5988 auto lambda1 = [](){};
5989 auto lambda2 = lambda1;
5997 auto a = [](int i, int j){ return i + j; }(1, 2);
5998 auto b = []() -> int { return '0'; }();
5999 auto c = [=](){ return a + b; }();
6000 auto d = [&](){ return c; }();
6001 auto e = [a, &b](int x) mutable {
6002 const auto identity = [](int y){ return y; };
6003 for (auto i = 0; i < a; ++i)
6005 return x + identity(a + b);
6007 return a + b + c + d + e;
6013 const auto nullary = [](){ return 0; };
6014 const auto unary = [](int x){ return x; };
6015 using nullary_t = decltype(nullary);
6016 using unary_t = decltype(unary);
6017 const auto higher1st = [](nullary_t f){ return f(); };
6018 const auto higher2nd = [unary](nullary_t f1){
6019 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6021 return higher1st(nullary) + higher2nd(nullary)(unary);
6026 namespace test_variadic_templates
6032 template <int N0, int... N1toN>
6033 struct sum<N0, N1toN...>
6035 static constexpr auto value = N0 + sum<N1toN...>::value;
6041 static constexpr auto value = 0;
6044 static_assert(sum<>::value == 0, "");
6045 static_assert(sum<1>::value == 1, "");
6046 static_assert(sum<23>::value == 23, "");
6047 static_assert(sum<1, 2>::value == 3, "");
6048 static_assert(sum<5, 5, 11>::value == 21, "");
6049 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6053 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6054 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6056 namespace test_template_alias_sfinae
6061 template<typename T>
6062 using member = typename T::member_type;
6064 template<typename T>
6067 template<typename T>
6068 void func(member<T>*) {}
6072 void test() { func<foo>(0); }
6076 } // namespace cxx11
6078 #endif // __cplusplus >= 201103L
6083 if ac_fn_cxx_try_compile
"$LINENO"; then :
6084 ax_cv_cxx_compile_cxx11
=yes
6086 ax_cv_cxx_compile_cxx11
=no
6088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6091 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6092 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6096 if test x
$ac_success = xno
; then
6097 for alternative
in ${ax_cxx_compile_alternatives}; do
6098 switch
="-std=gnu++${alternative}"
6099 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6101 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6102 if eval \
${$cachevar+:} false
; then :
6103 $as_echo_n "(cached) " >&6
6107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6108 /* end confdefs.h. */
6111 // If the compiler admits that it is not ready for C++11, why torture it?
6112 // Hopefully, this will speed up the test.
6116 #error "This is not a C++ compiler"
6118 #elif __cplusplus < 201103L
6120 #error "This is not a C++11 compiler"
6127 namespace test_static_assert
6130 template <typename T>
6133 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6138 namespace test_final_override
6147 struct Derived : public Base
6149 virtual ~Derived() override {}
6150 virtual void f() override {}
6155 namespace test_double_right_angle_brackets
6158 template < typename T >
6161 typedef check<void> single_type;
6162 typedef check<check<void>> double_type;
6163 typedef check<check<check<void>>> triple_type;
6164 typedef check<check<check<check<void>>>> quadruple_type;
6168 namespace test_decltype
6181 namespace test_type_deduction
6184 template < typename T1, typename T2 >
6187 static const bool value = false;
6190 template < typename T >
6191 struct is_same<T, T>
6193 static const bool value = true;
6196 template < typename T1, typename T2 >
6198 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6204 test(const int c, volatile int v)
6206 static_assert(is_same<int, decltype(0)>::value == true, "");
6207 static_assert(is_same<int, decltype(c)>::value == false, "");
6208 static_assert(is_same<int, decltype(v)>::value == false, "");
6211 auto sumi = ac + av + 'x';
6212 auto sumf = ac + av + 1.0;
6213 static_assert(is_same<int, decltype(ac)>::value == true, "");
6214 static_assert(is_same<int, decltype(av)>::value == true, "");
6215 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6216 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6217 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6218 return (sumf > 0.0) ? sumi : add(c, v);
6223 namespace test_noexcept
6226 int f() { return 0; }
6227 int g() noexcept { return 0; }
6229 static_assert(noexcept(f()) == false, "");
6230 static_assert(noexcept(g()) == true, "");
6234 namespace test_constexpr
6237 template < typename CharT >
6238 unsigned long constexpr
6239 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6241 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6244 template < typename CharT >
6245 unsigned long constexpr
6246 strlen_c(const CharT *const s) noexcept
6248 return strlen_c_r(s, 0UL);
6251 static_assert(strlen_c("") == 0UL, "");
6252 static_assert(strlen_c("1") == 1UL, "");
6253 static_assert(strlen_c("example") == 7UL, "");
6254 static_assert(strlen_c("another\0example") == 7UL, "");
6258 namespace test_rvalue_references
6264 static constexpr int value = N;
6267 answer<1> f(int&) { return answer<1>(); }
6268 answer<2> f(const int&) { return answer<2>(); }
6269 answer<3> f(int&&) { return answer<3>(); }
6276 static_assert(decltype(f(i))::value == 1, "");
6277 static_assert(decltype(f(c))::value == 2, "");
6278 static_assert(decltype(f(0))::value == 3, "");
6283 namespace test_uniform_initialization
6288 static const int zero {};
6289 static const int one {1};
6292 static_assert(test::zero == 0, "");
6293 static_assert(test::one == 1, "");
6297 namespace test_lambdas
6303 auto lambda1 = [](){};
6304 auto lambda2 = lambda1;
6312 auto a = [](int i, int j){ return i + j; }(1, 2);
6313 auto b = []() -> int { return '0'; }();
6314 auto c = [=](){ return a + b; }();
6315 auto d = [&](){ return c; }();
6316 auto e = [a, &b](int x) mutable {
6317 const auto identity = [](int y){ return y; };
6318 for (auto i = 0; i < a; ++i)
6320 return x + identity(a + b);
6322 return a + b + c + d + e;
6328 const auto nullary = [](){ return 0; };
6329 const auto unary = [](int x){ return x; };
6330 using nullary_t = decltype(nullary);
6331 using unary_t = decltype(unary);
6332 const auto higher1st = [](nullary_t f){ return f(); };
6333 const auto higher2nd = [unary](nullary_t f1){
6334 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6336 return higher1st(nullary) + higher2nd(nullary)(unary);
6341 namespace test_variadic_templates
6347 template <int N0, int... N1toN>
6348 struct sum<N0, N1toN...>
6350 static constexpr auto value = N0 + sum<N1toN...>::value;
6356 static constexpr auto value = 0;
6359 static_assert(sum<>::value == 0, "");
6360 static_assert(sum<1>::value == 1, "");
6361 static_assert(sum<23>::value == 23, "");
6362 static_assert(sum<1, 2>::value == 3, "");
6363 static_assert(sum<5, 5, 11>::value == 21, "");
6364 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6368 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6369 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6371 namespace test_template_alias_sfinae
6376 template<typename T>
6377 using member = typename T::member_type;
6379 template<typename T>
6382 template<typename T>
6383 void func(member<T>*) {}
6387 void test() { func<foo>(0); }
6391 } // namespace cxx11
6393 #endif // __cplusplus >= 201103L
6398 if ac_fn_cxx_try_compile
"$LINENO"; then :
6403 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6406 eval ac_res
=\$
$cachevar
6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6408 $as_echo "$ac_res" >&6; }
6409 if eval test x\$
$cachevar = xyes
; then
6411 if test -n "$CXXCPP" ; then
6412 CXXCPP
="$CXXCPP $switch"
6420 if test x
$ac_success = xno
; then
6421 for alternative
in ${ax_cxx_compile_alternatives}; do
6422 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6423 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6425 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6426 if eval \${$cachevar+:} false; then :
6427 $as_echo_n "(cached
) " >&6
6431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6432 /* end confdefs.h. */
6435 // If the compiler admits that it is not ready for C++11, why torture it?
6436 // Hopefully, this will speed up the test.
6440 #error "This is not a C
++ compiler
"
6442 #elif __cplusplus < 201103L
6444 #error "This is not a C
++11 compiler
"
6451 namespace test_static_assert
6454 template <typename T>
6457 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6462 namespace test_final_override
6471 struct Derived : public Base
6473 virtual ~Derived() override {}
6474 virtual void f() override {}
6479 namespace test_double_right_angle_brackets
6482 template < typename T >
6485 typedef check<void> single_type;
6486 typedef check<check<void>> double_type;
6487 typedef check<check<check<void>>> triple_type;
6488 typedef check<check<check<check<void>>>> quadruple_type;
6492 namespace test_decltype
6505 namespace test_type_deduction
6508 template < typename T1, typename T2 >
6511 static const bool value = false;
6514 template < typename T >
6515 struct is_same<T, T>
6517 static const bool value = true;
6520 template < typename T1, typename T2 >
6522 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6528 test(const int c, volatile int v)
6530 static_assert(is_same<int, decltype(0)>::value == true, "");
6531 static_assert(is_same<int, decltype(c)>::value == false, "");
6532 static_assert(is_same<int, decltype(v)>::value == false, "");
6535 auto sumi = ac + av + 'x';
6536 auto sumf = ac + av + 1.0;
6537 static_assert(is_same<int, decltype(ac)>::value == true, "");
6538 static_assert(is_same<int, decltype(av)>::value == true, "");
6539 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6540 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6541 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6542 return (sumf > 0.0) ? sumi : add(c, v);
6547 namespace test_noexcept
6550 int f() { return 0; }
6551 int g() noexcept { return 0; }
6553 static_assert(noexcept(f()) == false, "");
6554 static_assert(noexcept(g()) == true, "");
6558 namespace test_constexpr
6561 template < typename CharT >
6562 unsigned long constexpr
6563 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6565 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6568 template < typename CharT >
6569 unsigned long constexpr
6570 strlen_c(const CharT *const s) noexcept
6572 return strlen_c_r(s, 0UL);
6575 static_assert(strlen_c("") == 0UL, "");
6576 static_assert(strlen_c("1") == 1UL, "");
6577 static_assert(strlen_c("example
") == 7UL, "");
6578 static_assert(strlen_c("another\
0example
") == 7UL, "");
6582 namespace test_rvalue_references
6588 static constexpr int value = N;
6591 answer<1> f(int&) { return answer<1>(); }
6592 answer<2> f(const int&) { return answer<2>(); }
6593 answer<3> f(int&&) { return answer<3>(); }
6600 static_assert(decltype(f(i))::value == 1, "");
6601 static_assert(decltype(f(c))::value == 2, "");
6602 static_assert(decltype(f(0))::value == 3, "");
6607 namespace test_uniform_initialization
6612 static const int zero {};
6613 static const int one {1};
6616 static_assert(test::zero == 0, "");
6617 static_assert(test::one == 1, "");
6621 namespace test_lambdas
6627 auto lambda1 = [](){};
6628 auto lambda2 = lambda1;
6636 auto a = [](int i, int j){ return i + j; }(1, 2);
6637 auto b = []() -> int { return '0'; }();
6638 auto c = [=](){ return a + b; }();
6639 auto d = [&](){ return c; }();
6640 auto e = [a, &b](int x) mutable {
6641 const auto identity = [](int y){ return y; };
6642 for (auto i = 0; i < a; ++i)
6644 return x + identity(a + b);
6646 return a + b + c + d + e;
6652 const auto nullary = [](){ return 0; };
6653 const auto unary = [](int x){ return x; };
6654 using nullary_t = decltype(nullary);
6655 using unary_t = decltype(unary);
6656 const auto higher1st = [](nullary_t f){ return f(); };
6657 const auto higher2nd = [unary](nullary_t f1){
6658 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6660 return higher1st(nullary) + higher2nd(nullary)(unary);
6665 namespace test_variadic_templates
6671 template <int N0, int... N1toN>
6672 struct sum<N0, N1toN...>
6674 static constexpr auto value = N0 + sum<N1toN...>::value;
6680 static constexpr auto value = 0;
6683 static_assert(sum<>::value == 0, "");
6684 static_assert(sum<1>::value == 1, "");
6685 static_assert(sum<23>::value == 23, "");
6686 static_assert(sum<1, 2>::value == 3, "");
6687 static_assert(sum<5, 5, 11>::value == 21, "");
6688 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6692 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6693 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6695 namespace test_template_alias_sfinae
6700 template<typename T>
6701 using member = typename T::member_type;
6703 template<typename T>
6706 template<typename T>
6707 void func(member<T>*) {}
6711 void test() { func<foo>(0); }
6715 } // namespace cxx11
6717 #endif // __cplusplus >= 201103L
6722 if ac_fn_cxx_try_compile "$LINENO"; then :
6727 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6730 eval ac_res=\$$cachevar
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6732 $as_echo "$ac_res" >&6; }
6733 if eval test x\$$cachevar = xyes; then
6735 if test -n "$CXXCPP" ; then
6736 CXXCPP="$CXXCPP $switch"
6742 if test x$ac_success = xyes; then
6749 ac_cpp='$CPP $CPPFLAGS'
6750 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6751 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6752 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6754 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6755 if test x$ac_success = xno; then
6756 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6759 if test x$ac_success = xno; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6762 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6766 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6772 if test "${build}" != "${host}"; then
6773 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6775 ac_cpp
='$CXXCPP $CPPFLAGS'
6776 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6777 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6778 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6780 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6781 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6782 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6783 CXX
="$CXX_FOR_BUILD"
6784 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6785 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6787 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6788 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6789 $as_echo_n "(cached) " >&6
6791 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6792 /* end confdefs.h. */
6795 // If the compiler admits that it is not ready for C++11, why torture it?
6796 // Hopefully, this will speed up the test.
6800 #error "This is not a C++ compiler"
6802 #elif __cplusplus < 201103L
6804 #error "This is not a C++11 compiler"
6811 namespace test_static_assert
6814 template <typename T>
6817 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6822 namespace test_final_override
6831 struct Derived : public Base
6833 virtual ~Derived() override {}
6834 virtual void f() override {}
6839 namespace test_double_right_angle_brackets
6842 template < typename T >
6845 typedef check<void> single_type;
6846 typedef check<check<void>> double_type;
6847 typedef check<check<check<void>>> triple_type;
6848 typedef check<check<check<check<void>>>> quadruple_type;
6852 namespace test_decltype
6865 namespace test_type_deduction
6868 template < typename T1, typename T2 >
6871 static const bool value = false;
6874 template < typename T >
6875 struct is_same<T, T>
6877 static const bool value = true;
6880 template < typename T1, typename T2 >
6882 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6888 test(const int c, volatile int v)
6890 static_assert(is_same<int, decltype(0)>::value == true, "");
6891 static_assert(is_same<int, decltype(c)>::value == false, "");
6892 static_assert(is_same<int, decltype(v)>::value == false, "");
6895 auto sumi = ac + av + 'x';
6896 auto sumf = ac + av + 1.0;
6897 static_assert(is_same<int, decltype(ac)>::value == true, "");
6898 static_assert(is_same<int, decltype(av)>::value == true, "");
6899 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6900 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6901 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6902 return (sumf > 0.0) ? sumi : add(c, v);
6907 namespace test_noexcept
6910 int f() { return 0; }
6911 int g() noexcept { return 0; }
6913 static_assert(noexcept(f()) == false, "");
6914 static_assert(noexcept(g()) == true, "");
6918 namespace test_constexpr
6921 template < typename CharT >
6922 unsigned long constexpr
6923 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6925 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6928 template < typename CharT >
6929 unsigned long constexpr
6930 strlen_c(const CharT *const s) noexcept
6932 return strlen_c_r(s, 0UL);
6935 static_assert(strlen_c("") == 0UL, "");
6936 static_assert(strlen_c("1") == 1UL, "");
6937 static_assert(strlen_c("example") == 7UL, "");
6938 static_assert(strlen_c("another\0example") == 7UL, "");
6942 namespace test_rvalue_references
6948 static constexpr int value = N;
6951 answer<1> f(int&) { return answer<1>(); }
6952 answer<2> f(const int&) { return answer<2>(); }
6953 answer<3> f(int&&) { return answer<3>(); }
6960 static_assert(decltype(f(i))::value == 1, "");
6961 static_assert(decltype(f(c))::value == 2, "");
6962 static_assert(decltype(f(0))::value == 3, "");
6967 namespace test_uniform_initialization
6972 static const int zero {};
6973 static const int one {1};
6976 static_assert(test::zero == 0, "");
6977 static_assert(test::one == 1, "");
6981 namespace test_lambdas
6987 auto lambda1 = [](){};
6988 auto lambda2 = lambda1;
6996 auto a = [](int i, int j){ return i + j; }(1, 2);
6997 auto b = []() -> int { return '0'; }();
6998 auto c = [=](){ return a + b; }();
6999 auto d = [&](){ return c; }();
7000 auto e = [a, &b](int x) mutable {
7001 const auto identity = [](int y){ return y; };
7002 for (auto i = 0; i < a; ++i)
7004 return x + identity(a + b);
7006 return a + b + c + d + e;
7012 const auto nullary = [](){ return 0; };
7013 const auto unary = [](int x){ return x; };
7014 using nullary_t = decltype(nullary);
7015 using unary_t = decltype(unary);
7016 const auto higher1st = [](nullary_t f){ return f(); };
7017 const auto higher2nd = [unary](nullary_t f1){
7018 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7020 return higher1st(nullary) + higher2nd(nullary)(unary);
7025 namespace test_variadic_templates
7031 template <int N0, int... N1toN>
7032 struct sum<N0, N1toN...>
7034 static constexpr auto value = N0 + sum<N1toN...>::value;
7040 static constexpr auto value = 0;
7043 static_assert(sum<>::value == 0, "");
7044 static_assert(sum<1>::value == 1, "");
7045 static_assert(sum<23>::value == 23, "");
7046 static_assert(sum<1, 2>::value == 3, "");
7047 static_assert(sum<5, 5, 11>::value == 21, "");
7048 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7052 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7053 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7055 namespace test_template_alias_sfinae
7060 template<typename T>
7061 using member = typename T::member_type;
7063 template<typename T>
7066 template<typename T>
7067 void func(member<T>*) {}
7071 void test() { func<foo>(0); }
7075 } // namespace cxx11
7077 #endif // __cplusplus >= 201103L
7082 if ac_fn_cxx_try_compile
"$LINENO"; then :
7083 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7085 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7087 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7090 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7091 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7095 if test x
$ac_success = xno
; then
7096 for alternative
in ${ax_cxx_compile_alternatives}; do
7097 switch
="-std=gnu++${alternative}"
7098 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7100 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7101 if eval \
${$cachevar+:} false
; then :
7102 $as_echo_n "(cached) " >&6
7106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7107 /* end confdefs.h. */
7110 // If the compiler admits that it is not ready for C++11, why torture it?
7111 // Hopefully, this will speed up the test.
7115 #error "This is not a C++ compiler"
7117 #elif __cplusplus < 201103L
7119 #error "This is not a C++11 compiler"
7126 namespace test_static_assert
7129 template <typename T>
7132 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7137 namespace test_final_override
7146 struct Derived : public Base
7148 virtual ~Derived() override {}
7149 virtual void f() override {}
7154 namespace test_double_right_angle_brackets
7157 template < typename T >
7160 typedef check<void> single_type;
7161 typedef check<check<void>> double_type;
7162 typedef check<check<check<void>>> triple_type;
7163 typedef check<check<check<check<void>>>> quadruple_type;
7167 namespace test_decltype
7180 namespace test_type_deduction
7183 template < typename T1, typename T2 >
7186 static const bool value = false;
7189 template < typename T >
7190 struct is_same<T, T>
7192 static const bool value = true;
7195 template < typename T1, typename T2 >
7197 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7203 test(const int c, volatile int v)
7205 static_assert(is_same<int, decltype(0)>::value == true, "");
7206 static_assert(is_same<int, decltype(c)>::value == false, "");
7207 static_assert(is_same<int, decltype(v)>::value == false, "");
7210 auto sumi = ac + av + 'x';
7211 auto sumf = ac + av + 1.0;
7212 static_assert(is_same<int, decltype(ac)>::value == true, "");
7213 static_assert(is_same<int, decltype(av)>::value == true, "");
7214 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7215 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7216 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7217 return (sumf > 0.0) ? sumi : add(c, v);
7222 namespace test_noexcept
7225 int f() { return 0; }
7226 int g() noexcept { return 0; }
7228 static_assert(noexcept(f()) == false, "");
7229 static_assert(noexcept(g()) == true, "");
7233 namespace test_constexpr
7236 template < typename CharT >
7237 unsigned long constexpr
7238 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7240 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7243 template < typename CharT >
7244 unsigned long constexpr
7245 strlen_c(const CharT *const s) noexcept
7247 return strlen_c_r(s, 0UL);
7250 static_assert(strlen_c("") == 0UL, "");
7251 static_assert(strlen_c("1") == 1UL, "");
7252 static_assert(strlen_c("example") == 7UL, "");
7253 static_assert(strlen_c("another\0example") == 7UL, "");
7257 namespace test_rvalue_references
7263 static constexpr int value = N;
7266 answer<1> f(int&) { return answer<1>(); }
7267 answer<2> f(const int&) { return answer<2>(); }
7268 answer<3> f(int&&) { return answer<3>(); }
7275 static_assert(decltype(f(i))::value == 1, "");
7276 static_assert(decltype(f(c))::value == 2, "");
7277 static_assert(decltype(f(0))::value == 3, "");
7282 namespace test_uniform_initialization
7287 static const int zero {};
7288 static const int one {1};
7291 static_assert(test::zero == 0, "");
7292 static_assert(test::one == 1, "");
7296 namespace test_lambdas
7302 auto lambda1 = [](){};
7303 auto lambda2 = lambda1;
7311 auto a = [](int i, int j){ return i + j; }(1, 2);
7312 auto b = []() -> int { return '0'; }();
7313 auto c = [=](){ return a + b; }();
7314 auto d = [&](){ return c; }();
7315 auto e = [a, &b](int x) mutable {
7316 const auto identity = [](int y){ return y; };
7317 for (auto i = 0; i < a; ++i)
7319 return x + identity(a + b);
7321 return a + b + c + d + e;
7327 const auto nullary = [](){ return 0; };
7328 const auto unary = [](int x){ return x; };
7329 using nullary_t = decltype(nullary);
7330 using unary_t = decltype(unary);
7331 const auto higher1st = [](nullary_t f){ return f(); };
7332 const auto higher2nd = [unary](nullary_t f1){
7333 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7335 return higher1st(nullary) + higher2nd(nullary)(unary);
7340 namespace test_variadic_templates
7346 template <int N0, int... N1toN>
7347 struct sum<N0, N1toN...>
7349 static constexpr auto value = N0 + sum<N1toN...>::value;
7355 static constexpr auto value = 0;
7358 static_assert(sum<>::value == 0, "");
7359 static_assert(sum<1>::value == 1, "");
7360 static_assert(sum<23>::value == 23, "");
7361 static_assert(sum<1, 2>::value == 3, "");
7362 static_assert(sum<5, 5, 11>::value == 21, "");
7363 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7367 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7368 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7370 namespace test_template_alias_sfinae
7375 template<typename T>
7376 using member = typename T::member_type;
7378 template<typename T>
7381 template<typename T>
7382 void func(member<T>*) {}
7386 void test() { func<foo>(0); }
7390 } // namespace cxx11
7392 #endif // __cplusplus >= 201103L
7397 if ac_fn_cxx_try_compile
"$LINENO"; then :
7402 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7405 eval ac_res
=\$
$cachevar
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7407 $as_echo "$ac_res" >&6; }
7408 if eval test x\$
$cachevar = xyes
; then
7410 if test -n "$CXXCPP" ; then
7411 CXXCPP
="$CXXCPP $switch"
7419 if test x
$ac_success = xno
; then
7420 for alternative
in ${ax_cxx_compile_alternatives}; do
7421 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7422 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7424 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7425 if eval \${$cachevar+:} false; then :
7426 $as_echo_n "(cached
) " >&6
7430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7431 /* end confdefs.h. */
7434 // If the compiler admits that it is not ready for C++11, why torture it?
7435 // Hopefully, this will speed up the test.
7439 #error "This is not a C
++ compiler
"
7441 #elif __cplusplus < 201103L
7443 #error "This is not a C
++11 compiler
"
7450 namespace test_static_assert
7453 template <typename T>
7456 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7461 namespace test_final_override
7470 struct Derived : public Base
7472 virtual ~Derived() override {}
7473 virtual void f() override {}
7478 namespace test_double_right_angle_brackets
7481 template < typename T >
7484 typedef check<void> single_type;
7485 typedef check<check<void>> double_type;
7486 typedef check<check<check<void>>> triple_type;
7487 typedef check<check<check<check<void>>>> quadruple_type;
7491 namespace test_decltype
7504 namespace test_type_deduction
7507 template < typename T1, typename T2 >
7510 static const bool value = false;
7513 template < typename T >
7514 struct is_same<T, T>
7516 static const bool value = true;
7519 template < typename T1, typename T2 >
7521 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7527 test(const int c, volatile int v)
7529 static_assert(is_same<int, decltype(0)>::value == true, "");
7530 static_assert(is_same<int, decltype(c)>::value == false, "");
7531 static_assert(is_same<int, decltype(v)>::value == false, "");
7534 auto sumi = ac + av + 'x';
7535 auto sumf = ac + av + 1.0;
7536 static_assert(is_same<int, decltype(ac)>::value == true, "");
7537 static_assert(is_same<int, decltype(av)>::value == true, "");
7538 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7539 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7540 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7541 return (sumf > 0.0) ? sumi : add(c, v);
7546 namespace test_noexcept
7549 int f() { return 0; }
7550 int g() noexcept { return 0; }
7552 static_assert(noexcept(f()) == false, "");
7553 static_assert(noexcept(g()) == true, "");
7557 namespace test_constexpr
7560 template < typename CharT >
7561 unsigned long constexpr
7562 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7564 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7567 template < typename CharT >
7568 unsigned long constexpr
7569 strlen_c(const CharT *const s) noexcept
7571 return strlen_c_r(s, 0UL);
7574 static_assert(strlen_c("") == 0UL, "");
7575 static_assert(strlen_c("1") == 1UL, "");
7576 static_assert(strlen_c("example
") == 7UL, "");
7577 static_assert(strlen_c("another\
0example
") == 7UL, "");
7581 namespace test_rvalue_references
7587 static constexpr int value = N;
7590 answer<1> f(int&) { return answer<1>(); }
7591 answer<2> f(const int&) { return answer<2>(); }
7592 answer<3> f(int&&) { return answer<3>(); }
7599 static_assert(decltype(f(i))::value == 1, "");
7600 static_assert(decltype(f(c))::value == 2, "");
7601 static_assert(decltype(f(0))::value == 3, "");
7606 namespace test_uniform_initialization
7611 static const int zero {};
7612 static const int one {1};
7615 static_assert(test::zero == 0, "");
7616 static_assert(test::one == 1, "");
7620 namespace test_lambdas
7626 auto lambda1 = [](){};
7627 auto lambda2 = lambda1;
7635 auto a = [](int i, int j){ return i + j; }(1, 2);
7636 auto b = []() -> int { return '0'; }();
7637 auto c = [=](){ return a + b; }();
7638 auto d = [&](){ return c; }();
7639 auto e = [a, &b](int x) mutable {
7640 const auto identity = [](int y){ return y; };
7641 for (auto i = 0; i < a; ++i)
7643 return x + identity(a + b);
7645 return a + b + c + d + e;
7651 const auto nullary = [](){ return 0; };
7652 const auto unary = [](int x){ return x; };
7653 using nullary_t = decltype(nullary);
7654 using unary_t = decltype(unary);
7655 const auto higher1st = [](nullary_t f){ return f(); };
7656 const auto higher2nd = [unary](nullary_t f1){
7657 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7659 return higher1st(nullary) + higher2nd(nullary)(unary);
7664 namespace test_variadic_templates
7670 template <int N0, int... N1toN>
7671 struct sum<N0, N1toN...>
7673 static constexpr auto value = N0 + sum<N1toN...>::value;
7679 static constexpr auto value = 0;
7682 static_assert(sum<>::value == 0, "");
7683 static_assert(sum<1>::value == 1, "");
7684 static_assert(sum<23>::value == 23, "");
7685 static_assert(sum<1, 2>::value == 3, "");
7686 static_assert(sum<5, 5, 11>::value == 21, "");
7687 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7691 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7692 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7694 namespace test_template_alias_sfinae
7699 template<typename T>
7700 using member = typename T::member_type;
7702 template<typename T>
7705 template<typename T>
7706 void func(member<T>*) {}
7710 void test() { func<foo>(0); }
7714 } // namespace cxx11
7716 #endif // __cplusplus >= 201103L
7721 if ac_fn_cxx_try_compile "$LINENO"; then :
7726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7729 eval ac_res=\$$cachevar
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7731 $as_echo "$ac_res" >&6; }
7732 if eval test x\$$cachevar = xyes; then
7734 if test -n "$CXXCPP" ; then
7735 CXXCPP="$CXXCPP $switch"
7741 if test x$ac_success = xyes; then
7746 CXX_FOR_BUILD="$CXX"
7747 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7748 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7749 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7750 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7751 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7753 ac_cpp='$CPP $CPPFLAGS'
7754 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7755 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7756 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7758 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7759 if test x$ac_success = xno; then
7760 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7763 if test x$ac_success = xno; then
7764 HAVE_CXX11_FOR_BUILD=0
7765 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7766 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7768 HAVE_CXX11_FOR_BUILD=1
7770 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7778 # Check whether --enable-pgo-build was given.
7779 if test "${enable_pgo_build+set}" = set; then :
7780 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7786 # Issue errors and warnings for invalid/strange PGO build combinations.
7787 case "$have_compiler:$host:$target:$enable_pgo_build" in
7790 # Allow the PGO build only if we aren't building a compiler and
7791 # we are in a native configuration.
7792 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7794 # Disallow the PGO bootstrap if we are building a compiler.
7795 yes:*:*:yes |
yes:*:*:lto
)
7796 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7799 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7803 if test "$enable_pgo_build" != "no"; then
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7805 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7806 old_CFLAGS
="$CFLAGS"
7807 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7808 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7811 /* end confdefs.h. */
7814 if ac_fn_c_try_compile
"$LINENO"; then :
7817 PGO_BUILD_GEN_CFLAGS
=
7819 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7820 CFLAGS
="$old_CFLAGS"
7821 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7823 $as_echo "yes" >&6; }
7824 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7827 $as_echo "no" >&6; }
7828 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7831 if test "$enable_pgo_build" = "lto"; then
7832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7833 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7834 old_CFLAGS
="$CFLAGS"
7835 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7836 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7837 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7841 if ac_fn_c_try_compile
"$LINENO"; then :
7844 PGO_BUILD_LTO_CFLAGS
=
7846 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7847 CFLAGS
="$old_CFLAGS"
7848 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7850 $as_echo "yes" >&6; }
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7853 $as_echo "no" >&6; }
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7855 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7863 # Used for setting $lt_cv_objdir
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7865 $as_echo_n "checking for objdir... " >&6; }
7866 if ${lt_cv_objdir+:} false
; then :
7867 $as_echo_n "(cached) " >&6
7869 rm -f .libs
2>/dev
/null
7870 mkdir .libs
2>/dev
/null
7871 if test -d .libs
; then
7874 # MS-DOS does not allow filenames that begin with a dot.
7877 rmdir .libs
2>/dev
/null
7879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7880 $as_echo "$lt_cv_objdir" >&6; }
7881 objdir
=$lt_cv_objdir
7887 cat >>confdefs.h
<<_ACEOF
7888 #define LT_OBJDIR "$lt_cv_objdir/"
7893 # Check for GMP, MPFR and MPC
7894 gmplibs
="-lmpc -lmpfr -lgmp"
7898 # Specify a location for mpc
7899 # check for this first so it ends up on the link line before mpfr.
7901 # Check whether --with-mpc was given.
7902 if test "${with_mpc+set}" = set; then :
7907 # Check whether --with-mpc-include was given.
7908 if test "${with_mpc_include+set}" = set; then :
7909 withval
=$with_mpc_include;
7913 # Check whether --with-mpc-lib was given.
7914 if test "${with_mpc_lib+set}" = set; then :
7915 withval
=$with_mpc_lib;
7919 if test "x$with_mpc" != x
; then
7920 gmplibs
="-L$with_mpc/lib $gmplibs"
7921 gmpinc
="-I$with_mpc/include $gmpinc"
7923 if test "x$with_mpc_include" != x
; then
7924 gmpinc
="-I$with_mpc_include $gmpinc"
7926 if test "x$with_mpc_lib" != x
; then
7927 gmplibs
="-L$with_mpc_lib $gmplibs"
7929 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
7930 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7931 gmpinc
='-I$$s/mpc/src '"$gmpinc"
7932 # Do not test the mpc version. Assume that it is sufficient, since
7933 # it is in the source tree, and the library has not been built yet
7934 # but it would be included on the link line in the version check below
7935 # hence making the test fail.
7939 # Specify a location for mpfr
7940 # check for this first so it ends up on the link line before gmp.
7942 # Check whether --with-mpfr was given.
7943 if test "${with_mpfr+set}" = set; then :
7948 # Check whether --with-mpfr-include was given.
7949 if test "${with_mpfr_include+set}" = set; then :
7950 withval
=$with_mpfr_include;
7954 # Check whether --with-mpfr-lib was given.
7955 if test "${with_mpfr_lib+set}" = set; then :
7956 withval
=$with_mpfr_lib;
7960 if test "x$with_mpfr" != x
; then
7961 gmplibs
="-L$with_mpfr/lib $gmplibs"
7962 gmpinc
="-I$with_mpfr/include $gmpinc"
7964 if test "x$with_mpfr_include" != x
; then
7965 gmpinc
="-I$with_mpfr_include $gmpinc"
7967 if test "x$with_mpfr_lib" != x
; then
7968 gmplibs
="-L$with_mpfr_lib $gmplibs"
7970 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
7971 # MPFR v3.1.0 moved the sources into a src sub-directory.
7972 if ! test -d ${srcdir}/mpfr
/src
; then
7973 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7975 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7976 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7977 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7978 # Do not test the mpfr version. Assume that it is sufficient, since
7979 # it is in the source tree, and the library has not been built yet
7980 # but it would be included on the link line in the version check below
7981 # hence making the test fail.
7985 # Specify a location for gmp
7987 # Check whether --with-gmp was given.
7988 if test "${with_gmp+set}" = set; then :
7993 # Check whether --with-gmp-include was given.
7994 if test "${with_gmp_include+set}" = set; then :
7995 withval
=$with_gmp_include;
7999 # Check whether --with-gmp-lib was given.
8000 if test "${with_gmp_lib+set}" = set; then :
8001 withval
=$with_gmp_lib;
8006 if test "x$with_gmp" != x
; then
8007 gmplibs
="-L$with_gmp/lib $gmplibs"
8008 gmpinc
="-I$with_gmp/include $gmpinc"
8010 if test "x$with_gmp_include" != x
; then
8011 gmpinc
="-I$with_gmp_include $gmpinc"
8013 if test "x$with_gmp_lib" != x
; then
8014 gmplibs
="-L$with_gmp_lib $gmplibs"
8016 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8017 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8018 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8019 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8020 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8021 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8022 # Do not test the gmp version. Assume that it is sufficient, since
8023 # it is in the source tree, and the library has not been built yet
8024 # but it would be included on the link line in the version check below
8025 # hence making the test fail.
8029 if test -d ${srcdir}/gcc
&& test "x$have_gmp" = xno
; then
8031 saved_CFLAGS
="$CFLAGS"
8032 CFLAGS
="$CFLAGS $gmpinc"
8033 # Check for the recommended and required versions of GMP.
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8035 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8037 /* end confdefs.h. */
8043 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8044 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8045 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8053 if ac_fn_c_try_compile
"$LINENO"; then :
8054 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8055 /* end confdefs.h. */
8061 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8062 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8063 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8071 if ac_fn_c_try_compile
"$LINENO"; then :
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8073 $as_echo "yes" >&6; }
8075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8076 $as_echo "buggy but acceptable" >&6; }
8078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8081 $as_echo "no" >&6; }; have_gmp
=no
8083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8085 # If we have GMP, check the MPFR version.
8086 if test x
"$have_gmp" = xyes
; then
8087 # Check for the recommended and required versions of MPFR.
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8089 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8091 /* end confdefs.h. */
8098 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8106 if ac_fn_c_try_compile
"$LINENO"; then :
8107 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8108 /* end confdefs.h. */
8115 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8123 if ac_fn_c_try_compile
"$LINENO"; then :
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8125 $as_echo "yes" >&6; }
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8128 $as_echo "buggy but acceptable" >&6; }
8130 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8133 $as_echo "no" >&6; }; have_gmp
=no
8135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8138 # Check for the MPC header version.
8139 if test x
"$have_gmp" = xyes
; then
8140 # Check for the recommended and required versions of MPC.
8141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8142 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8143 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8144 /* end confdefs.h. */
8150 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8158 if ac_fn_c_try_compile
"$LINENO"; then :
8159 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8166 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8174 if ac_fn_c_try_compile
"$LINENO"; then :
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8176 $as_echo "yes" >&6; }
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8179 $as_echo "buggy but acceptable" >&6; }
8181 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8184 $as_echo "no" >&6; }; have_gmp
=no
8186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8189 # Now check the MPFR library.
8190 if test x
"$have_gmp" = xyes
; then
8192 LIBS
="$LIBS $gmplibs"
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8194 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8196 /* end confdefs.h. */
8208 mpfr_atan2 (n, n, x, MPFR_RNDN);
8209 mpfr_erfc (n, x, MPFR_RNDN);
8210 mpfr_subnormalize (x, t, MPFR_RNDN);
8214 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8215 mpc_cosh (c, c, MPC_RNDNN);
8216 mpc_pow (c, c, c, MPC_RNDNN);
8217 mpc_acosh (c, c, MPC_RNDNN);
8224 if ac_fn_c_try_link
"$LINENO"; then :
8225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8226 $as_echo "yes" >&6; }
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8229 $as_echo "no" >&6; }; have_gmp
=no
8231 rm -f core conftest.err conftest.
$ac_objext \
8232 conftest
$ac_exeext conftest.
$ac_ext
8236 CFLAGS
="$saved_CFLAGS"
8238 # The library versions listed in the error message below should match
8239 # the HARD-minimums enforced above.
8240 if test x
$have_gmp != xyes
; then
8241 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8242 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8243 their locations. Source code for these libraries can be found at
8244 their respective hosting sites as well as at
8245 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8246 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8247 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8248 make sure that you have installed both the libraries and the header
8249 files. They may be located in separate packages." "$LINENO" 5
8253 # Flags needed for both GMP, MPFR and/or MPC.
8261 # Libraries to use for stage1 or when not bootstrapping.
8263 # Check whether --with-stage1-libs was given.
8264 if test "${with_stage1_libs+set}" = set; then :
8265 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8268 stage1_libs
=$withval
8276 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8277 # default is yes if gcc is being built; no otherwise. The reason for
8278 # this default is that gdb is sometimes linked against GNU Source
8279 # Highlight, which is a shared library that uses C++ exceptions. In
8280 # this case, -static-libstdc++ will cause crashes.
8282 # Check whether --with-static-standard-libraries was given.
8283 if test "${with_static_standard_libraries+set}" = set; then :
8284 withval
=$with_static_standard_libraries;
8286 with_static_standard_libraries
=auto
8289 if test "$with_static_standard_libraries" = auto
; then
8290 with_static_standard_libraries
=$have_compiler
8293 # Linker flags to use for stage1 or when not bootstrapping.
8295 # Check whether --with-stage1-ldflags was given.
8296 if test "${with_stage1_ldflags+set}" = set; then :
8297 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8300 stage1_ldflags
=$withval
8304 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8305 # if supported. But if the user explicitly specified the libraries to use,
8306 # trust that they are doing what they want.
8307 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8308 -a "$have_static_libs" = yes; then
8309 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8315 # Libraries to use for stage2 and later builds.
8317 # Check whether --with-boot-libs was given.
8318 if test "${with_boot_libs+set}" = set; then :
8319 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8322 poststage1_libs
=$withval
8330 # Linker flags to use for stage2 and later builds.
8332 # Check whether --with-boot-ldflags was given.
8333 if test "${with_boot_ldflags+set}" = set; then :
8334 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8337 poststage1_ldflags
=$withval
8341 # In stages 2 and 3, default to linking libstdc++ and libgcc
8342 # statically. But if the user explicitly specified the libraries to
8343 # use, trust that they are doing what they want.
8344 if test "$poststage1_libs" = ""; then
8345 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8351 # GCC GRAPHITE dependency isl.
8352 # Basic setup is inlined here, actual checks are in config/isl.m4
8355 # Check whether --with-isl was given.
8356 if test "${with_isl+set}" = set; then :
8361 # Treat --without-isl as a request to disable
8362 # GRAPHITE support and skip all following checks.
8363 if test "x$with_isl" != "xno"; then
8367 # Check whether --with-isl-include was given.
8368 if test "${with_isl_include+set}" = set; then :
8369 withval
=$with_isl_include;
8373 # Check whether --with-isl-lib was given.
8374 if test "${with_isl_lib+set}" = set; then :
8375 withval
=$with_isl_lib;
8379 # Check whether --enable-isl-version-check was given.
8380 if test "${enable_isl_version_check+set}" = set; then :
8381 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8383 ENABLE_ISL_CHECK
=yes
8387 # Initialize isllibs and islinc.
8396 isllibs
="-L$with_isl/lib"
8397 islinc
="-I$with_isl/include"
8400 if test "x${with_isl_include}" != x
; then
8401 islinc
="-I$with_isl_include"
8403 if test "x${with_isl_lib}" != x
; then
8404 isllibs
="-L$with_isl_lib"
8406 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8407 && test -d ${srcdir}/isl
; then
8408 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8409 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8412 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8415 isllibs
="${isllibs} -lisl"
8419 if test "${ENABLE_ISL_CHECK}" = yes ; then
8420 _isl_saved_CFLAGS
=$CFLAGS
8421 _isl_saved_LDFLAGS
=$LDFLAGS
8422 _isl_saved_LIBS
=$LIBS
8424 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8425 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8426 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8429 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8431 /* end confdefs.h. */
8432 #include <isl/schedule.h>
8436 isl_options_set_schedule_serialize_sccs (NULL, 0);
8441 if ac_fn_c_try_link
"$LINENO"; then :
8446 rm -f core conftest.err conftest.
$ac_objext \
8447 conftest
$ac_exeext conftest.
$ac_ext
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8449 $as_echo "$gcc_cv_isl" >&6; }
8451 if test "${gcc_cv_isl}" = no
; then
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8453 $as_echo "required isl version is 0.15 or later" >&6; }
8456 CFLAGS
=$_isl_saved_CFLAGS
8457 LDFLAGS
=$_isl_saved_LDFLAGS
8458 LIBS
=$_isl_saved_LIBS
8466 if test "x${with_isl}" = xno
; then
8467 graphite_requested
=no
8468 elif test "x${with_isl}" != x \
8469 ||
test "x${with_isl_include}" != x \
8470 ||
test "x${with_isl_lib}" != x
; then
8471 graphite_requested
=yes
8473 graphite_requested
=no
8478 if test "${gcc_cv_isl}" = no
; then
8483 if test "${graphite_requested}" = yes \
8484 && test "x${isllibs}" = x \
8485 && test "x${islinc}" = x
; then
8487 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8493 # If the isl check failed, disable builds of in-tree variant of isl
8494 if test "x$with_isl" = xno ||
8495 test "x$gcc_cv_isl" = xno
; then
8496 noconfigdirs
="$noconfigdirs isl"
8503 # Check for LTO support.
8504 # Check whether --enable-lto was given.
8505 if test "${enable_lto+set}" = set; then :
8506 enableval
=$enable_lto; enable_lto
=$enableval
8508 enable_lto
=yes; default_enable_lto
=yes
8517 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8518 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8519 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8528 if test $target_elf = yes; then :
8529 # ELF platforms build the lto-plugin always.
8530 build_lto_plugin
=yes
8533 if test x
"$default_enable_lto" = x
"yes" ; then
8535 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8536 # On other non-ELF platforms, LTO has yet to be validated.
8540 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8541 # It would also be nice to check the binutils support, but we don't
8542 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8543 # warn during gcc/ subconfigure; unless you're bootstrapping with
8544 # -flto it won't be needed until after installation anyway.
8546 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8547 *) if test x
"$enable_lto" = x
"yes"; then
8548 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8553 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8554 # Build it unless LTO was explicitly disabled.
8556 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8563 # Check whether --enable-linker-plugin-configure-flags was given.
8564 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8565 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8567 extra_linker_plugin_configure_flags
=
8571 # Check whether --enable-linker-plugin-flags was given.
8572 if test "${enable_linker_plugin_flags+set}" = set; then :
8573 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8575 extra_linker_plugin_flags
=
8580 # Enable --enable-host-shared.
8581 # Checked early to determine whether jit is an 'all' language
8582 # Check whether --enable-host-shared was given.
8583 if test "${enable_host_shared+set}" = set; then :
8584 enableval
=$enable_host_shared; host_shared
=$enableval
8586 x86_64-
*-darwin* | aarch64-
*-darwin*)
8587 if test x
$host_shared != xyes
; then
8588 # PIC is the default, and actually cannot be switched off.
8589 echo configure.ac
: warning
: PIC code is required
for the configured target
, host-shared setting ignored.
1>&2
8596 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8597 *) host_shared
=no
;;
8603 # Enable --enable-host-pie.
8604 # Check whether --enable-host-pie was given.
8605 if test "${enable_host_pie+set}" = set; then :
8606 enableval
=$enable_host_pie;
8611 if test x
$enable_host_shared = xyes
; then
8613 elif test x
$enable_host_pie = xyes
; then
8621 # By default, C and C++ are the only stage 1 languages.
8622 stage1_languages
=,c
,
8624 # Target libraries that we bootstrap.
8625 bootstrap_target_libs
=,target-libgcc
,
8627 # Figure out what language subdirectories are present.
8628 # Look if the user specified --enable-languages="..."; if not, use
8629 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8631 # NB: embedded tabs in this IF block -- do not untabify
8632 if test -d ${srcdir}/gcc
; then
8633 if test x
"${enable_languages+set}" != xset
; then
8634 if test x
"${LANGUAGES+set}" = xset
; then
8635 enable_languages
="${LANGUAGES}"
8636 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8638 enable_languages
=default
8641 if test x
"${enable_languages}" = x ||
8642 test x
"${enable_languages}" = xyes
;
8644 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8648 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8650 # 'f95' is the old name for the 'fortran' language. We issue a warning
8651 # and make the substitution.
8652 case ,${enable_languages}, in
8654 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8655 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8659 # If bootstrapping, C++ must be enabled.
8660 case ",$enable_languages,:$enable_bootstrap" in
8663 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8664 enable_languages
="${enable_languages},c++"
8666 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8671 # First scan to see if an enabled language requires some other language.
8672 # We assume that a given config-lang.in will list all the language
8673 # front ends it requires, even if some are required indirectly.
8674 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8675 case ${lang_frag} in
8677 # The odd quoting in the next line works around
8678 # an apparent bug in bash 1.12 on linux.
8679 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8681 # From the config-lang.in, get $language, $lang_requires, and
8682 # $lang_requires_boot_languages.
8685 lang_requires_boot_languages
=
8686 # set srcdir during sourcing lang_frag to the gcc dir.
8687 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8688 # polutes this shell
8689 saved_srcdir
=${srcdir}
8690 srcdir
=${srcdir}/gcc .
${lang_frag}
8691 srcdir
=${saved_srcdir}
8692 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8693 case ,${enable_languages}, in
8698 echo " \`$other' language required by \`$language'; enabling" 1>&2
8699 enable_languages
="${enable_languages},${other}"
8703 for other
in ${lang_requires_boot_languages} ; do
8704 if test "$other" != "c"; then
8705 case ,${enable_stage1_languages}, in
8710 case ,${enable_languages}, in
8712 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8713 enable_stage1_languages
="$enable_stage1_languages,${other}"
8724 new_enable_languages
=,c
,
8726 # If LTO is enabled, add the LTO front end.
8727 if test "$enable_lto" = "yes" ; then
8728 case ,${enable_languages}, in
8730 *) enable_languages
="${enable_languages},lto" ;;
8732 if test "${build_lto_plugin}" = "yes" ; then
8733 configdirs
="$configdirs lto-plugin"
8737 # If we're building an offloading compiler, add the LTO front end.
8738 if test x
"$enable_as_accelerator_for" != x
; then
8739 case ,${enable_languages}, in
8741 *) enable_languages
="${enable_languages},lto" ;;
8745 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8746 potential_languages
=,c
,
8748 enabled_target_libs
=
8749 disabled_target_libs
=
8751 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8752 case ${lang_frag} in
8754 # The odd quoting in the next line works around
8755 # an apparent bug in bash 1.12 on linux.
8756 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8758 # From the config-lang.in, get $language, $target_libs,
8759 # $lang_dirs, $boot_language, and $build_by_default
8765 build_by_default
=yes
8766 # set srcdir during sourcing. See above about save & restore
8767 saved_srcdir
=${srcdir}
8768 srcdir
=${srcdir}/gcc .
${lang_frag}
8769 srcdir
=${saved_srcdir}
8770 if test x
${language} = x
; then
8771 echo "${lang_frag} doesn't set \$language." 1>&2
8775 if test "$language" = "c++"; then
8780 # C is always enabled, so no need to add it again
8781 if test "$language" != "c"; then
8782 case ,${enable_languages}, in
8784 # Language was explicitly selected; include it
8788 # All languages are enabled
8792 # 'default' was selected, select it if it is a default language
8793 add_this_lang
=${build_by_default}
8798 # Disable languages that need other directories if these aren't available.
8799 for i
in $subdir_requires; do
8800 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8801 case ${add_this_lang} in
8803 # Specifically requested language; tell them.
8804 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8808 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8809 add_this_lang
=unsupported
8813 add_this_lang
=unsupported
8818 # Disable Ada if no preexisting GNAT is available.
8819 case ${add_this_lang}:${language}:${have_gnat} in
8821 # Specifically requested language; tell them.
8822 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8825 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8826 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8827 add_this_lang
=unsupported
8831 add_this_lang
=unsupported
8835 # Disable D if no preexisting GDC is available.
8836 case ${add_this_lang}:${language}:${have_gdc} in
8838 # Specifically requested language; tell them.
8839 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8843 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8844 add_this_lang
=unsupported
8848 add_this_lang
=unsupported
8852 # Disable jit if -enable-host-shared not specified
8853 # but not if building for Mingw. All code in Windows
8854 # is position independent code (PIC).
8858 case ${add_this_lang}:${language}:${host_shared} in
8860 # PR jit/64780: explicitly specify --enable-host-shared
8862 Enabling language \"jit\" requires --enable-host-shared.
8864 --enable-host-shared typically slows the rest of the compiler down by
8865 a few %, so you must explicitly enable it.
8867 If you want to build both the jit and the regular compiler, it is often
8868 best to do this via two separate configure/builds, in separate
8869 directories, to avoid imposing the performance cost of
8870 --enable-host-shared on the regular compiler." "$LINENO" 5
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8874 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8875 add_this_lang
=unsupported
8879 add_this_lang
=unsupported
8885 # Disable a language that is unsupported by the target.
8886 case "${add_this_lang}: $unsupported_languages " in
8890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8891 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8892 add_this_lang
=unsupported
8896 case $add_this_lang in
8898 # Remove language-dependent dirs.
8899 disabled_target_libs
="$disabled_target_libs $target_libs"
8900 noconfigdirs
="$noconfigdirs $lang_dirs"
8903 # Remove language-dependent dirs; still show language as supported.
8904 disabled_target_libs
="$disabled_target_libs $target_libs"
8905 noconfigdirs
="$noconfigdirs $lang_dirs"
8906 potential_languages
="${potential_languages}${language},"
8909 new_enable_languages
="${new_enable_languages}${language},"
8910 potential_languages
="${potential_languages}${language},"
8911 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
8912 enabled_target_libs
="$enabled_target_libs $target_libs"
8913 case "${boot_language}:,$enable_stage1_languages," in
8914 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
8915 # Add to (comma-separated) list of stage 1 languages.
8916 case ",$stage1_languages," in
8917 *,$language,* |
,yes, |
,all
,) ;;
8918 *) stage1_languages
="${stage1_languages}${language}," ;;
8920 # We need to bootstrap any supporting libraries.
8921 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8930 # Add target libraries which are only needed for disabled languages
8932 if test -n "$disabled_target_libs"; then
8933 for dir
in $disabled_target_libs; do
8934 case " $enabled_target_libs " in
8936 *) noconfigdirs
="$noconfigdirs $dir" ;;
8941 # Check whether --enable-stage1-languages was given.
8942 if test "${enable_stage1_languages+set}" = set; then :
8943 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8945 # Set it to something that will have no effect in the loop below
8946 enable_stage1_languages
=c
;;
8948 enable_stage1_languages
=`echo $new_enable_languages | \
8949 sed -e "s/^,//" -e "s/,$//" ` ;;
8951 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
8952 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8955 # Add "good" languages from enable_stage1_languages to stage1_languages,
8956 # while "bad" languages go in missing_languages. Leave no duplicates.
8957 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8958 case $potential_languages in
8960 case $stage1_languages in
8962 *) stage1_languages
="$stage1_languages$i," ;;
8965 case $missing_languages in
8967 *) missing_languages
="$missing_languages$i," ;;
8974 # Remove leading/trailing commas that were added for simplicity
8975 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8976 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8977 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8978 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8980 if test "x$missing_languages" != x
; then
8982 The following requested languages could not be built: ${missing_languages}
8983 Supported languages are: ${potential_languages}" "$LINENO" 5
8985 if test "x$new_enable_languages" != "x$enable_languages"; then
8986 echo The following languages will be built
: ${new_enable_languages}
8987 enable_languages
="$new_enable_languages"
8991 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8994 # Handle --disable-<component> generically.
8995 for dir
in $configdirs $build_configdirs $target_configdirs ; do
8996 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8997 varname
=`echo $dirname | sed -e s/+/_/g`
8998 if eval test x\
${enable_${varname}} "=" xno
; then
8999 noconfigdirs
="$noconfigdirs $dir"
9003 # Check for Boehm's garbage collector
9004 # Check whether --enable-objc-gc was given.
9005 if test "${enable_objc_gc+set}" = set; then :
9006 enableval
=$enable_objc_gc;
9010 # Check whether --with-target-bdw-gc was given.
9011 if test "${with_target_bdw_gc+set}" = set; then :
9012 withval
=$with_target_bdw_gc;
9016 # Check whether --with-target-bdw-gc-include was given.
9017 if test "${with_target_bdw_gc_include+set}" = set; then :
9018 withval
=$with_target_bdw_gc_include;
9022 # Check whether --with-target-bdw-gc-lib was given.
9023 if test "${with_target_bdw_gc_lib+set}" = set; then :
9024 withval
=$with_target_bdw_gc_lib;
9028 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9030 $as_echo_n "checking for bdw garbage collector... " >&6; }
9031 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9033 $as_echo "using bdw-gc in default locations" >&6; }
9035 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9036 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9037 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9038 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9041 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9046 # Disable libitm, libsanitizer, libvtv if we're not building C++
9047 case ,${enable_languages}, in
9049 # Disable libitm, libsanitizer if we're not building libstdc++
9050 case "${noconfigdirs}" in
9051 *target-libstdc
++-v3*)
9052 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9058 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9062 # If gcc/ is not in the source tree then we'll not be building a
9063 # target compiler, assume in that case we don't want to build any
9064 # target libraries or tools.
9066 # This was added primarily for the benefit for binutils-gdb who reuse
9067 # this configure script, but don't always have target tools available.
9068 if test ! -d ${srcdir}/gcc
; then
9069 skipdirs
="${skipdirs} ${target_configdirs}"
9072 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9073 # $build_configdirs and $target_configdirs.
9074 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9077 for dir
in .
$skipdirs $noconfigdirs ; do
9078 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9079 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9080 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9081 if test -r $srcdir/$dirname/configure
; then
9082 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9085 notsupp
="$notsupp $dir"
9089 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9090 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9091 if test -r $srcdir/$dirname/configure
; then
9092 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9095 notsupp
="$notsupp $dir"
9099 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9100 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9101 if test -r $srcdir/$dirname/configure
; then
9102 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9105 notsupp
="$notsupp $dir"
9111 # Quietly strip out all directories which aren't configurable in this tree.
9112 # This relies on all configurable subdirectories being autoconfiscated, which
9114 build_configdirs_all
="$build_configdirs"
9116 for i
in ${build_configdirs_all} ; do
9117 j
=`echo $i | sed -e s/build-//g`
9118 if test -f ${srcdir}/$j/configure
; then
9119 build_configdirs
="${build_configdirs} $i"
9123 configdirs_all
="$configdirs"
9125 for i
in ${configdirs_all} ; do
9126 if test -f ${srcdir}/$i/configure
; then
9127 configdirs
="${configdirs} $i"
9131 target_configdirs_all
="$target_configdirs"
9133 for i
in ${target_configdirs_all} ; do
9134 j
=`echo $i | sed -e s/target-//g`
9135 if test -f ${srcdir}/$j/configure
; then
9136 target_configdirs
="${target_configdirs} $i"
9140 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9141 # so we have to add it after the preceding checks.
9142 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9144 case " $configdirs " in
9146 # If we can build libiberty, we can also build libiberty-linker-plugin.
9147 configdirs
="$configdirs libiberty-linker-plugin"
9148 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9149 --with-libiberty=../libiberty-linker-plugin";;
9151 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9155 # Sometimes we have special requirements for the host libiberty.
9156 extra_host_libiberty_configure_flags
=
9157 case " $configdirs " in
9158 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9159 # When these are to be built as shared libraries, the same applies to
9161 extra_host_libiberty_configure_flags
=--enable-shared
9166 # Sometimes we have special requirements for the host zlib.
9167 extra_host_zlib_configure_flags
=
9168 case " $configdirs " in
9170 # When bfd is to be built as a shared library, the same applies to
9172 if test "$enable_shared" = "yes"; then
9173 extra_host_zlib_configure_flags
=--enable-host-shared
9179 # Produce a warning message for the subdirs we can't configure.
9180 # This isn't especially interesting in the Cygnus tree, but in the individual
9181 # FSF releases, it's important to let people know when their machine isn't
9182 # supported by the one or two programs in a package.
9184 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9185 # If $appdirs is non-empty, at least one of those directories must still
9186 # be configured, or we error out. (E.g., if the gas release supports a
9187 # specified target in some subdirs but not the gas subdir, we shouldn't
9188 # pretend that all is well.)
9189 if test -n "$appdirs" ; then
9190 for dir
in $appdirs ; do
9191 if test -r $dir/Makefile.
in ; then
9192 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9196 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9202 if test -n "$appdirs" ; then
9203 echo "*** This configuration is not supported by this package." 1>&2
9207 # Okay, some application will build, or we don't care to check. Still
9208 # notify of subdirs not getting built.
9209 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9210 echo " ${notsupp}" 1>&2
9211 echo " (Any other directories should still work fine.)" 1>&2
9219 # To find our prefix, in gcc_cv_tool_prefix.
9221 # The user is always right.
9222 if test "${PATH_SEPARATOR+set}" != set; then
9223 echo "#! /bin/sh" >conf$$.sh
9224 echo "exit 0" >>conf$$.sh
9226 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9235 get_gcc_base_ver
="cat"
9237 # Check whether --with-gcc-major-version-only was given.
9238 if test "${with_gcc_major_version_only+set}" = set; then :
9239 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9240 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9250 if test "x$exec_prefix" = xNONE
; then
9251 if test "x$prefix" = xNONE
; then
9252 gcc_cv_tool_prefix
=$ac_default_prefix
9254 gcc_cv_tool_prefix
=$prefix
9257 gcc_cv_tool_prefix
=$exec_prefix
9260 # If there is no compiler in the tree, use the PATH only. In any
9261 # case, if there is no compiler in the tree nobody should use
9262 # AS_FOR_TARGET and LD_FOR_TARGET.
9263 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9264 if test x
$with_gcc_major_version_only = xyes
; then
9265 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9267 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9269 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9270 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9271 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9272 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9273 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9274 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9279 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9280 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9288 # Check whether --with-build-sysroot was given.
9289 if test "${with_build_sysroot+set}" = set; then :
9290 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9291 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9294 SYSROOT_CFLAGS_FOR_TARGET
=
9300 # Check whether --with-debug-prefix-map was given.
9301 if test "${with_debug_prefix_map+set}" = set; then :
9302 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9303 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9304 for debug_map
in $withval; do
9305 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9309 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9314 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9315 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9316 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9317 # We want to ensure that TARGET libraries (which we know are built with
9318 # gcc) are built with "-O2 -g", so include those options when setting
9319 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9320 if test "x$CFLAGS_FOR_TARGET" = x
; then
9321 if test "x${is_cross_compiler}" = xyes
; then
9322 CFLAGS_FOR_TARGET
="-g -O2"
9324 CFLAGS_FOR_TARGET
=$CFLAGS
9327 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9330 *" -g "* |
*" -g3 "*) ;;
9331 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9337 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9338 if test "x${is_cross_compiler}" = xyes
; then
9339 CXXFLAGS_FOR_TARGET
="-g -O2"
9341 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9342 case " $CXXFLAGS " in
9344 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9346 case " $CXXFLAGS " in
9347 *" -g "* |
*" -g3 "*) ;;
9348 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9356 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9357 # the named directory are copied to $(tooldir)/sys-include.
9358 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9359 if test x
${is_cross_compiler} = xno
; then
9360 echo 1>&2 '***' --with-headers is only supported when cross compiling
9363 if test x
"${with_headers}" != xyes
; then
9364 x
=${gcc_cv_tool_prefix}
9365 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9369 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9370 # the name directories are copied to $(tooldir)/lib. Multiple directories
9372 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9373 if test x
${is_cross_compiler} = xno
; then
9374 echo 1>&2 '***' --with-libs is only supported when cross compiling
9377 if test x
"${with_libs}" != xyes
; then
9378 # Copy the libraries in reverse order, so that files in the first named
9379 # library override files in subsequent libraries.
9380 x
=${gcc_cv_tool_prefix}
9381 for l
in ${with_libs}; do
9382 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9387 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9389 # This is done by determining whether or not the appropriate directory
9390 # is available, and by checking whether or not specific configurations
9391 # have requested that this magic not happen.
9393 # The command line options always override the explicit settings in
9394 # configure.ac, and the settings in configure.ac override this magic.
9396 # If the default for a toolchain is to use GNU as and ld, and you don't
9397 # want to do that, then you should use the --without-gnu-as and
9398 # --without-gnu-ld options for the configure script. Similarly, if
9399 # the default is to use the included zlib and you don't want to do that,
9400 # you should use the --with-system-zlib option for the configure script.
9402 if test x
${use_gnu_as} = x
&&
9403 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9405 extra_host_args
="$extra_host_args --with-gnu-as"
9408 if test x
${use_gnu_ld} = x
&&
9409 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9411 extra_host_args
="$extra_host_args --with-gnu-ld"
9414 if test x
${use_included_zlib} = x
&&
9415 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9418 with_system_zlib
=yes
9419 extra_host_args
="$extra_host_args --with-system-zlib"
9422 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9423 # can detect this case.
9425 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9427 extra_host_args
="$extra_host_args --with-newlib"
9430 # Handle ${copy_dirs}
9431 set fnord
${copy_dirs}
9433 while test $# != 0 ; do
9434 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9437 echo Copying
$1 to
$2
9439 # Use the install script to create the directory and all required
9440 # parent directories.
9441 if test -d $2 ; then
9445 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9448 # Copy the directory, assuming we have tar.
9449 # FIXME: Should we use B in the second tar? Not all systems support it.
9450 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9452 # It is the responsibility of the user to correctly adjust all
9453 # symlinks. If somebody can figure out how to handle them correctly
9454 # here, feel free to add the code.
9461 # Determine a target-dependent exec_prefix that the installed
9462 # gcc will search in. Keep this list sorted by triplet, with
9463 # the *-*-osname triplets last.
9466 i
[34567]86-pc-msdosdjgpp*)
9467 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9472 md_exec_prefix
=/usr
/ccs
/bin
9476 extra_arflags_for_target
=
9477 extra_nmflags_for_target
=
9478 extra_ranlibflags_for_target
=
9479 target_makefile_frag
=/dev
/null
9482 target_makefile_frag
="config/mt-spu"
9484 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9485 target_makefile_frag
="config/mt-sde"
9487 mipsisa
*-*-elfoabi*)
9488 target_makefile_frag
="config/mt-mips-elfoabi"
9490 mips
*-*-*linux
* | mips
*-*-gnu*)
9491 target_makefile_frag
="config/mt-mips-gnu"
9494 target_makefile_frag
="config/mt-nios2-elf"
9497 target_makefile_frag
="config/mt-android"
9499 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9500 target_makefile_frag
="config/mt-gnu"
9502 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9503 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9504 # commands to handle both 32-bit and 64-bit objects. These flags are
9505 # harmless if we're using GNU nm or ar.
9506 extra_arflags_for_target
=" -X32_64"
9507 extra_nmflags_for_target
=" -B -X32_64"
9511 alphaieee_frag
=/dev
/null
9514 # This just makes sure to use the -mieee option to build target libs.
9515 # This should probably be set individually by each library.
9516 alphaieee_frag
="config/mt-alphaieee"
9520 # If --enable-target-optspace always use -Os instead of -O2 to build
9521 # the target libraries, similarly if it is not specified, use -Os
9522 # on selected platforms.
9523 ospace_frag
=/dev
/null
9524 case "${enable_target_optspace}:${target}" in
9526 ospace_frag
="config/mt-ospace"
9529 ospace_frag
="config/mt-d30v"
9531 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9532 ospace_frag
="config/mt-ospace"
9537 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9541 # Some systems (e.g., one of the i386-aix systems the gas testers are
9542 # using) don't handle "\$" correctly, so don't use it here.
9543 tooldir
='${exec_prefix}'/${target_noncanonical}
9544 build_tooldir
=${tooldir}
9546 # Create a .gdbinit file which runs the one in srcdir
9547 # and tells GDB to look there for source files.
9549 if test -r ${srcdir}/.gdbinit
; then
9552 *) cat > .
/.gdbinit
<<EOF
9556 source ${srcdir}/.gdbinit
9562 # Make sure that the compiler is able to generate an executable. If it
9563 # can't, we are probably in trouble. We don't care whether we can run the
9564 # executable--we might be using a cross compiler--we only care whether it
9565 # can be created. At this point the main configure script has set CC.
9567 echo "int main () { return 0; }" > conftest.c
9568 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9569 if test $?
= 0 ; then
9570 if test -s conftest ||
test -s conftest.exe
; then
9576 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9577 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9584 # Decide which environment variable is used to find dynamic libraries.
9586 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9587 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9588 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9589 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9592 # On systems where the dynamic library environment variable is PATH,
9593 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9594 # built executables to PATH.
9595 if test "$RPATH_ENVVAR" = PATH
; then
9596 GCC_SHLIB_SUBDIR
=/shlib
9601 # Adjust the toplevel makefile according to whether bootstrap was selected.
9602 case $enable_bootstrap in
9604 bootstrap_suffix
=bootstrap
9605 BUILD_CONFIG
=bootstrap-debug
9608 bootstrap_suffix
=no-bootstrap
9613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9614 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9617 # Check whether --with-build-config was given.
9618 if test "${with_build_config+set}" = set; then :
9619 withval
=$with_build_config; case $with_build_config in
9620 yes) with_build_config
= ;;
9621 no
) with_build_config
= BUILD_CONFIG
= ;;
9626 if test "x${with_build_config}" != x
; then
9627 BUILD_CONFIG
=$with_build_config
9629 case $BUILD_CONFIG in
9631 if echo "int f (void) { return 0; }" > conftest.c
&&
9632 ${CC} -c conftest.c
&&
9633 mv conftest.o conftest.o.g0
&&
9634 ${CC} -c -g conftest.c
&&
9635 mv conftest.o conftest.o.g
&&
9636 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9641 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9646 $as_echo "$BUILD_CONFIG" >&6; }
9649 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9651 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9652 # Check whether --enable-vtable-verify was given.
9653 if test "${enable_vtable_verify+set}" = set; then :
9654 enableval
=$enable_vtable_verify; case "$enableval" in
9655 yes) enable_vtable_verify
=yes ;;
9656 no
) enable_vtable_verify
=no
;;
9657 *) enable_vtable_verify
=no
;;
9660 enable_vtable_verify
=no
9663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9664 $as_echo "$enable_vtable_verify" >&6; }
9666 # Record target_configdirs and the configure arguments for target and
9667 # build configuration in Makefile.
9668 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9669 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9670 bootstrap_fixincludes
=no
9672 # If we are building libgomp, bootstrap it.
9673 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9674 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9677 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9678 # or bootstrap-ubsan, bootstrap it.
9679 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9680 case "$BUILD_CONFIG" in
9681 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9682 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9683 bootstrap_fixincludes
=yes
9688 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9689 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9690 test "$enable_vtable_verify" != no
; then
9691 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9694 # If we are building libatomic and the list of enabled languages includes the
9695 # D frontend, bootstrap it.
9696 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9697 case ,${enable_languages}, in
9699 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
9704 # Determine whether gdb needs tk/tcl or not.
9705 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9706 # and in that case we want gdb to be built without tk. Ugh!
9707 # In fact I believe gdb is the *only* package directly dependent on tk,
9708 # so we should be able to put the 'maybe's in unconditionally and
9709 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9710 # 100% sure that that's safe though.
9712 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9713 case "$enable_gdbtk" in
9717 GDB_TK
="${gdb_tk}" ;;
9719 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9720 # distro. Eventually someone will fix this and move Insight, nee
9721 # gdbtk to a separate directory.
9722 if test -d ${srcdir}/gdb
/gdbtk
; then
9729 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9730 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9732 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9733 # else does, only include them if one of these is built. The Makefile
9734 # provides the ordering, so it's enough here to add to the list.
9735 case " ${configdirs} " in
9737 configdirs
="${configdirs} gnulib gdbsupport"
9740 configdirs
="${configdirs} gnulib gdbsupport"
9743 configdirs
="${configdirs} gnulib"
9747 # Strip out unwanted targets.
9749 # While at that, we remove Makefiles if we were started for recursive
9750 # configuration, so that the top-level Makefile reconfigures them,
9751 # like we used to do when configure itself was recursive.
9753 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9754 # but now we're fixing up the Makefile ourselves with the additional
9755 # commands passed to AC_CONFIG_FILES. Use separate variables
9756 # extrasub-{build,host,target} not because there is any reason to split
9757 # the substitutions up that way, but only to remain below the limit of
9758 # 99 commands in a script, for HP-UX sed.
9760 # Do not nest @if/@endif or @unless/@endunless pairs, because
9761 # configure will not warn you at all.
9763 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9764 yes:yes:*\ gold\
*:*,c
++,*) ;;
9765 yes:yes:*\ gold\
*:*)
9766 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9771 for module
in ${build_configdirs} ; do
9772 if test -z "${no_recursion}" \
9773 && test -f ${build_subdir}/${module}/Makefile
; then
9774 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9775 rm -f ${build_subdir}/${module}/Makefile
9777 extrasub_build
="$extrasub_build
9778 /^@if build-$module\$/d
9779 /^@endif build-$module\$/d
9780 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9781 /^@if build-$module-$bootstrap_suffix\$/d
9782 /^@endif build-$module-$bootstrap_suffix\$/d
9783 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9786 for module
in ${configdirs} ; do
9787 if test -z "${no_recursion}"; then
9788 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9789 if test -f ${file}; then
9790 echo 1>&2 "*** removing ${file} to force reconfigure"
9795 case ${module},${bootstrap_fixincludes} in
9796 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9797 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9799 extrasub_host
="$extrasub_host
9801 /^@endif $module\$/d
9802 /^@unless $module\$/,/^@endunless $module\$/d
9803 /^@if $module-$host_bootstrap_suffix\$/d
9804 /^@endif $module-$host_bootstrap_suffix\$/d
9805 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9808 for module
in ${target_configdirs} ; do
9809 if test -z "${no_recursion}" \
9810 && test -f ${target_subdir}/${module}/Makefile
; then
9811 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9812 rm -f ${target_subdir}/${module}/Makefile
9815 # We only bootstrap target libraries listed in bootstrap_target_libs.
9816 case $bootstrap_target_libs in
9817 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9818 *) target_bootstrap_suffix
=no-bootstrap
;;
9821 extrasub_target
="$extrasub_target
9822 /^@if target-$module\$/d
9823 /^@endif target-$module\$/d
9824 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9825 /^@if target-$module-$target_bootstrap_suffix\$/d
9826 /^@endif target-$module-$target_bootstrap_suffix\$/d
9827 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9830 # Do the final fixup along with target modules.
9831 extrasub_target
="$extrasub_target
9836 if test "$enable_pgo_build" != "no"; then
9837 extrasub_build
="$extrasub_build
9839 /^@endif pgo-build\$/d"
9842 # Create the serialization dependencies. This uses a temporary file.
9844 # Check whether --enable-serial-configure was given.
9845 if test "${enable_serial_configure+set}" = set; then :
9846 enableval
=$enable_serial_configure;
9850 case ${enable_serial_configure} in
9852 enable_serial_build_configure
=yes
9853 enable_serial_host_configure
=yes
9854 enable_serial_target_configure
=yes
9858 # These force 'configure's to be done one at a time, to avoid problems
9859 # with contention over a shared config.cache.
9861 echo '# serdep.tmp' > serdep.tmp
9863 test "x${enable_serial_build_configure}" = xyes
&&
9864 for item
in ${build_configdirs} ; do
9867 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
9872 test "x${enable_serial_host_configure}" = xyes
&&
9873 for item
in ${configdirs} ; do
9876 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
9881 test "x${enable_serial_target_configure}" = xyes
&&
9882 for item
in ${target_configdirs} ; do
9885 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
9889 serialization_dependencies
=serdep.tmp
9892 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9893 # target, nonopt, and variable assignments. These are the ones we
9894 # might not want to pass down to subconfigures. The exception being
9895 # --cache-file=/dev/null, which is used to turn off the use of cache
9896 # files altogether, and which should be passed on to subconfigures.
9897 # Also strip program-prefix, program-suffix, and program-transform-name,
9898 # so that we can pass down a consistent program-transform-name.
9903 eval "set -- $ac_configure_args"
9906 if test X
"$skip_next" = X
"yes"; then
9910 if test X
"$keep_next" = X
"yes"; then
9913 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9915 baseargs
="$baseargs '$ac_arg'"
9916 tbaseargs
="$tbaseargs '$ac_arg'"
9921 # Handle separated arguments. Based on the logic generated by
9924 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
9925 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
9926 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
9927 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
9941 --with-* |
--without-*)
9942 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9946 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
9949 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
9958 mpc | mpfr | gmp | isl
)
9959 # If we're processing --with-$lib, --with-$lib-include or
9960 # --with-$lib-lib, for one of the libs above, and target is
9961 # different from host, don't pass the current argument to any
9962 # target library's configure.
9963 if test x
$is_cross_compiler = xyes
; then
9972 --cache-file=/dev
/null | \
9973 -cache-file=/dev
/null
)
9974 # Handled here to avoid the test to skip args below.
9975 baseargs
="$baseargs '$ac_arg'"
9976 tbaseargs
="$tbaseargs '$ac_arg'"
9977 # Assert: $separate_arg should always be no.
9978 keep_next
=$separate_arg
9994 -program-prefix* | \
9995 -program-suffix* | \
9996 -program-transform-name* )
9997 skip_next
=$separate_arg
10001 # An option. Add it.
10004 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10006 baseargs
="$baseargs '$ac_arg'"
10007 if test X
"$skip_targ" = Xno
; then
10008 tbaseargs
="$tbaseargs '$ac_arg'"
10010 keep_next
=$separate_arg
10013 # Either a variable assignment, or a nonopt (triplet). Don't
10014 # pass it down; let the Makefile handle this.
10019 # Remove the initial space we just introduced and, as these will be
10020 # expanded by make, quote '$'.
10021 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10023 # Add in --program-transform-name, after --program-prefix and
10024 # --program-suffix have been applied to it. Autoconf has already
10025 # doubled dollar signs and backslashes in program_transform_name; we want
10026 # the backslashes un-doubled, and then the entire thing wrapped in single
10027 # quotes, because this will be expanded first by make and then by the shell.
10028 # Also, because we want to override the logic in subdir configure scripts to
10029 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10030 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10031 ${program_transform_name}
10033 gcc_transform_name
=`cat conftestsed.out`
10034 rm -f conftestsed.out
10035 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
10036 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10037 if test "$silent" = yes; then
10038 baseargs
="$baseargs --silent"
10039 tbaseargs
="$tbaseargs --silent"
10041 baseargs
="$baseargs --disable-option-checking"
10042 tbaseargs
="$tbaseargs --disable-option-checking"
10044 # Record and document user additions to sub configure arguments.
10049 # For the build-side libraries, we just need to pretend we're native,
10050 # and not use the same cache file. Multilibs are neither needed nor
10051 # desired. We can't even use the same cache file for all build-side
10052 # libraries, as they're compiled differently; some with C, some with
10053 # C++ or with different feature-enabling options.
10054 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
10056 # For host modules, accept cache file option, or specification as blank.
10057 case "${cache_file}" in
10059 cache_file_option
="" ;;
10060 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10061 cache_file_option
="--cache-file=${cache_file}" ;;
10063 cache_file_option
="--cache-file=../${cache_file}" ;;
10066 # Host dirs don't like to share a cache file either, horribly enough.
10067 # This seems to be due to autoconf 2.5x stupidity.
10068 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10070 target_configargs
="$target_configargs ${tbaseargs}"
10072 # Passing a --with-cross-host argument lets the target libraries know
10073 # whether they are being built with a cross-compiler or being built
10074 # native. However, it would be better to use other mechanisms to make the
10075 # sorts of decisions they want to make on this basis. Please consider
10076 # this option to be deprecated. FIXME.
10077 if test x
${is_cross_compiler} = xyes
; then
10078 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10081 # Special user-friendly check for native x86_64-linux build, if
10082 # multilib is not explicitly enabled.
10083 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10084 x86_64-
*linux
*:yes:$build:$build:)
10085 # Make sure we have a development environment that handles 32-bit
10087 echo "int main () { return 0; }" > conftest.c
10088 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10089 if test $?
= 0 ; then
10090 if test -s conftest ||
test -s conftest.exe
; then
10095 if test x
${dev64} != xyes
; then
10096 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
10101 # Default to --enable-multilib.
10102 if test x
${enable_multilib} = x
; then
10103 target_configargs
="--enable-multilib ${target_configargs}"
10106 # Pass --with-newlib if appropriate. Note that target_configdirs has
10107 # changed from the earlier setting of with_newlib.
10108 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10109 target_configargs
="--with-newlib ${target_configargs}"
10112 # Different target subdirs use different values of certain variables
10113 # (notably CXX). Worse, multilibs use *lots* of different values.
10114 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10115 # it doesn't automatically accept command-line overrides of them.
10116 # This means it's not safe for target subdirs to share a cache file,
10117 # which is disgusting, but there you have it. Hopefully this can be
10118 # fixed in future. It's still worthwhile to use a cache file for each
10119 # directory. I think.
10121 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10122 # We need to pass --target, as newer autoconf's requires consistency
10123 # for target_alias and gcc doesn't manage it consistently.
10124 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10127 case " $target_configdirs " in
10129 case " $target_configargs " in
10130 *" --with-newlib "*)
10133 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10137 # If we're not building GCC, don't discard standard headers.
10138 if test -d ${srcdir}/gcc
; then
10139 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10141 if test "${build}" != "${host}"; then
10142 # On Canadian crosses, CC_FOR_TARGET will have already been set
10143 # by `configure', so we won't have an opportunity to add -Bgcc/
10144 # to it. This is right: we don't want to search that directory
10145 # for binaries, but we want the header files in there, so add
10147 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10149 # Someone might think of using the pre-installed headers on
10150 # Canadian crosses, in case the installed compiler is not fully
10151 # compatible with the compiler being built. In this case, it
10152 # would be better to flag an error than risking having
10153 # incompatible object files being constructed. We can't
10154 # guarantee that an error will be flagged, but let's hope the
10155 # compiler will do it, when presented with incompatible header
10160 case "${target}-${is_cross_compiler}" in
10161 i
[3456789]86-*-linux*-no)
10162 # Here host == target, so we don't need to build gcc,
10163 # so we don't want to discard standard headers.
10164 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10167 # If we're building newlib, use its generic headers last, but search
10168 # for any libc-related directories first (so make it the last -B
10170 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10172 # If we're building libgloss, find the startup file, simulator library
10173 # and linker script.
10174 case " $target_configdirs " in
10176 # Look for startup file, simulator library and maybe linker script.
10177 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10178 # Look for libnosys.a in case the target needs it.
10179 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10180 # Most targets have the linker script in the source directory.
10181 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10192 x86_64-
*mingw
* |
*-w64-mingw*)
10193 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10194 # however, use a symlink named 'mingw' in ${prefix} .
10195 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10198 # MinGW can't be handled as Cygwin above since it does not use newlib.
10199 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'
10203 # Allow the user to override the flags for
10204 # our build compiler if desired.
10205 if test x
"${build}" = x
"${host}" ; then
10206 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10207 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10208 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10209 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10212 # On Canadian crosses, we'll be searching the right directories for
10213 # the previously-installed cross compiler, so don't bother to add
10214 # flags for directories within the install tree of the compiler
10215 # being built; programs in there won't even run.
10216 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10217 # Search for pre-installed headers if nothing else fits.
10218 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10221 if test "x
${use_gnu_ld}" = x &&
10222 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10223 # Arrange for us to find uninstalled linker scripts.
10224 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10227 # Search for other target-specific linker scripts and such.
10228 case "${target}" in
10230 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10232 # The VxWorks support for shared libraries is getting in
10233 # incrementally. Make sure it doesn't get activated implicitly:
10235 if test "${enable_shared-unset}" = unset ; then
10237 # So the build of libraries knows ...
10238 target_configargs="${target_configargs} --disable-shared"
10240 host_configargs="${host_configargs} --disable-shared"
10245 # Makefile fragments.
10246 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10248 eval fragval=\$$frag
10249 if test $fragval != /dev/null; then
10250 eval $frag=${srcdir}/$fragval
10258 # Miscellanea: directories, flags, etc.
10267 # Build module lists & subconfigure args.
10271 # Host module lists & subconfigure args.
10276 # Target module lists & subconfigure args.
10301 # Generate default definitions for YACC, M4, LEX and other programs that run
10302 # on the build machine. These are used if the Makefile can't locate these
10303 # programs in objdir.
10304 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10306 for ac_prog in 'bison -y' byacc yacc
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_YACC+:} false; then :
10313 $as_echo_n "(cached
) " >&6
10315 if test -n "$YACC"; then
10316 ac_cv_prog_YACC="$YACC" # 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_YACC="$ac_prog"
10326 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10335 YACC=$ac_cv_prog_YACC
10336 if test -n "$YACC"; then
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10338 $as_echo "$YACC" >&6; }
10340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10341 $as_echo "no
" >&6; }
10345 test -n "$YACC" && break
10347 test -n "$YACC" || YACC="$MISSING bison
-y"
10349 case " $build_configdirs " in
10350 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10353 for ac_prog in bison
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_BISON+:} false; then :
10360 $as_echo_n "(cached
) " >&6
10362 if test -n "$BISON"; then
10363 ac_cv_prog_BISON="$BISON" # 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_BISON="$ac_prog"
10373 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10382 BISON=$ac_cv_prog_BISON
10383 if test -n "$BISON"; then
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10385 $as_echo "$BISON" >&6; }
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10388 $as_echo "no
" >&6; }
10392 test -n "$BISON" && break
10394 test -n "$BISON" || BISON="$MISSING bison
"
10396 case " $build_configdirs " in
10397 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10400 for ac_prog in gm4 gnum4 m4
10402 # Extract the first word of "$ac_prog", so it can be a program name with args.
10403 set dummy $ac_prog; ac_word=$2
10404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10405 $as_echo_n "checking
for $ac_word...
" >&6; }
10406 if ${ac_cv_prog_M4+:} false; then :
10407 $as_echo_n "(cached
) " >&6
10409 if test -n "$M4"; then
10410 ac_cv_prog_M4="$M4" # Let the user override the test.
10412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10413 for as_dir in $PATH
10416 test -z "$as_dir" && as_dir=.
10417 for ac_exec_ext in '' $ac_executable_extensions; do
10418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10419 ac_cv_prog_M4="$ac_prog"
10420 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10430 if test -n "$M4"; then
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10432 $as_echo "$M4" >&6; }
10434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10435 $as_echo "no
" >&6; }
10439 test -n "$M4" && break
10441 test -n "$M4" || M4="$MISSING m4"
10443 case " $build_configdirs " in
10444 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10447 for ac_prog in flex lex
10449 # Extract the first word of "$ac_prog", so it can be a program name with args.
10450 set dummy $ac_prog; ac_word=$2
10451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10452 $as_echo_n "checking
for $ac_word...
" >&6; }
10453 if ${ac_cv_prog_LEX+:} false; then :
10454 $as_echo_n "(cached
) " >&6
10456 if test -n "$LEX"; then
10457 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10460 for as_dir in $PATH
10463 test -z "$as_dir" && as_dir=.
10464 for ac_exec_ext in '' $ac_executable_extensions; do
10465 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10466 ac_cv_prog_LEX="$ac_prog"
10467 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10476 LEX=$ac_cv_prog_LEX
10477 if test -n "$LEX"; then
10478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10479 $as_echo "$LEX" >&6; }
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10482 $as_echo "no
" >&6; }
10486 test -n "$LEX" && break
10488 test -n "$LEX" || LEX="$MISSING flex
"
10490 case " $build_configdirs " in
10491 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10492 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10495 for ac_prog in flex
10497 # Extract the first word of "$ac_prog", so it can be a program name with args.
10498 set dummy $ac_prog; ac_word=$2
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10500 $as_echo_n "checking
for $ac_word...
" >&6; }
10501 if ${ac_cv_prog_FLEX+:} false; then :
10502 $as_echo_n "(cached
) " >&6
10504 if test -n "$FLEX"; then
10505 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10508 for as_dir in $PATH
10511 test -z "$as_dir" && as_dir=.
10512 for ac_exec_ext in '' $ac_executable_extensions; do
10513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10514 ac_cv_prog_FLEX="$ac_prog"
10515 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10524 FLEX=$ac_cv_prog_FLEX
10525 if test -n "$FLEX"; then
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10527 $as_echo "$FLEX" >&6; }
10529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10530 $as_echo "no
" >&6; }
10534 test -n "$FLEX" && break
10536 test -n "$FLEX" || FLEX="$MISSING flex
"
10538 case " $build_configdirs " in
10539 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10542 for ac_prog in makeinfo
10544 # Extract the first word of "$ac_prog", so it can be a program name with args.
10545 set dummy $ac_prog; ac_word=$2
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10547 $as_echo_n "checking
for $ac_word...
" >&6; }
10548 if ${ac_cv_prog_MAKEINFO+:} false; then :
10549 $as_echo_n "(cached
) " >&6
10551 if test -n "$MAKEINFO"; then
10552 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10555 for as_dir in $PATH
10558 test -z "$as_dir" && as_dir=.
10559 for ac_exec_ext in '' $ac_executable_extensions; do
10560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10561 ac_cv_prog_MAKEINFO="$ac_prog"
10562 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10571 MAKEINFO=$ac_cv_prog_MAKEINFO
10572 if test -n "$MAKEINFO"; then
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10574 $as_echo "$MAKEINFO" >&6; }
10576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10577 $as_echo "no
" >&6; }
10581 test -n "$MAKEINFO" && break
10583 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10585 case " $build_configdirs " in
10586 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10589 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10590 # higher, else we use the "missing
" dummy.
10591 if ${MAKEINFO} --version \
10592 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10595 MAKEINFO="$MISSING makeinfo
"
10601 # FIXME: expect and dejagnu may become build tools?
10603 for ac_prog in expect
10605 # Extract the first word of "$ac_prog", so it can be a program name with args.
10606 set dummy $ac_prog; ac_word=$2
10607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10608 $as_echo_n "checking
for $ac_word...
" >&6; }
10609 if ${ac_cv_prog_EXPECT+:} false; then :
10610 $as_echo_n "(cached
) " >&6
10612 if test -n "$EXPECT"; then
10613 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10616 for as_dir in $PATH
10619 test -z "$as_dir" && as_dir=.
10620 for ac_exec_ext in '' $ac_executable_extensions; do
10621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10622 ac_cv_prog_EXPECT="$ac_prog"
10623 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10632 EXPECT=$ac_cv_prog_EXPECT
10633 if test -n "$EXPECT"; then
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10635 $as_echo "$EXPECT" >&6; }
10637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10638 $as_echo "no
" >&6; }
10642 test -n "$EXPECT" && break
10644 test -n "$EXPECT" || EXPECT="expect
"
10646 case " $configdirs " in
10648 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10652 for ac_prog in runtest
10654 # Extract the first word of "$ac_prog", so it can be a program name with args.
10655 set dummy $ac_prog; ac_word=$2
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10657 $as_echo_n "checking
for $ac_word...
" >&6; }
10658 if ${ac_cv_prog_RUNTEST+:} false; then :
10659 $as_echo_n "(cached
) " >&6
10661 if test -n "$RUNTEST"; then
10662 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10665 for as_dir in $PATH
10668 test -z "$as_dir" && as_dir=.
10669 for ac_exec_ext in '' $ac_executable_extensions; do
10670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10671 ac_cv_prog_RUNTEST="$ac_prog"
10672 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10681 RUNTEST=$ac_cv_prog_RUNTEST
10682 if test -n "$RUNTEST"; then
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10684 $as_echo "$RUNTEST" >&6; }
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10687 $as_echo "no
" >&6; }
10691 test -n "$RUNTEST" && break
10693 test -n "$RUNTEST" || RUNTEST="runtest
"
10695 case " $configdirs " in
10697 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10704 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10705 ncn_target_tool_prefix=
10706 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10710 if test -n "$AR"; then
10712 elif test -n "$ac_cv_prog_AR"; then
10716 if test -n "$ac_cv_prog_AR"; then
10717 for ncn_progname in ar; do
10718 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10719 set dummy ${ncn_progname}; ac_word=$2
10720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10721 $as_echo_n "checking
for $ac_word...
" >&6; }
10722 if ${ac_cv_prog_AR+:} false; then :
10723 $as_echo_n "(cached
) " >&6
10725 if test -n "$AR"; then
10726 ac_cv_prog_AR="$AR" # Let the user override the test.
10728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10729 for as_dir in $PATH
10732 test -z "$as_dir" && as_dir=.
10733 for ac_exec_ext in '' $ac_executable_extensions; do
10734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10735 ac_cv_prog_AR="${ncn_progname}"
10736 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10746 if test -n "$AR"; then
10747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10748 $as_echo "$AR" >&6; }
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10751 $as_echo "no
" >&6; }
10758 for ncn_progname in ar; do
10759 if test -n "$ncn_tool_prefix"; then
10760 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10761 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10763 $as_echo_n "checking
for $ac_word...
" >&6; }
10764 if ${ac_cv_prog_AR+:} false; then :
10765 $as_echo_n "(cached
) " >&6
10767 if test -n "$AR"; then
10768 ac_cv_prog_AR="$AR" # Let the user override the test.
10770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771 for as_dir in $PATH
10774 test -z "$as_dir" && as_dir=.
10775 for ac_exec_ext in '' $ac_executable_extensions; do
10776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10777 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10778 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10788 if test -n "$AR"; then
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10790 $as_echo "$AR" >&6; }
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10793 $as_echo "no
" >&6; }
10798 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10799 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10800 set dummy ${ncn_progname}; ac_word=$2
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10802 $as_echo_n "checking
for $ac_word...
" >&6; }
10803 if ${ac_cv_prog_AR+:} false; then :
10804 $as_echo_n "(cached
) " >&6
10806 if test -n "$AR"; then
10807 ac_cv_prog_AR="$AR" # Let the user override the test.
10809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10810 for as_dir in $PATH
10813 test -z "$as_dir" && as_dir=.
10814 for ac_exec_ext in '' $ac_executable_extensions; do
10815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10816 ac_cv_prog_AR="${ncn_progname}"
10817 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10827 if test -n "$AR"; then
10828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10829 $as_echo "$AR" >&6; }
10831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10832 $as_echo "no
" >&6; }
10837 test -n "$ac_cv_prog_AR" && break
10840 if test -z "$ac_cv_prog_AR" ; then
10842 if test $build = $host ; then
10845 AR="${ncn_tool_prefix}$2"
10851 if test -n "$AS"; then
10853 elif test -n "$ac_cv_prog_AS"; then
10857 if test -n "$ac_cv_prog_AS"; then
10858 for ncn_progname in as; do
10859 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10860 set dummy ${ncn_progname}; ac_word=$2
10861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10862 $as_echo_n "checking
for $ac_word...
" >&6; }
10863 if ${ac_cv_prog_AS+:} false; then :
10864 $as_echo_n "(cached
) " >&6
10866 if test -n "$AS"; then
10867 ac_cv_prog_AS="$AS" # Let the user override the test.
10869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10870 for as_dir in $PATH
10873 test -z "$as_dir" && as_dir=.
10874 for ac_exec_ext in '' $ac_executable_extensions; do
10875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10876 ac_cv_prog_AS="${ncn_progname}"
10877 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10887 if test -n "$AS"; then
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10889 $as_echo "$AS" >&6; }
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10892 $as_echo "no
" >&6; }
10899 for ncn_progname in as; do
10900 if test -n "$ncn_tool_prefix"; then
10901 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10902 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10904 $as_echo_n "checking
for $ac_word...
" >&6; }
10905 if ${ac_cv_prog_AS+:} false; then :
10906 $as_echo_n "(cached
) " >&6
10908 if test -n "$AS"; then
10909 ac_cv_prog_AS="$AS" # Let the user override the test.
10911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10912 for as_dir in $PATH
10915 test -z "$as_dir" && as_dir=.
10916 for ac_exec_ext in '' $ac_executable_extensions; do
10917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10918 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10919 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10929 if test -n "$AS"; then
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10931 $as_echo "$AS" >&6; }
10933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10934 $as_echo "no
" >&6; }
10939 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10941 set dummy ${ncn_progname}; ac_word=$2
10942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10943 $as_echo_n "checking
for $ac_word...
" >&6; }
10944 if ${ac_cv_prog_AS+:} false; then :
10945 $as_echo_n "(cached
) " >&6
10947 if test -n "$AS"; then
10948 ac_cv_prog_AS="$AS" # Let the user override the test.
10950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10951 for as_dir in $PATH
10954 test -z "$as_dir" && as_dir=.
10955 for ac_exec_ext in '' $ac_executable_extensions; do
10956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10957 ac_cv_prog_AS="${ncn_progname}"
10958 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10968 if test -n "$AS"; then
10969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10970 $as_echo "$AS" >&6; }
10972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10973 $as_echo "no
" >&6; }
10978 test -n "$ac_cv_prog_AS" && break
10981 if test -z "$ac_cv_prog_AS" ; then
10983 if test $build = $host ; then
10986 AS="${ncn_tool_prefix}$2"
10992 if test -n "$DLLTOOL"; then
10993 ac_cv_prog_DLLTOOL=$DLLTOOL
10994 elif test -n "$ac_cv_prog_DLLTOOL"; then
10995 DLLTOOL=$ac_cv_prog_DLLTOOL
10998 if test -n "$ac_cv_prog_DLLTOOL"; then
10999 for ncn_progname in dlltool; do
11000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11001 set dummy ${ncn_progname}; ac_word=$2
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11003 $as_echo_n "checking
for $ac_word...
" >&6; }
11004 if ${ac_cv_prog_DLLTOOL+:} false; then :
11005 $as_echo_n "(cached
) " >&6
11007 if test -n "$DLLTOOL"; then
11008 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11011 for as_dir in $PATH
11014 test -z "$as_dir" && as_dir=.
11015 for ac_exec_ext in '' $ac_executable_extensions; do
11016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11017 ac_cv_prog_DLLTOOL="${ncn_progname}"
11018 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11027 DLLTOOL=$ac_cv_prog_DLLTOOL
11028 if test -n "$DLLTOOL"; then
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11030 $as_echo "$DLLTOOL" >&6; }
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11033 $as_echo "no
" >&6; }
11040 for ncn_progname in dlltool; do
11041 if test -n "$ncn_tool_prefix"; then
11042 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11043 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11045 $as_echo_n "checking
for $ac_word...
" >&6; }
11046 if ${ac_cv_prog_DLLTOOL+:} false; then :
11047 $as_echo_n "(cached
) " >&6
11049 if test -n "$DLLTOOL"; then
11050 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11053 for as_dir in $PATH
11056 test -z "$as_dir" && as_dir=.
11057 for ac_exec_ext in '' $ac_executable_extensions; do
11058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11059 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11060 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11069 DLLTOOL=$ac_cv_prog_DLLTOOL
11070 if test -n "$DLLTOOL"; then
11071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11072 $as_echo "$DLLTOOL" >&6; }
11074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11075 $as_echo "no
" >&6; }
11080 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11082 set dummy ${ncn_progname}; ac_word=$2
11083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11084 $as_echo_n "checking
for $ac_word...
" >&6; }
11085 if ${ac_cv_prog_DLLTOOL+:} false; then :
11086 $as_echo_n "(cached
) " >&6
11088 if test -n "$DLLTOOL"; then
11089 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11092 for as_dir in $PATH
11095 test -z "$as_dir" && as_dir=.
11096 for ac_exec_ext in '' $ac_executable_extensions; do
11097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11098 ac_cv_prog_DLLTOOL="${ncn_progname}"
11099 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11108 DLLTOOL=$ac_cv_prog_DLLTOOL
11109 if test -n "$DLLTOOL"; then
11110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11111 $as_echo "$DLLTOOL" >&6; }
11113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11114 $as_echo "no
" >&6; }
11119 test -n "$ac_cv_prog_DLLTOOL" && break
11122 if test -z "$ac_cv_prog_DLLTOOL" ; then
11124 if test $build = $host ; then
11127 DLLTOOL="${ncn_tool_prefix}$2"
11133 if test -n "$DSYMUTIL"; then
11134 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11135 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11136 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11139 if test -n "$ac_cv_prog_DSYMUTIL"; then
11140 for ncn_progname in dsymutil; do
11141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11142 set dummy ${ncn_progname}; ac_word=$2
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11144 $as_echo_n "checking
for $ac_word...
" >&6; }
11145 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11146 $as_echo_n "(cached
) " >&6
11148 if test -n "$DSYMUTIL"; then
11149 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152 for as_dir in $PATH
11155 test -z "$as_dir" && as_dir=.
11156 for ac_exec_ext in '' $ac_executable_extensions; do
11157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11158 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11159 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11168 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11169 if test -n "$DSYMUTIL"; then
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11171 $as_echo "$DSYMUTIL" >&6; }
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11174 $as_echo "no
" >&6; }
11181 for ncn_progname in dsymutil; do
11182 if test -n "$ncn_tool_prefix"; then
11183 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11184 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11186 $as_echo_n "checking
for $ac_word...
" >&6; }
11187 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11188 $as_echo_n "(cached
) " >&6
11190 if test -n "$DSYMUTIL"; then
11191 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11194 for as_dir in $PATH
11197 test -z "$as_dir" && as_dir=.
11198 for ac_exec_ext in '' $ac_executable_extensions; do
11199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11200 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11201 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11210 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11211 if test -n "$DSYMUTIL"; then
11212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11213 $as_echo "$DSYMUTIL" >&6; }
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11216 $as_echo "no
" >&6; }
11221 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11222 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11223 set dummy ${ncn_progname}; ac_word=$2
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11225 $as_echo_n "checking
for $ac_word...
" >&6; }
11226 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11227 $as_echo_n "(cached
) " >&6
11229 if test -n "$DSYMUTIL"; then
11230 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11233 for as_dir in $PATH
11236 test -z "$as_dir" && as_dir=.
11237 for ac_exec_ext in '' $ac_executable_extensions; do
11238 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11239 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11240 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11249 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11250 if test -n "$DSYMUTIL"; then
11251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11252 $as_echo "$DSYMUTIL" >&6; }
11254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11255 $as_echo "no
" >&6; }
11260 test -n "$ac_cv_prog_DSYMUTIL" && break
11263 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11265 if test $build = $host ; then
11268 DSYMUTIL="${ncn_tool_prefix}$2"
11274 if test -n "$LD"; then
11276 elif test -n "$ac_cv_prog_LD"; then
11280 if test -n "$ac_cv_prog_LD"; then
11281 for ncn_progname in ld; do
11282 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11283 set dummy ${ncn_progname}; ac_word=$2
11284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11285 $as_echo_n "checking
for $ac_word...
" >&6; }
11286 if ${ac_cv_prog_LD+:} false; then :
11287 $as_echo_n "(cached
) " >&6
11289 if test -n "$LD"; then
11290 ac_cv_prog_LD="$LD" # Let the user override the test.
11292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11293 for as_dir in $PATH
11296 test -z "$as_dir" && as_dir=.
11297 for ac_exec_ext in '' $ac_executable_extensions; do
11298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11299 ac_cv_prog_LD="${ncn_progname}"
11300 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11310 if test -n "$LD"; then
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11312 $as_echo "$LD" >&6; }
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11315 $as_echo "no
" >&6; }
11322 for ncn_progname in ld; do
11323 if test -n "$ncn_tool_prefix"; then
11324 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11325 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11327 $as_echo_n "checking
for $ac_word...
" >&6; }
11328 if ${ac_cv_prog_LD+:} false; then :
11329 $as_echo_n "(cached
) " >&6
11331 if test -n "$LD"; then
11332 ac_cv_prog_LD="$LD" # Let the user override the test.
11334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11335 for as_dir in $PATH
11338 test -z "$as_dir" && as_dir=.
11339 for ac_exec_ext in '' $ac_executable_extensions; do
11340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11341 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11342 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11352 if test -n "$LD"; then
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11354 $as_echo "$LD" >&6; }
11356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11357 $as_echo "no
" >&6; }
11362 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11364 set dummy ${ncn_progname}; ac_word=$2
11365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11366 $as_echo_n "checking
for $ac_word...
" >&6; }
11367 if ${ac_cv_prog_LD+:} false; then :
11368 $as_echo_n "(cached
) " >&6
11370 if test -n "$LD"; then
11371 ac_cv_prog_LD="$LD" # Let the user override the test.
11373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11374 for as_dir in $PATH
11377 test -z "$as_dir" && as_dir=.
11378 for ac_exec_ext in '' $ac_executable_extensions; do
11379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11380 ac_cv_prog_LD="${ncn_progname}"
11381 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11391 if test -n "$LD"; then
11392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11393 $as_echo "$LD" >&6; }
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11396 $as_echo "no
" >&6; }
11401 test -n "$ac_cv_prog_LD" && break
11404 if test -z "$ac_cv_prog_LD" ; then
11406 if test $build = $host ; then
11409 LD="${ncn_tool_prefix}$2"
11415 if test -n "$LIPO"; then
11416 ac_cv_prog_LIPO=$LIPO
11417 elif test -n "$ac_cv_prog_LIPO"; then
11418 LIPO=$ac_cv_prog_LIPO
11421 if test -n "$ac_cv_prog_LIPO"; then
11422 for ncn_progname in lipo; do
11423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11424 set dummy ${ncn_progname}; ac_word=$2
11425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11426 $as_echo_n "checking
for $ac_word...
" >&6; }
11427 if ${ac_cv_prog_LIPO+:} false; then :
11428 $as_echo_n "(cached
) " >&6
11430 if test -n "$LIPO"; then
11431 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11434 for as_dir in $PATH
11437 test -z "$as_dir" && as_dir=.
11438 for ac_exec_ext in '' $ac_executable_extensions; do
11439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11440 ac_cv_prog_LIPO="${ncn_progname}"
11441 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11450 LIPO=$ac_cv_prog_LIPO
11451 if test -n "$LIPO"; then
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11453 $as_echo "$LIPO" >&6; }
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11456 $as_echo "no
" >&6; }
11463 for ncn_progname in lipo; do
11464 if test -n "$ncn_tool_prefix"; then
11465 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11466 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11468 $as_echo_n "checking
for $ac_word...
" >&6; }
11469 if ${ac_cv_prog_LIPO+:} false; then :
11470 $as_echo_n "(cached
) " >&6
11472 if test -n "$LIPO"; then
11473 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11476 for as_dir in $PATH
11479 test -z "$as_dir" && as_dir=.
11480 for ac_exec_ext in '' $ac_executable_extensions; do
11481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11482 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11483 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11492 LIPO=$ac_cv_prog_LIPO
11493 if test -n "$LIPO"; then
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11495 $as_echo "$LIPO" >&6; }
11497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11498 $as_echo "no
" >&6; }
11503 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11504 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11505 set dummy ${ncn_progname}; ac_word=$2
11506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11507 $as_echo_n "checking
for $ac_word...
" >&6; }
11508 if ${ac_cv_prog_LIPO+:} false; then :
11509 $as_echo_n "(cached
) " >&6
11511 if test -n "$LIPO"; then
11512 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11515 for as_dir in $PATH
11518 test -z "$as_dir" && as_dir=.
11519 for ac_exec_ext in '' $ac_executable_extensions; do
11520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11521 ac_cv_prog_LIPO="${ncn_progname}"
11522 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11531 LIPO=$ac_cv_prog_LIPO
11532 if test -n "$LIPO"; then
11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11534 $as_echo "$LIPO" >&6; }
11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11537 $as_echo "no
" >&6; }
11542 test -n "$ac_cv_prog_LIPO" && break
11545 if test -z "$ac_cv_prog_LIPO" ; then
11547 if test $build = $host ; then
11550 LIPO="${ncn_tool_prefix}$2"
11556 if test -n "$NM"; then
11558 elif test -n "$ac_cv_prog_NM"; then
11562 if test -n "$ac_cv_prog_NM"; then
11563 for ncn_progname in nm; do
11564 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11565 set dummy ${ncn_progname}; ac_word=$2
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11567 $as_echo_n "checking
for $ac_word...
" >&6; }
11568 if ${ac_cv_prog_NM+:} false; then :
11569 $as_echo_n "(cached
) " >&6
11571 if test -n "$NM"; then
11572 ac_cv_prog_NM="$NM" # Let the user override the test.
11574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11575 for as_dir in $PATH
11578 test -z "$as_dir" && as_dir=.
11579 for ac_exec_ext in '' $ac_executable_extensions; do
11580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11581 ac_cv_prog_NM="${ncn_progname}"
11582 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11592 if test -n "$NM"; then
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11594 $as_echo "$NM" >&6; }
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11597 $as_echo "no
" >&6; }
11604 for ncn_progname in nm; do
11605 if test -n "$ncn_tool_prefix"; then
11606 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11607 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11609 $as_echo_n "checking
for $ac_word...
" >&6; }
11610 if ${ac_cv_prog_NM+:} false; then :
11611 $as_echo_n "(cached
) " >&6
11613 if test -n "$NM"; then
11614 ac_cv_prog_NM="$NM" # Let the user override the test.
11616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11617 for as_dir in $PATH
11620 test -z "$as_dir" && as_dir=.
11621 for ac_exec_ext in '' $ac_executable_extensions; do
11622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11623 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11624 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11634 if test -n "$NM"; then
11635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11636 $as_echo "$NM" >&6; }
11638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11639 $as_echo "no
" >&6; }
11644 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11645 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11646 set dummy ${ncn_progname}; ac_word=$2
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11648 $as_echo_n "checking
for $ac_word...
" >&6; }
11649 if ${ac_cv_prog_NM+:} false; then :
11650 $as_echo_n "(cached
) " >&6
11652 if test -n "$NM"; then
11653 ac_cv_prog_NM="$NM" # Let the user override the test.
11655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11656 for as_dir in $PATH
11659 test -z "$as_dir" && as_dir=.
11660 for ac_exec_ext in '' $ac_executable_extensions; do
11661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11662 ac_cv_prog_NM="${ncn_progname}"
11663 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11673 if test -n "$NM"; then
11674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11675 $as_echo "$NM" >&6; }
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11678 $as_echo "no
" >&6; }
11683 test -n "$ac_cv_prog_NM" && break
11686 if test -z "$ac_cv_prog_NM" ; then
11688 if test $build = $host ; then
11691 NM="${ncn_tool_prefix}$2"
11697 if test -n "$RANLIB"; then
11698 ac_cv_prog_RANLIB=$RANLIB
11699 elif test -n "$ac_cv_prog_RANLIB"; then
11700 RANLIB=$ac_cv_prog_RANLIB
11703 if test -n "$ac_cv_prog_RANLIB"; then
11704 for ncn_progname in ranlib; do
11705 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11706 set dummy ${ncn_progname}; ac_word=$2
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11708 $as_echo_n "checking
for $ac_word...
" >&6; }
11709 if ${ac_cv_prog_RANLIB+:} false; then :
11710 $as_echo_n "(cached
) " >&6
11712 if test -n "$RANLIB"; then
11713 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11716 for as_dir in $PATH
11719 test -z "$as_dir" && as_dir=.
11720 for ac_exec_ext in '' $ac_executable_extensions; do
11721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11722 ac_cv_prog_RANLIB="${ncn_progname}"
11723 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11732 RANLIB=$ac_cv_prog_RANLIB
11733 if test -n "$RANLIB"; then
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11735 $as_echo "$RANLIB" >&6; }
11737 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11738 $as_echo "no
" >&6; }
11745 for ncn_progname in ranlib; do
11746 if test -n "$ncn_tool_prefix"; then
11747 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11748 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11750 $as_echo_n "checking
for $ac_word...
" >&6; }
11751 if ${ac_cv_prog_RANLIB+:} false; then :
11752 $as_echo_n "(cached
) " >&6
11754 if test -n "$RANLIB"; then
11755 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11758 for as_dir in $PATH
11761 test -z "$as_dir" && as_dir=.
11762 for ac_exec_ext in '' $ac_executable_extensions; do
11763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11764 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11765 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11774 RANLIB=$ac_cv_prog_RANLIB
11775 if test -n "$RANLIB"; then
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11777 $as_echo "$RANLIB" >&6; }
11779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11780 $as_echo "no
" >&6; }
11785 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11786 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11787 set dummy ${ncn_progname}; ac_word=$2
11788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11789 $as_echo_n "checking
for $ac_word...
" >&6; }
11790 if ${ac_cv_prog_RANLIB+:} false; then :
11791 $as_echo_n "(cached
) " >&6
11793 if test -n "$RANLIB"; then
11794 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11797 for as_dir in $PATH
11800 test -z "$as_dir" && as_dir=.
11801 for ac_exec_ext in '' $ac_executable_extensions; do
11802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11803 ac_cv_prog_RANLIB="${ncn_progname}"
11804 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11813 RANLIB=$ac_cv_prog_RANLIB
11814 if test -n "$RANLIB"; then
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11816 $as_echo "$RANLIB" >&6; }
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11819 $as_echo "no
" >&6; }
11824 test -n "$ac_cv_prog_RANLIB" && break
11827 if test -z "$ac_cv_prog_RANLIB" ; then
11833 if test -n "$STRIP"; then
11834 ac_cv_prog_STRIP=$STRIP
11835 elif test -n "$ac_cv_prog_STRIP"; then
11836 STRIP=$ac_cv_prog_STRIP
11839 if test -n "$ac_cv_prog_STRIP"; then
11840 for ncn_progname in strip; do
11841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11842 set dummy ${ncn_progname}; ac_word=$2
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11844 $as_echo_n "checking
for $ac_word...
" >&6; }
11845 if ${ac_cv_prog_STRIP+:} false; then :
11846 $as_echo_n "(cached
) " >&6
11848 if test -n "$STRIP"; then
11849 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11852 for as_dir in $PATH
11855 test -z "$as_dir" && as_dir=.
11856 for ac_exec_ext in '' $ac_executable_extensions; do
11857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11858 ac_cv_prog_STRIP="${ncn_progname}"
11859 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11868 STRIP=$ac_cv_prog_STRIP
11869 if test -n "$STRIP"; then
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11871 $as_echo "$STRIP" >&6; }
11873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11874 $as_echo "no
" >&6; }
11881 for ncn_progname in strip; do
11882 if test -n "$ncn_tool_prefix"; then
11883 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11884 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11886 $as_echo_n "checking
for $ac_word...
" >&6; }
11887 if ${ac_cv_prog_STRIP+:} false; then :
11888 $as_echo_n "(cached
) " >&6
11890 if test -n "$STRIP"; then
11891 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11894 for as_dir in $PATH
11897 test -z "$as_dir" && as_dir=.
11898 for ac_exec_ext in '' $ac_executable_extensions; do
11899 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11900 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11901 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11910 STRIP=$ac_cv_prog_STRIP
11911 if test -n "$STRIP"; then
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11913 $as_echo "$STRIP" >&6; }
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11916 $as_echo "no
" >&6; }
11921 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11923 set dummy ${ncn_progname}; ac_word=$2
11924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11925 $as_echo_n "checking
for $ac_word...
" >&6; }
11926 if ${ac_cv_prog_STRIP+:} false; then :
11927 $as_echo_n "(cached
) " >&6
11929 if test -n "$STRIP"; then
11930 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11933 for as_dir in $PATH
11936 test -z "$as_dir" && as_dir=.
11937 for ac_exec_ext in '' $ac_executable_extensions; do
11938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11939 ac_cv_prog_STRIP="${ncn_progname}"
11940 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11949 STRIP=$ac_cv_prog_STRIP
11950 if test -n "$STRIP"; then
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11952 $as_echo "$STRIP" >&6; }
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11955 $as_echo "no
" >&6; }
11960 test -n "$ac_cv_prog_STRIP" && break
11963 if test -z "$ac_cv_prog_STRIP" ; then
11969 if test -n "$WINDRES"; then
11970 ac_cv_prog_WINDRES=$WINDRES
11971 elif test -n "$ac_cv_prog_WINDRES"; then
11972 WINDRES=$ac_cv_prog_WINDRES
11975 if test -n "$ac_cv_prog_WINDRES"; then
11976 for ncn_progname in windres; do
11977 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11978 set dummy ${ncn_progname}; ac_word=$2
11979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11980 $as_echo_n "checking
for $ac_word...
" >&6; }
11981 if ${ac_cv_prog_WINDRES+:} false; then :
11982 $as_echo_n "(cached
) " >&6
11984 if test -n "$WINDRES"; then
11985 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11988 for as_dir in $PATH
11991 test -z "$as_dir" && as_dir=.
11992 for ac_exec_ext in '' $ac_executable_extensions; do
11993 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11994 ac_cv_prog_WINDRES="${ncn_progname}"
11995 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12004 WINDRES=$ac_cv_prog_WINDRES
12005 if test -n "$WINDRES"; then
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12007 $as_echo "$WINDRES" >&6; }
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12010 $as_echo "no
" >&6; }
12017 for ncn_progname in windres; do
12018 if test -n "$ncn_tool_prefix"; then
12019 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12020 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12022 $as_echo_n "checking
for $ac_word...
" >&6; }
12023 if ${ac_cv_prog_WINDRES+:} false; then :
12024 $as_echo_n "(cached
) " >&6
12026 if test -n "$WINDRES"; then
12027 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12030 for as_dir in $PATH
12033 test -z "$as_dir" && as_dir=.
12034 for ac_exec_ext in '' $ac_executable_extensions; do
12035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12036 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12037 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12046 WINDRES=$ac_cv_prog_WINDRES
12047 if test -n "$WINDRES"; then
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12049 $as_echo "$WINDRES" >&6; }
12051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12052 $as_echo "no
" >&6; }
12057 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12058 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12059 set dummy ${ncn_progname}; ac_word=$2
12060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12061 $as_echo_n "checking
for $ac_word...
" >&6; }
12062 if ${ac_cv_prog_WINDRES+:} false; then :
12063 $as_echo_n "(cached
) " >&6
12065 if test -n "$WINDRES"; then
12066 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12069 for as_dir in $PATH
12072 test -z "$as_dir" && as_dir=.
12073 for ac_exec_ext in '' $ac_executable_extensions; do
12074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12075 ac_cv_prog_WINDRES="${ncn_progname}"
12076 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12085 WINDRES=$ac_cv_prog_WINDRES
12086 if test -n "$WINDRES"; then
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12088 $as_echo "$WINDRES" >&6; }
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12091 $as_echo "no
" >&6; }
12096 test -n "$ac_cv_prog_WINDRES" && break
12099 if test -z "$ac_cv_prog_WINDRES" ; then
12101 if test $build = $host ; then
12104 WINDRES="${ncn_tool_prefix}$2"
12110 if test -n "$WINDMC"; then
12111 ac_cv_prog_WINDMC=$WINDMC
12112 elif test -n "$ac_cv_prog_WINDMC"; then
12113 WINDMC=$ac_cv_prog_WINDMC
12116 if test -n "$ac_cv_prog_WINDMC"; then
12117 for ncn_progname in windmc; do
12118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12119 set dummy ${ncn_progname}; ac_word=$2
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12121 $as_echo_n "checking
for $ac_word...
" >&6; }
12122 if ${ac_cv_prog_WINDMC+:} false; then :
12123 $as_echo_n "(cached
) " >&6
12125 if test -n "$WINDMC"; then
12126 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12129 for as_dir in $PATH
12132 test -z "$as_dir" && as_dir=.
12133 for ac_exec_ext in '' $ac_executable_extensions; do
12134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12135 ac_cv_prog_WINDMC="${ncn_progname}"
12136 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12145 WINDMC=$ac_cv_prog_WINDMC
12146 if test -n "$WINDMC"; then
12147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12148 $as_echo "$WINDMC" >&6; }
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12151 $as_echo "no
" >&6; }
12158 for ncn_progname in windmc; do
12159 if test -n "$ncn_tool_prefix"; then
12160 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12161 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12163 $as_echo_n "checking
for $ac_word...
" >&6; }
12164 if ${ac_cv_prog_WINDMC+:} false; then :
12165 $as_echo_n "(cached
) " >&6
12167 if test -n "$WINDMC"; then
12168 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12171 for as_dir in $PATH
12174 test -z "$as_dir" && as_dir=.
12175 for ac_exec_ext in '' $ac_executable_extensions; do
12176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12177 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12178 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12187 WINDMC=$ac_cv_prog_WINDMC
12188 if test -n "$WINDMC"; then
12189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12190 $as_echo "$WINDMC" >&6; }
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12193 $as_echo "no
" >&6; }
12198 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12199 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12200 set dummy ${ncn_progname}; ac_word=$2
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12202 $as_echo_n "checking
for $ac_word...
" >&6; }
12203 if ${ac_cv_prog_WINDMC+:} false; then :
12204 $as_echo_n "(cached
) " >&6
12206 if test -n "$WINDMC"; then
12207 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12210 for as_dir in $PATH
12213 test -z "$as_dir" && as_dir=.
12214 for ac_exec_ext in '' $ac_executable_extensions; do
12215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12216 ac_cv_prog_WINDMC="${ncn_progname}"
12217 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12226 WINDMC=$ac_cv_prog_WINDMC
12227 if test -n "$WINDMC"; then
12228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12229 $as_echo "$WINDMC" >&6; }
12231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12232 $as_echo "no
" >&6; }
12237 test -n "$ac_cv_prog_WINDMC" && break
12240 if test -z "$ac_cv_prog_WINDMC" ; then
12242 if test $build = $host ; then
12245 WINDMC="${ncn_tool_prefix}$2"
12251 if test -n "$OBJCOPY"; then
12252 ac_cv_prog_OBJCOPY=$OBJCOPY
12253 elif test -n "$ac_cv_prog_OBJCOPY"; then
12254 OBJCOPY=$ac_cv_prog_OBJCOPY
12257 if test -n "$ac_cv_prog_OBJCOPY"; then
12258 for ncn_progname in objcopy; do
12259 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12260 set dummy ${ncn_progname}; ac_word=$2
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12262 $as_echo_n "checking
for $ac_word...
" >&6; }
12263 if ${ac_cv_prog_OBJCOPY+:} false; then :
12264 $as_echo_n "(cached
) " >&6
12266 if test -n "$OBJCOPY"; then
12267 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12270 for as_dir in $PATH
12273 test -z "$as_dir" && as_dir=.
12274 for ac_exec_ext in '' $ac_executable_extensions; do
12275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12276 ac_cv_prog_OBJCOPY="${ncn_progname}"
12277 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12286 OBJCOPY=$ac_cv_prog_OBJCOPY
12287 if test -n "$OBJCOPY"; then
12288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12289 $as_echo "$OBJCOPY" >&6; }
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12292 $as_echo "no
" >&6; }
12299 for ncn_progname in objcopy; do
12300 if test -n "$ncn_tool_prefix"; then
12301 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12302 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12304 $as_echo_n "checking
for $ac_word...
" >&6; }
12305 if ${ac_cv_prog_OBJCOPY+:} false; then :
12306 $as_echo_n "(cached
) " >&6
12308 if test -n "$OBJCOPY"; then
12309 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12312 for as_dir in $PATH
12315 test -z "$as_dir" && as_dir=.
12316 for ac_exec_ext in '' $ac_executable_extensions; do
12317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12318 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12319 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12328 OBJCOPY=$ac_cv_prog_OBJCOPY
12329 if test -n "$OBJCOPY"; then
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12331 $as_echo "$OBJCOPY" >&6; }
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12334 $as_echo "no
" >&6; }
12339 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12341 set dummy ${ncn_progname}; ac_word=$2
12342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12343 $as_echo_n "checking
for $ac_word...
" >&6; }
12344 if ${ac_cv_prog_OBJCOPY+:} false; then :
12345 $as_echo_n "(cached
) " >&6
12347 if test -n "$OBJCOPY"; then
12348 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12351 for as_dir in $PATH
12354 test -z "$as_dir" && as_dir=.
12355 for ac_exec_ext in '' $ac_executable_extensions; do
12356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12357 ac_cv_prog_OBJCOPY="${ncn_progname}"
12358 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12367 OBJCOPY=$ac_cv_prog_OBJCOPY
12368 if test -n "$OBJCOPY"; then
12369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12370 $as_echo "$OBJCOPY" >&6; }
12372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12373 $as_echo "no
" >&6; }
12378 test -n "$ac_cv_prog_OBJCOPY" && break
12381 if test -z "$ac_cv_prog_OBJCOPY" ; then
12383 if test $build = $host ; then
12386 OBJCOPY="${ncn_tool_prefix}$2"
12392 if test -n "$OBJDUMP"; then
12393 ac_cv_prog_OBJDUMP=$OBJDUMP
12394 elif test -n "$ac_cv_prog_OBJDUMP"; then
12395 OBJDUMP=$ac_cv_prog_OBJDUMP
12398 if test -n "$ac_cv_prog_OBJDUMP"; then
12399 for ncn_progname in objdump; do
12400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12401 set dummy ${ncn_progname}; ac_word=$2
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12403 $as_echo_n "checking
for $ac_word...
" >&6; }
12404 if ${ac_cv_prog_OBJDUMP+:} false; then :
12405 $as_echo_n "(cached
) " >&6
12407 if test -n "$OBJDUMP"; then
12408 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411 for as_dir in $PATH
12414 test -z "$as_dir" && as_dir=.
12415 for ac_exec_ext in '' $ac_executable_extensions; do
12416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12417 ac_cv_prog_OBJDUMP="${ncn_progname}"
12418 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12427 OBJDUMP=$ac_cv_prog_OBJDUMP
12428 if test -n "$OBJDUMP"; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12430 $as_echo "$OBJDUMP" >&6; }
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12433 $as_echo "no
" >&6; }
12440 for ncn_progname in objdump; do
12441 if test -n "$ncn_tool_prefix"; then
12442 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12443 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12445 $as_echo_n "checking
for $ac_word...
" >&6; }
12446 if ${ac_cv_prog_OBJDUMP+:} false; then :
12447 $as_echo_n "(cached
) " >&6
12449 if test -n "$OBJDUMP"; then
12450 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12453 for as_dir in $PATH
12456 test -z "$as_dir" && as_dir=.
12457 for ac_exec_ext in '' $ac_executable_extensions; do
12458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12459 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12460 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12469 OBJDUMP=$ac_cv_prog_OBJDUMP
12470 if test -n "$OBJDUMP"; then
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12472 $as_echo "$OBJDUMP" >&6; }
12474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12475 $as_echo "no
" >&6; }
12480 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12482 set dummy ${ncn_progname}; ac_word=$2
12483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12484 $as_echo_n "checking
for $ac_word...
" >&6; }
12485 if ${ac_cv_prog_OBJDUMP+:} false; then :
12486 $as_echo_n "(cached
) " >&6
12488 if test -n "$OBJDUMP"; then
12489 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12492 for as_dir in $PATH
12495 test -z "$as_dir" && as_dir=.
12496 for ac_exec_ext in '' $ac_executable_extensions; do
12497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12498 ac_cv_prog_OBJDUMP="${ncn_progname}"
12499 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12508 OBJDUMP=$ac_cv_prog_OBJDUMP
12509 if test -n "$OBJDUMP"; then
12510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12511 $as_echo "$OBJDUMP" >&6; }
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12514 $as_echo "no
" >&6; }
12519 test -n "$ac_cv_prog_OBJDUMP" && break
12522 if test -z "$ac_cv_prog_OBJDUMP" ; then
12524 if test $build = $host ; then
12527 OBJDUMP="${ncn_tool_prefix}$2"
12533 if test -n "$OTOOL"; then
12534 ac_cv_prog_OTOOL=$OTOOL
12535 elif test -n "$ac_cv_prog_OTOOL"; then
12536 OTOOL=$ac_cv_prog_OTOOL
12539 if test -n "$ac_cv_prog_OTOOL"; then
12540 for ncn_progname in otool; do
12541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12542 set dummy ${ncn_progname}; ac_word=$2
12543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12544 $as_echo_n "checking
for $ac_word...
" >&6; }
12545 if ${ac_cv_prog_OTOOL+:} false; then :
12546 $as_echo_n "(cached
) " >&6
12548 if test -n "$OTOOL"; then
12549 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12552 for as_dir in $PATH
12555 test -z "$as_dir" && as_dir=.
12556 for ac_exec_ext in '' $ac_executable_extensions; do
12557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12558 ac_cv_prog_OTOOL="${ncn_progname}"
12559 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12568 OTOOL=$ac_cv_prog_OTOOL
12569 if test -n "$OTOOL"; then
12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12571 $as_echo "$OTOOL" >&6; }
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12574 $as_echo "no
" >&6; }
12581 for ncn_progname in otool; do
12582 if test -n "$ncn_tool_prefix"; then
12583 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12584 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12586 $as_echo_n "checking
for $ac_word...
" >&6; }
12587 if ${ac_cv_prog_OTOOL+:} false; then :
12588 $as_echo_n "(cached
) " >&6
12590 if test -n "$OTOOL"; then
12591 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594 for as_dir in $PATH
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
12599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12600 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12601 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12610 OTOOL=$ac_cv_prog_OTOOL
12611 if test -n "$OTOOL"; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12613 $as_echo "$OTOOL" >&6; }
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12616 $as_echo "no
" >&6; }
12621 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12623 set dummy ${ncn_progname}; ac_word=$2
12624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12625 $as_echo_n "checking
for $ac_word...
" >&6; }
12626 if ${ac_cv_prog_OTOOL+:} false; then :
12627 $as_echo_n "(cached
) " >&6
12629 if test -n "$OTOOL"; then
12630 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12633 for as_dir in $PATH
12636 test -z "$as_dir" && as_dir=.
12637 for ac_exec_ext in '' $ac_executable_extensions; do
12638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12639 ac_cv_prog_OTOOL="${ncn_progname}"
12640 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12649 OTOOL=$ac_cv_prog_OTOOL
12650 if test -n "$OTOOL"; then
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12652 $as_echo "$OTOOL" >&6; }
12654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12655 $as_echo "no
" >&6; }
12660 test -n "$ac_cv_prog_OTOOL" && break
12663 if test -z "$ac_cv_prog_OTOOL" ; then
12665 if test $build = $host ; then
12668 OTOOL="${ncn_tool_prefix}$2"
12674 if test -n "$READELF"; then
12675 ac_cv_prog_READELF=$READELF
12676 elif test -n "$ac_cv_prog_READELF"; then
12677 READELF=$ac_cv_prog_READELF
12680 if test -n "$ac_cv_prog_READELF"; then
12681 for ncn_progname in readelf; do
12682 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12683 set dummy ${ncn_progname}; ac_word=$2
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12685 $as_echo_n "checking
for $ac_word...
" >&6; }
12686 if ${ac_cv_prog_READELF+:} false; then :
12687 $as_echo_n "(cached
) " >&6
12689 if test -n "$READELF"; then
12690 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12693 for as_dir in $PATH
12696 test -z "$as_dir" && as_dir=.
12697 for ac_exec_ext in '' $ac_executable_extensions; do
12698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12699 ac_cv_prog_READELF="${ncn_progname}"
12700 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12709 READELF=$ac_cv_prog_READELF
12710 if test -n "$READELF"; then
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12712 $as_echo "$READELF" >&6; }
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12715 $as_echo "no
" >&6; }
12722 for ncn_progname in readelf; do
12723 if test -n "$ncn_tool_prefix"; then
12724 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12725 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12727 $as_echo_n "checking
for $ac_word...
" >&6; }
12728 if ${ac_cv_prog_READELF+:} false; then :
12729 $as_echo_n "(cached
) " >&6
12731 if test -n "$READELF"; then
12732 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735 for as_dir in $PATH
12738 test -z "$as_dir" && as_dir=.
12739 for ac_exec_ext in '' $ac_executable_extensions; do
12740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12741 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12742 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12751 READELF=$ac_cv_prog_READELF
12752 if test -n "$READELF"; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12754 $as_echo "$READELF" >&6; }
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12757 $as_echo "no
" >&6; }
12762 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12763 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12764 set dummy ${ncn_progname}; ac_word=$2
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12766 $as_echo_n "checking
for $ac_word...
" >&6; }
12767 if ${ac_cv_prog_READELF+:} false; then :
12768 $as_echo_n "(cached
) " >&6
12770 if test -n "$READELF"; then
12771 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12773 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12774 for as_dir in $PATH
12777 test -z "$as_dir" && as_dir=.
12778 for ac_exec_ext in '' $ac_executable_extensions; do
12779 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12780 ac_cv_prog_READELF="${ncn_progname}"
12781 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12790 READELF=$ac_cv_prog_READELF
12791 if test -n "$READELF"; then
12792 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12793 $as_echo "$READELF" >&6; }
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12796 $as_echo "no
" >&6; }
12801 test -n "$ac_cv_prog_READELF" && break
12804 if test -z "$ac_cv_prog_READELF" ; then
12806 if test $build = $host ; then
12809 READELF="${ncn_tool_prefix}$2"
12822 # Check whether --with-build-time-tools was given.
12823 if test "${with_build_time_tools+set}" = set; then :
12824 withval=$with_build_time_tools; case x"$withval" in
12827 with_build_time_tools=
12828 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
12829 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
12833 with_build_time_tools=
12839 if test -n "$CC_FOR_TARGET"; then
12840 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12841 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12842 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12845 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12846 for ncn_progname in cc gcc; do
12847 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12848 set dummy ${ncn_progname}; ac_word=$2
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12850 $as_echo_n "checking
for $ac_word...
" >&6; }
12851 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12852 $as_echo_n "(cached
) " >&6
12854 if test -n "$CC_FOR_TARGET"; then
12855 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12858 for as_dir in $PATH
12861 test -z "$as_dir" && as_dir=.
12862 for ac_exec_ext in '' $ac_executable_extensions; do
12863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12864 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12865 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12874 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12875 if test -n "$CC_FOR_TARGET"; then
12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12877 $as_echo "$CC_FOR_TARGET" >&6; }
12879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12880 $as_echo "no
" >&6; }
12887 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12888 for ncn_progname in cc gcc; do
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12890 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12891 if test -x $with_build_time_tools/${ncn_progname}; then
12892 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12894 $as_echo "yes" >&6; }
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12898 $as_echo "no
" >&6; }
12903 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12904 for ncn_progname in cc gcc; do
12905 if test -n "$ncn_target_tool_prefix"; then
12906 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12907 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12909 $as_echo_n "checking
for $ac_word...
" >&6; }
12910 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12911 $as_echo_n "(cached
) " >&6
12913 if test -n "$CC_FOR_TARGET"; then
12914 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12917 for as_dir in $PATH
12920 test -z "$as_dir" && as_dir=.
12921 for ac_exec_ext in '' $ac_executable_extensions; do
12922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12923 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12924 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12933 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12934 if test -n "$CC_FOR_TARGET"; then
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12936 $as_echo "$CC_FOR_TARGET" >&6; }
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12939 $as_echo "no
" >&6; }
12944 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12945 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12946 set dummy ${ncn_progname}; ac_word=$2
12947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12948 $as_echo_n "checking
for $ac_word...
" >&6; }
12949 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12950 $as_echo_n "(cached
) " >&6
12952 if test -n "$CC_FOR_TARGET"; then
12953 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12956 for as_dir in $PATH
12959 test -z "$as_dir" && as_dir=.
12960 for ac_exec_ext in '' $ac_executable_extensions; do
12961 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12962 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12963 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12972 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12973 if test -n "$CC_FOR_TARGET"; then
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12975 $as_echo "$CC_FOR_TARGET" >&6; }
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12978 $as_echo "no
" >&6; }
12983 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12987 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12989 if test $build = $target ; then
12992 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12995 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13000 if test -n "$CXX_FOR_TARGET"; then
13001 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13002 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13003 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13006 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13007 for ncn_progname in c++ g++ cxx gxx; do
13008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13009 set dummy ${ncn_progname}; ac_word=$2
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13011 $as_echo_n "checking
for $ac_word...
" >&6; }
13012 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13013 $as_echo_n "(cached
) " >&6
13015 if test -n "$CXX_FOR_TARGET"; then
13016 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13019 for as_dir in $PATH
13022 test -z "$as_dir" && as_dir=.
13023 for ac_exec_ext in '' $ac_executable_extensions; do
13024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13025 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13026 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13035 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13036 if test -n "$CXX_FOR_TARGET"; then
13037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13038 $as_echo "$CXX_FOR_TARGET" >&6; }
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13041 $as_echo "no
" >&6; }
13048 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13049 for ncn_progname in c++ g++ cxx gxx; do
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13051 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13052 if test -x $with_build_time_tools/${ncn_progname}; then
13053 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13055 $as_echo "yes" >&6; }
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13059 $as_echo "no
" >&6; }
13064 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13065 for ncn_progname in c++ g++ cxx gxx; do
13066 if test -n "$ncn_target_tool_prefix"; then
13067 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13068 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13070 $as_echo_n "checking
for $ac_word...
" >&6; }
13071 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13072 $as_echo_n "(cached
) " >&6
13074 if test -n "$CXX_FOR_TARGET"; then
13075 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13078 for as_dir in $PATH
13081 test -z "$as_dir" && as_dir=.
13082 for ac_exec_ext in '' $ac_executable_extensions; do
13083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13084 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13085 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13094 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13095 if test -n "$CXX_FOR_TARGET"; then
13096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13097 $as_echo "$CXX_FOR_TARGET" >&6; }
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13100 $as_echo "no
" >&6; }
13105 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13107 set dummy ${ncn_progname}; ac_word=$2
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13109 $as_echo_n "checking
for $ac_word...
" >&6; }
13110 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13111 $as_echo_n "(cached
) " >&6
13113 if test -n "$CXX_FOR_TARGET"; then
13114 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13117 for as_dir in $PATH
13120 test -z "$as_dir" && as_dir=.
13121 for ac_exec_ext in '' $ac_executable_extensions; do
13122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13123 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13124 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13133 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13134 if test -n "$CXX_FOR_TARGET"; then
13135 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13136 $as_echo "$CXX_FOR_TARGET" >&6; }
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13139 $as_echo "no
" >&6; }
13144 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13148 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13149 set dummy c++ g++ cxx gxx
13150 if test $build = $target ; then
13151 CXX_FOR_TARGET="$2"
13153 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13156 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13161 if test -n "$GCC_FOR_TARGET"; then
13162 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13163 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13164 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13167 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13168 for ncn_progname in gcc; do
13169 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13170 set dummy ${ncn_progname}; ac_word=$2
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13172 $as_echo_n "checking
for $ac_word...
" >&6; }
13173 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13174 $as_echo_n "(cached
) " >&6
13176 if test -n "$GCC_FOR_TARGET"; then
13177 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13180 for as_dir in $PATH
13183 test -z "$as_dir" && as_dir=.
13184 for ac_exec_ext in '' $ac_executable_extensions; do
13185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13186 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13187 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13196 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13197 if test -n "$GCC_FOR_TARGET"; then
13198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13199 $as_echo "$GCC_FOR_TARGET" >&6; }
13201 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13202 $as_echo "no
" >&6; }
13209 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13210 for ncn_progname in gcc; do
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13212 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13213 if test -x $with_build_time_tools/${ncn_progname}; then
13214 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13216 $as_echo "yes" >&6; }
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13220 $as_echo "no
" >&6; }
13225 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13226 for ncn_progname in gcc; do
13227 if test -n "$ncn_target_tool_prefix"; then
13228 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13229 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13231 $as_echo_n "checking
for $ac_word...
" >&6; }
13232 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13233 $as_echo_n "(cached
) " >&6
13235 if test -n "$GCC_FOR_TARGET"; then
13236 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13239 for as_dir in $PATH
13242 test -z "$as_dir" && as_dir=.
13243 for ac_exec_ext in '' $ac_executable_extensions; do
13244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13245 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13246 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13255 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13256 if test -n "$GCC_FOR_TARGET"; then
13257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13258 $as_echo "$GCC_FOR_TARGET" >&6; }
13260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13261 $as_echo "no
" >&6; }
13266 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13267 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13268 set dummy ${ncn_progname}; ac_word=$2
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13270 $as_echo_n "checking
for $ac_word...
" >&6; }
13271 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13272 $as_echo_n "(cached
) " >&6
13274 if test -n "$GCC_FOR_TARGET"; then
13275 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13277 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13278 for as_dir in $PATH
13281 test -z "$as_dir" && as_dir=.
13282 for ac_exec_ext in '' $ac_executable_extensions; do
13283 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13284 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13285 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13294 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13295 if test -n "$GCC_FOR_TARGET"; then
13296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13297 $as_echo "$GCC_FOR_TARGET" >&6; }
13299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13300 $as_echo "no
" >&6; }
13305 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13309 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13310 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13312 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13317 if test -n "$GFORTRAN_FOR_TARGET"; then
13318 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13319 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13320 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13323 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13324 for ncn_progname in gfortran; do
13325 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13326 set dummy ${ncn_progname}; ac_word=$2
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13328 $as_echo_n "checking
for $ac_word...
" >&6; }
13329 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13330 $as_echo_n "(cached
) " >&6
13332 if test -n "$GFORTRAN_FOR_TARGET"; then
13333 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13336 for as_dir in $PATH
13339 test -z "$as_dir" && as_dir=.
13340 for ac_exec_ext in '' $ac_executable_extensions; do
13341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13342 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13343 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13352 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13353 if test -n "$GFORTRAN_FOR_TARGET"; then
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13355 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13358 $as_echo "no
" >&6; }
13365 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13366 for ncn_progname in gfortran; do
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13368 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13369 if test -x $with_build_time_tools/${ncn_progname}; then
13370 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13372 $as_echo "yes" >&6; }
13375 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13376 $as_echo "no
" >&6; }
13381 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13382 for ncn_progname in gfortran; do
13383 if test -n "$ncn_target_tool_prefix"; then
13384 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13385 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13387 $as_echo_n "checking
for $ac_word...
" >&6; }
13388 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13389 $as_echo_n "(cached
) " >&6
13391 if test -n "$GFORTRAN_FOR_TARGET"; then
13392 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13395 for as_dir in $PATH
13398 test -z "$as_dir" && as_dir=.
13399 for ac_exec_ext in '' $ac_executable_extensions; do
13400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13401 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13402 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13411 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13412 if test -n "$GFORTRAN_FOR_TARGET"; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13414 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13417 $as_echo "no
" >&6; }
13422 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13423 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13424 set dummy ${ncn_progname}; ac_word=$2
13425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13426 $as_echo_n "checking
for $ac_word...
" >&6; }
13427 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13428 $as_echo_n "(cached
) " >&6
13430 if test -n "$GFORTRAN_FOR_TARGET"; then
13431 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13434 for as_dir in $PATH
13437 test -z "$as_dir" && as_dir=.
13438 for ac_exec_ext in '' $ac_executable_extensions; do
13439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13440 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13441 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13450 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13451 if test -n "$GFORTRAN_FOR_TARGET"; then
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13453 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13456 $as_echo "no
" >&6; }
13461 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13465 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13467 if test $build = $target ; then
13468 GFORTRAN_FOR_TARGET="$2"
13470 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13473 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13478 if test -n "$GOC_FOR_TARGET"; then
13479 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13480 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13481 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13484 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13485 for ncn_progname in gccgo; do
13486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13487 set dummy ${ncn_progname}; ac_word=$2
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13489 $as_echo_n "checking
for $ac_word...
" >&6; }
13490 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13491 $as_echo_n "(cached
) " >&6
13493 if test -n "$GOC_FOR_TARGET"; then
13494 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13497 for as_dir in $PATH
13500 test -z "$as_dir" && as_dir=.
13501 for ac_exec_ext in '' $ac_executable_extensions; do
13502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13503 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13504 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13513 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13514 if test -n "$GOC_FOR_TARGET"; then
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13516 $as_echo "$GOC_FOR_TARGET" >&6; }
13518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13519 $as_echo "no
" >&6; }
13526 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13527 for ncn_progname in gccgo; do
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13529 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13530 if test -x $with_build_time_tools/${ncn_progname}; then
13531 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13532 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13533 $as_echo "yes" >&6; }
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13537 $as_echo "no
" >&6; }
13542 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13543 for ncn_progname in gccgo; do
13544 if test -n "$ncn_target_tool_prefix"; then
13545 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13546 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13548 $as_echo_n "checking
for $ac_word...
" >&6; }
13549 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13550 $as_echo_n "(cached
) " >&6
13552 if test -n "$GOC_FOR_TARGET"; then
13553 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13556 for as_dir in $PATH
13559 test -z "$as_dir" && as_dir=.
13560 for ac_exec_ext in '' $ac_executable_extensions; do
13561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13562 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13563 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13572 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13573 if test -n "$GOC_FOR_TARGET"; then
13574 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13575 $as_echo "$GOC_FOR_TARGET" >&6; }
13577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13578 $as_echo "no
" >&6; }
13583 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13584 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13585 set dummy ${ncn_progname}; ac_word=$2
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13587 $as_echo_n "checking
for $ac_word...
" >&6; }
13588 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13589 $as_echo_n "(cached
) " >&6
13591 if test -n "$GOC_FOR_TARGET"; then
13592 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13595 for as_dir in $PATH
13598 test -z "$as_dir" && as_dir=.
13599 for ac_exec_ext in '' $ac_executable_extensions; do
13600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13601 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13602 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13611 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13612 if test -n "$GOC_FOR_TARGET"; then
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13614 $as_echo "$GOC_FOR_TARGET" >&6; }
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13617 $as_echo "no
" >&6; }
13622 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13626 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13628 if test $build = $target ; then
13629 GOC_FOR_TARGET="$2"
13631 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13634 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13639 if test -n "$GDC_FOR_TARGET"; then
13640 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13641 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13642 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13645 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13646 for ncn_progname in gdc; do
13647 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13648 set dummy ${ncn_progname}; ac_word=$2
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13650 $as_echo_n "checking
for $ac_word...
" >&6; }
13651 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13652 $as_echo_n "(cached
) " >&6
13654 if test -n "$GDC_FOR_TARGET"; then
13655 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13658 for as_dir in $PATH
13661 test -z "$as_dir" && as_dir=.
13662 for ac_exec_ext in '' $ac_executable_extensions; do
13663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13664 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13665 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13674 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13675 if test -n "$GDC_FOR_TARGET"; then
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13677 $as_echo "$GDC_FOR_TARGET" >&6; }
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13680 $as_echo "no
" >&6; }
13687 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13688 for ncn_progname in gdc; do
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13690 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13691 if test -x $with_build_time_tools/${ncn_progname}; then
13692 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13694 $as_echo "yes" >&6; }
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13698 $as_echo "no
" >&6; }
13703 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13704 for ncn_progname in gdc; do
13705 if test -n "$ncn_target_tool_prefix"; then
13706 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13707 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13709 $as_echo_n "checking
for $ac_word...
" >&6; }
13710 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13711 $as_echo_n "(cached
) " >&6
13713 if test -n "$GDC_FOR_TARGET"; then
13714 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13717 for as_dir in $PATH
13720 test -z "$as_dir" && as_dir=.
13721 for ac_exec_ext in '' $ac_executable_extensions; do
13722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13723 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13724 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13733 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13734 if test -n "$GDC_FOR_TARGET"; then
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13736 $as_echo "$GDC_FOR_TARGET" >&6; }
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13739 $as_echo "no
" >&6; }
13744 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13745 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13746 set dummy ${ncn_progname}; ac_word=$2
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13748 $as_echo_n "checking
for $ac_word...
" >&6; }
13749 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13750 $as_echo_n "(cached
) " >&6
13752 if test -n "$GDC_FOR_TARGET"; then
13753 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13756 for as_dir in $PATH
13759 test -z "$as_dir" && as_dir=.
13760 for ac_exec_ext in '' $ac_executable_extensions; do
13761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13762 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13763 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13772 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13773 if test -n "$GDC_FOR_TARGET"; then
13774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13775 $as_echo "$GDC_FOR_TARGET" >&6; }
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13778 $as_echo "no
" >&6; }
13783 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13787 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13789 if test $build = $target ; then
13790 GDC_FOR_TARGET="$2"
13792 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13795 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13800 cat > conftest.c << \EOF
13805 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13806 have_gcc_for_target=yes
13808 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13809 have_gcc_for_target=no
13816 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13817 if test -n "$with_build_time_tools"; then
13818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
13819 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
13820 if test -x $with_build_time_tools/ar; then
13821 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13822 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13823 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
13824 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13827 $as_echo "no
" >&6; }
13829 elif test $build != $host && test $have_gcc_for_target = yes; then
13830 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13831 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13832 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13835 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13836 # Extract the first word of "ar", so it can be a program name with args.
13837 set dummy ar; ac_word=$2
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13839 $as_echo_n "checking
for $ac_word...
" >&6; }
13840 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13841 $as_echo_n "(cached
) " >&6
13843 case $AR_FOR_TARGET in
13845 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13849 for as_dir in $gcc_cv_tool_dirs
13852 test -z "$as_dir" && as_dir=.
13853 for ac_exec_ext in '' $ac_executable_extensions; do
13854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13855 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13856 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13866 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13867 if test -n "$AR_FOR_TARGET"; then
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13869 $as_echo "$AR_FOR_TARGET" >&6; }
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13872 $as_echo "no
" >&6; }
13877 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13880 if test -n "$AR_FOR_TARGET"; then
13881 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13882 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13883 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13886 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13887 for ncn_progname in ar; do
13888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13889 set dummy ${ncn_progname}; ac_word=$2
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13891 $as_echo_n "checking
for $ac_word...
" >&6; }
13892 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13893 $as_echo_n "(cached
) " >&6
13895 if test -n "$AR_FOR_TARGET"; then
13896 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13899 for as_dir in $PATH
13902 test -z "$as_dir" && as_dir=.
13903 for ac_exec_ext in '' $ac_executable_extensions; do
13904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13905 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13906 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13915 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13916 if test -n "$AR_FOR_TARGET"; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13918 $as_echo "$AR_FOR_TARGET" >&6; }
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13921 $as_echo "no
" >&6; }
13928 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13929 for ncn_progname in ar; do
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13931 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13932 if test -x $with_build_time_tools/${ncn_progname}; then
13933 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13935 $as_echo "yes" >&6; }
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13939 $as_echo "no
" >&6; }
13944 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13945 for ncn_progname in ar; do
13946 if test -n "$ncn_target_tool_prefix"; then
13947 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13948 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13950 $as_echo_n "checking
for $ac_word...
" >&6; }
13951 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13952 $as_echo_n "(cached
) " >&6
13954 if test -n "$AR_FOR_TARGET"; then
13955 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13958 for as_dir in $PATH
13961 test -z "$as_dir" && as_dir=.
13962 for ac_exec_ext in '' $ac_executable_extensions; do
13963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13964 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13965 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13974 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13975 if test -n "$AR_FOR_TARGET"; then
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13977 $as_echo "$AR_FOR_TARGET" >&6; }
13979 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13980 $as_echo "no
" >&6; }
13985 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13986 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13987 set dummy ${ncn_progname}; ac_word=$2
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13989 $as_echo_n "checking
for $ac_word...
" >&6; }
13990 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13991 $as_echo_n "(cached
) " >&6
13993 if test -n "$AR_FOR_TARGET"; then
13994 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13997 for as_dir in $PATH
14000 test -z "$as_dir" && as_dir=.
14001 for ac_exec_ext in '' $ac_executable_extensions; do
14002 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14003 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14004 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14013 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14014 if test -n "$AR_FOR_TARGET"; then
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14016 $as_echo "$AR_FOR_TARGET" >&6; }
14018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14019 $as_echo "no
" >&6; }
14024 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14028 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14030 if test $build = $target ; then
14033 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14036 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14040 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14046 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14047 if test -n "$with_build_time_tools"; then
14048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14049 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14050 if test -x $with_build_time_tools/as; then
14051 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14052 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14054 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14057 $as_echo "no
" >&6; }
14059 elif test $build != $host && test $have_gcc_for_target = yes; then
14060 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14061 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14062 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14065 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14066 # Extract the first word of "as
", so it can be a program name with args.
14067 set dummy as; ac_word=$2
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14069 $as_echo_n "checking
for $ac_word...
" >&6; }
14070 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14071 $as_echo_n "(cached
) " >&6
14073 case $AS_FOR_TARGET in
14075 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14079 for as_dir in $gcc_cv_tool_dirs
14082 test -z "$as_dir" && as_dir=.
14083 for ac_exec_ext in '' $ac_executable_extensions; do
14084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14085 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14086 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14096 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14097 if test -n "$AS_FOR_TARGET"; then
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14099 $as_echo "$AS_FOR_TARGET" >&6; }
14101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14102 $as_echo "no
" >&6; }
14107 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14110 if test -n "$AS_FOR_TARGET"; then
14111 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14112 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14113 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14116 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14117 for ncn_progname in as; do
14118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14119 set dummy ${ncn_progname}; ac_word=$2
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14121 $as_echo_n "checking
for $ac_word...
" >&6; }
14122 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14123 $as_echo_n "(cached
) " >&6
14125 if test -n "$AS_FOR_TARGET"; then
14126 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14129 for as_dir in $PATH
14132 test -z "$as_dir" && as_dir=.
14133 for ac_exec_ext in '' $ac_executable_extensions; do
14134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14135 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14136 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14145 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14146 if test -n "$AS_FOR_TARGET"; then
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14148 $as_echo "$AS_FOR_TARGET" >&6; }
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14151 $as_echo "no
" >&6; }
14158 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14159 for ncn_progname in as; do
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14161 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14162 if test -x $with_build_time_tools/${ncn_progname}; then
14163 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14165 $as_echo "yes" >&6; }
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14169 $as_echo "no
" >&6; }
14174 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14175 for ncn_progname in as; do
14176 if test -n "$ncn_target_tool_prefix"; then
14177 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14178 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14180 $as_echo_n "checking
for $ac_word...
" >&6; }
14181 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14182 $as_echo_n "(cached
) " >&6
14184 if test -n "$AS_FOR_TARGET"; then
14185 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14188 for as_dir in $PATH
14191 test -z "$as_dir" && as_dir=.
14192 for ac_exec_ext in '' $ac_executable_extensions; do
14193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14194 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14195 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14204 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14205 if test -n "$AS_FOR_TARGET"; then
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14207 $as_echo "$AS_FOR_TARGET" >&6; }
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14210 $as_echo "no
" >&6; }
14215 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14216 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14217 set dummy ${ncn_progname}; ac_word=$2
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14219 $as_echo_n "checking
for $ac_word...
" >&6; }
14220 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14221 $as_echo_n "(cached
) " >&6
14223 if test -n "$AS_FOR_TARGET"; then
14224 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14227 for as_dir in $PATH
14230 test -z "$as_dir" && as_dir=.
14231 for ac_exec_ext in '' $ac_executable_extensions; do
14232 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14233 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14234 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14243 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14244 if test -n "$AS_FOR_TARGET"; then
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14246 $as_echo "$AS_FOR_TARGET" >&6; }
14248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14249 $as_echo "no
" >&6; }
14254 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14258 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14260 if test $build = $target ; then
14263 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14266 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14270 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14276 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14277 if test -n "$with_build_time_tools"; then
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14279 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14280 if test -x $with_build_time_tools/dlltool; then
14281 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14282 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14284 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14287 $as_echo "no
" >&6; }
14289 elif test $build != $host && test $have_gcc_for_target = yes; then
14290 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14291 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14292 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14295 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14296 # Extract the first word of "dlltool
", so it can be a program name with args.
14297 set dummy dlltool; ac_word=$2
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14299 $as_echo_n "checking
for $ac_word...
" >&6; }
14300 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14301 $as_echo_n "(cached
) " >&6
14303 case $DLLTOOL_FOR_TARGET in
14305 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14309 for as_dir in $gcc_cv_tool_dirs
14312 test -z "$as_dir" && as_dir=.
14313 for ac_exec_ext in '' $ac_executable_extensions; do
14314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14315 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14316 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14326 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14327 if test -n "$DLLTOOL_FOR_TARGET"; then
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14329 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14332 $as_echo "no
" >&6; }
14337 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14340 if test -n "$DLLTOOL_FOR_TARGET"; then
14341 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14342 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14343 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14346 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14347 for ncn_progname in dlltool; do
14348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14349 set dummy ${ncn_progname}; ac_word=$2
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14351 $as_echo_n "checking
for $ac_word...
" >&6; }
14352 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14353 $as_echo_n "(cached
) " >&6
14355 if test -n "$DLLTOOL_FOR_TARGET"; then
14356 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14359 for as_dir in $PATH
14362 test -z "$as_dir" && as_dir=.
14363 for ac_exec_ext in '' $ac_executable_extensions; do
14364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14365 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14366 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14375 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14376 if test -n "$DLLTOOL_FOR_TARGET"; then
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14378 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14381 $as_echo "no
" >&6; }
14388 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14389 for ncn_progname in dlltool; do
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14391 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14392 if test -x $with_build_time_tools/${ncn_progname}; then
14393 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14395 $as_echo "yes" >&6; }
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14399 $as_echo "no
" >&6; }
14404 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14405 for ncn_progname in dlltool; do
14406 if test -n "$ncn_target_tool_prefix"; then
14407 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14408 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14410 $as_echo_n "checking
for $ac_word...
" >&6; }
14411 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14412 $as_echo_n "(cached
) " >&6
14414 if test -n "$DLLTOOL_FOR_TARGET"; then
14415 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14418 for as_dir in $PATH
14421 test -z "$as_dir" && as_dir=.
14422 for ac_exec_ext in '' $ac_executable_extensions; do
14423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14424 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14425 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14434 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14435 if test -n "$DLLTOOL_FOR_TARGET"; then
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14437 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14440 $as_echo "no
" >&6; }
14445 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14446 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14447 set dummy ${ncn_progname}; ac_word=$2
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14449 $as_echo_n "checking
for $ac_word...
" >&6; }
14450 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14451 $as_echo_n "(cached
) " >&6
14453 if test -n "$DLLTOOL_FOR_TARGET"; then
14454 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14457 for as_dir in $PATH
14460 test -z "$as_dir" && as_dir=.
14461 for ac_exec_ext in '' $ac_executable_extensions; do
14462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14463 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14464 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14473 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14474 if test -n "$DLLTOOL_FOR_TARGET"; then
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14476 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14479 $as_echo "no
" >&6; }
14484 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14488 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14490 if test $build = $target ; then
14491 DLLTOOL_FOR_TARGET="$2"
14493 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14496 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14500 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14506 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14507 if test -n "$with_build_time_tools"; then
14508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
14509 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
14510 if test -x $with_build_time_tools/dsymutil; then
14511 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14512 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14514 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14517 $as_echo "no
" >&6; }
14519 elif test $build != $host && test $have_gcc_for_target = yes; then
14520 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14521 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14522 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14525 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14526 # Extract the first word of "dsymutil
", so it can be a program name with args.
14527 set dummy dsymutil; ac_word=$2
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14529 $as_echo_n "checking
for $ac_word...
" >&6; }
14530 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14531 $as_echo_n "(cached
) " >&6
14533 case $DSYMUTIL_FOR_TARGET in
14535 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14539 for as_dir in $gcc_cv_tool_dirs
14542 test -z "$as_dir" && as_dir=.
14543 for ac_exec_ext in '' $ac_executable_extensions; do
14544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14545 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14546 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14556 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14557 if test -n "$DSYMUTIL_FOR_TARGET"; then
14558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14559 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14562 $as_echo "no
" >&6; }
14567 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14570 if test -n "$DSYMUTIL_FOR_TARGET"; then
14571 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14572 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14573 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14576 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14577 for ncn_progname in dsymutil; do
14578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14579 set dummy ${ncn_progname}; ac_word=$2
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14581 $as_echo_n "checking
for $ac_word...
" >&6; }
14582 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14583 $as_echo_n "(cached
) " >&6
14585 if test -n "$DSYMUTIL_FOR_TARGET"; then
14586 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14589 for as_dir in $PATH
14592 test -z "$as_dir" && as_dir=.
14593 for ac_exec_ext in '' $ac_executable_extensions; do
14594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14595 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14596 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14605 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14606 if test -n "$DSYMUTIL_FOR_TARGET"; then
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14608 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14611 $as_echo "no
" >&6; }
14618 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14619 for ncn_progname in dsymutil; do
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14621 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14622 if test -x $with_build_time_tools/${ncn_progname}; then
14623 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14625 $as_echo "yes" >&6; }
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14629 $as_echo "no
" >&6; }
14634 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14635 for ncn_progname in dsymutil; do
14636 if test -n "$ncn_target_tool_prefix"; then
14637 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14638 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14640 $as_echo_n "checking
for $ac_word...
" >&6; }
14641 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14642 $as_echo_n "(cached
) " >&6
14644 if test -n "$DSYMUTIL_FOR_TARGET"; then
14645 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14648 for as_dir in $PATH
14651 test -z "$as_dir" && as_dir=.
14652 for ac_exec_ext in '' $ac_executable_extensions; do
14653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14654 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14655 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14664 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14665 if test -n "$DSYMUTIL_FOR_TARGET"; then
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14667 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14670 $as_echo "no
" >&6; }
14675 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14676 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14677 set dummy ${ncn_progname}; ac_word=$2
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14679 $as_echo_n "checking
for $ac_word...
" >&6; }
14680 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14681 $as_echo_n "(cached
) " >&6
14683 if test -n "$DSYMUTIL_FOR_TARGET"; then
14684 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14687 for as_dir in $PATH
14690 test -z "$as_dir" && as_dir=.
14691 for ac_exec_ext in '' $ac_executable_extensions; do
14692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14693 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14694 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14703 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14704 if test -n "$DSYMUTIL_FOR_TARGET"; then
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14706 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14709 $as_echo "no
" >&6; }
14714 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14718 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14720 if test $build = $target ; then
14721 DSYMUTIL_FOR_TARGET="$2"
14723 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14726 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14730 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14736 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14737 if test -n "$with_build_time_tools"; then
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
14739 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
14740 if test -x $with_build_time_tools/ld; then
14741 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14742 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
14744 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14747 $as_echo "no
" >&6; }
14749 elif test $build != $host && test $have_gcc_for_target = yes; then
14750 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14751 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14752 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14755 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14756 # Extract the first word of "ld
", so it can be a program name with args.
14757 set dummy ld; ac_word=$2
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14759 $as_echo_n "checking
for $ac_word...
" >&6; }
14760 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14761 $as_echo_n "(cached
) " >&6
14763 case $LD_FOR_TARGET in
14765 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14769 for as_dir in $gcc_cv_tool_dirs
14772 test -z "$as_dir" && as_dir=.
14773 for ac_exec_ext in '' $ac_executable_extensions; do
14774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14775 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14776 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14786 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14787 if test -n "$LD_FOR_TARGET"; then
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14789 $as_echo "$LD_FOR_TARGET" >&6; }
14791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14792 $as_echo "no
" >&6; }
14797 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14800 if test -n "$LD_FOR_TARGET"; then
14801 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14802 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14803 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14806 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14807 for ncn_progname in ld; do
14808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14809 set dummy ${ncn_progname}; ac_word=$2
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14811 $as_echo_n "checking
for $ac_word...
" >&6; }
14812 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14813 $as_echo_n "(cached
) " >&6
14815 if test -n "$LD_FOR_TARGET"; then
14816 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14819 for as_dir in $PATH
14822 test -z "$as_dir" && as_dir=.
14823 for ac_exec_ext in '' $ac_executable_extensions; do
14824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14825 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14826 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14835 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14836 if test -n "$LD_FOR_TARGET"; then
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14838 $as_echo "$LD_FOR_TARGET" >&6; }
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14841 $as_echo "no
" >&6; }
14848 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14849 for ncn_progname in ld; do
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14851 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14852 if test -x $with_build_time_tools/${ncn_progname}; then
14853 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14855 $as_echo "yes" >&6; }
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14859 $as_echo "no
" >&6; }
14864 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14865 for ncn_progname in ld; do
14866 if test -n "$ncn_target_tool_prefix"; then
14867 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14868 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14870 $as_echo_n "checking
for $ac_word...
" >&6; }
14871 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14872 $as_echo_n "(cached
) " >&6
14874 if test -n "$LD_FOR_TARGET"; then
14875 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14878 for as_dir in $PATH
14881 test -z "$as_dir" && as_dir=.
14882 for ac_exec_ext in '' $ac_executable_extensions; do
14883 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14884 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14885 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14894 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14895 if test -n "$LD_FOR_TARGET"; then
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14897 $as_echo "$LD_FOR_TARGET" >&6; }
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14900 $as_echo "no
" >&6; }
14905 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14906 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14907 set dummy ${ncn_progname}; ac_word=$2
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14909 $as_echo_n "checking
for $ac_word...
" >&6; }
14910 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14911 $as_echo_n "(cached
) " >&6
14913 if test -n "$LD_FOR_TARGET"; then
14914 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14917 for as_dir in $PATH
14920 test -z "$as_dir" && as_dir=.
14921 for ac_exec_ext in '' $ac_executable_extensions; do
14922 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14923 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14924 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14933 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14934 if test -n "$LD_FOR_TARGET"; then
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14936 $as_echo "$LD_FOR_TARGET" >&6; }
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14939 $as_echo "no
" >&6; }
14944 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14948 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14950 if test $build = $target ; then
14953 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14956 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14960 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14966 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14967 if test -n "$with_build_time_tools"; then
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
14969 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
14970 if test -x $with_build_time_tools/lipo; then
14971 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14972 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
14974 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14977 $as_echo "no
" >&6; }
14979 elif test $build != $host && test $have_gcc_for_target = yes; then
14980 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14981 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14982 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14985 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14986 # Extract the first word of "lipo
", so it can be a program name with args.
14987 set dummy lipo; ac_word=$2
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14989 $as_echo_n "checking
for $ac_word...
" >&6; }
14990 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14991 $as_echo_n "(cached
) " >&6
14993 case $LIPO_FOR_TARGET in
14995 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14999 for as_dir in $gcc_cv_tool_dirs
15002 test -z "$as_dir" && as_dir=.
15003 for ac_exec_ext in '' $ac_executable_extensions; do
15004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15005 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15006 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15016 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15017 if test -n "$LIPO_FOR_TARGET"; then
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15019 $as_echo "$LIPO_FOR_TARGET" >&6; }
15021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15022 $as_echo "no
" >&6; }
15027 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15030 if test -n "$LIPO_FOR_TARGET"; then
15031 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15032 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15033 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15036 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15037 for ncn_progname in lipo; do
15038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15039 set dummy ${ncn_progname}; ac_word=$2
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15041 $as_echo_n "checking
for $ac_word...
" >&6; }
15042 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15043 $as_echo_n "(cached
) " >&6
15045 if test -n "$LIPO_FOR_TARGET"; then
15046 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15049 for as_dir in $PATH
15052 test -z "$as_dir" && as_dir=.
15053 for ac_exec_ext in '' $ac_executable_extensions; do
15054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15055 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15056 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15065 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15066 if test -n "$LIPO_FOR_TARGET"; then
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15068 $as_echo "$LIPO_FOR_TARGET" >&6; }
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15071 $as_echo "no
" >&6; }
15078 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15079 for ncn_progname in lipo; do
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15081 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15082 if test -x $with_build_time_tools/${ncn_progname}; then
15083 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15085 $as_echo "yes" >&6; }
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15089 $as_echo "no
" >&6; }
15094 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15095 for ncn_progname in lipo; do
15096 if test -n "$ncn_target_tool_prefix"; then
15097 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15098 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15100 $as_echo_n "checking
for $ac_word...
" >&6; }
15101 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15102 $as_echo_n "(cached
) " >&6
15104 if test -n "$LIPO_FOR_TARGET"; then
15105 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15108 for as_dir in $PATH
15111 test -z "$as_dir" && as_dir=.
15112 for ac_exec_ext in '' $ac_executable_extensions; do
15113 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15114 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15115 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15124 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15125 if test -n "$LIPO_FOR_TARGET"; then
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15127 $as_echo "$LIPO_FOR_TARGET" >&6; }
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15130 $as_echo "no
" >&6; }
15135 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15137 set dummy ${ncn_progname}; ac_word=$2
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15139 $as_echo_n "checking
for $ac_word...
" >&6; }
15140 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15141 $as_echo_n "(cached
) " >&6
15143 if test -n "$LIPO_FOR_TARGET"; then
15144 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15147 for as_dir in $PATH
15150 test -z "$as_dir" && as_dir=.
15151 for ac_exec_ext in '' $ac_executable_extensions; do
15152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15153 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15154 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15163 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15164 if test -n "$LIPO_FOR_TARGET"; then
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15166 $as_echo "$LIPO_FOR_TARGET" >&6; }
15168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15169 $as_echo "no
" >&6; }
15174 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15178 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15180 if test $build = $target ; then
15181 LIPO_FOR_TARGET="$2"
15183 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15186 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15190 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15196 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15197 if test -n "$with_build_time_tools"; then
15198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15199 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15200 if test -x $with_build_time_tools/nm; then
15201 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15202 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15204 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15207 $as_echo "no
" >&6; }
15209 elif test $build != $host && test $have_gcc_for_target = yes; then
15210 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15211 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15212 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15215 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15216 # Extract the first word of "nm
", so it can be a program name with args.
15217 set dummy nm; ac_word=$2
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15219 $as_echo_n "checking
for $ac_word...
" >&6; }
15220 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15221 $as_echo_n "(cached
) " >&6
15223 case $NM_FOR_TARGET in
15225 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15229 for as_dir in $gcc_cv_tool_dirs
15232 test -z "$as_dir" && as_dir=.
15233 for ac_exec_ext in '' $ac_executable_extensions; do
15234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15235 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15236 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15246 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15247 if test -n "$NM_FOR_TARGET"; then
15248 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15249 $as_echo "$NM_FOR_TARGET" >&6; }
15251 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15252 $as_echo "no
" >&6; }
15257 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15260 if test -n "$NM_FOR_TARGET"; then
15261 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15262 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15263 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15266 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15267 for ncn_progname in nm; do
15268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15269 set dummy ${ncn_progname}; ac_word=$2
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15271 $as_echo_n "checking
for $ac_word...
" >&6; }
15272 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15273 $as_echo_n "(cached
) " >&6
15275 if test -n "$NM_FOR_TARGET"; then
15276 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15279 for as_dir in $PATH
15282 test -z "$as_dir" && as_dir=.
15283 for ac_exec_ext in '' $ac_executable_extensions; do
15284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15285 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15286 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15295 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15296 if test -n "$NM_FOR_TARGET"; then
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15298 $as_echo "$NM_FOR_TARGET" >&6; }
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15301 $as_echo "no
" >&6; }
15308 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15309 for ncn_progname in nm; do
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15311 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15312 if test -x $with_build_time_tools/${ncn_progname}; then
15313 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15315 $as_echo "yes" >&6; }
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15319 $as_echo "no
" >&6; }
15324 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15325 for ncn_progname in nm; do
15326 if test -n "$ncn_target_tool_prefix"; then
15327 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15328 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15330 $as_echo_n "checking
for $ac_word...
" >&6; }
15331 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15332 $as_echo_n "(cached
) " >&6
15334 if test -n "$NM_FOR_TARGET"; then
15335 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15337 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15338 for as_dir in $PATH
15341 test -z "$as_dir" && as_dir=.
15342 for ac_exec_ext in '' $ac_executable_extensions; do
15343 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15344 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15345 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15354 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15355 if test -n "$NM_FOR_TARGET"; then
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15357 $as_echo "$NM_FOR_TARGET" >&6; }
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15360 $as_echo "no
" >&6; }
15365 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15366 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15367 set dummy ${ncn_progname}; ac_word=$2
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15369 $as_echo_n "checking
for $ac_word...
" >&6; }
15370 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15371 $as_echo_n "(cached
) " >&6
15373 if test -n "$NM_FOR_TARGET"; then
15374 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15377 for as_dir in $PATH
15380 test -z "$as_dir" && as_dir=.
15381 for ac_exec_ext in '' $ac_executable_extensions; do
15382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15383 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15384 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15393 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15394 if test -n "$NM_FOR_TARGET"; then
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15396 $as_echo "$NM_FOR_TARGET" >&6; }
15398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15399 $as_echo "no
" >&6; }
15404 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15408 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15410 if test $build = $target ; then
15413 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15416 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15420 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15426 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15427 if test -n "$with_build_time_tools"; then
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15429 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15430 if test -x $with_build_time_tools/objcopy; then
15431 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15432 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15434 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15437 $as_echo "no
" >&6; }
15439 elif test $build != $host && test $have_gcc_for_target = yes; then
15440 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15441 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15442 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15445 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15446 # Extract the first word of "objcopy
", so it can be a program name with args.
15447 set dummy objcopy; ac_word=$2
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15449 $as_echo_n "checking
for $ac_word...
" >&6; }
15450 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15451 $as_echo_n "(cached
) " >&6
15453 case $OBJCOPY_FOR_TARGET in
15455 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15459 for as_dir in $gcc_cv_tool_dirs
15462 test -z "$as_dir" && as_dir=.
15463 for ac_exec_ext in '' $ac_executable_extensions; do
15464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15465 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15466 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15476 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15477 if test -n "$OBJCOPY_FOR_TARGET"; then
15478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15479 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15482 $as_echo "no
" >&6; }
15487 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15490 if test -n "$OBJCOPY_FOR_TARGET"; then
15491 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15492 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15493 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15496 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15497 for ncn_progname in objcopy; do
15498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15499 set dummy ${ncn_progname}; ac_word=$2
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15501 $as_echo_n "checking
for $ac_word...
" >&6; }
15502 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15503 $as_echo_n "(cached
) " >&6
15505 if test -n "$OBJCOPY_FOR_TARGET"; then
15506 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15509 for as_dir in $PATH
15512 test -z "$as_dir" && as_dir=.
15513 for ac_exec_ext in '' $ac_executable_extensions; do
15514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15515 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15516 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15525 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15526 if test -n "$OBJCOPY_FOR_TARGET"; then
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15528 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15531 $as_echo "no
" >&6; }
15538 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15539 for ncn_progname in objcopy; do
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15541 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15542 if test -x $with_build_time_tools/${ncn_progname}; then
15543 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15545 $as_echo "yes" >&6; }
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15549 $as_echo "no
" >&6; }
15554 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15555 for ncn_progname in objcopy; do
15556 if test -n "$ncn_target_tool_prefix"; then
15557 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15558 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15560 $as_echo_n "checking
for $ac_word...
" >&6; }
15561 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15562 $as_echo_n "(cached
) " >&6
15564 if test -n "$OBJCOPY_FOR_TARGET"; then
15565 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15568 for as_dir in $PATH
15571 test -z "$as_dir" && as_dir=.
15572 for ac_exec_ext in '' $ac_executable_extensions; do
15573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15574 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15575 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15584 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15585 if test -n "$OBJCOPY_FOR_TARGET"; then
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15587 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15590 $as_echo "no
" >&6; }
15595 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15597 set dummy ${ncn_progname}; ac_word=$2
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15599 $as_echo_n "checking
for $ac_word...
" >&6; }
15600 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15601 $as_echo_n "(cached
) " >&6
15603 if test -n "$OBJCOPY_FOR_TARGET"; then
15604 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15607 for as_dir in $PATH
15610 test -z "$as_dir" && as_dir=.
15611 for ac_exec_ext in '' $ac_executable_extensions; do
15612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15613 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15614 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15623 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15624 if test -n "$OBJCOPY_FOR_TARGET"; then
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15626 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15629 $as_echo "no
" >&6; }
15634 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15638 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15640 if test $build = $target ; then
15641 OBJCOPY_FOR_TARGET="$2"
15643 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15646 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15650 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15656 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15657 if test -n "$with_build_time_tools"; then
15658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
15659 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
15660 if test -x $with_build_time_tools/objdump; then
15661 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15662 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15664 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15667 $as_echo "no
" >&6; }
15669 elif test $build != $host && test $have_gcc_for_target = yes; then
15670 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15671 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15672 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15675 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15676 # Extract the first word of "objdump
", so it can be a program name with args.
15677 set dummy objdump; ac_word=$2
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15679 $as_echo_n "checking
for $ac_word...
" >&6; }
15680 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15681 $as_echo_n "(cached
) " >&6
15683 case $OBJDUMP_FOR_TARGET in
15685 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15689 for as_dir in $gcc_cv_tool_dirs
15692 test -z "$as_dir" && as_dir=.
15693 for ac_exec_ext in '' $ac_executable_extensions; do
15694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15695 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15696 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15706 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15707 if test -n "$OBJDUMP_FOR_TARGET"; then
15708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15709 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15712 $as_echo "no
" >&6; }
15717 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15720 if test -n "$OBJDUMP_FOR_TARGET"; then
15721 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15722 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15723 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15726 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15727 for ncn_progname in objdump; do
15728 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15729 set dummy ${ncn_progname}; ac_word=$2
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15731 $as_echo_n "checking
for $ac_word...
" >&6; }
15732 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15733 $as_echo_n "(cached
) " >&6
15735 if test -n "$OBJDUMP_FOR_TARGET"; then
15736 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15738 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15739 for as_dir in $PATH
15742 test -z "$as_dir" && as_dir=.
15743 for ac_exec_ext in '' $ac_executable_extensions; do
15744 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15745 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15746 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15755 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15756 if test -n "$OBJDUMP_FOR_TARGET"; then
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15758 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15761 $as_echo "no
" >&6; }
15768 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15769 for ncn_progname in objdump; do
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15771 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15772 if test -x $with_build_time_tools/${ncn_progname}; then
15773 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15775 $as_echo "yes" >&6; }
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15779 $as_echo "no
" >&6; }
15784 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15785 for ncn_progname in objdump; do
15786 if test -n "$ncn_target_tool_prefix"; then
15787 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15788 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15790 $as_echo_n "checking
for $ac_word...
" >&6; }
15791 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15792 $as_echo_n "(cached
) " >&6
15794 if test -n "$OBJDUMP_FOR_TARGET"; then
15795 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15798 for as_dir in $PATH
15801 test -z "$as_dir" && as_dir=.
15802 for ac_exec_ext in '' $ac_executable_extensions; do
15803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15804 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15805 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15814 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15815 if test -n "$OBJDUMP_FOR_TARGET"; then
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15817 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15820 $as_echo "no
" >&6; }
15825 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15826 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15827 set dummy ${ncn_progname}; ac_word=$2
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15829 $as_echo_n "checking
for $ac_word...
" >&6; }
15830 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15831 $as_echo_n "(cached
) " >&6
15833 if test -n "$OBJDUMP_FOR_TARGET"; then
15834 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15837 for as_dir in $PATH
15840 test -z "$as_dir" && as_dir=.
15841 for ac_exec_ext in '' $ac_executable_extensions; do
15842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15843 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15844 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15853 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15854 if test -n "$OBJDUMP_FOR_TARGET"; then
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15856 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15859 $as_echo "no
" >&6; }
15864 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15868 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15870 if test $build = $target ; then
15871 OBJDUMP_FOR_TARGET="$2"
15873 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15876 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15880 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15886 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15887 if test -n "$with_build_time_tools"; then
15888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
15889 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
15890 if test -x $with_build_time_tools/otool; then
15891 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15892 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15894 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15896 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15897 $as_echo "no
" >&6; }
15899 elif test $build != $host && test $have_gcc_for_target = yes; then
15900 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15901 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15902 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15905 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15906 # Extract the first word of "otool
", so it can be a program name with args.
15907 set dummy otool; ac_word=$2
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15909 $as_echo_n "checking
for $ac_word...
" >&6; }
15910 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15911 $as_echo_n "(cached
) " >&6
15913 case $OTOOL_FOR_TARGET in
15915 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15919 for as_dir in $gcc_cv_tool_dirs
15922 test -z "$as_dir" && as_dir=.
15923 for ac_exec_ext in '' $ac_executable_extensions; do
15924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15925 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15926 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15936 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15937 if test -n "$OTOOL_FOR_TARGET"; then
15938 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
15939 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15942 $as_echo "no
" >&6; }
15947 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15950 if test -n "$OTOOL_FOR_TARGET"; then
15951 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15952 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15953 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15956 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15957 for ncn_progname in otool; do
15958 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15959 set dummy ${ncn_progname}; ac_word=$2
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15961 $as_echo_n "checking
for $ac_word...
" >&6; }
15962 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15963 $as_echo_n "(cached
) " >&6
15965 if test -n "$OTOOL_FOR_TARGET"; then
15966 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15969 for as_dir in $PATH
15972 test -z "$as_dir" && as_dir=.
15973 for ac_exec_ext in '' $ac_executable_extensions; do
15974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15975 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15976 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15985 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15986 if test -n "$OTOOL_FOR_TARGET"; then
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
15988 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15991 $as_echo "no
" >&6; }
15998 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15999 for ncn_progname in otool; do
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16001 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16002 if test -x $with_build_time_tools/${ncn_progname}; then
16003 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16005 $as_echo "yes" >&6; }
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16009 $as_echo "no
" >&6; }
16014 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16015 for ncn_progname in otool; do
16016 if test -n "$ncn_target_tool_prefix"; then
16017 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16018 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16020 $as_echo_n "checking
for $ac_word...
" >&6; }
16021 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16022 $as_echo_n "(cached
) " >&6
16024 if test -n "$OTOOL_FOR_TARGET"; then
16025 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16028 for as_dir in $PATH
16031 test -z "$as_dir" && as_dir=.
16032 for ac_exec_ext in '' $ac_executable_extensions; do
16033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16034 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16035 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16044 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16045 if test -n "$OTOOL_FOR_TARGET"; then
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16047 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16050 $as_echo "no
" >&6; }
16055 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16056 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16057 set dummy ${ncn_progname}; ac_word=$2
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16059 $as_echo_n "checking
for $ac_word...
" >&6; }
16060 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16061 $as_echo_n "(cached
) " >&6
16063 if test -n "$OTOOL_FOR_TARGET"; then
16064 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16067 for as_dir in $PATH
16070 test -z "$as_dir" && as_dir=.
16071 for ac_exec_ext in '' $ac_executable_extensions; do
16072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16073 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16074 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16083 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16084 if test -n "$OTOOL_FOR_TARGET"; then
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16086 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16089 $as_echo "no
" >&6; }
16094 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16098 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16100 if test $build = $target ; then
16101 OTOOL_FOR_TARGET="$2"
16103 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16106 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16110 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16116 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16117 if test -n "$with_build_time_tools"; then
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16119 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16120 if test -x $with_build_time_tools/ranlib; then
16121 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16122 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16124 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16127 $as_echo "no
" >&6; }
16129 elif test $build != $host && test $have_gcc_for_target = yes; then
16130 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16131 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16132 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16135 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16136 # Extract the first word of "ranlib
", so it can be a program name with args.
16137 set dummy ranlib; ac_word=$2
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16139 $as_echo_n "checking
for $ac_word...
" >&6; }
16140 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16141 $as_echo_n "(cached
) " >&6
16143 case $RANLIB_FOR_TARGET in
16145 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16149 for as_dir in $gcc_cv_tool_dirs
16152 test -z "$as_dir" && as_dir=.
16153 for ac_exec_ext in '' $ac_executable_extensions; do
16154 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16155 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16156 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16166 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16167 if test -n "$RANLIB_FOR_TARGET"; then
16168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16169 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16172 $as_echo "no
" >&6; }
16177 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16180 if test -n "$RANLIB_FOR_TARGET"; then
16181 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16182 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16183 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16186 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16187 for ncn_progname in ranlib; do
16188 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16189 set dummy ${ncn_progname}; ac_word=$2
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16191 $as_echo_n "checking
for $ac_word...
" >&6; }
16192 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16193 $as_echo_n "(cached
) " >&6
16195 if test -n "$RANLIB_FOR_TARGET"; then
16196 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16199 for as_dir in $PATH
16202 test -z "$as_dir" && as_dir=.
16203 for ac_exec_ext in '' $ac_executable_extensions; do
16204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16205 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16206 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16215 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16216 if test -n "$RANLIB_FOR_TARGET"; then
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16218 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16221 $as_echo "no
" >&6; }
16228 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16229 for ncn_progname in ranlib; do
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16231 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16232 if test -x $with_build_time_tools/${ncn_progname}; then
16233 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16235 $as_echo "yes" >&6; }
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16239 $as_echo "no
" >&6; }
16244 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16245 for ncn_progname in ranlib; do
16246 if test -n "$ncn_target_tool_prefix"; then
16247 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16248 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16250 $as_echo_n "checking
for $ac_word...
" >&6; }
16251 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16252 $as_echo_n "(cached
) " >&6
16254 if test -n "$RANLIB_FOR_TARGET"; then
16255 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16257 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16258 for as_dir in $PATH
16261 test -z "$as_dir" && as_dir=.
16262 for ac_exec_ext in '' $ac_executable_extensions; do
16263 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16264 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16265 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16274 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16275 if test -n "$RANLIB_FOR_TARGET"; then
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16277 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16280 $as_echo "no
" >&6; }
16285 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16286 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16287 set dummy ${ncn_progname}; ac_word=$2
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16289 $as_echo_n "checking
for $ac_word...
" >&6; }
16290 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16291 $as_echo_n "(cached
) " >&6
16293 if test -n "$RANLIB_FOR_TARGET"; then
16294 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16296 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16297 for as_dir in $PATH
16300 test -z "$as_dir" && as_dir=.
16301 for ac_exec_ext in '' $ac_executable_extensions; do
16302 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16303 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16304 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16313 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16314 if test -n "$RANLIB_FOR_TARGET"; then
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16316 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16319 $as_echo "no
" >&6; }
16324 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16328 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16330 if test $build = $target ; then
16331 RANLIB_FOR_TARGET="$2"
16333 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16336 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16340 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16346 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16347 if test -n "$with_build_time_tools"; then
16348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16349 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16350 if test -x $with_build_time_tools/readelf; then
16351 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16352 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16354 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16357 $as_echo "no
" >&6; }
16359 elif test $build != $host && test $have_gcc_for_target = yes; then
16360 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16361 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16362 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16365 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16366 # Extract the first word of "readelf
", so it can be a program name with args.
16367 set dummy readelf; ac_word=$2
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16369 $as_echo_n "checking
for $ac_word...
" >&6; }
16370 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16371 $as_echo_n "(cached
) " >&6
16373 case $READELF_FOR_TARGET in
16375 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16379 for as_dir in $gcc_cv_tool_dirs
16382 test -z "$as_dir" && as_dir=.
16383 for ac_exec_ext in '' $ac_executable_extensions; do
16384 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16385 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16386 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16396 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16397 if test -n "$READELF_FOR_TARGET"; then
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16399 $as_echo "$READELF_FOR_TARGET" >&6; }
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16402 $as_echo "no
" >&6; }
16407 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16410 if test -n "$READELF_FOR_TARGET"; then
16411 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16412 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16413 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16416 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16417 for ncn_progname in readelf; do
16418 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16419 set dummy ${ncn_progname}; ac_word=$2
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16421 $as_echo_n "checking
for $ac_word...
" >&6; }
16422 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16423 $as_echo_n "(cached
) " >&6
16425 if test -n "$READELF_FOR_TARGET"; then
16426 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16429 for as_dir in $PATH
16432 test -z "$as_dir" && as_dir=.
16433 for ac_exec_ext in '' $ac_executable_extensions; do
16434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16435 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16436 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16445 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16446 if test -n "$READELF_FOR_TARGET"; then
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16448 $as_echo "$READELF_FOR_TARGET" >&6; }
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16451 $as_echo "no
" >&6; }
16458 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16459 for ncn_progname in readelf; do
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16461 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16462 if test -x $with_build_time_tools/${ncn_progname}; then
16463 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16465 $as_echo "yes" >&6; }
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16469 $as_echo "no
" >&6; }
16474 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16475 for ncn_progname in readelf; do
16476 if test -n "$ncn_target_tool_prefix"; then
16477 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16478 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16480 $as_echo_n "checking
for $ac_word...
" >&6; }
16481 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16482 $as_echo_n "(cached
) " >&6
16484 if test -n "$READELF_FOR_TARGET"; then
16485 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16488 for as_dir in $PATH
16491 test -z "$as_dir" && as_dir=.
16492 for ac_exec_ext in '' $ac_executable_extensions; do
16493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16494 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16495 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16504 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16505 if test -n "$READELF_FOR_TARGET"; then
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16507 $as_echo "$READELF_FOR_TARGET" >&6; }
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16510 $as_echo "no
" >&6; }
16515 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16517 set dummy ${ncn_progname}; ac_word=$2
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16519 $as_echo_n "checking
for $ac_word...
" >&6; }
16520 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16521 $as_echo_n "(cached
) " >&6
16523 if test -n "$READELF_FOR_TARGET"; then
16524 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16527 for as_dir in $PATH
16530 test -z "$as_dir" && as_dir=.
16531 for ac_exec_ext in '' $ac_executable_extensions; do
16532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16533 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16534 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16543 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16544 if test -n "$READELF_FOR_TARGET"; then
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16546 $as_echo "$READELF_FOR_TARGET" >&6; }
16548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16549 $as_echo "no
" >&6; }
16554 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16558 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16560 if test $build = $target ; then
16561 READELF_FOR_TARGET="$2"
16563 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16566 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16570 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16576 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16577 if test -n "$with_build_time_tools"; then
16578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
16579 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
16580 if test -x $with_build_time_tools/strip; then
16581 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16582 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
16584 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16587 $as_echo "no
" >&6; }
16589 elif test $build != $host && test $have_gcc_for_target = yes; then
16590 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16591 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16592 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16595 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16596 # Extract the first word of "strip
", so it can be a program name with args.
16597 set dummy strip; ac_word=$2
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16599 $as_echo_n "checking
for $ac_word...
" >&6; }
16600 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16601 $as_echo_n "(cached
) " >&6
16603 case $STRIP_FOR_TARGET in
16605 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16609 for as_dir in $gcc_cv_tool_dirs
16612 test -z "$as_dir" && as_dir=.
16613 for ac_exec_ext in '' $ac_executable_extensions; do
16614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16615 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16616 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16626 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16627 if test -n "$STRIP_FOR_TARGET"; then
16628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16629 $as_echo "$STRIP_FOR_TARGET" >&6; }
16631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16632 $as_echo "no
" >&6; }
16637 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16640 if test -n "$STRIP_FOR_TARGET"; then
16641 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16642 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16643 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16646 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16647 for ncn_progname in strip; do
16648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16649 set dummy ${ncn_progname}; ac_word=$2
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16651 $as_echo_n "checking
for $ac_word...
" >&6; }
16652 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16653 $as_echo_n "(cached
) " >&6
16655 if test -n "$STRIP_FOR_TARGET"; then
16656 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16659 for as_dir in $PATH
16662 test -z "$as_dir" && as_dir=.
16663 for ac_exec_ext in '' $ac_executable_extensions; do
16664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16665 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16666 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16675 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16676 if test -n "$STRIP_FOR_TARGET"; then
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16678 $as_echo "$STRIP_FOR_TARGET" >&6; }
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16681 $as_echo "no
" >&6; }
16688 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16689 for ncn_progname in strip; do
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16691 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16692 if test -x $with_build_time_tools/${ncn_progname}; then
16693 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16695 $as_echo "yes" >&6; }
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16699 $as_echo "no
" >&6; }
16704 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16705 for ncn_progname in strip; do
16706 if test -n "$ncn_target_tool_prefix"; then
16707 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16708 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16710 $as_echo_n "checking
for $ac_word...
" >&6; }
16711 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16712 $as_echo_n "(cached
) " >&6
16714 if test -n "$STRIP_FOR_TARGET"; then
16715 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16718 for as_dir in $PATH
16721 test -z "$as_dir" && as_dir=.
16722 for ac_exec_ext in '' $ac_executable_extensions; do
16723 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16724 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16725 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16734 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16735 if test -n "$STRIP_FOR_TARGET"; then
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16737 $as_echo "$STRIP_FOR_TARGET" >&6; }
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16740 $as_echo "no
" >&6; }
16745 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16746 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16747 set dummy ${ncn_progname}; ac_word=$2
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16749 $as_echo_n "checking
for $ac_word...
" >&6; }
16750 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16751 $as_echo_n "(cached
) " >&6
16753 if test -n "$STRIP_FOR_TARGET"; then
16754 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16757 for as_dir in $PATH
16760 test -z "$as_dir" && as_dir=.
16761 for ac_exec_ext in '' $ac_executable_extensions; do
16762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16763 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16764 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16773 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16774 if test -n "$STRIP_FOR_TARGET"; then
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16776 $as_echo "$STRIP_FOR_TARGET" >&6; }
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16779 $as_echo "no
" >&6; }
16784 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16788 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16790 if test $build = $target ; then
16791 STRIP_FOR_TARGET="$2"
16793 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16796 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16800 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16806 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16807 if test -n "$with_build_time_tools"; then
16808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
16809 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
16810 if test -x $with_build_time_tools/windres; then
16811 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16812 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16814 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16817 $as_echo "no
" >&6; }
16819 elif test $build != $host && test $have_gcc_for_target = yes; then
16820 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16821 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16822 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16825 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16826 # Extract the first word of "windres
", so it can be a program name with args.
16827 set dummy windres; ac_word=$2
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16829 $as_echo_n "checking
for $ac_word...
" >&6; }
16830 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16831 $as_echo_n "(cached
) " >&6
16833 case $WINDRES_FOR_TARGET in
16835 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16839 for as_dir in $gcc_cv_tool_dirs
16842 test -z "$as_dir" && as_dir=.
16843 for ac_exec_ext in '' $ac_executable_extensions; do
16844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16845 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16846 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16856 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16857 if test -n "$WINDRES_FOR_TARGET"; then
16858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16859 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16862 $as_echo "no
" >&6; }
16867 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16870 if test -n "$WINDRES_FOR_TARGET"; then
16871 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16872 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16873 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16876 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16877 for ncn_progname in windres; do
16878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16879 set dummy ${ncn_progname}; ac_word=$2
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16881 $as_echo_n "checking
for $ac_word...
" >&6; }
16882 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16883 $as_echo_n "(cached
) " >&6
16885 if test -n "$WINDRES_FOR_TARGET"; then
16886 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16889 for as_dir in $PATH
16892 test -z "$as_dir" && as_dir=.
16893 for ac_exec_ext in '' $ac_executable_extensions; do
16894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16895 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16896 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16905 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16906 if test -n "$WINDRES_FOR_TARGET"; then
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16908 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16911 $as_echo "no
" >&6; }
16918 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16919 for ncn_progname in windres; do
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16921 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16922 if test -x $with_build_time_tools/${ncn_progname}; then
16923 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16925 $as_echo "yes" >&6; }
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16929 $as_echo "no
" >&6; }
16934 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16935 for ncn_progname in windres; do
16936 if test -n "$ncn_target_tool_prefix"; then
16937 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16938 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16940 $as_echo_n "checking
for $ac_word...
" >&6; }
16941 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16942 $as_echo_n "(cached
) " >&6
16944 if test -n "$WINDRES_FOR_TARGET"; then
16945 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16948 for as_dir in $PATH
16951 test -z "$as_dir" && as_dir=.
16952 for ac_exec_ext in '' $ac_executable_extensions; do
16953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16954 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16955 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16964 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16965 if test -n "$WINDRES_FOR_TARGET"; then
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16967 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16970 $as_echo "no
" >&6; }
16975 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16976 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16977 set dummy ${ncn_progname}; ac_word=$2
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16979 $as_echo_n "checking
for $ac_word...
" >&6; }
16980 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16981 $as_echo_n "(cached
) " >&6
16983 if test -n "$WINDRES_FOR_TARGET"; then
16984 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16987 for as_dir in $PATH
16990 test -z "$as_dir" && as_dir=.
16991 for ac_exec_ext in '' $ac_executable_extensions; do
16992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16993 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16994 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17003 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17004 if test -n "$WINDRES_FOR_TARGET"; then
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17006 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17009 $as_echo "no
" >&6; }
17014 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17018 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17020 if test $build = $target ; then
17021 WINDRES_FOR_TARGET="$2"
17023 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17026 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17030 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17036 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17037 if test -n "$with_build_time_tools"; then
17038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17039 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17040 if test -x $with_build_time_tools/windmc; then
17041 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17042 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17044 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17047 $as_echo "no
" >&6; }
17049 elif test $build != $host && test $have_gcc_for_target = yes; then
17050 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17051 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17052 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17055 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17056 # Extract the first word of "windmc
", so it can be a program name with args.
17057 set dummy windmc; ac_word=$2
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17059 $as_echo_n "checking
for $ac_word...
" >&6; }
17060 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17061 $as_echo_n "(cached
) " >&6
17063 case $WINDMC_FOR_TARGET in
17065 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17069 for as_dir in $gcc_cv_tool_dirs
17072 test -z "$as_dir" && as_dir=.
17073 for ac_exec_ext in '' $ac_executable_extensions; do
17074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17075 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17076 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17086 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17087 if test -n "$WINDMC_FOR_TARGET"; then
17088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17089 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17091 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17092 $as_echo "no
" >&6; }
17097 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17100 if test -n "$WINDMC_FOR_TARGET"; then
17101 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17102 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17103 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17106 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17107 for ncn_progname in windmc; do
17108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17109 set dummy ${ncn_progname}; ac_word=$2
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17111 $as_echo_n "checking
for $ac_word...
" >&6; }
17112 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17113 $as_echo_n "(cached
) " >&6
17115 if test -n "$WINDMC_FOR_TARGET"; then
17116 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17119 for as_dir in $PATH
17122 test -z "$as_dir" && as_dir=.
17123 for ac_exec_ext in '' $ac_executable_extensions; do
17124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17125 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17126 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17135 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17136 if test -n "$WINDMC_FOR_TARGET"; then
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17138 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17141 $as_echo "no
" >&6; }
17148 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17149 for ncn_progname in windmc; do
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17151 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17152 if test -x $with_build_time_tools/${ncn_progname}; then
17153 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17155 $as_echo "yes" >&6; }
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17159 $as_echo "no
" >&6; }
17164 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17165 for ncn_progname in windmc; do
17166 if test -n "$ncn_target_tool_prefix"; then
17167 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17168 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17170 $as_echo_n "checking
for $ac_word...
" >&6; }
17171 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17172 $as_echo_n "(cached
) " >&6
17174 if test -n "$WINDMC_FOR_TARGET"; then
17175 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17178 for as_dir in $PATH
17181 test -z "$as_dir" && as_dir=.
17182 for ac_exec_ext in '' $ac_executable_extensions; do
17183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17184 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17185 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17194 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17195 if test -n "$WINDMC_FOR_TARGET"; then
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17197 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17200 $as_echo "no
" >&6; }
17205 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17206 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17207 set dummy ${ncn_progname}; ac_word=$2
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17209 $as_echo_n "checking
for $ac_word...
" >&6; }
17210 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17211 $as_echo_n "(cached
) " >&6
17213 if test -n "$WINDMC_FOR_TARGET"; then
17214 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17217 for as_dir in $PATH
17220 test -z "$as_dir" && as_dir=.
17221 for ac_exec_ext in '' $ac_executable_extensions; do
17222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17223 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17224 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17233 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17234 if test -n "$WINDMC_FOR_TARGET"; then
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17236 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17239 $as_echo "no
" >&6; }
17244 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17248 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17250 if test $build = $target ; then
17251 WINDMC_FOR_TARGET="$2"
17253 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17256 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17260 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17264 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17267 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17268 if test "x
${build}" != "x
${host}" ; then
17269 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17270 # We already found the complete path
17271 ac_dir=`dirname $AR_FOR_TARGET`
17272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17273 $as_echo "pre-installed
in $ac_dir" >&6; }
17275 # Canadian cross, just use what we found
17276 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17277 $as_echo "pre-installed
" >&6; }
17281 case " ${configdirs} " in
17286 if test $ok = yes; then
17287 # An in-tree tool is available and we can use it
17288 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17290 $as_echo "just compiled
" >&6; }
17291 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17292 # We already found the complete path
17293 ac_dir=`dirname $AR_FOR_TARGET`
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17295 $as_echo "pre-installed
in $ac_dir" >&6; }
17296 elif test "x
$target" = "x
$host"; then
17297 # We can use an host tool
17298 AR_FOR_TARGET='$(AR)'
17299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17300 $as_echo "host tool
" >&6; }
17302 # We need a cross tool
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17304 $as_echo "pre-installed
" >&6; }
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17309 $as_echo_n "checking where to
find the target as...
" >&6; }
17310 if test "x
${build}" != "x
${host}" ; then
17311 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17312 # We already found the complete path
17313 ac_dir=`dirname $AS_FOR_TARGET`
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17315 $as_echo "pre-installed
in $ac_dir" >&6; }
17317 # Canadian cross, just use what we found
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17319 $as_echo "pre-installed
" >&6; }
17323 case " ${configdirs} " in
17328 if test $ok = yes; then
17329 # An in-tree tool is available and we can use it
17330 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17332 $as_echo "just compiled
" >&6; }
17333 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17334 # We already found the complete path
17335 ac_dir=`dirname $AS_FOR_TARGET`
17336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17337 $as_echo "pre-installed
in $ac_dir" >&6; }
17338 elif test "x
$target" = "x
$host"; then
17339 # We can use an host tool
17340 AS_FOR_TARGET='$(AS)'
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17342 $as_echo "host tool
" >&6; }
17344 # We need a cross tool
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17346 $as_echo "pre-installed
" >&6; }
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17351 $as_echo_n "checking where to
find the target cc...
" >&6; }
17352 if test "x
${build}" != "x
${host}" ; then
17353 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17354 # We already found the complete path
17355 ac_dir=`dirname $CC_FOR_TARGET`
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17357 $as_echo "pre-installed
in $ac_dir" >&6; }
17359 # Canadian cross, just use what we found
17360 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17361 $as_echo "pre-installed
" >&6; }
17365 case " ${configdirs} " in
17370 if test $ok = yes; then
17371 # An in-tree tool is available and we can use it
17372 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17374 $as_echo "just compiled
" >&6; }
17375 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17376 # We already found the complete path
17377 ac_dir=`dirname $CC_FOR_TARGET`
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17379 $as_echo "pre-installed
in $ac_dir" >&6; }
17380 elif test "x
$target" = "x
$host"; then
17381 # We can use an host tool
17382 CC_FOR_TARGET='$(CC)'
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17384 $as_echo "host tool
" >&6; }
17386 # We need a cross tool
17387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17388 $as_echo "pre-installed
" >&6; }
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17393 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17394 if test "x
${build}" != "x
${host}" ; then
17395 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17396 # We already found the complete path
17397 ac_dir=`dirname $CXX_FOR_TARGET`
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17399 $as_echo "pre-installed
in $ac_dir" >&6; }
17401 # Canadian cross, just use what we found
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17403 $as_echo "pre-installed
" >&6; }
17407 case " ${configdirs} " in
17411 case ,${enable_languages}, in
17415 if test $ok = yes; then
17416 # An in-tree tool is available and we can use it
17417 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'
17418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17419 $as_echo "just compiled
" >&6; }
17420 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17421 # We already found the complete path
17422 ac_dir=`dirname $CXX_FOR_TARGET`
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17424 $as_echo "pre-installed
in $ac_dir" >&6; }
17425 elif test "x
$target" = "x
$host"; then
17426 # We can use an host tool
17427 CXX_FOR_TARGET='$(CXX)'
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17429 $as_echo "host tool
" >&6; }
17431 # We need a cross tool
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17433 $as_echo "pre-installed
" >&6; }
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
17438 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17439 if test "x
${build}" != "x
${host}" ; then
17440 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17441 # We already found the complete path
17442 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17443 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17444 $as_echo "pre-installed
in $ac_dir" >&6; }
17446 # Canadian cross, just use what we found
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17448 $as_echo "pre-installed
" >&6; }
17452 case " ${configdirs} " in
17456 case ,${enable_languages}, in
17460 if test $ok = yes; then
17461 # An in-tree tool is available and we can use it
17462 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'
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17464 $as_echo "just compiled
" >&6; }
17465 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17466 # We already found the complete path
17467 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17469 $as_echo "pre-installed
in $ac_dir" >&6; }
17470 elif test "x
$target" = "x
$host"; then
17471 # We can use an host tool
17472 RAW_CXX_FOR_TARGET='$(CXX)'
17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17474 $as_echo "host tool
" >&6; }
17476 # We need a cross tool
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17478 $as_echo "pre-installed
" >&6; }
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
17483 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17484 if test "x
${build}" != "x
${host}" ; then
17485 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17486 # We already found the complete path
17487 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17489 $as_echo "pre-installed
in $ac_dir" >&6; }
17491 # Canadian cross, just use what we found
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17493 $as_echo "pre-installed
" >&6; }
17497 case " ${configdirs} " in
17502 if test $ok = yes; then
17503 # An in-tree tool is available and we can use it
17504 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17506 $as_echo "just compiled
" >&6; }
17507 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17508 # We already found the complete path
17509 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17511 $as_echo "pre-installed
in $ac_dir" >&6; }
17512 elif test "x
$target" = "x
$host"; then
17513 # We can use an host tool
17514 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17516 $as_echo "host tool
" >&6; }
17518 # We need a cross tool
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17520 $as_echo "pre-installed
" >&6; }
17524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
17525 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
17526 if test "x
${build}" != "x
${host}" ; then
17527 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17528 # We already found the complete path
17529 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17531 $as_echo "pre-installed
in $ac_dir" >&6; }
17533 # Canadian cross, just use what we found
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17535 $as_echo "pre-installed
" >&6; }
17538 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17539 # We already found the complete path
17540 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17542 $as_echo "pre-installed
in $ac_dir" >&6; }
17543 elif test "x
$target" = "x
$host"; then
17544 # We can use an host tool
17545 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17547 $as_echo "host tool
" >&6; }
17549 # We need a cross tool
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17551 $as_echo "pre-installed
" >&6; }
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
17556 $as_echo_n "checking where to
find the target gcc...
" >&6; }
17557 if test "x
${build}" != "x
${host}" ; then
17558 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17559 # We already found the complete path
17560 ac_dir=`dirname $GCC_FOR_TARGET`
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17562 $as_echo "pre-installed
in $ac_dir" >&6; }
17564 # Canadian cross, just use what we found
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17566 $as_echo "pre-installed
" >&6; }
17570 case " ${configdirs} " in
17575 if test $ok = yes; then
17576 # An in-tree tool is available and we can use it
17577 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17579 $as_echo "just compiled
" >&6; }
17580 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17581 # We already found the complete path
17582 ac_dir=`dirname $GCC_FOR_TARGET`
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17584 $as_echo "pre-installed
in $ac_dir" >&6; }
17585 elif test "x
$target" = "x
$host"; then
17586 # We can use an host tool
17587 GCC_FOR_TARGET='$()'
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17589 $as_echo "host tool
" >&6; }
17591 # We need a cross tool
17592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17593 $as_echo "pre-installed
" >&6; }
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
17598 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
17599 if test "x
${build}" != "x
${host}" ; then
17600 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17601 # We already found the complete path
17602 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17603 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17604 $as_echo "pre-installed
in $ac_dir" >&6; }
17606 # Canadian cross, just use what we found
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17608 $as_echo "pre-installed
" >&6; }
17612 case " ${configdirs} " in
17616 case ,${enable_languages}, in
17620 if test $ok = yes; then
17621 # An in-tree tool is available and we can use it
17622 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17624 $as_echo "just compiled
" >&6; }
17625 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17626 # We already found the complete path
17627 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17629 $as_echo "pre-installed
in $ac_dir" >&6; }
17630 elif test "x
$target" = "x
$host"; then
17631 # We can use an host tool
17632 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17634 $as_echo "host tool
" >&6; }
17636 # We need a cross tool
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17638 $as_echo "pre-installed
" >&6; }
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
17643 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
17644 if test "x
${build}" != "x
${host}" ; then
17645 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17646 # We already found the complete path
17647 ac_dir=`dirname $GOC_FOR_TARGET`
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17649 $as_echo "pre-installed
in $ac_dir" >&6; }
17651 # Canadian cross, just use what we found
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17653 $as_echo "pre-installed
" >&6; }
17657 case " ${configdirs} " in
17661 case ,${enable_languages}, in
17665 if test $ok = yes; then
17666 # An in-tree tool is available and we can use it
17667 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17669 $as_echo "just compiled
" >&6; }
17670 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17671 # We already found the complete path
17672 ac_dir=`dirname $GOC_FOR_TARGET`
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17674 $as_echo "pre-installed
in $ac_dir" >&6; }
17675 elif test "x
$target" = "x
$host"; then
17676 # We can use an host tool
17677 GOC_FOR_TARGET='$(GOC)'
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17679 $as_echo "host tool
" >&6; }
17681 # We need a cross tool
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17683 $as_echo "pre-installed
" >&6; }
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
17688 $as_echo_n "checking where to
find the target gdc...
" >&6; }
17689 if test "x
${build}" != "x
${host}" ; then
17690 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17691 # We already found the complete path
17692 ac_dir=`dirname $GDC_FOR_TARGET`
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17694 $as_echo "pre-installed
in $ac_dir" >&6; }
17696 # Canadian cross, just use what we found
17697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17698 $as_echo "pre-installed
" >&6; }
17702 case " ${configdirs} " in
17706 case ,${enable_languages}, in
17710 if test $ok = yes; then
17711 # An in-tree tool is available and we can use it
17712 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17714 $as_echo "just compiled
" >&6; }
17715 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17716 # We already found the complete path
17717 ac_dir=`dirname $GDC_FOR_TARGET`
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17719 $as_echo "pre-installed
in $ac_dir" >&6; }
17720 elif test "x
$target" = "x
$host"; then
17721 # We can use an host tool
17722 GDC_FOR_TARGET='$(GDC)'
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17724 $as_echo "host tool
" >&6; }
17726 # We need a cross tool
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17728 $as_echo "pre-installed
" >&6; }
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
17733 $as_echo_n "checking where to
find the target ld...
" >&6; }
17734 if test "x
${build}" != "x
${host}" ; then
17735 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17736 # We already found the complete path
17737 ac_dir=`dirname $LD_FOR_TARGET`
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17739 $as_echo "pre-installed
in $ac_dir" >&6; }
17741 # Canadian cross, just use what we found
17742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17743 $as_echo "pre-installed
" >&6; }
17747 case " ${configdirs} " in
17752 if test $ok = yes; then
17753 # An in-tree tool is available and we can use it
17754 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17756 $as_echo "just compiled
" >&6; }
17757 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17758 # We already found the complete path
17759 ac_dir=`dirname $LD_FOR_TARGET`
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17761 $as_echo "pre-installed
in $ac_dir" >&6; }
17762 elif test "x
$target" = "x
$host"; then
17763 # We can use an host tool
17764 LD_FOR_TARGET='$(LD)'
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17766 $as_echo "host tool
" >&6; }
17768 # We need a cross tool
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17770 $as_echo "pre-installed
" >&6; }
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
17775 $as_echo_n "checking where to
find the target lipo...
" >&6; }
17776 if test "x
${build}" != "x
${host}" ; then
17777 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
17778 # We already found the complete path
17779 ac_dir=`dirname $LIPO_FOR_TARGET`
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17781 $as_echo "pre-installed
in $ac_dir" >&6; }
17783 # Canadian cross, just use what we found
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17785 $as_echo "pre-installed
" >&6; }
17788 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
17789 # We already found the complete path
17790 ac_dir=`dirname $LIPO_FOR_TARGET`
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17792 $as_echo "pre-installed
in $ac_dir" >&6; }
17793 elif test "x
$target" = "x
$host"; then
17794 # We can use an host tool
17795 LIPO_FOR_TARGET='$(LIPO)'
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17797 $as_echo "host tool
" >&6; }
17799 # We need a cross tool
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17801 $as_echo "pre-installed
" >&6; }
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
17806 $as_echo_n "checking where to
find the target nm...
" >&6; }
17807 if test "x
${build}" != "x
${host}" ; then
17808 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
17809 # We already found the complete path
17810 ac_dir=`dirname $NM_FOR_TARGET`
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17812 $as_echo "pre-installed
in $ac_dir" >&6; }
17814 # Canadian cross, just use what we found
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17816 $as_echo "pre-installed
" >&6; }
17820 case " ${configdirs} " in
17825 if test $ok = yes; then
17826 # An in-tree tool is available and we can use it
17827 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17829 $as_echo "just compiled
" >&6; }
17830 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
17831 # We already found the complete path
17832 ac_dir=`dirname $NM_FOR_TARGET`
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17834 $as_echo "pre-installed
in $ac_dir" >&6; }
17835 elif test "x
$target" = "x
$host"; then
17836 # We can use an host tool
17837 NM_FOR_TARGET='$(NM)'
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17839 $as_echo "host tool
" >&6; }
17841 # We need a cross tool
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17843 $as_echo "pre-installed
" >&6; }
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
17848 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
17849 if test "x
${build}" != "x
${host}" ; then
17850 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
17851 # We already found the complete path
17852 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17854 $as_echo "pre-installed
in $ac_dir" >&6; }
17856 # Canadian cross, just use what we found
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17858 $as_echo "pre-installed
" >&6; }
17862 case " ${configdirs} " in
17867 if test $ok = yes; then
17868 # An in-tree tool is available and we can use it
17869 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17871 $as_echo "just compiled
" >&6; }
17872 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
17873 # We already found the complete path
17874 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17876 $as_echo "pre-installed
in $ac_dir" >&6; }
17877 elif test "x
$target" = "x
$host"; then
17878 # We can use an host tool
17879 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17881 $as_echo "host tool
" >&6; }
17883 # We need a cross tool
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17885 $as_echo "pre-installed
" >&6; }
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
17890 $as_echo_n "checking where to
find the target objdump...
" >&6; }
17891 if test "x
${build}" != "x
${host}" ; then
17892 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
17893 # We already found the complete path
17894 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17896 $as_echo "pre-installed
in $ac_dir" >&6; }
17898 # Canadian cross, just use what we found
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17900 $as_echo "pre-installed
" >&6; }
17904 case " ${configdirs} " in
17909 if test $ok = yes; then
17910 # An in-tree tool is available and we can use it
17911 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17912 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17913 $as_echo "just compiled
" >&6; }
17914 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
17915 # We already found the complete path
17916 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17918 $as_echo "pre-installed
in $ac_dir" >&6; }
17919 elif test "x
$target" = "x
$host"; then
17920 # We can use an host tool
17921 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17923 $as_echo "host tool
" >&6; }
17925 # We need a cross tool
17926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17927 $as_echo "pre-installed
" >&6; }
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
17932 $as_echo_n "checking where to
find the target otool...
" >&6; }
17933 if test "x
${build}" != "x
${host}" ; then
17934 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17935 # We already found the complete path
17936 ac_dir=`dirname $OTOOL_FOR_TARGET`
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17938 $as_echo "pre-installed
in $ac_dir" >&6; }
17940 # Canadian cross, just use what we found
17941 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17942 $as_echo "pre-installed
" >&6; }
17945 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17946 # We already found the complete path
17947 ac_dir=`dirname $OTOOL_FOR_TARGET`
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17949 $as_echo "pre-installed
in $ac_dir" >&6; }
17950 elif test "x
$target" = "x
$host"; then
17951 # We can use an host tool
17952 OTOOL_FOR_TARGET='$(OTOOL)'
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17954 $as_echo "host tool
" >&6; }
17956 # We need a cross tool
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17958 $as_echo "pre-installed
" >&6; }
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
17963 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
17964 if test "x
${build}" != "x
${host}" ; then
17965 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
17966 # We already found the complete path
17967 ac_dir=`dirname $RANLIB_FOR_TARGET`
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17969 $as_echo "pre-installed
in $ac_dir" >&6; }
17971 # Canadian cross, just use what we found
17972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17973 $as_echo "pre-installed
" >&6; }
17977 case " ${configdirs} " in
17982 if test $ok = yes; then
17983 # An in-tree tool is available and we can use it
17984 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17986 $as_echo "just compiled
" >&6; }
17987 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
17988 # We already found the complete path
17989 ac_dir=`dirname $RANLIB_FOR_TARGET`
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17991 $as_echo "pre-installed
in $ac_dir" >&6; }
17992 elif test "x
$target" = "x
$host"; then
17993 # We can use an host tool
17994 RANLIB_FOR_TARGET='$(RANLIB)'
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17996 $as_echo "host tool
" >&6; }
17998 # We need a cross tool
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18000 $as_echo "pre-installed
" >&6; }
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18005 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18006 if test "x
${build}" != "x
${host}" ; then
18007 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18008 # We already found the complete path
18009 ac_dir=`dirname $READELF_FOR_TARGET`
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18011 $as_echo "pre-installed
in $ac_dir" >&6; }
18013 # Canadian cross, just use what we found
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18015 $as_echo "pre-installed
" >&6; }
18019 case " ${configdirs} " in
18024 if test $ok = yes; then
18025 # An in-tree tool is available and we can use it
18026 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18028 $as_echo "just compiled
" >&6; }
18029 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18030 # We already found the complete path
18031 ac_dir=`dirname $READELF_FOR_TARGET`
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18033 $as_echo "pre-installed
in $ac_dir" >&6; }
18034 elif test "x
$target" = "x
$host"; then
18035 # We can use an host tool
18036 READELF_FOR_TARGET='$(READELF)'
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18038 $as_echo "host tool
" >&6; }
18040 # We need a cross tool
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18042 $as_echo "pre-installed
" >&6; }
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18047 $as_echo_n "checking where to
find the target strip...
" >&6; }
18048 if test "x
${build}" != "x
${host}" ; then
18049 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18050 # We already found the complete path
18051 ac_dir=`dirname $STRIP_FOR_TARGET`
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18053 $as_echo "pre-installed
in $ac_dir" >&6; }
18055 # Canadian cross, just use what we found
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18057 $as_echo "pre-installed
" >&6; }
18061 case " ${configdirs} " in
18066 if test $ok = yes; then
18067 # An in-tree tool is available and we can use it
18068 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18070 $as_echo "just compiled
" >&6; }
18071 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18072 # We already found the complete path
18073 ac_dir=`dirname $STRIP_FOR_TARGET`
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18075 $as_echo "pre-installed
in $ac_dir" >&6; }
18076 elif test "x
$target" = "x
$host"; then
18077 # We can use an host tool
18078 STRIP_FOR_TARGET='$(STRIP)'
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18080 $as_echo "host tool
" >&6; }
18082 # We need a cross tool
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18084 $as_echo "pre-installed
" >&6; }
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18089 $as_echo_n "checking where to
find the target windres...
" >&6; }
18090 if test "x
${build}" != "x
${host}" ; then
18091 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18092 # We already found the complete path
18093 ac_dir=`dirname $WINDRES_FOR_TARGET`
18094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18095 $as_echo "pre-installed
in $ac_dir" >&6; }
18097 # Canadian cross, just use what we found
18098 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18099 $as_echo "pre-installed
" >&6; }
18103 case " ${configdirs} " in
18108 if test $ok = yes; then
18109 # An in-tree tool is available and we can use it
18110 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18112 $as_echo "just compiled
" >&6; }
18113 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18114 # We already found the complete path
18115 ac_dir=`dirname $WINDRES_FOR_TARGET`
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18117 $as_echo "pre-installed
in $ac_dir" >&6; }
18118 elif test "x
$target" = "x
$host"; then
18119 # We can use an host tool
18120 WINDRES_FOR_TARGET='$(WINDRES)'
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18122 $as_echo "host tool
" >&6; }
18124 # We need a cross tool
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18126 $as_echo "pre-installed
" >&6; }
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18131 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18132 if test "x
${build}" != "x
${host}" ; then
18133 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18134 # We already found the complete path
18135 ac_dir=`dirname $WINDMC_FOR_TARGET`
18136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18137 $as_echo "pre-installed
in $ac_dir" >&6; }
18139 # Canadian cross, just use what we found
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18141 $as_echo "pre-installed
" >&6; }
18145 case " ${configdirs} " in
18150 if test $ok = yes; then
18151 # An in-tree tool is available and we can use it
18152 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18154 $as_echo "just compiled
" >&6; }
18155 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18156 # We already found the complete path
18157 ac_dir=`dirname $WINDMC_FOR_TARGET`
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18159 $as_echo "pre-installed
in $ac_dir" >&6; }
18160 elif test "x
$target" = "x
$host"; then
18161 # We can use an host tool
18162 WINDMC_FOR_TARGET='$(WINDMC)'
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18164 $as_echo "host tool
" >&6; }
18166 # We need a cross tool
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18168 $as_echo "pre-installed
" >&6; }
18176 # Certain tools may need extra flags.
18177 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18178 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18179 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18181 # When building target libraries, except in a Canadian cross, we use
18182 # the same toolchain as the compiler we just built.
18183 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18184 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18185 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18186 if test $host = $build; then
18187 case " $configdirs " in
18189 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18190 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18191 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18201 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18202 # Check whether --enable-maintainer-mode was given.
18203 if test "${enable_maintainer_mode+set}" = set; then :
18204 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18206 USE_MAINTAINER_MODE=no
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18210 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18213 if test "$USE_MAINTAINER_MODE" = yes; then
18214 MAINTAINER_MODE_TRUE=
18215 MAINTAINER_MODE_FALSE='#'
18217 MAINTAINER_MODE_TRUE='#'
18218 MAINTAINER_MODE_FALSE=
18220 MAINT=$MAINTAINER_MODE_TRUE
18222 # ---------------------
18223 # GCC bootstrap support
18224 # ---------------------
18226 # Stage specific cflags for build.
18231 yes) stage1_cflags="-g -Wa,-J" ;;
18232 *) stage1_cflags="-g -J" ;;
18238 # Enable --enable-checking in stage1 of the compiler.
18239 # Check whether --enable-stage1-checking was given.
18240 if test "${enable_stage1_checking+set}" = set; then :
18241 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18243 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18244 # For --disable-checking or implicit --enable-checking=release, avoid
18245 # setting --enable-checking=gc in the default stage1 checking for LTO
18246 # bootstraps. See PR62077.
18247 case $BUILD_CONFIG in
18249 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18251 stage1_checking=--enable-checking=yes,types;;
18253 if test "x
$enable_checking" = x && \
18254 test -d ${srcdir}/gcc && \
18255 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18256 stage1_checking=--enable-checking=yes,types,extra
18259 stage1_checking=--enable-checking=$enable_checking,types
18265 # Enable -Werror in bootstrap stage2 and later.
18266 # Check whether --enable-werror was given.
18267 if test "${enable_werror+set}" = set; then :
18268 enableval=$enable_werror;
18269 case ${enable_werror} in
18270 yes) stage2_werror_flag="--enable-werror-always" ;;
18271 *) stage2_werror_flag="" ;;
18276 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18277 case $BUILD_CONFIG in
18279 stage2_werror_flag="--enable-werror-always" ;;
18281 stage2_werror_flag="--enable-werror-always" ;;
18290 # Specify what files to not compare during bootstrap.
18292 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18294 hppa*64*-*-hpux*) ;;
18295 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18299 ac_config_files="$ac_config_files Makefile
"
18301 cat >confcache <<\_ACEOF
18302 # This file is a shell script that caches the results of configure
18303 # tests run on this system so they can be shared between configure
18304 # scripts and configure runs, see configure's option --config-cache.
18305 # It is not useful on other systems. If it contains results you don't
18306 # want to keep, you may remove or edit it.
18308 # config.status only pays attention to the cache file if you give it
18309 # the --recheck option to rerun configure.
18311 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18312 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18313 # following values.
18317 # The following way of writing the cache mishandles newlines in values,
18318 # but we know of no workaround that is simple, portable, and efficient.
18319 # So, we kill variables containing newlines.
18320 # Ultrix sh set writes to stderr and can't be redirected directly,
18321 # and sets the high bit in the cache file unless we assign to the vars.
18323 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18324 eval ac_val=\$$ac_var
18328 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18329 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18332 _ | IFS | as_nl) ;; #(
18333 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18334 *) { eval $ac_var=; unset $ac_var;} ;;
18340 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18341 *${as_nl}ac_space=\ *)
18342 # `set' does not quote correctly, so add quotes: double-quote
18343 # substitution turns \\\\ into \\, and sed turns \\ into \.
18346 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18349 # `set' quotes correctly as required by POSIX, so do not add quotes.
18350 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18359 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18361 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18363 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18364 if test -w "$cache_file"; then
18365 if test "x
$cache_file" != "x
/dev
/null
"; then
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18367 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18368 if test ! -f "$cache_file" || test -h "$cache_file"; then
18369 cat confcache >"$cache_file"
18371 case $cache_file in #(
18373 mv -f confcache "$cache_file"$$ &&
18374 mv -f "$cache_file"$$ "$cache_file" ;; #(
18376 mv -f confcache "$cache_file" ;;
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18382 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18387 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18388 # Let make expand exec_prefix.
18389 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18391 # Transform confdefs.h into DEFS.
18392 # Protect against shell expansion while executing Makefile rules.
18393 # Protect against Makefile macro expansion.
18395 # If the first sed substitution is executed (which looks for macros that
18396 # take arguments), then branch to the quote section. Otherwise,
18397 # look for a macro that doesn't take arguments.
18407 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18409 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18413 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18426 DEFS=`sed -n "$ac_script" confdefs.h`
18432 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18433 # 1. Remove the extension, and $U if already installed.
18434 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18435 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18436 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18437 # will be set to the directory where LIBOBJS objects are built.
18438 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18439 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
18441 LIBOBJS=$ac_libobjs
18443 LTLIBOBJS=$ac_ltlibobjs
18447 : "${CONFIG_STATUS=./config.status}"
18449 ac_clean_files_save=$ac_clean_files
18450 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18452 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18454 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18456 # Generated by $as_me.
18457 # Run this file to recreate the current configuration.
18458 # Compiler output produced by configure, useful for debugging
18459 # configure, is in config.log if it exists.
18462 ac_cs_recheck=false
18465 SHELL=\${CONFIG_SHELL-$SHELL}
18468 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18469 ## -------------------- ##
18470 ## M4sh Initialization. ##
18471 ## -------------------- ##
18473 # Be more Bourne compatible
18474 DUALCASE=1; export DUALCASE # for MKS sh
18475 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18478 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18479 # is contrary to our usage. Disable this feature.
18480 alias -g '${1+"$@"}'='"$@"'
18481 setopt NO_GLOB_SUBST
18483 case `(set -o) 2>/dev/null` in #(
18495 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18496 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18497 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
18498 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18499 # Prefer a ksh shell builtin over an external printf program on Solaris,
18500 # but without wasting forks for bash or zsh.
18501 if test -z "$BASH_VERSION$ZSH_VERSION" \
18502 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18503 as_echo
='print -r --'
18504 as_echo_n
='print -rn --'
18505 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18506 as_echo
='printf %s\n'
18507 as_echo_n
='printf %s'
18509 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18510 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
18511 as_echo_n
='/usr/ucb/echo -n'
18513 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
18514 as_echo_n_body
='eval
18518 expr "X$arg" : "X\\(.*\\)$as_nl";
18519 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18521 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18523 export as_echo_n_body
18524 as_echo_n
='sh -c $as_echo_n_body as_echo'
18526 export as_echo_body
18527 as_echo
='sh -c $as_echo_body as_echo'
18530 # The user is always right.
18531 if test "${PATH_SEPARATOR+set}" != set; then
18533 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
18534 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
18541 # We need space, tab and new line, in precisely that order. Quoting is
18542 # there to prevent editors from complaining about space-tab.
18543 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18544 # splitting by setting IFS to empty value.)
18547 # Find who we are. Look in the path if we contain no directory separator.
18550 *[\\/]* ) as_myself
=$0 ;;
18551 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18552 for as_dir
in $PATH
18555 test -z "$as_dir" && as_dir
=.
18556 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18562 # We did not find ourselves, most probably we were run as `sh COMMAND'
18563 # in which case we are not to be found in the path.
18564 if test "x$as_myself" = x
; then
18567 if test ! -f "$as_myself"; then
18568 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18572 # Unset variables that we do not need and which cause bugs (e.g. in
18573 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18574 # suppresses any "Segmentation fault" message there. '((' could
18575 # trigger a bug in pdksh 5.2.14.
18576 for as_var
in BASH_ENV ENV MAIL MAILPATH
18577 do eval test x\
${$as_var+set} = xset \
18578 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18591 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18594 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18595 # ----------------------------------------
18596 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18597 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18598 # script with STATUS, using 1 if that was 0.
18601 as_status
=$1; test $as_status -eq 0 && as_status
=1
18603 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18604 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18606 $as_echo "$as_me: error: $2" >&2
18607 as_fn_exit
$as_status
18611 # as_fn_set_status STATUS
18612 # -----------------------
18613 # Set $? to STATUS, without forking.
18614 as_fn_set_status
()
18617 } # as_fn_set_status
18619 # as_fn_exit STATUS
18620 # -----------------
18621 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18625 as_fn_set_status
$1
18631 # Portably unset VAR.
18634 { eval $1=; unset $1;}
18636 as_unset
=as_fn_unset
18637 # as_fn_append VAR VALUE
18638 # ----------------------
18639 # Append the text in VALUE to the end of the definition contained in VAR. Take
18640 # advantage of any shell optimizations that allow amortized linear growth over
18641 # repeated appends, instead of the typical quadratic growth present in naive
18643 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18644 eval 'as_fn_append ()
18655 # as_fn_arith ARG...
18656 # ------------------
18657 # Perform arithmetic evaluation on the ARGs, and store the result in the
18658 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18659 # must be portable across $(()) and expr.
18660 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18661 eval 'as_fn_arith ()
18668 as_val
=`expr "$@" || test $? -eq 1`
18673 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18674 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18680 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18681 as_basename
=basename
18686 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18692 as_me
=`$as_basename -- "$0" ||
18693 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18694 X"$0" : 'X\(//\)$' \| \
18695 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18697 sed '/^.*\/\([^/][^/]*\)\/*$/{
18711 # Avoid depending upon Character Ranges.
18712 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18713 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18714 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18715 as_cr_digits
='0123456789'
18716 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18718 ECHO_C
= ECHO_N
= ECHO_T
=
18719 case `echo -n x` in #(((((
18721 case `echo 'xy\c'` in
18722 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18724 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18731 rm -f conf$$ conf$$.exe conf$$.
file
18732 if test -d conf$$.dir
; then
18733 rm -f conf$$.dir
/conf$$.
file
18736 mkdir conf$$.dir
2>/dev
/null
18738 if (echo >conf$$.
file) 2>/dev
/null
; then
18739 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18741 # ... but there are two gotchas:
18742 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18743 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18744 # In both cases, we have to default to `cp -pR'.
18745 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18747 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18755 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18756 rmdir conf$$.dir
2>/dev
/null
18761 # Create "$as_dir" as a directory, including parents if necessary.
18766 -*) as_dir
=.
/$as_dir;;
18768 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18772 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18773 *) as_qdir
=$as_dir;;
18775 as_dirs
="'$as_qdir' $as_dirs"
18776 as_dir
=`$as_dirname -- "$as_dir" ||
18777 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18778 X"$as_dir" : 'X\(//\)[^/]' \| \
18779 X"$as_dir" : 'X\(//\)$' \| \
18780 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18781 $as_echo X"$as_dir" |
18782 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18786 /^X\(\/\/\)[^/].*/{
18799 test -d "$as_dir" && break
18801 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18802 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18806 if mkdir
-p .
2>/dev
/null
; then
18807 as_mkdir_p
='mkdir -p "$as_dir"'
18809 test -d .
/-p && rmdir .
/-p
18814 # as_fn_executable_p FILE
18815 # -----------------------
18816 # Test if FILE is an executable regular file.
18817 as_fn_executable_p
()
18819 test -f "$1" && test -x "$1"
18820 } # as_fn_executable_p
18821 as_test_x
='test -x'
18822 as_executable_p
=as_fn_executable_p
18824 # Sed expression to map a string onto a valid CPP name.
18825 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18827 # Sed expression to map a string onto a valid variable name.
18828 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18832 ## ----------------------------------- ##
18833 ## Main body of $CONFIG_STATUS script. ##
18834 ## ----------------------------------- ##
18836 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18838 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18839 # Save the log message, to keep $0 and so on meaningful, and to
18840 # report actual input values of CONFIG_FILES etc. instead of their
18841 # values after options handling.
18843 This file was extended by $as_me, which was
18844 generated by GNU Autoconf 2.69. Invocation command line was
18846 CONFIG_FILES = $CONFIG_FILES
18847 CONFIG_HEADERS = $CONFIG_HEADERS
18848 CONFIG_LINKS = $CONFIG_LINKS
18849 CONFIG_COMMANDS = $CONFIG_COMMANDS
18852 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18857 case $ac_config_files in *"
18858 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18863 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18864 # Files that config.status was made for.
18865 config_files="$ac_config_files"
18869 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18871 \`$as_me' instantiates files and other configuration actions
18872 from templates according to the current configuration. Unless the files
18873 and actions are specified as TAGs, all are instantiated by default.
18875 Usage: $0 [OPTION]... [TAG]...
18877 -h, --help print this help, then exit
18878 -V, --version print version number and configuration settings, then exit
18879 --config print configuration, then exit
18880 -q, --quiet, --silent
18881 do not print progress messages
18882 -d, --debug don't remove temporary files
18883 --recheck update $as_me by reconfiguring in the same conditions
18884 --file=FILE[:TEMPLATE]
18885 instantiate the configuration file FILE
18887 Configuration files:
18890 Report bugs to the package provider."
18893 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18894 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18897 configured by $0, generated by GNU Autoconf 2.69,
18898 with options \\"\$ac_cs_config\\"
18900 Copyright (C) 2012 Free Software Foundation, Inc.
18901 This config.status script is free software; the Free Software Foundation
18902 gives unlimited permission to copy, distribute and modify it."
18908 test -n "\$AWK" || AWK=awk
18911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18912 # The default lists apply if the user does not specify any file.
18918 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18919 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18923 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18935 # Handling of the options.
18936 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18938 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18939 $as_echo "$ac_cs_version"; exit ;;
18940 --config |
--confi |
--conf |
--con |
--co |
--c )
18941 $as_echo "$ac_cs_config"; exit ;;
18942 --debug |
--debu |
--deb |
--de |
--d |
-d )
18944 --file |
--fil |
--fi |
--f )
18947 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18948 '') as_fn_error $?
"missing file argument" ;;
18950 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18951 ac_need_defaults
=false
;;
18952 --he |
--h |
--help |
--hel |
-h )
18953 $as_echo "$ac_cs_usage"; exit ;;
18954 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18955 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18958 # This is an error.
18959 -*) as_fn_error $?
"unrecognized option: \`$1'
18960 Try \`$0 --help' for more information." ;;
18962 *) as_fn_append ac_config_targets
" $1"
18963 ac_need_defaults
=false
;;
18969 ac_configure_extra_args
=
18971 if $ac_cs_silent; then
18973 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18978 if \$ac_cs_recheck; then
18979 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18981 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18982 CONFIG_SHELL='$SHELL'
18983 export CONFIG_SHELL
18988 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18992 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18993 ## Running $as_me. ##
18999 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19003 extrasub_build="$extrasub_build"
19004 extrasub_host="$extrasub_host"
19005 extrasub_target="$extrasub_target"
19009 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19011 # Handling of arguments.
19012 for ac_config_target
in $ac_config_targets
19014 case $ac_config_target in
19015 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19017 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19022 # If the user did not use the arguments to specify the items to instantiate,
19023 # then the envvar interface is used. Set only those that are not.
19024 # We use the long form for the default assignment because of an extremely
19025 # bizarre bug on SunOS 4.1.3.
19026 if $ac_need_defaults; then
19027 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19030 # Have a temporary directory for convenience. Make it in the build tree
19031 # simply because there is no reason against having it here, and in addition,
19032 # creating and moving files from /tmp can sometimes cause problems.
19033 # Hook for its removal unless debugging.
19034 # Note that there is a small window in which the directory will not be cleaned:
19035 # after its creation but before its name has been assigned to `$tmp'.
19039 trap 'exit_status=$?
19040 : "${ac_tmp:=$tmp}"
19041 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19043 trap 'as_fn_exit 1' 1 2 13 15
19045 # Create a (secure) tmp directory for tmp files.
19048 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19052 tmp
=.
/conf$$
-$RANDOM
19053 (umask 077 && mkdir
"$tmp")
19054 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19057 # Set up the scripts for CONFIG_FILES section.
19058 # No need to generate them if there are no CONFIG_FILES.
19059 # This happens for instance with `./config.status config.h'.
19060 if test -n "$CONFIG_FILES"; then
19062 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19063 ac_cs_awk_getline
=:
19064 ac_cs_awk_pipe_init
=
19065 ac_cs_awk_read_file
='
19066 while ((getline aline < (F[key])) > 0)
19069 ac_cs_awk_pipe_fini
=
19071 ac_cs_awk_getline
=false
19072 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19073 ac_cs_awk_read_file
='
19075 print "cat " F[key] " &&"
19076 '$ac_cs_awk_pipe_init
19077 # The final `:' finishes the AND list.
19078 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19080 ac_cr
=`echo X | tr X '\015'`
19081 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19082 # But we know of no other shell where ac_cr would be empty at this
19083 # point, so we can use a bashism as a fallback.
19084 if test "x$ac_cr" = x
; then
19085 eval ac_cr
=\$
\'\\r
\'
19087 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19088 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19091 ac_cs_awk_cr
=$ac_cr
19094 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19097 # Create commands to substitute file output variables.
19099 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19100 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19101 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19104 } >conf$
$files.sh
&&
19105 . .
/conf$
$files.sh ||
19106 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19107 rm -f conf$
$files.sh
19110 echo "cat >conf$$subs.awk <<_ACEOF" &&
19111 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19113 } >conf$$subs.sh ||
19114 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19115 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19117 for ac_last_try in false false false false false :; do
19118 . ./conf$$subs.sh ||
19119 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19121 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19122 if test $ac_delim_n = $ac_delim_num; then
19124 elif $ac_last_try; then
19125 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19127 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19130 rm -f conf$$subs.sh
19132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19133 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19137 s/^/S["/; s
/!.
*/"]=/
19147 s/\(.\{148\}\)..*/\1/
19149 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19154 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19161 s/\(.\{148\}\)..*/\1/
19163 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19167 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19172 ' <conf$$subs.awk | sed '
19177 ' >>$CONFIG_STATUS || ac_write_fail=1
19178 rm -f conf$$subs.awk
19179 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19181 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19182 for (key in S) S_is_set[key] = 1
19184 \$ac_cs_awk_pipe_init
19188 nfields = split(line, field, "@
")
19190 len = length(field[1])
19191 for (i = 2; i < nfields; i++) {
19193 keylen = length(key)
19194 if (S_is_set[key]) {
19196 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19197 len += length(value) + length(field[++i])
19202 if (nfields == 3 && !substed) {
19204 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19205 \$ac_cs_awk_read_file
19211 \$ac_cs_awk_pipe_fini
19214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19215 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19216 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19219 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19220 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19223 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19224 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19225 # trailing colons and then remove the whole line if VPATH becomes empty
19226 # (actually we leave an empty line to preserve line numbers).
19227 if test "x
$srcdir" = x.; then
19228 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19247 fi # test -n "$CONFIG_FILES"
19250 eval set X " :F
$CONFIG_FILES "
19255 :[FHLC]) ac_mode=$ac_tag; continue;;
19257 case $ac_mode$ac_tag in
19259 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19260 :[FH]-) ac_tag=-:-;;
19261 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19278 -) ac_f="$ac_tmp/stdin";;
19279 *) # Look for the file first in the build tree, then in the source tree
19280 # (if the path is not absolute). The absolute path cannot be DOS-style,
19281 # because $ac_f cannot contain `:'.
19285 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19287 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19289 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19290 as_fn_append ac_file_inputs " '$ac_f'"
19293 # Let's still pretend it is `configure' which instantiates (i.e., don't
19294 # use $as_me), people would be surprised to read:
19295 # /* config.h. Generated by config.status. */
19296 configure_input='Generated from '`
19297 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19299 if test x"$ac_file" != x-; then
19300 configure_input="$ac_file.
$configure_input"
19301 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19302 $as_echo "$as_me: creating
$ac_file" >&6;}
19304 # Neutralize special characters interpreted by sed in replacement strings.
19305 case $configure_input in #(
19306 *\&* | *\|* | *\\* )
19307 ac_sed_conf_input=`$as_echo "$configure_input" |
19308 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19309 *) ac_sed_conf_input=$configure_input;;
19313 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19314 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19319 ac_dir=`$as_dirname -- "$ac_file" ||
19320 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19321 X"$ac_file" : 'X\(//\)[^/]' \| \
19322 X"$ac_file" : 'X\(//\)$' \| \
19323 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19324 $as_echo X"$ac_file" |
19325 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19329 /^X\(\/\/\)[^/].*/{
19342 as_dir="$ac_dir"; as_fn_mkdir_p
19346 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19348 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19349 # A "..
" for each directory in $ac_dir_suffix.
19350 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19351 case $ac_top_builddir_sub in
19352 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19353 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19356 ac_abs_top_builddir=$ac_pwd
19357 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19358 # for backward compatibility:
19359 ac_top_builddir=$ac_top_build_prefix
19362 .) # We are building in place.
19364 ac_top_srcdir=$ac_top_builddir_sub
19365 ac_abs_top_srcdir=$ac_pwd ;;
19366 [\\/]* | ?:[\\/]* ) # Absolute name.
19367 ac_srcdir=$srcdir$ac_dir_suffix;
19368 ac_top_srcdir=$srcdir
19369 ac_abs_top_srcdir=$srcdir ;;
19370 *) # Relative name.
19371 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19372 ac_top_srcdir=$ac_top_build_prefix$srcdir
19373 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19375 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19385 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19386 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19391 # If the template does not know about datarootdir, expand it.
19392 # FIXME: This hack should be removed a few years after 2.60.
19393 ac_datarootdir_hack=; ac_datarootdir_seen=
19404 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19405 *datarootdir*) ac_datarootdir_seen=yes;;
19406 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19407 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19408 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19411 ac_datarootdir_hack='
19412 s&@datadir@&$datadir&g
19413 s&@docdir@&$docdir&g
19414 s&@infodir@&$infodir&g
19415 s&@localedir@&$localedir&g
19416 s&@mandir@&$mandir&g
19417 s&\\\${datarootdir}&$datarootdir&g' ;;
19421 # Neutralize VPATH when `$srcdir' = `.'.
19422 # Shell code in configure.ac might set extrasub.
19423 # FIXME: do we really want to maintain this feature?
19424 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19425 ac_sed_extra="$ac_vpsub
19428 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19430 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19431 s|@configure_input@|
$ac_sed_conf_input|
;t t
19432 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19433 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19434 s
&@srcdir@
&$ac_srcdir&;t t
19435 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19436 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19437 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19438 s
&@builddir@
&$ac_builddir&;t t
19439 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19440 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19441 s
&@INSTALL@
&$ac_INSTALL&;t t
19442 $ac_datarootdir_hack
19444 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19445 if $ac_cs_awk_getline; then
19446 $AWK -f "$ac_tmp/subs.
awk"
19448 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19450 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19452 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19453 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19454 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19455 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19457 which seems to be undefined. Please make sure it is defined" >&5
19458 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19459 which seems to be undefined. Please make sure it is defined" >&2;}
19461 rm -f "$ac_tmp/stdin"
19463 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19464 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19466 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19474 case $ac_file$ac_mode in
19475 "Makefile":F) sed "$extrasub_build" Makefile |
19476 sed "$extrasub_host" |
19477 sed "$extrasub_target" > mf$$
19478 mv -f mf$$ Makefile ;;
19486 ac_clean_files=$ac_clean_files_save
19488 test $ac_write_fail = 0 ||
19489 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19492 # configure is writing to config.log, and then calls config.status.
19493 # config.status does its own redirection, appending to config.log.
19494 # Unfortunately, on DOS this fails, as config.log is still kept open
19495 # by configure, so config.status won't be able to
write to it
; its
19496 # output is simply discarded. So we exec the FD to /dev/null,
19497 # effectively closing config.log, so it can be properly (re)opened and
19498 # appended to by config.status. When coming back to configure, we
19499 # need to make the FD available again.
19500 if test "$no_create" != yes; then
19502 ac_config_status_args
=
19503 test "$silent" = yes &&
19504 ac_config_status_args
="$ac_config_status_args --quiet"
19506 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19508 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19509 # would make configure fail if this is the last instruction.
19510 $ac_cs_success || as_fn_exit
1
19512 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19514 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}