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
685 DEBUG_PREFIX_CFLAGS_FOR_TARGET
686 SYSROOT_CFLAGS_FOR_TARGET
688 extra_host_zlib_configure_flags
689 extra_host_libiberty_configure_flags
692 extra_linker_plugin_flags
693 extra_linker_plugin_configure_flags
700 extra_isl_gmp_configure_flags
701 extra_mpc_mpfr_configure_flags
702 extra_mpc_gmp_configure_flags
703 extra_mpfr_configure_flags
724 extra_liboffloadmic_configure_flags
751 TOPLEVEL_CONFIGURE_ARGUMENTS
779 program_transform_name
790 ac_subst_files
='serialization_dependencies
796 enable_option_checking
800 enable_as_accelerator_for
801 enable_offload_targets
802 enable_offload_defaulted
806 enable_compressed_debug_sections
807 enable_default_compressed_debug_sections_algorithm
810 enable_libquadmath_support
827 with_static_standard_libraries
834 enable_isl_version_check
836 enable_linker_plugin_configure_flags
837 enable_linker_plugin_flags
839 enable_stage1_languages
842 with_target_bdw_gc_include
843 with_target_bdw_gc_lib
844 with_gcc_major_version_only
846 with_debug_prefix_map
849 enable_serial_configure
850 with_build_time_tools
851 enable_maintainer_mode
852 enable_stage1_checking
855 ac_precious_vars
='build_alias
907 # Initialize some variables set by options.
909 ac_init_version
=false
910 ac_unrecognized_opts
=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
921 program_transform_name
=s
,x
,x
,
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir
='${exec_prefix}/bin'
936 sbindir
='${exec_prefix}/sbin'
937 libexecdir
='${exec_prefix}/libexec'
938 datarootdir
='${prefix}/share'
939 datadir
='${datarootdir}'
940 sysconfdir
='${prefix}/etc'
941 sharedstatedir
='${prefix}/com'
942 localstatedir
='${prefix}/var'
943 includedir
='${prefix}/include'
944 oldincludedir
='/usr/include'
945 docdir
='${datarootdir}/doc/${PACKAGE}'
946 infodir
='${datarootdir}/info'
951 libdir
='${exec_prefix}/lib'
952 localedir
='${datarootdir}/locale'
953 mandir
='${datarootdir}/man'
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\
$ac_option
967 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 # Accept the important Cygnus configure options, so we can diagnose typos.
974 case $ac_dashdash$ac_option in
978 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
980 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
983 -build |
--build |
--buil |
--bui |
--bu)
984 ac_prev
=build_alias
;;
985 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
986 build_alias
=$ac_optarg ;;
988 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
989 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
990 ac_prev
=cache_file
;;
991 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
992 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
993 cache_file
=$ac_optarg ;;
996 cache_file
=config.cache
;;
998 -datadir |
--datadir |
--datadi |
--datad)
1000 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1001 datadir
=$ac_optarg ;;
1003 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1004 |
--dataroo |
--dataro |
--datar)
1005 ac_prev
=datarootdir
;;
1006 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1007 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1008 datarootdir
=$ac_optarg ;;
1010 -disable-* |
--disable-*)
1011 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1014 as_fn_error $?
"invalid feature name: $ac_useropt"
1015 ac_useropt_orig
=$ac_useropt
1016 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1019 "enable_
$ac_useropt"
1021 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1022 ac_unrecognized_sep
=', ';;
1024 eval enable_
$ac_useropt=no
;;
1026 -docdir |
--docdir |
--docdi |
--doc |
--do)
1028 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1029 docdir
=$ac_optarg ;;
1031 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1033 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1034 dvidir
=$ac_optarg ;;
1036 -enable-* |
--enable-*)
1037 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1040 as_fn_error $?
"invalid feature name: $ac_useropt"
1041 ac_useropt_orig
=$ac_useropt
1042 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1045 "enable_
$ac_useropt"
1047 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1048 ac_unrecognized_sep
=', ';;
1050 eval enable_
$ac_useropt=\
$ac_optarg ;;
1052 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1053 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1054 |
--exec |
--exe |
--ex)
1055 ac_prev
=exec_prefix
;;
1056 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1057 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1058 |
--exec=* |
--exe=* |
--ex=*)
1059 exec_prefix
=$ac_optarg ;;
1061 -gas |
--gas |
--ga |
--g)
1062 # Obsolete; use --with-gas.
1065 -help |
--help |
--hel |
--he |
-h)
1066 ac_init_help
=long
;;
1067 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1068 ac_init_help
=recursive
;;
1069 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1070 ac_init_help
=short
;;
1072 -host |
--host |
--hos |
--ho)
1073 ac_prev
=host_alias
;;
1074 -host=* |
--host=* |
--hos=* |
--ho=*)
1075 host_alias
=$ac_optarg ;;
1077 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1079 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1081 htmldir
=$ac_optarg ;;
1083 -includedir |
--includedir |
--includedi |
--included |
--include \
1084 |
--includ |
--inclu |
--incl |
--inc)
1085 ac_prev
=includedir
;;
1086 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1087 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1088 includedir
=$ac_optarg ;;
1090 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1092 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1093 infodir
=$ac_optarg ;;
1095 -libdir |
--libdir |
--libdi |
--libd)
1097 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1098 libdir
=$ac_optarg ;;
1100 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1101 |
--libexe |
--libex |
--libe)
1102 ac_prev
=libexecdir
;;
1103 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1104 |
--libexe=* |
--libex=* |
--libe=*)
1105 libexecdir
=$ac_optarg ;;
1107 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1108 ac_prev
=localedir
;;
1109 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1110 localedir
=$ac_optarg ;;
1112 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1113 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1114 ac_prev
=localstatedir
;;
1115 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1116 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1117 localstatedir
=$ac_optarg ;;
1119 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1121 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1122 mandir
=$ac_optarg ;;
1124 -nfp |
--nfp |
--nf)
1125 # Obsolete; use --without-fp.
1128 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1129 |
--no-cr |
--no-c |
-n)
1132 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1133 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1136 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1137 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1138 |
--oldin |
--oldi |
--old |
--ol |
--o)
1139 ac_prev
=oldincludedir
;;
1140 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1141 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1142 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1143 oldincludedir
=$ac_optarg ;;
1145 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1147 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1148 prefix
=$ac_optarg ;;
1150 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1151 |
--program-pre |
--program-pr |
--program-p)
1152 ac_prev
=program_prefix
;;
1153 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1154 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1155 program_prefix
=$ac_optarg ;;
1157 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1158 |
--program-suf |
--program-su |
--program-s)
1159 ac_prev
=program_suffix
;;
1160 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1161 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1162 program_suffix
=$ac_optarg ;;
1164 -program-transform-name |
--program-transform-name \
1165 |
--program-transform-nam |
--program-transform-na \
1166 |
--program-transform-n |
--program-transform- \
1167 |
--program-transform |
--program-transfor \
1168 |
--program-transfo |
--program-transf \
1169 |
--program-trans |
--program-tran \
1170 |
--progr-tra |
--program-tr |
--program-t)
1171 ac_prev
=program_transform_name
;;
1172 -program-transform-name=* |
--program-transform-name=* \
1173 |
--program-transform-nam=* |
--program-transform-na=* \
1174 |
--program-transform-n=* |
--program-transform-=* \
1175 |
--program-transform=* |
--program-transfor=* \
1176 |
--program-transfo=* |
--program-transf=* \
1177 |
--program-trans=* |
--program-tran=* \
1178 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1179 program_transform_name
=$ac_optarg ;;
1181 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1183 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1184 pdfdir
=$ac_optarg ;;
1186 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1188 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1191 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1192 |
-silent |
--silent |
--silen |
--sile |
--sil)
1195 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1197 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1199 sbindir
=$ac_optarg ;;
1201 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1202 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1203 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1205 ac_prev
=sharedstatedir
;;
1206 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1207 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1208 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1210 sharedstatedir
=$ac_optarg ;;
1212 -site |
--site |
--sit)
1214 -site=* |
--site=* |
--sit=*)
1217 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1219 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1220 srcdir
=$ac_optarg ;;
1222 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1223 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1224 ac_prev
=sysconfdir
;;
1225 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1226 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1227 sysconfdir
=$ac_optarg ;;
1229 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1230 ac_prev
=target_alias
;;
1231 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1232 target_alias
=$ac_optarg ;;
1234 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1237 -version |
--version |
--versio |
--versi |
--vers |
-V)
1238 ac_init_version
=: ;;
1241 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1244 as_fn_error $?
"invalid package name: $ac_useropt"
1245 ac_useropt_orig
=$ac_useropt
1246 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1251 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1252 ac_unrecognized_sep
=', ';;
1254 eval with_
$ac_useropt=\
$ac_optarg ;;
1256 -without-* |
--without-*)
1257 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1260 as_fn_error $?
"invalid package name: $ac_useropt"
1261 ac_useropt_orig
=$ac_useropt
1262 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1267 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1268 ac_unrecognized_sep
=', ';;
1270 eval with_
$ac_useropt=no
;;
1273 # Obsolete; use --with-x.
1276 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1277 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1278 ac_prev
=x_includes
;;
1279 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1280 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1281 x_includes
=$ac_optarg ;;
1283 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1284 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1285 ac_prev
=x_libraries
;;
1286 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1287 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1288 x_libraries
=$ac_optarg ;;
1290 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1291 Try \`$0 --help' for more information"
1295 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1296 # Reject names that are not valid shell variable names.
1297 case $ac_envvar in #(
1298 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1299 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1301 eval $ac_envvar=\
$ac_optarg
1302 export $ac_envvar ;;
1305 # FIXME: should be removed in autoconf 3.0.
1306 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1307 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1308 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1309 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1315 if test -n "$ac_prev"; then
1316 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1317 as_fn_error $?
"missing argument to $ac_option"
1320 if test -n "$ac_unrecognized_opts"; then
1321 case $enable_option_checking in
1323 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1324 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1328 # Check all directory arguments for consistency.
1329 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1334 eval ac_val
=\$
$ac_var
1335 # Remove trailing slashes.
1338 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1339 eval $ac_var=\
$ac_val;;
1341 # Be sure to have absolute directory names.
1343 [\\/$
]* | ?
:[\\/]* ) continue;;
1344 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1346 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1354 target
=$target_alias
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x
; then
1358 if test "x$build_alias" = x
; then
1359 cross_compiling
=maybe
1360 elif test "x$build_alias" != "x$host_alias"; then
1366 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1368 test "$silent" = yes && exec 6>/dev
/null
1371 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1372 ac_ls_di
=`ls -di .` &&
1373 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1374 as_fn_error $?
"working directory cannot be determined"
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376 as_fn_error $?
"pwd does not report name of working directory"
1379 # Find the source files, if location was not specified.
1380 if test -z "$srcdir"; then
1381 ac_srcdir_defaulted
=yes
1382 # Try the directory containing this script, then the parent directory.
1383 ac_confdir
=`$as_dirname -- "$as_myself" ||
1384 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385 X"$as_myself" : 'X\(//\)[^/]' \| \
1386 X"$as_myself" : 'X\(//\)$' \| \
1387 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1388 $as_echo X"$as_myself" |
1389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1411 ac_srcdir_defaulted
=no
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1415 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1417 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1419 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1429 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 as_fn_error $?
"path to source, $srcdir, contains spaces"
1436 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1438 for ac_var
in $ac_precious_vars; do
1439 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1441 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1446 # Report the --help message.
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1452 \`configure' configures this package to adapt to many kinds of systems.
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1459 Defaults for the options are specified in brackets.
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1483 For better control, use the options below.
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1510 --program-prefix=PREFIX prepend PREFIX to installed program names
1511 --program-suffix=SUFFIX append SUFFIX to installed program names
1512 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1515 --build=BUILD configure
for building on BUILD
[guessed
]
1516 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1517 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1521 if test -n "$ac_init_help"; then
1526 --disable-option-checking ignore unrecognized
--enable/--with options
1527 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1528 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1529 --enable-as-accelerator-for=ARG
1530 build as offload target compiler. Specify offload
1532 --enable-offload-targets=LIST
1533 enable offloading to devices from comma-separated
1534 LIST of TARGET
[=DIR
]. Use optional path to
find
1535 offload target compiler during the build
1536 --enable-offload-defaulted
1537 If enabled
, configured but not installed offload compilers and
1538 libgomp plugins are silently ignored. Useful
for distribution
1539 compilers where those are
in separate optional packages.
1541 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1542 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1543 --enable-gprofng[=ARG
] build gprofng
[ARG
={yes,no
}]
1544 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1545 Enable compressed debug sections
for gas
, gold or ld
1547 --enable-default-compressed-debug-sections-algorithm={zlib
,zstd
}
1548 Default compression algorithm
for
1549 --enable-compressed-debug-sections.
1550 --enable-year2038 enable support
for timestamps past the year
2038
1551 --disable-libquadmath do not build libquadmath directory
1552 --disable-libquadmath-support
1553 disable libquadmath support
for Fortran
1554 --enable-libada build libada directory
1555 --enable-libssp build libssp directory
1556 --disable-libstdcxx do not build libstdc
++-v3 directory
1557 --enable-liboffloadmic=ARG
1558 build liboffloadmic
[ARG
={no
,host,target
}]
1559 --enable-bootstrap enable bootstrapping
[yes if native build
]
1560 --enable-pgo-build[=lto
]
1561 enable the PGO build
1562 --disable-isl-version-check
1563 disable check
for isl version
1564 --enable-lto enable link
time optimization support
1565 --enable-linker-plugin-configure-flags=FLAGS
1566 additional flags
for configuring linker plugins
1568 --enable-linker-plugin-flags=FLAGS
1569 additional flags
for configuring and building linker
1571 --enable-host-shared build
host code as shared libraries
1572 --enable-stage1-languages[=all
]
1573 choose additional languages to build during stage1.
1574 Mostly useful
for compiler development
1575 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1577 --enable-vtable-verify Enable vtable verification feature
1578 --enable-serial-[{host,target,build}-]configure
1579 force sequential configuration of sub-packages for
1580 the host, target or build machine, or all
1582 --enable-maintainer-mode
1583 enable make rules and dependencies not useful (and
1584 sometimes confusing) to the casual installer
1585 --enable-stage1-checking[=all]
1586 choose additional checking for stage1 of the
1588 --enable-werror enable -Werror in bootstrap stage2 and later
1591 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1592 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1593 --with-build-libsubdir=DIR Directory where to find libraries for build system
1594 --with-system-zlib use installed libz
1595 --with-zstd Support zstd compressed debug sections
1597 --with-mpc=PATH specify prefix directory for installed MPC package.
1598 Equivalent to --with-mpc-include=PATH/include plus
1599 --with-mpc-lib=PATH/lib
1600 --with-mpc-include=PATH specify directory for installed MPC include files
1601 --with-mpc-lib=PATH specify directory for the installed MPC library
1602 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1603 Equivalent to --with-mpfr-include=PATH/include plus
1604 --with-mpfr-lib=PATH/lib
1605 --with-mpfr-include=PATH
1606 specify directory for installed MPFR include files
1607 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1608 --with-gmp=PATH specify prefix directory for the installed GMP
1609 package. Equivalent to
1610 --with-gmp-include=PATH/include plus
1611 --with-gmp-lib=PATH/lib
1612 --with-gmp-include=PATH specify directory for installed GMP include files
1613 --with-gmp-lib=PATH specify directory for the installed GMP library
1614 --with-stage1-libs=LIBS libraries for stage1
1615 --with-static-standard-libraries
1616 use -static-libstdc++ and -static-libgcc
1618 --with-stage1-ldflags=FLAGS
1619 linker flags for stage1
1620 --with-boot-libs=LIBS libraries for stage2 and later
1621 --with-boot-ldflags=FLAGS
1622 linker flags for stage2 and later
1623 --with-isl=PATH Specify prefix directory for the installed isl
1624 package. Equivalent to
1625 --with-isl-include=PATH/include plus
1626 --with-isl-lib=PATH/lib
1627 --with-isl-include=PATH Specify directory for installed isl include files
1628 --with-isl-lib=PATH Specify the directory for the installed isl library
1629 --with-target-bdw-gc=PATHLIST
1630 specify prefix directory for installed bdw-gc
1631 package. Equivalent to
1632 --with-target-bdw-gc-include=PATH/include plus
1633 --with-target-bdw-gc-lib=PATH/lib
1634 --with-target-bdw-gc-include=PATHLIST
1635 specify directories for installed bdw-gc include
1637 --with-target-bdw-gc-lib=PATHLIST
1638 specify directories for installed bdw-gc library
1639 --with-gcc-major-version-only
1640 use only GCC major number in filesystem paths
1641 --with-build-sysroot=SYSROOT
1642 use sysroot as the system root during the build
1643 --with-debug-prefix-map='A
=B C
=D ...
'
1644 map A to B, C to D ... in debug information
1645 --with-build-config='NAME NAME2...
'
1646 use config/NAME.mk build configuration
1647 --with-build-time-tools=PATH
1648 use given path to find target tools during the build
1650 Some influential environment variables:
1651 CC C compiler command
1652 CFLAGS C compiler flags
1653 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1654 nonstandard directory <lib dir>
1655 LIBS libraries to pass to the linker, e.g. -l<library>
1656 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1657 you have headers in a nonstandard directory <include dir>
1658 CXX C++ compiler command
1659 CXXFLAGS C++ compiler flags
1661 additional configure arguments for build directories
1663 additional configure arguments for host directories
1665 additional configure arguments for target directories
1668 DLLTOOL DLLTOOL for the host
1669 DSYMUTIL DSYMUTIL for the host
1671 LIPO LIPO for the host
1673 RANLIB RANLIB for the host
1674 STRIP STRIP for the host
1675 WINDRES WINDRES for the host
1676 WINDMC WINDMC for the host
1677 OBJCOPY OBJCOPY for the host
1678 OBJDUMP OBJDUMP for the host
1679 OTOOL OTOOL for the host
1680 READELF READELF for the host
1688 GFORTRAN for the target
1698 DLLTOOL for the target
1700 DSYMUTIL for the target
1708 OBJCOPY for the target
1710 OBJDUMP for the target
1712 OTOOL for the target
1714 RANLIB for the target
1716 READELF for the target
1718 STRIP for the target
1720 WINDRES for the target
1722 WINDMC for the target
1724 Use these variables to override the choices made by `configure' or to
help
1725 it to
find libraries and programs with nonstandard names
/locations.
1727 Report bugs to the package provider.
1732 if test "$ac_init_help" = "recursive"; then
1733 # If there are subdirs, report their specific --help.
1734 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1735 test -d "$ac_dir" ||
1736 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1741 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1743 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1744 # A ".." for each directory in $ac_dir_suffix.
1745 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1746 case $ac_top_builddir_sub in
1747 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1748 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1751 ac_abs_top_builddir
=$ac_pwd
1752 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1753 # for backward compatibility:
1754 ac_top_builddir
=$ac_top_build_prefix
1757 .
) # We are building in place.
1759 ac_top_srcdir
=$ac_top_builddir_sub
1760 ac_abs_top_srcdir
=$ac_pwd ;;
1761 [\\/]* | ?
:[\\/]* ) # Absolute name.
1762 ac_srcdir
=$srcdir$ac_dir_suffix;
1763 ac_top_srcdir
=$srcdir
1764 ac_abs_top_srcdir
=$srcdir ;;
1766 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1767 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1768 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1770 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1772 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1773 # Check for guested configure.
1774 if test -f "$ac_srcdir/configure.gnu"; then
1776 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1777 elif test -f "$ac_srcdir/configure"; then
1779 $SHELL "$ac_srcdir/configure" --help=recursive
1781 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1783 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1787 test -n "$ac_init_help" && exit $ac_status
1788 if $ac_init_version; then
1791 generated by GNU Autoconf
2.69
1793 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1794 This configure
script is free software
; the Free Software Foundation
1795 gives unlimited permission to copy
, distribute and modify it.
1800 ## ------------------------ ##
1801 ## Autoconf initialization. ##
1802 ## ------------------------ ##
1804 # ac_fn_c_try_compile LINENO
1805 # --------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_compile
()
1809 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1810 rm -f conftest.
$ac_objext
1811 if { { ac_try
="$ac_compile"
1813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_compile") 2>conftest.err
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest.$ac_objext; then :
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1840 } # ac_fn_c_try_compile
1842 # ac_fn_cxx_try_compile LINENO
1843 # ----------------------------
1844 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_cxx_try_compile ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext
1849 if { { ac_try="$ac_compile"
1851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1852 *) ac_try_echo
=$ac_try;;
1854 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_compile") 2>conftest.err
1858 if test -s conftest.err
; then
1859 grep -v '^ *+' conftest.err
>conftest.er1
1860 cat conftest.er1
>&5
1861 mv -f conftest.er1 conftest.err
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_cxx_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest.
$ac_objext; then :
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.
$ac_ext >&5
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status
$ac_retval
1878 } # ac_fn_cxx_try_compile
1880 # ac_fn_cxx_try_link LINENO
1881 # -------------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_link
()
1885 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1886 rm -f conftest.
$ac_objext conftest
$ac_exeext
1887 if { { ac_try
="$ac_link"
1889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_link") 2>conftest.err
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && {
1903 test -z "$ac_cxx_werror_flag" ||
1904 test ! -s conftest.err
1905 } && test -s conftest$ac_exeext && {
1906 test "$cross_compiling" = yes ||
1907 test -x conftest$ac_exeext
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1916 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918 # interfere with the next link command; also delete a directory that is
1919 # left behind by Apple's compiler. We do this before executing the actions.
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1924 } # ac_fn_cxx_try_link
1926 # ac_fn_c_try_link LINENO
1927 # -----------------------
1928 # Try to link conftest.$ac_ext, and return whether this succeeded.
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 rm -f conftest.$ac_objext conftest$ac_exeext
1933 if { { ac_try="$ac_link"
1935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1936 *) ac_try_echo
=$ac_try;;
1938 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939 $as_echo "$ac_try_echo"; } >&5
1940 (eval "$ac_link") 2>conftest.err
1942 if test -s conftest.err
; then
1943 grep -v '^ *+' conftest.err
>conftest.er1
1944 cat conftest.er1
>&5
1945 mv -f conftest.er1 conftest.err
1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948 test $ac_status = 0; } && {
1949 test -z "$ac_c_werror_flag" ||
1950 test ! -s conftest.err
1951 } && test -s conftest
$ac_exeext && {
1952 test "$cross_compiling" = yes ||
1953 test -x conftest
$ac_exeext
1957 $as_echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.
$ac_ext >&5
1962 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1963 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1964 # interfere with the next link command; also delete a directory that is
1965 # left behind by Apple's compiler. We do this before executing the actions.
1966 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status
$ac_retval
1970 } # ac_fn_c_try_link
1971 cat >config.log
<<_ACEOF
1972 This file contains any messages produced by compilers while
1973 running configure, to aid debugging if configure makes a mistake.
1975 It was created by $as_me, which was
1976 generated by GNU Autoconf 2.69. Invocation command line was
1988 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1989 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1990 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1991 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1992 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1994 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1995 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1997 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1998 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1999 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2000 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2001 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2002 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2003 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2007 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2011 test -z "$as_dir" && as_dir
=.
2012 $as_echo "PATH: $as_dir"
2028 # Keep a trace of the command line.
2029 # Strip out --no-create and --no-recursion so they do not pile up.
2030 # Strip out --silent because we don't want to record it for future runs.
2031 # Also quote any args containing shell meta-characters.
2032 # Make two passes to allow for proper duplicate-argument suppression.
2036 ac_must_keep_next
=false
2042 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2043 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2044 |
-silent |
--silent |
--silen |
--sile |
--sil)
2047 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2050 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2052 as_fn_append ac_configure_args1
" '$ac_arg'"
2053 if test $ac_must_keep_next = true
; then
2054 ac_must_keep_next
=false
# Got value, back to normal.
2057 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2058 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2059 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2060 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2061 case "$ac_configure_args0 " in
2062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2065 -* ) ac_must_keep_next
=true
;;
2068 as_fn_append ac_configure_args
" '$ac_arg'"
2073 { ac_configure_args0
=; unset ac_configure_args0
;}
2074 { ac_configure_args1
=; unset ac_configure_args1
;}
2076 # When interrupted or exit'd, cleanup temporary files, and complete
2077 # config.log. We remove comments because anyway the quotes in there
2078 # would cause problems or look ugly.
2079 # WARNING: Use '\'' to represent an apostrophe within the trap.
2080 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2081 trap 'exit_status=$?
2082 # Save into config.log some information that might help in debugging.
2086 $as_echo "## ---------------- ##
2087 ## Cache variables. ##
2088 ## ---------------- ##"
2090 # The following way of writing the cache mishandles newlines in values,
2092 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2093 eval ac_val=\$$ac_var
2097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2101 _ | IFS | as_nl) ;; #(
2102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2103 *) { eval $ac_var=; unset $ac_var;} ;;
2108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2109 *${as_nl}ac_space=\ *)
2111 "s/'\''/'\''\\\\'\'''\''/g;
2112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2122 $as_echo "## ----------------- ##
2123 ## Output variables. ##
2124 ## ----------------- ##"
2126 for ac_var in $ac_subst_vars
2128 eval ac_val=\$$ac_var
2130 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2132 $as_echo "$ac_var='\''$ac_val'\''"
2136 if test -n "$ac_subst_files"; then
2137 $as_echo "## ------------------- ##
2138 ## File substitutions. ##
2139 ## ------------------- ##"
2141 for ac_var
in $ac_subst_files
2143 eval ac_val
=\$
$ac_var
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147 $as_echo "$ac_var='\''$ac_val'\''"
2152 if test -s confdefs.h; then
2153 $as_echo "## ----------- ##
2160 test "$ac_signal" != 0 &&
2161 $as_echo "$as_me: caught signal $ac_signal"
2162 $as_echo "$as_me: exit $exit_status"
2164 rm -f core *.core core.conftest.* &&
2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2168 for ac_signal
in 1 2 13 15; do
2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2174 rm -f -r conftest
* confdefs.h
2176 $as_echo "/* confdefs.h */" > confdefs.h
2178 # Predefined preprocessor variables.
2180 cat >>confdefs.h
<<_ACEOF
2181 #define PACKAGE_NAME "$PACKAGE_NAME"
2184 cat >>confdefs.h
<<_ACEOF
2185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2188 cat >>confdefs.h
<<_ACEOF
2189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2192 cat >>confdefs.h
<<_ACEOF
2193 #define PACKAGE_STRING "$PACKAGE_STRING"
2196 cat >>confdefs.h
<<_ACEOF
2197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2200 cat >>confdefs.h
<<_ACEOF
2201 #define PACKAGE_URL "$PACKAGE_URL"
2205 # Let the site file select an alternate cache file if it wants to.
2206 # Prefer an explicitly selected file to automatically selected ones.
2209 if test -n "$CONFIG_SITE"; then
2210 # We do not want a PATH search for config.site.
2211 case $CONFIG_SITE in #((
2212 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2213 */*) ac_site_file1
=$CONFIG_SITE;;
2214 *) ac_site_file1
=.
/$CONFIG_SITE;;
2216 elif test "x$prefix" != xNONE
; then
2217 ac_site_file1
=$prefix/share
/config.site
2218 ac_site_file2
=$prefix/etc
/config.site
2220 ac_site_file1
=$ac_default_prefix/share
/config.site
2221 ac_site_file2
=$ac_default_prefix/etc
/config.site
2223 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2225 test "x$ac_site_file" = xNONE
&& continue
2226 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2228 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2229 sed 's/^/| /' "$ac_site_file" >&5
2231 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2233 as_fn_error $?
"failed to load site script $ac_site_file
2234 See \`config.log' for more details" "$LINENO" 5; }
2238 if test -r "$cache_file"; then
2239 # Some versions of bash will fail to source /dev/null (special files
2240 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2241 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2243 $as_echo "$as_me: loading cache $cache_file" >&6;}
2245 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2246 *) .
"./$cache_file";;
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2251 $as_echo "$as_me: creating cache $cache_file" >&6;}
2255 # Check that the precious variables saved in the cache have kept the same
2257 ac_cache_corrupted
=false
2258 for ac_var
in $ac_precious_vars; do
2259 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2260 eval ac_new_set
=\
$ac_env_${ac_var}_set
2261 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2262 eval ac_new_val
=\
$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267 ac_cache_corrupted
=: ;;
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271 ac_cache_corrupted
=: ;;
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w
=`echo x $ac_old_val`
2277 ac_new_val_w
=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted
=:
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\
$ac_old_val
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2296 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 *) ac_arg
=$ac_var=$ac_new_val ;;
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2305 if $ac_cache_corrupted; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2312 ## -------------------- ##
2313 ## Main body of script. ##
2314 ## -------------------- ##
2317 ac_cpp
='$CPP $CPPFLAGS'
2318 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2330 # if PWD already has a value, it is probably wrong.
2331 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2333 # Export original configure arguments for use by sub-configures.
2334 # Quote arguments with shell meta charatcers.
2335 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2336 set -- "$progname" "$@"
2340 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2341 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2342 # if the argument is of the form -foo=baz, quote the baz part only
2343 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2346 # Add the quoted argument to the list.
2347 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2349 if test "$silent" = yes; then
2350 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2352 # Remove the initial space we just introduced and, as these will be
2353 # expanded by make, quote '$'.
2354 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2357 # Find the build, host, and target systems.
2359 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2360 if test -f "$ac_dir/install-sh"; then
2362 ac_install_sh
="$ac_aux_dir/install-sh -c"
2364 elif test -f "$ac_dir/install.sh"; then
2366 ac_install_sh
="$ac_aux_dir/install.sh -c"
2368 elif test -f "$ac_dir/shtool"; then
2370 ac_install_sh
="$ac_aux_dir/shtool install -c"
2374 if test -z "$ac_aux_dir"; then
2375 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2378 # These three variables are undocumented and unsupported,
2379 # and are intended to be withdrawn in a future Autoconf release.
2380 # They can cause serious problems if a builder's source tree is in a directory
2381 # whose full name contains unusual characters.
2382 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2383 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2384 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2387 # Make sure we can run config.sub.
2388 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2389 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2392 $as_echo_n "checking build system type... " >&6; }
2393 if ${ac_cv_build+:} false
; then :
2394 $as_echo_n "(cached) " >&6
2396 ac_build_alias
=$build_alias
2397 test "x$ac_build_alias" = x
&&
2398 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2399 test "x$ac_build_alias" = x
&&
2400 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2401 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2402 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2406 $as_echo "$ac_cv_build" >&6; }
2407 case $ac_cv_build in
2409 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2412 ac_save_IFS
=$IFS; IFS
='-'
2418 # Remember, the first character of IFS is used to create $*,
2419 # except with old shells:
2422 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2425 case ${build_alias} in
2426 "") build_noncanonical
=${build} ;;
2427 *) build_noncanonical
=${build_alias} ;;
2432 case ${host_alias} in
2433 "") host_noncanonical
=${build_noncanonical} ;;
2434 *) host_noncanonical
=${host_alias} ;;
2439 case ${target_alias} in
2440 "") target_noncanonical
=${host_noncanonical} ;;
2441 *) target_noncanonical
=${target_alias} ;;
2447 test "$host_noncanonical" = "$target_noncanonical" &&
2448 test "$program_prefix$program_suffix$program_transform_name" = \
2450 program_transform_name
=s
,y
,y
,
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2453 $as_echo_n "checking host system type... " >&6; }
2454 if ${ac_cv_host+:} false
; then :
2455 $as_echo_n "(cached) " >&6
2457 if test "x$host_alias" = x
; then
2458 ac_cv_host
=$ac_cv_build
2460 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2461 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2466 $as_echo "$ac_cv_host" >&6; }
2469 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2472 ac_save_IFS
=$IFS; IFS
='-'
2478 # Remember, the first character of IFS is used to create $*,
2479 # except with old shells:
2482 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2486 $as_echo_n "checking target system type... " >&6; }
2487 if ${ac_cv_target+:} false
; then :
2488 $as_echo_n "(cached) " >&6
2490 if test "x$target_alias" = x
; then
2491 ac_cv_target
=$ac_cv_host
2493 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2494 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2499 $as_echo "$ac_cv_target" >&6; }
2500 case $ac_cv_target in
2502 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2504 target
=$ac_cv_target
2505 ac_save_IFS
=$IFS; IFS
='-'
2511 # Remember, the first character of IFS is used to create $*,
2512 # except with old shells:
2515 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2518 # The aliases save the names the user supplied, while $host etc.
2519 # will get canonicalized.
2520 test -n "$target_alias" &&
2521 test "$program_prefix$program_suffix$program_transform_name" = \
2523 program_prefix
=${target_alias}-
2525 test "$program_prefix" != NONE
&&
2526 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2527 # Use a double $ so make ignores it.
2528 test "$program_suffix" != NONE
&&
2529 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2530 # Double any \ or $.
2531 # By default was `s,x,x', remove it if useless.
2532 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2533 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2537 # Get 'install' or 'install-sh' and its variants.
2538 # Find a good install program. We prefer a C program (faster),
2539 # so one script is as good as another. But avoid the broken or
2540 # incompatible versions:
2541 # SysV /etc/install, /usr/sbin/install
2542 # SunOS /usr/etc/install
2543 # IRIX /sbin/install
2545 # AmigaOS /C/install, which installs bootblocks on floppy discs
2546 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2547 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2548 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2549 # OS/2's system install, which has a completely different semantic
2550 # ./install, which can be erroneously created by make from ./install.sh.
2551 # Reject install programs that cannot install multiple files.
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2553 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2554 if test -z "$INSTALL"; then
2555 if ${ac_cv_path_install+:} false
; then :
2556 $as_echo_n "(cached) " >&6
2558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2562 test -z "$as_dir" && as_dir
=.
2563 # Account for people who put trailing slashes in PATH elements.
2564 case $as_dir/ in #((
2565 .
/ | .
// |
/[cC
]/* | \
2566 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2567 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2570 # OSF1 and SCO ODT 3.0 have their own names for install.
2571 # Don't use installbsd from OSF since it installs stuff as root
2573 for ac_prog
in ginstall scoinst
install; do
2574 for ac_exec_ext
in '' $ac_executable_extensions; do
2575 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2576 if test $ac_prog = install &&
2577 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2578 # AIX install. It has an incompatible calling convention.
2580 elif test $ac_prog = install &&
2581 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2582 # program-specific install script used by HP pwplus--don't use.
2585 rm -rf conftest.one conftest.two conftest.dir
2586 echo one
> conftest.one
2587 echo two
> conftest.two
2589 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2590 test -s conftest.one
&& test -s conftest.two
&&
2591 test -s conftest.dir
/conftest.one
&&
2592 test -s conftest.dir
/conftest.two
2594 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2607 rm -rf conftest.one conftest.two conftest.dir
2610 if test "${ac_cv_path_install+set}" = set; then
2611 INSTALL
=$ac_cv_path_install
2613 # As a last resort, use the slow shell script. Don't cache a
2614 # value for INSTALL within a source directory, because that will
2615 # break other packages using the cache if that directory is
2616 # removed, or if the value is a relative name.
2617 INSTALL
=$ac_install_sh
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2621 $as_echo "$INSTALL" >&6; }
2623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2624 # It thinks the first close brace ends the variable substitution.
2625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2629 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2632 $as_echo_n "checking whether ln works... " >&6; }
2633 if ${acx_cv_prog_LN+:} false
; then :
2634 $as_echo_n "(cached) " >&6
2636 rm -f conftestdata_t
2637 echo >conftestdata_f
2638 if ln conftestdata_f conftestdata_t
2>/dev
/null
2644 rm -f conftestdata_f conftestdata_t
2647 if test $acx_cv_prog_LN = no
; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2650 $as_echo "no, using $LN" >&6; }
2652 LN
="$acx_cv_prog_LN"
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2654 $as_echo "yes" >&6; }
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2658 $as_echo_n "checking whether ln -s works... " >&6; }
2660 if test "$LN_S" = "ln -s"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2662 $as_echo "yes" >&6; }
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2665 $as_echo "no, using $LN_S" >&6; }
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2669 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2670 if ${ac_cv_path_SED+:} false
; then :
2671 $as_echo_n "(cached) " >&6
2673 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2674 for ac_i
in 1 2 3 4 5 6 7; do
2675 ac_script
="$ac_script$as_nl$ac_script"
2677 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2678 { ac_script
=; unset ac_script
;}
2679 if test -z "$SED"; then
2680 ac_path_SED_found
=false
2681 # Loop through the user's path and test for each of PROGNAME-LIST
2682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir
=.
2687 for ac_prog
in sed gsed
; do
2688 for ac_exec_ext
in '' $ac_executable_extensions; do
2689 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2690 as_fn_executable_p
"$ac_path_SED" ||
continue
2691 # Check for GNU ac_path_SED and select it if it is found.
2692 # Check for GNU $ac_path_SED
2693 case `"$ac_path_SED" --version 2>&1` in
2695 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2698 $as_echo_n 0123456789 >"conftest.in"
2701 cat "conftest.in" "conftest.in" >"conftest.tmp"
2702 mv "conftest.tmp" "conftest.in"
2703 cp "conftest.in" "conftest.nl"
2704 $as_echo '' >> "conftest.nl"
2705 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2706 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2707 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2708 if test $ac_count -gt ${ac_path_SED_max-0}; then
2709 # Best one so far, save it but keep looking for a better one
2710 ac_cv_path_SED
="$ac_path_SED"
2711 ac_path_SED_max
=$ac_count
2713 # 10*(2^10) chars as input seems more than enough
2714 test $ac_count -gt 10 && break
2716 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2719 $ac_path_SED_found && break 3
2724 if test -z "$ac_cv_path_SED"; then
2725 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2733 $as_echo "$ac_cv_path_SED" >&6; }
2734 SED
="$ac_cv_path_SED"
2737 for ac_prog
in gawk mawk nawk
awk
2739 # Extract the first word of "$ac_prog", so it can be a program name with args.
2740 set dummy
$ac_prog; ac_word
=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if ${ac_cv_prog_AWK+:} false
; then :
2744 $as_echo_n "(cached) " >&6
2746 if test -n "$AWK"; then
2747 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2753 test -z "$as_dir" && as_dir
=.
2754 for ac_exec_ext
in '' $ac_executable_extensions; do
2755 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_prog_AWK
="$ac_prog"
2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 if test -n "$AWK"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2769 $as_echo "$AWK" >&6; }
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2776 test -n "$AWK" && break
2780 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2782 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2784 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2785 INSTALL
="${srcpwd}/install-sh -c"
2788 # Set srcdir to "." if that's what it is.
2789 # This is important for multilib support.
2791 if test "${pwd}" = "${srcpwd}" ; then
2799 ### To add a new directory to the tree, first choose whether it is a target
2800 ### or a host dependent tool. Then put it into the appropriate list
2801 ### (library or tools, host or target), doing a dependency sort.
2803 # Subdirs will be configured in the order listed in build_configdirs,
2804 # configdirs, or target_configdirs; see the serialization section below.
2806 # Dependency sorting is only needed when *configuration* must be done in
2807 # a particular order. In all cases a dependency should be specified in
2808 # the Makefile, whether or not it's implicitly specified here.
2810 # Double entries in build_configdirs, configdirs, or target_configdirs may
2811 # cause circular dependencies and break everything horribly.
2813 # these library is used by various programs built for the build
2816 build_libs
="build-libiberty build-libcpp"
2818 # these tools are built for the build environment
2819 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2821 # these libraries are used by various programs built for the host environment
2823 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf"
2825 # these tools are built for the host environment
2826 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2827 # know that we are building the simulator.
2828 # binutils, gas and ld appear in that order because it makes sense to run
2829 # "make check" in that particular order.
2830 # If --enable-gold is used, "gold" may replace "ld".
2831 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"
2833 # these libraries are built for the target environment, and are built after
2834 # the host libraries and the host tools (which may be a cross compiler)
2835 # Note that libiberty is not a target library.
2836 target_libraries
="target-libgcc \
2837 target-libbacktrace \
2841 target-liboffloadmic \
2844 target-libstdc++-v3 \
2845 target-libsanitizer \
2848 target-libquadmath \
2849 target-libgfortran \
2857 # these tools are built using the target libraries, and are intended to
2858 # run only in the target environment
2860 # note: any program that *uses* libraries that are in the "target_libraries"
2861 # list belongs in this list.
2863 target_tools
="target-rda"
2865 ################################################################################
2867 ## All tools belong in one of the four categories, and are assigned above
2868 ## We assign ${configdirs} this way to remove all embedded newlines. This
2869 ## is important because configure will choke if they ever get through.
2870 ## ${configdirs} is directories we build using the host tools.
2871 ## ${target_configdirs} is directories we build using the target tools.
2872 configdirs
=`echo ${host_libs} ${host_tools}`
2873 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2874 build_configdirs
=`echo ${build_libs} ${build_tools}`
2878 ################################################################################
2880 srcname
="gnu development package"
2882 # This gets set non-empty for some net releases of packages.
2885 # Define is_cross_compiler to save on calls to 'test'.
2887 if test x
"${host}" = x
"${target}" ; then
2888 is_cross_compiler
=no
2890 is_cross_compiler
=yes
2893 # Find the build and target subdir names.
2895 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2896 # have matching libraries, they should use host libraries: Makefile.tpl
2897 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2898 # However, they still use the build modules, because the corresponding
2899 # host modules (e.g. bison) are only built for the host when bootstrap
2901 # - build_subdir is where we find build modules, and never changes.
2902 # - build_libsubdir is where we find build libraries, and can be overridden.
2904 # Prefix 'build-' so this never conflicts with target_subdir.
2905 build_subdir
="build-${build_noncanonical}"
2907 # Check whether --with-build-libsubdir was given.
2908 if test "${with_build_libsubdir+set}" = set; then :
2909 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2911 build_libsubdir
="$build_subdir"
2914 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2915 if ( test $srcdir = .
&& test -d gcc
) \
2916 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2917 host_subdir
="host-${host_noncanonical}"
2922 target_subdir
=${target_noncanonical}
2924 # Be sure to cover against remnants of an in-tree build.
2925 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2926 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2927 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2930 # Skipdirs are removed silently.
2932 # Noconfigdirs are removed loudly.
2936 # Make sure we don't let GNU ld be added if we didn't want it.
2937 if test x
$with_gnu_ld = xno
; then
2939 noconfigdirs
="$noconfigdirs ld gold"
2943 # Make sure we don't let GNU as be added if we didn't want it.
2944 if test x
$with_gnu_as = xno
; then
2946 noconfigdirs
="$noconfigdirs gas"
2951 # Check whether --with-system-zlib was given.
2952 if test "${with_system_zlib+set}" = set; then :
2953 withval
=$with_system_zlib;
2956 # Make sure we don't let ZLIB be added if we didn't want it.
2957 if test x
$with_system_zlib = xyes
; then
2958 use_included_zlib
=no
2959 noconfigdirs
="$noconfigdirs zlib"
2963 # Check whether --with-zstd was given.
2964 if test "${with_zstd+set}" = set; then :
2969 # some tools are so dependent upon X11 that if we're not building with X,
2970 # it's not even worth trying to configure, much less build, that tool.
2973 yes |
"") ;; # the default value for this tree is that X11 is available
2975 skipdirs
="${skipdirs} tk itcl libgui"
2976 # We won't be able to build gdbtk without X.
2979 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2982 # Some are only suitable for cross toolchains.
2983 # Remove these if host=target.
2984 cross_only
="target-libgloss target-newlib target-opcodes"
2986 case $is_cross_compiler in
2987 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2990 # If both --with-headers and --with-libs are specified, default to
2992 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2993 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2994 if test x
"${with_newlib}" = x
; then
2999 # Recognize --with-newlib/--without-newlib.
3000 case ${with_newlib} in
3001 no
) skipdirs
="${skipdirs} target-newlib" ;;
3002 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3005 # Check whether --enable-as-accelerator-for was given.
3006 if test "${enable_as_accelerator_for+set}" = set; then :
3007 enableval
=$enable_as_accelerator_for;
3011 # Check whether --enable-offload-targets was given.
3012 if test "${enable_offload_targets+set}" = set; then :
3013 enableval
=$enable_offload_targets;
3014 if test x
"$enable_offload_targets" = x
; then
3015 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3019 enable_offload_targets
=
3023 # Check whether --enable-offload-defaulted was given.
3024 if test "${enable_offload_defaulted+set}" = set; then :
3025 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3027 enable_offload_defaulted
=
3031 # Handle --enable-gold, --enable-ld.
3032 # --disable-gold [--enable-ld]
3033 # Build only ld. Default option.
3034 # --enable-gold [--enable-ld]
3035 # Build both gold and ld. Install gold as "ld.gold", install ld
3036 # as "ld.bfd" and "ld".
3037 # --enable-gold=default [--enable-ld]
3038 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3039 # install ld as "ld.bfd".
3040 # --enable-gold[=default] --disable-ld
3041 # Build only gold, which is then installed as both "ld.gold" and "ld".
3042 # --enable-gold --enable-ld=default
3043 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3045 # In other words, ld is default
3046 # --enable-gold=default --enable-ld=default
3050 # Check whether --enable-gold was given.
3051 if test "${enable_gold+set}" = set; then :
3052 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3057 case "${ENABLE_GOLD}" in
3059 # Check for ELF target.
3062 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3063 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3064 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3065 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3067 *-*-linux*aout
* |
*-*-linux*oldld
*)
3075 if test "$is_elf" = "yes"; then
3076 # Check for target supported by gold.
3078 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3079 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-* | loongarch
*-*-*)
3080 configdirs
="$configdirs gold"
3081 if test x
${ENABLE_GOLD} = xdefault
; then
3092 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3096 # Check whether --enable-ld was given.
3097 if test "${enable_ld+set}" = set; then :
3098 enableval
=$enable_ld; ENABLE_LD
=$enableval
3104 case "${ENABLE_LD}" in
3106 if test x
${default_ld} != x
; then
3107 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3113 if test x
${ENABLE_GOLD} != xyes
; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3115 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3117 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3120 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3124 # Check whether --enable-gprofng was given.
3125 if test "${enable_gprofng+set}" = set; then :
3126 enableval
=$enable_gprofng; enable_gprofng
=$enableval
3131 if test "$enable_gprofng" = "yes"; then
3133 x86_64-
*-linux* | i?
86-*-linux* | aarch64-
*-linux*)
3134 configdirs
="$configdirs gprofng"
3141 # Decide the default method for compressing debug sections.
3142 # Provide a configure time option to override our default.
3143 # Check whether --enable-compressed_debug_sections was given.
3144 if test "${enable_compressed_debug_sections+set}" = set; then :
3145 enableval
=$enable_compressed_debug_sections;
3146 if test x
"$enable_compressed_debug_sections" = xyes
; then
3147 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3151 enable_compressed_debug_sections
=
3155 # Select default compression algorithm.
3156 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3157 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3158 enableval
=$enable_default_compressed_debug_sections_algorithm;
3160 default_compressed_debug_sections_algorithm
=
3164 # Configure extra directories which are host specific
3168 configdirs
="$configdirs libtermcap" ;;
3171 # A target can indicate whether a language isn't supported for some reason.
3172 # Only spaces may be used in this macro; not newlines or tabs.
3173 unsupported_languages
=
3175 # Remove more programs from consideration, based on the host or
3176 # target this usually means that a port of the program doesn't
3180 i
[3456789]86-*-msdosdjgpp*)
3181 noconfigdirs
="$noconfigdirs tcl tk itcl"
3185 # Default to --disable-year2038 until we can handle differences between
3186 # projects that use gnulib (which understands year 2038) and projects that
3187 # do not (like BFD).
3188 # Check whether --enable-year2038 was given.
3189 if test "${enable_year2038+set}" = set; then :
3190 enableval
=$enable_year2038; ENABLE_YEAR2038
=$enableval
3196 if test "${ENABLE_YEAR2038}" = "no" ; then
3200 # Check whether --enable-libquadmath was given.
3201 if test "${enable_libquadmath+set}" = set; then :
3202 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3204 ENABLE_LIBQUADMATH
=yes
3207 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3208 noconfigdirs
="$noconfigdirs target-libquadmath"
3212 # Check whether --enable-libquadmath-support was given.
3213 if test "${enable_libquadmath_support+set}" = set; then :
3214 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3216 ENABLE_LIBQUADMATH_SUPPORT
=yes
3219 enable_libquadmath_support
=
3220 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3221 enable_libquadmath_support
=no
3225 # Check whether --enable-libada was given.
3226 if test "${enable_libada+set}" = set; then :
3227 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3232 if test "${ENABLE_LIBADA}" != "yes" ; then
3233 noconfigdirs
="$noconfigdirs gnattools"
3236 # Check whether --enable-libssp was given.
3237 if test "${enable_libssp+set}" = set; then :
3238 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3244 # Check whether --enable-libstdcxx was given.
3245 if test "${enable_libstdcxx+set}" = set; then :
3246 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3248 ENABLE_LIBSTDCXX
=default
3251 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3252 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3255 # If this is accelerator compiler and its target is intelmic we enable
3256 # target liboffloadmic by default. If this is compiler with offloading
3257 # for intelmic we enable host liboffloadmic by default. Otherwise
3258 # liboffloadmic is disabled by default.
3259 # Check whether --enable-liboffloadmic was given.
3260 if test "${enable_liboffloadmic+set}" = set; then :
3261 enableval
=$enable_liboffloadmic; case "$enableval" in
3263 enable_liboffloadmic
=$enableval ;;
3265 as_fn_error $?
"--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3268 if test x
"$enable_as_accelerator_for" != x
; then
3270 *-intelmic-* |
*-intelmicemul-*)
3271 enable_liboffloadmic
=target
3272 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=target"
3275 enable_liboffloadmic
=no
3279 case "${enable_offload_targets}" in
3280 *-intelmic-* |
*-intelmicemul-*)
3281 enable_liboffloadmic
=host
3282 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=host"
3285 enable_liboffloadmic
=no
3293 # Enable libgomp by default on hosted POSIX systems, and a few others.
3294 if test x
$enable_libgomp = x
; then
3296 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3298 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3300 *-*-solaris2* |
*-*-hpux11*)
3302 *-*-darwin* |
*-*-aix*)
3304 nvptx
*-*-* | amdgcn
*-*-*)
3307 noconfigdirs
="$noconfigdirs target-libgomp"
3312 # Disable libatomic on unsupported systems.
3313 if test -d ${srcdir}/libatomic
; then
3314 if test x
$enable_libatomic = x
; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3316 $as_echo_n "checking for libatomic support... " >&6; }
3317 if (srcdir
=${srcdir}/libatomic
; \
3318 .
${srcdir}/configure.tgt
; \
3319 test -n "$UNSUPPORTED")
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3323 noconfigdirs
="$noconfigdirs target-libatomic"
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3326 $as_echo "yes" >&6; }
3331 # Disable liboffloadmic on unsupported systems.
3332 if test -d ${srcdir}/liboffloadmic
; then
3333 if test x
$enable_liboffloadmic != xno
; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3335 $as_echo_n "checking for liboffloadmic support... " >&6; }
3336 if (srcdir
=${srcdir}/liboffloadmic
; \
3337 .
${srcdir}/configure.tgt
; \
3338 test -n "$UNSUPPORTED")
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 noconfigdirs
="$noconfigdirs target-liboffloadmic"
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3345 $as_echo "yes" >&6; }
3350 # Disable libitm on unsupported systems.
3351 if test -d ${srcdir}/libitm
; then
3352 if test x
$enable_libitm = x
; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3354 $as_echo_n "checking for libitm support... " >&6; }
3355 if (srcdir
=${srcdir}/libitm
; \
3356 .
${srcdir}/configure.tgt
; \
3357 test -n "$UNSUPPORTED")
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3361 noconfigdirs
="$noconfigdirs target-libitm"
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3364 $as_echo "yes" >&6; }
3369 # Disable libsanitizer on unsupported systems.
3370 if test -d ${srcdir}/libsanitizer
; then
3371 if test x
$enable_libsanitizer = x
; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3373 $as_echo_n "checking for libsanitizer support... " >&6; }
3374 if (srcdir
=${srcdir}/libsanitizer
; \
3375 .
${srcdir}/configure.tgt
; \
3376 test -n "$UNSUPPORTED")
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3380 noconfigdirs
="$noconfigdirs target-libsanitizer"
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383 $as_echo "yes" >&6; }
3388 # Disable libvtv on unsupported systems.
3389 if test -d ${srcdir}/libvtv
; then
3390 if test x
$enable_libvtv = x
; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3392 $as_echo_n "checking for libvtv support... " >&6; }
3393 if (srcdir
=${srcdir}/libvtv
; \
3394 .
${srcdir}/configure.tgt
; \
3395 test "$VTV_SUPPORTED" != "yes")
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 noconfigdirs
="$noconfigdirs target-libvtv"
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3402 $as_echo "yes" >&6; }
3407 # Disable libquadmath for some systems.
3410 noconfigdirs
="$noconfigdirs target-libquadmath"
3412 # libquadmath is unused on AIX and libquadmath build process use of
3413 # LD_LIBRARY_PATH can break AIX bootstrap.
3414 powerpc-
*-aix* | rs6000-
*-aix*)
3415 noconfigdirs
="$noconfigdirs target-libquadmath"
3419 # Disable libssp for some systems.
3422 # No hosted I/O support.
3423 noconfigdirs
="$noconfigdirs target-libssp"
3426 noconfigdirs
="$noconfigdirs target-libssp"
3428 powerpc-
*-aix* | rs6000-
*-aix*)
3429 noconfigdirs
="$noconfigdirs target-libssp"
3432 # No hosted I/O support.
3433 noconfigdirs
="$noconfigdirs target-libssp"
3436 # libssp uses a misaligned load to trigger a fault, but the RL78
3437 # doesn't fault for those - instead, it gives a build-time error
3438 # for explicit misaligned loads.
3439 noconfigdirs
="$noconfigdirs target-libssp"
3442 # No hosted I/O support.
3443 noconfigdirs
="$noconfigdirs target-libssp"
3447 # Disable libstdc++-v3 for some systems.
3448 # Allow user to override this if they pass --enable-libstdcxx
3449 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3452 # VxWorks uses the Dinkumware C++ library.
3453 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3456 # Not ported/fails to build when using newlib.
3457 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3460 # the C++ libraries don't build on top of CE's C libraries
3461 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3464 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3467 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3470 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3475 # Disable C++ on systems where it is known to not work.
3476 # For testing, you can override this with --enable-languages=c++.
3477 case ,${enable_languages}, in
3483 unsupported_languages
="$unsupported_languages c++"
3489 # Disable Objc on systems where it is known to not work.
3490 # For testing, you can override this with --enable-languages=objc.
3491 case ,${enable_languages}, in
3497 unsupported_languages
="$unsupported_languages objc"
3503 # Disable D on systems where it is known to not work.
3504 # For testing, you can override this with --enable-languages=d.
3505 case ,${enable_languages}, in
3511 unsupported_languages
="$unsupported_languages d"
3517 # Disable libphobos on unsupported systems.
3518 # For testing, you can override this with --enable-libphobos.
3519 if test -d ${srcdir}/libphobos
; then
3520 if test x
$enable_libphobos = x
; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3522 $as_echo_n "checking for libphobos support... " >&6; }
3523 if (srcdir
=${srcdir}/libphobos
; \
3524 .
${srcdir}/configure.tgt
; \
3525 test "$LIBPHOBOS_SUPPORTED" != "yes")
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 noconfigdirs
="$noconfigdirs target-libphobos"
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3532 $as_echo "yes" >&6; }
3537 # Disable Fortran for some systems.
3540 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3541 unsupported_languages
="$unsupported_languages fortran"
3544 unsupported_languages
="$unsupported_languages fortran"
3548 # Disable libffi for some systems.
3552 i
[3456789]86-*-darwin*)
3554 x86_64-
*-darwin[912]*)
3557 noconfigdirs
="$noconfigdirs target-libffi"
3560 noconfigdirs
="$noconfigdirs target-libffi"
3563 noconfigdirs
="$noconfigdirs target-libffi"
3566 noconfigdirs
="$noconfigdirs target-libffi"
3569 noconfigdirs
="$noconfigdirs target-libffi"
3572 noconfigdirs
="$noconfigdirs target-libffi"
3575 noconfigdirs
="$noconfigdirs target-libffi"
3577 aarch64
*-*-freebsd*)
3578 noconfigdirs
="$noconfigdirs target-libffi"
3581 noconfigdirs
="$noconfigdirs target-libffi"
3584 noconfigdirs
="$noconfigdirs target-libffi"
3587 noconfigdirs
="$noconfigdirs target-libffi"
3590 noconfigdirs
="$noconfigdirs target-libffi"
3593 noconfigdirs
="$noconfigdirs target-libffi"
3595 cris-
*-* | crisv32-
*-*)
3599 *) # See PR46792 regarding target-libffi.
3600 noconfigdirs
="$noconfigdirs target-libffi";;
3604 noconfigdirs
="$noconfigdirs target-libffi"
3609 noconfigdirs
="$noconfigdirs target-libffi"
3612 noconfigdirs
="$noconfigdirs target-libffi"
3614 i
[3456789]86-w64-mingw*)
3615 noconfigdirs
="$noconfigdirs target-libffi"
3617 i
[3456789]86-*-mingw*)
3618 noconfigdirs
="$noconfigdirs target-libffi"
3621 noconfigdirs
="$noconfigdirs target-libffi"
3624 noconfigdirs
="$noconfigdirs target-libffi"
3631 noconfigdirs
="$noconfigdirs target-libffi"
3634 noconfigdirs
="$noconfigdirs target-libffi"
3638 # Disable the go frontend on systems where it is known to not work. Please keep
3639 # this in sync with contrib/config-list.mk.
3641 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3642 unsupported_languages
="$unsupported_languages go"
3646 # Only allow gdbserver on some systems.
3647 if test -d ${srcdir}/gdbserver
; then
3648 if test x
$enable_gdbserver = x
; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3650 $as_echo_n "checking for gdbserver support... " >&6; }
3651 if (srcdir
=${srcdir}/gdbserver
; \
3652 .
${srcdir}/configure.srv
; \
3653 test -n "$UNSUPPORTED")
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3657 noconfigdirs
="$noconfigdirs gdbserver"
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3660 $as_echo "yes" >&6; }
3665 # Disable libgo for some systems where it is known to not work.
3666 # For testing, you can easily override this with --enable-libgo.
3667 if test x
$enable_libgo = x
; then
3671 noconfigdirs
="$noconfigdirs target-libgo"
3673 *-*-cygwin* |
*-*-mingw*)
3674 noconfigdirs
="$noconfigdirs target-libgo"
3677 noconfigdirs
="$noconfigdirs target-libgo"
3682 # Default libgloss CPU subdirectory.
3683 libgloss_dir
="$target_cpu"
3686 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3690 libgloss_dir
=aarch64
3695 cris-
*-* | crisv32-
*-*)
3705 libgloss_dir
=loongarch
3707 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3708 libgloss_dir
=m68hc11
3710 m68
*-*-* | fido-
*-*)
3727 # Disable newlib and libgloss for various target OSes.
3730 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3732 i
[3456789]86-*-linux*)
3733 # This section makes it possible to build newlib natively on linux.
3734 # If we are using a cross compiler then don't configure newlib.
3735 if test x
${is_cross_compiler} != xno
; then
3736 noconfigdirs
="$noconfigdirs target-newlib"
3738 noconfigdirs
="$noconfigdirs target-libgloss"
3739 # If we are not using a cross compiler, do configure newlib.
3740 # Note however, that newlib will only be configured in this situation
3741 # if the --with-newlib option has been given, because otherwise
3742 # 'target-newlib' will appear in skipdirs.
3744 i
[3456789]86-*-rdos*)
3745 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3747 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3748 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3751 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3754 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3757 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3760 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3763 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3766 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3769 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3771 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3772 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3775 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3778 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3781 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3784 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3787 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3790 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3793 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3801 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3802 noconfigdirs
="$noconfigdirs sim target-rda"
3807 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3808 noconfigdirs
="$noconfigdirs sim target-rda"
3811 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3812 noconfigdirs
="$noconfigdirs sim target-rda"
3814 i
[3456789]86-*-darwin*)
3815 noconfigdirs
="$noconfigdirs ld gprof"
3816 noconfigdirs
="$noconfigdirs sim target-rda"
3818 x86_64-
*-darwin[912]*)
3819 noconfigdirs
="$noconfigdirs ld gas gprof"
3820 noconfigdirs
="$noconfigdirs sim target-rda"
3823 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3824 noconfigdirs
="$noconfigdirs sim target-rda"
3829 if test "x$with_gmp" = x \
3830 && ! test -d ${srcdir}/gmp \
3831 && test -f /usr
/local
/include
/gmp.h
; then
3836 # Remove unsupported stuff on all kaOS configurations.
3837 noconfigdirs
="$noconfigdirs target-libgloss"
3844 noconfigdirs
="$noconfigdirs target-libgloss"
3847 noconfigdirs
="$noconfigdirs target-libgloss"
3849 # The tpf target doesn't support gdb yet.
3851 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3854 noconfigdirs
="$noconfigdirs target-rda"
3859 # ld works, but does not support shared libraries.
3860 # gas doesn't generate exception information.
3861 noconfigdirs
="$noconfigdirs gas ld"
3864 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3867 # newlib is not 64 bit ready
3868 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3871 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3873 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3874 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3877 noconfigdirs
="$noconfigdirs sim"
3880 noconfigdirs
="$noconfigdirs target-libgloss"
3883 noconfigdirs
="$noconfigdirs ld target-libgloss"
3886 if test x
${with_avrlibc} != xno
; then
3887 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3890 c4x-
*-* | tic4x-
*-*)
3891 noconfigdirs
="$noconfigdirs target-libgloss"
3894 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3897 noconfigdirs
="$noconfigdirs target-libgloss"
3900 noconfigdirs
="$noconfigdirs gdb"
3903 noconfigdirs
="$noconfigdirs gdb"
3906 noconfigdirs
="$noconfigdirs target-rda gprof"
3909 noconfigdirs
="$noconfigdirs"
3912 noconfigdirs
="$noconfigdirs target-libgloss"
3915 noconfigdirs
="$noconfigdirs target-libgloss"
3917 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3920 noconfigdirs
="$noconfigdirs gdb"
3923 noconfigdirs
="$noconfigdirs gdb ld"
3931 hppa
*-*-openbsd* | \
3937 noconfigdirs
="$noconfigdirs ld"
3940 noconfigdirs
="$noconfigdirs gdb"
3943 # No gdb support yet.
3944 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3947 # No ld support yet.
3948 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3951 # No ld support yet.
3952 noconfigdirs
="$noconfigdirs libgui itcl ld"
3954 i
[3456789]86-w64-mingw*)
3956 i
[3456789]86-*-mingw*)
3957 target_configdirs
="$target_configdirs target-winsup"
3960 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3961 noconfigdirs
="$noconfigdirs target-libgloss"
3962 # always build newlib if winsup directory is present.
3963 if test -d "$srcdir/winsup/cygwin"; then
3964 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3965 elif test -d "$srcdir/newlib"; then
3966 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3970 noconfigdirs
="$noconfigdirs target-libgloss"
3972 i
[3456789]86-*-sco3.2v5
*)
3973 # The linker does not yet know about weak symbols in COFF,
3974 # and is not configured to handle mixed ELF and COFF.
3975 noconfigdirs
="$noconfigdirs ld target-libgloss"
3977 i
[3456789]86-*-sco*)
3978 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3980 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3981 noconfigdirs
="$noconfigdirs target-libgloss"
3983 i
[3456789]86-*-sysv4*)
3984 noconfigdirs
="$noconfigdirs target-libgloss"
3986 i
[3456789]86-*-beos*)
3987 noconfigdirs
="$noconfigdirs gdb"
3989 i
[3456789]86-*-rdos*)
3990 noconfigdirs
="$noconfigdirs gdb"
3993 noconfigdirs
="$noconfigdirs gdb"
3996 noconfigdirs
="$noconfigdirs sim"
3999 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
4000 noconfigdirs
="$noconfigdirs $target_libraries"
4003 noconfigdirs
="$noconfigdirs gdb gprof"
4006 # copied from rs6000-*-* entry
4007 noconfigdirs
="$noconfigdirs gprof"
4009 powerpc
*-*-winnt* | powerpc
*-*-pe*)
4010 target_configdirs
="$target_configdirs target-winsup"
4011 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
4012 # always build newlib.
4013 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4015 # This is temporary until we can link against shared libraries
4016 powerpcle-
*-solaris*)
4017 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
4020 noconfigdirs
="$noconfigdirs gdb"
4023 noconfigdirs
="$noconfigdirs gprof"
4026 noconfigdirs
="$noconfigdirs gprof"
4029 noconfigdirs
="$noconfigdirs gprof"
4032 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
4035 noconfigdirs
="$noconfigdirs gprof"
4037 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
4038 if test x
$with_newlib = xyes
; then
4039 noconfigdirs
="$noconfigdirs gprof"
4043 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4046 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4049 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
4053 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
4054 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
4055 noconfigdirs
="$noconfigdirs ld gas gprof"
4058 noconfigdirs
="$noconfigdirs gprof"
4061 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4068 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4072 if test x
${is_cross_compiler} = xno
; then
4077 noconfigdirs
="$noconfigdirs sim"
4079 tilepro
*-*-* | tilegx
*-*-*)
4080 noconfigdirs
="$noconfigdirs sim"
4083 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4086 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4089 noconfigdirs
="$noconfigdirs ld"
4091 loongarch
*-*-linux*)
4094 noconfigdirs
="$noconfigdirs gprof"
4098 # If we aren't building newlib, then don't build libgloss, since libgloss
4099 # depends upon some newlib header files.
4100 case "${noconfigdirs}" in
4101 *target-libgloss
*) ;;
4102 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4105 # Work in distributions that contain no compiler tools, like Autoconf.
4106 host_makefile_frag
=/dev
/null
4107 if test -d ${srcdir}/config
; then
4109 i
[3456789]86-*-msdosdjgpp*)
4110 host_makefile_frag
="config/mh-djgpp"
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4115 $as_echo_n "checking to see if cat works as expected... " >&6; }
4116 echo a
>cygwin-cat-check
4117 if test `cat cygwin-cat-check` = a
; then
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4120 $as_echo "yes" >&6; }
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4125 as_fn_error $?
"The cat command does not ignore carriage return characters.
4126 Please either mount the build directory in binary mode or run the following
4127 commands before running any configure script:
4133 host_makefile_frag
="config/mh-cygwin"
4136 host_makefile_frag
="config/mh-mingw"
4139 host_makefile_frag
="config/mh-alpha-linux"
4142 host_makefile_frag
="config/mh-pa-hpux10"
4145 host_makefile_frag
="config/mh-pa"
4148 host_makefile_frag
="config/mh-pa"
4150 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4151 host_makefile_frag
="config/mh-darwin"
4154 host_makefile_frag
="config/mh-ppc-aix"
4157 host_makefile_frag
="config/mh-ppc-aix"
4162 if test "${build}" != "${host}" ; then
4163 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4164 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4165 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4166 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4167 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4168 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4169 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4170 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4171 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4172 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4173 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4174 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4175 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4176 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4177 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4179 AR_FOR_BUILD
="\$(AR)"
4180 AS_FOR_BUILD
="\$(AS)"
4181 CC_FOR_BUILD
="\$(CC)"
4182 CXX_FOR_BUILD
="\$(CXX)"
4183 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4184 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4185 GOC_FOR_BUILD
="\$(GOC)"
4186 GDC_FOR_BUILD
="\$(GDC)"
4187 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4188 LD_FOR_BUILD
="\$(LD)"
4189 NM_FOR_BUILD
="\$(NM)"
4190 RANLIB_FOR_BUILD
="\$(RANLIB)"
4191 WINDRES_FOR_BUILD
="\$(WINDRES)"
4192 WINDMC_FOR_BUILD
="\$(WINDMC)"
4196 ac_cpp
='$CPP $CPPFLAGS'
4197 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4200 if test -n "$ac_tool_prefix"; then
4201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4202 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if ${ac_cv_prog_CC+:} false
; then :
4206 $as_echo_n "(cached) " >&6
4208 if test -n "$CC"; then
4209 ac_cv_prog_CC
="$CC" # Let the user override the test.
4211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4215 test -z "$as_dir" && as_dir
=.
4216 for ac_exec_ext
in '' $ac_executable_extensions; do
4217 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4218 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 if test -n "$CC"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4231 $as_echo "$CC" >&6; }
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 $as_echo "no" >&6; }
4239 if test -z "$ac_cv_prog_CC"; then
4241 # Extract the first word of "gcc", so it can be a program name with args.
4242 set dummy gcc
; ac_word
=$2
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244 $as_echo_n "checking for $ac_word... " >&6; }
4245 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4246 $as_echo_n "(cached) " >&6
4248 if test -n "$ac_ct_CC"; then
4249 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4255 test -z "$as_dir" && as_dir
=.
4256 for ac_exec_ext
in '' $ac_executable_extensions; do
4257 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4258 ac_cv_prog_ac_ct_CC
="gcc"
4259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4269 if test -n "$ac_ct_CC"; then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4271 $as_echo "$ac_ct_CC" >&6; }
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4277 if test "x$ac_ct_CC" = x
; then
4280 case $cross_compiling:$ac_tool_warned in
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4284 ac_tool_warned
=yes ;;
4292 if test -z "$CC"; then
4293 if test -n "$ac_tool_prefix"; then
4294 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4295 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if ${ac_cv_prog_CC+:} false
; then :
4299 $as_echo_n "(cached) " >&6
4301 if test -n "$CC"; then
4302 ac_cv_prog_CC
="$CC" # Let the user override the test.
4304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir
=.
4309 for ac_exec_ext
in '' $ac_executable_extensions; do
4310 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 if test -n "$CC"; then
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4324 $as_echo "$CC" >&6; }
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4333 if test -z "$CC"; then
4334 # Extract the first word of "cc", so it can be a program name with args.
4335 set dummy cc
; ac_word
=$2
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4337 $as_echo_n "checking for $ac_word... " >&6; }
4338 if ${ac_cv_prog_CC+:} false
; then :
4339 $as_echo_n "(cached) " >&6
4341 if test -n "$CC"; then
4342 ac_cv_prog_CC
="$CC" # Let the user override the test.
4345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4349 test -z "$as_dir" && as_dir
=.
4350 for ac_exec_ext
in '' $ac_executable_extensions; do
4351 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4352 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4353 ac_prog_rejected
=yes
4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 if test $ac_prog_rejected = yes; then
4365 # We found a bogon in the path, so make sure we never use it.
4366 set dummy
$ac_cv_prog_CC
4368 if test $# != 0; then
4369 # We chose a different compiler from the bogus one.
4370 # However, it has the same basename, so the bogon will be chosen
4371 # first if we set CC to just the basename; use the full file name.
4373 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4379 if test -n "$CC"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4381 $as_echo "$CC" >&6; }
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4389 if test -z "$CC"; then
4390 if test -n "$ac_tool_prefix"; then
4391 for ac_prog
in cl.exe
4393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if ${ac_cv_prog_CC+:} false
; then :
4398 $as_echo_n "(cached) " >&6
4400 if test -n "$CC"; then
4401 ac_cv_prog_CC
="$CC" # Let the user override the test.
4403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir
=.
4408 for ac_exec_ext
in '' $ac_executable_extensions; do
4409 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 if test -n "$CC"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4423 $as_echo "$CC" >&6; }
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4430 test -n "$CC" && break
4433 if test -z "$CC"; then
4435 for ac_prog
in cl.exe
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy
$ac_prog; ac_word
=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4442 $as_echo_n "(cached) " >&6
4444 if test -n "$ac_ct_CC"; then
4445 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir
=.
4452 for ac_exec_ext
in '' $ac_executable_extensions; do
4453 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_prog_ac_ct_CC
="$ac_prog"
4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4465 if test -n "$ac_ct_CC"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4467 $as_echo "$ac_ct_CC" >&6; }
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4474 test -n "$ac_ct_CC" && break
4477 if test "x$ac_ct_CC" = x
; then
4480 case $cross_compiling:$ac_tool_warned in
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484 ac_tool_warned
=yes ;;
4493 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4495 as_fn_error $?
"no acceptable C compiler found in \$PATH
4496 See \`config.log' for more details" "$LINENO" 5; }
4498 # Provide some information about the compiler.
4499 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4502 for ac_option
in --version -v -V -qversion; do
4503 { { ac_try
="$ac_compiler $ac_option >&5"
4505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509 $as_echo "$ac_try_echo"; } >&5
4510 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4512 if test -s conftest.err; then
4514 ... rest of stderr output deleted ...
4515 10q' conftest.err >conftest.er1
4516 cat conftest.er1 >&5
4518 rm -f conftest.er1 conftest.err
4519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4520 test $ac_status = 0; }
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4534 ac_clean_files_save=$ac_clean_files
4535 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4536 # Try to create an executable without -o first, disregard a.out.
4537 # It will help us diagnose broken compilers, and finding out an intuition
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4540 $as_echo_n "checking whether the C compiler works... " >&6; }
4541 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4543 # The possible output files:
4544 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4547 for ac_file in $ac_files
4550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4551 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4556 if { { ac_try="$ac_link_default"
4558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4559 *) ac_try_echo
=$ac_try;;
4561 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4562 $as_echo "$ac_try_echo"; } >&5
4563 (eval "$ac_link_default") 2>&5
4565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4566 test $ac_status = 0; }; then :
4567 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4568 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4569 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4570 # so that the user can short-circuit this test for compilers unknown to
4572 for ac_file
in $ac_files ''
4574 test -f "$ac_file" ||
continue
4576 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4579 # We found the default executable, but exeext='' is most
4583 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4585 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4587 # We set ac_cv_exeext here because the later test for it is not
4588 # safe: cross compilers may not add the suffix if given an `-o'
4589 # argument, so we may need to know it at that point already.
4590 # Even if this section looks crufty: it has the advantage of
4597 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4602 if test -z "$ac_file"; then :
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4605 $as_echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.
$ac_ext >&5
4608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4610 as_fn_error
77 "C compiler cannot create executables
4611 See \`config.log' for more details" "$LINENO" 5; }
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4614 $as_echo "yes" >&6; }
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4617 $as_echo_n "checking for C compiler default output file name... " >&6; }
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4619 $as_echo "$ac_file" >&6; }
4620 ac_exeext
=$ac_cv_exeext
4622 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4623 ac_clean_files
=$ac_clean_files_save
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4625 $as_echo_n "checking for suffix of executables... " >&6; }
4626 if { { ac_try
="$ac_link"
4628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4632 $as_echo "$ac_try_echo"; } >&5
4633 (eval "$ac_link") 2>&5
4635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4636 test $ac_status = 0; }; then :
4637 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4638 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4639 # work properly (i.e., refer to `conftest.exe'), while it won't with
4641 for ac_file
in conftest.exe conftest conftest.
*; do
4642 test -f "$ac_file" ||
continue
4644 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4645 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4653 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4654 See \`config.log' for more details" "$LINENO" 5; }
4656 rm -f conftest conftest
$ac_cv_exeext
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4658 $as_echo "$ac_cv_exeext" >&6; }
4660 rm -f conftest.
$ac_ext
4661 EXEEXT
=$ac_cv_exeext
4663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4669 FILE *f = fopen ("conftest.out", "w");
4670 return ferror (f) || fclose (f) != 0;
4676 ac_clean_files
="$ac_clean_files conftest.out"
4677 # Check that the compiler produces executables we can run. If not, either
4678 # the compiler is broken, or we cross compile.
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4680 $as_echo_n "checking whether we are cross compiling... " >&6; }
4681 if test "$cross_compiling" != yes; then
4682 { { ac_try
="$ac_link"
4684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4688 $as_echo "$ac_try_echo"; } >&5
4689 (eval "$ac_link") 2>&5
4691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4692 test $ac_status = 0; }
4693 if { ac_try='./conftest$ac_cv_exeext'
4694 { { case "(($ac_try" in
4695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4696 *) ac_try_echo
=$ac_try;;
4698 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4699 $as_echo "$ac_try_echo"; } >&5
4700 (eval "$ac_try") 2>&5
4702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4703 test $ac_status = 0; }; }; then
4706 if test "$cross_compiling" = maybe
; then
4709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4711 as_fn_error $?
"cannot run C compiled programs.
4712 If you meant to cross compile, use \`--host'.
4713 See \`config.log' for more details" "$LINENO" 5; }
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4718 $as_echo "$cross_compiling" >&6; }
4720 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4721 ac_clean_files
=$ac_clean_files_save
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4723 $as_echo_n "checking for suffix of object files... " >&6; }
4724 if ${ac_cv_objext+:} false
; then :
4725 $as_echo_n "(cached) " >&6
4727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4738 rm -f conftest.o conftest.obj
4739 if { { ac_try
="$ac_compile"
4741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4745 $as_echo "$ac_try_echo"; } >&5
4746 (eval "$ac_compile") 2>&5
4748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4749 test $ac_status = 0; }; then :
4750 for ac_file in conftest.o conftest.obj conftest.*; do
4751 test -f "$ac_file" || continue;
4753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4759 $as_echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4764 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4765 See \
`config.log' for more details" "$LINENO" 5; }
4767 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4770 $as_echo "$ac_cv_objext" >&6; }
4771 OBJEXT=$ac_cv_objext
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4774 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4775 if ${ac_cv_c_compiler_gnu+:} false; then :
4776 $as_echo_n "(cached) " >&6
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4792 if ac_fn_c_try_compile "$LINENO"; then :
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4802 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4803 if test $ac_compiler_gnu = yes; then
4808 ac_test_CFLAGS=${CFLAGS+set}
4809 ac_save_CFLAGS=$CFLAGS
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4811 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4812 if ${ac_cv_prog_cc_g+:} false; then :
4813 $as_echo_n "(cached) " >&6
4815 ac_save_c_werror_flag=$ac_c_werror_flag
4816 ac_c_werror_flag=yes
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4830 if ac_fn_c_try_compile "$LINENO"; then :
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4845 if ac_fn_c_try_compile "$LINENO"; then :
4848 ac_c_werror_flag=$ac_save_c_werror_flag
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4861 if ac_fn_c_try_compile "$LINENO"; then :
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 ac_c_werror_flag=$ac_save_c_werror_flag
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4872 $as_echo "$ac_cv_prog_cc_g" >&6; }
4873 if test "$ac_test_CFLAGS" = set; then
4874 CFLAGS=$ac_save_CFLAGS
4875 elif test $ac_cv_prog_cc_g = yes; then
4876 if test "$GCC" = yes; then
4882 if test "$GCC" = yes; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4889 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4890 if ${ac_cv_prog_cc_c89+:} false; then :
4891 $as_echo_n "(cached) " >&6
4893 ac_cv_prog_cc_c89=no
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4900 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4901 struct buf { int x; };
4902 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4903 static char *e (p, i)
4909 static char *f (char * (*g) (char **, int), char **p, ...)
4914 s = g (p, va_arg (v,int));
4919 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4920 function prototypes and stuff, but not '\xHH' hex character constants.
4921 These don't provoke an error unfortunately, instead are silently treated
4922 as 'x'. The following induces an error, until -std is added to get
4923 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4924 array size at least. It's necessary to write '\x00'==0 to get something
4925 that's true only with -std. */
4926 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4928 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4929 inside strings and character constants. */
4931 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4933 int test (int i, double x);
4934 struct s1 {int (*f) (int a);};
4935 struct s2 {int (*f) (double a);};
4936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4942 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4947 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4948 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4950 CC="$ac_save_CC $ac_arg"
4951 if ac_fn_c_try_compile "$LINENO"; then :
4952 ac_cv_prog_cc_c89=$ac_arg
4954 rm -f core conftest.err conftest.$ac_objext
4955 test "x$ac_cv_prog_cc_c89" != "xno" && break
4957 rm -f conftest.$ac_ext
4962 case "x$ac_cv_prog_cc_c89" in
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4965 $as_echo "none needed" >&6; } ;;
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4968 $as_echo "unsupported" >&6; } ;;
4970 CC="$CC $ac_cv_prog_cc_c89"
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4972 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4974 if test "x$ac_cv_prog_cc_c89" != xno; then :
4979 ac_cpp='$CPP $CPPFLAGS'
4980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4985 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4986 if ${ac_cv_prog_cc_c99+:} false; then :
4987 $as_echo_n "(cached) " >&6
4989 ac_cv_prog_cc_c99=no
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4994 #include <stdbool.h>
4999 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5000 #define debug(...) fprintf (stderr, __VA_ARGS__)
5001 #define showlist(...) puts (#__VA_ARGS__)
5002 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5004 test_varargs_macros (void)
5009 debug ("X = %d\n", x);
5010 showlist (The first, second, and third items.);
5011 report (x>y, "x is %d but y is %d", x, y);
5014 // Check long long types.
5015 #define BIG64 18446744073709551615ull
5016 #define BIG32 4294967295ul
5017 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5019 your preprocessor is broken;
5023 your preprocessor is broken;
5025 static long long int bignum = -9223372036854775807LL;
5026 static unsigned long long int ubignum = BIG64;
5028 struct incomplete_array
5036 const wchar_t *name;
5040 typedef const char *ccp;
5043 test_restrict (ccp restrict text)
5045 // See if C++-style comments work.
5046 // Iterate through items via the restricted pointer.
5047 // Also check for declarations in for loops.
5048 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5053 // Check varargs and va_copy.
5055 test_varargs (const char *format, ...)
5058 va_start (args, format);
5060 va_copy (args_copy, args);
5071 str = va_arg (args_copy, const char *);
5074 number = va_arg (args_copy, int);
5077 fnumber = va_arg (args_copy, double);
5092 _Bool success = false;
5095 if (test_restrict ("String literal") == 0)
5097 char *restrict newvar = "Another string";
5100 test_varargs ("s, d' f .", "string", 65, 34.234);
5101 test_varargs_macros ();
5103 // Check flexible array members.
5104 struct incomplete_array *ia =
5105 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5107 for (int i = 0; i < ia->datasize; ++i)
5108 ia->data[i] = i * 1.234;
5110 // Check named initializers.
5111 struct named_init ni = {
5113 .name = L"Test wide string",
5114 .average = 543.34343,
5119 int dynamic_array[ni.number];
5120 dynamic_array[ni.number - 1] = 543;
5122 // work around unused variable warnings
5123 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5124 || dynamic_array[ni.number - 1] != 543);
5130 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5132 CC="$ac_save_CC $ac_arg"
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134 ac_cv_prog_cc_c99=$ac_arg
5136 rm -f core conftest.err conftest.$ac_objext
5137 test "x$ac_cv_prog_cc_c99" != "xno" && break
5139 rm -f conftest.$ac_ext
5144 case "x$ac_cv_prog_cc_c99" in
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5147 $as_echo "none needed" >&6; } ;;
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5150 $as_echo "unsupported" >&6; } ;;
5152 CC="$CC $ac_cv_prog_cc_c99"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5154 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5156 if test "x$ac_cv_prog_cc_c99" != xno; then :
5162 ac_cpp='$CXXCPP $CPPFLAGS'
5163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5166 if test -z "$CXX"; then
5167 if test -n "$CCC"; then
5170 if test -n "$ac_tool_prefix"; then
5171 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; }
5177 if ${ac_cv_prog_CXX+:} false; then :
5178 $as_echo_n "(cached) " >&6
5180 if test -n "$CXX"; then
5181 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 if test -n "$CXX"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5203 $as_echo "$CXX" >&6; }
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5210 test -n "$CXX" && break
5213 if test -z "$CXX"; then
5215 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5217 # Extract the first word of "$ac_prog", so it can be a program name with args.
5218 set dummy $ac_prog; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5222 $as_echo_n "(cached) " >&6
5224 if test -n "$ac_ct_CXX"; then
5225 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_ac_ct_CXX="$ac_prog"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5245 if test -n "$ac_ct_CXX"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5247 $as_echo "$ac_ct_CXX" >&6; }
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5254 test -n "$ac_ct_CXX" && break
5257 if test "x$ac_ct_CXX" = x; then
5260 case $cross_compiling:$ac_tool_warned in
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5264 ac_tool_warned=yes ;;
5272 # Provide some information about the compiler.
5273 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5276 for ac_option in --version -v -V -qversion; do
5277 { { ac_try="$ac_compiler $ac_option >&5"
5279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5280 *) ac_try_echo
=$ac_try;;
5282 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5283 $as_echo "$ac_try_echo"; } >&5
5284 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5286 if test -s conftest.err
; then
5288 ... rest of stderr output deleted ...
5289 10q' conftest.err
>conftest.er1
5290 cat conftest.er1
>&5
5292 rm -f conftest.er1 conftest.err
5293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5294 test $ac_status = 0; }
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5298 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5299 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5300 $as_echo_n "(cached) " >&6
5302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5316 if ac_fn_cxx_try_compile
"$LINENO"; then :
5321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5322 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5326 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5327 if test $ac_compiler_gnu = yes; then
5332 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5333 ac_save_CXXFLAGS
=$CXXFLAGS
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5335 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5336 if ${ac_cv_prog_cxx_g+:} false
; then :
5337 $as_echo_n "(cached) " >&6
5339 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5340 ac_cxx_werror_flag
=yes
5343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5354 if ac_fn_cxx_try_compile
"$LINENO"; then :
5355 ac_cv_prog_cxx_g
=yes
5358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5369 if ac_fn_cxx_try_compile
"$LINENO"; then :
5372 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5385 if ac_fn_cxx_try_compile
"$LINENO"; then :
5386 ac_cv_prog_cxx_g
=yes
5388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5393 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5396 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5397 if test "$ac_test_CXXFLAGS" = set; then
5398 CXXFLAGS
=$ac_save_CXXFLAGS
5399 elif test $ac_cv_prog_cxx_g = yes; then
5400 if test "$GXX" = yes; then
5406 if test "$GXX" = yes; then
5413 ac_cpp
='$CPP $CPPFLAGS'
5414 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5419 # We must set the default linker to the linker used by gcc for the correct
5420 # operation of libtool. If LD is not defined and we are using gcc, try to
5421 # set the LD default to the ld used by gcc.
5422 if test -z "$LD"; then
5423 if test "$GCC" = yes; then
5426 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5428 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5430 case $gcc_prog_ld in
5431 # Accept absolute paths.
5432 [\\/]* |
[A-Za-z
]:[\\/]*)
5433 LD
="$gcc_prog_ld" ;;
5438 # Check whether -static-libstdc++ -static-libgcc is supported.
5440 if test "$GCC" = yes; then
5441 saved_LDFLAGS
="$LDFLAGS"
5443 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5445 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5447 ac_cpp
='$CXXCPP $CPPFLAGS'
5448 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5449 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5450 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5456 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5457 #error -static-libstdc++ not implemented
5461 if ac_fn_cxx_try_link
"$LINENO"; then :
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5463 $as_echo "yes" >&6; }; have_static_libs
=yes
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5468 rm -f core conftest.err conftest.
$ac_objext \
5469 conftest
$ac_exeext conftest.
$ac_ext
5471 ac_cpp
='$CPP $CPPFLAGS'
5472 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5477 LDFLAGS
="$saved_LDFLAGS"
5483 if test -n "$ac_tool_prefix"; then
5484 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5485 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_prog_GNATBIND+:} false
; then :
5489 $as_echo_n "(cached) " >&6
5491 if test -n "$GNATBIND"; then
5492 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5498 test -z "$as_dir" && as_dir
=.
5499 for ac_exec_ext
in '' $ac_executable_extensions; do
5500 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 GNATBIND
=$ac_cv_prog_GNATBIND
5512 if test -n "$GNATBIND"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5514 $as_echo "$GNATBIND" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5522 if test -z "$ac_cv_prog_GNATBIND"; then
5523 ac_ct_GNATBIND
=$GNATBIND
5524 # Extract the first word of "gnatbind", so it can be a program name with args.
5525 set dummy gnatbind
; ac_word
=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5529 $as_echo_n "(cached) " >&6
5531 if test -n "$ac_ct_GNATBIND"; then
5532 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5538 test -z "$as_dir" && as_dir
=.
5539 for ac_exec_ext
in '' $ac_executable_extensions; do
5540 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5552 if test -n "$ac_ct_GNATBIND"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5554 $as_echo "$ac_ct_GNATBIND" >&6; }
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5560 if test "x$ac_ct_GNATBIND" = x
; then
5563 case $cross_compiling:$ac_tool_warned in
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5567 ac_tool_warned
=yes ;;
5569 GNATBIND
=$ac_ct_GNATBIND
5572 GNATBIND
="$ac_cv_prog_GNATBIND"
5575 if test -n "$ac_tool_prefix"; then
5576 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5577 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5581 $as_echo_n "(cached) " >&6
5583 if test -n "$GNATMAKE"; then
5584 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5590 test -z "$as_dir" && as_dir
=.
5591 for ac_exec_ext
in '' $ac_executable_extensions; do
5592 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 GNATMAKE
=$ac_cv_prog_GNATMAKE
5604 if test -n "$GNATMAKE"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5606 $as_echo "$GNATMAKE" >&6; }
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5614 if test -z "$ac_cv_prog_GNATMAKE"; then
5615 ac_ct_GNATMAKE
=$GNATMAKE
5616 # Extract the first word of "gnatmake", so it can be a program name with args.
5617 set dummy gnatmake
; ac_word
=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5621 $as_echo_n "(cached) " >&6
5623 if test -n "$ac_ct_GNATMAKE"; then
5624 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5630 test -z "$as_dir" && as_dir
=.
5631 for ac_exec_ext
in '' $ac_executable_extensions; do
5632 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5644 if test -n "$ac_ct_GNATMAKE"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5646 $as_echo "$ac_ct_GNATMAKE" >&6; }
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5652 if test "x$ac_ct_GNATMAKE" = x
; then
5655 case $cross_compiling:$ac_tool_warned in
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5659 ac_tool_warned
=yes ;;
5661 GNATMAKE
=$ac_ct_GNATMAKE
5664 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5668 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5669 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5670 $as_echo_n "(cached) " >&6
5672 cat >conftest.adb
<<EOF
5673 procedure conftest is begin null; end conftest;
5675 acx_cv_cc_gcc_supports_ada
=no
5676 # There is a bug in old released versions of GCC which causes the
5677 # driver to exit successfully when the appropriate language module
5678 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5679 # Therefore we must check for the error message as well as an
5680 # unsuccessful exit.
5681 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5682 # given a .adb file, but produce no object file. So we must check
5683 # if an object file was really produced to guard against this.
5684 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5685 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5686 acx_cv_cc_gcc_supports_ada
=yes
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5691 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5693 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5701 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5702 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5703 $as_echo_n "(cached) " >&6
5707 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5708 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5709 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5712 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5715 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5716 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5719 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5726 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5727 do_compare
="$gcc_cv_prog_cmp_skip"
5731 # Check whether --enable-bootstrap was given.
5732 if test "${enable_bootstrap+set}" = set; then :
5733 enableval
=$enable_bootstrap;
5735 enable_bootstrap
=default
5739 # Issue errors and warnings for invalid/strange bootstrap combinations.
5740 if test -r $srcdir/gcc
/configure
; then
5746 case "$have_compiler:$host:$target:$enable_bootstrap" in
5749 # Default behavior. Enable bootstrap if we have a compiler
5750 # and we are in a native configuration.
5751 yes:$build:$build:default
)
5752 enable_bootstrap
=yes ;;
5755 enable_bootstrap
=no
;;
5757 # We have a compiler and we are in a native configuration, bootstrap is ok
5758 yes:$build:$build:yes)
5761 # Other configurations, but we have a compiler. Assume the user knows
5764 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5765 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5768 # No compiler: if they passed --enable-bootstrap explicitly, fail
5770 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5772 # Fail if wrong command line
5774 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5778 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5779 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5780 # require C++11 (or higher).
5781 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5782 CXX
="$CXX -std=c++11"
5783 elif test "$have_compiler" = yes; then
5784 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5786 ac_cpp
='$CXXCPP $CPPFLAGS'
5787 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5788 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5789 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5793 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5794 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5795 $as_echo_n "(cached) " >&6
5797 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5798 /* end confdefs.h. */
5801 // If the compiler admits that it is not ready for C++11, why torture it?
5802 // Hopefully, this will speed up the test.
5806 #error "This is not a C++ compiler"
5808 #elif __cplusplus < 201103L
5810 #error "This is not a C++11 compiler"
5817 namespace test_static_assert
5820 template <typename T>
5823 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5828 namespace test_final_override
5837 struct Derived : public Base
5839 virtual ~Derived() override {}
5840 virtual void f() override {}
5845 namespace test_double_right_angle_brackets
5848 template < typename T >
5851 typedef check<void> single_type;
5852 typedef check<check<void>> double_type;
5853 typedef check<check<check<void>>> triple_type;
5854 typedef check<check<check<check<void>>>> quadruple_type;
5858 namespace test_decltype
5871 namespace test_type_deduction
5874 template < typename T1, typename T2 >
5877 static const bool value = false;
5880 template < typename T >
5881 struct is_same<T, T>
5883 static const bool value = true;
5886 template < typename T1, typename T2 >
5888 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5894 test(const int c, volatile int v)
5896 static_assert(is_same<int, decltype(0)>::value == true, "");
5897 static_assert(is_same<int, decltype(c)>::value == false, "");
5898 static_assert(is_same<int, decltype(v)>::value == false, "");
5901 auto sumi = ac + av + 'x';
5902 auto sumf = ac + av + 1.0;
5903 static_assert(is_same<int, decltype(ac)>::value == true, "");
5904 static_assert(is_same<int, decltype(av)>::value == true, "");
5905 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5906 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5907 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5908 return (sumf > 0.0) ? sumi : add(c, v);
5913 namespace test_noexcept
5916 int f() { return 0; }
5917 int g() noexcept { return 0; }
5919 static_assert(noexcept(f()) == false, "");
5920 static_assert(noexcept(g()) == true, "");
5924 namespace test_constexpr
5927 template < typename CharT >
5928 unsigned long constexpr
5929 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5931 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5934 template < typename CharT >
5935 unsigned long constexpr
5936 strlen_c(const CharT *const s) noexcept
5938 return strlen_c_r(s, 0UL);
5941 static_assert(strlen_c("") == 0UL, "");
5942 static_assert(strlen_c("1") == 1UL, "");
5943 static_assert(strlen_c("example") == 7UL, "");
5944 static_assert(strlen_c("another\0example") == 7UL, "");
5948 namespace test_rvalue_references
5954 static constexpr int value = N;
5957 answer<1> f(int&) { return answer<1>(); }
5958 answer<2> f(const int&) { return answer<2>(); }
5959 answer<3> f(int&&) { return answer<3>(); }
5966 static_assert(decltype(f(i))::value == 1, "");
5967 static_assert(decltype(f(c))::value == 2, "");
5968 static_assert(decltype(f(0))::value == 3, "");
5973 namespace test_uniform_initialization
5978 static const int zero {};
5979 static const int one {1};
5982 static_assert(test::zero == 0, "");
5983 static_assert(test::one == 1, "");
5987 namespace test_lambdas
5993 auto lambda1 = [](){};
5994 auto lambda2 = lambda1;
6002 auto a = [](int i, int j){ return i + j; }(1, 2);
6003 auto b = []() -> int { return '0'; }();
6004 auto c = [=](){ return a + b; }();
6005 auto d = [&](){ return c; }();
6006 auto e = [a, &b](int x) mutable {
6007 const auto identity = [](int y){ return y; };
6008 for (auto i = 0; i < a; ++i)
6010 return x + identity(a + b);
6012 return a + b + c + d + e;
6018 const auto nullary = [](){ return 0; };
6019 const auto unary = [](int x){ return x; };
6020 using nullary_t = decltype(nullary);
6021 using unary_t = decltype(unary);
6022 const auto higher1st = [](nullary_t f){ return f(); };
6023 const auto higher2nd = [unary](nullary_t f1){
6024 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6026 return higher1st(nullary) + higher2nd(nullary)(unary);
6031 namespace test_variadic_templates
6037 template <int N0, int... N1toN>
6038 struct sum<N0, N1toN...>
6040 static constexpr auto value = N0 + sum<N1toN...>::value;
6046 static constexpr auto value = 0;
6049 static_assert(sum<>::value == 0, "");
6050 static_assert(sum<1>::value == 1, "");
6051 static_assert(sum<23>::value == 23, "");
6052 static_assert(sum<1, 2>::value == 3, "");
6053 static_assert(sum<5, 5, 11>::value == 21, "");
6054 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6058 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6059 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6061 namespace test_template_alias_sfinae
6066 template<typename T>
6067 using member = typename T::member_type;
6069 template<typename T>
6072 template<typename T>
6073 void func(member<T>*) {}
6077 void test() { func<foo>(0); }
6081 } // namespace cxx11
6083 #endif // __cplusplus >= 201103L
6088 if ac_fn_cxx_try_compile
"$LINENO"; then :
6089 ax_cv_cxx_compile_cxx11
=yes
6091 ax_cv_cxx_compile_cxx11
=no
6093 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6096 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6097 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6101 if test x
$ac_success = xno
; then
6102 for alternative
in ${ax_cxx_compile_alternatives}; do
6103 switch
="-std=gnu++${alternative}"
6104 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6106 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6107 if eval \
${$cachevar+:} false
; then :
6108 $as_echo_n "(cached) " >&6
6112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6113 /* end confdefs.h. */
6116 // If the compiler admits that it is not ready for C++11, why torture it?
6117 // Hopefully, this will speed up the test.
6121 #error "This is not a C++ compiler"
6123 #elif __cplusplus < 201103L
6125 #error "This is not a C++11 compiler"
6132 namespace test_static_assert
6135 template <typename T>
6138 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6143 namespace test_final_override
6152 struct Derived : public Base
6154 virtual ~Derived() override {}
6155 virtual void f() override {}
6160 namespace test_double_right_angle_brackets
6163 template < typename T >
6166 typedef check<void> single_type;
6167 typedef check<check<void>> double_type;
6168 typedef check<check<check<void>>> triple_type;
6169 typedef check<check<check<check<void>>>> quadruple_type;
6173 namespace test_decltype
6186 namespace test_type_deduction
6189 template < typename T1, typename T2 >
6192 static const bool value = false;
6195 template < typename T >
6196 struct is_same<T, T>
6198 static const bool value = true;
6201 template < typename T1, typename T2 >
6203 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6209 test(const int c, volatile int v)
6211 static_assert(is_same<int, decltype(0)>::value == true, "");
6212 static_assert(is_same<int, decltype(c)>::value == false, "");
6213 static_assert(is_same<int, decltype(v)>::value == false, "");
6216 auto sumi = ac + av + 'x';
6217 auto sumf = ac + av + 1.0;
6218 static_assert(is_same<int, decltype(ac)>::value == true, "");
6219 static_assert(is_same<int, decltype(av)>::value == true, "");
6220 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6221 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6222 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6223 return (sumf > 0.0) ? sumi : add(c, v);
6228 namespace test_noexcept
6231 int f() { return 0; }
6232 int g() noexcept { return 0; }
6234 static_assert(noexcept(f()) == false, "");
6235 static_assert(noexcept(g()) == true, "");
6239 namespace test_constexpr
6242 template < typename CharT >
6243 unsigned long constexpr
6244 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6246 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6249 template < typename CharT >
6250 unsigned long constexpr
6251 strlen_c(const CharT *const s) noexcept
6253 return strlen_c_r(s, 0UL);
6256 static_assert(strlen_c("") == 0UL, "");
6257 static_assert(strlen_c("1") == 1UL, "");
6258 static_assert(strlen_c("example") == 7UL, "");
6259 static_assert(strlen_c("another\0example") == 7UL, "");
6263 namespace test_rvalue_references
6269 static constexpr int value = N;
6272 answer<1> f(int&) { return answer<1>(); }
6273 answer<2> f(const int&) { return answer<2>(); }
6274 answer<3> f(int&&) { return answer<3>(); }
6281 static_assert(decltype(f(i))::value == 1, "");
6282 static_assert(decltype(f(c))::value == 2, "");
6283 static_assert(decltype(f(0))::value == 3, "");
6288 namespace test_uniform_initialization
6293 static const int zero {};
6294 static const int one {1};
6297 static_assert(test::zero == 0, "");
6298 static_assert(test::one == 1, "");
6302 namespace test_lambdas
6308 auto lambda1 = [](){};
6309 auto lambda2 = lambda1;
6317 auto a = [](int i, int j){ return i + j; }(1, 2);
6318 auto b = []() -> int { return '0'; }();
6319 auto c = [=](){ return a + b; }();
6320 auto d = [&](){ return c; }();
6321 auto e = [a, &b](int x) mutable {
6322 const auto identity = [](int y){ return y; };
6323 for (auto i = 0; i < a; ++i)
6325 return x + identity(a + b);
6327 return a + b + c + d + e;
6333 const auto nullary = [](){ return 0; };
6334 const auto unary = [](int x){ return x; };
6335 using nullary_t = decltype(nullary);
6336 using unary_t = decltype(unary);
6337 const auto higher1st = [](nullary_t f){ return f(); };
6338 const auto higher2nd = [unary](nullary_t f1){
6339 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6341 return higher1st(nullary) + higher2nd(nullary)(unary);
6346 namespace test_variadic_templates
6352 template <int N0, int... N1toN>
6353 struct sum<N0, N1toN...>
6355 static constexpr auto value = N0 + sum<N1toN...>::value;
6361 static constexpr auto value = 0;
6364 static_assert(sum<>::value == 0, "");
6365 static_assert(sum<1>::value == 1, "");
6366 static_assert(sum<23>::value == 23, "");
6367 static_assert(sum<1, 2>::value == 3, "");
6368 static_assert(sum<5, 5, 11>::value == 21, "");
6369 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6373 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6374 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6376 namespace test_template_alias_sfinae
6381 template<typename T>
6382 using member = typename T::member_type;
6384 template<typename T>
6387 template<typename T>
6388 void func(member<T>*) {}
6392 void test() { func<foo>(0); }
6396 } // namespace cxx11
6398 #endif // __cplusplus >= 201103L
6403 if ac_fn_cxx_try_compile
"$LINENO"; then :
6408 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6411 eval ac_res
=\$
$cachevar
6412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6413 $as_echo "$ac_res" >&6; }
6414 if eval test x\$
$cachevar = xyes
; then
6416 if test -n "$CXXCPP" ; then
6417 CXXCPP
="$CXXCPP $switch"
6425 if test x
$ac_success = xno
; then
6426 for alternative
in ${ax_cxx_compile_alternatives}; do
6427 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6428 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6430 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6431 if eval \${$cachevar+:} false; then :
6432 $as_echo_n "(cached
) " >&6
6436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6437 /* end confdefs.h. */
6440 // If the compiler admits that it is not ready for C++11, why torture it?
6441 // Hopefully, this will speed up the test.
6445 #error "This is not a C
++ compiler
"
6447 #elif __cplusplus < 201103L
6449 #error "This is not a C
++11 compiler
"
6456 namespace test_static_assert
6459 template <typename T>
6462 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6467 namespace test_final_override
6476 struct Derived : public Base
6478 virtual ~Derived() override {}
6479 virtual void f() override {}
6484 namespace test_double_right_angle_brackets
6487 template < typename T >
6490 typedef check<void> single_type;
6491 typedef check<check<void>> double_type;
6492 typedef check<check<check<void>>> triple_type;
6493 typedef check<check<check<check<void>>>> quadruple_type;
6497 namespace test_decltype
6510 namespace test_type_deduction
6513 template < typename T1, typename T2 >
6516 static const bool value = false;
6519 template < typename T >
6520 struct is_same<T, T>
6522 static const bool value = true;
6525 template < typename T1, typename T2 >
6527 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6533 test(const int c, volatile int v)
6535 static_assert(is_same<int, decltype(0)>::value == true, "");
6536 static_assert(is_same<int, decltype(c)>::value == false, "");
6537 static_assert(is_same<int, decltype(v)>::value == false, "");
6540 auto sumi = ac + av + 'x';
6541 auto sumf = ac + av + 1.0;
6542 static_assert(is_same<int, decltype(ac)>::value == true, "");
6543 static_assert(is_same<int, decltype(av)>::value == true, "");
6544 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6545 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6546 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6547 return (sumf > 0.0) ? sumi : add(c, v);
6552 namespace test_noexcept
6555 int f() { return 0; }
6556 int g() noexcept { return 0; }
6558 static_assert(noexcept(f()) == false, "");
6559 static_assert(noexcept(g()) == true, "");
6563 namespace test_constexpr
6566 template < typename CharT >
6567 unsigned long constexpr
6568 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6570 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6573 template < typename CharT >
6574 unsigned long constexpr
6575 strlen_c(const CharT *const s) noexcept
6577 return strlen_c_r(s, 0UL);
6580 static_assert(strlen_c("") == 0UL, "");
6581 static_assert(strlen_c("1") == 1UL, "");
6582 static_assert(strlen_c("example
") == 7UL, "");
6583 static_assert(strlen_c("another\
0example
") == 7UL, "");
6587 namespace test_rvalue_references
6593 static constexpr int value = N;
6596 answer<1> f(int&) { return answer<1>(); }
6597 answer<2> f(const int&) { return answer<2>(); }
6598 answer<3> f(int&&) { return answer<3>(); }
6605 static_assert(decltype(f(i))::value == 1, "");
6606 static_assert(decltype(f(c))::value == 2, "");
6607 static_assert(decltype(f(0))::value == 3, "");
6612 namespace test_uniform_initialization
6617 static const int zero {};
6618 static const int one {1};
6621 static_assert(test::zero == 0, "");
6622 static_assert(test::one == 1, "");
6626 namespace test_lambdas
6632 auto lambda1 = [](){};
6633 auto lambda2 = lambda1;
6641 auto a = [](int i, int j){ return i + j; }(1, 2);
6642 auto b = []() -> int { return '0'; }();
6643 auto c = [=](){ return a + b; }();
6644 auto d = [&](){ return c; }();
6645 auto e = [a, &b](int x) mutable {
6646 const auto identity = [](int y){ return y; };
6647 for (auto i = 0; i < a; ++i)
6649 return x + identity(a + b);
6651 return a + b + c + d + e;
6657 const auto nullary = [](){ return 0; };
6658 const auto unary = [](int x){ return x; };
6659 using nullary_t = decltype(nullary);
6660 using unary_t = decltype(unary);
6661 const auto higher1st = [](nullary_t f){ return f(); };
6662 const auto higher2nd = [unary](nullary_t f1){
6663 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6665 return higher1st(nullary) + higher2nd(nullary)(unary);
6670 namespace test_variadic_templates
6676 template <int N0, int... N1toN>
6677 struct sum<N0, N1toN...>
6679 static constexpr auto value = N0 + sum<N1toN...>::value;
6685 static constexpr auto value = 0;
6688 static_assert(sum<>::value == 0, "");
6689 static_assert(sum<1>::value == 1, "");
6690 static_assert(sum<23>::value == 23, "");
6691 static_assert(sum<1, 2>::value == 3, "");
6692 static_assert(sum<5, 5, 11>::value == 21, "");
6693 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6697 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6698 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6700 namespace test_template_alias_sfinae
6705 template<typename T>
6706 using member = typename T::member_type;
6708 template<typename T>
6711 template<typename T>
6712 void func(member<T>*) {}
6716 void test() { func<foo>(0); }
6720 } // namespace cxx11
6722 #endif // __cplusplus >= 201103L
6727 if ac_fn_cxx_try_compile "$LINENO"; then :
6732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6735 eval ac_res=\$$cachevar
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6737 $as_echo "$ac_res" >&6; }
6738 if eval test x\$$cachevar = xyes; then
6740 if test -n "$CXXCPP" ; then
6741 CXXCPP="$CXXCPP $switch"
6747 if test x$ac_success = xyes; then
6754 ac_cpp='$CPP $CPPFLAGS'
6755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6759 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6760 if test x$ac_success = xno; then
6761 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6764 if test x$ac_success = xno; then
6766 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6767 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6771 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6777 if test "${build}" != "${host}"; then
6778 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6780 ac_cpp
='$CXXCPP $CPPFLAGS'
6781 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6782 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6783 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6785 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6786 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6787 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6788 CXX
="$CXX_FOR_BUILD"
6789 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6790 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6792 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6793 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6794 $as_echo_n "(cached) " >&6
6796 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6797 /* end confdefs.h. */
6800 // If the compiler admits that it is not ready for C++11, why torture it?
6801 // Hopefully, this will speed up the test.
6805 #error "This is not a C++ compiler"
6807 #elif __cplusplus < 201103L
6809 #error "This is not a C++11 compiler"
6816 namespace test_static_assert
6819 template <typename T>
6822 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6827 namespace test_final_override
6836 struct Derived : public Base
6838 virtual ~Derived() override {}
6839 virtual void f() override {}
6844 namespace test_double_right_angle_brackets
6847 template < typename T >
6850 typedef check<void> single_type;
6851 typedef check<check<void>> double_type;
6852 typedef check<check<check<void>>> triple_type;
6853 typedef check<check<check<check<void>>>> quadruple_type;
6857 namespace test_decltype
6870 namespace test_type_deduction
6873 template < typename T1, typename T2 >
6876 static const bool value = false;
6879 template < typename T >
6880 struct is_same<T, T>
6882 static const bool value = true;
6885 template < typename T1, typename T2 >
6887 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6893 test(const int c, volatile int v)
6895 static_assert(is_same<int, decltype(0)>::value == true, "");
6896 static_assert(is_same<int, decltype(c)>::value == false, "");
6897 static_assert(is_same<int, decltype(v)>::value == false, "");
6900 auto sumi = ac + av + 'x';
6901 auto sumf = ac + av + 1.0;
6902 static_assert(is_same<int, decltype(ac)>::value == true, "");
6903 static_assert(is_same<int, decltype(av)>::value == true, "");
6904 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6905 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6906 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6907 return (sumf > 0.0) ? sumi : add(c, v);
6912 namespace test_noexcept
6915 int f() { return 0; }
6916 int g() noexcept { return 0; }
6918 static_assert(noexcept(f()) == false, "");
6919 static_assert(noexcept(g()) == true, "");
6923 namespace test_constexpr
6926 template < typename CharT >
6927 unsigned long constexpr
6928 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6930 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6933 template < typename CharT >
6934 unsigned long constexpr
6935 strlen_c(const CharT *const s) noexcept
6937 return strlen_c_r(s, 0UL);
6940 static_assert(strlen_c("") == 0UL, "");
6941 static_assert(strlen_c("1") == 1UL, "");
6942 static_assert(strlen_c("example") == 7UL, "");
6943 static_assert(strlen_c("another\0example") == 7UL, "");
6947 namespace test_rvalue_references
6953 static constexpr int value = N;
6956 answer<1> f(int&) { return answer<1>(); }
6957 answer<2> f(const int&) { return answer<2>(); }
6958 answer<3> f(int&&) { return answer<3>(); }
6965 static_assert(decltype(f(i))::value == 1, "");
6966 static_assert(decltype(f(c))::value == 2, "");
6967 static_assert(decltype(f(0))::value == 3, "");
6972 namespace test_uniform_initialization
6977 static const int zero {};
6978 static const int one {1};
6981 static_assert(test::zero == 0, "");
6982 static_assert(test::one == 1, "");
6986 namespace test_lambdas
6992 auto lambda1 = [](){};
6993 auto lambda2 = lambda1;
7001 auto a = [](int i, int j){ return i + j; }(1, 2);
7002 auto b = []() -> int { return '0'; }();
7003 auto c = [=](){ return a + b; }();
7004 auto d = [&](){ return c; }();
7005 auto e = [a, &b](int x) mutable {
7006 const auto identity = [](int y){ return y; };
7007 for (auto i = 0; i < a; ++i)
7009 return x + identity(a + b);
7011 return a + b + c + d + e;
7017 const auto nullary = [](){ return 0; };
7018 const auto unary = [](int x){ return x; };
7019 using nullary_t = decltype(nullary);
7020 using unary_t = decltype(unary);
7021 const auto higher1st = [](nullary_t f){ return f(); };
7022 const auto higher2nd = [unary](nullary_t f1){
7023 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7025 return higher1st(nullary) + higher2nd(nullary)(unary);
7030 namespace test_variadic_templates
7036 template <int N0, int... N1toN>
7037 struct sum<N0, N1toN...>
7039 static constexpr auto value = N0 + sum<N1toN...>::value;
7045 static constexpr auto value = 0;
7048 static_assert(sum<>::value == 0, "");
7049 static_assert(sum<1>::value == 1, "");
7050 static_assert(sum<23>::value == 23, "");
7051 static_assert(sum<1, 2>::value == 3, "");
7052 static_assert(sum<5, 5, 11>::value == 21, "");
7053 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7057 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7058 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7060 namespace test_template_alias_sfinae
7065 template<typename T>
7066 using member = typename T::member_type;
7068 template<typename T>
7071 template<typename T>
7072 void func(member<T>*) {}
7076 void test() { func<foo>(0); }
7080 } // namespace cxx11
7082 #endif // __cplusplus >= 201103L
7087 if ac_fn_cxx_try_compile
"$LINENO"; then :
7088 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7090 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7095 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7096 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7100 if test x
$ac_success = xno
; then
7101 for alternative
in ${ax_cxx_compile_alternatives}; do
7102 switch
="-std=gnu++${alternative}"
7103 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7105 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7106 if eval \
${$cachevar+:} false
; then :
7107 $as_echo_n "(cached) " >&6
7111 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7112 /* end confdefs.h. */
7115 // If the compiler admits that it is not ready for C++11, why torture it?
7116 // Hopefully, this will speed up the test.
7120 #error "This is not a C++ compiler"
7122 #elif __cplusplus < 201103L
7124 #error "This is not a C++11 compiler"
7131 namespace test_static_assert
7134 template <typename T>
7137 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7142 namespace test_final_override
7151 struct Derived : public Base
7153 virtual ~Derived() override {}
7154 virtual void f() override {}
7159 namespace test_double_right_angle_brackets
7162 template < typename T >
7165 typedef check<void> single_type;
7166 typedef check<check<void>> double_type;
7167 typedef check<check<check<void>>> triple_type;
7168 typedef check<check<check<check<void>>>> quadruple_type;
7172 namespace test_decltype
7185 namespace test_type_deduction
7188 template < typename T1, typename T2 >
7191 static const bool value = false;
7194 template < typename T >
7195 struct is_same<T, T>
7197 static const bool value = true;
7200 template < typename T1, typename T2 >
7202 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7208 test(const int c, volatile int v)
7210 static_assert(is_same<int, decltype(0)>::value == true, "");
7211 static_assert(is_same<int, decltype(c)>::value == false, "");
7212 static_assert(is_same<int, decltype(v)>::value == false, "");
7215 auto sumi = ac + av + 'x';
7216 auto sumf = ac + av + 1.0;
7217 static_assert(is_same<int, decltype(ac)>::value == true, "");
7218 static_assert(is_same<int, decltype(av)>::value == true, "");
7219 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7220 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7221 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7222 return (sumf > 0.0) ? sumi : add(c, v);
7227 namespace test_noexcept
7230 int f() { return 0; }
7231 int g() noexcept { return 0; }
7233 static_assert(noexcept(f()) == false, "");
7234 static_assert(noexcept(g()) == true, "");
7238 namespace test_constexpr
7241 template < typename CharT >
7242 unsigned long constexpr
7243 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7245 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7248 template < typename CharT >
7249 unsigned long constexpr
7250 strlen_c(const CharT *const s) noexcept
7252 return strlen_c_r(s, 0UL);
7255 static_assert(strlen_c("") == 0UL, "");
7256 static_assert(strlen_c("1") == 1UL, "");
7257 static_assert(strlen_c("example") == 7UL, "");
7258 static_assert(strlen_c("another\0example") == 7UL, "");
7262 namespace test_rvalue_references
7268 static constexpr int value = N;
7271 answer<1> f(int&) { return answer<1>(); }
7272 answer<2> f(const int&) { return answer<2>(); }
7273 answer<3> f(int&&) { return answer<3>(); }
7280 static_assert(decltype(f(i))::value == 1, "");
7281 static_assert(decltype(f(c))::value == 2, "");
7282 static_assert(decltype(f(0))::value == 3, "");
7287 namespace test_uniform_initialization
7292 static const int zero {};
7293 static const int one {1};
7296 static_assert(test::zero == 0, "");
7297 static_assert(test::one == 1, "");
7301 namespace test_lambdas
7307 auto lambda1 = [](){};
7308 auto lambda2 = lambda1;
7316 auto a = [](int i, int j){ return i + j; }(1, 2);
7317 auto b = []() -> int { return '0'; }();
7318 auto c = [=](){ return a + b; }();
7319 auto d = [&](){ return c; }();
7320 auto e = [a, &b](int x) mutable {
7321 const auto identity = [](int y){ return y; };
7322 for (auto i = 0; i < a; ++i)
7324 return x + identity(a + b);
7326 return a + b + c + d + e;
7332 const auto nullary = [](){ return 0; };
7333 const auto unary = [](int x){ return x; };
7334 using nullary_t = decltype(nullary);
7335 using unary_t = decltype(unary);
7336 const auto higher1st = [](nullary_t f){ return f(); };
7337 const auto higher2nd = [unary](nullary_t f1){
7338 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7340 return higher1st(nullary) + higher2nd(nullary)(unary);
7345 namespace test_variadic_templates
7351 template <int N0, int... N1toN>
7352 struct sum<N0, N1toN...>
7354 static constexpr auto value = N0 + sum<N1toN...>::value;
7360 static constexpr auto value = 0;
7363 static_assert(sum<>::value == 0, "");
7364 static_assert(sum<1>::value == 1, "");
7365 static_assert(sum<23>::value == 23, "");
7366 static_assert(sum<1, 2>::value == 3, "");
7367 static_assert(sum<5, 5, 11>::value == 21, "");
7368 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7372 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7373 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7375 namespace test_template_alias_sfinae
7380 template<typename T>
7381 using member = typename T::member_type;
7383 template<typename T>
7386 template<typename T>
7387 void func(member<T>*) {}
7391 void test() { func<foo>(0); }
7395 } // namespace cxx11
7397 #endif // __cplusplus >= 201103L
7402 if ac_fn_cxx_try_compile
"$LINENO"; then :
7407 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7410 eval ac_res
=\$
$cachevar
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7412 $as_echo "$ac_res" >&6; }
7413 if eval test x\$
$cachevar = xyes
; then
7415 if test -n "$CXXCPP" ; then
7416 CXXCPP
="$CXXCPP $switch"
7424 if test x
$ac_success = xno
; then
7425 for alternative
in ${ax_cxx_compile_alternatives}; do
7426 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7427 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7429 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7430 if eval \${$cachevar+:} false; then :
7431 $as_echo_n "(cached
) " >&6
7435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7436 /* end confdefs.h. */
7439 // If the compiler admits that it is not ready for C++11, why torture it?
7440 // Hopefully, this will speed up the test.
7444 #error "This is not a C
++ compiler
"
7446 #elif __cplusplus < 201103L
7448 #error "This is not a C
++11 compiler
"
7455 namespace test_static_assert
7458 template <typename T>
7461 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7466 namespace test_final_override
7475 struct Derived : public Base
7477 virtual ~Derived() override {}
7478 virtual void f() override {}
7483 namespace test_double_right_angle_brackets
7486 template < typename T >
7489 typedef check<void> single_type;
7490 typedef check<check<void>> double_type;
7491 typedef check<check<check<void>>> triple_type;
7492 typedef check<check<check<check<void>>>> quadruple_type;
7496 namespace test_decltype
7509 namespace test_type_deduction
7512 template < typename T1, typename T2 >
7515 static const bool value = false;
7518 template < typename T >
7519 struct is_same<T, T>
7521 static const bool value = true;
7524 template < typename T1, typename T2 >
7526 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7532 test(const int c, volatile int v)
7534 static_assert(is_same<int, decltype(0)>::value == true, "");
7535 static_assert(is_same<int, decltype(c)>::value == false, "");
7536 static_assert(is_same<int, decltype(v)>::value == false, "");
7539 auto sumi = ac + av + 'x';
7540 auto sumf = ac + av + 1.0;
7541 static_assert(is_same<int, decltype(ac)>::value == true, "");
7542 static_assert(is_same<int, decltype(av)>::value == true, "");
7543 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7544 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7545 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7546 return (sumf > 0.0) ? sumi : add(c, v);
7551 namespace test_noexcept
7554 int f() { return 0; }
7555 int g() noexcept { return 0; }
7557 static_assert(noexcept(f()) == false, "");
7558 static_assert(noexcept(g()) == true, "");
7562 namespace test_constexpr
7565 template < typename CharT >
7566 unsigned long constexpr
7567 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7569 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7572 template < typename CharT >
7573 unsigned long constexpr
7574 strlen_c(const CharT *const s) noexcept
7576 return strlen_c_r(s, 0UL);
7579 static_assert(strlen_c("") == 0UL, "");
7580 static_assert(strlen_c("1") == 1UL, "");
7581 static_assert(strlen_c("example
") == 7UL, "");
7582 static_assert(strlen_c("another\
0example
") == 7UL, "");
7586 namespace test_rvalue_references
7592 static constexpr int value = N;
7595 answer<1> f(int&) { return answer<1>(); }
7596 answer<2> f(const int&) { return answer<2>(); }
7597 answer<3> f(int&&) { return answer<3>(); }
7604 static_assert(decltype(f(i))::value == 1, "");
7605 static_assert(decltype(f(c))::value == 2, "");
7606 static_assert(decltype(f(0))::value == 3, "");
7611 namespace test_uniform_initialization
7616 static const int zero {};
7617 static const int one {1};
7620 static_assert(test::zero == 0, "");
7621 static_assert(test::one == 1, "");
7625 namespace test_lambdas
7631 auto lambda1 = [](){};
7632 auto lambda2 = lambda1;
7640 auto a = [](int i, int j){ return i + j; }(1, 2);
7641 auto b = []() -> int { return '0'; }();
7642 auto c = [=](){ return a + b; }();
7643 auto d = [&](){ return c; }();
7644 auto e = [a, &b](int x) mutable {
7645 const auto identity = [](int y){ return y; };
7646 for (auto i = 0; i < a; ++i)
7648 return x + identity(a + b);
7650 return a + b + c + d + e;
7656 const auto nullary = [](){ return 0; };
7657 const auto unary = [](int x){ return x; };
7658 using nullary_t = decltype(nullary);
7659 using unary_t = decltype(unary);
7660 const auto higher1st = [](nullary_t f){ return f(); };
7661 const auto higher2nd = [unary](nullary_t f1){
7662 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7664 return higher1st(nullary) + higher2nd(nullary)(unary);
7669 namespace test_variadic_templates
7675 template <int N0, int... N1toN>
7676 struct sum<N0, N1toN...>
7678 static constexpr auto value = N0 + sum<N1toN...>::value;
7684 static constexpr auto value = 0;
7687 static_assert(sum<>::value == 0, "");
7688 static_assert(sum<1>::value == 1, "");
7689 static_assert(sum<23>::value == 23, "");
7690 static_assert(sum<1, 2>::value == 3, "");
7691 static_assert(sum<5, 5, 11>::value == 21, "");
7692 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7696 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7697 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7699 namespace test_template_alias_sfinae
7704 template<typename T>
7705 using member = typename T::member_type;
7707 template<typename T>
7710 template<typename T>
7711 void func(member<T>*) {}
7715 void test() { func<foo>(0); }
7719 } // namespace cxx11
7721 #endif // __cplusplus >= 201103L
7726 if ac_fn_cxx_try_compile "$LINENO"; then :
7731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7734 eval ac_res=\$$cachevar
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7736 $as_echo "$ac_res" >&6; }
7737 if eval test x\$$cachevar = xyes; then
7739 if test -n "$CXXCPP" ; then
7740 CXXCPP="$CXXCPP $switch"
7746 if test x$ac_success = xyes; then
7751 CXX_FOR_BUILD="$CXX"
7752 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7753 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7754 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7755 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7756 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7758 ac_cpp='$CPP $CPPFLAGS'
7759 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7760 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7761 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7763 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7764 if test x$ac_success = xno; then
7765 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7768 if test x$ac_success = xno; then
7769 HAVE_CXX11_FOR_BUILD=0
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7771 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7773 HAVE_CXX11_FOR_BUILD=1
7775 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7783 # Check whether --enable-pgo-build was given.
7784 if test "${enable_pgo_build+set}" = set; then :
7785 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7791 # Issue errors and warnings for invalid/strange PGO build combinations.
7792 case "$have_compiler:$host:$target:$enable_pgo_build" in
7795 # Allow the PGO build only if we aren't building a compiler and
7796 # we are in a native configuration.
7797 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7799 # Disallow the PGO bootstrap if we are building a compiler.
7800 yes:*:*:yes |
yes:*:*:lto
)
7801 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7804 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7808 if test "$enable_pgo_build" != "no"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7810 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7811 old_CFLAGS
="$CFLAGS"
7812 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7813 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7815 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7819 if ac_fn_c_try_compile
"$LINENO"; then :
7822 PGO_BUILD_GEN_CFLAGS
=
7824 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7825 CFLAGS
="$old_CFLAGS"
7826 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7828 $as_echo "yes" >&6; }
7829 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7832 $as_echo "no" >&6; }
7833 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7836 if test "$enable_pgo_build" = "lto"; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7838 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7839 old_CFLAGS
="$CFLAGS"
7840 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7841 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7843 /* end confdefs.h. */
7846 if ac_fn_c_try_compile
"$LINENO"; then :
7849 PGO_BUILD_LTO_CFLAGS
=
7851 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7852 CFLAGS
="$old_CFLAGS"
7853 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7855 $as_echo "yes" >&6; }
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7858 $as_echo "no" >&6; }
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7860 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7868 # Used for setting $lt_cv_objdir
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7870 $as_echo_n "checking for objdir... " >&6; }
7871 if ${lt_cv_objdir+:} false
; then :
7872 $as_echo_n "(cached) " >&6
7874 rm -f .libs
2>/dev
/null
7875 mkdir .libs
2>/dev
/null
7876 if test -d .libs
; then
7879 # MS-DOS does not allow filenames that begin with a dot.
7882 rmdir .libs
2>/dev
/null
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7885 $as_echo "$lt_cv_objdir" >&6; }
7886 objdir
=$lt_cv_objdir
7892 cat >>confdefs.h
<<_ACEOF
7893 #define LT_OBJDIR "$lt_cv_objdir/"
7898 # Check for GMP, MPFR and MPC
7899 gmplibs
="-lmpc -lmpfr -lgmp"
7903 # Specify a location for mpc
7904 # check for this first so it ends up on the link line before mpfr.
7906 # Check whether --with-mpc was given.
7907 if test "${with_mpc+set}" = set; then :
7912 # Check whether --with-mpc-include was given.
7913 if test "${with_mpc_include+set}" = set; then :
7914 withval
=$with_mpc_include;
7918 # Check whether --with-mpc-lib was given.
7919 if test "${with_mpc_lib+set}" = set; then :
7920 withval
=$with_mpc_lib;
7924 if test "x$with_mpc" != x
; then
7925 gmplibs
="-L$with_mpc/lib $gmplibs"
7926 gmpinc
="-I$with_mpc/include $gmpinc"
7928 if test "x$with_mpc_include" != x
; then
7929 gmpinc
="-I$with_mpc_include $gmpinc"
7931 if test "x$with_mpc_lib" != x
; then
7932 gmplibs
="-L$with_mpc_lib $gmplibs"
7934 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
7935 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7936 gmpinc
='-I$$s/mpc/src '"$gmpinc"
7937 # Do not test the mpc version. Assume that it is sufficient, since
7938 # it is in the source tree, and the library has not been built yet
7939 # but it would be included on the link line in the version check below
7940 # hence making the test fail.
7944 # Specify a location for mpfr
7945 # check for this first so it ends up on the link line before gmp.
7947 # Check whether --with-mpfr was given.
7948 if test "${with_mpfr+set}" = set; then :
7953 # Check whether --with-mpfr-include was given.
7954 if test "${with_mpfr_include+set}" = set; then :
7955 withval
=$with_mpfr_include;
7959 # Check whether --with-mpfr-lib was given.
7960 if test "${with_mpfr_lib+set}" = set; then :
7961 withval
=$with_mpfr_lib;
7965 if test "x$with_mpfr" != x
; then
7966 gmplibs
="-L$with_mpfr/lib $gmplibs"
7967 gmpinc
="-I$with_mpfr/include $gmpinc"
7969 if test "x$with_mpfr_include" != x
; then
7970 gmpinc
="-I$with_mpfr_include $gmpinc"
7972 if test "x$with_mpfr_lib" != x
; then
7973 gmplibs
="-L$with_mpfr_lib $gmplibs"
7975 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
7976 # MPFR v3.1.0 moved the sources into a src sub-directory.
7977 if ! test -d ${srcdir}/mpfr
/src
; then
7978 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7980 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7981 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7982 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7983 # Do not test the mpfr version. Assume that it is sufficient, since
7984 # it is in the source tree, and the library has not been built yet
7985 # but it would be included on the link line in the version check below
7986 # hence making the test fail.
7990 # Specify a location for gmp
7992 # Check whether --with-gmp was given.
7993 if test "${with_gmp+set}" = set; then :
7998 # Check whether --with-gmp-include was given.
7999 if test "${with_gmp_include+set}" = set; then :
8000 withval
=$with_gmp_include;
8004 # Check whether --with-gmp-lib was given.
8005 if test "${with_gmp_lib+set}" = set; then :
8006 withval
=$with_gmp_lib;
8011 if test "x$with_gmp" != x
; then
8012 gmplibs
="-L$with_gmp/lib $gmplibs"
8013 gmpinc
="-I$with_gmp/include $gmpinc"
8015 if test "x$with_gmp_include" != x
; then
8016 gmpinc
="-I$with_gmp_include $gmpinc"
8018 if test "x$with_gmp_lib" != x
; then
8019 gmplibs
="-L$with_gmp_lib $gmplibs"
8021 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8022 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8023 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8024 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8025 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8026 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8027 # Do not test the gmp version. Assume that it is sufficient, since
8028 # it is in the source tree, and the library has not been built yet
8029 # but it would be included on the link line in the version check below
8030 # hence making the test fail.
8034 if test -d ${srcdir}/gcc
&& test "x$have_gmp" = xno
; then
8036 saved_CFLAGS
="$CFLAGS"
8037 CFLAGS
="$CFLAGS $gmpinc"
8038 # Check for the recommended and required versions of GMP.
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8040 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8041 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8042 /* end confdefs.h. */
8048 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8049 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8050 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8058 if ac_fn_c_try_compile
"$LINENO"; then :
8059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8066 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8067 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8068 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8076 if ac_fn_c_try_compile
"$LINENO"; then :
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8078 $as_echo "yes" >&6; }
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8081 $as_echo "buggy but acceptable" >&6; }
8083 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8086 $as_echo "no" >&6; }; have_gmp
=no
8088 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8090 # If we have GMP, check the MPFR version.
8091 if test x
"$have_gmp" = xyes
; then
8092 # Check for the recommended and required versions of MPFR.
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8094 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8095 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8096 /* end confdefs.h. */
8103 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8111 if ac_fn_c_try_compile
"$LINENO"; then :
8112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8120 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8128 if ac_fn_c_try_compile
"$LINENO"; then :
8129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8130 $as_echo "yes" >&6; }
8132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8133 $as_echo "buggy but acceptable" >&6; }
8135 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8138 $as_echo "no" >&6; }; have_gmp
=no
8140 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8143 # Check for the MPC header version.
8144 if test x
"$have_gmp" = xyes
; then
8145 # Check for the recommended and required versions of MPC.
8146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8147 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8149 /* end confdefs.h. */
8155 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8163 if ac_fn_c_try_compile
"$LINENO"; then :
8164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8171 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8179 if ac_fn_c_try_compile
"$LINENO"; then :
8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8181 $as_echo "yes" >&6; }
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8184 $as_echo "buggy but acceptable" >&6; }
8186 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }; have_gmp
=no
8191 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8194 # Now check the MPFR library.
8195 if test x
"$have_gmp" = xyes
; then
8197 LIBS
="$LIBS $gmplibs"
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8199 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8201 /* end confdefs.h. */
8213 mpfr_atan2 (n, n, x, MPFR_RNDN);
8214 mpfr_erfc (n, x, MPFR_RNDN);
8215 mpfr_subnormalize (x, t, MPFR_RNDN);
8219 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8220 mpc_cosh (c, c, MPC_RNDNN);
8221 mpc_pow (c, c, c, MPC_RNDNN);
8222 mpc_acosh (c, c, MPC_RNDNN);
8229 if ac_fn_c_try_link
"$LINENO"; then :
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8231 $as_echo "yes" >&6; }
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8234 $as_echo "no" >&6; }; have_gmp
=no
8236 rm -f core conftest.err conftest.
$ac_objext \
8237 conftest
$ac_exeext conftest.
$ac_ext
8241 CFLAGS
="$saved_CFLAGS"
8243 # The library versions listed in the error message below should match
8244 # the HARD-minimums enforced above.
8245 if test x
$have_gmp != xyes
; then
8246 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8247 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8248 their locations. Source code for these libraries can be found at
8249 their respective hosting sites as well as at
8250 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8251 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8252 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8253 make sure that you have installed both the libraries and the header
8254 files. They may be located in separate packages." "$LINENO" 5
8258 # Flags needed for both GMP, MPFR and/or MPC.
8266 # Libraries to use for stage1 or when not bootstrapping.
8268 # Check whether --with-stage1-libs was given.
8269 if test "${with_stage1_libs+set}" = set; then :
8270 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8273 stage1_libs
=$withval
8281 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8282 # default is yes if gcc is being built; no otherwise. The reason for
8283 # this default is that gdb is sometimes linked against GNU Source
8284 # Highlight, which is a shared library that uses C++ exceptions. In
8285 # this case, -static-libstdc++ will cause crashes.
8287 # Check whether --with-static-standard-libraries was given.
8288 if test "${with_static_standard_libraries+set}" = set; then :
8289 withval
=$with_static_standard_libraries;
8291 with_static_standard_libraries
=auto
8294 if test "$with_static_standard_libraries" = auto
; then
8295 with_static_standard_libraries
=$have_compiler
8298 # Linker flags to use for stage1 or when not bootstrapping.
8300 # Check whether --with-stage1-ldflags was given.
8301 if test "${with_stage1_ldflags+set}" = set; then :
8302 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8305 stage1_ldflags
=$withval
8309 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8310 # if supported. But if the user explicitly specified the libraries to use,
8311 # trust that they are doing what they want.
8312 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8313 -a "$have_static_libs" = yes; then
8314 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8320 # Libraries to use for stage2 and later builds.
8322 # Check whether --with-boot-libs was given.
8323 if test "${with_boot_libs+set}" = set; then :
8324 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8327 poststage1_libs
=$withval
8335 # Linker flags to use for stage2 and later builds.
8337 # Check whether --with-boot-ldflags was given.
8338 if test "${with_boot_ldflags+set}" = set; then :
8339 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8342 poststage1_ldflags
=$withval
8346 # In stages 2 and 3, default to linking libstdc++ and libgcc
8347 # statically. But if the user explicitly specified the libraries to
8348 # use, trust that they are doing what they want.
8349 if test "$poststage1_libs" = ""; then
8350 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8356 # GCC GRAPHITE dependency isl.
8357 # Basic setup is inlined here, actual checks are in config/isl.m4
8360 # Check whether --with-isl was given.
8361 if test "${with_isl+set}" = set; then :
8366 # Treat --without-isl as a request to disable
8367 # GRAPHITE support and skip all following checks.
8368 if test "x$with_isl" != "xno"; then
8372 # Check whether --with-isl-include was given.
8373 if test "${with_isl_include+set}" = set; then :
8374 withval
=$with_isl_include;
8378 # Check whether --with-isl-lib was given.
8379 if test "${with_isl_lib+set}" = set; then :
8380 withval
=$with_isl_lib;
8384 # Check whether --enable-isl-version-check was given.
8385 if test "${enable_isl_version_check+set}" = set; then :
8386 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8388 ENABLE_ISL_CHECK
=yes
8392 # Initialize isllibs and islinc.
8401 isllibs
="-L$with_isl/lib"
8402 islinc
="-I$with_isl/include"
8405 if test "x${with_isl_include}" != x
; then
8406 islinc
="-I$with_isl_include"
8408 if test "x${with_isl_lib}" != x
; then
8409 isllibs
="-L$with_isl_lib"
8411 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8412 && test -d ${srcdir}/isl
; then
8413 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8414 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8417 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8420 isllibs
="${isllibs} -lisl"
8424 if test "${ENABLE_ISL_CHECK}" = yes ; then
8425 _isl_saved_CFLAGS
=$CFLAGS
8426 _isl_saved_LDFLAGS
=$LDFLAGS
8427 _isl_saved_LIBS
=$LIBS
8429 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8430 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8431 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8434 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8435 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8436 /* end confdefs.h. */
8437 #include <isl/schedule.h>
8441 isl_options_set_schedule_serialize_sccs (NULL, 0);
8446 if ac_fn_c_try_link
"$LINENO"; then :
8451 rm -f core conftest.err conftest.
$ac_objext \
8452 conftest
$ac_exeext conftest.
$ac_ext
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8454 $as_echo "$gcc_cv_isl" >&6; }
8456 if test "${gcc_cv_isl}" = no
; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8458 $as_echo "required isl version is 0.15 or later" >&6; }
8461 CFLAGS
=$_isl_saved_CFLAGS
8462 LDFLAGS
=$_isl_saved_LDFLAGS
8463 LIBS
=$_isl_saved_LIBS
8471 if test "x${with_isl}" = xno
; then
8472 graphite_requested
=no
8473 elif test "x${with_isl}" != x \
8474 ||
test "x${with_isl_include}" != x \
8475 ||
test "x${with_isl_lib}" != x
; then
8476 graphite_requested
=yes
8478 graphite_requested
=no
8483 if test "${gcc_cv_isl}" = no
; then
8488 if test "${graphite_requested}" = yes \
8489 && test "x${isllibs}" = x \
8490 && test "x${islinc}" = x
; then
8492 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8498 # If the isl check failed, disable builds of in-tree variant of isl
8499 if test "x$with_isl" = xno ||
8500 test "x$gcc_cv_isl" = xno
; then
8501 noconfigdirs
="$noconfigdirs isl"
8508 # Check for LTO support.
8509 # Check whether --enable-lto was given.
8510 if test "${enable_lto+set}" = set; then :
8511 enableval
=$enable_lto; enable_lto
=$enableval
8513 enable_lto
=yes; default_enable_lto
=yes
8522 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8523 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8524 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8533 if test $target_elf = yes; then :
8534 # ELF platforms build the lto-plugin always.
8535 build_lto_plugin
=yes
8538 if test x
"$default_enable_lto" = x
"yes" ; then
8540 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8541 # On other non-ELF platforms, LTO has yet to be validated.
8545 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8546 # It would also be nice to check the binutils support, but we don't
8547 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8548 # warn during gcc/ subconfigure; unless you're bootstrapping with
8549 # -flto it won't be needed until after installation anyway.
8551 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8552 *) if test x
"$enable_lto" = x
"yes"; then
8553 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8558 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8559 # Build it unless LTO was explicitly disabled.
8561 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8568 # Check whether --enable-linker-plugin-configure-flags was given.
8569 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8570 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8572 extra_linker_plugin_configure_flags
=
8576 # Check whether --enable-linker-plugin-flags was given.
8577 if test "${enable_linker_plugin_flags+set}" = set; then :
8578 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8580 extra_linker_plugin_flags
=
8585 # Enable --enable-host-shared.
8586 # Checked early to determine whether jit is an 'all' language
8587 # Check whether --enable-host-shared was given.
8588 if test "${enable_host_shared+set}" = set; then :
8589 enableval
=$enable_host_shared; host_shared
=$enableval
8591 x86_64-
*-darwin* | aarch64-
*-darwin*)
8592 if test x
$host_shared != xyes
; then
8593 # PIC is the default, and actually cannot be switched off.
8594 echo configure.ac
: warning
: PIC code is required
for the configured target
, host-shared setting ignored.
1>&2
8601 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8602 *) host_shared
=no
;;
8608 # By default, C and C++ are the only stage 1 languages.
8609 stage1_languages
=,c
,
8611 # Target libraries that we bootstrap.
8612 bootstrap_target_libs
=,target-libgcc
,
8614 # Figure out what language subdirectories are present.
8615 # Look if the user specified --enable-languages="..."; if not, use
8616 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8618 # NB: embedded tabs in this IF block -- do not untabify
8619 if test -d ${srcdir}/gcc
; then
8620 if test x
"${enable_languages+set}" != xset
; then
8621 if test x
"${LANGUAGES+set}" = xset
; then
8622 enable_languages
="${LANGUAGES}"
8623 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8625 enable_languages
=default
8628 if test x
"${enable_languages}" = x ||
8629 test x
"${enable_languages}" = xyes
;
8631 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8635 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8637 # 'f95' is the old name for the 'fortran' language. We issue a warning
8638 # and make the substitution.
8639 case ,${enable_languages}, in
8641 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8642 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8646 # If bootstrapping, C++ must be enabled.
8647 case ",$enable_languages,:$enable_bootstrap" in
8650 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8651 enable_languages
="${enable_languages},c++"
8653 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8658 # First scan to see if an enabled language requires some other language.
8659 # We assume that a given config-lang.in will list all the language
8660 # front ends it requires, even if some are required indirectly.
8661 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8662 case ${lang_frag} in
8664 # The odd quoting in the next line works around
8665 # an apparent bug in bash 1.12 on linux.
8666 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8668 # From the config-lang.in, get $language, $lang_requires, and
8669 # $lang_requires_boot_languages.
8672 lang_requires_boot_languages
=
8673 # set srcdir during sourcing lang_frag to the gcc dir.
8674 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8675 # polutes this shell
8676 saved_srcdir
=${srcdir}
8677 srcdir
=${srcdir}/gcc .
${lang_frag}
8678 srcdir
=${saved_srcdir}
8679 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8680 case ,${enable_languages}, in
8685 echo " \`$other' language required by \`$language'; enabling" 1>&2
8686 enable_languages
="${enable_languages},${other}"
8690 for other
in ${lang_requires_boot_languages} ; do
8691 if test "$other" != "c"; then
8692 case ,${enable_stage1_languages}, in
8697 case ,${enable_languages}, in
8699 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8700 enable_stage1_languages
="$enable_stage1_languages,${other}"
8711 new_enable_languages
=,c
,
8713 # If LTO is enabled, add the LTO front end.
8714 if test "$enable_lto" = "yes" ; then
8715 case ,${enable_languages}, in
8717 *) enable_languages
="${enable_languages},lto" ;;
8719 if test "${build_lto_plugin}" = "yes" ; then
8720 configdirs
="$configdirs lto-plugin"
8724 # If we're building an offloading compiler, add the LTO front end.
8725 if test x
"$enable_as_accelerator_for" != x
; then
8726 case ,${enable_languages}, in
8728 *) enable_languages
="${enable_languages},lto" ;;
8732 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8733 potential_languages
=,c
,
8735 enabled_target_libs
=
8736 disabled_target_libs
=
8738 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8739 case ${lang_frag} in
8741 # The odd quoting in the next line works around
8742 # an apparent bug in bash 1.12 on linux.
8743 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8745 # From the config-lang.in, get $language, $target_libs,
8746 # $lang_dirs, $boot_language, and $build_by_default
8752 build_by_default
=yes
8753 # set srcdir during sourcing. See above about save & restore
8754 saved_srcdir
=${srcdir}
8755 srcdir
=${srcdir}/gcc .
${lang_frag}
8756 srcdir
=${saved_srcdir}
8757 if test x
${language} = x
; then
8758 echo "${lang_frag} doesn't set \$language." 1>&2
8762 if test "$language" = "c++"; then
8767 # C is always enabled, so no need to add it again
8768 if test "$language" != "c"; then
8769 case ,${enable_languages}, in
8771 # Language was explicitly selected; include it
8775 # All languages are enabled
8779 # 'default' was selected, select it if it is a default language
8780 add_this_lang
=${build_by_default}
8785 # Disable languages that need other directories if these aren't available.
8786 for i
in $subdir_requires; do
8787 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8788 case ${add_this_lang} in
8790 # Specifically requested language; tell them.
8791 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8795 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8796 add_this_lang
=unsupported
8800 add_this_lang
=unsupported
8805 # Disable Ada if no preexisting GNAT is available.
8806 case ${add_this_lang}:${language}:${have_gnat} in
8808 # Specifically requested language; tell them.
8809 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8813 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8814 add_this_lang
=unsupported
8818 add_this_lang
=unsupported
8822 # Disable D if no preexisting GDC is available.
8823 case ${add_this_lang}:${language}:${have_gdc} in
8825 # Specifically requested language; tell them.
8826 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
8829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8830 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8831 add_this_lang
=unsupported
8835 add_this_lang
=unsupported
8839 # Disable jit if -enable-host-shared not specified
8840 # but not if building for Mingw. All code in Windows
8841 # is position independent code (PIC).
8845 case ${add_this_lang}:${language}:${host_shared} in
8847 # PR jit/64780: explicitly specify --enable-host-shared
8849 Enabling language \"jit\" requires --enable-host-shared.
8851 --enable-host-shared typically slows the rest of the compiler down by
8852 a few %, so you must explicitly enable it.
8854 If you want to build both the jit and the regular compiler, it is often
8855 best to do this via two separate configure/builds, in separate
8856 directories, to avoid imposing the performance cost of
8857 --enable-host-shared on the regular compiler." "$LINENO" 5
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8861 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8862 add_this_lang
=unsupported
8866 add_this_lang
=unsupported
8872 # Disable a language that is unsupported by the target.
8873 case "${add_this_lang}: $unsupported_languages " in
8877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8878 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8879 add_this_lang
=unsupported
8883 case $add_this_lang in
8885 # Remove language-dependent dirs.
8886 disabled_target_libs
="$disabled_target_libs $target_libs"
8887 noconfigdirs
="$noconfigdirs $lang_dirs"
8890 # Remove language-dependent dirs; still show language as supported.
8891 disabled_target_libs
="$disabled_target_libs $target_libs"
8892 noconfigdirs
="$noconfigdirs $lang_dirs"
8893 potential_languages
="${potential_languages}${language},"
8896 new_enable_languages
="${new_enable_languages}${language},"
8897 potential_languages
="${potential_languages}${language},"
8898 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
8899 enabled_target_libs
="$enabled_target_libs $target_libs"
8900 case "${boot_language}:,$enable_stage1_languages," in
8901 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
8902 # Add to (comma-separated) list of stage 1 languages.
8903 case ",$stage1_languages," in
8904 *,$language,* |
,yes, |
,all
,) ;;
8905 *) stage1_languages
="${stage1_languages}${language}," ;;
8907 # We need to bootstrap any supporting libraries.
8908 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8917 # Add target libraries which are only needed for disabled languages
8919 if test -n "$disabled_target_libs"; then
8920 for dir
in $disabled_target_libs; do
8921 case " $enabled_target_libs " in
8923 *) noconfigdirs
="$noconfigdirs $dir" ;;
8928 # Check whether --enable-stage1-languages was given.
8929 if test "${enable_stage1_languages+set}" = set; then :
8930 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8932 # Set it to something that will have no effect in the loop below
8933 enable_stage1_languages
=c
;;
8935 enable_stage1_languages
=`echo $new_enable_languages | \
8936 sed -e "s/^,//" -e "s/,$//" ` ;;
8938 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
8939 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8942 # Add "good" languages from enable_stage1_languages to stage1_languages,
8943 # while "bad" languages go in missing_languages. Leave no duplicates.
8944 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8945 case $potential_languages in
8947 case $stage1_languages in
8949 *) stage1_languages
="$stage1_languages$i," ;;
8952 case $missing_languages in
8954 *) missing_languages
="$missing_languages$i," ;;
8961 # Remove leading/trailing commas that were added for simplicity
8962 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8963 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8964 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8965 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8967 if test "x$missing_languages" != x
; then
8969 The following requested languages could not be built: ${missing_languages}
8970 Supported languages are: ${potential_languages}" "$LINENO" 5
8972 if test "x$new_enable_languages" != "x$enable_languages"; then
8973 echo The following languages will be built
: ${new_enable_languages}
8974 enable_languages
="$new_enable_languages"
8978 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8981 # Handle --disable-<component> generically.
8982 for dir
in $configdirs $build_configdirs $target_configdirs ; do
8983 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8984 varname
=`echo $dirname | sed -e s/+/_/g`
8985 if eval test x\
${enable_${varname}} "=" xno
; then
8986 noconfigdirs
="$noconfigdirs $dir"
8990 # Check for Boehm's garbage collector
8991 # Check whether --enable-objc-gc was given.
8992 if test "${enable_objc_gc+set}" = set; then :
8993 enableval
=$enable_objc_gc;
8997 # Check whether --with-target-bdw-gc was given.
8998 if test "${with_target_bdw_gc+set}" = set; then :
8999 withval
=$with_target_bdw_gc;
9003 # Check whether --with-target-bdw-gc-include was given.
9004 if test "${with_target_bdw_gc_include+set}" = set; then :
9005 withval
=$with_target_bdw_gc_include;
9009 # Check whether --with-target-bdw-gc-lib was given.
9010 if test "${with_target_bdw_gc_lib+set}" = set; then :
9011 withval
=$with_target_bdw_gc_lib;
9015 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9017 $as_echo_n "checking for bdw garbage collector... " >&6; }
9018 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9020 $as_echo "using bdw-gc in default locations" >&6; }
9022 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9023 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9024 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9025 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9028 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9033 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9034 case ,${enable_languages}, in
9036 # Disable libitm, libsanitizer if we're not building libstdc++
9037 case "${noconfigdirs}" in
9038 *target-libstdc
++-v3*)
9039 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9045 noconfigdirs
="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9049 # If gcc/ is not in the source tree then we'll not be building a
9050 # target compiler, assume in that case we don't want to build any
9051 # target libraries or tools.
9053 # This was added primarily for the benefit for binutils-gdb who reuse
9054 # this configure script, but don't always have target tools available.
9055 if test ! -d ${srcdir}/gcc
; then
9056 skipdirs
="${skipdirs} ${target_configdirs}"
9059 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9060 # $build_configdirs and $target_configdirs.
9061 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9064 for dir
in .
$skipdirs $noconfigdirs ; do
9065 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9066 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9067 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9068 if test -r $srcdir/$dirname/configure
; then
9069 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9072 notsupp
="$notsupp $dir"
9076 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9077 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9078 if test -r $srcdir/$dirname/configure
; then
9079 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9082 notsupp
="$notsupp $dir"
9086 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9087 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9088 if test -r $srcdir/$dirname/configure
; then
9089 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9092 notsupp
="$notsupp $dir"
9098 # Quietly strip out all directories which aren't configurable in this tree.
9099 # This relies on all configurable subdirectories being autoconfiscated, which
9101 build_configdirs_all
="$build_configdirs"
9103 for i
in ${build_configdirs_all} ; do
9104 j
=`echo $i | sed -e s/build-//g`
9105 if test -f ${srcdir}/$j/configure
; then
9106 build_configdirs
="${build_configdirs} $i"
9110 configdirs_all
="$configdirs"
9112 for i
in ${configdirs_all} ; do
9113 if test -f ${srcdir}/$i/configure
; then
9114 configdirs
="${configdirs} $i"
9118 target_configdirs_all
="$target_configdirs"
9120 for i
in ${target_configdirs_all} ; do
9121 j
=`echo $i | sed -e s/target-//g`
9122 if test -f ${srcdir}/$j/configure
; then
9123 target_configdirs
="${target_configdirs} $i"
9127 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9128 # so we have to add it after the preceding checks.
9129 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9131 case " $configdirs " in
9133 # If we can build libiberty, we can also build libiberty-linker-plugin.
9134 configdirs
="$configdirs libiberty-linker-plugin"
9135 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9136 --with-libiberty=../libiberty-linker-plugin";;
9138 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9142 # Sometimes we have special requirements for the host libiberty.
9143 extra_host_libiberty_configure_flags
=
9144 case " $configdirs " in
9145 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9146 # When these are to be built as shared libraries, the same applies to
9148 extra_host_libiberty_configure_flags
=--enable-shared
9153 # Sometimes we have special requirements for the host zlib.
9154 extra_host_zlib_configure_flags
=
9155 case " $configdirs " in
9157 # When bfd is to be built as a shared library, the same applies to
9159 if test "$enable_shared" = "yes"; then
9160 extra_host_zlib_configure_flags
=--enable-host-shared
9166 # Produce a warning message for the subdirs we can't configure.
9167 # This isn't especially interesting in the Cygnus tree, but in the individual
9168 # FSF releases, it's important to let people know when their machine isn't
9169 # supported by the one or two programs in a package.
9171 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9172 # If $appdirs is non-empty, at least one of those directories must still
9173 # be configured, or we error out. (E.g., if the gas release supports a
9174 # specified target in some subdirs but not the gas subdir, we shouldn't
9175 # pretend that all is well.)
9176 if test -n "$appdirs" ; then
9177 for dir
in $appdirs ; do
9178 if test -r $dir/Makefile.
in ; then
9179 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9183 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9189 if test -n "$appdirs" ; then
9190 echo "*** This configuration is not supported by this package." 1>&2
9194 # Okay, some application will build, or we don't care to check. Still
9195 # notify of subdirs not getting built.
9196 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9197 echo " ${notsupp}" 1>&2
9198 echo " (Any other directories should still work fine.)" 1>&2
9206 # To find our prefix, in gcc_cv_tool_prefix.
9208 # The user is always right.
9209 if test "${PATH_SEPARATOR+set}" != set; then
9210 echo "#! /bin/sh" >conf$$.sh
9211 echo "exit 0" >>conf$$.sh
9213 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9222 get_gcc_base_ver
="cat"
9224 # Check whether --with-gcc-major-version-only was given.
9225 if test "${with_gcc_major_version_only+set}" = set; then :
9226 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9227 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9237 if test "x$exec_prefix" = xNONE
; then
9238 if test "x$prefix" = xNONE
; then
9239 gcc_cv_tool_prefix
=$ac_default_prefix
9241 gcc_cv_tool_prefix
=$prefix
9244 gcc_cv_tool_prefix
=$exec_prefix
9247 # If there is no compiler in the tree, use the PATH only. In any
9248 # case, if there is no compiler in the tree nobody should use
9249 # AS_FOR_TARGET and LD_FOR_TARGET.
9250 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9251 if test x
$with_gcc_major_version_only = xyes
; then
9252 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9254 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9256 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9257 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9258 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9259 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9260 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9261 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9266 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9267 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9275 # Check whether --with-build-sysroot was given.
9276 if test "${with_build_sysroot+set}" = set; then :
9277 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9278 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9281 SYSROOT_CFLAGS_FOR_TARGET
=
9287 # Check whether --with-debug-prefix-map was given.
9288 if test "${with_debug_prefix_map+set}" = set; then :
9289 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9290 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9291 for debug_map
in $withval; do
9292 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9296 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9301 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9302 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9303 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9304 # We want to ensure that TARGET libraries (which we know are built with
9305 # gcc) are built with "-O2 -g", so include those options when setting
9306 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9307 if test "x$CFLAGS_FOR_TARGET" = x
; then
9308 if test "x${is_cross_compiler}" = xyes
; then
9309 CFLAGS_FOR_TARGET
="-g -O2"
9311 CFLAGS_FOR_TARGET
=$CFLAGS
9314 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9317 *" -g "* |
*" -g3 "*) ;;
9318 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9324 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9325 if test "x${is_cross_compiler}" = xyes
; then
9326 CXXFLAGS_FOR_TARGET
="-g -O2"
9328 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9329 case " $CXXFLAGS " in
9331 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9333 case " $CXXFLAGS " in
9334 *" -g "* |
*" -g3 "*) ;;
9335 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9343 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9344 # the named directory are copied to $(tooldir)/sys-include.
9345 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9346 if test x
${is_cross_compiler} = xno
; then
9347 echo 1>&2 '***' --with-headers is only supported when cross compiling
9350 if test x
"${with_headers}" != xyes
; then
9351 x
=${gcc_cv_tool_prefix}
9352 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9356 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9357 # the name directories are copied to $(tooldir)/lib. Multiple directories
9359 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9360 if test x
${is_cross_compiler} = xno
; then
9361 echo 1>&2 '***' --with-libs is only supported when cross compiling
9364 if test x
"${with_libs}" != xyes
; then
9365 # Copy the libraries in reverse order, so that files in the first named
9366 # library override files in subsequent libraries.
9367 x
=${gcc_cv_tool_prefix}
9368 for l
in ${with_libs}; do
9369 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9374 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9376 # This is done by determining whether or not the appropriate directory
9377 # is available, and by checking whether or not specific configurations
9378 # have requested that this magic not happen.
9380 # The command line options always override the explicit settings in
9381 # configure.ac, and the settings in configure.ac override this magic.
9383 # If the default for a toolchain is to use GNU as and ld, and you don't
9384 # want to do that, then you should use the --without-gnu-as and
9385 # --without-gnu-ld options for the configure script. Similarly, if
9386 # the default is to use the included zlib and you don't want to do that,
9387 # you should use the --with-system-zlib option for the configure script.
9389 if test x
${use_gnu_as} = x
&&
9390 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9392 extra_host_args
="$extra_host_args --with-gnu-as"
9395 if test x
${use_gnu_ld} = x
&&
9396 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9398 extra_host_args
="$extra_host_args --with-gnu-ld"
9401 if test x
${use_included_zlib} = x
&&
9402 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9405 with_system_zlib
=yes
9406 extra_host_args
="$extra_host_args --with-system-zlib"
9409 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9410 # can detect this case.
9412 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9414 extra_host_args
="$extra_host_args --with-newlib"
9417 # Handle ${copy_dirs}
9418 set fnord
${copy_dirs}
9420 while test $# != 0 ; do
9421 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9424 echo Copying
$1 to
$2
9426 # Use the install script to create the directory and all required
9427 # parent directories.
9428 if test -d $2 ; then
9432 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9435 # Copy the directory, assuming we have tar.
9436 # FIXME: Should we use B in the second tar? Not all systems support it.
9437 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9439 # It is the responsibility of the user to correctly adjust all
9440 # symlinks. If somebody can figure out how to handle them correctly
9441 # here, feel free to add the code.
9448 # Determine a target-dependent exec_prefix that the installed
9449 # gcc will search in. Keep this list sorted by triplet, with
9450 # the *-*-osname triplets last.
9453 i
[34567]86-pc-msdosdjgpp*)
9454 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9459 md_exec_prefix
=/usr
/ccs
/bin
9463 extra_arflags_for_target
=
9464 extra_nmflags_for_target
=
9465 extra_ranlibflags_for_target
=
9466 target_makefile_frag
=/dev
/null
9469 target_makefile_frag
="config/mt-spu"
9471 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9472 target_makefile_frag
="config/mt-sde"
9474 mipsisa
*-*-elfoabi*)
9475 target_makefile_frag
="config/mt-mips-elfoabi"
9477 mips
*-*-*linux
* | mips
*-*-gnu*)
9478 target_makefile_frag
="config/mt-mips-gnu"
9481 target_makefile_frag
="config/mt-nios2-elf"
9484 target_makefile_frag
="config/mt-android"
9486 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9487 target_makefile_frag
="config/mt-gnu"
9489 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9490 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9491 # commands to handle both 32-bit and 64-bit objects. These flags are
9492 # harmless if we're using GNU nm or ar.
9493 extra_arflags_for_target
=" -X32_64"
9494 extra_nmflags_for_target
=" -B -X32_64"
9498 alphaieee_frag
=/dev
/null
9501 # This just makes sure to use the -mieee option to build target libs.
9502 # This should probably be set individually by each library.
9503 alphaieee_frag
="config/mt-alphaieee"
9507 # If --enable-target-optspace always use -Os instead of -O2 to build
9508 # the target libraries, similarly if it is not specified, use -Os
9509 # on selected platforms.
9510 ospace_frag
=/dev
/null
9511 case "${enable_target_optspace}:${target}" in
9513 ospace_frag
="config/mt-ospace"
9516 ospace_frag
="config/mt-d30v"
9518 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9519 ospace_frag
="config/mt-ospace"
9524 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9528 # Some systems (e.g., one of the i386-aix systems the gas testers are
9529 # using) don't handle "\$" correctly, so don't use it here.
9530 tooldir
='${exec_prefix}'/${target_noncanonical}
9531 build_tooldir
=${tooldir}
9533 # Create a .gdbinit file which runs the one in srcdir
9534 # and tells GDB to look there for source files.
9536 if test -r ${srcdir}/.gdbinit
; then
9539 *) cat > .
/.gdbinit
<<EOF
9543 source ${srcdir}/.gdbinit
9549 # Make sure that the compiler is able to generate an executable. If it
9550 # can't, we are probably in trouble. We don't care whether we can run the
9551 # executable--we might be using a cross compiler--we only care whether it
9552 # can be created. At this point the main configure script has set CC.
9554 echo "int main () { return 0; }" > conftest.c
9555 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9556 if test $?
= 0 ; then
9557 if test -s conftest ||
test -s conftest.exe
; then
9563 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9564 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9571 # Decide which environment variable is used to find dynamic libraries.
9573 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9574 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9575 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9576 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9579 # On systems where the dynamic library environment variable is PATH,
9580 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9581 # built executables to PATH.
9582 if test "$RPATH_ENVVAR" = PATH
; then
9583 GCC_SHLIB_SUBDIR
=/shlib
9588 # Adjust the toplevel makefile according to whether bootstrap was selected.
9589 case $enable_bootstrap in
9591 bootstrap_suffix
=bootstrap
9592 BUILD_CONFIG
=bootstrap-debug
9595 bootstrap_suffix
=no-bootstrap
9600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9601 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9604 # Check whether --with-build-config was given.
9605 if test "${with_build_config+set}" = set; then :
9606 withval
=$with_build_config; case $with_build_config in
9607 yes) with_build_config
= ;;
9608 no
) with_build_config
= BUILD_CONFIG
= ;;
9613 if test "x${with_build_config}" != x
; then
9614 BUILD_CONFIG
=$with_build_config
9616 case $BUILD_CONFIG in
9618 if echo "int f (void) { return 0; }" > conftest.c
&&
9619 ${CC} -c conftest.c
&&
9620 mv conftest.o conftest.o.g0
&&
9621 ${CC} -c -g conftest.c
&&
9622 mv conftest.o conftest.o.g
&&
9623 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9628 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9633 $as_echo "$BUILD_CONFIG" >&6; }
9636 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9638 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9639 # Check whether --enable-vtable-verify was given.
9640 if test "${enable_vtable_verify+set}" = set; then :
9641 enableval
=$enable_vtable_verify; case "$enableval" in
9642 yes) enable_vtable_verify
=yes ;;
9643 no
) enable_vtable_verify
=no
;;
9644 *) enable_vtable_verify
=no
;;
9647 enable_vtable_verify
=no
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9651 $as_echo "$enable_vtable_verify" >&6; }
9653 # Record target_configdirs and the configure arguments for target and
9654 # build configuration in Makefile.
9655 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9656 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9657 bootstrap_fixincludes
=no
9659 # If we are building libgomp, bootstrap it.
9660 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9661 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9664 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9665 # or bootstrap-ubsan, bootstrap it.
9666 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9667 case "$BUILD_CONFIG" in
9668 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9669 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9670 bootstrap_fixincludes
=yes
9675 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9676 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9677 test "$enable_vtable_verify" != no
; then
9678 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9681 # If we are building libatomic and the list of enabled languages includes the
9682 # D frontend, bootstrap it.
9683 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9684 case ,${enable_languages}, in
9686 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
9691 # Determine whether gdb needs tk/tcl or not.
9692 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9693 # and in that case we want gdb to be built without tk. Ugh!
9694 # In fact I believe gdb is the *only* package directly dependent on tk,
9695 # so we should be able to put the 'maybe's in unconditionally and
9696 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9697 # 100% sure that that's safe though.
9699 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9700 case "$enable_gdbtk" in
9704 GDB_TK
="${gdb_tk}" ;;
9706 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9707 # distro. Eventually someone will fix this and move Insight, nee
9708 # gdbtk to a separate directory.
9709 if test -d ${srcdir}/gdb
/gdbtk
; then
9716 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9717 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9719 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9720 # else does, only include them if one of these is built. The Makefile
9721 # provides the ordering, so it's enough here to add to the list.
9722 case " ${configdirs} " in
9724 configdirs
="${configdirs} gnulib gdbsupport"
9727 configdirs
="${configdirs} gnulib gdbsupport"
9730 configdirs
="${configdirs} gnulib"
9734 # Strip out unwanted targets.
9736 # While at that, we remove Makefiles if we were started for recursive
9737 # configuration, so that the top-level Makefile reconfigures them,
9738 # like we used to do when configure itself was recursive.
9740 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9741 # but now we're fixing up the Makefile ourselves with the additional
9742 # commands passed to AC_CONFIG_FILES. Use separate variables
9743 # extrasub-{build,host,target} not because there is any reason to split
9744 # the substitutions up that way, but only to remain below the limit of
9745 # 99 commands in a script, for HP-UX sed.
9747 # Do not nest @if/@endif or @unless/@endunless pairs, because
9748 # configure will not warn you at all.
9750 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9751 yes:yes:*\ gold\
*:*,c
++,*) ;;
9752 yes:yes:*\ gold\
*:*)
9753 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9758 for module
in ${build_configdirs} ; do
9759 if test -z "${no_recursion}" \
9760 && test -f ${build_subdir}/${module}/Makefile
; then
9761 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9762 rm -f ${build_subdir}/${module}/Makefile
9764 extrasub_build
="$extrasub_build
9765 /^@if build-$module\$/d
9766 /^@endif build-$module\$/d
9767 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9768 /^@if build-$module-$bootstrap_suffix\$/d
9769 /^@endif build-$module-$bootstrap_suffix\$/d
9770 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9773 for module
in ${configdirs} ; do
9774 if test -z "${no_recursion}"; then
9775 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9776 if test -f ${file}; then
9777 echo 1>&2 "*** removing ${file} to force reconfigure"
9782 case ${module},${bootstrap_fixincludes} in
9783 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9784 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9786 extrasub_host
="$extrasub_host
9788 /^@endif $module\$/d
9789 /^@unless $module\$/,/^@endunless $module\$/d
9790 /^@if $module-$host_bootstrap_suffix\$/d
9791 /^@endif $module-$host_bootstrap_suffix\$/d
9792 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9795 for module
in ${target_configdirs} ; do
9796 if test -z "${no_recursion}" \
9797 && test -f ${target_subdir}/${module}/Makefile
; then
9798 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9799 rm -f ${target_subdir}/${module}/Makefile
9802 # We only bootstrap target libraries listed in bootstrap_target_libs.
9803 case $bootstrap_target_libs in
9804 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9805 *) target_bootstrap_suffix
=no-bootstrap
;;
9808 extrasub_target
="$extrasub_target
9809 /^@if target-$module\$/d
9810 /^@endif target-$module\$/d
9811 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9812 /^@if target-$module-$target_bootstrap_suffix\$/d
9813 /^@endif target-$module-$target_bootstrap_suffix\$/d
9814 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9817 # Do the final fixup along with target modules.
9818 extrasub_target
="$extrasub_target
9823 if test "$enable_pgo_build" != "no"; then
9824 extrasub_build
="$extrasub_build
9826 /^@endif pgo-build\$/d"
9829 # Create the serialization dependencies. This uses a temporary file.
9831 # Check whether --enable-serial-configure was given.
9832 if test "${enable_serial_configure+set}" = set; then :
9833 enableval
=$enable_serial_configure;
9837 case ${enable_serial_configure} in
9839 enable_serial_build_configure
=yes
9840 enable_serial_host_configure
=yes
9841 enable_serial_target_configure
=yes
9845 # These force 'configure's to be done one at a time, to avoid problems
9846 # with contention over a shared config.cache.
9848 echo '# serdep.tmp' > serdep.tmp
9850 test "x${enable_serial_build_configure}" = xyes
&&
9851 for item
in ${build_configdirs} ; do
9854 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
9859 test "x${enable_serial_host_configure}" = xyes
&&
9860 for item
in ${configdirs} ; do
9863 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
9868 test "x${enable_serial_target_configure}" = xyes
&&
9869 for item
in ${target_configdirs} ; do
9872 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
9876 serialization_dependencies
=serdep.tmp
9879 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9880 # target, nonopt, and variable assignments. These are the ones we
9881 # might not want to pass down to subconfigures. The exception being
9882 # --cache-file=/dev/null, which is used to turn off the use of cache
9883 # files altogether, and which should be passed on to subconfigures.
9884 # Also strip program-prefix, program-suffix, and program-transform-name,
9885 # so that we can pass down a consistent program-transform-name.
9890 eval "set -- $ac_configure_args"
9893 if test X
"$skip_next" = X
"yes"; then
9897 if test X
"$keep_next" = X
"yes"; then
9900 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9902 baseargs
="$baseargs '$ac_arg'"
9903 tbaseargs
="$tbaseargs '$ac_arg'"
9908 # Handle separated arguments. Based on the logic generated by
9911 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
9912 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
9913 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
9914 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
9928 --with-* |
--without-*)
9929 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9933 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
9936 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
9945 mpc | mpfr | gmp | isl
)
9946 # If we're processing --with-$lib, --with-$lib-include or
9947 # --with-$lib-lib, for one of the libs above, and target is
9948 # different from host, don't pass the current argument to any
9949 # target library's configure.
9950 if test x
$is_cross_compiler = xyes
; then
9959 --cache-file=/dev
/null | \
9960 -cache-file=/dev
/null
)
9961 # Handled here to avoid the test to skip args below.
9962 baseargs
="$baseargs '$ac_arg'"
9963 tbaseargs
="$tbaseargs '$ac_arg'"
9964 # Assert: $separate_arg should always be no.
9965 keep_next
=$separate_arg
9981 -program-prefix* | \
9982 -program-suffix* | \
9983 -program-transform-name* )
9984 skip_next
=$separate_arg
9988 # An option. Add it.
9991 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9993 baseargs
="$baseargs '$ac_arg'"
9994 if test X
"$skip_targ" = Xno
; then
9995 tbaseargs
="$tbaseargs '$ac_arg'"
9997 keep_next
=$separate_arg
10000 # Either a variable assignment, or a nonopt (triplet). Don't
10001 # pass it down; let the Makefile handle this.
10006 # Remove the initial space we just introduced and, as these will be
10007 # expanded by make, quote '$'.
10008 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10010 # Add in --program-transform-name, after --program-prefix and
10011 # --program-suffix have been applied to it. Autoconf has already
10012 # doubled dollar signs and backslashes in program_transform_name; we want
10013 # the backslashes un-doubled, and then the entire thing wrapped in single
10014 # quotes, because this will be expanded first by make and then by the shell.
10015 # Also, because we want to override the logic in subdir configure scripts to
10016 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10017 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10018 ${program_transform_name}
10020 gcc_transform_name
=`cat conftestsed.out`
10021 rm -f conftestsed.out
10022 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
10023 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10024 if test "$silent" = yes; then
10025 baseargs
="$baseargs --silent"
10026 tbaseargs
="$tbaseargs --silent"
10029 baseargs
="$baseargs --disable-option-checking"
10030 tbaseargs
="$tbaseargs --disable-option-checking"
10032 if test "$enable_year2038" = no
; then
10033 baseargs
="$baseargs --disable-year2038"
10034 tbaseargs
="$tbaseargs --disable-year2038"
10037 # Record and document user additions to sub configure arguments.
10042 # For the build-side libraries, we just need to pretend we're native,
10043 # and not use the same cache file. Multilibs are neither needed nor
10044 # desired. We can't even use the same cache file for all build-side
10045 # libraries, as they're compiled differently; some with C, some with
10046 # C++ or with different feature-enabling options.
10047 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
10049 # For host modules, accept cache file option, or specification as blank.
10050 case "${cache_file}" in
10052 cache_file_option
="" ;;
10053 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10054 cache_file_option
="--cache-file=${cache_file}" ;;
10056 cache_file_option
="--cache-file=../${cache_file}" ;;
10059 # Host dirs don't like to share a cache file either, horribly enough.
10060 # This seems to be due to autoconf 2.5x stupidity.
10061 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10063 target_configargs
="$target_configargs ${tbaseargs}"
10065 # Passing a --with-cross-host argument lets the target libraries know
10066 # whether they are being built with a cross-compiler or being built
10067 # native. However, it would be better to use other mechanisms to make the
10068 # sorts of decisions they want to make on this basis. Please consider
10069 # this option to be deprecated. FIXME.
10070 if test x
${is_cross_compiler} = xyes
; then
10071 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10074 # Special user-friendly check for native x86_64-linux build, if
10075 # multilib is not explicitly enabled.
10076 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10077 x86_64-
*linux
*:yes:$build:$build:)
10078 # Make sure we have a development environment that handles 32-bit
10080 echo "int main () { return 0; }" > conftest.c
10081 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10082 if test $?
= 0 ; then
10083 if test -s conftest ||
test -s conftest.exe
; then
10088 if test x
${dev64} != xyes
; then
10089 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
10094 # Default to --enable-multilib.
10095 if test x
${enable_multilib} = x
; then
10096 target_configargs
="--enable-multilib ${target_configargs}"
10099 # Pass --with-newlib if appropriate. Note that target_configdirs has
10100 # changed from the earlier setting of with_newlib.
10101 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10102 target_configargs
="--with-newlib ${target_configargs}"
10105 # Different target subdirs use different values of certain variables
10106 # (notably CXX). Worse, multilibs use *lots* of different values.
10107 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10108 # it doesn't automatically accept command-line overrides of them.
10109 # This means it's not safe for target subdirs to share a cache file,
10110 # which is disgusting, but there you have it. Hopefully this can be
10111 # fixed in future. It's still worthwhile to use a cache file for each
10112 # directory. I think.
10114 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10115 # We need to pass --target, as newer autoconf's requires consistency
10116 # for target_alias and gcc doesn't manage it consistently.
10117 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10120 case " $target_configdirs " in
10122 case " $target_configargs " in
10123 *" --with-newlib "*)
10126 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10130 # If we're not building GCC, don't discard standard headers.
10131 if test -d ${srcdir}/gcc
; then
10132 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10134 if test "${build}" != "${host}"; then
10135 # On Canadian crosses, CC_FOR_TARGET will have already been set
10136 # by `configure', so we won't have an opportunity to add -Bgcc/
10137 # to it. This is right: we don't want to search that directory
10138 # for binaries, but we want the header files in there, so add
10140 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10142 # Someone might think of using the pre-installed headers on
10143 # Canadian crosses, in case the installed compiler is not fully
10144 # compatible with the compiler being built. In this case, it
10145 # would be better to flag an error than risking having
10146 # incompatible object files being constructed. We can't
10147 # guarantee that an error will be flagged, but let's hope the
10148 # compiler will do it, when presented with incompatible header
10153 case "${target}-${is_cross_compiler}" in
10154 i
[3456789]86-*-linux*-no)
10155 # Here host == target, so we don't need to build gcc,
10156 # so we don't want to discard standard headers.
10157 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10160 # If we're building newlib, use its generic headers last, but search
10161 # for any libc-related directories first (so make it the last -B
10163 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10165 # If we're building libgloss, find the startup file, simulator library
10166 # and linker script.
10167 case " $target_configdirs " in
10169 # Look for startup file, simulator library and maybe linker script.
10170 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10171 # Look for libnosys.a in case the target needs it.
10172 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10173 # Most targets have the linker script in the source directory.
10174 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10185 x86_64-
*mingw
* |
*-w64-mingw*)
10186 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10187 # however, use a symlink named 'mingw' in ${prefix} .
10188 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10191 # MinGW can't be handled as Cygwin above since it does not use newlib.
10192 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'
10196 # Allow the user to override the flags for
10197 # our build compiler if desired.
10198 if test x
"${build}" = x
"${host}" ; then
10199 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10200 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10201 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10202 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10205 # On Canadian crosses, we'll be searching the right directories for
10206 # the previously-installed cross compiler, so don't bother to add
10207 # flags for directories within the install tree of the compiler
10208 # being built; programs in there won't even run.
10209 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10210 # Search for pre-installed headers if nothing else fits.
10211 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10214 if test "x
${use_gnu_ld}" = x &&
10215 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10216 # Arrange for us to find uninstalled linker scripts.
10217 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10220 # Search for other target-specific linker scripts and such.
10221 case "${target}" in
10223 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10225 # The VxWorks support for shared libraries is getting in
10226 # incrementally. Make sure it doesn't get activated implicitly:
10228 if test "${enable_shared-unset}" = unset ; then
10230 # So the build of libraries knows ...
10231 target_configargs="${target_configargs} --disable-shared"
10233 host_configargs="${host_configargs} --disable-shared"
10238 # Makefile fragments.
10239 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10241 eval fragval=\$$frag
10242 if test $fragval != /dev/null; then
10243 eval $frag=${srcdir}/$fragval
10251 # Miscellanea: directories, flags, etc.
10260 # Build module lists & subconfigure args.
10264 # Host module lists & subconfigure args.
10269 # Target module lists & subconfigure args.
10294 # Generate default definitions for YACC, M4, LEX and other programs that run
10295 # on the build machine. These are used if the Makefile can't locate these
10296 # programs in objdir.
10297 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10299 for ac_prog in 'bison -y' byacc yacc
10301 # Extract the first word of "$ac_prog", so it can be a program name with args.
10302 set dummy $ac_prog; ac_word=$2
10303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10304 $as_echo_n "checking
for $ac_word...
" >&6; }
10305 if ${ac_cv_prog_YACC+:} false; then :
10306 $as_echo_n "(cached
) " >&6
10308 if test -n "$YACC"; then
10309 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10311 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10312 for as_dir in $PATH
10315 test -z "$as_dir" && as_dir=.
10316 for ac_exec_ext in '' $ac_executable_extensions; do
10317 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10318 ac_cv_prog_YACC="$ac_prog"
10319 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10328 YACC=$ac_cv_prog_YACC
10329 if test -n "$YACC"; then
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10331 $as_echo "$YACC" >&6; }
10333 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10334 $as_echo "no
" >&6; }
10338 test -n "$YACC" && break
10340 test -n "$YACC" || YACC="$MISSING bison
-y"
10342 case " $build_configdirs " in
10343 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10346 for ac_prog in bison
10348 # Extract the first word of "$ac_prog", so it can be a program name with args.
10349 set dummy $ac_prog; ac_word=$2
10350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10351 $as_echo_n "checking
for $ac_word...
" >&6; }
10352 if ${ac_cv_prog_BISON+:} false; then :
10353 $as_echo_n "(cached
) " >&6
10355 if test -n "$BISON"; then
10356 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10359 for as_dir in $PATH
10362 test -z "$as_dir" && as_dir=.
10363 for ac_exec_ext in '' $ac_executable_extensions; do
10364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10365 ac_cv_prog_BISON="$ac_prog"
10366 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10375 BISON=$ac_cv_prog_BISON
10376 if test -n "$BISON"; then
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10378 $as_echo "$BISON" >&6; }
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10381 $as_echo "no
" >&6; }
10385 test -n "$BISON" && break
10387 test -n "$BISON" || BISON="$MISSING bison
"
10389 case " $build_configdirs " in
10390 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10393 for ac_prog in gm4 gnum4 m4
10395 # Extract the first word of "$ac_prog", so it can be a program name with args.
10396 set dummy $ac_prog; ac_word=$2
10397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10398 $as_echo_n "checking
for $ac_word...
" >&6; }
10399 if ${ac_cv_prog_M4+:} false; then :
10400 $as_echo_n "(cached
) " >&6
10402 if test -n "$M4"; then
10403 ac_cv_prog_M4="$M4" # Let the user override the test.
10405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10406 for as_dir in $PATH
10409 test -z "$as_dir" && as_dir=.
10410 for ac_exec_ext in '' $ac_executable_extensions; do
10411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10412 ac_cv_prog_M4="$ac_prog"
10413 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10423 if test -n "$M4"; then
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10425 $as_echo "$M4" >&6; }
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10428 $as_echo "no
" >&6; }
10432 test -n "$M4" && break
10434 test -n "$M4" || M4="$MISSING m4"
10436 case " $build_configdirs " in
10437 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10440 for ac_prog in flex lex
10442 # Extract the first word of "$ac_prog", so it can be a program name with args.
10443 set dummy $ac_prog; ac_word=$2
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10445 $as_echo_n "checking
for $ac_word...
" >&6; }
10446 if ${ac_cv_prog_LEX+:} false; then :
10447 $as_echo_n "(cached
) " >&6
10449 if test -n "$LEX"; then
10450 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10453 for as_dir in $PATH
10456 test -z "$as_dir" && as_dir=.
10457 for ac_exec_ext in '' $ac_executable_extensions; do
10458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10459 ac_cv_prog_LEX="$ac_prog"
10460 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10469 LEX=$ac_cv_prog_LEX
10470 if test -n "$LEX"; then
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10472 $as_echo "$LEX" >&6; }
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10475 $as_echo "no
" >&6; }
10479 test -n "$LEX" && break
10481 test -n "$LEX" || LEX="$MISSING flex
"
10483 case " $build_configdirs " in
10484 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10485 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10488 for ac_prog in flex
10490 # Extract the first word of "$ac_prog", so it can be a program name with args.
10491 set dummy $ac_prog; ac_word=$2
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10493 $as_echo_n "checking
for $ac_word...
" >&6; }
10494 if ${ac_cv_prog_FLEX+:} false; then :
10495 $as_echo_n "(cached
) " >&6
10497 if test -n "$FLEX"; then
10498 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501 for as_dir in $PATH
10504 test -z "$as_dir" && as_dir=.
10505 for ac_exec_ext in '' $ac_executable_extensions; do
10506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10507 ac_cv_prog_FLEX="$ac_prog"
10508 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10517 FLEX=$ac_cv_prog_FLEX
10518 if test -n "$FLEX"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10520 $as_echo "$FLEX" >&6; }
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10523 $as_echo "no
" >&6; }
10527 test -n "$FLEX" && break
10529 test -n "$FLEX" || FLEX="$MISSING flex
"
10531 case " $build_configdirs " in
10532 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10535 for ac_prog in makeinfo
10537 # Extract the first word of "$ac_prog", so it can be a program name with args.
10538 set dummy $ac_prog; ac_word=$2
10539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10540 $as_echo_n "checking
for $ac_word...
" >&6; }
10541 if ${ac_cv_prog_MAKEINFO+:} false; then :
10542 $as_echo_n "(cached
) " >&6
10544 if test -n "$MAKEINFO"; then
10545 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10548 for as_dir in $PATH
10551 test -z "$as_dir" && as_dir=.
10552 for ac_exec_ext in '' $ac_executable_extensions; do
10553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10554 ac_cv_prog_MAKEINFO="$ac_prog"
10555 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10564 MAKEINFO=$ac_cv_prog_MAKEINFO
10565 if test -n "$MAKEINFO"; then
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10567 $as_echo "$MAKEINFO" >&6; }
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10570 $as_echo "no
" >&6; }
10574 test -n "$MAKEINFO" && break
10576 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10578 case " $build_configdirs " in
10579 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10582 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10583 # higher, else we use the "missing
" dummy.
10584 if ${MAKEINFO} --version \
10585 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10588 MAKEINFO="$MISSING makeinfo
"
10594 # FIXME: expect and dejagnu may become build tools?
10596 for ac_prog in expect
10598 # Extract the first word of "$ac_prog", so it can be a program name with args.
10599 set dummy $ac_prog; ac_word=$2
10600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10601 $as_echo_n "checking
for $ac_word...
" >&6; }
10602 if ${ac_cv_prog_EXPECT+:} false; then :
10603 $as_echo_n "(cached
) " >&6
10605 if test -n "$EXPECT"; then
10606 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10609 for as_dir in $PATH
10612 test -z "$as_dir" && as_dir=.
10613 for ac_exec_ext in '' $ac_executable_extensions; do
10614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10615 ac_cv_prog_EXPECT="$ac_prog"
10616 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10625 EXPECT=$ac_cv_prog_EXPECT
10626 if test -n "$EXPECT"; then
10627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10628 $as_echo "$EXPECT" >&6; }
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10631 $as_echo "no
" >&6; }
10635 test -n "$EXPECT" && break
10637 test -n "$EXPECT" || EXPECT="expect
"
10639 case " $configdirs " in
10641 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10645 for ac_prog in runtest
10647 # Extract the first word of "$ac_prog", so it can be a program name with args.
10648 set dummy $ac_prog; ac_word=$2
10649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10650 $as_echo_n "checking
for $ac_word...
" >&6; }
10651 if ${ac_cv_prog_RUNTEST+:} false; then :
10652 $as_echo_n "(cached
) " >&6
10654 if test -n "$RUNTEST"; then
10655 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10658 for as_dir in $PATH
10661 test -z "$as_dir" && as_dir=.
10662 for ac_exec_ext in '' $ac_executable_extensions; do
10663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10664 ac_cv_prog_RUNTEST="$ac_prog"
10665 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10674 RUNTEST=$ac_cv_prog_RUNTEST
10675 if test -n "$RUNTEST"; then
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10677 $as_echo "$RUNTEST" >&6; }
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10680 $as_echo "no
" >&6; }
10684 test -n "$RUNTEST" && break
10686 test -n "$RUNTEST" || RUNTEST="runtest
"
10688 case " $configdirs " in
10690 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10697 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10698 ncn_target_tool_prefix=
10699 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10703 if test -n "$AR"; then
10705 elif test -n "$ac_cv_prog_AR"; then
10709 if test -n "$ac_cv_prog_AR"; then
10710 for ncn_progname in ar; do
10711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10712 set dummy ${ncn_progname}; ac_word=$2
10713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10714 $as_echo_n "checking
for $ac_word...
" >&6; }
10715 if ${ac_cv_prog_AR+:} false; then :
10716 $as_echo_n "(cached
) " >&6
10718 if test -n "$AR"; then
10719 ac_cv_prog_AR="$AR" # Let the user override the test.
10721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10722 for as_dir in $PATH
10725 test -z "$as_dir" && as_dir=.
10726 for ac_exec_ext in '' $ac_executable_extensions; do
10727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10728 ac_cv_prog_AR="${ncn_progname}"
10729 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10739 if test -n "$AR"; then
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10741 $as_echo "$AR" >&6; }
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10744 $as_echo "no
" >&6; }
10751 for ncn_progname in ar; do
10752 if test -n "$ncn_tool_prefix"; then
10753 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10754 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10756 $as_echo_n "checking
for $ac_word...
" >&6; }
10757 if ${ac_cv_prog_AR+:} false; then :
10758 $as_echo_n "(cached
) " >&6
10760 if test -n "$AR"; then
10761 ac_cv_prog_AR="$AR" # Let the user override the test.
10763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10764 for as_dir in $PATH
10767 test -z "$as_dir" && as_dir=.
10768 for ac_exec_ext in '' $ac_executable_extensions; do
10769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10770 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10771 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10781 if test -n "$AR"; then
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10783 $as_echo "$AR" >&6; }
10785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10786 $as_echo "no
" >&6; }
10791 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10792 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10793 set dummy ${ncn_progname}; ac_word=$2
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10795 $as_echo_n "checking
for $ac_word...
" >&6; }
10796 if ${ac_cv_prog_AR+:} false; then :
10797 $as_echo_n "(cached
) " >&6
10799 if test -n "$AR"; then
10800 ac_cv_prog_AR="$AR" # Let the user override the test.
10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803 for as_dir in $PATH
10806 test -z "$as_dir" && as_dir=.
10807 for ac_exec_ext in '' $ac_executable_extensions; do
10808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10809 ac_cv_prog_AR="${ncn_progname}"
10810 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10820 if test -n "$AR"; then
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10822 $as_echo "$AR" >&6; }
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10825 $as_echo "no
" >&6; }
10830 test -n "$ac_cv_prog_AR" && break
10833 if test -z "$ac_cv_prog_AR" ; then
10835 if test $build = $host ; then
10838 AR="${ncn_tool_prefix}$2"
10844 if test -n "$AS"; then
10846 elif test -n "$ac_cv_prog_AS"; then
10850 if test -n "$ac_cv_prog_AS"; then
10851 for ncn_progname in as; do
10852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10853 set dummy ${ncn_progname}; ac_word=$2
10854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10855 $as_echo_n "checking
for $ac_word...
" >&6; }
10856 if ${ac_cv_prog_AS+:} false; then :
10857 $as_echo_n "(cached
) " >&6
10859 if test -n "$AS"; then
10860 ac_cv_prog_AS="$AS" # Let the user override the test.
10862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10863 for as_dir in $PATH
10866 test -z "$as_dir" && as_dir=.
10867 for ac_exec_ext in '' $ac_executable_extensions; do
10868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10869 ac_cv_prog_AS="${ncn_progname}"
10870 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10880 if test -n "$AS"; then
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10882 $as_echo "$AS" >&6; }
10884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10885 $as_echo "no
" >&6; }
10892 for ncn_progname in as; do
10893 if test -n "$ncn_tool_prefix"; then
10894 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10895 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10897 $as_echo_n "checking
for $ac_word...
" >&6; }
10898 if ${ac_cv_prog_AS+:} false; then :
10899 $as_echo_n "(cached
) " >&6
10901 if test -n "$AS"; then
10902 ac_cv_prog_AS="$AS" # Let the user override the test.
10904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10905 for as_dir in $PATH
10908 test -z "$as_dir" && as_dir=.
10909 for ac_exec_ext in '' $ac_executable_extensions; do
10910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10911 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10912 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10922 if test -n "$AS"; then
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10924 $as_echo "$AS" >&6; }
10926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10927 $as_echo "no
" >&6; }
10932 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10934 set dummy ${ncn_progname}; ac_word=$2
10935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10936 $as_echo_n "checking
for $ac_word...
" >&6; }
10937 if ${ac_cv_prog_AS+:} false; then :
10938 $as_echo_n "(cached
) " >&6
10940 if test -n "$AS"; then
10941 ac_cv_prog_AS="$AS" # Let the user override the test.
10943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10944 for as_dir in $PATH
10947 test -z "$as_dir" && as_dir=.
10948 for ac_exec_ext in '' $ac_executable_extensions; do
10949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10950 ac_cv_prog_AS="${ncn_progname}"
10951 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10961 if test -n "$AS"; then
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10963 $as_echo "$AS" >&6; }
10965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10966 $as_echo "no
" >&6; }
10971 test -n "$ac_cv_prog_AS" && break
10974 if test -z "$ac_cv_prog_AS" ; then
10976 if test $build = $host ; then
10979 AS="${ncn_tool_prefix}$2"
10985 if test -n "$DLLTOOL"; then
10986 ac_cv_prog_DLLTOOL=$DLLTOOL
10987 elif test -n "$ac_cv_prog_DLLTOOL"; then
10988 DLLTOOL=$ac_cv_prog_DLLTOOL
10991 if test -n "$ac_cv_prog_DLLTOOL"; then
10992 for ncn_progname in dlltool; do
10993 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10994 set dummy ${ncn_progname}; ac_word=$2
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10996 $as_echo_n "checking
for $ac_word...
" >&6; }
10997 if ${ac_cv_prog_DLLTOOL+:} false; then :
10998 $as_echo_n "(cached
) " >&6
11000 if test -n "$DLLTOOL"; then
11001 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11004 for as_dir in $PATH
11007 test -z "$as_dir" && as_dir=.
11008 for ac_exec_ext in '' $ac_executable_extensions; do
11009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11010 ac_cv_prog_DLLTOOL="${ncn_progname}"
11011 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11020 DLLTOOL=$ac_cv_prog_DLLTOOL
11021 if test -n "$DLLTOOL"; then
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11023 $as_echo "$DLLTOOL" >&6; }
11025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11026 $as_echo "no
" >&6; }
11033 for ncn_progname in dlltool; do
11034 if test -n "$ncn_tool_prefix"; then
11035 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11036 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11038 $as_echo_n "checking
for $ac_word...
" >&6; }
11039 if ${ac_cv_prog_DLLTOOL+:} false; then :
11040 $as_echo_n "(cached
) " >&6
11042 if test -n "$DLLTOOL"; then
11043 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11046 for as_dir in $PATH
11049 test -z "$as_dir" && as_dir=.
11050 for ac_exec_ext in '' $ac_executable_extensions; do
11051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11052 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11053 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11062 DLLTOOL=$ac_cv_prog_DLLTOOL
11063 if test -n "$DLLTOOL"; then
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11065 $as_echo "$DLLTOOL" >&6; }
11067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11068 $as_echo "no
" >&6; }
11073 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11074 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11075 set dummy ${ncn_progname}; ac_word=$2
11076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11077 $as_echo_n "checking
for $ac_word...
" >&6; }
11078 if ${ac_cv_prog_DLLTOOL+:} false; then :
11079 $as_echo_n "(cached
) " >&6
11081 if test -n "$DLLTOOL"; then
11082 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11085 for as_dir in $PATH
11088 test -z "$as_dir" && as_dir=.
11089 for ac_exec_ext in '' $ac_executable_extensions; do
11090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11091 ac_cv_prog_DLLTOOL="${ncn_progname}"
11092 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11101 DLLTOOL=$ac_cv_prog_DLLTOOL
11102 if test -n "$DLLTOOL"; then
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11104 $as_echo "$DLLTOOL" >&6; }
11106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11107 $as_echo "no
" >&6; }
11112 test -n "$ac_cv_prog_DLLTOOL" && break
11115 if test -z "$ac_cv_prog_DLLTOOL" ; then
11117 if test $build = $host ; then
11120 DLLTOOL="${ncn_tool_prefix}$2"
11126 if test -n "$DSYMUTIL"; then
11127 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11128 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11129 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11132 if test -n "$ac_cv_prog_DSYMUTIL"; then
11133 for ncn_progname in dsymutil; do
11134 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11135 set dummy ${ncn_progname}; ac_word=$2
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11137 $as_echo_n "checking
for $ac_word...
" >&6; }
11138 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11139 $as_echo_n "(cached
) " >&6
11141 if test -n "$DSYMUTIL"; then
11142 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11145 for as_dir in $PATH
11148 test -z "$as_dir" && as_dir=.
11149 for ac_exec_ext in '' $ac_executable_extensions; do
11150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11151 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11152 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11161 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11162 if test -n "$DSYMUTIL"; then
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11164 $as_echo "$DSYMUTIL" >&6; }
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11167 $as_echo "no
" >&6; }
11174 for ncn_progname in dsymutil; do
11175 if test -n "$ncn_tool_prefix"; then
11176 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11177 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11179 $as_echo_n "checking
for $ac_word...
" >&6; }
11180 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11181 $as_echo_n "(cached
) " >&6
11183 if test -n "$DSYMUTIL"; then
11184 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11187 for as_dir in $PATH
11190 test -z "$as_dir" && as_dir=.
11191 for ac_exec_ext in '' $ac_executable_extensions; do
11192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11193 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11194 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11203 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11204 if test -n "$DSYMUTIL"; then
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11206 $as_echo "$DSYMUTIL" >&6; }
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11209 $as_echo "no
" >&6; }
11214 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11216 set dummy ${ncn_progname}; ac_word=$2
11217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11218 $as_echo_n "checking
for $ac_word...
" >&6; }
11219 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11220 $as_echo_n "(cached
) " >&6
11222 if test -n "$DSYMUTIL"; then
11223 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11226 for as_dir in $PATH
11229 test -z "$as_dir" && as_dir=.
11230 for ac_exec_ext in '' $ac_executable_extensions; do
11231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11232 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11233 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11242 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11243 if test -n "$DSYMUTIL"; then
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11245 $as_echo "$DSYMUTIL" >&6; }
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11248 $as_echo "no
" >&6; }
11253 test -n "$ac_cv_prog_DSYMUTIL" && break
11256 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11258 if test $build = $host ; then
11261 DSYMUTIL="${ncn_tool_prefix}$2"
11267 if test -n "$LD"; then
11269 elif test -n "$ac_cv_prog_LD"; then
11273 if test -n "$ac_cv_prog_LD"; then
11274 for ncn_progname in ld; do
11275 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11276 set dummy ${ncn_progname}; ac_word=$2
11277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11278 $as_echo_n "checking
for $ac_word...
" >&6; }
11279 if ${ac_cv_prog_LD+:} false; then :
11280 $as_echo_n "(cached
) " >&6
11282 if test -n "$LD"; then
11283 ac_cv_prog_LD="$LD" # Let the user override the test.
11285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11286 for as_dir in $PATH
11289 test -z "$as_dir" && as_dir=.
11290 for ac_exec_ext in '' $ac_executable_extensions; do
11291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11292 ac_cv_prog_LD="${ncn_progname}"
11293 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11303 if test -n "$LD"; then
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11305 $as_echo "$LD" >&6; }
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11308 $as_echo "no
" >&6; }
11315 for ncn_progname in ld; do
11316 if test -n "$ncn_tool_prefix"; then
11317 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11318 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11320 $as_echo_n "checking
for $ac_word...
" >&6; }
11321 if ${ac_cv_prog_LD+:} false; then :
11322 $as_echo_n "(cached
) " >&6
11324 if test -n "$LD"; then
11325 ac_cv_prog_LD="$LD" # Let the user override the test.
11327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328 for as_dir in $PATH
11331 test -z "$as_dir" && as_dir=.
11332 for ac_exec_ext in '' $ac_executable_extensions; do
11333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11334 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11335 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11345 if test -n "$LD"; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11347 $as_echo "$LD" >&6; }
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11350 $as_echo "no
" >&6; }
11355 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11356 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11357 set dummy ${ncn_progname}; ac_word=$2
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11359 $as_echo_n "checking
for $ac_word...
" >&6; }
11360 if ${ac_cv_prog_LD+:} false; then :
11361 $as_echo_n "(cached
) " >&6
11363 if test -n "$LD"; then
11364 ac_cv_prog_LD="$LD" # Let the user override the test.
11366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11367 for as_dir in $PATH
11370 test -z "$as_dir" && as_dir=.
11371 for ac_exec_ext in '' $ac_executable_extensions; do
11372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11373 ac_cv_prog_LD="${ncn_progname}"
11374 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11384 if test -n "$LD"; then
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11386 $as_echo "$LD" >&6; }
11388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11389 $as_echo "no
" >&6; }
11394 test -n "$ac_cv_prog_LD" && break
11397 if test -z "$ac_cv_prog_LD" ; then
11399 if test $build = $host ; then
11402 LD="${ncn_tool_prefix}$2"
11408 if test -n "$LIPO"; then
11409 ac_cv_prog_LIPO=$LIPO
11410 elif test -n "$ac_cv_prog_LIPO"; then
11411 LIPO=$ac_cv_prog_LIPO
11414 if test -n "$ac_cv_prog_LIPO"; then
11415 for ncn_progname in lipo; do
11416 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11417 set dummy ${ncn_progname}; ac_word=$2
11418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11419 $as_echo_n "checking
for $ac_word...
" >&6; }
11420 if ${ac_cv_prog_LIPO+:} false; then :
11421 $as_echo_n "(cached
) " >&6
11423 if test -n "$LIPO"; then
11424 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11427 for as_dir in $PATH
11430 test -z "$as_dir" && as_dir=.
11431 for ac_exec_ext in '' $ac_executable_extensions; do
11432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11433 ac_cv_prog_LIPO="${ncn_progname}"
11434 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11443 LIPO=$ac_cv_prog_LIPO
11444 if test -n "$LIPO"; then
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11446 $as_echo "$LIPO" >&6; }
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11449 $as_echo "no
" >&6; }
11456 for ncn_progname in lipo; do
11457 if test -n "$ncn_tool_prefix"; then
11458 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11459 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11461 $as_echo_n "checking
for $ac_word...
" >&6; }
11462 if ${ac_cv_prog_LIPO+:} false; then :
11463 $as_echo_n "(cached
) " >&6
11465 if test -n "$LIPO"; then
11466 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11469 for as_dir in $PATH
11472 test -z "$as_dir" && as_dir=.
11473 for ac_exec_ext in '' $ac_executable_extensions; do
11474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11475 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11476 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11485 LIPO=$ac_cv_prog_LIPO
11486 if test -n "$LIPO"; then
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11488 $as_echo "$LIPO" >&6; }
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11491 $as_echo "no
" >&6; }
11496 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11497 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11498 set dummy ${ncn_progname}; ac_word=$2
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11500 $as_echo_n "checking
for $ac_word...
" >&6; }
11501 if ${ac_cv_prog_LIPO+:} false; then :
11502 $as_echo_n "(cached
) " >&6
11504 if test -n "$LIPO"; then
11505 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11508 for as_dir in $PATH
11511 test -z "$as_dir" && as_dir=.
11512 for ac_exec_ext in '' $ac_executable_extensions; do
11513 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11514 ac_cv_prog_LIPO="${ncn_progname}"
11515 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11524 LIPO=$ac_cv_prog_LIPO
11525 if test -n "$LIPO"; then
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11527 $as_echo "$LIPO" >&6; }
11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11530 $as_echo "no
" >&6; }
11535 test -n "$ac_cv_prog_LIPO" && break
11538 if test -z "$ac_cv_prog_LIPO" ; then
11540 if test $build = $host ; then
11543 LIPO="${ncn_tool_prefix}$2"
11549 if test -n "$NM"; then
11551 elif test -n "$ac_cv_prog_NM"; then
11555 if test -n "$ac_cv_prog_NM"; then
11556 for ncn_progname in nm; do
11557 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11558 set dummy ${ncn_progname}; ac_word=$2
11559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11560 $as_echo_n "checking
for $ac_word...
" >&6; }
11561 if ${ac_cv_prog_NM+:} false; then :
11562 $as_echo_n "(cached
) " >&6
11564 if test -n "$NM"; then
11565 ac_cv_prog_NM="$NM" # Let the user override the test.
11567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11568 for as_dir in $PATH
11571 test -z "$as_dir" && as_dir=.
11572 for ac_exec_ext in '' $ac_executable_extensions; do
11573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11574 ac_cv_prog_NM="${ncn_progname}"
11575 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11585 if test -n "$NM"; then
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11587 $as_echo "$NM" >&6; }
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11590 $as_echo "no
" >&6; }
11597 for ncn_progname in nm; do
11598 if test -n "$ncn_tool_prefix"; then
11599 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11600 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11602 $as_echo_n "checking
for $ac_word...
" >&6; }
11603 if ${ac_cv_prog_NM+:} false; then :
11604 $as_echo_n "(cached
) " >&6
11606 if test -n "$NM"; then
11607 ac_cv_prog_NM="$NM" # Let the user override the test.
11609 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11610 for as_dir in $PATH
11613 test -z "$as_dir" && as_dir=.
11614 for ac_exec_ext in '' $ac_executable_extensions; do
11615 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11616 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11617 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11627 if test -n "$NM"; then
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11629 $as_echo "$NM" >&6; }
11631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11632 $as_echo "no
" >&6; }
11637 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11638 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11639 set dummy ${ncn_progname}; ac_word=$2
11640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11641 $as_echo_n "checking
for $ac_word...
" >&6; }
11642 if ${ac_cv_prog_NM+:} false; then :
11643 $as_echo_n "(cached
) " >&6
11645 if test -n "$NM"; then
11646 ac_cv_prog_NM="$NM" # Let the user override the test.
11648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11649 for as_dir in $PATH
11652 test -z "$as_dir" && as_dir=.
11653 for ac_exec_ext in '' $ac_executable_extensions; do
11654 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11655 ac_cv_prog_NM="${ncn_progname}"
11656 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11666 if test -n "$NM"; then
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11668 $as_echo "$NM" >&6; }
11670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11671 $as_echo "no
" >&6; }
11676 test -n "$ac_cv_prog_NM" && break
11679 if test -z "$ac_cv_prog_NM" ; then
11681 if test $build = $host ; then
11684 NM="${ncn_tool_prefix}$2"
11690 if test -n "$RANLIB"; then
11691 ac_cv_prog_RANLIB=$RANLIB
11692 elif test -n "$ac_cv_prog_RANLIB"; then
11693 RANLIB=$ac_cv_prog_RANLIB
11696 if test -n "$ac_cv_prog_RANLIB"; then
11697 for ncn_progname in ranlib; do
11698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11699 set dummy ${ncn_progname}; ac_word=$2
11700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11701 $as_echo_n "checking
for $ac_word...
" >&6; }
11702 if ${ac_cv_prog_RANLIB+:} false; then :
11703 $as_echo_n "(cached
) " >&6
11705 if test -n "$RANLIB"; then
11706 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11709 for as_dir in $PATH
11712 test -z "$as_dir" && as_dir=.
11713 for ac_exec_ext in '' $ac_executable_extensions; do
11714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11715 ac_cv_prog_RANLIB="${ncn_progname}"
11716 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11725 RANLIB=$ac_cv_prog_RANLIB
11726 if test -n "$RANLIB"; then
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11728 $as_echo "$RANLIB" >&6; }
11730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11731 $as_echo "no
" >&6; }
11738 for ncn_progname in ranlib; do
11739 if test -n "$ncn_tool_prefix"; then
11740 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11741 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11743 $as_echo_n "checking
for $ac_word...
" >&6; }
11744 if ${ac_cv_prog_RANLIB+:} false; then :
11745 $as_echo_n "(cached
) " >&6
11747 if test -n "$RANLIB"; then
11748 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11751 for as_dir in $PATH
11754 test -z "$as_dir" && as_dir=.
11755 for ac_exec_ext in '' $ac_executable_extensions; do
11756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11757 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11758 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11767 RANLIB=$ac_cv_prog_RANLIB
11768 if test -n "$RANLIB"; then
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11770 $as_echo "$RANLIB" >&6; }
11772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11773 $as_echo "no
" >&6; }
11778 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11780 set dummy ${ncn_progname}; ac_word=$2
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11782 $as_echo_n "checking
for $ac_word...
" >&6; }
11783 if ${ac_cv_prog_RANLIB+:} false; then :
11784 $as_echo_n "(cached
) " >&6
11786 if test -n "$RANLIB"; then
11787 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11790 for as_dir in $PATH
11793 test -z "$as_dir" && as_dir=.
11794 for ac_exec_ext in '' $ac_executable_extensions; do
11795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11796 ac_cv_prog_RANLIB="${ncn_progname}"
11797 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11806 RANLIB=$ac_cv_prog_RANLIB
11807 if test -n "$RANLIB"; then
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11809 $as_echo "$RANLIB" >&6; }
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11812 $as_echo "no
" >&6; }
11817 test -n "$ac_cv_prog_RANLIB" && break
11820 if test -z "$ac_cv_prog_RANLIB" ; then
11826 if test -n "$STRIP"; then
11827 ac_cv_prog_STRIP=$STRIP
11828 elif test -n "$ac_cv_prog_STRIP"; then
11829 STRIP=$ac_cv_prog_STRIP
11832 if test -n "$ac_cv_prog_STRIP"; then
11833 for ncn_progname in strip; do
11834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11835 set dummy ${ncn_progname}; ac_word=$2
11836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11837 $as_echo_n "checking
for $ac_word...
" >&6; }
11838 if ${ac_cv_prog_STRIP+:} false; then :
11839 $as_echo_n "(cached
) " >&6
11841 if test -n "$STRIP"; then
11842 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11845 for as_dir in $PATH
11848 test -z "$as_dir" && as_dir=.
11849 for ac_exec_ext in '' $ac_executable_extensions; do
11850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11851 ac_cv_prog_STRIP="${ncn_progname}"
11852 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11861 STRIP=$ac_cv_prog_STRIP
11862 if test -n "$STRIP"; then
11863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11864 $as_echo "$STRIP" >&6; }
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11867 $as_echo "no
" >&6; }
11874 for ncn_progname in strip; do
11875 if test -n "$ncn_tool_prefix"; then
11876 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11877 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11879 $as_echo_n "checking
for $ac_word...
" >&6; }
11880 if ${ac_cv_prog_STRIP+:} false; then :
11881 $as_echo_n "(cached
) " >&6
11883 if test -n "$STRIP"; then
11884 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11887 for as_dir in $PATH
11890 test -z "$as_dir" && as_dir=.
11891 for ac_exec_ext in '' $ac_executable_extensions; do
11892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11893 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11894 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11903 STRIP=$ac_cv_prog_STRIP
11904 if test -n "$STRIP"; then
11905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11906 $as_echo "$STRIP" >&6; }
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11909 $as_echo "no
" >&6; }
11914 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11916 set dummy ${ncn_progname}; ac_word=$2
11917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11918 $as_echo_n "checking
for $ac_word...
" >&6; }
11919 if ${ac_cv_prog_STRIP+:} false; then :
11920 $as_echo_n "(cached
) " >&6
11922 if test -n "$STRIP"; then
11923 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11926 for as_dir in $PATH
11929 test -z "$as_dir" && as_dir=.
11930 for ac_exec_ext in '' $ac_executable_extensions; do
11931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11932 ac_cv_prog_STRIP="${ncn_progname}"
11933 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11942 STRIP=$ac_cv_prog_STRIP
11943 if test -n "$STRIP"; then
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11945 $as_echo "$STRIP" >&6; }
11947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11948 $as_echo "no
" >&6; }
11953 test -n "$ac_cv_prog_STRIP" && break
11956 if test -z "$ac_cv_prog_STRIP" ; then
11962 if test -n "$WINDRES"; then
11963 ac_cv_prog_WINDRES=$WINDRES
11964 elif test -n "$ac_cv_prog_WINDRES"; then
11965 WINDRES=$ac_cv_prog_WINDRES
11968 if test -n "$ac_cv_prog_WINDRES"; then
11969 for ncn_progname in windres; do
11970 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11971 set dummy ${ncn_progname}; ac_word=$2
11972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11973 $as_echo_n "checking
for $ac_word...
" >&6; }
11974 if ${ac_cv_prog_WINDRES+:} false; then :
11975 $as_echo_n "(cached
) " >&6
11977 if test -n "$WINDRES"; then
11978 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981 for as_dir in $PATH
11984 test -z "$as_dir" && as_dir=.
11985 for ac_exec_ext in '' $ac_executable_extensions; do
11986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11987 ac_cv_prog_WINDRES="${ncn_progname}"
11988 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11997 WINDRES=$ac_cv_prog_WINDRES
11998 if test -n "$WINDRES"; then
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12000 $as_echo "$WINDRES" >&6; }
12002 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12003 $as_echo "no
" >&6; }
12010 for ncn_progname in windres; do
12011 if test -n "$ncn_tool_prefix"; then
12012 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12013 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12015 $as_echo_n "checking
for $ac_word...
" >&6; }
12016 if ${ac_cv_prog_WINDRES+:} false; then :
12017 $as_echo_n "(cached
) " >&6
12019 if test -n "$WINDRES"; then
12020 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12022 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12023 for as_dir in $PATH
12026 test -z "$as_dir" && as_dir=.
12027 for ac_exec_ext in '' $ac_executable_extensions; do
12028 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12029 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12030 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12039 WINDRES=$ac_cv_prog_WINDRES
12040 if test -n "$WINDRES"; then
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12042 $as_echo "$WINDRES" >&6; }
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12045 $as_echo "no
" >&6; }
12050 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12051 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12052 set dummy ${ncn_progname}; ac_word=$2
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12054 $as_echo_n "checking
for $ac_word...
" >&6; }
12055 if ${ac_cv_prog_WINDRES+:} false; then :
12056 $as_echo_n "(cached
) " >&6
12058 if test -n "$WINDRES"; then
12059 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12061 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12062 for as_dir in $PATH
12065 test -z "$as_dir" && as_dir=.
12066 for ac_exec_ext in '' $ac_executable_extensions; do
12067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12068 ac_cv_prog_WINDRES="${ncn_progname}"
12069 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12078 WINDRES=$ac_cv_prog_WINDRES
12079 if test -n "$WINDRES"; then
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12081 $as_echo "$WINDRES" >&6; }
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12084 $as_echo "no
" >&6; }
12089 test -n "$ac_cv_prog_WINDRES" && break
12092 if test -z "$ac_cv_prog_WINDRES" ; then
12094 if test $build = $host ; then
12097 WINDRES="${ncn_tool_prefix}$2"
12103 if test -n "$WINDMC"; then
12104 ac_cv_prog_WINDMC=$WINDMC
12105 elif test -n "$ac_cv_prog_WINDMC"; then
12106 WINDMC=$ac_cv_prog_WINDMC
12109 if test -n "$ac_cv_prog_WINDMC"; then
12110 for ncn_progname in windmc; do
12111 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12112 set dummy ${ncn_progname}; ac_word=$2
12113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12114 $as_echo_n "checking
for $ac_word...
" >&6; }
12115 if ${ac_cv_prog_WINDMC+:} false; then :
12116 $as_echo_n "(cached
) " >&6
12118 if test -n "$WINDMC"; then
12119 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12122 for as_dir in $PATH
12125 test -z "$as_dir" && as_dir=.
12126 for ac_exec_ext in '' $ac_executable_extensions; do
12127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12128 ac_cv_prog_WINDMC="${ncn_progname}"
12129 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12138 WINDMC=$ac_cv_prog_WINDMC
12139 if test -n "$WINDMC"; then
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12141 $as_echo "$WINDMC" >&6; }
12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12144 $as_echo "no
" >&6; }
12151 for ncn_progname in windmc; do
12152 if test -n "$ncn_tool_prefix"; then
12153 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12154 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12156 $as_echo_n "checking
for $ac_word...
" >&6; }
12157 if ${ac_cv_prog_WINDMC+:} false; then :
12158 $as_echo_n "(cached
) " >&6
12160 if test -n "$WINDMC"; then
12161 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12164 for as_dir in $PATH
12167 test -z "$as_dir" && as_dir=.
12168 for ac_exec_ext in '' $ac_executable_extensions; do
12169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12170 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12171 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12180 WINDMC=$ac_cv_prog_WINDMC
12181 if test -n "$WINDMC"; then
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12183 $as_echo "$WINDMC" >&6; }
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12186 $as_echo "no
" >&6; }
12191 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12192 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12193 set dummy ${ncn_progname}; ac_word=$2
12194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12195 $as_echo_n "checking
for $ac_word...
" >&6; }
12196 if ${ac_cv_prog_WINDMC+:} false; then :
12197 $as_echo_n "(cached
) " >&6
12199 if test -n "$WINDMC"; then
12200 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12203 for as_dir in $PATH
12206 test -z "$as_dir" && as_dir=.
12207 for ac_exec_ext in '' $ac_executable_extensions; do
12208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12209 ac_cv_prog_WINDMC="${ncn_progname}"
12210 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12219 WINDMC=$ac_cv_prog_WINDMC
12220 if test -n "$WINDMC"; then
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12222 $as_echo "$WINDMC" >&6; }
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12225 $as_echo "no
" >&6; }
12230 test -n "$ac_cv_prog_WINDMC" && break
12233 if test -z "$ac_cv_prog_WINDMC" ; then
12235 if test $build = $host ; then
12238 WINDMC="${ncn_tool_prefix}$2"
12244 if test -n "$OBJCOPY"; then
12245 ac_cv_prog_OBJCOPY=$OBJCOPY
12246 elif test -n "$ac_cv_prog_OBJCOPY"; then
12247 OBJCOPY=$ac_cv_prog_OBJCOPY
12250 if test -n "$ac_cv_prog_OBJCOPY"; then
12251 for ncn_progname in objcopy; do
12252 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12253 set dummy ${ncn_progname}; ac_word=$2
12254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12255 $as_echo_n "checking
for $ac_word...
" >&6; }
12256 if ${ac_cv_prog_OBJCOPY+:} false; then :
12257 $as_echo_n "(cached
) " >&6
12259 if test -n "$OBJCOPY"; then
12260 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12263 for as_dir in $PATH
12266 test -z "$as_dir" && as_dir=.
12267 for ac_exec_ext in '' $ac_executable_extensions; do
12268 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12269 ac_cv_prog_OBJCOPY="${ncn_progname}"
12270 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12279 OBJCOPY=$ac_cv_prog_OBJCOPY
12280 if test -n "$OBJCOPY"; then
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12282 $as_echo "$OBJCOPY" >&6; }
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12285 $as_echo "no
" >&6; }
12292 for ncn_progname in objcopy; do
12293 if test -n "$ncn_tool_prefix"; then
12294 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12295 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12297 $as_echo_n "checking
for $ac_word...
" >&6; }
12298 if ${ac_cv_prog_OBJCOPY+:} false; then :
12299 $as_echo_n "(cached
) " >&6
12301 if test -n "$OBJCOPY"; then
12302 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12305 for as_dir in $PATH
12308 test -z "$as_dir" && as_dir=.
12309 for ac_exec_ext in '' $ac_executable_extensions; do
12310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12311 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12312 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12321 OBJCOPY=$ac_cv_prog_OBJCOPY
12322 if test -n "$OBJCOPY"; then
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12324 $as_echo "$OBJCOPY" >&6; }
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12327 $as_echo "no
" >&6; }
12332 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12334 set dummy ${ncn_progname}; ac_word=$2
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12336 $as_echo_n "checking
for $ac_word...
" >&6; }
12337 if ${ac_cv_prog_OBJCOPY+:} false; then :
12338 $as_echo_n "(cached
) " >&6
12340 if test -n "$OBJCOPY"; then
12341 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12344 for as_dir in $PATH
12347 test -z "$as_dir" && as_dir=.
12348 for ac_exec_ext in '' $ac_executable_extensions; do
12349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12350 ac_cv_prog_OBJCOPY="${ncn_progname}"
12351 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12360 OBJCOPY=$ac_cv_prog_OBJCOPY
12361 if test -n "$OBJCOPY"; then
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12363 $as_echo "$OBJCOPY" >&6; }
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12366 $as_echo "no
" >&6; }
12371 test -n "$ac_cv_prog_OBJCOPY" && break
12374 if test -z "$ac_cv_prog_OBJCOPY" ; then
12376 if test $build = $host ; then
12379 OBJCOPY="${ncn_tool_prefix}$2"
12385 if test -n "$OBJDUMP"; then
12386 ac_cv_prog_OBJDUMP=$OBJDUMP
12387 elif test -n "$ac_cv_prog_OBJDUMP"; then
12388 OBJDUMP=$ac_cv_prog_OBJDUMP
12391 if test -n "$ac_cv_prog_OBJDUMP"; then
12392 for ncn_progname in objdump; do
12393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12394 set dummy ${ncn_progname}; ac_word=$2
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12396 $as_echo_n "checking
for $ac_word...
" >&6; }
12397 if ${ac_cv_prog_OBJDUMP+:} false; then :
12398 $as_echo_n "(cached
) " >&6
12400 if test -n "$OBJDUMP"; then
12401 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12404 for as_dir in $PATH
12407 test -z "$as_dir" && as_dir=.
12408 for ac_exec_ext in '' $ac_executable_extensions; do
12409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12410 ac_cv_prog_OBJDUMP="${ncn_progname}"
12411 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12420 OBJDUMP=$ac_cv_prog_OBJDUMP
12421 if test -n "$OBJDUMP"; then
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12423 $as_echo "$OBJDUMP" >&6; }
12425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12426 $as_echo "no
" >&6; }
12433 for ncn_progname in objdump; do
12434 if test -n "$ncn_tool_prefix"; then
12435 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12436 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12438 $as_echo_n "checking
for $ac_word...
" >&6; }
12439 if ${ac_cv_prog_OBJDUMP+:} false; then :
12440 $as_echo_n "(cached
) " >&6
12442 if test -n "$OBJDUMP"; then
12443 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12446 for as_dir in $PATH
12449 test -z "$as_dir" && as_dir=.
12450 for ac_exec_ext in '' $ac_executable_extensions; do
12451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12452 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12453 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12462 OBJDUMP=$ac_cv_prog_OBJDUMP
12463 if test -n "$OBJDUMP"; then
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12465 $as_echo "$OBJDUMP" >&6; }
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12468 $as_echo "no
" >&6; }
12473 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12474 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12475 set dummy ${ncn_progname}; ac_word=$2
12476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12477 $as_echo_n "checking
for $ac_word...
" >&6; }
12478 if ${ac_cv_prog_OBJDUMP+:} false; then :
12479 $as_echo_n "(cached
) " >&6
12481 if test -n "$OBJDUMP"; then
12482 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12485 for as_dir in $PATH
12488 test -z "$as_dir" && as_dir=.
12489 for ac_exec_ext in '' $ac_executable_extensions; do
12490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12491 ac_cv_prog_OBJDUMP="${ncn_progname}"
12492 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12501 OBJDUMP=$ac_cv_prog_OBJDUMP
12502 if test -n "$OBJDUMP"; then
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12504 $as_echo "$OBJDUMP" >&6; }
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12507 $as_echo "no
" >&6; }
12512 test -n "$ac_cv_prog_OBJDUMP" && break
12515 if test -z "$ac_cv_prog_OBJDUMP" ; then
12517 if test $build = $host ; then
12520 OBJDUMP="${ncn_tool_prefix}$2"
12526 if test -n "$OTOOL"; then
12527 ac_cv_prog_OTOOL=$OTOOL
12528 elif test -n "$ac_cv_prog_OTOOL"; then
12529 OTOOL=$ac_cv_prog_OTOOL
12532 if test -n "$ac_cv_prog_OTOOL"; then
12533 for ncn_progname in otool; do
12534 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12535 set dummy ${ncn_progname}; ac_word=$2
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12537 $as_echo_n "checking
for $ac_word...
" >&6; }
12538 if ${ac_cv_prog_OTOOL+:} false; then :
12539 $as_echo_n "(cached
) " >&6
12541 if test -n "$OTOOL"; then
12542 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12545 for as_dir in $PATH
12548 test -z "$as_dir" && as_dir=.
12549 for ac_exec_ext in '' $ac_executable_extensions; do
12550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12551 ac_cv_prog_OTOOL="${ncn_progname}"
12552 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12561 OTOOL=$ac_cv_prog_OTOOL
12562 if test -n "$OTOOL"; then
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12564 $as_echo "$OTOOL" >&6; }
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12567 $as_echo "no
" >&6; }
12574 for ncn_progname in otool; do
12575 if test -n "$ncn_tool_prefix"; then
12576 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12577 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12579 $as_echo_n "checking
for $ac_word...
" >&6; }
12580 if ${ac_cv_prog_OTOOL+:} false; then :
12581 $as_echo_n "(cached
) " >&6
12583 if test -n "$OTOOL"; then
12584 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12587 for as_dir in $PATH
12590 test -z "$as_dir" && as_dir=.
12591 for ac_exec_ext in '' $ac_executable_extensions; do
12592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12593 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12594 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12603 OTOOL=$ac_cv_prog_OTOOL
12604 if test -n "$OTOOL"; then
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12606 $as_echo "$OTOOL" >&6; }
12608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12609 $as_echo "no
" >&6; }
12614 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12616 set dummy ${ncn_progname}; ac_word=$2
12617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12618 $as_echo_n "checking
for $ac_word...
" >&6; }
12619 if ${ac_cv_prog_OTOOL+:} false; then :
12620 $as_echo_n "(cached
) " >&6
12622 if test -n "$OTOOL"; then
12623 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12626 for as_dir in $PATH
12629 test -z "$as_dir" && as_dir=.
12630 for ac_exec_ext in '' $ac_executable_extensions; do
12631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12632 ac_cv_prog_OTOOL="${ncn_progname}"
12633 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12642 OTOOL=$ac_cv_prog_OTOOL
12643 if test -n "$OTOOL"; then
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12645 $as_echo "$OTOOL" >&6; }
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12648 $as_echo "no
" >&6; }
12653 test -n "$ac_cv_prog_OTOOL" && break
12656 if test -z "$ac_cv_prog_OTOOL" ; then
12658 if test $build = $host ; then
12661 OTOOL="${ncn_tool_prefix}$2"
12667 if test -n "$READELF"; then
12668 ac_cv_prog_READELF=$READELF
12669 elif test -n "$ac_cv_prog_READELF"; then
12670 READELF=$ac_cv_prog_READELF
12673 if test -n "$ac_cv_prog_READELF"; then
12674 for ncn_progname in readelf; do
12675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12676 set dummy ${ncn_progname}; ac_word=$2
12677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12678 $as_echo_n "checking
for $ac_word...
" >&6; }
12679 if ${ac_cv_prog_READELF+:} false; then :
12680 $as_echo_n "(cached
) " >&6
12682 if test -n "$READELF"; then
12683 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686 for as_dir in $PATH
12689 test -z "$as_dir" && as_dir=.
12690 for ac_exec_ext in '' $ac_executable_extensions; do
12691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12692 ac_cv_prog_READELF="${ncn_progname}"
12693 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12702 READELF=$ac_cv_prog_READELF
12703 if test -n "$READELF"; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12705 $as_echo "$READELF" >&6; }
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12708 $as_echo "no
" >&6; }
12715 for ncn_progname in readelf; do
12716 if test -n "$ncn_tool_prefix"; then
12717 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12718 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12720 $as_echo_n "checking
for $ac_word...
" >&6; }
12721 if ${ac_cv_prog_READELF+:} false; then :
12722 $as_echo_n "(cached
) " >&6
12724 if test -n "$READELF"; then
12725 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12728 for as_dir in $PATH
12731 test -z "$as_dir" && as_dir=.
12732 for ac_exec_ext in '' $ac_executable_extensions; do
12733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12734 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12735 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12744 READELF=$ac_cv_prog_READELF
12745 if test -n "$READELF"; then
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12747 $as_echo "$READELF" >&6; }
12749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12750 $as_echo "no
" >&6; }
12755 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12756 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12757 set dummy ${ncn_progname}; ac_word=$2
12758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12759 $as_echo_n "checking
for $ac_word...
" >&6; }
12760 if ${ac_cv_prog_READELF+:} false; then :
12761 $as_echo_n "(cached
) " >&6
12763 if test -n "$READELF"; then
12764 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12767 for as_dir in $PATH
12770 test -z "$as_dir" && as_dir=.
12771 for ac_exec_ext in '' $ac_executable_extensions; do
12772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12773 ac_cv_prog_READELF="${ncn_progname}"
12774 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12783 READELF=$ac_cv_prog_READELF
12784 if test -n "$READELF"; then
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12786 $as_echo "$READELF" >&6; }
12788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12789 $as_echo "no
" >&6; }
12794 test -n "$ac_cv_prog_READELF" && break
12797 if test -z "$ac_cv_prog_READELF" ; then
12799 if test $build = $host ; then
12802 READELF="${ncn_tool_prefix}$2"
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
12814 $as_echo_n "checking
for -plugin option...
" >&6; }
12816 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
12818 for plugin in $plugin_names; do
12819 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
12820 if test x$plugin_so = x$plugin; then
12821 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
12823 if test x$plugin_so != x$plugin; then
12824 plugin_option="--plugin $plugin_so"
12828 if test -n "$ac_tool_prefix"; then
12829 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12830 set dummy ${ac_tool_prefix}ar; ac_word=$2
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12832 $as_echo_n "checking
for $ac_word...
" >&6; }
12833 if ${ac_cv_prog_AR+:} false; then :
12834 $as_echo_n "(cached
) " >&6
12836 if test -n "$AR"; then
12837 ac_cv_prog_AR="$AR" # Let the user override the test.
12839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12840 for as_dir in $PATH
12843 test -z "$as_dir" && as_dir=.
12844 for ac_exec_ext in '' $ac_executable_extensions; do
12845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12846 ac_cv_prog_AR="${ac_tool_prefix}ar"
12847 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12857 if test -n "$AR"; then
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12859 $as_echo "$AR" >&6; }
12861 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12862 $as_echo "no
" >&6; }
12867 if test -z "$ac_cv_prog_AR"; then
12869 # Extract the first word of "ar", so it can be a program name with args.
12870 set dummy ar; ac_word=$2
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12872 $as_echo_n "checking
for $ac_word...
" >&6; }
12873 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12874 $as_echo_n "(cached
) " >&6
12876 if test -n "$ac_ct_AR"; then
12877 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12880 for as_dir in $PATH
12883 test -z "$as_dir" && as_dir=.
12884 for ac_exec_ext in '' $ac_executable_extensions; do
12885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12886 ac_cv_prog_ac_ct_AR="ar"
12887 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12896 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12897 if test -n "$ac_ct_AR"; then
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12899 $as_echo "$ac_ct_AR" >&6; }
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12902 $as_echo "no
" >&6; }
12905 if test "x
$ac_ct_AR" = x; then
12908 case $cross_compiling:$ac_tool_warned in
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12911 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12912 ac_tool_warned=yes ;;
12917 AR="$ac_cv_prog_AR"
12920 if test "${AR}" = "" ; then
12921 as_fn_error $? "Required archive tool
'ar' not found on PATH.
" "$LINENO" 5
12924 ${AR} $plugin_option rc conftest.a conftest.c
12925 if test "$?
" != 0; then
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
12927 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
12931 if test -n "$plugin_option"; then
12932 PLUGIN_OPTION="$plugin_option"
12933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
12934 $as_echo "$plugin_option" >&6; }
12936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12937 $as_echo "no
" >&6; }
12941 RANLIB_PLUGIN_OPTION=
12942 if test -n "$PLUGIN_OPTION"; then
12943 if $AR --help 2>&1 | grep -q "\
--plugin"; then
12944 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
12946 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
12947 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
12955 # Check whether --with-build-time-tools was given.
12956 if test "${with_build_time_tools+set}" = set; then :
12957 withval=$with_build_time_tools; case x"$withval" in
12960 with_build_time_tools=
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
12962 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
12966 with_build_time_tools=
12972 if test -n "$CC_FOR_TARGET"; then
12973 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12974 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12975 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12978 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12979 for ncn_progname in cc gcc; do
12980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12981 set dummy ${ncn_progname}; ac_word=$2
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12983 $as_echo_n "checking
for $ac_word...
" >&6; }
12984 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12985 $as_echo_n "(cached
) " >&6
12987 if test -n "$CC_FOR_TARGET"; then
12988 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12991 for as_dir in $PATH
12994 test -z "$as_dir" && as_dir=.
12995 for ac_exec_ext in '' $ac_executable_extensions; do
12996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12997 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12998 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13007 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13008 if test -n "$CC_FOR_TARGET"; then
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13010 $as_echo "$CC_FOR_TARGET" >&6; }
13012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13013 $as_echo "no
" >&6; }
13020 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13021 for ncn_progname in cc gcc; do
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13023 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13024 if test -x $with_build_time_tools/${ncn_progname}; then
13025 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13027 $as_echo "yes" >&6; }
13030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13031 $as_echo "no
" >&6; }
13036 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13037 for ncn_progname in cc gcc; do
13038 if test -n "$ncn_target_tool_prefix"; then
13039 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13040 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13042 $as_echo_n "checking
for $ac_word...
" >&6; }
13043 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13044 $as_echo_n "(cached
) " >&6
13046 if test -n "$CC_FOR_TARGET"; then
13047 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13050 for as_dir in $PATH
13053 test -z "$as_dir" && as_dir=.
13054 for ac_exec_ext in '' $ac_executable_extensions; do
13055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13056 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13057 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13066 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13067 if test -n "$CC_FOR_TARGET"; then
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13069 $as_echo "$CC_FOR_TARGET" >&6; }
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13072 $as_echo "no
" >&6; }
13077 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13079 set dummy ${ncn_progname}; ac_word=$2
13080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13081 $as_echo_n "checking
for $ac_word...
" >&6; }
13082 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13083 $as_echo_n "(cached
) " >&6
13085 if test -n "$CC_FOR_TARGET"; then
13086 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089 for as_dir in $PATH
13092 test -z "$as_dir" && as_dir=.
13093 for ac_exec_ext in '' $ac_executable_extensions; do
13094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13095 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13096 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13105 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13106 if test -n "$CC_FOR_TARGET"; then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13108 $as_echo "$CC_FOR_TARGET" >&6; }
13110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13111 $as_echo "no
" >&6; }
13116 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13120 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13122 if test $build = $target ; then
13125 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13128 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13133 if test -n "$CXX_FOR_TARGET"; then
13134 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13135 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13136 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13139 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13140 for ncn_progname in c++ g++ cxx gxx; do
13141 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13142 set dummy ${ncn_progname}; ac_word=$2
13143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13144 $as_echo_n "checking
for $ac_word...
" >&6; }
13145 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13146 $as_echo_n "(cached
) " >&6
13148 if test -n "$CXX_FOR_TARGET"; then
13149 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152 for as_dir in $PATH
13155 test -z "$as_dir" && as_dir=.
13156 for ac_exec_ext in '' $ac_executable_extensions; do
13157 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13158 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13159 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13168 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13169 if test -n "$CXX_FOR_TARGET"; then
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13171 $as_echo "$CXX_FOR_TARGET" >&6; }
13173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13174 $as_echo "no
" >&6; }
13181 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13182 for ncn_progname in c++ g++ cxx gxx; do
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13184 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13185 if test -x $with_build_time_tools/${ncn_progname}; then
13186 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13188 $as_echo "yes" >&6; }
13191 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13192 $as_echo "no
" >&6; }
13197 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13198 for ncn_progname in c++ g++ cxx gxx; do
13199 if test -n "$ncn_target_tool_prefix"; then
13200 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13201 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13203 $as_echo_n "checking
for $ac_word...
" >&6; }
13204 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13205 $as_echo_n "(cached
) " >&6
13207 if test -n "$CXX_FOR_TARGET"; then
13208 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211 for as_dir in $PATH
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
13216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13217 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13218 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13227 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13228 if test -n "$CXX_FOR_TARGET"; then
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13230 $as_echo "$CXX_FOR_TARGET" >&6; }
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13233 $as_echo "no
" >&6; }
13238 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13240 set dummy ${ncn_progname}; ac_word=$2
13241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13242 $as_echo_n "checking
for $ac_word...
" >&6; }
13243 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13244 $as_echo_n "(cached
) " >&6
13246 if test -n "$CXX_FOR_TARGET"; then
13247 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13250 for as_dir in $PATH
13253 test -z "$as_dir" && as_dir=.
13254 for ac_exec_ext in '' $ac_executable_extensions; do
13255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13256 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13257 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13266 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13267 if test -n "$CXX_FOR_TARGET"; then
13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13269 $as_echo "$CXX_FOR_TARGET" >&6; }
13271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13272 $as_echo "no
" >&6; }
13277 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13281 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13282 set dummy c++ g++ cxx gxx
13283 if test $build = $target ; then
13284 CXX_FOR_TARGET="$2"
13286 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13289 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13294 if test -n "$GCC_FOR_TARGET"; then
13295 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13296 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13297 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13300 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13301 for ncn_progname in gcc; do
13302 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13303 set dummy ${ncn_progname}; ac_word=$2
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13305 $as_echo_n "checking
for $ac_word...
" >&6; }
13306 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13307 $as_echo_n "(cached
) " >&6
13309 if test -n "$GCC_FOR_TARGET"; then
13310 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13313 for as_dir in $PATH
13316 test -z "$as_dir" && as_dir=.
13317 for ac_exec_ext in '' $ac_executable_extensions; do
13318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13319 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13320 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13329 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13330 if test -n "$GCC_FOR_TARGET"; then
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13332 $as_echo "$GCC_FOR_TARGET" >&6; }
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13335 $as_echo "no
" >&6; }
13342 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13343 for ncn_progname in gcc; do
13344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13345 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13346 if test -x $with_build_time_tools/${ncn_progname}; then
13347 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13349 $as_echo "yes" >&6; }
13352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13353 $as_echo "no
" >&6; }
13358 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13359 for ncn_progname in gcc; do
13360 if test -n "$ncn_target_tool_prefix"; then
13361 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13362 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13364 $as_echo_n "checking
for $ac_word...
" >&6; }
13365 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13366 $as_echo_n "(cached
) " >&6
13368 if test -n "$GCC_FOR_TARGET"; then
13369 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13378 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13379 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13388 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13389 if test -n "$GCC_FOR_TARGET"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13391 $as_echo "$GCC_FOR_TARGET" >&6; }
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13394 $as_echo "no
" >&6; }
13399 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13401 set dummy ${ncn_progname}; ac_word=$2
13402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13403 $as_echo_n "checking
for $ac_word...
" >&6; }
13404 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13405 $as_echo_n "(cached
) " >&6
13407 if test -n "$GCC_FOR_TARGET"; then
13408 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13411 for as_dir in $PATH
13414 test -z "$as_dir" && as_dir=.
13415 for ac_exec_ext in '' $ac_executable_extensions; do
13416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13417 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13418 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13427 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13428 if test -n "$GCC_FOR_TARGET"; then
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13430 $as_echo "$GCC_FOR_TARGET" >&6; }
13432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13433 $as_echo "no
" >&6; }
13438 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13442 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13443 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13445 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13450 if test -n "$GFORTRAN_FOR_TARGET"; then
13451 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13452 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13453 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13456 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13457 for ncn_progname in gfortran; do
13458 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13459 set dummy ${ncn_progname}; ac_word=$2
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13461 $as_echo_n "checking
for $ac_word...
" >&6; }
13462 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13463 $as_echo_n "(cached
) " >&6
13465 if test -n "$GFORTRAN_FOR_TARGET"; then
13466 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13469 for as_dir in $PATH
13472 test -z "$as_dir" && as_dir=.
13473 for ac_exec_ext in '' $ac_executable_extensions; do
13474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13475 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13476 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13485 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13486 if test -n "$GFORTRAN_FOR_TARGET"; then
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13488 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13491 $as_echo "no
" >&6; }
13498 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13499 for ncn_progname in gfortran; do
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13501 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13502 if test -x $with_build_time_tools/${ncn_progname}; then
13503 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13505 $as_echo "yes" >&6; }
13508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13509 $as_echo "no
" >&6; }
13514 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13515 for ncn_progname in gfortran; do
13516 if test -n "$ncn_target_tool_prefix"; then
13517 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13518 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13520 $as_echo_n "checking
for $ac_word...
" >&6; }
13521 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13522 $as_echo_n "(cached
) " >&6
13524 if test -n "$GFORTRAN_FOR_TARGET"; then
13525 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13528 for as_dir in $PATH
13531 test -z "$as_dir" && as_dir=.
13532 for ac_exec_ext in '' $ac_executable_extensions; do
13533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13534 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13535 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13544 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13545 if test -n "$GFORTRAN_FOR_TARGET"; then
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13547 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13550 $as_echo "no
" >&6; }
13555 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13557 set dummy ${ncn_progname}; ac_word=$2
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13559 $as_echo_n "checking
for $ac_word...
" >&6; }
13560 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13561 $as_echo_n "(cached
) " >&6
13563 if test -n "$GFORTRAN_FOR_TARGET"; then
13564 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13567 for as_dir in $PATH
13570 test -z "$as_dir" && as_dir=.
13571 for ac_exec_ext in '' $ac_executable_extensions; do
13572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13573 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13574 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13583 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13584 if test -n "$GFORTRAN_FOR_TARGET"; then
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13586 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13589 $as_echo "no
" >&6; }
13594 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13598 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13600 if test $build = $target ; then
13601 GFORTRAN_FOR_TARGET="$2"
13603 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13606 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13611 if test -n "$GOC_FOR_TARGET"; then
13612 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13613 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13614 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13617 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13618 for ncn_progname in gccgo; do
13619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13620 set dummy ${ncn_progname}; ac_word=$2
13621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13622 $as_echo_n "checking
for $ac_word...
" >&6; }
13623 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13624 $as_echo_n "(cached
) " >&6
13626 if test -n "$GOC_FOR_TARGET"; then
13627 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13630 for as_dir in $PATH
13633 test -z "$as_dir" && as_dir=.
13634 for ac_exec_ext in '' $ac_executable_extensions; do
13635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13636 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13637 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13646 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13647 if test -n "$GOC_FOR_TARGET"; then
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13649 $as_echo "$GOC_FOR_TARGET" >&6; }
13651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13652 $as_echo "no
" >&6; }
13659 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13660 for ncn_progname in gccgo; do
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13662 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13663 if test -x $with_build_time_tools/${ncn_progname}; then
13664 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13666 $as_echo "yes" >&6; }
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13670 $as_echo "no
" >&6; }
13675 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13676 for ncn_progname in gccgo; do
13677 if test -n "$ncn_target_tool_prefix"; then
13678 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13679 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13681 $as_echo_n "checking
for $ac_word...
" >&6; }
13682 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13683 $as_echo_n "(cached
) " >&6
13685 if test -n "$GOC_FOR_TARGET"; then
13686 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13689 for as_dir in $PATH
13692 test -z "$as_dir" && as_dir=.
13693 for ac_exec_ext in '' $ac_executable_extensions; do
13694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13695 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13696 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13705 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13706 if test -n "$GOC_FOR_TARGET"; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13708 $as_echo "$GOC_FOR_TARGET" >&6; }
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13711 $as_echo "no
" >&6; }
13716 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13717 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13718 set dummy ${ncn_progname}; ac_word=$2
13719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13720 $as_echo_n "checking
for $ac_word...
" >&6; }
13721 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13722 $as_echo_n "(cached
) " >&6
13724 if test -n "$GOC_FOR_TARGET"; then
13725 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13728 for as_dir in $PATH
13731 test -z "$as_dir" && as_dir=.
13732 for ac_exec_ext in '' $ac_executable_extensions; do
13733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13734 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13735 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13744 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13745 if test -n "$GOC_FOR_TARGET"; then
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13747 $as_echo "$GOC_FOR_TARGET" >&6; }
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13750 $as_echo "no
" >&6; }
13755 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13759 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13761 if test $build = $target ; then
13762 GOC_FOR_TARGET="$2"
13764 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13767 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13772 if test -n "$GDC_FOR_TARGET"; then
13773 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13774 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13775 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13778 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13779 for ncn_progname in gdc; do
13780 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13781 set dummy ${ncn_progname}; ac_word=$2
13782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13783 $as_echo_n "checking
for $ac_word...
" >&6; }
13784 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13785 $as_echo_n "(cached
) " >&6
13787 if test -n "$GDC_FOR_TARGET"; then
13788 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13791 for as_dir in $PATH
13794 test -z "$as_dir" && as_dir=.
13795 for ac_exec_ext in '' $ac_executable_extensions; do
13796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13797 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13798 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13807 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13808 if test -n "$GDC_FOR_TARGET"; then
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13810 $as_echo "$GDC_FOR_TARGET" >&6; }
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13813 $as_echo "no
" >&6; }
13820 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13821 for ncn_progname in gdc; do
13822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13823 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13824 if test -x $with_build_time_tools/${ncn_progname}; then
13825 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13827 $as_echo "yes" >&6; }
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13831 $as_echo "no
" >&6; }
13836 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13837 for ncn_progname in gdc; do
13838 if test -n "$ncn_target_tool_prefix"; then
13839 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13840 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13842 $as_echo_n "checking
for $ac_word...
" >&6; }
13843 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13844 $as_echo_n "(cached
) " >&6
13846 if test -n "$GDC_FOR_TARGET"; then
13847 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850 for as_dir in $PATH
13853 test -z "$as_dir" && as_dir=.
13854 for ac_exec_ext in '' $ac_executable_extensions; do
13855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13856 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13857 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13866 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13867 if test -n "$GDC_FOR_TARGET"; then
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13869 $as_echo "$GDC_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_prog_GDC_FOR_TARGET" && test $build = $target ; then
13878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13879 set dummy ${ncn_progname}; ac_word=$2
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13881 $as_echo_n "checking
for $ac_word...
" >&6; }
13882 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13883 $as_echo_n "(cached
) " >&6
13885 if test -n "$GDC_FOR_TARGET"; then
13886 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13889 for as_dir in $PATH
13892 test -z "$as_dir" && as_dir=.
13893 for ac_exec_ext in '' $ac_executable_extensions; do
13894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13895 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13896 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13905 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13906 if test -n "$GDC_FOR_TARGET"; then
13907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13908 $as_echo "$GDC_FOR_TARGET" >&6; }
13910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13911 $as_echo "no
" >&6; }
13916 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13920 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13922 if test $build = $target ; then
13923 GDC_FOR_TARGET="$2"
13925 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13928 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13933 cat > conftest.c << \EOF
13938 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13939 have_gcc_for_target=yes
13941 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13942 have_gcc_for_target=no
13949 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13950 if test -n "$with_build_time_tools"; then
13951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
13952 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
13953 if test -x $with_build_time_tools/ar; then
13954 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13955 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
13957 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13960 $as_echo "no
" >&6; }
13962 elif test $build != $host && test $have_gcc_for_target = yes; then
13963 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13964 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13965 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13968 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13969 # Extract the first word of "ar", so it can be a program name with args.
13970 set dummy ar; ac_word=$2
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13972 $as_echo_n "checking
for $ac_word...
" >&6; }
13973 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13974 $as_echo_n "(cached
) " >&6
13976 case $AR_FOR_TARGET in
13978 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13982 for as_dir in $gcc_cv_tool_dirs
13985 test -z "$as_dir" && as_dir=.
13986 for ac_exec_ext in '' $ac_executable_extensions; do
13987 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13988 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13989 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13999 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14000 if test -n "$AR_FOR_TARGET"; then
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14002 $as_echo "$AR_FOR_TARGET" >&6; }
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14005 $as_echo "no
" >&6; }
14010 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14013 if test -n "$AR_FOR_TARGET"; then
14014 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14015 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14016 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14019 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14020 for ncn_progname in ar; do
14021 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14022 set dummy ${ncn_progname}; ac_word=$2
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14024 $as_echo_n "checking
for $ac_word...
" >&6; }
14025 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14026 $as_echo_n "(cached
) " >&6
14028 if test -n "$AR_FOR_TARGET"; then
14029 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14032 for as_dir in $PATH
14035 test -z "$as_dir" && as_dir=.
14036 for ac_exec_ext in '' $ac_executable_extensions; do
14037 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14038 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14039 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14048 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14049 if test -n "$AR_FOR_TARGET"; then
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14051 $as_echo "$AR_FOR_TARGET" >&6; }
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14054 $as_echo "no
" >&6; }
14061 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14062 for ncn_progname in ar; do
14063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14064 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14065 if test -x $with_build_time_tools/${ncn_progname}; then
14066 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14068 $as_echo "yes" >&6; }
14071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14072 $as_echo "no
" >&6; }
14077 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14078 for ncn_progname in ar; do
14079 if test -n "$ncn_target_tool_prefix"; then
14080 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14081 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14083 $as_echo_n "checking
for $ac_word...
" >&6; }
14084 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14085 $as_echo_n "(cached
) " >&6
14087 if test -n "$AR_FOR_TARGET"; then
14088 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14091 for as_dir in $PATH
14094 test -z "$as_dir" && as_dir=.
14095 for ac_exec_ext in '' $ac_executable_extensions; do
14096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14097 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14098 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14107 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14108 if test -n "$AR_FOR_TARGET"; then
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14110 $as_echo "$AR_FOR_TARGET" >&6; }
14112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14113 $as_echo "no
" >&6; }
14118 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14119 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14120 set dummy ${ncn_progname}; ac_word=$2
14121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14122 $as_echo_n "checking
for $ac_word...
" >&6; }
14123 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14124 $as_echo_n "(cached
) " >&6
14126 if test -n "$AR_FOR_TARGET"; then
14127 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14130 for as_dir in $PATH
14133 test -z "$as_dir" && as_dir=.
14134 for ac_exec_ext in '' $ac_executable_extensions; do
14135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14136 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14137 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14146 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14147 if test -n "$AR_FOR_TARGET"; then
14148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14149 $as_echo "$AR_FOR_TARGET" >&6; }
14151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14152 $as_echo "no
" >&6; }
14157 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14161 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14163 if test $build = $target ; then
14166 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14169 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14173 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14179 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14180 if test -n "$with_build_time_tools"; then
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14182 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14183 if test -x $with_build_time_tools/as; then
14184 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14185 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14187 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14190 $as_echo "no
" >&6; }
14192 elif test $build != $host && test $have_gcc_for_target = yes; then
14193 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14194 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14195 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14198 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14199 # Extract the first word of "as
", so it can be a program name with args.
14200 set dummy as; ac_word=$2
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14202 $as_echo_n "checking
for $ac_word...
" >&6; }
14203 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14204 $as_echo_n "(cached
) " >&6
14206 case $AS_FOR_TARGET in
14208 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14212 for as_dir in $gcc_cv_tool_dirs
14215 test -z "$as_dir" && as_dir=.
14216 for ac_exec_ext in '' $ac_executable_extensions; do
14217 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14218 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14219 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14229 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14230 if test -n "$AS_FOR_TARGET"; then
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14232 $as_echo "$AS_FOR_TARGET" >&6; }
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14235 $as_echo "no
" >&6; }
14240 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14243 if test -n "$AS_FOR_TARGET"; then
14244 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14245 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14246 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14249 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14250 for ncn_progname in as; do
14251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14252 set dummy ${ncn_progname}; ac_word=$2
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14254 $as_echo_n "checking
for $ac_word...
" >&6; }
14255 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14256 $as_echo_n "(cached
) " >&6
14258 if test -n "$AS_FOR_TARGET"; then
14259 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14262 for as_dir in $PATH
14265 test -z "$as_dir" && as_dir=.
14266 for ac_exec_ext in '' $ac_executable_extensions; do
14267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14268 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14269 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14278 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14279 if test -n "$AS_FOR_TARGET"; then
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14281 $as_echo "$AS_FOR_TARGET" >&6; }
14283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14284 $as_echo "no
" >&6; }
14291 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14292 for ncn_progname in as; do
14293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14294 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14295 if test -x $with_build_time_tools/${ncn_progname}; then
14296 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14298 $as_echo "yes" >&6; }
14301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14302 $as_echo "no
" >&6; }
14307 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14308 for ncn_progname in as; do
14309 if test -n "$ncn_target_tool_prefix"; then
14310 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14311 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14313 $as_echo_n "checking
for $ac_word...
" >&6; }
14314 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14315 $as_echo_n "(cached
) " >&6
14317 if test -n "$AS_FOR_TARGET"; then
14318 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14321 for as_dir in $PATH
14324 test -z "$as_dir" && as_dir=.
14325 for ac_exec_ext in '' $ac_executable_extensions; do
14326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14327 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14328 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14337 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14338 if test -n "$AS_FOR_TARGET"; then
14339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14340 $as_echo "$AS_FOR_TARGET" >&6; }
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14343 $as_echo "no
" >&6; }
14348 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14349 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14350 set dummy ${ncn_progname}; ac_word=$2
14351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14352 $as_echo_n "checking
for $ac_word...
" >&6; }
14353 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14354 $as_echo_n "(cached
) " >&6
14356 if test -n "$AS_FOR_TARGET"; then
14357 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14360 for as_dir in $PATH
14363 test -z "$as_dir" && as_dir=.
14364 for ac_exec_ext in '' $ac_executable_extensions; do
14365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14366 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14367 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14376 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14377 if test -n "$AS_FOR_TARGET"; then
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14379 $as_echo "$AS_FOR_TARGET" >&6; }
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14382 $as_echo "no
" >&6; }
14387 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14391 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14393 if test $build = $target ; then
14396 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14399 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14403 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14409 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14410 if test -n "$with_build_time_tools"; then
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14412 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14413 if test -x $with_build_time_tools/dlltool; then
14414 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14415 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14417 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14420 $as_echo "no
" >&6; }
14422 elif test $build != $host && test $have_gcc_for_target = yes; then
14423 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14424 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14425 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14428 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14429 # Extract the first word of "dlltool
", so it can be a program name with args.
14430 set dummy dlltool; ac_word=$2
14431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14432 $as_echo_n "checking
for $ac_word...
" >&6; }
14433 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14434 $as_echo_n "(cached
) " >&6
14436 case $DLLTOOL_FOR_TARGET in
14438 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14442 for as_dir in $gcc_cv_tool_dirs
14445 test -z "$as_dir" && as_dir=.
14446 for ac_exec_ext in '' $ac_executable_extensions; do
14447 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14448 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14449 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14459 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14460 if test -n "$DLLTOOL_FOR_TARGET"; then
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14462 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14465 $as_echo "no
" >&6; }
14470 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14473 if test -n "$DLLTOOL_FOR_TARGET"; then
14474 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14475 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14476 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14479 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14480 for ncn_progname in dlltool; do
14481 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14482 set dummy ${ncn_progname}; ac_word=$2
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14484 $as_echo_n "checking
for $ac_word...
" >&6; }
14485 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14486 $as_echo_n "(cached
) " >&6
14488 if test -n "$DLLTOOL_FOR_TARGET"; then
14489 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14492 for as_dir in $PATH
14495 test -z "$as_dir" && as_dir=.
14496 for ac_exec_ext in '' $ac_executable_extensions; do
14497 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14498 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14499 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14508 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14509 if test -n "$DLLTOOL_FOR_TARGET"; then
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14511 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14514 $as_echo "no
" >&6; }
14521 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14522 for ncn_progname in dlltool; do
14523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14524 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14525 if test -x $with_build_time_tools/${ncn_progname}; then
14526 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14528 $as_echo "yes" >&6; }
14531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14532 $as_echo "no
" >&6; }
14537 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14538 for ncn_progname in dlltool; do
14539 if test -n "$ncn_target_tool_prefix"; then
14540 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14541 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14543 $as_echo_n "checking
for $ac_word...
" >&6; }
14544 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14545 $as_echo_n "(cached
) " >&6
14547 if test -n "$DLLTOOL_FOR_TARGET"; then
14548 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14551 for as_dir in $PATH
14554 test -z "$as_dir" && as_dir=.
14555 for ac_exec_ext in '' $ac_executable_extensions; do
14556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14557 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14558 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14567 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14568 if test -n "$DLLTOOL_FOR_TARGET"; then
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14570 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14573 $as_echo "no
" >&6; }
14578 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14579 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14580 set dummy ${ncn_progname}; ac_word=$2
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14582 $as_echo_n "checking
for $ac_word...
" >&6; }
14583 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14584 $as_echo_n "(cached
) " >&6
14586 if test -n "$DLLTOOL_FOR_TARGET"; then
14587 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14590 for as_dir in $PATH
14593 test -z "$as_dir" && as_dir=.
14594 for ac_exec_ext in '' $ac_executable_extensions; do
14595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14596 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14597 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14606 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14607 if test -n "$DLLTOOL_FOR_TARGET"; then
14608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14609 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14612 $as_echo "no
" >&6; }
14617 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14621 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14623 if test $build = $target ; then
14624 DLLTOOL_FOR_TARGET="$2"
14626 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14629 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14633 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14639 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14640 if test -n "$with_build_time_tools"; then
14641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
14642 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
14643 if test -x $with_build_time_tools/dsymutil; then
14644 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14645 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14647 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14650 $as_echo "no
" >&6; }
14652 elif test $build != $host && test $have_gcc_for_target = yes; then
14653 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14654 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14655 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14658 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14659 # Extract the first word of "dsymutil
", so it can be a program name with args.
14660 set dummy dsymutil; ac_word=$2
14661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14662 $as_echo_n "checking
for $ac_word...
" >&6; }
14663 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14664 $as_echo_n "(cached
) " >&6
14666 case $DSYMUTIL_FOR_TARGET in
14668 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14672 for as_dir in $gcc_cv_tool_dirs
14675 test -z "$as_dir" && as_dir=.
14676 for ac_exec_ext in '' $ac_executable_extensions; do
14677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14678 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14679 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14689 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14690 if test -n "$DSYMUTIL_FOR_TARGET"; then
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14692 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14695 $as_echo "no
" >&6; }
14700 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14703 if test -n "$DSYMUTIL_FOR_TARGET"; then
14704 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14705 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14706 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14709 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14710 for ncn_progname in dsymutil; do
14711 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14712 set dummy ${ncn_progname}; ac_word=$2
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14714 $as_echo_n "checking
for $ac_word...
" >&6; }
14715 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14716 $as_echo_n "(cached
) " >&6
14718 if test -n "$DSYMUTIL_FOR_TARGET"; then
14719 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14722 for as_dir in $PATH
14725 test -z "$as_dir" && as_dir=.
14726 for ac_exec_ext in '' $ac_executable_extensions; do
14727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14728 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14729 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14738 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14739 if test -n "$DSYMUTIL_FOR_TARGET"; then
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14741 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14744 $as_echo "no
" >&6; }
14751 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14752 for ncn_progname in dsymutil; do
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14754 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14755 if test -x $with_build_time_tools/${ncn_progname}; then
14756 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14758 $as_echo "yes" >&6; }
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14762 $as_echo "no
" >&6; }
14767 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14768 for ncn_progname in dsymutil; do
14769 if test -n "$ncn_target_tool_prefix"; then
14770 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14771 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14773 $as_echo_n "checking
for $ac_word...
" >&6; }
14774 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14775 $as_echo_n "(cached
) " >&6
14777 if test -n "$DSYMUTIL_FOR_TARGET"; then
14778 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14781 for as_dir in $PATH
14784 test -z "$as_dir" && as_dir=.
14785 for ac_exec_ext in '' $ac_executable_extensions; do
14786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14787 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14788 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14797 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14798 if test -n "$DSYMUTIL_FOR_TARGET"; then
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14800 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14803 $as_echo "no
" >&6; }
14808 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14809 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14810 set dummy ${ncn_progname}; ac_word=$2
14811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14812 $as_echo_n "checking
for $ac_word...
" >&6; }
14813 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14814 $as_echo_n "(cached
) " >&6
14816 if test -n "$DSYMUTIL_FOR_TARGET"; then
14817 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14820 for as_dir in $PATH
14823 test -z "$as_dir" && as_dir=.
14824 for ac_exec_ext in '' $ac_executable_extensions; do
14825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14826 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14827 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14836 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14837 if test -n "$DSYMUTIL_FOR_TARGET"; then
14838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14839 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14842 $as_echo "no
" >&6; }
14847 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14851 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14853 if test $build = $target ; then
14854 DSYMUTIL_FOR_TARGET="$2"
14856 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14859 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14863 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14869 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14870 if test -n "$with_build_time_tools"; then
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
14872 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
14873 if test -x $with_build_time_tools/ld; then
14874 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14875 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
14877 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14880 $as_echo "no
" >&6; }
14882 elif test $build != $host && test $have_gcc_for_target = yes; then
14883 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14884 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14885 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14888 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14889 # Extract the first word of "ld
", so it can be a program name with args.
14890 set dummy ld; ac_word=$2
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14892 $as_echo_n "checking
for $ac_word...
" >&6; }
14893 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14894 $as_echo_n "(cached
) " >&6
14896 case $LD_FOR_TARGET in
14898 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14902 for as_dir in $gcc_cv_tool_dirs
14905 test -z "$as_dir" && as_dir=.
14906 for ac_exec_ext in '' $ac_executable_extensions; do
14907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14908 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14909 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14919 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14920 if test -n "$LD_FOR_TARGET"; then
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14922 $as_echo "$LD_FOR_TARGET" >&6; }
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14925 $as_echo "no
" >&6; }
14930 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14933 if test -n "$LD_FOR_TARGET"; then
14934 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14935 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14936 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14939 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14940 for ncn_progname in ld; do
14941 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14942 set dummy ${ncn_progname}; ac_word=$2
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14944 $as_echo_n "checking
for $ac_word...
" >&6; }
14945 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14946 $as_echo_n "(cached
) " >&6
14948 if test -n "$LD_FOR_TARGET"; then
14949 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14952 for as_dir in $PATH
14955 test -z "$as_dir" && as_dir=.
14956 for ac_exec_ext in '' $ac_executable_extensions; do
14957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14958 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14959 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14968 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14969 if test -n "$LD_FOR_TARGET"; then
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14971 $as_echo "$LD_FOR_TARGET" >&6; }
14973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14974 $as_echo "no
" >&6; }
14981 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14982 for ncn_progname in ld; do
14983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14984 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14985 if test -x $with_build_time_tools/${ncn_progname}; then
14986 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14987 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14988 $as_echo "yes" >&6; }
14991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14992 $as_echo "no
" >&6; }
14997 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14998 for ncn_progname in ld; do
14999 if test -n "$ncn_target_tool_prefix"; then
15000 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15001 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15003 $as_echo_n "checking
for $ac_word...
" >&6; }
15004 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15005 $as_echo_n "(cached
) " >&6
15007 if test -n "$LD_FOR_TARGET"; then
15008 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15011 for as_dir in $PATH
15014 test -z "$as_dir" && as_dir=.
15015 for ac_exec_ext in '' $ac_executable_extensions; do
15016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15017 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15018 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15027 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15028 if test -n "$LD_FOR_TARGET"; then
15029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15030 $as_echo "$LD_FOR_TARGET" >&6; }
15032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15033 $as_echo "no
" >&6; }
15038 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15039 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15040 set dummy ${ncn_progname}; ac_word=$2
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15042 $as_echo_n "checking
for $ac_word...
" >&6; }
15043 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15044 $as_echo_n "(cached
) " >&6
15046 if test -n "$LD_FOR_TARGET"; then
15047 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15050 for as_dir in $PATH
15053 test -z "$as_dir" && as_dir=.
15054 for ac_exec_ext in '' $ac_executable_extensions; do
15055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15056 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15057 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15066 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15067 if test -n "$LD_FOR_TARGET"; then
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15069 $as_echo "$LD_FOR_TARGET" >&6; }
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15072 $as_echo "no
" >&6; }
15077 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15081 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15083 if test $build = $target ; then
15086 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15089 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15093 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15099 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15100 if test -n "$with_build_time_tools"; then
15101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
15102 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
15103 if test -x $with_build_time_tools/lipo; then
15104 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15105 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
15107 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15110 $as_echo "no
" >&6; }
15112 elif test $build != $host && test $have_gcc_for_target = yes; then
15113 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15114 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15115 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15118 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15119 # Extract the first word of "lipo
", so it can be a program name with args.
15120 set dummy lipo; ac_word=$2
15121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15122 $as_echo_n "checking
for $ac_word...
" >&6; }
15123 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15124 $as_echo_n "(cached
) " >&6
15126 case $LIPO_FOR_TARGET in
15128 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15132 for as_dir in $gcc_cv_tool_dirs
15135 test -z "$as_dir" && as_dir=.
15136 for ac_exec_ext in '' $ac_executable_extensions; do
15137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15138 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15139 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15149 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15150 if test -n "$LIPO_FOR_TARGET"; then
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15152 $as_echo "$LIPO_FOR_TARGET" >&6; }
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15155 $as_echo "no
" >&6; }
15160 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15163 if test -n "$LIPO_FOR_TARGET"; then
15164 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15165 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15166 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15169 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15170 for ncn_progname in lipo; do
15171 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15172 set dummy ${ncn_progname}; ac_word=$2
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15174 $as_echo_n "checking
for $ac_word...
" >&6; }
15175 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15176 $as_echo_n "(cached
) " >&6
15178 if test -n "$LIPO_FOR_TARGET"; then
15179 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15182 for as_dir in $PATH
15185 test -z "$as_dir" && as_dir=.
15186 for ac_exec_ext in '' $ac_executable_extensions; do
15187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15188 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15189 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15198 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15199 if test -n "$LIPO_FOR_TARGET"; then
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15201 $as_echo "$LIPO_FOR_TARGET" >&6; }
15203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15204 $as_echo "no
" >&6; }
15211 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15212 for ncn_progname in lipo; do
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15214 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15215 if test -x $with_build_time_tools/${ncn_progname}; then
15216 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15218 $as_echo "yes" >&6; }
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15222 $as_echo "no
" >&6; }
15227 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15228 for ncn_progname in lipo; do
15229 if test -n "$ncn_target_tool_prefix"; then
15230 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15231 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15233 $as_echo_n "checking
for $ac_word...
" >&6; }
15234 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15235 $as_echo_n "(cached
) " >&6
15237 if test -n "$LIPO_FOR_TARGET"; then
15238 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15241 for as_dir in $PATH
15244 test -z "$as_dir" && as_dir=.
15245 for ac_exec_ext in '' $ac_executable_extensions; do
15246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15247 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15248 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15257 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15258 if test -n "$LIPO_FOR_TARGET"; then
15259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15260 $as_echo "$LIPO_FOR_TARGET" >&6; }
15262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15263 $as_echo "no
" >&6; }
15268 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15269 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15270 set dummy ${ncn_progname}; ac_word=$2
15271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15272 $as_echo_n "checking
for $ac_word...
" >&6; }
15273 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15274 $as_echo_n "(cached
) " >&6
15276 if test -n "$LIPO_FOR_TARGET"; then
15277 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15280 for as_dir in $PATH
15283 test -z "$as_dir" && as_dir=.
15284 for ac_exec_ext in '' $ac_executable_extensions; do
15285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15286 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15287 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15296 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15297 if test -n "$LIPO_FOR_TARGET"; then
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15299 $as_echo "$LIPO_FOR_TARGET" >&6; }
15301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15302 $as_echo "no
" >&6; }
15307 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15311 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15313 if test $build = $target ; then
15314 LIPO_FOR_TARGET="$2"
15316 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15319 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15323 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15329 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15330 if test -n "$with_build_time_tools"; then
15331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15332 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15333 if test -x $with_build_time_tools/nm; then
15334 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15335 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15337 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15340 $as_echo "no
" >&6; }
15342 elif test $build != $host && test $have_gcc_for_target = yes; then
15343 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15344 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15345 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15348 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15349 # Extract the first word of "nm
", so it can be a program name with args.
15350 set dummy nm; ac_word=$2
15351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15352 $as_echo_n "checking
for $ac_word...
" >&6; }
15353 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15354 $as_echo_n "(cached
) " >&6
15356 case $NM_FOR_TARGET in
15358 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15362 for as_dir in $gcc_cv_tool_dirs
15365 test -z "$as_dir" && as_dir=.
15366 for ac_exec_ext in '' $ac_executable_extensions; do
15367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15368 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15369 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15379 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15380 if test -n "$NM_FOR_TARGET"; then
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15382 $as_echo "$NM_FOR_TARGET" >&6; }
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15385 $as_echo "no
" >&6; }
15390 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15393 if test -n "$NM_FOR_TARGET"; then
15394 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15395 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15396 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15399 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15400 for ncn_progname in nm; do
15401 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15402 set dummy ${ncn_progname}; ac_word=$2
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15404 $as_echo_n "checking
for $ac_word...
" >&6; }
15405 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15406 $as_echo_n "(cached
) " >&6
15408 if test -n "$NM_FOR_TARGET"; then
15409 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15412 for as_dir in $PATH
15415 test -z "$as_dir" && as_dir=.
15416 for ac_exec_ext in '' $ac_executable_extensions; do
15417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15418 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15419 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15428 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15429 if test -n "$NM_FOR_TARGET"; then
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15431 $as_echo "$NM_FOR_TARGET" >&6; }
15433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15434 $as_echo "no
" >&6; }
15441 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15442 for ncn_progname in nm; do
15443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15444 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15445 if test -x $with_build_time_tools/${ncn_progname}; then
15446 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15448 $as_echo "yes" >&6; }
15451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15452 $as_echo "no
" >&6; }
15457 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15458 for ncn_progname in nm; do
15459 if test -n "$ncn_target_tool_prefix"; then
15460 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15461 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15463 $as_echo_n "checking
for $ac_word...
" >&6; }
15464 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15465 $as_echo_n "(cached
) " >&6
15467 if test -n "$NM_FOR_TARGET"; then
15468 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15471 for as_dir in $PATH
15474 test -z "$as_dir" && as_dir=.
15475 for ac_exec_ext in '' $ac_executable_extensions; do
15476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15477 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15478 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15487 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15488 if test -n "$NM_FOR_TARGET"; then
15489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15490 $as_echo "$NM_FOR_TARGET" >&6; }
15492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15493 $as_echo "no
" >&6; }
15498 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15500 set dummy ${ncn_progname}; ac_word=$2
15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15502 $as_echo_n "checking
for $ac_word...
" >&6; }
15503 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15504 $as_echo_n "(cached
) " >&6
15506 if test -n "$NM_FOR_TARGET"; then
15507 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15510 for as_dir in $PATH
15513 test -z "$as_dir" && as_dir=.
15514 for ac_exec_ext in '' $ac_executable_extensions; do
15515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15516 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15517 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15526 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15527 if test -n "$NM_FOR_TARGET"; then
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15529 $as_echo "$NM_FOR_TARGET" >&6; }
15531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15532 $as_echo "no
" >&6; }
15537 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15541 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15543 if test $build = $target ; then
15546 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15549 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15553 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15559 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15560 if test -n "$with_build_time_tools"; then
15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15562 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15563 if test -x $with_build_time_tools/objcopy; then
15564 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15565 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15567 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15570 $as_echo "no
" >&6; }
15572 elif test $build != $host && test $have_gcc_for_target = yes; then
15573 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15574 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15575 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15578 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15579 # Extract the first word of "objcopy
", so it can be a program name with args.
15580 set dummy objcopy; ac_word=$2
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15582 $as_echo_n "checking
for $ac_word...
" >&6; }
15583 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15584 $as_echo_n "(cached
) " >&6
15586 case $OBJCOPY_FOR_TARGET in
15588 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15592 for as_dir in $gcc_cv_tool_dirs
15595 test -z "$as_dir" && as_dir=.
15596 for ac_exec_ext in '' $ac_executable_extensions; do
15597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15598 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15599 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15609 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15610 if test -n "$OBJCOPY_FOR_TARGET"; then
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15612 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15615 $as_echo "no
" >&6; }
15620 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15623 if test -n "$OBJCOPY_FOR_TARGET"; then
15624 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15625 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15626 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15629 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15630 for ncn_progname in objcopy; do
15631 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15632 set dummy ${ncn_progname}; ac_word=$2
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15634 $as_echo_n "checking
for $ac_word...
" >&6; }
15635 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15636 $as_echo_n "(cached
) " >&6
15638 if test -n "$OBJCOPY_FOR_TARGET"; then
15639 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15642 for as_dir in $PATH
15645 test -z "$as_dir" && as_dir=.
15646 for ac_exec_ext in '' $ac_executable_extensions; do
15647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15648 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15649 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15658 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15659 if test -n "$OBJCOPY_FOR_TARGET"; then
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15661 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15664 $as_echo "no
" >&6; }
15671 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15672 for ncn_progname in objcopy; do
15673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15674 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15675 if test -x $with_build_time_tools/${ncn_progname}; then
15676 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15678 $as_echo "yes" >&6; }
15681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15682 $as_echo "no
" >&6; }
15687 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15688 for ncn_progname in objcopy; do
15689 if test -n "$ncn_target_tool_prefix"; then
15690 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15691 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15693 $as_echo_n "checking
for $ac_word...
" >&6; }
15694 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15695 $as_echo_n "(cached
) " >&6
15697 if test -n "$OBJCOPY_FOR_TARGET"; then
15698 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15701 for as_dir in $PATH
15704 test -z "$as_dir" && as_dir=.
15705 for ac_exec_ext in '' $ac_executable_extensions; do
15706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15707 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15708 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15717 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15718 if test -n "$OBJCOPY_FOR_TARGET"; then
15719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15720 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15723 $as_echo "no
" >&6; }
15728 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15730 set dummy ${ncn_progname}; ac_word=$2
15731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15732 $as_echo_n "checking
for $ac_word...
" >&6; }
15733 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15734 $as_echo_n "(cached
) " >&6
15736 if test -n "$OBJCOPY_FOR_TARGET"; then
15737 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15740 for as_dir in $PATH
15743 test -z "$as_dir" && as_dir=.
15744 for ac_exec_ext in '' $ac_executable_extensions; do
15745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15746 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15747 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15756 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15757 if test -n "$OBJCOPY_FOR_TARGET"; then
15758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15759 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15762 $as_echo "no
" >&6; }
15767 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15771 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15773 if test $build = $target ; then
15774 OBJCOPY_FOR_TARGET="$2"
15776 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15779 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15783 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15789 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15790 if test -n "$with_build_time_tools"; then
15791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
15792 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
15793 if test -x $with_build_time_tools/objdump; then
15794 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15795 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15797 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15800 $as_echo "no
" >&6; }
15802 elif test $build != $host && test $have_gcc_for_target = yes; then
15803 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15804 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15805 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15808 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15809 # Extract the first word of "objdump
", so it can be a program name with args.
15810 set dummy objdump; ac_word=$2
15811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15812 $as_echo_n "checking
for $ac_word...
" >&6; }
15813 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15814 $as_echo_n "(cached
) " >&6
15816 case $OBJDUMP_FOR_TARGET in
15818 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15822 for as_dir in $gcc_cv_tool_dirs
15825 test -z "$as_dir" && as_dir=.
15826 for ac_exec_ext in '' $ac_executable_extensions; do
15827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15828 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15829 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15839 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15840 if test -n "$OBJDUMP_FOR_TARGET"; then
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15842 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15845 $as_echo "no
" >&6; }
15850 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15853 if test -n "$OBJDUMP_FOR_TARGET"; then
15854 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15855 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15856 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15859 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15860 for ncn_progname in objdump; do
15861 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15862 set dummy ${ncn_progname}; ac_word=$2
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15864 $as_echo_n "checking
for $ac_word...
" >&6; }
15865 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15866 $as_echo_n "(cached
) " >&6
15868 if test -n "$OBJDUMP_FOR_TARGET"; then
15869 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15872 for as_dir in $PATH
15875 test -z "$as_dir" && as_dir=.
15876 for ac_exec_ext in '' $ac_executable_extensions; do
15877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15878 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15879 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15888 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15889 if test -n "$OBJDUMP_FOR_TARGET"; then
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15891 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15894 $as_echo "no
" >&6; }
15901 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15902 for ncn_progname in objdump; do
15903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15904 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15905 if test -x $with_build_time_tools/${ncn_progname}; then
15906 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15908 $as_echo "yes" >&6; }
15911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15912 $as_echo "no
" >&6; }
15917 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15918 for ncn_progname in objdump; do
15919 if test -n "$ncn_target_tool_prefix"; then
15920 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15921 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15923 $as_echo_n "checking
for $ac_word...
" >&6; }
15924 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15925 $as_echo_n "(cached
) " >&6
15927 if test -n "$OBJDUMP_FOR_TARGET"; then
15928 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15931 for as_dir in $PATH
15934 test -z "$as_dir" && as_dir=.
15935 for ac_exec_ext in '' $ac_executable_extensions; do
15936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15937 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15938 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15947 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15948 if test -n "$OBJDUMP_FOR_TARGET"; then
15949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15950 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15953 $as_echo "no
" >&6; }
15958 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15959 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15960 set dummy ${ncn_progname}; ac_word=$2
15961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15962 $as_echo_n "checking
for $ac_word...
" >&6; }
15963 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15964 $as_echo_n "(cached
) " >&6
15966 if test -n "$OBJDUMP_FOR_TARGET"; then
15967 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15970 for as_dir in $PATH
15973 test -z "$as_dir" && as_dir=.
15974 for ac_exec_ext in '' $ac_executable_extensions; do
15975 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15976 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15977 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15986 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15987 if test -n "$OBJDUMP_FOR_TARGET"; then
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15989 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15992 $as_echo "no
" >&6; }
15997 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16001 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16003 if test $build = $target ; then
16004 OBJDUMP_FOR_TARGET="$2"
16006 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16009 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16013 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16019 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16020 if test -n "$with_build_time_tools"; then
16021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
16022 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
16023 if test -x $with_build_time_tools/otool; then
16024 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16025 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16027 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16030 $as_echo "no
" >&6; }
16032 elif test $build != $host && test $have_gcc_for_target = yes; then
16033 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16034 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16035 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16038 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16039 # Extract the first word of "otool
", so it can be a program name with args.
16040 set dummy otool; ac_word=$2
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16042 $as_echo_n "checking
for $ac_word...
" >&6; }
16043 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16044 $as_echo_n "(cached
) " >&6
16046 case $OTOOL_FOR_TARGET in
16048 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16052 for as_dir in $gcc_cv_tool_dirs
16055 test -z "$as_dir" && as_dir=.
16056 for ac_exec_ext in '' $ac_executable_extensions; do
16057 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16058 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16059 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16069 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16070 if test -n "$OTOOL_FOR_TARGET"; then
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16072 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16075 $as_echo "no
" >&6; }
16080 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16083 if test -n "$OTOOL_FOR_TARGET"; then
16084 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16085 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16086 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16089 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16090 for ncn_progname in otool; do
16091 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16092 set dummy ${ncn_progname}; ac_word=$2
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16094 $as_echo_n "checking
for $ac_word...
" >&6; }
16095 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16096 $as_echo_n "(cached
) " >&6
16098 if test -n "$OTOOL_FOR_TARGET"; then
16099 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16102 for as_dir in $PATH
16105 test -z "$as_dir" && as_dir=.
16106 for ac_exec_ext in '' $ac_executable_extensions; do
16107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16108 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16109 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16118 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16119 if test -n "$OTOOL_FOR_TARGET"; then
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16121 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16124 $as_echo "no
" >&6; }
16131 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16132 for ncn_progname in otool; do
16133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16134 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16135 if test -x $with_build_time_tools/${ncn_progname}; then
16136 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16138 $as_echo "yes" >&6; }
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16142 $as_echo "no
" >&6; }
16147 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16148 for ncn_progname in otool; do
16149 if test -n "$ncn_target_tool_prefix"; then
16150 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16151 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16153 $as_echo_n "checking
for $ac_word...
" >&6; }
16154 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16155 $as_echo_n "(cached
) " >&6
16157 if test -n "$OTOOL_FOR_TARGET"; then
16158 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16161 for as_dir in $PATH
16164 test -z "$as_dir" && as_dir=.
16165 for ac_exec_ext in '' $ac_executable_extensions; do
16166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16167 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16168 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16177 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16178 if test -n "$OTOOL_FOR_TARGET"; then
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16180 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16183 $as_echo "no
" >&6; }
16188 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16190 set dummy ${ncn_progname}; ac_word=$2
16191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16192 $as_echo_n "checking
for $ac_word...
" >&6; }
16193 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16194 $as_echo_n "(cached
) " >&6
16196 if test -n "$OTOOL_FOR_TARGET"; then
16197 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16200 for as_dir in $PATH
16203 test -z "$as_dir" && as_dir=.
16204 for ac_exec_ext in '' $ac_executable_extensions; do
16205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16206 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16207 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16216 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16217 if test -n "$OTOOL_FOR_TARGET"; then
16218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16219 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16222 $as_echo "no
" >&6; }
16227 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16231 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16233 if test $build = $target ; then
16234 OTOOL_FOR_TARGET="$2"
16236 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16239 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16243 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16249 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16250 if test -n "$with_build_time_tools"; then
16251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16252 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16253 if test -x $with_build_time_tools/ranlib; then
16254 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16255 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16257 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16260 $as_echo "no
" >&6; }
16262 elif test $build != $host && test $have_gcc_for_target = yes; then
16263 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16264 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16265 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16268 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16269 # Extract the first word of "ranlib
", so it can be a program name with args.
16270 set dummy ranlib; ac_word=$2
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16272 $as_echo_n "checking
for $ac_word...
" >&6; }
16273 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16274 $as_echo_n "(cached
) " >&6
16276 case $RANLIB_FOR_TARGET in
16278 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16282 for as_dir in $gcc_cv_tool_dirs
16285 test -z "$as_dir" && as_dir=.
16286 for ac_exec_ext in '' $ac_executable_extensions; do
16287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16288 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16289 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16299 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16300 if test -n "$RANLIB_FOR_TARGET"; then
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16302 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16305 $as_echo "no
" >&6; }
16310 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16313 if test -n "$RANLIB_FOR_TARGET"; then
16314 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16315 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16316 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16319 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16320 for ncn_progname in ranlib; do
16321 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16322 set dummy ${ncn_progname}; ac_word=$2
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16324 $as_echo_n "checking
for $ac_word...
" >&6; }
16325 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16326 $as_echo_n "(cached
) " >&6
16328 if test -n "$RANLIB_FOR_TARGET"; then
16329 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16332 for as_dir in $PATH
16335 test -z "$as_dir" && as_dir=.
16336 for ac_exec_ext in '' $ac_executable_extensions; do
16337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16338 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16339 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16348 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16349 if test -n "$RANLIB_FOR_TARGET"; then
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16351 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16354 $as_echo "no
" >&6; }
16361 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16362 for ncn_progname in ranlib; do
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16364 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16365 if test -x $with_build_time_tools/${ncn_progname}; then
16366 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16368 $as_echo "yes" >&6; }
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16372 $as_echo "no
" >&6; }
16377 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16378 for ncn_progname in ranlib; do
16379 if test -n "$ncn_target_tool_prefix"; then
16380 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16381 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16383 $as_echo_n "checking
for $ac_word...
" >&6; }
16384 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16385 $as_echo_n "(cached
) " >&6
16387 if test -n "$RANLIB_FOR_TARGET"; then
16388 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16391 for as_dir in $PATH
16394 test -z "$as_dir" && as_dir=.
16395 for ac_exec_ext in '' $ac_executable_extensions; do
16396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16397 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16398 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16407 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16408 if test -n "$RANLIB_FOR_TARGET"; then
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16410 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16413 $as_echo "no
" >&6; }
16418 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16419 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16420 set dummy ${ncn_progname}; ac_word=$2
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16422 $as_echo_n "checking
for $ac_word...
" >&6; }
16423 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16424 $as_echo_n "(cached
) " >&6
16426 if test -n "$RANLIB_FOR_TARGET"; then
16427 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16430 for as_dir in $PATH
16433 test -z "$as_dir" && as_dir=.
16434 for ac_exec_ext in '' $ac_executable_extensions; do
16435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16436 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16437 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16446 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16447 if test -n "$RANLIB_FOR_TARGET"; then
16448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16449 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16452 $as_echo "no
" >&6; }
16457 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16461 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16463 if test $build = $target ; then
16464 RANLIB_FOR_TARGET="$2"
16466 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16469 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16473 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16479 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16480 if test -n "$with_build_time_tools"; then
16481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16482 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16483 if test -x $with_build_time_tools/readelf; then
16484 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16485 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16487 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16490 $as_echo "no
" >&6; }
16492 elif test $build != $host && test $have_gcc_for_target = yes; then
16493 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16494 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16495 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16498 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16499 # Extract the first word of "readelf
", so it can be a program name with args.
16500 set dummy readelf; ac_word=$2
16501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16502 $as_echo_n "checking
for $ac_word...
" >&6; }
16503 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16504 $as_echo_n "(cached
) " >&6
16506 case $READELF_FOR_TARGET in
16508 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16512 for as_dir in $gcc_cv_tool_dirs
16515 test -z "$as_dir" && as_dir=.
16516 for ac_exec_ext in '' $ac_executable_extensions; do
16517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16518 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16519 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16529 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16530 if test -n "$READELF_FOR_TARGET"; then
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16532 $as_echo "$READELF_FOR_TARGET" >&6; }
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16535 $as_echo "no
" >&6; }
16540 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16543 if test -n "$READELF_FOR_TARGET"; then
16544 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16545 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16546 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16549 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16550 for ncn_progname in readelf; do
16551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16552 set dummy ${ncn_progname}; ac_word=$2
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16554 $as_echo_n "checking
for $ac_word...
" >&6; }
16555 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16556 $as_echo_n "(cached
) " >&6
16558 if test -n "$READELF_FOR_TARGET"; then
16559 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16562 for as_dir in $PATH
16565 test -z "$as_dir" && as_dir=.
16566 for ac_exec_ext in '' $ac_executable_extensions; do
16567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16568 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16569 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16578 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16579 if test -n "$READELF_FOR_TARGET"; then
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16581 $as_echo "$READELF_FOR_TARGET" >&6; }
16583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16584 $as_echo "no
" >&6; }
16591 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16592 for ncn_progname in readelf; do
16593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16594 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16595 if test -x $with_build_time_tools/${ncn_progname}; then
16596 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16598 $as_echo "yes" >&6; }
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16602 $as_echo "no
" >&6; }
16607 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16608 for ncn_progname in readelf; do
16609 if test -n "$ncn_target_tool_prefix"; then
16610 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16611 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16613 $as_echo_n "checking
for $ac_word...
" >&6; }
16614 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16615 $as_echo_n "(cached
) " >&6
16617 if test -n "$READELF_FOR_TARGET"; then
16618 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16621 for as_dir in $PATH
16624 test -z "$as_dir" && as_dir=.
16625 for ac_exec_ext in '' $ac_executable_extensions; do
16626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16627 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16628 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16637 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16638 if test -n "$READELF_FOR_TARGET"; then
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16640 $as_echo "$READELF_FOR_TARGET" >&6; }
16642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16643 $as_echo "no
" >&6; }
16648 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16649 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16650 set dummy ${ncn_progname}; ac_word=$2
16651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16652 $as_echo_n "checking
for $ac_word...
" >&6; }
16653 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16654 $as_echo_n "(cached
) " >&6
16656 if test -n "$READELF_FOR_TARGET"; then
16657 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16660 for as_dir in $PATH
16663 test -z "$as_dir" && as_dir=.
16664 for ac_exec_ext in '' $ac_executable_extensions; do
16665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16666 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16667 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16676 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16677 if test -n "$READELF_FOR_TARGET"; then
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16679 $as_echo "$READELF_FOR_TARGET" >&6; }
16681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16682 $as_echo "no
" >&6; }
16687 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16691 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16693 if test $build = $target ; then
16694 READELF_FOR_TARGET="$2"
16696 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16699 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16703 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16709 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16710 if test -n "$with_build_time_tools"; then
16711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
16712 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
16713 if test -x $with_build_time_tools/strip; then
16714 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16715 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
16717 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16720 $as_echo "no
" >&6; }
16722 elif test $build != $host && test $have_gcc_for_target = yes; then
16723 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16724 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16725 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16728 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16729 # Extract the first word of "strip
", so it can be a program name with args.
16730 set dummy strip; ac_word=$2
16731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16732 $as_echo_n "checking
for $ac_word...
" >&6; }
16733 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16734 $as_echo_n "(cached
) " >&6
16736 case $STRIP_FOR_TARGET in
16738 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16742 for as_dir in $gcc_cv_tool_dirs
16745 test -z "$as_dir" && as_dir=.
16746 for ac_exec_ext in '' $ac_executable_extensions; do
16747 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16748 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16749 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16759 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16760 if test -n "$STRIP_FOR_TARGET"; then
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16762 $as_echo "$STRIP_FOR_TARGET" >&6; }
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16765 $as_echo "no
" >&6; }
16770 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16773 if test -n "$STRIP_FOR_TARGET"; then
16774 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16775 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16776 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16779 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16780 for ncn_progname in strip; do
16781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16782 set dummy ${ncn_progname}; ac_word=$2
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16784 $as_echo_n "checking
for $ac_word...
" >&6; }
16785 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16786 $as_echo_n "(cached
) " >&6
16788 if test -n "$STRIP_FOR_TARGET"; then
16789 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16792 for as_dir in $PATH
16795 test -z "$as_dir" && as_dir=.
16796 for ac_exec_ext in '' $ac_executable_extensions; do
16797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16798 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16799 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16808 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16809 if test -n "$STRIP_FOR_TARGET"; then
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16811 $as_echo "$STRIP_FOR_TARGET" >&6; }
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16814 $as_echo "no
" >&6; }
16821 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16822 for ncn_progname in strip; do
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16824 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16825 if test -x $with_build_time_tools/${ncn_progname}; then
16826 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16828 $as_echo "yes" >&6; }
16831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16832 $as_echo "no
" >&6; }
16837 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16838 for ncn_progname in strip; do
16839 if test -n "$ncn_target_tool_prefix"; then
16840 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16841 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16843 $as_echo_n "checking
for $ac_word...
" >&6; }
16844 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16845 $as_echo_n "(cached
) " >&6
16847 if test -n "$STRIP_FOR_TARGET"; then
16848 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16851 for as_dir in $PATH
16854 test -z "$as_dir" && as_dir=.
16855 for ac_exec_ext in '' $ac_executable_extensions; do
16856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16857 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16858 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16867 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16868 if test -n "$STRIP_FOR_TARGET"; then
16869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16870 $as_echo "$STRIP_FOR_TARGET" >&6; }
16872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16873 $as_echo "no
" >&6; }
16878 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16880 set dummy ${ncn_progname}; ac_word=$2
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16882 $as_echo_n "checking
for $ac_word...
" >&6; }
16883 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16884 $as_echo_n "(cached
) " >&6
16886 if test -n "$STRIP_FOR_TARGET"; then
16887 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16890 for as_dir in $PATH
16893 test -z "$as_dir" && as_dir=.
16894 for ac_exec_ext in '' $ac_executable_extensions; do
16895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16896 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16897 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16906 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16907 if test -n "$STRIP_FOR_TARGET"; then
16908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16909 $as_echo "$STRIP_FOR_TARGET" >&6; }
16911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16912 $as_echo "no
" >&6; }
16917 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16921 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16923 if test $build = $target ; then
16924 STRIP_FOR_TARGET="$2"
16926 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16929 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16933 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16939 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16940 if test -n "$with_build_time_tools"; then
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
16942 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
16943 if test -x $with_build_time_tools/windres; then
16944 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16945 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16947 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16950 $as_echo "no
" >&6; }
16952 elif test $build != $host && test $have_gcc_for_target = yes; then
16953 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16954 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16955 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16958 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16959 # Extract the first word of "windres
", so it can be a program name with args.
16960 set dummy windres; ac_word=$2
16961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16962 $as_echo_n "checking
for $ac_word...
" >&6; }
16963 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16964 $as_echo_n "(cached
) " >&6
16966 case $WINDRES_FOR_TARGET in
16968 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16972 for as_dir in $gcc_cv_tool_dirs
16975 test -z "$as_dir" && as_dir=.
16976 for ac_exec_ext in '' $ac_executable_extensions; do
16977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16978 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16979 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16989 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16990 if test -n "$WINDRES_FOR_TARGET"; then
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16992 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16995 $as_echo "no
" >&6; }
17000 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17003 if test -n "$WINDRES_FOR_TARGET"; then
17004 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17005 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17006 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17009 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17010 for ncn_progname in windres; do
17011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17012 set dummy ${ncn_progname}; ac_word=$2
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17014 $as_echo_n "checking
for $ac_word...
" >&6; }
17015 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17016 $as_echo_n "(cached
) " >&6
17018 if test -n "$WINDRES_FOR_TARGET"; then
17019 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17022 for as_dir in $PATH
17025 test -z "$as_dir" && as_dir=.
17026 for ac_exec_ext in '' $ac_executable_extensions; do
17027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17028 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17029 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17038 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17039 if test -n "$WINDRES_FOR_TARGET"; then
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17041 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17044 $as_echo "no
" >&6; }
17051 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17052 for ncn_progname in windres; do
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17054 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17055 if test -x $with_build_time_tools/${ncn_progname}; then
17056 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17058 $as_echo "yes" >&6; }
17061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17062 $as_echo "no
" >&6; }
17067 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17068 for ncn_progname in windres; do
17069 if test -n "$ncn_target_tool_prefix"; then
17070 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17071 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17073 $as_echo_n "checking
for $ac_word...
" >&6; }
17074 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17075 $as_echo_n "(cached
) " >&6
17077 if test -n "$WINDRES_FOR_TARGET"; then
17078 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17080 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17081 for as_dir in $PATH
17084 test -z "$as_dir" && as_dir=.
17085 for ac_exec_ext in '' $ac_executable_extensions; do
17086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17087 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17088 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17097 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17098 if test -n "$WINDRES_FOR_TARGET"; then
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17100 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17103 $as_echo "no
" >&6; }
17108 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17109 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17110 set dummy ${ncn_progname}; ac_word=$2
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17112 $as_echo_n "checking
for $ac_word...
" >&6; }
17113 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17114 $as_echo_n "(cached
) " >&6
17116 if test -n "$WINDRES_FOR_TARGET"; then
17117 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17120 for as_dir in $PATH
17123 test -z "$as_dir" && as_dir=.
17124 for ac_exec_ext in '' $ac_executable_extensions; do
17125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17126 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17127 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17136 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17137 if test -n "$WINDRES_FOR_TARGET"; then
17138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17139 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17142 $as_echo "no
" >&6; }
17147 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17151 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17153 if test $build = $target ; then
17154 WINDRES_FOR_TARGET="$2"
17156 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17159 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17163 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17169 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17170 if test -n "$with_build_time_tools"; then
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17172 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17173 if test -x $with_build_time_tools/windmc; then
17174 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17175 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17177 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17180 $as_echo "no
" >&6; }
17182 elif test $build != $host && test $have_gcc_for_target = yes; then
17183 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17184 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17185 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17188 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17189 # Extract the first word of "windmc
", so it can be a program name with args.
17190 set dummy windmc; ac_word=$2
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17192 $as_echo_n "checking
for $ac_word...
" >&6; }
17193 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17194 $as_echo_n "(cached
) " >&6
17196 case $WINDMC_FOR_TARGET in
17198 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17202 for as_dir in $gcc_cv_tool_dirs
17205 test -z "$as_dir" && as_dir=.
17206 for ac_exec_ext in '' $ac_executable_extensions; do
17207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17208 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17209 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17219 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17220 if test -n "$WINDMC_FOR_TARGET"; then
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17222 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17225 $as_echo "no
" >&6; }
17230 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17233 if test -n "$WINDMC_FOR_TARGET"; then
17234 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17235 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17236 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17239 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17240 for ncn_progname in windmc; do
17241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17242 set dummy ${ncn_progname}; ac_word=$2
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17244 $as_echo_n "checking
for $ac_word...
" >&6; }
17245 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17246 $as_echo_n "(cached
) " >&6
17248 if test -n "$WINDMC_FOR_TARGET"; then
17249 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17252 for as_dir in $PATH
17255 test -z "$as_dir" && as_dir=.
17256 for ac_exec_ext in '' $ac_executable_extensions; do
17257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17258 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17259 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17268 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17269 if test -n "$WINDMC_FOR_TARGET"; then
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17271 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17274 $as_echo "no
" >&6; }
17281 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17282 for ncn_progname in windmc; do
17283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17284 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17285 if test -x $with_build_time_tools/${ncn_progname}; then
17286 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17288 $as_echo "yes" >&6; }
17291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17292 $as_echo "no
" >&6; }
17297 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17298 for ncn_progname in windmc; do
17299 if test -n "$ncn_target_tool_prefix"; then
17300 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17301 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17303 $as_echo_n "checking
for $ac_word...
" >&6; }
17304 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17305 $as_echo_n "(cached
) " >&6
17307 if test -n "$WINDMC_FOR_TARGET"; then
17308 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17311 for as_dir in $PATH
17314 test -z "$as_dir" && as_dir=.
17315 for ac_exec_ext in '' $ac_executable_extensions; do
17316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17317 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17318 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17327 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17328 if test -n "$WINDMC_FOR_TARGET"; then
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17330 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17333 $as_echo "no
" >&6; }
17338 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17339 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17340 set dummy ${ncn_progname}; ac_word=$2
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17342 $as_echo_n "checking
for $ac_word...
" >&6; }
17343 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17344 $as_echo_n "(cached
) " >&6
17346 if test -n "$WINDMC_FOR_TARGET"; then
17347 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17350 for as_dir in $PATH
17353 test -z "$as_dir" && as_dir=.
17354 for ac_exec_ext in '' $ac_executable_extensions; do
17355 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17356 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17357 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17366 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17367 if test -n "$WINDMC_FOR_TARGET"; then
17368 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17369 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17372 $as_echo "no
" >&6; }
17377 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17381 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17383 if test $build = $target ; then
17384 WINDMC_FOR_TARGET="$2"
17386 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17389 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17393 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17397 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17400 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17401 if test "x
${build}" != "x
${host}" ; then
17402 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17403 # We already found the complete path
17404 ac_dir=`dirname $AR_FOR_TARGET`
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17406 $as_echo "pre-installed
in $ac_dir" >&6; }
17408 # Canadian cross, just use what we found
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17410 $as_echo "pre-installed
" >&6; }
17414 case " ${configdirs} " in
17419 if test $ok = yes; then
17420 # An in-tree tool is available and we can use it
17421 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17423 $as_echo "just compiled
" >&6; }
17424 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17425 # We already found the complete path
17426 ac_dir=`dirname $AR_FOR_TARGET`
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17428 $as_echo "pre-installed
in $ac_dir" >&6; }
17429 elif test "x
$target" = "x
$host"; then
17430 # We can use an host tool
17431 AR_FOR_TARGET='$(AR)'
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17433 $as_echo "host tool
" >&6; }
17435 # We need a cross tool
17436 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17437 $as_echo "pre-installed
" >&6; }
17441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17442 $as_echo_n "checking where to
find the target as...
" >&6; }
17443 if test "x
${build}" != "x
${host}" ; then
17444 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17445 # We already found the complete path
17446 ac_dir=`dirname $AS_FOR_TARGET`
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17448 $as_echo "pre-installed
in $ac_dir" >&6; }
17450 # Canadian cross, just use what we found
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17452 $as_echo "pre-installed
" >&6; }
17456 case " ${configdirs} " in
17461 if test $ok = yes; then
17462 # An in-tree tool is available and we can use it
17463 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17465 $as_echo "just compiled
" >&6; }
17466 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17467 # We already found the complete path
17468 ac_dir=`dirname $AS_FOR_TARGET`
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17470 $as_echo "pre-installed
in $ac_dir" >&6; }
17471 elif test "x
$target" = "x
$host"; then
17472 # We can use an host tool
17473 AS_FOR_TARGET='$(AS)'
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17475 $as_echo "host tool
" >&6; }
17477 # We need a cross tool
17478 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17479 $as_echo "pre-installed
" >&6; }
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17484 $as_echo_n "checking where to
find the target cc...
" >&6; }
17485 if test "x
${build}" != "x
${host}" ; then
17486 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17487 # We already found the complete path
17488 ac_dir=`dirname $CC_FOR_TARGET`
17489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17490 $as_echo "pre-installed
in $ac_dir" >&6; }
17492 # Canadian cross, just use what we found
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17494 $as_echo "pre-installed
" >&6; }
17498 case " ${configdirs} " in
17503 if test $ok = yes; then
17504 # An in-tree tool is available and we can use it
17505 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17507 $as_echo "just compiled
" >&6; }
17508 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17509 # We already found the complete path
17510 ac_dir=`dirname $CC_FOR_TARGET`
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17512 $as_echo "pre-installed
in $ac_dir" >&6; }
17513 elif test "x
$target" = "x
$host"; then
17514 # We can use an host tool
17515 CC_FOR_TARGET='$(CC)'
17516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17517 $as_echo "host tool
" >&6; }
17519 # We need a cross tool
17520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17521 $as_echo "pre-installed
" >&6; }
17525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17526 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17527 if test "x
${build}" != "x
${host}" ; then
17528 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17529 # We already found the complete path
17530 ac_dir=`dirname $CXX_FOR_TARGET`
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17532 $as_echo "pre-installed
in $ac_dir" >&6; }
17534 # Canadian cross, just use what we found
17535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17536 $as_echo "pre-installed
" >&6; }
17540 case " ${configdirs} " in
17544 case ,${enable_languages}, in
17548 if test $ok = yes; then
17549 # An in-tree tool is available and we can use it
17550 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'
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17552 $as_echo "just compiled
" >&6; }
17553 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17554 # We already found the complete path
17555 ac_dir=`dirname $CXX_FOR_TARGET`
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17557 $as_echo "pre-installed
in $ac_dir" >&6; }
17558 elif test "x
$target" = "x
$host"; then
17559 # We can use an host tool
17560 CXX_FOR_TARGET='$(CXX)'
17561 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17562 $as_echo "host tool
" >&6; }
17564 # We need a cross tool
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17566 $as_echo "pre-installed
" >&6; }
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
17571 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17572 if test "x
${build}" != "x
${host}" ; then
17573 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17574 # We already found the complete path
17575 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17577 $as_echo "pre-installed
in $ac_dir" >&6; }
17579 # Canadian cross, just use what we found
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17581 $as_echo "pre-installed
" >&6; }
17585 case " ${configdirs} " in
17589 case ,${enable_languages}, in
17593 if test $ok = yes; then
17594 # An in-tree tool is available and we can use it
17595 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'
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17597 $as_echo "just compiled
" >&6; }
17598 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17599 # We already found the complete path
17600 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17602 $as_echo "pre-installed
in $ac_dir" >&6; }
17603 elif test "x
$target" = "x
$host"; then
17604 # We can use an host tool
17605 RAW_CXX_FOR_TARGET='$(CXX)'
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17607 $as_echo "host tool
" >&6; }
17609 # We need a cross tool
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17611 $as_echo "pre-installed
" >&6; }
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
17616 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17617 if test "x
${build}" != "x
${host}" ; then
17618 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17619 # We already found the complete path
17620 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17622 $as_echo "pre-installed
in $ac_dir" >&6; }
17624 # Canadian cross, just use what we found
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17626 $as_echo "pre-installed
" >&6; }
17630 case " ${configdirs} " in
17635 if test $ok = yes; then
17636 # An in-tree tool is available and we can use it
17637 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17639 $as_echo "just compiled
" >&6; }
17640 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17641 # We already found the complete path
17642 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17644 $as_echo "pre-installed
in $ac_dir" >&6; }
17645 elif test "x
$target" = "x
$host"; then
17646 # We can use an host tool
17647 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17649 $as_echo "host tool
" >&6; }
17651 # We need a cross tool
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17653 $as_echo "pre-installed
" >&6; }
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
17658 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
17659 if test "x
${build}" != "x
${host}" ; then
17660 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17661 # We already found the complete path
17662 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17664 $as_echo "pre-installed
in $ac_dir" >&6; }
17666 # Canadian cross, just use what we found
17667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17668 $as_echo "pre-installed
" >&6; }
17671 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17672 # We already found the complete path
17673 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17675 $as_echo "pre-installed
in $ac_dir" >&6; }
17676 elif test "x
$target" = "x
$host"; then
17677 # We can use an host tool
17678 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17680 $as_echo "host tool
" >&6; }
17682 # We need a cross tool
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17684 $as_echo "pre-installed
" >&6; }
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
17689 $as_echo_n "checking where to
find the target gcc...
" >&6; }
17690 if test "x
${build}" != "x
${host}" ; then
17691 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17692 # We already found the complete path
17693 ac_dir=`dirname $GCC_FOR_TARGET`
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17695 $as_echo "pre-installed
in $ac_dir" >&6; }
17697 # Canadian cross, just use what we found
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17699 $as_echo "pre-installed
" >&6; }
17703 case " ${configdirs} " in
17708 if test $ok = yes; then
17709 # An in-tree tool is available and we can use it
17710 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17712 $as_echo "just compiled
" >&6; }
17713 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17714 # We already found the complete path
17715 ac_dir=`dirname $GCC_FOR_TARGET`
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17717 $as_echo "pre-installed
in $ac_dir" >&6; }
17718 elif test "x
$target" = "x
$host"; then
17719 # We can use an host tool
17720 GCC_FOR_TARGET='$()'
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17722 $as_echo "host tool
" >&6; }
17724 # We need a cross tool
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17726 $as_echo "pre-installed
" >&6; }
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
17731 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
17732 if test "x
${build}" != "x
${host}" ; then
17733 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17734 # We already found the complete path
17735 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17737 $as_echo "pre-installed
in $ac_dir" >&6; }
17739 # Canadian cross, just use what we found
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17741 $as_echo "pre-installed
" >&6; }
17745 case " ${configdirs} " in
17749 case ,${enable_languages}, in
17753 if test $ok = yes; then
17754 # An in-tree tool is available and we can use it
17755 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17757 $as_echo "just compiled
" >&6; }
17758 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17759 # We already found the complete path
17760 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17762 $as_echo "pre-installed
in $ac_dir" >&6; }
17763 elif test "x
$target" = "x
$host"; then
17764 # We can use an host tool
17765 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17767 $as_echo "host tool
" >&6; }
17769 # We need a cross tool
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17771 $as_echo "pre-installed
" >&6; }
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
17776 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
17777 if test "x
${build}" != "x
${host}" ; then
17778 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17779 # We already found the complete path
17780 ac_dir=`dirname $GOC_FOR_TARGET`
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17782 $as_echo "pre-installed
in $ac_dir" >&6; }
17784 # Canadian cross, just use what we found
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17786 $as_echo "pre-installed
" >&6; }
17790 case " ${configdirs} " in
17794 case ,${enable_languages}, in
17798 if test $ok = yes; then
17799 # An in-tree tool is available and we can use it
17800 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17802 $as_echo "just compiled
" >&6; }
17803 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17804 # We already found the complete path
17805 ac_dir=`dirname $GOC_FOR_TARGET`
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17807 $as_echo "pre-installed
in $ac_dir" >&6; }
17808 elif test "x
$target" = "x
$host"; then
17809 # We can use an host tool
17810 GOC_FOR_TARGET='$(GOC)'
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17812 $as_echo "host tool
" >&6; }
17814 # We need a cross tool
17815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17816 $as_echo "pre-installed
" >&6; }
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
17821 $as_echo_n "checking where to
find the target gdc...
" >&6; }
17822 if test "x
${build}" != "x
${host}" ; then
17823 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17824 # We already found the complete path
17825 ac_dir=`dirname $GDC_FOR_TARGET`
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17827 $as_echo "pre-installed
in $ac_dir" >&6; }
17829 # Canadian cross, just use what we found
17830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17831 $as_echo "pre-installed
" >&6; }
17835 case " ${configdirs} " in
17839 case ,${enable_languages}, in
17843 if test $ok = yes; then
17844 # An in-tree tool is available and we can use it
17845 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17847 $as_echo "just compiled
" >&6; }
17848 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17849 # We already found the complete path
17850 ac_dir=`dirname $GDC_FOR_TARGET`
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17852 $as_echo "pre-installed
in $ac_dir" >&6; }
17853 elif test "x
$target" = "x
$host"; then
17854 # We can use an host tool
17855 GDC_FOR_TARGET='$(GDC)'
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17857 $as_echo "host tool
" >&6; }
17859 # We need a cross tool
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17861 $as_echo "pre-installed
" >&6; }
17865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
17866 $as_echo_n "checking where to
find the target ld...
" >&6; }
17867 if test "x
${build}" != "x
${host}" ; then
17868 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17869 # We already found the complete path
17870 ac_dir=`dirname $LD_FOR_TARGET`
17871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17872 $as_echo "pre-installed
in $ac_dir" >&6; }
17874 # Canadian cross, just use what we found
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17876 $as_echo "pre-installed
" >&6; }
17880 case " ${configdirs} " in
17885 if test $ok = yes; then
17886 # An in-tree tool is available and we can use it
17887 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17889 $as_echo "just compiled
" >&6; }
17890 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17891 # We already found the complete path
17892 ac_dir=`dirname $LD_FOR_TARGET`
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17894 $as_echo "pre-installed
in $ac_dir" >&6; }
17895 elif test "x
$target" = "x
$host"; then
17896 # We can use an host tool
17897 LD_FOR_TARGET='$(LD)'
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17899 $as_echo "host tool
" >&6; }
17901 # We need a cross tool
17902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17903 $as_echo "pre-installed
" >&6; }
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
17908 $as_echo_n "checking where to
find the target lipo...
" >&6; }
17909 if test "x
${build}" != "x
${host}" ; then
17910 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
17911 # We already found the complete path
17912 ac_dir=`dirname $LIPO_FOR_TARGET`
17913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17914 $as_echo "pre-installed
in $ac_dir" >&6; }
17916 # Canadian cross, just use what we found
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17918 $as_echo "pre-installed
" >&6; }
17921 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
17922 # We already found the complete path
17923 ac_dir=`dirname $LIPO_FOR_TARGET`
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17925 $as_echo "pre-installed
in $ac_dir" >&6; }
17926 elif test "x
$target" = "x
$host"; then
17927 # We can use an host tool
17928 LIPO_FOR_TARGET='$(LIPO)'
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17930 $as_echo "host tool
" >&6; }
17932 # We need a cross tool
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17934 $as_echo "pre-installed
" >&6; }
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
17939 $as_echo_n "checking where to
find the target nm...
" >&6; }
17940 if test "x
${build}" != "x
${host}" ; then
17941 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
17942 # We already found the complete path
17943 ac_dir=`dirname $NM_FOR_TARGET`
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17945 $as_echo "pre-installed
in $ac_dir" >&6; }
17947 # Canadian cross, just use what we found
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17949 $as_echo "pre-installed
" >&6; }
17953 case " ${configdirs} " in
17958 if test $ok = yes; then
17959 # An in-tree tool is available and we can use it
17960 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17962 $as_echo "just compiled
" >&6; }
17963 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
17964 # We already found the complete path
17965 ac_dir=`dirname $NM_FOR_TARGET`
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17967 $as_echo "pre-installed
in $ac_dir" >&6; }
17968 elif test "x
$target" = "x
$host"; then
17969 # We can use an host tool
17970 NM_FOR_TARGET='$(NM)'
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17972 $as_echo "host tool
" >&6; }
17974 # We need a cross tool
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17976 $as_echo "pre-installed
" >&6; }
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
17981 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
17982 if test "x
${build}" != "x
${host}" ; then
17983 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
17984 # We already found the complete path
17985 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17987 $as_echo "pre-installed
in $ac_dir" >&6; }
17989 # Canadian cross, just use what we found
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17991 $as_echo "pre-installed
" >&6; }
17995 case " ${configdirs} " in
18000 if test $ok = yes; then
18001 # An in-tree tool is available and we can use it
18002 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18004 $as_echo "just compiled
" >&6; }
18005 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18006 # We already found the complete path
18007 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18009 $as_echo "pre-installed
in $ac_dir" >&6; }
18010 elif test "x
$target" = "x
$host"; then
18011 # We can use an host tool
18012 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18014 $as_echo "host tool
" >&6; }
18016 # We need a cross tool
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18018 $as_echo "pre-installed
" >&6; }
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
18023 $as_echo_n "checking where to
find the target objdump...
" >&6; }
18024 if test "x
${build}" != "x
${host}" ; then
18025 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18026 # We already found the complete path
18027 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18029 $as_echo "pre-installed
in $ac_dir" >&6; }
18031 # Canadian cross, just use what we found
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18033 $as_echo "pre-installed
" >&6; }
18037 case " ${configdirs} " in
18042 if test $ok = yes; then
18043 # An in-tree tool is available and we can use it
18044 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18046 $as_echo "just compiled
" >&6; }
18047 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18048 # We already found the complete path
18049 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18051 $as_echo "pre-installed
in $ac_dir" >&6; }
18052 elif test "x
$target" = "x
$host"; then
18053 # We can use an host tool
18054 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18056 $as_echo "host tool
" >&6; }
18058 # We need a cross tool
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18060 $as_echo "pre-installed
" >&6; }
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
18065 $as_echo_n "checking where to
find the target otool...
" >&6; }
18066 if test "x
${build}" != "x
${host}" ; then
18067 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18068 # We already found the complete path
18069 ac_dir=`dirname $OTOOL_FOR_TARGET`
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18071 $as_echo "pre-installed
in $ac_dir" >&6; }
18073 # Canadian cross, just use what we found
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18075 $as_echo "pre-installed
" >&6; }
18078 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18079 # We already found the complete path
18080 ac_dir=`dirname $OTOOL_FOR_TARGET`
18081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18082 $as_echo "pre-installed
in $ac_dir" >&6; }
18083 elif test "x
$target" = "x
$host"; then
18084 # We can use an host tool
18085 OTOOL_FOR_TARGET='$(OTOOL)'
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18087 $as_echo "host tool
" >&6; }
18089 # We need a cross tool
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18091 $as_echo "pre-installed
" >&6; }
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
18096 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
18097 if test "x
${build}" != "x
${host}" ; then
18098 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18099 # We already found the complete path
18100 ac_dir=`dirname $RANLIB_FOR_TARGET`
18101 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18102 $as_echo "pre-installed
in $ac_dir" >&6; }
18104 # Canadian cross, just use what we found
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18106 $as_echo "pre-installed
" >&6; }
18110 case " ${configdirs} " in
18115 if test $ok = yes; then
18116 # An in-tree tool is available and we can use it
18117 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18119 $as_echo "just compiled
" >&6; }
18120 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18121 # We already found the complete path
18122 ac_dir=`dirname $RANLIB_FOR_TARGET`
18123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18124 $as_echo "pre-installed
in $ac_dir" >&6; }
18125 elif test "x
$target" = "x
$host"; then
18126 # We can use an host tool
18127 RANLIB_FOR_TARGET='$(RANLIB)'
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18129 $as_echo "host tool
" >&6; }
18131 # We need a cross tool
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18133 $as_echo "pre-installed
" >&6; }
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18138 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18139 if test "x
${build}" != "x
${host}" ; then
18140 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18141 # We already found the complete path
18142 ac_dir=`dirname $READELF_FOR_TARGET`
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18144 $as_echo "pre-installed
in $ac_dir" >&6; }
18146 # Canadian cross, just use what we found
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18148 $as_echo "pre-installed
" >&6; }
18152 case " ${configdirs} " in
18157 if test $ok = yes; then
18158 # An in-tree tool is available and we can use it
18159 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18161 $as_echo "just compiled
" >&6; }
18162 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18163 # We already found the complete path
18164 ac_dir=`dirname $READELF_FOR_TARGET`
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18166 $as_echo "pre-installed
in $ac_dir" >&6; }
18167 elif test "x
$target" = "x
$host"; then
18168 # We can use an host tool
18169 READELF_FOR_TARGET='$(READELF)'
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18171 $as_echo "host tool
" >&6; }
18173 # We need a cross tool
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18175 $as_echo "pre-installed
" >&6; }
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18180 $as_echo_n "checking where to
find the target strip...
" >&6; }
18181 if test "x
${build}" != "x
${host}" ; then
18182 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18183 # We already found the complete path
18184 ac_dir=`dirname $STRIP_FOR_TARGET`
18185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18186 $as_echo "pre-installed
in $ac_dir" >&6; }
18188 # Canadian cross, just use what we found
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18190 $as_echo "pre-installed
" >&6; }
18194 case " ${configdirs} " in
18199 if test $ok = yes; then
18200 # An in-tree tool is available and we can use it
18201 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18203 $as_echo "just compiled
" >&6; }
18204 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18205 # We already found the complete path
18206 ac_dir=`dirname $STRIP_FOR_TARGET`
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18208 $as_echo "pre-installed
in $ac_dir" >&6; }
18209 elif test "x
$target" = "x
$host"; then
18210 # We can use an host tool
18211 STRIP_FOR_TARGET='$(STRIP)'
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18213 $as_echo "host tool
" >&6; }
18215 # We need a cross tool
18216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18217 $as_echo "pre-installed
" >&6; }
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18222 $as_echo_n "checking where to
find the target windres...
" >&6; }
18223 if test "x
${build}" != "x
${host}" ; then
18224 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18225 # We already found the complete path
18226 ac_dir=`dirname $WINDRES_FOR_TARGET`
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18228 $as_echo "pre-installed
in $ac_dir" >&6; }
18230 # Canadian cross, just use what we found
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18232 $as_echo "pre-installed
" >&6; }
18236 case " ${configdirs} " in
18241 if test $ok = yes; then
18242 # An in-tree tool is available and we can use it
18243 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18245 $as_echo "just compiled
" >&6; }
18246 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18247 # We already found the complete path
18248 ac_dir=`dirname $WINDRES_FOR_TARGET`
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18250 $as_echo "pre-installed
in $ac_dir" >&6; }
18251 elif test "x
$target" = "x
$host"; then
18252 # We can use an host tool
18253 WINDRES_FOR_TARGET='$(WINDRES)'
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18255 $as_echo "host tool
" >&6; }
18257 # We need a cross tool
18258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18259 $as_echo "pre-installed
" >&6; }
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18264 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18265 if test "x
${build}" != "x
${host}" ; then
18266 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18267 # We already found the complete path
18268 ac_dir=`dirname $WINDMC_FOR_TARGET`
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18270 $as_echo "pre-installed
in $ac_dir" >&6; }
18272 # Canadian cross, just use what we found
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18274 $as_echo "pre-installed
" >&6; }
18278 case " ${configdirs} " in
18283 if test $ok = yes; then
18284 # An in-tree tool is available and we can use it
18285 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18287 $as_echo "just compiled
" >&6; }
18288 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18289 # We already found the complete path
18290 ac_dir=`dirname $WINDMC_FOR_TARGET`
18291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18292 $as_echo "pre-installed
in $ac_dir" >&6; }
18293 elif test "x
$target" = "x
$host"; then
18294 # We can use an host tool
18295 WINDMC_FOR_TARGET='$(WINDMC)'
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18297 $as_echo "host tool
" >&6; }
18299 # We need a cross tool
18300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18301 $as_echo "pre-installed
" >&6; }
18309 # Certain tools may need extra flags.
18310 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18311 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18312 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18314 # When building target libraries, except in a Canadian cross, we use
18315 # the same toolchain as the compiler we just built.
18316 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18317 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18318 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18319 if test $host = $build; then
18320 case " $configdirs " in
18322 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18323 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18324 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18334 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18335 # Check whether --enable-maintainer-mode was given.
18336 if test "${enable_maintainer_mode+set}" = set; then :
18337 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18339 USE_MAINTAINER_MODE=no
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18343 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18346 if test "$USE_MAINTAINER_MODE" = yes; then
18347 MAINTAINER_MODE_TRUE=
18348 MAINTAINER_MODE_FALSE='#'
18350 MAINTAINER_MODE_TRUE='#'
18351 MAINTAINER_MODE_FALSE=
18353 MAINT=$MAINTAINER_MODE_TRUE
18355 # ---------------------
18356 # GCC bootstrap support
18357 # ---------------------
18359 # Stage specific cflags for build.
18364 yes) stage1_cflags="-g -Wa,-J" ;;
18365 *) stage1_cflags="-g -J" ;;
18371 # Enable --enable-checking in stage1 of the compiler.
18372 # Check whether --enable-stage1-checking was given.
18373 if test "${enable_stage1_checking+set}" = set; then :
18374 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18376 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18377 # For --disable-checking or implicit --enable-checking=release, avoid
18378 # setting --enable-checking=gc in the default stage1 checking for LTO
18379 # bootstraps. See PR62077.
18380 case $BUILD_CONFIG in
18382 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18384 stage1_checking=--enable-checking=yes,types;;
18386 if test "x
$enable_checking" = x && \
18387 test -d ${srcdir}/gcc && \
18388 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18389 stage1_checking=--enable-checking=yes,types,extra
18392 stage1_checking=--enable-checking=$enable_checking,types
18398 # Enable -Werror in bootstrap stage2 and later.
18399 # Check whether --enable-werror was given.
18400 if test "${enable_werror+set}" = set; then :
18401 enableval=$enable_werror;
18402 case ${enable_werror} in
18403 yes) stage2_werror_flag="--enable-werror-always" ;;
18404 *) stage2_werror_flag="" ;;
18409 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18410 case $BUILD_CONFIG in
18412 stage2_werror_flag="--enable-werror-always" ;;
18414 stage2_werror_flag="--enable-werror-always" ;;
18423 # Specify what files to not compare during bootstrap.
18425 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18427 hppa*64*-*-hpux*) ;;
18428 hppa*-*-hpux*) compare_exclusions="$compare_exclusions |
*/libgcc
/lib2funcs
* | gcc
/function-tests.o
" ;;
18429 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18433 ac_config_files="$ac_config_files Makefile
"
18435 cat >confcache <<\_ACEOF
18436 # This file is a shell script that caches the results of configure
18437 # tests run on this system so they can be shared between configure
18438 # scripts and configure runs, see configure's option --config-cache.
18439 # It is not useful on other systems. If it contains results you don't
18440 # want to keep, you may remove or edit it.
18442 # config.status only pays attention to the cache file if you give it
18443 # the --recheck option to rerun configure.
18445 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18446 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18447 # following values.
18451 # The following way of writing the cache mishandles newlines in values,
18452 # but we know of no workaround that is simple, portable, and efficient.
18453 # So, we kill variables containing newlines.
18454 # Ultrix sh set writes to stderr and can't be redirected directly,
18455 # and sets the high bit in the cache file unless we assign to the vars.
18457 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18458 eval ac_val=\$$ac_var
18462 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18463 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18466 _ | IFS | as_nl) ;; #(
18467 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18468 *) { eval $ac_var=; unset $ac_var;} ;;
18474 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18475 *${as_nl}ac_space=\ *)
18476 # `set' does not quote correctly, so add quotes: double-quote
18477 # substitution turns \\\\ into \\, and sed turns \\ into \.
18480 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18483 # `set' quotes correctly as required by POSIX, so do not add quotes.
18484 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18493 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18495 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18497 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18498 if test -w "$cache_file"; then
18499 if test "x
$cache_file" != "x
/dev
/null
"; then
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18501 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18502 if test ! -f "$cache_file" || test -h "$cache_file"; then
18503 cat confcache >"$cache_file"
18505 case $cache_file in #(
18507 mv -f confcache "$cache_file"$$ &&
18508 mv -f "$cache_file"$$ "$cache_file" ;; #(
18510 mv -f confcache "$cache_file" ;;
18515 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18516 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18521 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18522 # Let make expand exec_prefix.
18523 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18525 # Transform confdefs.h into DEFS.
18526 # Protect against shell expansion while executing Makefile rules.
18527 # Protect against Makefile macro expansion.
18529 # If the first sed substitution is executed (which looks for macros that
18530 # take arguments), then branch to the quote section. Otherwise,
18531 # look for a macro that doesn't take arguments.
18541 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18543 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18547 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18560 DEFS=`sed -n "$ac_script" confdefs.h`
18566 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18567 # 1. Remove the extension, and $U if already installed.
18568 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18569 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18570 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18571 # will be set to the directory where LIBOBJS objects are built.
18572 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18573 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
18575 LIBOBJS=$ac_libobjs
18577 LTLIBOBJS=$ac_ltlibobjs
18581 : "${CONFIG_STATUS=./config.status}"
18583 ac_clean_files_save=$ac_clean_files
18584 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18585 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18586 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18588 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18590 # Generated by $as_me.
18591 # Run this file to recreate the current configuration.
18592 # Compiler output produced by configure, useful for debugging
18593 # configure, is in config.log if it exists.
18596 ac_cs_recheck=false
18599 SHELL=\${CONFIG_SHELL-$SHELL}
18602 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18603 ## -------------------- ##
18604 ## M4sh Initialization. ##
18605 ## -------------------- ##
18607 # Be more Bourne compatible
18608 DUALCASE=1; export DUALCASE # for MKS sh
18609 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18612 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18613 # is contrary to our usage. Disable this feature.
18614 alias -g '${1+"$@"}'='"$@"'
18615 setopt NO_GLOB_SUBST
18617 case `(set -o) 2>/dev/null` in #(
18629 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18630 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18631 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
18632 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18633 # Prefer a ksh shell builtin over an external printf program on Solaris,
18634 # but without wasting forks for bash or zsh.
18635 if test -z "$BASH_VERSION$ZSH_VERSION" \
18636 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18637 as_echo
='print -r --'
18638 as_echo_n
='print -rn --'
18639 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18640 as_echo
='printf %s\n'
18641 as_echo_n
='printf %s'
18643 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18644 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
18645 as_echo_n
='/usr/ucb/echo -n'
18647 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
18648 as_echo_n_body
='eval
18652 expr "X$arg" : "X\\(.*\\)$as_nl";
18653 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18655 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18657 export as_echo_n_body
18658 as_echo_n
='sh -c $as_echo_n_body as_echo'
18660 export as_echo_body
18661 as_echo
='sh -c $as_echo_body as_echo'
18664 # The user is always right.
18665 if test "${PATH_SEPARATOR+set}" != set; then
18667 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
18668 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
18675 # We need space, tab and new line, in precisely that order. Quoting is
18676 # there to prevent editors from complaining about space-tab.
18677 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18678 # splitting by setting IFS to empty value.)
18681 # Find who we are. Look in the path if we contain no directory separator.
18684 *[\\/]* ) as_myself
=$0 ;;
18685 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18686 for as_dir
in $PATH
18689 test -z "$as_dir" && as_dir
=.
18690 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18696 # We did not find ourselves, most probably we were run as `sh COMMAND'
18697 # in which case we are not to be found in the path.
18698 if test "x$as_myself" = x
; then
18701 if test ! -f "$as_myself"; then
18702 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18706 # Unset variables that we do not need and which cause bugs (e.g. in
18707 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18708 # suppresses any "Segmentation fault" message there. '((' could
18709 # trigger a bug in pdksh 5.2.14.
18710 for as_var
in BASH_ENV ENV MAIL MAILPATH
18711 do eval test x\
${$as_var+set} = xset \
18712 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18725 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18728 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18729 # ----------------------------------------
18730 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18731 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18732 # script with STATUS, using 1 if that was 0.
18735 as_status
=$1; test $as_status -eq 0 && as_status
=1
18737 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18738 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18740 $as_echo "$as_me: error: $2" >&2
18741 as_fn_exit
$as_status
18745 # as_fn_set_status STATUS
18746 # -----------------------
18747 # Set $? to STATUS, without forking.
18748 as_fn_set_status
()
18751 } # as_fn_set_status
18753 # as_fn_exit STATUS
18754 # -----------------
18755 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18759 as_fn_set_status
$1
18765 # Portably unset VAR.
18768 { eval $1=; unset $1;}
18770 as_unset
=as_fn_unset
18771 # as_fn_append VAR VALUE
18772 # ----------------------
18773 # Append the text in VALUE to the end of the definition contained in VAR. Take
18774 # advantage of any shell optimizations that allow amortized linear growth over
18775 # repeated appends, instead of the typical quadratic growth present in naive
18777 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18778 eval 'as_fn_append ()
18789 # as_fn_arith ARG...
18790 # ------------------
18791 # Perform arithmetic evaluation on the ARGs, and store the result in the
18792 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18793 # must be portable across $(()) and expr.
18794 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18795 eval 'as_fn_arith ()
18802 as_val
=`expr "$@" || test $? -eq 1`
18807 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18808 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18814 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18815 as_basename
=basename
18820 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18826 as_me
=`$as_basename -- "$0" ||
18827 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18828 X"$0" : 'X\(//\)$' \| \
18829 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18831 sed '/^.*\/\([^/][^/]*\)\/*$/{
18845 # Avoid depending upon Character Ranges.
18846 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18847 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18848 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18849 as_cr_digits
='0123456789'
18850 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18852 ECHO_C
= ECHO_N
= ECHO_T
=
18853 case `echo -n x` in #(((((
18855 case `echo 'xy\c'` in
18856 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18858 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18865 rm -f conf$$ conf$$.exe conf$$.
file
18866 if test -d conf$$.dir
; then
18867 rm -f conf$$.dir
/conf$$.
file
18870 mkdir conf$$.dir
2>/dev
/null
18872 if (echo >conf$$.
file) 2>/dev
/null
; then
18873 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18875 # ... but there are two gotchas:
18876 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18877 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18878 # In both cases, we have to default to `cp -pR'.
18879 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18881 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18889 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18890 rmdir conf$$.dir
2>/dev
/null
18895 # Create "$as_dir" as a directory, including parents if necessary.
18900 -*) as_dir
=.
/$as_dir;;
18902 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18906 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18907 *) as_qdir
=$as_dir;;
18909 as_dirs
="'$as_qdir' $as_dirs"
18910 as_dir
=`$as_dirname -- "$as_dir" ||
18911 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18912 X"$as_dir" : 'X\(//\)[^/]' \| \
18913 X"$as_dir" : 'X\(//\)$' \| \
18914 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18915 $as_echo X"$as_dir" |
18916 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18920 /^X\(\/\/\)[^/].*/{
18933 test -d "$as_dir" && break
18935 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18936 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18940 if mkdir
-p .
2>/dev
/null
; then
18941 as_mkdir_p
='mkdir -p "$as_dir"'
18943 test -d .
/-p && rmdir .
/-p
18948 # as_fn_executable_p FILE
18949 # -----------------------
18950 # Test if FILE is an executable regular file.
18951 as_fn_executable_p
()
18953 test -f "$1" && test -x "$1"
18954 } # as_fn_executable_p
18955 as_test_x
='test -x'
18956 as_executable_p
=as_fn_executable_p
18958 # Sed expression to map a string onto a valid CPP name.
18959 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18961 # Sed expression to map a string onto a valid variable name.
18962 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18966 ## ----------------------------------- ##
18967 ## Main body of $CONFIG_STATUS script. ##
18968 ## ----------------------------------- ##
18970 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18972 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18973 # Save the log message, to keep $0 and so on meaningful, and to
18974 # report actual input values of CONFIG_FILES etc. instead of their
18975 # values after options handling.
18977 This file was extended by $as_me, which was
18978 generated by GNU Autoconf 2.69. Invocation command line was
18980 CONFIG_FILES = $CONFIG_FILES
18981 CONFIG_HEADERS = $CONFIG_HEADERS
18982 CONFIG_LINKS = $CONFIG_LINKS
18983 CONFIG_COMMANDS = $CONFIG_COMMANDS
18986 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18991 case $ac_config_files in *"
18992 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18997 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18998 # Files that config.status was made for.
18999 config_files="$ac_config_files"
19003 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19005 \`$as_me' instantiates files and other configuration actions
19006 from templates according to the current configuration. Unless the files
19007 and actions are specified as TAGs, all are instantiated by default.
19009 Usage: $0 [OPTION]... [TAG]...
19011 -h, --help print this help, then exit
19012 -V, --version print version number and configuration settings, then exit
19013 --config print configuration, then exit
19014 -q, --quiet, --silent
19015 do not print progress messages
19016 -d, --debug don't remove temporary files
19017 --recheck update $as_me by reconfiguring in the same conditions
19018 --file=FILE[:TEMPLATE]
19019 instantiate the configuration file FILE
19021 Configuration files:
19024 Report bugs to the package provider."
19027 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19028 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19031 configured by $0, generated by GNU Autoconf 2.69,
19032 with options \\"\$ac_cs_config\\"
19034 Copyright (C) 2012 Free Software Foundation, Inc.
19035 This config.status script is free software; the Free Software Foundation
19036 gives unlimited permission to copy, distribute and modify it."
19042 test -n "\$AWK" || AWK=awk
19045 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19046 # The default lists apply if the user does not specify any file.
19052 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19053 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19057 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19069 # Handling of the options.
19070 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19072 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19073 $as_echo "$ac_cs_version"; exit ;;
19074 --config |
--confi |
--conf |
--con |
--co |
--c )
19075 $as_echo "$ac_cs_config"; exit ;;
19076 --debug |
--debu |
--deb |
--de |
--d |
-d )
19078 --file |
--fil |
--fi |
--f )
19081 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19082 '') as_fn_error $?
"missing file argument" ;;
19084 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19085 ac_need_defaults
=false
;;
19086 --he |
--h |
--help |
--hel |
-h )
19087 $as_echo "$ac_cs_usage"; exit ;;
19088 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19089 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19092 # This is an error.
19093 -*) as_fn_error $?
"unrecognized option: \`$1'
19094 Try \`$0 --help' for more information." ;;
19096 *) as_fn_append ac_config_targets
" $1"
19097 ac_need_defaults
=false
;;
19103 ac_configure_extra_args
=
19105 if $ac_cs_silent; then
19107 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19112 if \$ac_cs_recheck; then
19113 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19115 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19116 CONFIG_SHELL='$SHELL'
19117 export CONFIG_SHELL
19122 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19126 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19127 ## Running $as_me. ##
19133 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19137 extrasub_build="$extrasub_build"
19138 extrasub_host="$extrasub_host"
19139 extrasub_target="$extrasub_target"
19143 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19145 # Handling of arguments.
19146 for ac_config_target
in $ac_config_targets
19148 case $ac_config_target in
19149 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19151 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19156 # If the user did not use the arguments to specify the items to instantiate,
19157 # then the envvar interface is used. Set only those that are not.
19158 # We use the long form for the default assignment because of an extremely
19159 # bizarre bug on SunOS 4.1.3.
19160 if $ac_need_defaults; then
19161 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19164 # Have a temporary directory for convenience. Make it in the build tree
19165 # simply because there is no reason against having it here, and in addition,
19166 # creating and moving files from /tmp can sometimes cause problems.
19167 # Hook for its removal unless debugging.
19168 # Note that there is a small window in which the directory will not be cleaned:
19169 # after its creation but before its name has been assigned to `$tmp'.
19173 trap 'exit_status=$?
19174 : "${ac_tmp:=$tmp}"
19175 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19177 trap 'as_fn_exit 1' 1 2 13 15
19179 # Create a (secure) tmp directory for tmp files.
19182 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19186 tmp
=.
/conf$$
-$RANDOM
19187 (umask 077 && mkdir
"$tmp")
19188 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19191 # Set up the scripts for CONFIG_FILES section.
19192 # No need to generate them if there are no CONFIG_FILES.
19193 # This happens for instance with `./config.status config.h'.
19194 if test -n "$CONFIG_FILES"; then
19196 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19197 ac_cs_awk_getline
=:
19198 ac_cs_awk_pipe_init
=
19199 ac_cs_awk_read_file
='
19200 while ((getline aline < (F[key])) > 0)
19203 ac_cs_awk_pipe_fini
=
19205 ac_cs_awk_getline
=false
19206 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19207 ac_cs_awk_read_file
='
19209 print "cat " F[key] " &&"
19210 '$ac_cs_awk_pipe_init
19211 # The final `:' finishes the AND list.
19212 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19214 ac_cr
=`echo X | tr X '\015'`
19215 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19216 # But we know of no other shell where ac_cr would be empty at this
19217 # point, so we can use a bashism as a fallback.
19218 if test "x$ac_cr" = x
; then
19219 eval ac_cr
=\$
\'\\r
\'
19221 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19222 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19225 ac_cs_awk_cr
=$ac_cr
19228 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19231 # Create commands to substitute file output variables.
19233 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19234 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19235 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19238 } >conf$
$files.sh
&&
19239 . .
/conf$
$files.sh ||
19240 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19241 rm -f conf$
$files.sh
19244 echo "cat >conf$$subs.awk <<_ACEOF" &&
19245 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19247 } >conf$$subs.sh ||
19248 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19249 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19251 for ac_last_try in false false false false false :; do
19252 . ./conf$$subs.sh ||
19253 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19255 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19256 if test $ac_delim_n = $ac_delim_num; then
19258 elif $ac_last_try; then
19259 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19261 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19264 rm -f conf$$subs.sh
19266 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19267 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19271 s/^/S["/; s
/!.
*/"]=/
19281 s/\(.\{148\}\)..*/\1/
19283 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19288 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19295 s/\(.\{148\}\)..*/\1/
19297 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19301 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19306 ' <conf$$subs.awk | sed '
19311 ' >>$CONFIG_STATUS || ac_write_fail=1
19312 rm -f conf$$subs.awk
19313 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19315 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19316 for (key in S) S_is_set[key] = 1
19318 \$ac_cs_awk_pipe_init
19322 nfields = split(line, field, "@
")
19324 len = length(field[1])
19325 for (i = 2; i < nfields; i++) {
19327 keylen = length(key)
19328 if (S_is_set[key]) {
19330 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19331 len += length(value) + length(field[++i])
19336 if (nfields == 3 && !substed) {
19338 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19339 \$ac_cs_awk_read_file
19345 \$ac_cs_awk_pipe_fini
19348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19349 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19350 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19353 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19354 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19357 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19358 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19359 # trailing colons and then remove the whole line if VPATH becomes empty
19360 # (actually we leave an empty line to preserve line numbers).
19361 if test "x
$srcdir" = x.; then
19362 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19381 fi # test -n "$CONFIG_FILES"
19384 eval set X " :F
$CONFIG_FILES "
19389 :[FHLC]) ac_mode=$ac_tag; continue;;
19391 case $ac_mode$ac_tag in
19393 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19394 :[FH]-) ac_tag=-:-;;
19395 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19412 -) ac_f="$ac_tmp/stdin";;
19413 *) # Look for the file first in the build tree, then in the source tree
19414 # (if the path is not absolute). The absolute path cannot be DOS-style,
19415 # because $ac_f cannot contain `:'.
19419 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19421 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19423 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19424 as_fn_append ac_file_inputs " '$ac_f'"
19427 # Let's still pretend it is `configure' which instantiates (i.e., don't
19428 # use $as_me), people would be surprised to read:
19429 # /* config.h. Generated by config.status. */
19430 configure_input='Generated from '`
19431 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19433 if test x"$ac_file" != x-; then
19434 configure_input="$ac_file.
$configure_input"
19435 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19436 $as_echo "$as_me: creating
$ac_file" >&6;}
19438 # Neutralize special characters interpreted by sed in replacement strings.
19439 case $configure_input in #(
19440 *\&* | *\|* | *\\* )
19441 ac_sed_conf_input=`$as_echo "$configure_input" |
19442 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19443 *) ac_sed_conf_input=$configure_input;;
19447 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19448 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19453 ac_dir=`$as_dirname -- "$ac_file" ||
19454 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19455 X"$ac_file" : 'X\(//\)[^/]' \| \
19456 X"$ac_file" : 'X\(//\)$' \| \
19457 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19458 $as_echo X"$ac_file" |
19459 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19463 /^X\(\/\/\)[^/].*/{
19476 as_dir="$ac_dir"; as_fn_mkdir_p
19480 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19482 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19483 # A "..
" for each directory in $ac_dir_suffix.
19484 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19485 case $ac_top_builddir_sub in
19486 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19487 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19490 ac_abs_top_builddir=$ac_pwd
19491 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19492 # for backward compatibility:
19493 ac_top_builddir=$ac_top_build_prefix
19496 .) # We are building in place.
19498 ac_top_srcdir=$ac_top_builddir_sub
19499 ac_abs_top_srcdir=$ac_pwd ;;
19500 [\\/]* | ?:[\\/]* ) # Absolute name.
19501 ac_srcdir=$srcdir$ac_dir_suffix;
19502 ac_top_srcdir=$srcdir
19503 ac_abs_top_srcdir=$srcdir ;;
19504 *) # Relative name.
19505 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19506 ac_top_srcdir=$ac_top_build_prefix$srcdir
19507 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19509 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19519 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19520 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19524 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19525 # If the template does not know about datarootdir, expand it.
19526 # FIXME: This hack should be removed a few years after 2.60.
19527 ac_datarootdir_hack=; ac_datarootdir_seen=
19538 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19539 *datarootdir*) ac_datarootdir_seen=yes;;
19540 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19542 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19545 ac_datarootdir_hack='
19546 s&@datadir@&$datadir&g
19547 s&@docdir@&$docdir&g
19548 s&@infodir@&$infodir&g
19549 s&@localedir@&$localedir&g
19550 s&@mandir@&$mandir&g
19551 s&\\\${datarootdir}&$datarootdir&g' ;;
19555 # Neutralize VPATH when `$srcdir' = `.'.
19556 # Shell code in configure.ac might set extrasub.
19557 # FIXME: do we really want to maintain this feature?
19558 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19559 ac_sed_extra="$ac_vpsub
19562 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19564 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19565 s|@configure_input@|
$ac_sed_conf_input|
;t t
19566 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19567 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19568 s
&@srcdir@
&$ac_srcdir&;t t
19569 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19570 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19571 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19572 s
&@builddir@
&$ac_builddir&;t t
19573 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19574 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19575 s
&@INSTALL@
&$ac_INSTALL&;t t
19576 $ac_datarootdir_hack
19578 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19579 if $ac_cs_awk_getline; then
19580 $AWK -f "$ac_tmp/subs.
awk"
19582 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19584 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19586 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19587 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19588 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19589 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19591 which seems to be undefined. Please make sure it is defined" >&5
19592 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19593 which seems to be undefined. Please make sure it is defined" >&2;}
19595 rm -f "$ac_tmp/stdin"
19597 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19598 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19600 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19608 case $ac_file$ac_mode in
19609 "Makefile":F) sed "$extrasub_build" Makefile |
19610 sed "$extrasub_host" |
19611 sed "$extrasub_target" > mf$$
19612 mv -f mf$$ Makefile ;;
19620 ac_clean_files=$ac_clean_files_save
19622 test $ac_write_fail = 0 ||
19623 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19626 # configure is writing to config.log, and then calls config.status.
19627 # config.status does its own redirection, appending to config.log.
19628 # Unfortunately, on DOS this fails, as config.log is still kept open
19629 # by configure, so config.status won't be able to
write to it
; its
19630 # output is simply discarded. So we exec the FD to /dev/null,
19631 # effectively closing config.log, so it can be properly (re)opened and
19632 # appended to by config.status. When coming back to configure, we
19633 # need to make the FD available again.
19634 if test "$no_create" != yes; then
19636 ac_config_status_args
=
19637 test "$silent" = yes &&
19638 ac_config_status_args
="$ac_config_status_args --quiet"
19640 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19642 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19643 # would make configure fail if this is the last instruction.
19644 $ac_cs_success || as_fn_exit
1
19646 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19648 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}