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
809 enable_libquadmath_support
826 with_static_standard_libraries
833 enable_isl_version_check
835 enable_linker_plugin_configure_flags
836 enable_linker_plugin_flags
838 enable_stage1_languages
841 with_target_bdw_gc_include
842 with_target_bdw_gc_lib
843 with_gcc_major_version_only
845 with_debug_prefix_map
848 enable_serial_configure
849 with_build_time_tools
850 enable_maintainer_mode
851 enable_stage1_checking
854 ac_precious_vars
='build_alias
906 # Initialize some variables set by options.
908 ac_init_version
=false
909 ac_unrecognized_opts
=
911 # The variables have the same names as the options, with
912 # dashes changed to underlines.
920 program_transform_name
=s
,x
,x
,
928 # Installation directory options.
929 # These are left unexpanded so users can "make install exec_prefix=/foo"
930 # and all the variables that are supposed to be based on exec_prefix
931 # by default will actually change.
932 # Use braces instead of parens because sh, perl, etc. also accept them.
933 # (The list follows the same order as the GNU Coding Standards.)
934 bindir
='${exec_prefix}/bin'
935 sbindir
='${exec_prefix}/sbin'
936 libexecdir
='${exec_prefix}/libexec'
937 datarootdir
='${prefix}/share'
938 datadir
='${datarootdir}'
939 sysconfdir
='${prefix}/etc'
940 sharedstatedir
='${prefix}/com'
941 localstatedir
='${prefix}/var'
942 includedir
='${prefix}/include'
943 oldincludedir
='/usr/include'
944 docdir
='${datarootdir}/doc/${PACKAGE}'
945 infodir
='${datarootdir}/info'
950 libdir
='${exec_prefix}/lib'
951 localedir
='${datarootdir}/locale'
952 mandir
='${datarootdir}/man'
958 # If the previous option needs an argument, assign it.
959 if test -n "$ac_prev"; then
960 eval $ac_prev=\
$ac_option
966 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
971 # Accept the important Cygnus configure options, so we can diagnose typos.
973 case $ac_dashdash$ac_option in
977 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
979 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
982 -build |
--build |
--buil |
--bui |
--bu)
983 ac_prev
=build_alias
;;
984 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
985 build_alias
=$ac_optarg ;;
987 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
988 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
989 ac_prev
=cache_file
;;
990 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
991 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
992 cache_file
=$ac_optarg ;;
995 cache_file
=config.cache
;;
997 -datadir |
--datadir |
--datadi |
--datad)
999 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1000 datadir
=$ac_optarg ;;
1002 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1003 |
--dataroo |
--dataro |
--datar)
1004 ac_prev
=datarootdir
;;
1005 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1006 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1007 datarootdir
=$ac_optarg ;;
1009 -disable-* |
--disable-*)
1010 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1011 # Reject names that are not valid shell variable names.
1012 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1013 as_fn_error $?
"invalid feature name: $ac_useropt"
1014 ac_useropt_orig
=$ac_useropt
1015 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1016 case $ac_user_opts in
1018 "enable_
$ac_useropt"
1020 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1021 ac_unrecognized_sep
=', ';;
1023 eval enable_
$ac_useropt=no
;;
1025 -docdir |
--docdir |
--docdi |
--doc |
--do)
1027 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1028 docdir
=$ac_optarg ;;
1030 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1032 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1033 dvidir
=$ac_optarg ;;
1035 -enable-* |
--enable-*)
1036 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1037 # Reject names that are not valid shell variable names.
1038 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1039 as_fn_error $?
"invalid feature name: $ac_useropt"
1040 ac_useropt_orig
=$ac_useropt
1041 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1042 case $ac_user_opts in
1044 "enable_
$ac_useropt"
1046 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1047 ac_unrecognized_sep
=', ';;
1049 eval enable_
$ac_useropt=\
$ac_optarg ;;
1051 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1052 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1053 |
--exec |
--exe |
--ex)
1054 ac_prev
=exec_prefix
;;
1055 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1056 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1057 |
--exec=* |
--exe=* |
--ex=*)
1058 exec_prefix
=$ac_optarg ;;
1060 -gas |
--gas |
--ga |
--g)
1061 # Obsolete; use --with-gas.
1064 -help |
--help |
--hel |
--he |
-h)
1065 ac_init_help
=long
;;
1066 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1067 ac_init_help
=recursive
;;
1068 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1069 ac_init_help
=short
;;
1071 -host |
--host |
--hos |
--ho)
1072 ac_prev
=host_alias
;;
1073 -host=* |
--host=* |
--hos=* |
--ho=*)
1074 host_alias
=$ac_optarg ;;
1076 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1078 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1080 htmldir
=$ac_optarg ;;
1082 -includedir |
--includedir |
--includedi |
--included |
--include \
1083 |
--includ |
--inclu |
--incl |
--inc)
1084 ac_prev
=includedir
;;
1085 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1086 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1087 includedir
=$ac_optarg ;;
1089 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1091 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1092 infodir
=$ac_optarg ;;
1094 -libdir |
--libdir |
--libdi |
--libd)
1096 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1097 libdir
=$ac_optarg ;;
1099 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1100 |
--libexe |
--libex |
--libe)
1101 ac_prev
=libexecdir
;;
1102 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1103 |
--libexe=* |
--libex=* |
--libe=*)
1104 libexecdir
=$ac_optarg ;;
1106 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1107 ac_prev
=localedir
;;
1108 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1109 localedir
=$ac_optarg ;;
1111 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1112 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1113 ac_prev
=localstatedir
;;
1114 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1115 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1116 localstatedir
=$ac_optarg ;;
1118 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1120 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1121 mandir
=$ac_optarg ;;
1123 -nfp |
--nfp |
--nf)
1124 # Obsolete; use --without-fp.
1127 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1128 |
--no-cr |
--no-c |
-n)
1131 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1132 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1135 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1136 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1137 |
--oldin |
--oldi |
--old |
--ol |
--o)
1138 ac_prev
=oldincludedir
;;
1139 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1140 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1141 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1142 oldincludedir
=$ac_optarg ;;
1144 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1146 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1147 prefix
=$ac_optarg ;;
1149 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1150 |
--program-pre |
--program-pr |
--program-p)
1151 ac_prev
=program_prefix
;;
1152 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1153 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1154 program_prefix
=$ac_optarg ;;
1156 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1157 |
--program-suf |
--program-su |
--program-s)
1158 ac_prev
=program_suffix
;;
1159 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1160 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1161 program_suffix
=$ac_optarg ;;
1163 -program-transform-name |
--program-transform-name \
1164 |
--program-transform-nam |
--program-transform-na \
1165 |
--program-transform-n |
--program-transform- \
1166 |
--program-transform |
--program-transfor \
1167 |
--program-transfo |
--program-transf \
1168 |
--program-trans |
--program-tran \
1169 |
--progr-tra |
--program-tr |
--program-t)
1170 ac_prev
=program_transform_name
;;
1171 -program-transform-name=* |
--program-transform-name=* \
1172 |
--program-transform-nam=* |
--program-transform-na=* \
1173 |
--program-transform-n=* |
--program-transform-=* \
1174 |
--program-transform=* |
--program-transfor=* \
1175 |
--program-transfo=* |
--program-transf=* \
1176 |
--program-trans=* |
--program-tran=* \
1177 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1178 program_transform_name
=$ac_optarg ;;
1180 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1182 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1183 pdfdir
=$ac_optarg ;;
1185 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1187 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1190 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1191 |
-silent |
--silent |
--silen |
--sile |
--sil)
1194 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1196 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1198 sbindir
=$ac_optarg ;;
1200 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1201 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1202 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1204 ac_prev
=sharedstatedir
;;
1205 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1206 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1207 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1209 sharedstatedir
=$ac_optarg ;;
1211 -site |
--site |
--sit)
1213 -site=* |
--site=* |
--sit=*)
1216 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1218 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1219 srcdir
=$ac_optarg ;;
1221 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1222 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1223 ac_prev
=sysconfdir
;;
1224 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1225 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1226 sysconfdir
=$ac_optarg ;;
1228 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1229 ac_prev
=target_alias
;;
1230 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1231 target_alias
=$ac_optarg ;;
1233 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1236 -version |
--version |
--versio |
--versi |
--vers |
-V)
1237 ac_init_version
=: ;;
1240 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1241 # Reject names that are not valid shell variable names.
1242 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1243 as_fn_error $?
"invalid package name: $ac_useropt"
1244 ac_useropt_orig
=$ac_useropt
1245 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1246 case $ac_user_opts in
1250 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1251 ac_unrecognized_sep
=', ';;
1253 eval with_
$ac_useropt=\
$ac_optarg ;;
1255 -without-* |
--without-*)
1256 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1259 as_fn_error $?
"invalid package name: $ac_useropt"
1260 ac_useropt_orig
=$ac_useropt
1261 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1262 case $ac_user_opts in
1266 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1267 ac_unrecognized_sep
=', ';;
1269 eval with_
$ac_useropt=no
;;
1272 # Obsolete; use --with-x.
1275 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1276 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1277 ac_prev
=x_includes
;;
1278 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1279 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1280 x_includes
=$ac_optarg ;;
1282 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1283 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1284 ac_prev
=x_libraries
;;
1285 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1286 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1287 x_libraries
=$ac_optarg ;;
1289 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1290 Try \`$0 --help' for more information"
1294 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1295 # Reject names that are not valid shell variable names.
1296 case $ac_envvar in #(
1297 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1298 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1300 eval $ac_envvar=\
$ac_optarg
1301 export $ac_envvar ;;
1304 # FIXME: should be removed in autoconf 3.0.
1305 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1306 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1307 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1308 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1314 if test -n "$ac_prev"; then
1315 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1316 as_fn_error $?
"missing argument to $ac_option"
1319 if test -n "$ac_unrecognized_opts"; then
1320 case $enable_option_checking in
1322 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1323 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1327 # Check all directory arguments for consistency.
1328 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1329 datadir sysconfdir sharedstatedir localstatedir includedir \
1330 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1331 libdir localedir mandir
1333 eval ac_val
=\$
$ac_var
1334 # Remove trailing slashes.
1337 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1338 eval $ac_var=\
$ac_val;;
1340 # Be sure to have absolute directory names.
1342 [\\/$
]* | ?
:[\\/]* ) continue;;
1343 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1345 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1348 # There might be people who depend on the old broken behavior: `$host'
1349 # used to hold the argument of --host etc.
1350 # FIXME: To remove some day.
1353 target
=$target_alias
1355 # FIXME: To remove some day.
1356 if test "x$host_alias" != x
; then
1357 if test "x$build_alias" = x
; then
1358 cross_compiling
=maybe
1359 elif test "x$build_alias" != "x$host_alias"; then
1365 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1367 test "$silent" = yes && exec 6>/dev
/null
1370 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1371 ac_ls_di
=`ls -di .` &&
1372 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1373 as_fn_error $?
"working directory cannot be determined"
1374 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1375 as_fn_error $?
"pwd does not report name of working directory"
1378 # Find the source files, if location was not specified.
1379 if test -z "$srcdir"; then
1380 ac_srcdir_defaulted
=yes
1381 # Try the directory containing this script, then the parent directory.
1382 ac_confdir
=`$as_dirname -- "$as_myself" ||
1383 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1384 X"$as_myself" : 'X\(//\)[^/]' \| \
1385 X"$as_myself" : 'X\(//\)$' \| \
1386 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1387 $as_echo X"$as_myself" |
1388 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1406 if test ! -r "$srcdir/$ac_unique_file"; then
1410 ac_srcdir_defaulted
=no
1412 if test ! -r "$srcdir/$ac_unique_file"; then
1413 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1414 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1416 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1418 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1420 # When building in place, set srcdir=.
1421 if test "$ac_abs_confdir" = "$ac_pwd"; then
1424 # Remove unnecessary trailing slashes from srcdir.
1425 # Double slashes in file names in object file debugging info
1426 # mess up M-x gdb in Emacs.
1428 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1432 as_fn_error $?
"path to source, $srcdir, contains spaces"
1435 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1437 for ac_var
in $ac_precious_vars; do
1438 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1439 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1440 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1441 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1445 # Report the --help message.
1447 if test "$ac_init_help" = "long"; then
1448 # Omit some internal or obsolete options to make the list less imposing.
1449 # This message is too long to be a string in the A/UX 3.1 sh.
1451 \`configure' configures this package to adapt to many kinds of systems.
1453 Usage: $0 [OPTION]... [VAR=VALUE]...
1455 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1456 VAR=VALUE. See below for descriptions of some of the useful variables.
1458 Defaults for the options are specified in brackets.
1461 -h, --help display this help and exit
1462 --help=short display options specific to this package
1463 --help=recursive display the short help of all the included packages
1464 -V, --version display version information and exit
1465 -q, --quiet, --silent do not print \`checking ...' messages
1466 --cache-file=FILE cache test results in FILE [disabled]
1467 -C, --config-cache alias for \`--cache-file=config.cache'
1468 -n, --no-create do not create output files
1469 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1471 Installation directories:
1472 --prefix=PREFIX install architecture-independent files in PREFIX
1473 [$ac_default_prefix]
1474 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1477 By default, \`make install' will install all the files in
1478 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1479 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1480 for instance \`--prefix=\$HOME'.
1482 For better control, use the options below.
1484 Fine tuning of the installation directories:
1485 --bindir=DIR user executables [EPREFIX/bin]
1486 --sbindir=DIR system admin executables [EPREFIX/sbin]
1487 --libexecdir=DIR program executables [EPREFIX/libexec]
1488 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1489 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1490 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1491 --libdir=DIR object code libraries [EPREFIX/lib]
1492 --includedir=DIR C header files [PREFIX/include]
1493 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1494 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1495 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1496 --infodir=DIR info documentation [DATAROOTDIR/info]
1497 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1498 --mandir=DIR man documentation [DATAROOTDIR/man]
1499 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1500 --htmldir=DIR html documentation [DOCDIR]
1501 --dvidir=DIR dvi documentation [DOCDIR]
1502 --pdfdir=DIR pdf documentation [DOCDIR]
1503 --psdir=DIR ps documentation [DOCDIR]
1509 --program-prefix=PREFIX prepend PREFIX to installed program names
1510 --program-suffix=SUFFIX append SUFFIX to installed program names
1511 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1514 --build=BUILD configure
for building on BUILD
[guessed
]
1515 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1516 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1520 if test -n "$ac_init_help"; then
1525 --disable-option-checking ignore unrecognized
--enable/--with options
1526 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1527 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1528 --enable-as-accelerator-for=ARG
1529 build as offload target compiler. Specify offload
1531 --enable-offload-targets=LIST
1532 enable offloading to devices from comma-separated
1533 LIST of TARGET
[=DIR
]. Use optional path to
find
1534 offload target compiler during the build
1535 --enable-offload-defaulted
1536 If enabled
, configured but not installed offload compilers and
1537 libgomp plugins are silently ignored. Useful
for distribution
1538 compilers where those are
in separate optional packages.
1540 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1541 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1542 --enable-gprofng[=ARG
] build gprofng
[ARG
={yes,no
}]
1543 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1544 Enable compressed debug sections
for gas
, gold or ld
1546 --enable-year2038 enable support
for timestamps past the year
2038
1547 --disable-libquadmath do not build libquadmath directory
1548 --disable-libquadmath-support
1549 disable libquadmath support
for Fortran
1550 --enable-libada build libada directory
1551 --enable-libssp build libssp directory
1552 --disable-libstdcxx do not build libstdc
++-v3 directory
1553 --enable-liboffloadmic=ARG
1554 build liboffloadmic
[ARG
={no
,host,target
}]
1555 --enable-bootstrap enable bootstrapping
[yes if native build
]
1556 --enable-pgo-build[=lto
]
1557 enable the PGO build
1558 --disable-isl-version-check
1559 disable check
for isl version
1560 --enable-lto enable link
time optimization support
1561 --enable-linker-plugin-configure-flags=FLAGS
1562 additional flags
for configuring linker plugins
1564 --enable-linker-plugin-flags=FLAGS
1565 additional flags
for configuring and building linker
1567 --enable-host-shared build
host code as shared libraries
1568 --enable-stage1-languages[=all
]
1569 choose additional languages to build during stage1.
1570 Mostly useful
for compiler development
1571 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1573 --enable-vtable-verify Enable vtable verification feature
1574 --enable-serial-[{host,target,build}-]configure
1575 force sequential configuration of sub-packages for
1576 the host, target or build machine, or all
1578 --enable-maintainer-mode
1579 enable make rules and dependencies not useful (and
1580 sometimes confusing) to the casual installer
1581 --enable-stage1-checking[=all]
1582 choose additional checking for stage1 of the
1584 --enable-werror enable -Werror in bootstrap stage2 and later
1587 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1588 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1589 --with-build-libsubdir=DIR Directory where to find libraries for build system
1590 --with-system-zlib use installed libz
1591 --with-zstd Support zstd compressed debug sections
1593 --with-mpc=PATH specify prefix directory for installed MPC package.
1594 Equivalent to --with-mpc-include=PATH/include plus
1595 --with-mpc-lib=PATH/lib
1596 --with-mpc-include=PATH specify directory for installed MPC include files
1597 --with-mpc-lib=PATH specify directory for the installed MPC library
1598 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1599 Equivalent to --with-mpfr-include=PATH/include plus
1600 --with-mpfr-lib=PATH/lib
1601 --with-mpfr-include=PATH
1602 specify directory for installed MPFR include files
1603 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1604 --with-gmp=PATH specify prefix directory for the installed GMP
1605 package. Equivalent to
1606 --with-gmp-include=PATH/include plus
1607 --with-gmp-lib=PATH/lib
1608 --with-gmp-include=PATH specify directory for installed GMP include files
1609 --with-gmp-lib=PATH specify directory for the installed GMP library
1610 --with-stage1-libs=LIBS libraries for stage1
1611 --with-static-standard-libraries
1612 use -static-libstdc++ and -static-libgcc
1614 --with-stage1-ldflags=FLAGS
1615 linker flags for stage1
1616 --with-boot-libs=LIBS libraries for stage2 and later
1617 --with-boot-ldflags=FLAGS
1618 linker flags for stage2 and later
1619 --with-isl=PATH Specify prefix directory for the installed isl
1620 package. Equivalent to
1621 --with-isl-include=PATH/include plus
1622 --with-isl-lib=PATH/lib
1623 --with-isl-include=PATH Specify directory for installed isl include files
1624 --with-isl-lib=PATH Specify the directory for the installed isl library
1625 --with-target-bdw-gc=PATHLIST
1626 specify prefix directory for installed bdw-gc
1627 package. Equivalent to
1628 --with-target-bdw-gc-include=PATH/include plus
1629 --with-target-bdw-gc-lib=PATH/lib
1630 --with-target-bdw-gc-include=PATHLIST
1631 specify directories for installed bdw-gc include
1633 --with-target-bdw-gc-lib=PATHLIST
1634 specify directories for installed bdw-gc library
1635 --with-gcc-major-version-only
1636 use only GCC major number in filesystem paths
1637 --with-build-sysroot=SYSROOT
1638 use sysroot as the system root during the build
1639 --with-debug-prefix-map='A
=B C
=D ...
'
1640 map A to B, C to D ... in debug information
1641 --with-build-config='NAME NAME2...
'
1642 use config/NAME.mk build configuration
1643 --with-build-time-tools=PATH
1644 use given path to find target tools during the build
1646 Some influential environment variables:
1647 CC C compiler command
1648 CFLAGS C compiler flags
1649 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1650 nonstandard directory <lib dir>
1651 LIBS libraries to pass to the linker, e.g. -l<library>
1652 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1653 you have headers in a nonstandard directory <include dir>
1654 CXX C++ compiler command
1655 CXXFLAGS C++ compiler flags
1657 additional configure arguments for build directories
1659 additional configure arguments for host directories
1661 additional configure arguments for target directories
1664 DLLTOOL DLLTOOL for the host
1665 DSYMUTIL DSYMUTIL for the host
1667 LIPO LIPO for the host
1669 RANLIB RANLIB for the host
1670 STRIP STRIP for the host
1671 WINDRES WINDRES for the host
1672 WINDMC WINDMC for the host
1673 OBJCOPY OBJCOPY for the host
1674 OBJDUMP OBJDUMP for the host
1675 OTOOL OTOOL for the host
1676 READELF READELF for the host
1684 GFORTRAN for the target
1694 DLLTOOL for the target
1696 DSYMUTIL for the target
1704 OBJCOPY for the target
1706 OBJDUMP for the target
1708 OTOOL for the target
1710 RANLIB for the target
1712 READELF for the target
1714 STRIP for the target
1716 WINDRES for the target
1718 WINDMC for the target
1720 Use these variables to override the choices made by `configure' or to
help
1721 it to
find libraries and programs with nonstandard names
/locations.
1723 Report bugs to the package provider.
1728 if test "$ac_init_help" = "recursive"; then
1729 # If there are subdirs, report their specific --help.
1730 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1731 test -d "$ac_dir" ||
1732 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1737 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1739 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1740 # A ".." for each directory in $ac_dir_suffix.
1741 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1742 case $ac_top_builddir_sub in
1743 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1744 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1747 ac_abs_top_builddir
=$ac_pwd
1748 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1749 # for backward compatibility:
1750 ac_top_builddir
=$ac_top_build_prefix
1753 .
) # We are building in place.
1755 ac_top_srcdir
=$ac_top_builddir_sub
1756 ac_abs_top_srcdir
=$ac_pwd ;;
1757 [\\/]* | ?
:[\\/]* ) # Absolute name.
1758 ac_srcdir
=$srcdir$ac_dir_suffix;
1759 ac_top_srcdir
=$srcdir
1760 ac_abs_top_srcdir
=$srcdir ;;
1762 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1763 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1764 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1766 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1768 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1769 # Check for guested configure.
1770 if test -f "$ac_srcdir/configure.gnu"; then
1772 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1773 elif test -f "$ac_srcdir/configure"; then
1775 $SHELL "$ac_srcdir/configure" --help=recursive
1777 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1779 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1783 test -n "$ac_init_help" && exit $ac_status
1784 if $ac_init_version; then
1787 generated by GNU Autoconf
2.69
1789 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1790 This configure
script is free software
; the Free Software Foundation
1791 gives unlimited permission to copy
, distribute and modify it.
1796 ## ------------------------ ##
1797 ## Autoconf initialization. ##
1798 ## ------------------------ ##
1800 # ac_fn_c_try_compile LINENO
1801 # --------------------------
1802 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1803 ac_fn_c_try_compile
()
1805 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1806 rm -f conftest.
$ac_objext
1807 if { { ac_try
="$ac_compile"
1809 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1810 *) ac_try_echo=$ac_try;;
1812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1813 $as_echo "$ac_try_echo"; } >&5
1814 (eval "$ac_compile") 2>conftest.err
1816 if test -s conftest.err; then
1817 grep -v '^ *+' conftest.err >conftest.er1
1818 cat conftest.er1 >&5
1819 mv -f conftest.er1 conftest.err
1821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1822 test $ac_status = 0; } && {
1823 test -z "$ac_c_werror_flag" ||
1824 test ! -s conftest.err
1825 } && test -s conftest.$ac_objext; then :
1828 $as_echo "$as_me: failed program was:" >&5
1829 sed 's/^/| /' conftest.$ac_ext >&5
1833 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1834 as_fn_set_status $ac_retval
1836 } # ac_fn_c_try_compile
1838 # ac_fn_cxx_try_compile LINENO
1839 # ----------------------------
1840 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1841 ac_fn_cxx_try_compile ()
1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1844 rm -f conftest.$ac_objext
1845 if { { ac_try="$ac_compile"
1847 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1848 *) ac_try_echo
=$ac_try;;
1850 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1851 $as_echo "$ac_try_echo"; } >&5
1852 (eval "$ac_compile") 2>conftest.err
1854 if test -s conftest.err
; then
1855 grep -v '^ *+' conftest.err
>conftest.er1
1856 cat conftest.er1
>&5
1857 mv -f conftest.er1 conftest.err
1859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1860 test $ac_status = 0; } && {
1861 test -z "$ac_cxx_werror_flag" ||
1862 test ! -s conftest.err
1863 } && test -s conftest.
$ac_objext; then :
1866 $as_echo "$as_me: failed program was:" >&5
1867 sed 's/^/| /' conftest.
$ac_ext >&5
1871 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1872 as_fn_set_status
$ac_retval
1874 } # ac_fn_cxx_try_compile
1876 # ac_fn_cxx_try_link LINENO
1877 # -------------------------
1878 # Try to link conftest.$ac_ext, and return whether this succeeded.
1879 ac_fn_cxx_try_link
()
1881 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1882 rm -f conftest.
$ac_objext conftest
$ac_exeext
1883 if { { ac_try
="$ac_link"
1885 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1886 *) ac_try_echo=$ac_try;;
1888 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1889 $as_echo "$ac_try_echo"; } >&5
1890 (eval "$ac_link") 2>conftest.err
1892 if test -s conftest.err; then
1893 grep -v '^ *+' conftest.err >conftest.er1
1894 cat conftest.er1 >&5
1895 mv -f conftest.er1 conftest.err
1897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1898 test $ac_status = 0; } && {
1899 test -z "$ac_cxx_werror_flag" ||
1900 test ! -s conftest.err
1901 } && test -s conftest$ac_exeext && {
1902 test "$cross_compiling" = yes ||
1903 test -x conftest$ac_exeext
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1912 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1913 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1914 # interfere with the next link command; also delete a directory that is
1915 # left behind by Apple's compiler. We do this before executing the actions.
1916 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1917 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1918 as_fn_set_status $ac_retval
1920 } # ac_fn_cxx_try_link
1922 # ac_fn_c_try_link LINENO
1923 # -----------------------
1924 # Try to link conftest.$ac_ext, and return whether this succeeded.
1927 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1928 rm -f conftest.$ac_objext conftest$ac_exeext
1929 if { { ac_try="$ac_link"
1931 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1932 *) ac_try_echo
=$ac_try;;
1934 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1935 $as_echo "$ac_try_echo"; } >&5
1936 (eval "$ac_link") 2>conftest.err
1938 if test -s conftest.err
; then
1939 grep -v '^ *+' conftest.err
>conftest.er1
1940 cat conftest.er1
>&5
1941 mv -f conftest.er1 conftest.err
1943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1944 test $ac_status = 0; } && {
1945 test -z "$ac_c_werror_flag" ||
1946 test ! -s conftest.err
1947 } && test -s conftest
$ac_exeext && {
1948 test "$cross_compiling" = yes ||
1949 test -x conftest
$ac_exeext
1953 $as_echo "$as_me: failed program was:" >&5
1954 sed 's/^/| /' conftest.
$ac_ext >&5
1958 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1959 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1960 # interfere with the next link command; also delete a directory that is
1961 # left behind by Apple's compiler. We do this before executing the actions.
1962 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964 as_fn_set_status
$ac_retval
1966 } # ac_fn_c_try_link
1967 cat >config.log
<<_ACEOF
1968 This file contains any messages produced by compilers while
1969 running configure, to aid debugging if configure makes a mistake.
1971 It was created by $as_me, which was
1972 generated by GNU Autoconf 2.69. Invocation command line was
1984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1991 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1993 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1994 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1996 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1997 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1998 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1999 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2003 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2007 test -z "$as_dir" && as_dir
=.
2008 $as_echo "PATH: $as_dir"
2024 # Keep a trace of the command line.
2025 # Strip out --no-create and --no-recursion so they do not pile up.
2026 # Strip out --silent because we don't want to record it for future runs.
2027 # Also quote any args containing shell meta-characters.
2028 # Make two passes to allow for proper duplicate-argument suppression.
2032 ac_must_keep_next
=false
2038 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2039 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2040 |
-silent |
--silent |
--silen |
--sile |
--sil)
2043 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2046 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2048 as_fn_append ac_configure_args1
" '$ac_arg'"
2049 if test $ac_must_keep_next = true
; then
2050 ac_must_keep_next
=false
# Got value, back to normal.
2053 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2054 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2055 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2056 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2057 case "$ac_configure_args0 " in
2058 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2061 -* ) ac_must_keep_next
=true
;;
2064 as_fn_append ac_configure_args
" '$ac_arg'"
2069 { ac_configure_args0
=; unset ac_configure_args0
;}
2070 { ac_configure_args1
=; unset ac_configure_args1
;}
2072 # When interrupted or exit'd, cleanup temporary files, and complete
2073 # config.log. We remove comments because anyway the quotes in there
2074 # would cause problems or look ugly.
2075 # WARNING: Use '\'' to represent an apostrophe within the trap.
2076 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2077 trap 'exit_status=$?
2078 # Save into config.log some information that might help in debugging.
2082 $as_echo "## ---------------- ##
2083 ## Cache variables. ##
2084 ## ---------------- ##"
2086 # The following way of writing the cache mishandles newlines in values,
2088 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2089 eval ac_val=\$$ac_var
2093 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2094 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2097 _ | IFS | as_nl) ;; #(
2098 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2099 *) { eval $ac_var=; unset $ac_var;} ;;
2104 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2105 *${as_nl}ac_space=\ *)
2107 "s/'\''/'\''\\\\'\'''\''/g;
2108 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2111 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2118 $as_echo "## ----------------- ##
2119 ## Output variables. ##
2120 ## ----------------- ##"
2122 for ac_var in $ac_subst_vars
2124 eval ac_val=\$$ac_var
2126 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128 $as_echo "$ac_var='\''$ac_val'\''"
2132 if test -n "$ac_subst_files"; then
2133 $as_echo "## ------------------- ##
2134 ## File substitutions. ##
2135 ## ------------------- ##"
2137 for ac_var
in $ac_subst_files
2139 eval ac_val
=\$
$ac_var
2141 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2143 $as_echo "$ac_var='\''$ac_val'\''"
2148 if test -s confdefs.h; then
2149 $as_echo "## ----------- ##
2156 test "$ac_signal" != 0 &&
2157 $as_echo "$as_me: caught signal $ac_signal"
2158 $as_echo "$as_me: exit $exit_status"
2160 rm -f core *.core core.conftest.* &&
2161 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2164 for ac_signal
in 1 2 13 15; do
2165 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2169 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2170 rm -f -r conftest
* confdefs.h
2172 $as_echo "/* confdefs.h */" > confdefs.h
2174 # Predefined preprocessor variables.
2176 cat >>confdefs.h
<<_ACEOF
2177 #define PACKAGE_NAME "$PACKAGE_NAME"
2180 cat >>confdefs.h
<<_ACEOF
2181 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2184 cat >>confdefs.h
<<_ACEOF
2185 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2188 cat >>confdefs.h
<<_ACEOF
2189 #define PACKAGE_STRING "$PACKAGE_STRING"
2192 cat >>confdefs.h
<<_ACEOF
2193 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2196 cat >>confdefs.h
<<_ACEOF
2197 #define PACKAGE_URL "$PACKAGE_URL"
2201 # Let the site file select an alternate cache file if it wants to.
2202 # Prefer an explicitly selected file to automatically selected ones.
2205 if test -n "$CONFIG_SITE"; then
2206 # We do not want a PATH search for config.site.
2207 case $CONFIG_SITE in #((
2208 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2209 */*) ac_site_file1
=$CONFIG_SITE;;
2210 *) ac_site_file1
=.
/$CONFIG_SITE;;
2212 elif test "x$prefix" != xNONE
; then
2213 ac_site_file1
=$prefix/share
/config.site
2214 ac_site_file2
=$prefix/etc
/config.site
2216 ac_site_file1
=$ac_default_prefix/share
/config.site
2217 ac_site_file2
=$ac_default_prefix/etc
/config.site
2219 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2221 test "x$ac_site_file" = xNONE
&& continue
2222 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2224 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2225 sed 's/^/| /' "$ac_site_file" >&5
2227 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2228 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2229 as_fn_error $?
"failed to load site script $ac_site_file
2230 See \`config.log' for more details" "$LINENO" 5; }
2234 if test -r "$cache_file"; then
2235 # Some versions of bash will fail to source /dev/null (special files
2236 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2237 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2239 $as_echo "$as_me: loading cache $cache_file" >&6;}
2241 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2242 *) .
"./$cache_file";;
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2247 $as_echo "$as_me: creating cache $cache_file" >&6;}
2251 # Check that the precious variables saved in the cache have kept the same
2253 ac_cache_corrupted
=false
2254 for ac_var
in $ac_precious_vars; do
2255 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2256 eval ac_new_set
=\
$ac_env_${ac_var}_set
2257 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2258 eval ac_new_val
=\
$ac_env_${ac_var}_value
2259 case $ac_old_set,$ac_new_set in
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2262 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2263 ac_cache_corrupted
=: ;;
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2266 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2267 ac_cache_corrupted
=: ;;
2270 if test "x$ac_old_val" != "x$ac_new_val"; then
2271 # differences in whitespace do not lead to failure.
2272 ac_old_val_w
=`echo x $ac_old_val`
2273 ac_new_val_w
=`echo x $ac_new_val`
2274 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2275 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2276 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2277 ac_cache_corrupted
=:
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2280 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2281 eval $ac_var=\
$ac_old_val
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2284 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2285 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2286 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2289 # Pass precious variables to config.status.
2290 if test "$ac_new_set" = set; then
2292 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2293 *) ac_arg
=$ac_var=$ac_new_val ;;
2295 case " $ac_configure_args " in
2296 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2297 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2301 if $ac_cache_corrupted; then
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2305 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2306 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2308 ## -------------------- ##
2309 ## Main body of script. ##
2310 ## -------------------- ##
2313 ac_cpp
='$CPP $CPPFLAGS'
2314 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2315 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2316 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2326 # if PWD already has a value, it is probably wrong.
2327 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2329 # Export original configure arguments for use by sub-configures.
2330 # Quote arguments with shell meta charatcers.
2331 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2332 set -- "$progname" "$@"
2336 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2337 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2338 # if the argument is of the form -foo=baz, quote the baz part only
2339 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2342 # Add the quoted argument to the list.
2343 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2345 if test "$silent" = yes; then
2346 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2348 # Remove the initial space we just introduced and, as these will be
2349 # expanded by make, quote '$'.
2350 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2353 # Find the build, host, and target systems.
2355 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2356 if test -f "$ac_dir/install-sh"; then
2358 ac_install_sh
="$ac_aux_dir/install-sh -c"
2360 elif test -f "$ac_dir/install.sh"; then
2362 ac_install_sh
="$ac_aux_dir/install.sh -c"
2364 elif test -f "$ac_dir/shtool"; then
2366 ac_install_sh
="$ac_aux_dir/shtool install -c"
2370 if test -z "$ac_aux_dir"; then
2371 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2374 # These three variables are undocumented and unsupported,
2375 # and are intended to be withdrawn in a future Autoconf release.
2376 # They can cause serious problems if a builder's source tree is in a directory
2377 # whose full name contains unusual characters.
2378 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2379 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2380 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2383 # Make sure we can run config.sub.
2384 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2385 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2388 $as_echo_n "checking build system type... " >&6; }
2389 if ${ac_cv_build+:} false
; then :
2390 $as_echo_n "(cached) " >&6
2392 ac_build_alias
=$build_alias
2393 test "x$ac_build_alias" = x
&&
2394 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2395 test "x$ac_build_alias" = x
&&
2396 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2397 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2398 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2402 $as_echo "$ac_cv_build" >&6; }
2403 case $ac_cv_build in
2405 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2408 ac_save_IFS
=$IFS; IFS
='-'
2414 # Remember, the first character of IFS is used to create $*,
2415 # except with old shells:
2418 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2421 case ${build_alias} in
2422 "") build_noncanonical
=${build} ;;
2423 *) build_noncanonical
=${build_alias} ;;
2428 case ${host_alias} in
2429 "") host_noncanonical
=${build_noncanonical} ;;
2430 *) host_noncanonical
=${host_alias} ;;
2435 case ${target_alias} in
2436 "") target_noncanonical
=${host_noncanonical} ;;
2437 *) target_noncanonical
=${target_alias} ;;
2443 test "$host_noncanonical" = "$target_noncanonical" &&
2444 test "$program_prefix$program_suffix$program_transform_name" = \
2446 program_transform_name
=s
,y
,y
,
2448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2449 $as_echo_n "checking host system type... " >&6; }
2450 if ${ac_cv_host+:} false
; then :
2451 $as_echo_n "(cached) " >&6
2453 if test "x$host_alias" = x
; then
2454 ac_cv_host
=$ac_cv_build
2456 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2457 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2462 $as_echo "$ac_cv_host" >&6; }
2465 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2468 ac_save_IFS
=$IFS; IFS
='-'
2474 # Remember, the first character of IFS is used to create $*,
2475 # except with old shells:
2478 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2482 $as_echo_n "checking target system type... " >&6; }
2483 if ${ac_cv_target+:} false
; then :
2484 $as_echo_n "(cached) " >&6
2486 if test "x$target_alias" = x
; then
2487 ac_cv_target
=$ac_cv_host
2489 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2490 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2495 $as_echo "$ac_cv_target" >&6; }
2496 case $ac_cv_target in
2498 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2500 target
=$ac_cv_target
2501 ac_save_IFS
=$IFS; IFS
='-'
2507 # Remember, the first character of IFS is used to create $*,
2508 # except with old shells:
2511 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2514 # The aliases save the names the user supplied, while $host etc.
2515 # will get canonicalized.
2516 test -n "$target_alias" &&
2517 test "$program_prefix$program_suffix$program_transform_name" = \
2519 program_prefix
=${target_alias}-
2521 test "$program_prefix" != NONE
&&
2522 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2523 # Use a double $ so make ignores it.
2524 test "$program_suffix" != NONE
&&
2525 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2526 # Double any \ or $.
2527 # By default was `s,x,x', remove it if useless.
2528 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2529 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2533 # Get 'install' or 'install-sh' and its variants.
2534 # Find a good install program. We prefer a C program (faster),
2535 # so one script is as good as another. But avoid the broken or
2536 # incompatible versions:
2537 # SysV /etc/install, /usr/sbin/install
2538 # SunOS /usr/etc/install
2539 # IRIX /sbin/install
2541 # AmigaOS /C/install, which installs bootblocks on floppy discs
2542 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2543 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2544 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2545 # OS/2's system install, which has a completely different semantic
2546 # ./install, which can be erroneously created by make from ./install.sh.
2547 # Reject install programs that cannot install multiple files.
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2549 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2550 if test -z "$INSTALL"; then
2551 if ${ac_cv_path_install+:} false
; then :
2552 $as_echo_n "(cached) " >&6
2554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2558 test -z "$as_dir" && as_dir
=.
2559 # Account for people who put trailing slashes in PATH elements.
2560 case $as_dir/ in #((
2561 .
/ | .
// |
/[cC
]/* | \
2562 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2563 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2566 # OSF1 and SCO ODT 3.0 have their own names for install.
2567 # Don't use installbsd from OSF since it installs stuff as root
2569 for ac_prog
in ginstall scoinst
install; do
2570 for ac_exec_ext
in '' $ac_executable_extensions; do
2571 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2572 if test $ac_prog = install &&
2573 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2574 # AIX install. It has an incompatible calling convention.
2576 elif test $ac_prog = install &&
2577 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2578 # program-specific install script used by HP pwplus--don't use.
2581 rm -rf conftest.one conftest.two conftest.dir
2582 echo one
> conftest.one
2583 echo two
> conftest.two
2585 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2586 test -s conftest.one
&& test -s conftest.two
&&
2587 test -s conftest.dir
/conftest.one
&&
2588 test -s conftest.dir
/conftest.two
2590 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2603 rm -rf conftest.one conftest.two conftest.dir
2606 if test "${ac_cv_path_install+set}" = set; then
2607 INSTALL
=$ac_cv_path_install
2609 # As a last resort, use the slow shell script. Don't cache a
2610 # value for INSTALL within a source directory, because that will
2611 # break other packages using the cache if that directory is
2612 # removed, or if the value is a relative name.
2613 INSTALL
=$ac_install_sh
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2617 $as_echo "$INSTALL" >&6; }
2619 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2620 # It thinks the first close brace ends the variable substitution.
2621 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2623 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2625 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2628 $as_echo_n "checking whether ln works... " >&6; }
2629 if ${acx_cv_prog_LN+:} false
; then :
2630 $as_echo_n "(cached) " >&6
2632 rm -f conftestdata_t
2633 echo >conftestdata_f
2634 if ln conftestdata_f conftestdata_t
2>/dev
/null
2640 rm -f conftestdata_f conftestdata_t
2643 if test $acx_cv_prog_LN = no
; then
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2646 $as_echo "no, using $LN" >&6; }
2648 LN
="$acx_cv_prog_LN"
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2650 $as_echo "yes" >&6; }
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2654 $as_echo_n "checking whether ln -s works... " >&6; }
2656 if test "$LN_S" = "ln -s"; then
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2658 $as_echo "yes" >&6; }
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2661 $as_echo "no, using $LN_S" >&6; }
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2665 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2666 if ${ac_cv_path_SED+:} false
; then :
2667 $as_echo_n "(cached) " >&6
2669 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2670 for ac_i
in 1 2 3 4 5 6 7; do
2671 ac_script
="$ac_script$as_nl$ac_script"
2673 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2674 { ac_script
=; unset ac_script
;}
2675 if test -z "$SED"; then
2676 ac_path_SED_found
=false
2677 # Loop through the user's path and test for each of PROGNAME-LIST
2678 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2682 test -z "$as_dir" && as_dir
=.
2683 for ac_prog
in sed gsed
; do
2684 for ac_exec_ext
in '' $ac_executable_extensions; do
2685 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2686 as_fn_executable_p
"$ac_path_SED" ||
continue
2687 # Check for GNU ac_path_SED and select it if it is found.
2688 # Check for GNU $ac_path_SED
2689 case `"$ac_path_SED" --version 2>&1` in
2691 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2694 $as_echo_n 0123456789 >"conftest.in"
2697 cat "conftest.in" "conftest.in" >"conftest.tmp"
2698 mv "conftest.tmp" "conftest.in"
2699 cp "conftest.in" "conftest.nl"
2700 $as_echo '' >> "conftest.nl"
2701 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2702 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2703 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2704 if test $ac_count -gt ${ac_path_SED_max-0}; then
2705 # Best one so far, save it but keep looking for a better one
2706 ac_cv_path_SED
="$ac_path_SED"
2707 ac_path_SED_max
=$ac_count
2709 # 10*(2^10) chars as input seems more than enough
2710 test $ac_count -gt 10 && break
2712 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2715 $ac_path_SED_found && break 3
2720 if test -z "$ac_cv_path_SED"; then
2721 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2729 $as_echo "$ac_cv_path_SED" >&6; }
2730 SED
="$ac_cv_path_SED"
2733 for ac_prog
in gawk mawk nawk
awk
2735 # Extract the first word of "$ac_prog", so it can be a program name with args.
2736 set dummy
$ac_prog; ac_word
=$2
2737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2738 $as_echo_n "checking for $ac_word... " >&6; }
2739 if ${ac_cv_prog_AWK+:} false
; then :
2740 $as_echo_n "(cached) " >&6
2742 if test -n "$AWK"; then
2743 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2745 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2749 test -z "$as_dir" && as_dir
=.
2750 for ac_exec_ext
in '' $ac_executable_extensions; do
2751 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2752 ac_cv_prog_AWK
="$ac_prog"
2753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2763 if test -n "$AWK"; then
2764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2765 $as_echo "$AWK" >&6; }
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2768 $as_echo "no" >&6; }
2772 test -n "$AWK" && break
2776 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2778 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2780 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2781 INSTALL
="${srcpwd}/install-sh -c"
2784 # Set srcdir to "." if that's what it is.
2785 # This is important for multilib support.
2787 if test "${pwd}" = "${srcpwd}" ; then
2795 ### To add a new directory to the tree, first choose whether it is a target
2796 ### or a host dependent tool. Then put it into the appropriate list
2797 ### (library or tools, host or target), doing a dependency sort.
2799 # Subdirs will be configured in the order listed in build_configdirs,
2800 # configdirs, or target_configdirs; see the serialization section below.
2802 # Dependency sorting is only needed when *configuration* must be done in
2803 # a particular order. In all cases a dependency should be specified in
2804 # the Makefile, whether or not it's implicitly specified here.
2806 # Double entries in build_configdirs, configdirs, or target_configdirs may
2807 # cause circular dependencies and break everything horribly.
2809 # these library is used by various programs built for the build
2812 build_libs
="build-libiberty build-libcpp"
2814 # these tools are built for the build environment
2815 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2817 # these libraries are used by various programs built for the host environment
2819 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf"
2821 # these tools are built for the host environment
2822 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2823 # know that we are building the simulator.
2824 # binutils, gas and ld appear in that order because it makes sense to run
2825 # "make check" in that particular order.
2826 # If --enable-gold is used, "gold" may replace "ld".
2827 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"
2829 # these libraries are built for the target environment, and are built after
2830 # the host libraries and the host tools (which may be a cross compiler)
2831 # Note that libiberty is not a target library.
2832 target_libraries
="target-libgcc \
2833 target-libbacktrace \
2837 target-liboffloadmic \
2840 target-libstdc++-v3 \
2841 target-libsanitizer \
2844 target-libquadmath \
2845 target-libgfortran \
2853 # these tools are built using the target libraries, and are intended to
2854 # run only in the target environment
2856 # note: any program that *uses* libraries that are in the "target_libraries"
2857 # list belongs in this list.
2859 target_tools
="target-rda"
2861 ################################################################################
2863 ## All tools belong in one of the four categories, and are assigned above
2864 ## We assign ${configdirs} this way to remove all embedded newlines. This
2865 ## is important because configure will choke if they ever get through.
2866 ## ${configdirs} is directories we build using the host tools.
2867 ## ${target_configdirs} is directories we build using the target tools.
2868 configdirs
=`echo ${host_libs} ${host_tools}`
2869 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2870 build_configdirs
=`echo ${build_libs} ${build_tools}`
2874 ################################################################################
2876 srcname
="gnu development package"
2878 # This gets set non-empty for some net releases of packages.
2881 # Define is_cross_compiler to save on calls to 'test'.
2883 if test x
"${host}" = x
"${target}" ; then
2884 is_cross_compiler
=no
2886 is_cross_compiler
=yes
2889 # Find the build and target subdir names.
2891 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2892 # have matching libraries, they should use host libraries: Makefile.tpl
2893 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2894 # However, they still use the build modules, because the corresponding
2895 # host modules (e.g. bison) are only built for the host when bootstrap
2897 # - build_subdir is where we find build modules, and never changes.
2898 # - build_libsubdir is where we find build libraries, and can be overridden.
2900 # Prefix 'build-' so this never conflicts with target_subdir.
2901 build_subdir
="build-${build_noncanonical}"
2903 # Check whether --with-build-libsubdir was given.
2904 if test "${with_build_libsubdir+set}" = set; then :
2905 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2907 build_libsubdir
="$build_subdir"
2910 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2911 if ( test $srcdir = .
&& test -d gcc
) \
2912 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2913 host_subdir
="host-${host_noncanonical}"
2918 target_subdir
=${target_noncanonical}
2920 # Be sure to cover against remnants of an in-tree build.
2921 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2922 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2923 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2926 # Skipdirs are removed silently.
2928 # Noconfigdirs are removed loudly.
2932 # Make sure we don't let GNU ld be added if we didn't want it.
2933 if test x
$with_gnu_ld = xno
; then
2935 noconfigdirs
="$noconfigdirs ld gold"
2939 # Make sure we don't let GNU as be added if we didn't want it.
2940 if test x
$with_gnu_as = xno
; then
2942 noconfigdirs
="$noconfigdirs gas"
2947 # Check whether --with-system-zlib was given.
2948 if test "${with_system_zlib+set}" = set; then :
2949 withval
=$with_system_zlib;
2952 # Make sure we don't let ZLIB be added if we didn't want it.
2953 if test x
$with_system_zlib = xyes
; then
2954 use_included_zlib
=no
2955 noconfigdirs
="$noconfigdirs zlib"
2959 # Check whether --with-zstd was given.
2960 if test "${with_zstd+set}" = set; then :
2965 # some tools are so dependent upon X11 that if we're not building with X,
2966 # it's not even worth trying to configure, much less build, that tool.
2969 yes |
"") ;; # the default value for this tree is that X11 is available
2971 skipdirs
="${skipdirs} tk itcl libgui"
2972 # We won't be able to build gdbtk without X.
2975 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2978 # Some are only suitable for cross toolchains.
2979 # Remove these if host=target.
2980 cross_only
="target-libgloss target-newlib target-opcodes"
2982 case $is_cross_compiler in
2983 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2986 # If both --with-headers and --with-libs are specified, default to
2988 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2989 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2990 if test x
"${with_newlib}" = x
; then
2995 # Recognize --with-newlib/--without-newlib.
2996 case ${with_newlib} in
2997 no
) skipdirs
="${skipdirs} target-newlib" ;;
2998 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3001 # Check whether --enable-as-accelerator-for was given.
3002 if test "${enable_as_accelerator_for+set}" = set; then :
3003 enableval
=$enable_as_accelerator_for;
3007 # Check whether --enable-offload-targets was given.
3008 if test "${enable_offload_targets+set}" = set; then :
3009 enableval
=$enable_offload_targets;
3010 if test x
"$enable_offload_targets" = x
; then
3011 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3015 enable_offload_targets
=
3019 # Check whether --enable-offload-defaulted was given.
3020 if test "${enable_offload_defaulted+set}" = set; then :
3021 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3023 enable_offload_defaulted
=
3027 # Handle --enable-gold, --enable-ld.
3028 # --disable-gold [--enable-ld]
3029 # Build only ld. Default option.
3030 # --enable-gold [--enable-ld]
3031 # Build both gold and ld. Install gold as "ld.gold", install ld
3032 # as "ld.bfd" and "ld".
3033 # --enable-gold=default [--enable-ld]
3034 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3035 # install ld as "ld.bfd".
3036 # --enable-gold[=default] --disable-ld
3037 # Build only gold, which is then installed as both "ld.gold" and "ld".
3038 # --enable-gold --enable-ld=default
3039 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3041 # In other words, ld is default
3042 # --enable-gold=default --enable-ld=default
3046 # Check whether --enable-gold was given.
3047 if test "${enable_gold+set}" = set; then :
3048 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3053 case "${ENABLE_GOLD}" in
3055 # Check for ELF target.
3058 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3059 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3060 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3061 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3063 *-*-linux*aout
* |
*-*-linux*oldld
*)
3071 if test "$is_elf" = "yes"; then
3072 # Check for target supported by gold.
3074 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3075 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-* | loongarch
*-*-*)
3076 configdirs
="$configdirs gold"
3077 if test x
${ENABLE_GOLD} = xdefault
; then
3088 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3092 # Check whether --enable-ld was given.
3093 if test "${enable_ld+set}" = set; then :
3094 enableval
=$enable_ld; ENABLE_LD
=$enableval
3100 case "${ENABLE_LD}" in
3102 if test x
${default_ld} != x
; then
3103 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3109 if test x
${ENABLE_GOLD} != xyes
; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3111 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3113 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3116 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3120 # Check whether --enable-gprofng was given.
3121 if test "${enable_gprofng+set}" = set; then :
3122 enableval
=$enable_gprofng; enable_gprofng
=$enableval
3127 if test "$enable_gprofng" = "yes"; then
3129 x86_64-
*-linux* | i?
86-*-linux* | aarch64-
*-linux*)
3130 configdirs
="$configdirs gprofng"
3137 # Decide the default method for compressing debug sections.
3138 # Provide a configure time option to override our default.
3139 # Check whether --enable-compressed_debug_sections was given.
3140 if test "${enable_compressed_debug_sections+set}" = set; then :
3141 enableval
=$enable_compressed_debug_sections;
3142 if test x
"$enable_compressed_debug_sections" = xyes
; then
3143 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3147 enable_compressed_debug_sections
=
3151 # Configure extra directories which are host specific
3155 configdirs
="$configdirs libtermcap" ;;
3158 # A target can indicate whether a language isn't supported for some reason.
3159 # Only spaces may be used in this macro; not newlines or tabs.
3160 unsupported_languages
=
3162 # Remove more programs from consideration, based on the host or
3163 # target this usually means that a port of the program doesn't
3167 i
[3456789]86-*-msdosdjgpp*)
3168 noconfigdirs
="$noconfigdirs tcl tk itcl"
3172 # Default to --disable-year2038 until we can handle differences between
3173 # projects that use gnulib (which understands year 2038) and projects that
3174 # do not (like BFD).
3175 # Check whether --enable-year2038 was given.
3176 if test "${enable_year2038+set}" = set; then :
3177 enableval
=$enable_year2038; ENABLE_YEAR2038
=$enableval
3183 if test "${ENABLE_YEAR2038}" = "no" ; then
3187 # Check whether --enable-libquadmath was given.
3188 if test "${enable_libquadmath+set}" = set; then :
3189 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3191 ENABLE_LIBQUADMATH
=yes
3194 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3195 noconfigdirs
="$noconfigdirs target-libquadmath"
3199 # Check whether --enable-libquadmath-support was given.
3200 if test "${enable_libquadmath_support+set}" = set; then :
3201 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3203 ENABLE_LIBQUADMATH_SUPPORT
=yes
3206 enable_libquadmath_support
=
3207 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3208 enable_libquadmath_support
=no
3212 # Check whether --enable-libada was given.
3213 if test "${enable_libada+set}" = set; then :
3214 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3219 if test "${ENABLE_LIBADA}" != "yes" ; then
3220 noconfigdirs
="$noconfigdirs gnattools"
3223 # Check whether --enable-libssp was given.
3224 if test "${enable_libssp+set}" = set; then :
3225 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3231 # Check whether --enable-libstdcxx was given.
3232 if test "${enable_libstdcxx+set}" = set; then :
3233 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3235 ENABLE_LIBSTDCXX
=default
3238 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3239 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3242 # If this is accelerator compiler and its target is intelmic we enable
3243 # target liboffloadmic by default. If this is compiler with offloading
3244 # for intelmic we enable host liboffloadmic by default. Otherwise
3245 # liboffloadmic is disabled by default.
3246 # Check whether --enable-liboffloadmic was given.
3247 if test "${enable_liboffloadmic+set}" = set; then :
3248 enableval
=$enable_liboffloadmic; case "$enableval" in
3250 enable_liboffloadmic
=$enableval ;;
3252 as_fn_error $?
"--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3255 if test x
"$enable_as_accelerator_for" != x
; then
3257 *-intelmic-* |
*-intelmicemul-*)
3258 enable_liboffloadmic
=target
3259 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=target"
3262 enable_liboffloadmic
=no
3266 case "${enable_offload_targets}" in
3267 *-intelmic-* |
*-intelmicemul-*)
3268 enable_liboffloadmic
=host
3269 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=host"
3272 enable_liboffloadmic
=no
3280 # Enable libgomp by default on hosted POSIX systems, and a few others.
3281 if test x
$enable_libgomp = x
; then
3283 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3285 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3287 *-*-solaris2* |
*-*-hpux11*)
3289 *-*-darwin* |
*-*-aix*)
3291 nvptx
*-*-* | amdgcn
*-*-*)
3294 noconfigdirs
="$noconfigdirs target-libgomp"
3299 # Disable libatomic on unsupported systems.
3300 if test -d ${srcdir}/libatomic
; then
3301 if test x
$enable_libatomic = x
; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3303 $as_echo_n "checking for libatomic support... " >&6; }
3304 if (srcdir
=${srcdir}/libatomic
; \
3305 .
${srcdir}/configure.tgt
; \
3306 test -n "$UNSUPPORTED")
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 noconfigdirs
="$noconfigdirs target-libatomic"
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313 $as_echo "yes" >&6; }
3318 # Disable liboffloadmic on unsupported systems.
3319 if test -d ${srcdir}/liboffloadmic
; then
3320 if test x
$enable_liboffloadmic != xno
; then
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3322 $as_echo_n "checking for liboffloadmic support... " >&6; }
3323 if (srcdir
=${srcdir}/liboffloadmic
; \
3324 .
${srcdir}/configure.tgt
; \
3325 test -n "$UNSUPPORTED")
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3328 $as_echo "no" >&6; }
3329 noconfigdirs
="$noconfigdirs target-liboffloadmic"
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3332 $as_echo "yes" >&6; }
3337 # Disable libitm on unsupported systems.
3338 if test -d ${srcdir}/libitm
; then
3339 if test x
$enable_libitm = x
; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3341 $as_echo_n "checking for libitm support... " >&6; }
3342 if (srcdir
=${srcdir}/libitm
; \
3343 .
${srcdir}/configure.tgt
; \
3344 test -n "$UNSUPPORTED")
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3348 noconfigdirs
="$noconfigdirs target-libitm"
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3351 $as_echo "yes" >&6; }
3356 # Disable libsanitizer on unsupported systems.
3357 if test -d ${srcdir}/libsanitizer
; then
3358 if test x
$enable_libsanitizer = x
; then
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3360 $as_echo_n "checking for libsanitizer support... " >&6; }
3361 if (srcdir
=${srcdir}/libsanitizer
; \
3362 .
${srcdir}/configure.tgt
; \
3363 test -n "$UNSUPPORTED")
3365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3366 $as_echo "no" >&6; }
3367 noconfigdirs
="$noconfigdirs target-libsanitizer"
3369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3370 $as_echo "yes" >&6; }
3375 # Disable libvtv on unsupported systems.
3376 if test -d ${srcdir}/libvtv
; then
3377 if test x
$enable_libvtv = x
; then
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3379 $as_echo_n "checking for libvtv support... " >&6; }
3380 if (srcdir
=${srcdir}/libvtv
; \
3381 .
${srcdir}/configure.tgt
; \
3382 test "$VTV_SUPPORTED" != "yes")
3384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3385 $as_echo "no" >&6; }
3386 noconfigdirs
="$noconfigdirs target-libvtv"
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3389 $as_echo "yes" >&6; }
3394 # Disable libquadmath for some systems.
3397 noconfigdirs
="$noconfigdirs target-libquadmath"
3399 # libquadmath is unused on AIX and libquadmath build process use of
3400 # LD_LIBRARY_PATH can break AIX bootstrap.
3401 powerpc-
*-aix* | rs6000-
*-aix*)
3402 noconfigdirs
="$noconfigdirs target-libquadmath"
3406 # Disable libssp for some systems.
3409 # No hosted I/O support.
3410 noconfigdirs
="$noconfigdirs target-libssp"
3413 noconfigdirs
="$noconfigdirs target-libssp"
3415 powerpc-
*-aix* | rs6000-
*-aix*)
3416 noconfigdirs
="$noconfigdirs target-libssp"
3419 # No hosted I/O support.
3420 noconfigdirs
="$noconfigdirs target-libssp"
3423 # libssp uses a misaligned load to trigger a fault, but the RL78
3424 # doesn't fault for those - instead, it gives a build-time error
3425 # for explicit misaligned loads.
3426 noconfigdirs
="$noconfigdirs target-libssp"
3429 # No hosted I/O support.
3430 noconfigdirs
="$noconfigdirs target-libssp"
3434 # Disable libstdc++-v3 for some systems.
3435 # Allow user to override this if they pass --enable-libstdcxx
3436 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3439 # VxWorks uses the Dinkumware C++ library.
3440 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3443 # Not ported/fails to build when using newlib.
3444 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3447 # the C++ libraries don't build on top of CE's C libraries
3448 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3451 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3454 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3457 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3462 # Disable C++ on systems where it is known to not work.
3463 # For testing, you can override this with --enable-languages=c++.
3464 case ,${enable_languages}, in
3470 unsupported_languages
="$unsupported_languages c++"
3476 # Disable Objc on systems where it is known to not work.
3477 # For testing, you can override this with --enable-languages=objc.
3478 case ,${enable_languages}, in
3484 unsupported_languages
="$unsupported_languages objc"
3490 # Disable D on systems where it is known to not work.
3491 # For testing, you can override this with --enable-languages=d.
3492 case ,${enable_languages}, in
3498 unsupported_languages
="$unsupported_languages d"
3504 # Disable libphobos on unsupported systems.
3505 # For testing, you can override this with --enable-libphobos.
3506 if test -d ${srcdir}/libphobos
; then
3507 if test x
$enable_libphobos = x
; then
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3509 $as_echo_n "checking for libphobos support... " >&6; }
3510 if (srcdir
=${srcdir}/libphobos
; \
3511 .
${srcdir}/configure.tgt
; \
3512 test "$LIBPHOBOS_SUPPORTED" != "yes")
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3515 $as_echo "no" >&6; }
3516 noconfigdirs
="$noconfigdirs target-libphobos"
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3519 $as_echo "yes" >&6; }
3524 # Disable Fortran for some systems.
3527 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3528 unsupported_languages
="$unsupported_languages fortran"
3531 unsupported_languages
="$unsupported_languages fortran"
3535 # Disable libffi for some systems.
3539 i
[3456789]86-*-darwin*)
3541 x86_64-
*-darwin[912]*)
3544 noconfigdirs
="$noconfigdirs target-libffi"
3547 noconfigdirs
="$noconfigdirs target-libffi"
3550 noconfigdirs
="$noconfigdirs target-libffi"
3553 noconfigdirs
="$noconfigdirs target-libffi"
3556 noconfigdirs
="$noconfigdirs target-libffi"
3559 noconfigdirs
="$noconfigdirs target-libffi"
3562 noconfigdirs
="$noconfigdirs target-libffi"
3564 aarch64
*-*-freebsd*)
3565 noconfigdirs
="$noconfigdirs target-libffi"
3568 noconfigdirs
="$noconfigdirs target-libffi"
3571 noconfigdirs
="$noconfigdirs target-libffi"
3574 noconfigdirs
="$noconfigdirs target-libffi"
3577 noconfigdirs
="$noconfigdirs target-libffi"
3580 noconfigdirs
="$noconfigdirs target-libffi"
3582 cris-
*-* | crisv32-
*-*)
3586 *) # See PR46792 regarding target-libffi.
3587 noconfigdirs
="$noconfigdirs target-libffi";;
3591 noconfigdirs
="$noconfigdirs target-libffi"
3596 noconfigdirs
="$noconfigdirs target-libffi"
3599 noconfigdirs
="$noconfigdirs target-libffi"
3601 i
[3456789]86-w64-mingw*)
3602 noconfigdirs
="$noconfigdirs target-libffi"
3604 i
[3456789]86-*-mingw*)
3605 noconfigdirs
="$noconfigdirs target-libffi"
3608 noconfigdirs
="$noconfigdirs target-libffi"
3611 noconfigdirs
="$noconfigdirs target-libffi"
3618 noconfigdirs
="$noconfigdirs target-libffi"
3621 noconfigdirs
="$noconfigdirs target-libffi"
3625 # Disable the go frontend on systems where it is known to not work. Please keep
3626 # this in sync with contrib/config-list.mk.
3628 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3629 unsupported_languages
="$unsupported_languages go"
3633 # Only allow gdbserver on some systems.
3634 if test -d ${srcdir}/gdbserver
; then
3635 if test x
$enable_gdbserver = x
; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3637 $as_echo_n "checking for gdbserver support... " >&6; }
3638 if (srcdir
=${srcdir}/gdbserver
; \
3639 .
${srcdir}/configure.srv
; \
3640 test -n "$UNSUPPORTED")
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3644 noconfigdirs
="$noconfigdirs gdbserver"
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3647 $as_echo "yes" >&6; }
3652 # Disable libgo for some systems where it is known to not work.
3653 # For testing, you can easily override this with --enable-libgo.
3654 if test x
$enable_libgo = x
; then
3658 noconfigdirs
="$noconfigdirs target-libgo"
3660 *-*-cygwin* |
*-*-mingw*)
3661 noconfigdirs
="$noconfigdirs target-libgo"
3664 noconfigdirs
="$noconfigdirs target-libgo"
3669 # Default libgloss CPU subdirectory.
3670 libgloss_dir
="$target_cpu"
3673 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3677 libgloss_dir
=aarch64
3682 cris-
*-* | crisv32-
*-*)
3692 libgloss_dir
=loongarch
3694 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3695 libgloss_dir
=m68hc11
3697 m68
*-*-* | fido-
*-*)
3714 # Disable newlib and libgloss for various target OSes.
3717 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3719 i
[3456789]86-*-linux*)
3720 # This section makes it possible to build newlib natively on linux.
3721 # If we are using a cross compiler then don't configure newlib.
3722 if test x
${is_cross_compiler} != xno
; then
3723 noconfigdirs
="$noconfigdirs target-newlib"
3725 noconfigdirs
="$noconfigdirs target-libgloss"
3726 # If we are not using a cross compiler, do configure newlib.
3727 # Note however, that newlib will only be configured in this situation
3728 # if the --with-newlib option has been given, because otherwise
3729 # 'target-newlib' will appear in skipdirs.
3731 i
[3456789]86-*-rdos*)
3732 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3734 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3735 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3738 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3741 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3744 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3747 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3750 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3753 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3756 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3758 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3759 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3762 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3765 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3768 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3771 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3774 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3777 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3780 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3788 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3789 noconfigdirs
="$noconfigdirs sim target-rda"
3794 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3795 noconfigdirs
="$noconfigdirs sim target-rda"
3798 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3799 noconfigdirs
="$noconfigdirs sim target-rda"
3801 i
[3456789]86-*-darwin*)
3802 noconfigdirs
="$noconfigdirs ld gprof"
3803 noconfigdirs
="$noconfigdirs sim target-rda"
3805 x86_64-
*-darwin[912]*)
3806 noconfigdirs
="$noconfigdirs ld gas gprof"
3807 noconfigdirs
="$noconfigdirs sim target-rda"
3810 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3811 noconfigdirs
="$noconfigdirs sim target-rda"
3816 if test "x$with_gmp" = x \
3817 && ! test -d ${srcdir}/gmp \
3818 && test -f /usr
/local
/include
/gmp.h
; then
3823 # Remove unsupported stuff on all kaOS configurations.
3824 noconfigdirs
="$noconfigdirs target-libgloss"
3831 noconfigdirs
="$noconfigdirs target-libgloss"
3834 noconfigdirs
="$noconfigdirs target-libgloss"
3836 # The tpf target doesn't support gdb yet.
3838 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3841 noconfigdirs
="$noconfigdirs target-rda"
3846 # ld works, but does not support shared libraries.
3847 # gas doesn't generate exception information.
3848 noconfigdirs
="$noconfigdirs gas ld"
3851 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3854 # newlib is not 64 bit ready
3855 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3858 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3860 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3861 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3864 noconfigdirs
="$noconfigdirs sim"
3867 noconfigdirs
="$noconfigdirs target-libgloss"
3870 noconfigdirs
="$noconfigdirs ld target-libgloss"
3873 if test x
${with_avrlibc} != xno
; then
3874 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3877 c4x-
*-* | tic4x-
*-*)
3878 noconfigdirs
="$noconfigdirs target-libgloss"
3881 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3884 noconfigdirs
="$noconfigdirs target-libgloss"
3887 noconfigdirs
="$noconfigdirs gdb"
3890 noconfigdirs
="$noconfigdirs gdb"
3893 noconfigdirs
="$noconfigdirs target-rda gprof"
3896 noconfigdirs
="$noconfigdirs"
3899 noconfigdirs
="$noconfigdirs target-libgloss"
3902 noconfigdirs
="$noconfigdirs target-libgloss"
3904 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3907 noconfigdirs
="$noconfigdirs gdb"
3910 noconfigdirs
="$noconfigdirs gdb ld"
3918 hppa
*-*-openbsd* | \
3924 noconfigdirs
="$noconfigdirs ld"
3927 noconfigdirs
="$noconfigdirs gdb"
3930 # No gdb support yet.
3931 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3934 # No ld support yet.
3935 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3938 # No ld support yet.
3939 noconfigdirs
="$noconfigdirs libgui itcl ld"
3941 i
[3456789]86-w64-mingw*)
3943 i
[3456789]86-*-mingw*)
3944 target_configdirs
="$target_configdirs target-winsup"
3947 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3948 noconfigdirs
="$noconfigdirs target-libgloss"
3949 # always build newlib if winsup directory is present.
3950 if test -d "$srcdir/winsup/cygwin"; then
3951 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3952 elif test -d "$srcdir/newlib"; then
3953 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3957 noconfigdirs
="$noconfigdirs target-libgloss"
3959 i
[3456789]86-*-sco3.2v5
*)
3960 # The linker does not yet know about weak symbols in COFF,
3961 # and is not configured to handle mixed ELF and COFF.
3962 noconfigdirs
="$noconfigdirs ld target-libgloss"
3964 i
[3456789]86-*-sco*)
3965 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3967 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3968 noconfigdirs
="$noconfigdirs target-libgloss"
3970 i
[3456789]86-*-sysv4*)
3971 noconfigdirs
="$noconfigdirs target-libgloss"
3973 i
[3456789]86-*-beos*)
3974 noconfigdirs
="$noconfigdirs gdb"
3976 i
[3456789]86-*-rdos*)
3977 noconfigdirs
="$noconfigdirs gdb"
3980 noconfigdirs
="$noconfigdirs gdb"
3983 noconfigdirs
="$noconfigdirs sim"
3986 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3987 noconfigdirs
="$noconfigdirs $target_libraries"
3990 noconfigdirs
="$noconfigdirs gdb gprof"
3993 # copied from rs6000-*-* entry
3994 noconfigdirs
="$noconfigdirs gprof"
3996 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3997 target_configdirs
="$target_configdirs target-winsup"
3998 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3999 # always build newlib.
4000 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4002 # This is temporary until we can link against shared libraries
4003 powerpcle-
*-solaris*)
4004 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
4007 noconfigdirs
="$noconfigdirs gdb"
4010 noconfigdirs
="$noconfigdirs gprof"
4013 noconfigdirs
="$noconfigdirs gprof"
4016 noconfigdirs
="$noconfigdirs gprof"
4019 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
4022 noconfigdirs
="$noconfigdirs gprof"
4024 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
4025 if test x
$with_newlib = xyes
; then
4026 noconfigdirs
="$noconfigdirs gprof"
4030 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4033 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4036 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
4040 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
4041 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
4042 noconfigdirs
="$noconfigdirs ld gas gprof"
4045 noconfigdirs
="$noconfigdirs gprof"
4048 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4055 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4059 if test x
${is_cross_compiler} = xno
; then
4064 noconfigdirs
="$noconfigdirs sim"
4066 tilepro
*-*-* | tilegx
*-*-*)
4067 noconfigdirs
="$noconfigdirs sim"
4070 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4073 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4076 noconfigdirs
="$noconfigdirs ld"
4078 loongarch
*-*-linux*)
4081 noconfigdirs
="$noconfigdirs gprof"
4085 # If we aren't building newlib, then don't build libgloss, since libgloss
4086 # depends upon some newlib header files.
4087 case "${noconfigdirs}" in
4088 *target-libgloss
*) ;;
4089 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4092 # Work in distributions that contain no compiler tools, like Autoconf.
4093 host_makefile_frag
=/dev
/null
4094 if test -d ${srcdir}/config
; then
4096 i
[3456789]86-*-msdosdjgpp*)
4097 host_makefile_frag
="config/mh-djgpp"
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4102 $as_echo_n "checking to see if cat works as expected... " >&6; }
4103 echo a
>cygwin-cat-check
4104 if test `cat cygwin-cat-check` = a
; then
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4107 $as_echo "yes" >&6; }
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4111 $as_echo "no" >&6; }
4112 as_fn_error $?
"The cat command does not ignore carriage return characters.
4113 Please either mount the build directory in binary mode or run the following
4114 commands before running any configure script:
4120 host_makefile_frag
="config/mh-cygwin"
4123 host_makefile_frag
="config/mh-mingw"
4126 host_makefile_frag
="config/mh-alpha-linux"
4129 host_makefile_frag
="config/mh-pa-hpux10"
4132 host_makefile_frag
="config/mh-pa"
4135 host_makefile_frag
="config/mh-pa"
4137 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4138 host_makefile_frag
="config/mh-darwin"
4141 host_makefile_frag
="config/mh-ppc-aix"
4144 host_makefile_frag
="config/mh-ppc-aix"
4149 if test "${build}" != "${host}" ; then
4150 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4151 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4152 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4153 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4154 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4155 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4156 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4157 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4158 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4159 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4160 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4161 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4162 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4163 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4164 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4166 AR_FOR_BUILD
="\$(AR)"
4167 AS_FOR_BUILD
="\$(AS)"
4168 CC_FOR_BUILD
="\$(CC)"
4169 CXX_FOR_BUILD
="\$(CXX)"
4170 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4171 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4172 GOC_FOR_BUILD
="\$(GOC)"
4173 GDC_FOR_BUILD
="\$(GDC)"
4174 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4175 LD_FOR_BUILD
="\$(LD)"
4176 NM_FOR_BUILD
="\$(NM)"
4177 RANLIB_FOR_BUILD
="\$(RANLIB)"
4178 WINDRES_FOR_BUILD
="\$(WINDRES)"
4179 WINDMC_FOR_BUILD
="\$(WINDMC)"
4183 ac_cpp
='$CPP $CPPFLAGS'
4184 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4185 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4186 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4187 if test -n "$ac_tool_prefix"; then
4188 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4189 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4191 $as_echo_n "checking for $ac_word... " >&6; }
4192 if ${ac_cv_prog_CC+:} false
; then :
4193 $as_echo_n "(cached) " >&6
4195 if test -n "$CC"; then
4196 ac_cv_prog_CC
="$CC" # Let the user override the test.
4198 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4202 test -z "$as_dir" && as_dir
=.
4203 for ac_exec_ext
in '' $ac_executable_extensions; do
4204 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4205 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4216 if test -n "$CC"; then
4217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4218 $as_echo "$CC" >&6; }
4220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4221 $as_echo "no" >&6; }
4226 if test -z "$ac_cv_prog_CC"; then
4228 # Extract the first word of "gcc", so it can be a program name with args.
4229 set dummy gcc
; ac_word
=$2
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4231 $as_echo_n "checking for $ac_word... " >&6; }
4232 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4233 $as_echo_n "(cached) " >&6
4235 if test -n "$ac_ct_CC"; then
4236 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4238 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4242 test -z "$as_dir" && as_dir
=.
4243 for ac_exec_ext
in '' $ac_executable_extensions; do
4244 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4245 ac_cv_prog_ac_ct_CC
="gcc"
4246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4256 if test -n "$ac_ct_CC"; then
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4258 $as_echo "$ac_ct_CC" >&6; }
4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4261 $as_echo "no" >&6; }
4264 if test "x$ac_ct_CC" = x
; then
4267 case $cross_compiling:$ac_tool_warned in
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4270 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4271 ac_tool_warned
=yes ;;
4279 if test -z "$CC"; then
4280 if test -n "$ac_tool_prefix"; then
4281 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4282 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4284 $as_echo_n "checking for $ac_word... " >&6; }
4285 if ${ac_cv_prog_CC+:} false
; then :
4286 $as_echo_n "(cached) " >&6
4288 if test -n "$CC"; then
4289 ac_cv_prog_CC
="$CC" # Let the user override the test.
4291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4295 test -z "$as_dir" && as_dir
=.
4296 for ac_exec_ext
in '' $ac_executable_extensions; do
4297 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4298 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4309 if test -n "$CC"; then
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4311 $as_echo "$CC" >&6; }
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4314 $as_echo "no" >&6; }
4320 if test -z "$CC"; then
4321 # Extract the first word of "cc", so it can be a program name with args.
4322 set dummy cc
; ac_word
=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_prog_CC+:} false
; then :
4326 $as_echo_n "(cached) " >&6
4328 if test -n "$CC"; then
4329 ac_cv_prog_CC
="$CC" # Let the user override the test.
4332 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4336 test -z "$as_dir" && as_dir
=.
4337 for ac_exec_ext
in '' $ac_executable_extensions; do
4338 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4339 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4340 ac_prog_rejected
=yes
4344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4351 if test $ac_prog_rejected = yes; then
4352 # We found a bogon in the path, so make sure we never use it.
4353 set dummy
$ac_cv_prog_CC
4355 if test $# != 0; then
4356 # We chose a different compiler from the bogus one.
4357 # However, it has the same basename, so the bogon will be chosen
4358 # first if we set CC to just the basename; use the full file name.
4360 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4366 if test -n "$CC"; then
4367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4368 $as_echo "$CC" >&6; }
4370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4371 $as_echo "no" >&6; }
4376 if test -z "$CC"; then
4377 if test -n "$ac_tool_prefix"; then
4378 for ac_prog
in cl.exe
4380 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4381 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383 $as_echo_n "checking for $ac_word... " >&6; }
4384 if ${ac_cv_prog_CC+:} false
; then :
4385 $as_echo_n "(cached) " >&6
4387 if test -n "$CC"; then
4388 ac_cv_prog_CC
="$CC" # Let the user override the test.
4390 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4394 test -z "$as_dir" && as_dir
=.
4395 for ac_exec_ext
in '' $ac_executable_extensions; do
4396 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4397 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4408 if test -n "$CC"; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4410 $as_echo "$CC" >&6; }
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413 $as_echo "no" >&6; }
4417 test -n "$CC" && break
4420 if test -z "$CC"; then
4422 for ac_prog
in cl.exe
4424 # Extract the first word of "$ac_prog", so it can be a program name with args.
4425 set dummy
$ac_prog; ac_word
=$2
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4427 $as_echo_n "checking for $ac_word... " >&6; }
4428 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4429 $as_echo_n "(cached) " >&6
4431 if test -n "$ac_ct_CC"; then
4432 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4434 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4438 test -z "$as_dir" && as_dir
=.
4439 for ac_exec_ext
in '' $ac_executable_extensions; do
4440 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4441 ac_cv_prog_ac_ct_CC
="$ac_prog"
4442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4452 if test -n "$ac_ct_CC"; then
4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4454 $as_echo "$ac_ct_CC" >&6; }
4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4457 $as_echo "no" >&6; }
4461 test -n "$ac_ct_CC" && break
4464 if test "x$ac_ct_CC" = x
; then
4467 case $cross_compiling:$ac_tool_warned in
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4471 ac_tool_warned
=yes ;;
4480 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4481 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4482 as_fn_error $?
"no acceptable C compiler found in \$PATH
4483 See \`config.log' for more details" "$LINENO" 5; }
4485 # Provide some information about the compiler.
4486 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4489 for ac_option
in --version -v -V -qversion; do
4490 { { ac_try
="$ac_compiler $ac_option >&5"
4492 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4493 *) ac_try_echo=$ac_try;;
4495 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4496 $as_echo "$ac_try_echo"; } >&5
4497 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4499 if test -s conftest.err; then
4501 ... rest of stderr output deleted ...
4502 10q' conftest.err >conftest.er1
4503 cat conftest.er1 >&5
4505 rm -f conftest.er1 conftest.err
4506 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4507 test $ac_status = 0; }
4510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4511 /* end confdefs.h. */
4521 ac_clean_files_save=$ac_clean_files
4522 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4523 # Try to create an executable without -o first, disregard a.out.
4524 # It will help us diagnose broken compilers, and finding out an intuition
4526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4527 $as_echo_n "checking whether the C compiler works... " >&6; }
4528 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4530 # The possible output files:
4531 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4534 for ac_file in $ac_files
4537 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4538 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4543 if { { ac_try="$ac_link_default"
4545 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4546 *) ac_try_echo
=$ac_try;;
4548 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4549 $as_echo "$ac_try_echo"; } >&5
4550 (eval "$ac_link_default") 2>&5
4552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4553 test $ac_status = 0; }; then :
4554 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4555 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4556 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4557 # so that the user can short-circuit this test for compilers unknown to
4559 for ac_file
in $ac_files ''
4561 test -f "$ac_file" ||
continue
4563 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4566 # We found the default executable, but exeext='' is most
4570 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4572 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4574 # We set ac_cv_exeext here because the later test for it is not
4575 # safe: cross compilers may not add the suffix if given an `-o'
4576 # argument, so we may need to know it at that point already.
4577 # Even if this section looks crufty: it has the advantage of
4584 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4589 if test -z "$ac_file"; then :
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4591 $as_echo "no" >&6; }
4592 $as_echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.
$ac_ext >&5
4595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4597 as_fn_error
77 "C compiler cannot create executables
4598 See \`config.log' for more details" "$LINENO" 5; }
4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4601 $as_echo "yes" >&6; }
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4604 $as_echo_n "checking for C compiler default output file name... " >&6; }
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4606 $as_echo "$ac_file" >&6; }
4607 ac_exeext
=$ac_cv_exeext
4609 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4610 ac_clean_files
=$ac_clean_files_save
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4612 $as_echo_n "checking for suffix of executables... " >&6; }
4613 if { { ac_try
="$ac_link"
4615 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4616 *) ac_try_echo=$ac_try;;
4618 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4619 $as_echo "$ac_try_echo"; } >&5
4620 (eval "$ac_link") 2>&5
4622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4623 test $ac_status = 0; }; then :
4624 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4625 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4626 # work properly (i.e., refer to `conftest.exe'), while it won't with
4628 for ac_file
in conftest.exe conftest conftest.
*; do
4629 test -f "$ac_file" ||
continue
4631 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4632 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4638 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4639 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4640 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4641 See \`config.log' for more details" "$LINENO" 5; }
4643 rm -f conftest conftest
$ac_cv_exeext
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4645 $as_echo "$ac_cv_exeext" >&6; }
4647 rm -f conftest.
$ac_ext
4648 EXEEXT
=$ac_cv_exeext
4650 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4651 /* end confdefs.h. */
4656 FILE *f = fopen ("conftest.out", "w");
4657 return ferror (f) || fclose (f) != 0;
4663 ac_clean_files
="$ac_clean_files conftest.out"
4664 # Check that the compiler produces executables we can run. If not, either
4665 # the compiler is broken, or we cross compile.
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4667 $as_echo_n "checking whether we are cross compiling... " >&6; }
4668 if test "$cross_compiling" != yes; then
4669 { { ac_try
="$ac_link"
4671 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4672 *) ac_try_echo=$ac_try;;
4674 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4675 $as_echo "$ac_try_echo"; } >&5
4676 (eval "$ac_link") 2>&5
4678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4679 test $ac_status = 0; }
4680 if { ac_try='./conftest$ac_cv_exeext'
4681 { { case "(($ac_try" in
4682 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4683 *) ac_try_echo
=$ac_try;;
4685 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4686 $as_echo "$ac_try_echo"; } >&5
4687 (eval "$ac_try") 2>&5
4689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4690 test $ac_status = 0; }; }; then
4693 if test "$cross_compiling" = maybe
; then
4696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4698 as_fn_error $?
"cannot run C compiled programs.
4699 If you meant to cross compile, use \`--host'.
4700 See \`config.log' for more details" "$LINENO" 5; }
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4705 $as_echo "$cross_compiling" >&6; }
4707 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4708 ac_clean_files
=$ac_clean_files_save
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4710 $as_echo_n "checking for suffix of object files... " >&6; }
4711 if ${ac_cv_objext+:} false
; then :
4712 $as_echo_n "(cached) " >&6
4714 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4725 rm -f conftest.o conftest.obj
4726 if { { ac_try
="$ac_compile"
4728 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4731 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4732 $as_echo "$ac_try_echo"; } >&5
4733 (eval "$ac_compile") 2>&5
4735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4736 test $ac_status = 0; }; then :
4737 for ac_file in conftest.o conftest.obj conftest.*; do
4738 test -f "$ac_file" || continue;
4740 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4741 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4746 $as_echo "$as_me: failed program was:" >&5
4747 sed 's/^/| /' conftest.$ac_ext >&5
4749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4751 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4752 See \
`config.log' for more details" "$LINENO" 5; }
4754 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4757 $as_echo "$ac_cv_objext" >&6; }
4758 OBJEXT=$ac_cv_objext
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4761 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4762 if ${ac_cv_c_compiler_gnu+:} false; then :
4763 $as_echo_n "(cached) " >&6
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4779 if ac_fn_c_try_compile "$LINENO"; then :
4784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4785 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4789 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4790 if test $ac_compiler_gnu = yes; then
4795 ac_test_CFLAGS=${CFLAGS+set}
4796 ac_save_CFLAGS=$CFLAGS
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4798 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4799 if ${ac_cv_prog_cc_g+:} false; then :
4800 $as_echo_n "(cached) " >&6
4802 ac_save_c_werror_flag=$ac_c_werror_flag
4803 ac_c_werror_flag=yes
4806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4807 /* end confdefs.h. */
4817 if ac_fn_c_try_compile "$LINENO"; then :
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4832 if ac_fn_c_try_compile "$LINENO"; then :
4835 ac_c_werror_flag=$ac_save_c_werror_flag
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4848 if ac_fn_c_try_compile "$LINENO"; then :
4851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4856 ac_c_werror_flag=$ac_save_c_werror_flag
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4859 $as_echo "$ac_cv_prog_cc_g" >&6; }
4860 if test "$ac_test_CFLAGS" = set; then
4861 CFLAGS=$ac_save_CFLAGS
4862 elif test $ac_cv_prog_cc_g = yes; then
4863 if test "$GCC" = yes; then
4869 if test "$GCC" = yes; then
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4876 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4877 if ${ac_cv_prog_cc_c89+:} false; then :
4878 $as_echo_n "(cached) " >&6
4880 ac_cv_prog_cc_c89=no
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4887 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4888 struct buf { int x; };
4889 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4890 static char *e (p, i)
4896 static char *f (char * (*g) (char **, int), char **p, ...)
4901 s = g (p, va_arg (v,int));
4906 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4907 function prototypes and stuff, but not '\xHH' hex character constants.
4908 These don't provoke an error unfortunately, instead are silently treated
4909 as 'x'. The following induces an error, until -std is added to get
4910 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4911 array size at least. It's necessary to write '\x00'==0 to get something
4912 that's true only with -std. */
4913 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4915 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4916 inside strings and character constants. */
4918 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4920 int test (int i, double x);
4921 struct s1 {int (*f) (int a);};
4922 struct s2 {int (*f) (double a);};
4923 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4929 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4934 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4935 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4937 CC="$ac_save_CC $ac_arg"
4938 if ac_fn_c_try_compile "$LINENO"; then :
4939 ac_cv_prog_cc_c89=$ac_arg
4941 rm -f core conftest.err conftest.$ac_objext
4942 test "x$ac_cv_prog_cc_c89" != "xno" && break
4944 rm -f conftest.$ac_ext
4949 case "x$ac_cv_prog_cc_c89" in
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4952 $as_echo "none needed" >&6; } ;;
4954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4955 $as_echo "unsupported" >&6; } ;;
4957 CC="$CC $ac_cv_prog_cc_c89"
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4959 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4961 if test "x$ac_cv_prog_cc_c89" != xno; then :
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4972 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4973 if ${ac_cv_prog_cc_c99+:} false; then :
4974 $as_echo_n "(cached) " >&6
4976 ac_cv_prog_cc_c99=no
4978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4979 /* end confdefs.h. */
4981 #include <stdbool.h>
4986 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4987 #define debug(...) fprintf (stderr, __VA_ARGS__)
4988 #define showlist(...) puts (#__VA_ARGS__)
4989 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4991 test_varargs_macros (void)
4996 debug ("X = %d\n", x);
4997 showlist (The first, second, and third items.);
4998 report (x>y, "x is %d but y is %d", x, y);
5001 // Check long long types.
5002 #define BIG64 18446744073709551615ull
5003 #define BIG32 4294967295ul
5004 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5006 your preprocessor is broken;
5010 your preprocessor is broken;
5012 static long long int bignum = -9223372036854775807LL;
5013 static unsigned long long int ubignum = BIG64;
5015 struct incomplete_array
5023 const wchar_t *name;
5027 typedef const char *ccp;
5030 test_restrict (ccp restrict text)
5032 // See if C++-style comments work.
5033 // Iterate through items via the restricted pointer.
5034 // Also check for declarations in for loops.
5035 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5040 // Check varargs and va_copy.
5042 test_varargs (const char *format, ...)
5045 va_start (args, format);
5047 va_copy (args_copy, args);
5058 str = va_arg (args_copy, const char *);
5061 number = va_arg (args_copy, int);
5064 fnumber = va_arg (args_copy, double);
5079 _Bool success = false;
5082 if (test_restrict ("String literal") == 0)
5084 char *restrict newvar = "Another string";
5087 test_varargs ("s, d' f .", "string", 65, 34.234);
5088 test_varargs_macros ();
5090 // Check flexible array members.
5091 struct incomplete_array *ia =
5092 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5094 for (int i = 0; i < ia->datasize; ++i)
5095 ia->data[i] = i * 1.234;
5097 // Check named initializers.
5098 struct named_init ni = {
5100 .name = L"Test wide string",
5101 .average = 543.34343,
5106 int dynamic_array[ni.number];
5107 dynamic_array[ni.number - 1] = 543;
5109 // work around unused variable warnings
5110 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5111 || dynamic_array[ni.number - 1] != 543);
5117 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5119 CC="$ac_save_CC $ac_arg"
5120 if ac_fn_c_try_compile "$LINENO"; then :
5121 ac_cv_prog_cc_c99=$ac_arg
5123 rm -f core conftest.err conftest.$ac_objext
5124 test "x$ac_cv_prog_cc_c99" != "xno" && break
5126 rm -f conftest.$ac_ext
5131 case "x$ac_cv_prog_cc_c99" in
5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5134 $as_echo "none needed" >&6; } ;;
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5137 $as_echo "unsupported" >&6; } ;;
5139 CC="$CC $ac_cv_prog_cc_c99"
5140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5141 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5143 if test "x$ac_cv_prog_cc_c99" != xno; then :
5149 ac_cpp='$CXXCPP $CPPFLAGS'
5150 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5151 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5152 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5153 if test -z "$CXX"; then
5154 if test -n "$CCC"; then
5157 if test -n "$ac_tool_prefix"; then
5158 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5160 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5161 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5163 $as_echo_n "checking for $ac_word... " >&6; }
5164 if ${ac_cv_prog_CXX+:} false; then :
5165 $as_echo_n "(cached) " >&6
5167 if test -n "$CXX"; then
5168 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5188 if test -n "$CXX"; then
5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5190 $as_echo "$CXX" >&6; }
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5193 $as_echo "no" >&6; }
5197 test -n "$CXX" && break
5200 if test -z "$CXX"; then
5202 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5204 # Extract the first word of "$ac_prog", so it can be a program name with args.
5205 set dummy $ac_prog; ac_word=$2
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5207 $as_echo_n "checking for $ac_word... " >&6; }
5208 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5209 $as_echo_n "(cached) " >&6
5211 if test -n "$ac_ct_CXX"; then
5212 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 test -z "$as_dir" && as_dir=.
5219 for ac_exec_ext in '' $ac_executable_extensions; do
5220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5221 ac_cv_prog_ac_ct_CXX="$ac_prog"
5222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5232 if test -n "$ac_ct_CXX"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5234 $as_echo "$ac_ct_CXX" >&6; }
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 $as_echo "no" >&6; }
5241 test -n "$ac_ct_CXX" && break
5244 if test "x$ac_ct_CXX" = x; then
5247 case $cross_compiling:$ac_tool_warned in
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5250 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5251 ac_tool_warned=yes ;;
5259 # Provide some information about the compiler.
5260 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5263 for ac_option in --version -v -V -qversion; do
5264 { { ac_try="$ac_compiler $ac_option >&5"
5266 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5267 *) ac_try_echo
=$ac_try;;
5269 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5270 $as_echo "$ac_try_echo"; } >&5
5271 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5273 if test -s conftest.err
; then
5275 ... rest of stderr output deleted ...
5276 10q' conftest.err
>conftest.er1
5277 cat conftest.er1
>&5
5279 rm -f conftest.er1 conftest.err
5280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5281 test $ac_status = 0; }
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5285 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5286 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5287 $as_echo_n "(cached) " >&6
5289 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5303 if ac_fn_cxx_try_compile
"$LINENO"; then :
5308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5309 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5313 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5314 if test $ac_compiler_gnu = yes; then
5319 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5320 ac_save_CXXFLAGS
=$CXXFLAGS
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5322 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5323 if ${ac_cv_prog_cxx_g+:} false
; then :
5324 $as_echo_n "(cached) " >&6
5326 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5327 ac_cxx_werror_flag
=yes
5330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5331 /* end confdefs.h. */
5341 if ac_fn_cxx_try_compile
"$LINENO"; then :
5342 ac_cv_prog_cxx_g
=yes
5345 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5346 /* end confdefs.h. */
5356 if ac_fn_cxx_try_compile
"$LINENO"; then :
5359 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5361 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5362 /* end confdefs.h. */
5372 if ac_fn_cxx_try_compile
"$LINENO"; then :
5373 ac_cv_prog_cxx_g
=yes
5375 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5377 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5379 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5380 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5383 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5384 if test "$ac_test_CXXFLAGS" = set; then
5385 CXXFLAGS
=$ac_save_CXXFLAGS
5386 elif test $ac_cv_prog_cxx_g = yes; then
5387 if test "$GXX" = yes; then
5393 if test "$GXX" = yes; then
5400 ac_cpp
='$CPP $CPPFLAGS'
5401 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5402 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5403 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5406 # We must set the default linker to the linker used by gcc for the correct
5407 # operation of libtool. If LD is not defined and we are using gcc, try to
5408 # set the LD default to the ld used by gcc.
5409 if test -z "$LD"; then
5410 if test "$GCC" = yes; then
5413 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5415 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5417 case $gcc_prog_ld in
5418 # Accept absolute paths.
5419 [\\/]* |
[A-Za-z
]:[\\/]*)
5420 LD
="$gcc_prog_ld" ;;
5425 # Check whether -static-libstdc++ -static-libgcc is supported.
5427 if test "$GCC" = yes; then
5428 saved_LDFLAGS
="$LDFLAGS"
5430 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5432 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5434 ac_cpp
='$CXXCPP $CPPFLAGS'
5435 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5436 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5437 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5443 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5444 #error -static-libstdc++ not implemented
5448 if ac_fn_cxx_try_link
"$LINENO"; then :
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5450 $as_echo "yes" >&6; }; have_static_libs
=yes
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5453 $as_echo "no" >&6; }
5455 rm -f core conftest.err conftest.
$ac_objext \
5456 conftest
$ac_exeext conftest.
$ac_ext
5458 ac_cpp
='$CPP $CPPFLAGS'
5459 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5460 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5461 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5464 LDFLAGS
="$saved_LDFLAGS"
5470 if test -n "$ac_tool_prefix"; then
5471 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5472 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_GNATBIND+:} false
; then :
5476 $as_echo_n "(cached) " >&6
5478 if test -n "$GNATBIND"; then
5479 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5485 test -z "$as_dir" && as_dir
=.
5486 for ac_exec_ext
in '' $ac_executable_extensions; do
5487 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 GNATBIND
=$ac_cv_prog_GNATBIND
5499 if test -n "$GNATBIND"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5501 $as_echo "$GNATBIND" >&6; }
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5509 if test -z "$ac_cv_prog_GNATBIND"; then
5510 ac_ct_GNATBIND
=$GNATBIND
5511 # Extract the first word of "gnatbind", so it can be a program name with args.
5512 set dummy gnatbind
; ac_word
=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5516 $as_echo_n "(cached) " >&6
5518 if test -n "$ac_ct_GNATBIND"; then
5519 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5525 test -z "$as_dir" && as_dir
=.
5526 for ac_exec_ext
in '' $ac_executable_extensions; do
5527 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5528 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5539 if test -n "$ac_ct_GNATBIND"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5541 $as_echo "$ac_ct_GNATBIND" >&6; }
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5547 if test "x$ac_ct_GNATBIND" = x
; then
5550 case $cross_compiling:$ac_tool_warned in
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5554 ac_tool_warned
=yes ;;
5556 GNATBIND
=$ac_ct_GNATBIND
5559 GNATBIND
="$ac_cv_prog_GNATBIND"
5562 if test -n "$ac_tool_prefix"; then
5563 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5564 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5566 $as_echo_n "checking for $ac_word... " >&6; }
5567 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5568 $as_echo_n "(cached) " >&6
5570 if test -n "$GNATMAKE"; then
5571 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5573 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5577 test -z "$as_dir" && as_dir
=.
5578 for ac_exec_ext
in '' $ac_executable_extensions; do
5579 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5580 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5590 GNATMAKE
=$ac_cv_prog_GNATMAKE
5591 if test -n "$GNATMAKE"; then
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5593 $as_echo "$GNATMAKE" >&6; }
5595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5596 $as_echo "no" >&6; }
5601 if test -z "$ac_cv_prog_GNATMAKE"; then
5602 ac_ct_GNATMAKE
=$GNATMAKE
5603 # Extract the first word of "gnatmake", so it can be a program name with args.
5604 set dummy gnatmake
; ac_word
=$2
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5606 $as_echo_n "checking for $ac_word... " >&6; }
5607 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5608 $as_echo_n "(cached) " >&6
5610 if test -n "$ac_ct_GNATMAKE"; then
5611 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5613 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5617 test -z "$as_dir" && as_dir
=.
5618 for ac_exec_ext
in '' $ac_executable_extensions; do
5619 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5620 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5621 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5630 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5631 if test -n "$ac_ct_GNATMAKE"; then
5632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5633 $as_echo "$ac_ct_GNATMAKE" >&6; }
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5636 $as_echo "no" >&6; }
5639 if test "x$ac_ct_GNATMAKE" = x
; then
5642 case $cross_compiling:$ac_tool_warned in
5644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5645 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5646 ac_tool_warned
=yes ;;
5648 GNATMAKE
=$ac_ct_GNATMAKE
5651 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5655 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5656 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5657 $as_echo_n "(cached) " >&6
5659 cat >conftest.adb
<<EOF
5660 procedure conftest is begin null; end conftest;
5662 acx_cv_cc_gcc_supports_ada
=no
5663 # There is a bug in old released versions of GCC which causes the
5664 # driver to exit successfully when the appropriate language module
5665 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5666 # Therefore we must check for the error message as well as an
5667 # unsuccessful exit.
5668 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5669 # given a .adb file, but produce no object file. So we must check
5670 # if an object file was really produced to guard against this.
5671 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5672 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5673 acx_cv_cc_gcc_supports_ada
=yes
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5678 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5680 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5688 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5689 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5690 $as_echo_n "(cached) " >&6
5694 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5695 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5696 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5699 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5702 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5703 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5706 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5713 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5714 do_compare
="$gcc_cv_prog_cmp_skip"
5718 # Check whether --enable-bootstrap was given.
5719 if test "${enable_bootstrap+set}" = set; then :
5720 enableval
=$enable_bootstrap;
5722 enable_bootstrap
=default
5726 # Issue errors and warnings for invalid/strange bootstrap combinations.
5727 if test -r $srcdir/gcc
/configure
; then
5733 case "$have_compiler:$host:$target:$enable_bootstrap" in
5736 # Default behavior. Enable bootstrap if we have a compiler
5737 # and we are in a native configuration.
5738 yes:$build:$build:default
)
5739 enable_bootstrap
=yes ;;
5742 enable_bootstrap
=no
;;
5744 # We have a compiler and we are in a native configuration, bootstrap is ok
5745 yes:$build:$build:yes)
5748 # Other configurations, but we have a compiler. Assume the user knows
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5752 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5755 # No compiler: if they passed --enable-bootstrap explicitly, fail
5757 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5759 # Fail if wrong command line
5761 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5765 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5766 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5767 # require C++11 (or higher).
5768 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5769 CXX
="$CXX -std=c++11"
5770 elif test "$have_compiler" = yes; then
5771 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5773 ac_cpp
='$CXXCPP $CPPFLAGS'
5774 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5775 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5776 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5780 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5781 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5782 $as_echo_n "(cached) " >&6
5784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5785 /* end confdefs.h. */
5788 // If the compiler admits that it is not ready for C++11, why torture it?
5789 // Hopefully, this will speed up the test.
5793 #error "This is not a C++ compiler"
5795 #elif __cplusplus < 201103L
5797 #error "This is not a C++11 compiler"
5804 namespace test_static_assert
5807 template <typename T>
5810 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5815 namespace test_final_override
5824 struct Derived : public Base
5826 virtual ~Derived() override {}
5827 virtual void f() override {}
5832 namespace test_double_right_angle_brackets
5835 template < typename T >
5838 typedef check<void> single_type;
5839 typedef check<check<void>> double_type;
5840 typedef check<check<check<void>>> triple_type;
5841 typedef check<check<check<check<void>>>> quadruple_type;
5845 namespace test_decltype
5858 namespace test_type_deduction
5861 template < typename T1, typename T2 >
5864 static const bool value = false;
5867 template < typename T >
5868 struct is_same<T, T>
5870 static const bool value = true;
5873 template < typename T1, typename T2 >
5875 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5881 test(const int c, volatile int v)
5883 static_assert(is_same<int, decltype(0)>::value == true, "");
5884 static_assert(is_same<int, decltype(c)>::value == false, "");
5885 static_assert(is_same<int, decltype(v)>::value == false, "");
5888 auto sumi = ac + av + 'x';
5889 auto sumf = ac + av + 1.0;
5890 static_assert(is_same<int, decltype(ac)>::value == true, "");
5891 static_assert(is_same<int, decltype(av)>::value == true, "");
5892 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5893 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5894 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5895 return (sumf > 0.0) ? sumi : add(c, v);
5900 namespace test_noexcept
5903 int f() { return 0; }
5904 int g() noexcept { return 0; }
5906 static_assert(noexcept(f()) == false, "");
5907 static_assert(noexcept(g()) == true, "");
5911 namespace test_constexpr
5914 template < typename CharT >
5915 unsigned long constexpr
5916 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5918 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5921 template < typename CharT >
5922 unsigned long constexpr
5923 strlen_c(const CharT *const s) noexcept
5925 return strlen_c_r(s, 0UL);
5928 static_assert(strlen_c("") == 0UL, "");
5929 static_assert(strlen_c("1") == 1UL, "");
5930 static_assert(strlen_c("example") == 7UL, "");
5931 static_assert(strlen_c("another\0example") == 7UL, "");
5935 namespace test_rvalue_references
5941 static constexpr int value = N;
5944 answer<1> f(int&) { return answer<1>(); }
5945 answer<2> f(const int&) { return answer<2>(); }
5946 answer<3> f(int&&) { return answer<3>(); }
5953 static_assert(decltype(f(i))::value == 1, "");
5954 static_assert(decltype(f(c))::value == 2, "");
5955 static_assert(decltype(f(0))::value == 3, "");
5960 namespace test_uniform_initialization
5965 static const int zero {};
5966 static const int one {1};
5969 static_assert(test::zero == 0, "");
5970 static_assert(test::one == 1, "");
5974 namespace test_lambdas
5980 auto lambda1 = [](){};
5981 auto lambda2 = lambda1;
5989 auto a = [](int i, int j){ return i + j; }(1, 2);
5990 auto b = []() -> int { return '0'; }();
5991 auto c = [=](){ return a + b; }();
5992 auto d = [&](){ return c; }();
5993 auto e = [a, &b](int x) mutable {
5994 const auto identity = [](int y){ return y; };
5995 for (auto i = 0; i < a; ++i)
5997 return x + identity(a + b);
5999 return a + b + c + d + e;
6005 const auto nullary = [](){ return 0; };
6006 const auto unary = [](int x){ return x; };
6007 using nullary_t = decltype(nullary);
6008 using unary_t = decltype(unary);
6009 const auto higher1st = [](nullary_t f){ return f(); };
6010 const auto higher2nd = [unary](nullary_t f1){
6011 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6013 return higher1st(nullary) + higher2nd(nullary)(unary);
6018 namespace test_variadic_templates
6024 template <int N0, int... N1toN>
6025 struct sum<N0, N1toN...>
6027 static constexpr auto value = N0 + sum<N1toN...>::value;
6033 static constexpr auto value = 0;
6036 static_assert(sum<>::value == 0, "");
6037 static_assert(sum<1>::value == 1, "");
6038 static_assert(sum<23>::value == 23, "");
6039 static_assert(sum<1, 2>::value == 3, "");
6040 static_assert(sum<5, 5, 11>::value == 21, "");
6041 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6045 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6046 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6048 namespace test_template_alias_sfinae
6053 template<typename T>
6054 using member = typename T::member_type;
6056 template<typename T>
6059 template<typename T>
6060 void func(member<T>*) {}
6064 void test() { func<foo>(0); }
6068 } // namespace cxx11
6070 #endif // __cplusplus >= 201103L
6075 if ac_fn_cxx_try_compile
"$LINENO"; then :
6076 ax_cv_cxx_compile_cxx11
=yes
6078 ax_cv_cxx_compile_cxx11
=no
6080 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6083 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6084 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6088 if test x
$ac_success = xno
; then
6089 for alternative
in ${ax_cxx_compile_alternatives}; do
6090 switch
="-std=gnu++${alternative}"
6091 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6093 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6094 if eval \
${$cachevar+:} false
; then :
6095 $as_echo_n "(cached) " >&6
6099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6100 /* end confdefs.h. */
6103 // If the compiler admits that it is not ready for C++11, why torture it?
6104 // Hopefully, this will speed up the test.
6108 #error "This is not a C++ compiler"
6110 #elif __cplusplus < 201103L
6112 #error "This is not a C++11 compiler"
6119 namespace test_static_assert
6122 template <typename T>
6125 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6130 namespace test_final_override
6139 struct Derived : public Base
6141 virtual ~Derived() override {}
6142 virtual void f() override {}
6147 namespace test_double_right_angle_brackets
6150 template < typename T >
6153 typedef check<void> single_type;
6154 typedef check<check<void>> double_type;
6155 typedef check<check<check<void>>> triple_type;
6156 typedef check<check<check<check<void>>>> quadruple_type;
6160 namespace test_decltype
6173 namespace test_type_deduction
6176 template < typename T1, typename T2 >
6179 static const bool value = false;
6182 template < typename T >
6183 struct is_same<T, T>
6185 static const bool value = true;
6188 template < typename T1, typename T2 >
6190 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6196 test(const int c, volatile int v)
6198 static_assert(is_same<int, decltype(0)>::value == true, "");
6199 static_assert(is_same<int, decltype(c)>::value == false, "");
6200 static_assert(is_same<int, decltype(v)>::value == false, "");
6203 auto sumi = ac + av + 'x';
6204 auto sumf = ac + av + 1.0;
6205 static_assert(is_same<int, decltype(ac)>::value == true, "");
6206 static_assert(is_same<int, decltype(av)>::value == true, "");
6207 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6208 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6209 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6210 return (sumf > 0.0) ? sumi : add(c, v);
6215 namespace test_noexcept
6218 int f() { return 0; }
6219 int g() noexcept { return 0; }
6221 static_assert(noexcept(f()) == false, "");
6222 static_assert(noexcept(g()) == true, "");
6226 namespace test_constexpr
6229 template < typename CharT >
6230 unsigned long constexpr
6231 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6233 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6236 template < typename CharT >
6237 unsigned long constexpr
6238 strlen_c(const CharT *const s) noexcept
6240 return strlen_c_r(s, 0UL);
6243 static_assert(strlen_c("") == 0UL, "");
6244 static_assert(strlen_c("1") == 1UL, "");
6245 static_assert(strlen_c("example") == 7UL, "");
6246 static_assert(strlen_c("another\0example") == 7UL, "");
6250 namespace test_rvalue_references
6256 static constexpr int value = N;
6259 answer<1> f(int&) { return answer<1>(); }
6260 answer<2> f(const int&) { return answer<2>(); }
6261 answer<3> f(int&&) { return answer<3>(); }
6268 static_assert(decltype(f(i))::value == 1, "");
6269 static_assert(decltype(f(c))::value == 2, "");
6270 static_assert(decltype(f(0))::value == 3, "");
6275 namespace test_uniform_initialization
6280 static const int zero {};
6281 static const int one {1};
6284 static_assert(test::zero == 0, "");
6285 static_assert(test::one == 1, "");
6289 namespace test_lambdas
6295 auto lambda1 = [](){};
6296 auto lambda2 = lambda1;
6304 auto a = [](int i, int j){ return i + j; }(1, 2);
6305 auto b = []() -> int { return '0'; }();
6306 auto c = [=](){ return a + b; }();
6307 auto d = [&](){ return c; }();
6308 auto e = [a, &b](int x) mutable {
6309 const auto identity = [](int y){ return y; };
6310 for (auto i = 0; i < a; ++i)
6312 return x + identity(a + b);
6314 return a + b + c + d + e;
6320 const auto nullary = [](){ return 0; };
6321 const auto unary = [](int x){ return x; };
6322 using nullary_t = decltype(nullary);
6323 using unary_t = decltype(unary);
6324 const auto higher1st = [](nullary_t f){ return f(); };
6325 const auto higher2nd = [unary](nullary_t f1){
6326 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6328 return higher1st(nullary) + higher2nd(nullary)(unary);
6333 namespace test_variadic_templates
6339 template <int N0, int... N1toN>
6340 struct sum<N0, N1toN...>
6342 static constexpr auto value = N0 + sum<N1toN...>::value;
6348 static constexpr auto value = 0;
6351 static_assert(sum<>::value == 0, "");
6352 static_assert(sum<1>::value == 1, "");
6353 static_assert(sum<23>::value == 23, "");
6354 static_assert(sum<1, 2>::value == 3, "");
6355 static_assert(sum<5, 5, 11>::value == 21, "");
6356 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6360 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6361 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6363 namespace test_template_alias_sfinae
6368 template<typename T>
6369 using member = typename T::member_type;
6371 template<typename T>
6374 template<typename T>
6375 void func(member<T>*) {}
6379 void test() { func<foo>(0); }
6383 } // namespace cxx11
6385 #endif // __cplusplus >= 201103L
6390 if ac_fn_cxx_try_compile
"$LINENO"; then :
6395 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6398 eval ac_res
=\$
$cachevar
6399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6400 $as_echo "$ac_res" >&6; }
6401 if eval test x\$
$cachevar = xyes
; then
6403 if test -n "$CXXCPP" ; then
6404 CXXCPP
="$CXXCPP $switch"
6412 if test x
$ac_success = xno
; then
6413 for alternative
in ${ax_cxx_compile_alternatives}; do
6414 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6415 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6417 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6418 if eval \${$cachevar+:} false; then :
6419 $as_echo_n "(cached
) " >&6
6423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6424 /* end confdefs.h. */
6427 // If the compiler admits that it is not ready for C++11, why torture it?
6428 // Hopefully, this will speed up the test.
6432 #error "This is not a C
++ compiler
"
6434 #elif __cplusplus < 201103L
6436 #error "This is not a C
++11 compiler
"
6443 namespace test_static_assert
6446 template <typename T>
6449 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6454 namespace test_final_override
6463 struct Derived : public Base
6465 virtual ~Derived() override {}
6466 virtual void f() override {}
6471 namespace test_double_right_angle_brackets
6474 template < typename T >
6477 typedef check<void> single_type;
6478 typedef check<check<void>> double_type;
6479 typedef check<check<check<void>>> triple_type;
6480 typedef check<check<check<check<void>>>> quadruple_type;
6484 namespace test_decltype
6497 namespace test_type_deduction
6500 template < typename T1, typename T2 >
6503 static const bool value = false;
6506 template < typename T >
6507 struct is_same<T, T>
6509 static const bool value = true;
6512 template < typename T1, typename T2 >
6514 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6520 test(const int c, volatile int v)
6522 static_assert(is_same<int, decltype(0)>::value == true, "");
6523 static_assert(is_same<int, decltype(c)>::value == false, "");
6524 static_assert(is_same<int, decltype(v)>::value == false, "");
6527 auto sumi = ac + av + 'x';
6528 auto sumf = ac + av + 1.0;
6529 static_assert(is_same<int, decltype(ac)>::value == true, "");
6530 static_assert(is_same<int, decltype(av)>::value == true, "");
6531 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6532 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6533 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6534 return (sumf > 0.0) ? sumi : add(c, v);
6539 namespace test_noexcept
6542 int f() { return 0; }
6543 int g() noexcept { return 0; }
6545 static_assert(noexcept(f()) == false, "");
6546 static_assert(noexcept(g()) == true, "");
6550 namespace test_constexpr
6553 template < typename CharT >
6554 unsigned long constexpr
6555 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6557 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6560 template < typename CharT >
6561 unsigned long constexpr
6562 strlen_c(const CharT *const s) noexcept
6564 return strlen_c_r(s, 0UL);
6567 static_assert(strlen_c("") == 0UL, "");
6568 static_assert(strlen_c("1") == 1UL, "");
6569 static_assert(strlen_c("example
") == 7UL, "");
6570 static_assert(strlen_c("another\
0example
") == 7UL, "");
6574 namespace test_rvalue_references
6580 static constexpr int value = N;
6583 answer<1> f(int&) { return answer<1>(); }
6584 answer<2> f(const int&) { return answer<2>(); }
6585 answer<3> f(int&&) { return answer<3>(); }
6592 static_assert(decltype(f(i))::value == 1, "");
6593 static_assert(decltype(f(c))::value == 2, "");
6594 static_assert(decltype(f(0))::value == 3, "");
6599 namespace test_uniform_initialization
6604 static const int zero {};
6605 static const int one {1};
6608 static_assert(test::zero == 0, "");
6609 static_assert(test::one == 1, "");
6613 namespace test_lambdas
6619 auto lambda1 = [](){};
6620 auto lambda2 = lambda1;
6628 auto a = [](int i, int j){ return i + j; }(1, 2);
6629 auto b = []() -> int { return '0'; }();
6630 auto c = [=](){ return a + b; }();
6631 auto d = [&](){ return c; }();
6632 auto e = [a, &b](int x) mutable {
6633 const auto identity = [](int y){ return y; };
6634 for (auto i = 0; i < a; ++i)
6636 return x + identity(a + b);
6638 return a + b + c + d + e;
6644 const auto nullary = [](){ return 0; };
6645 const auto unary = [](int x){ return x; };
6646 using nullary_t = decltype(nullary);
6647 using unary_t = decltype(unary);
6648 const auto higher1st = [](nullary_t f){ return f(); };
6649 const auto higher2nd = [unary](nullary_t f1){
6650 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6652 return higher1st(nullary) + higher2nd(nullary)(unary);
6657 namespace test_variadic_templates
6663 template <int N0, int... N1toN>
6664 struct sum<N0, N1toN...>
6666 static constexpr auto value = N0 + sum<N1toN...>::value;
6672 static constexpr auto value = 0;
6675 static_assert(sum<>::value == 0, "");
6676 static_assert(sum<1>::value == 1, "");
6677 static_assert(sum<23>::value == 23, "");
6678 static_assert(sum<1, 2>::value == 3, "");
6679 static_assert(sum<5, 5, 11>::value == 21, "");
6680 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6684 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6685 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6687 namespace test_template_alias_sfinae
6692 template<typename T>
6693 using member = typename T::member_type;
6695 template<typename T>
6698 template<typename T>
6699 void func(member<T>*) {}
6703 void test() { func<foo>(0); }
6707 } // namespace cxx11
6709 #endif // __cplusplus >= 201103L
6714 if ac_fn_cxx_try_compile "$LINENO"; then :
6719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6722 eval ac_res=\$$cachevar
6723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6724 $as_echo "$ac_res" >&6; }
6725 if eval test x\$$cachevar = xyes; then
6727 if test -n "$CXXCPP" ; then
6728 CXXCPP="$CXXCPP $switch"
6734 if test x$ac_success = xyes; then
6741 ac_cpp='$CPP $CPPFLAGS'
6742 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6743 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6744 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6746 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6747 if test x$ac_success = xno; then
6748 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6751 if test x$ac_success = xno; then
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6754 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6758 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6764 if test "${build}" != "${host}"; then
6765 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6767 ac_cpp
='$CXXCPP $CPPFLAGS'
6768 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6769 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6770 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6772 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6773 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6774 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6775 CXX
="$CXX_FOR_BUILD"
6776 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6777 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6779 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6780 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6781 $as_echo_n "(cached) " >&6
6783 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6784 /* end confdefs.h. */
6787 // If the compiler admits that it is not ready for C++11, why torture it?
6788 // Hopefully, this will speed up the test.
6792 #error "This is not a C++ compiler"
6794 #elif __cplusplus < 201103L
6796 #error "This is not a C++11 compiler"
6803 namespace test_static_assert
6806 template <typename T>
6809 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6814 namespace test_final_override
6823 struct Derived : public Base
6825 virtual ~Derived() override {}
6826 virtual void f() override {}
6831 namespace test_double_right_angle_brackets
6834 template < typename T >
6837 typedef check<void> single_type;
6838 typedef check<check<void>> double_type;
6839 typedef check<check<check<void>>> triple_type;
6840 typedef check<check<check<check<void>>>> quadruple_type;
6844 namespace test_decltype
6857 namespace test_type_deduction
6860 template < typename T1, typename T2 >
6863 static const bool value = false;
6866 template < typename T >
6867 struct is_same<T, T>
6869 static const bool value = true;
6872 template < typename T1, typename T2 >
6874 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6880 test(const int c, volatile int v)
6882 static_assert(is_same<int, decltype(0)>::value == true, "");
6883 static_assert(is_same<int, decltype(c)>::value == false, "");
6884 static_assert(is_same<int, decltype(v)>::value == false, "");
6887 auto sumi = ac + av + 'x';
6888 auto sumf = ac + av + 1.0;
6889 static_assert(is_same<int, decltype(ac)>::value == true, "");
6890 static_assert(is_same<int, decltype(av)>::value == true, "");
6891 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6892 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6893 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6894 return (sumf > 0.0) ? sumi : add(c, v);
6899 namespace test_noexcept
6902 int f() { return 0; }
6903 int g() noexcept { return 0; }
6905 static_assert(noexcept(f()) == false, "");
6906 static_assert(noexcept(g()) == true, "");
6910 namespace test_constexpr
6913 template < typename CharT >
6914 unsigned long constexpr
6915 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6917 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6920 template < typename CharT >
6921 unsigned long constexpr
6922 strlen_c(const CharT *const s) noexcept
6924 return strlen_c_r(s, 0UL);
6927 static_assert(strlen_c("") == 0UL, "");
6928 static_assert(strlen_c("1") == 1UL, "");
6929 static_assert(strlen_c("example") == 7UL, "");
6930 static_assert(strlen_c("another\0example") == 7UL, "");
6934 namespace test_rvalue_references
6940 static constexpr int value = N;
6943 answer<1> f(int&) { return answer<1>(); }
6944 answer<2> f(const int&) { return answer<2>(); }
6945 answer<3> f(int&&) { return answer<3>(); }
6952 static_assert(decltype(f(i))::value == 1, "");
6953 static_assert(decltype(f(c))::value == 2, "");
6954 static_assert(decltype(f(0))::value == 3, "");
6959 namespace test_uniform_initialization
6964 static const int zero {};
6965 static const int one {1};
6968 static_assert(test::zero == 0, "");
6969 static_assert(test::one == 1, "");
6973 namespace test_lambdas
6979 auto lambda1 = [](){};
6980 auto lambda2 = lambda1;
6988 auto a = [](int i, int j){ return i + j; }(1, 2);
6989 auto b = []() -> int { return '0'; }();
6990 auto c = [=](){ return a + b; }();
6991 auto d = [&](){ return c; }();
6992 auto e = [a, &b](int x) mutable {
6993 const auto identity = [](int y){ return y; };
6994 for (auto i = 0; i < a; ++i)
6996 return x + identity(a + b);
6998 return a + b + c + d + e;
7004 const auto nullary = [](){ return 0; };
7005 const auto unary = [](int x){ return x; };
7006 using nullary_t = decltype(nullary);
7007 using unary_t = decltype(unary);
7008 const auto higher1st = [](nullary_t f){ return f(); };
7009 const auto higher2nd = [unary](nullary_t f1){
7010 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7012 return higher1st(nullary) + higher2nd(nullary)(unary);
7017 namespace test_variadic_templates
7023 template <int N0, int... N1toN>
7024 struct sum<N0, N1toN...>
7026 static constexpr auto value = N0 + sum<N1toN...>::value;
7032 static constexpr auto value = 0;
7035 static_assert(sum<>::value == 0, "");
7036 static_assert(sum<1>::value == 1, "");
7037 static_assert(sum<23>::value == 23, "");
7038 static_assert(sum<1, 2>::value == 3, "");
7039 static_assert(sum<5, 5, 11>::value == 21, "");
7040 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7044 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7045 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7047 namespace test_template_alias_sfinae
7052 template<typename T>
7053 using member = typename T::member_type;
7055 template<typename T>
7058 template<typename T>
7059 void func(member<T>*) {}
7063 void test() { func<foo>(0); }
7067 } // namespace cxx11
7069 #endif // __cplusplus >= 201103L
7074 if ac_fn_cxx_try_compile
"$LINENO"; then :
7075 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7077 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7079 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7082 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7083 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7087 if test x
$ac_success = xno
; then
7088 for alternative
in ${ax_cxx_compile_alternatives}; do
7089 switch
="-std=gnu++${alternative}"
7090 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7092 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7093 if eval \
${$cachevar+:} false
; then :
7094 $as_echo_n "(cached) " >&6
7098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7099 /* end confdefs.h. */
7102 // If the compiler admits that it is not ready for C++11, why torture it?
7103 // Hopefully, this will speed up the test.
7107 #error "This is not a C++ compiler"
7109 #elif __cplusplus < 201103L
7111 #error "This is not a C++11 compiler"
7118 namespace test_static_assert
7121 template <typename T>
7124 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7129 namespace test_final_override
7138 struct Derived : public Base
7140 virtual ~Derived() override {}
7141 virtual void f() override {}
7146 namespace test_double_right_angle_brackets
7149 template < typename T >
7152 typedef check<void> single_type;
7153 typedef check<check<void>> double_type;
7154 typedef check<check<check<void>>> triple_type;
7155 typedef check<check<check<check<void>>>> quadruple_type;
7159 namespace test_decltype
7172 namespace test_type_deduction
7175 template < typename T1, typename T2 >
7178 static const bool value = false;
7181 template < typename T >
7182 struct is_same<T, T>
7184 static const bool value = true;
7187 template < typename T1, typename T2 >
7189 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7195 test(const int c, volatile int v)
7197 static_assert(is_same<int, decltype(0)>::value == true, "");
7198 static_assert(is_same<int, decltype(c)>::value == false, "");
7199 static_assert(is_same<int, decltype(v)>::value == false, "");
7202 auto sumi = ac + av + 'x';
7203 auto sumf = ac + av + 1.0;
7204 static_assert(is_same<int, decltype(ac)>::value == true, "");
7205 static_assert(is_same<int, decltype(av)>::value == true, "");
7206 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7207 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7208 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7209 return (sumf > 0.0) ? sumi : add(c, v);
7214 namespace test_noexcept
7217 int f() { return 0; }
7218 int g() noexcept { return 0; }
7220 static_assert(noexcept(f()) == false, "");
7221 static_assert(noexcept(g()) == true, "");
7225 namespace test_constexpr
7228 template < typename CharT >
7229 unsigned long constexpr
7230 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7232 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7235 template < typename CharT >
7236 unsigned long constexpr
7237 strlen_c(const CharT *const s) noexcept
7239 return strlen_c_r(s, 0UL);
7242 static_assert(strlen_c("") == 0UL, "");
7243 static_assert(strlen_c("1") == 1UL, "");
7244 static_assert(strlen_c("example") == 7UL, "");
7245 static_assert(strlen_c("another\0example") == 7UL, "");
7249 namespace test_rvalue_references
7255 static constexpr int value = N;
7258 answer<1> f(int&) { return answer<1>(); }
7259 answer<2> f(const int&) { return answer<2>(); }
7260 answer<3> f(int&&) { return answer<3>(); }
7267 static_assert(decltype(f(i))::value == 1, "");
7268 static_assert(decltype(f(c))::value == 2, "");
7269 static_assert(decltype(f(0))::value == 3, "");
7274 namespace test_uniform_initialization
7279 static const int zero {};
7280 static const int one {1};
7283 static_assert(test::zero == 0, "");
7284 static_assert(test::one == 1, "");
7288 namespace test_lambdas
7294 auto lambda1 = [](){};
7295 auto lambda2 = lambda1;
7303 auto a = [](int i, int j){ return i + j; }(1, 2);
7304 auto b = []() -> int { return '0'; }();
7305 auto c = [=](){ return a + b; }();
7306 auto d = [&](){ return c; }();
7307 auto e = [a, &b](int x) mutable {
7308 const auto identity = [](int y){ return y; };
7309 for (auto i = 0; i < a; ++i)
7311 return x + identity(a + b);
7313 return a + b + c + d + e;
7319 const auto nullary = [](){ return 0; };
7320 const auto unary = [](int x){ return x; };
7321 using nullary_t = decltype(nullary);
7322 using unary_t = decltype(unary);
7323 const auto higher1st = [](nullary_t f){ return f(); };
7324 const auto higher2nd = [unary](nullary_t f1){
7325 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7327 return higher1st(nullary) + higher2nd(nullary)(unary);
7332 namespace test_variadic_templates
7338 template <int N0, int... N1toN>
7339 struct sum<N0, N1toN...>
7341 static constexpr auto value = N0 + sum<N1toN...>::value;
7347 static constexpr auto value = 0;
7350 static_assert(sum<>::value == 0, "");
7351 static_assert(sum<1>::value == 1, "");
7352 static_assert(sum<23>::value == 23, "");
7353 static_assert(sum<1, 2>::value == 3, "");
7354 static_assert(sum<5, 5, 11>::value == 21, "");
7355 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7359 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7360 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7362 namespace test_template_alias_sfinae
7367 template<typename T>
7368 using member = typename T::member_type;
7370 template<typename T>
7373 template<typename T>
7374 void func(member<T>*) {}
7378 void test() { func<foo>(0); }
7382 } // namespace cxx11
7384 #endif // __cplusplus >= 201103L
7389 if ac_fn_cxx_try_compile
"$LINENO"; then :
7394 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7397 eval ac_res
=\$
$cachevar
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7399 $as_echo "$ac_res" >&6; }
7400 if eval test x\$
$cachevar = xyes
; then
7402 if test -n "$CXXCPP" ; then
7403 CXXCPP
="$CXXCPP $switch"
7411 if test x
$ac_success = xno
; then
7412 for alternative
in ${ax_cxx_compile_alternatives}; do
7413 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7414 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7416 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7417 if eval \${$cachevar+:} false; then :
7418 $as_echo_n "(cached
) " >&6
7422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7423 /* end confdefs.h. */
7426 // If the compiler admits that it is not ready for C++11, why torture it?
7427 // Hopefully, this will speed up the test.
7431 #error "This is not a C
++ compiler
"
7433 #elif __cplusplus < 201103L
7435 #error "This is not a C
++11 compiler
"
7442 namespace test_static_assert
7445 template <typename T>
7448 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7453 namespace test_final_override
7462 struct Derived : public Base
7464 virtual ~Derived() override {}
7465 virtual void f() override {}
7470 namespace test_double_right_angle_brackets
7473 template < typename T >
7476 typedef check<void> single_type;
7477 typedef check<check<void>> double_type;
7478 typedef check<check<check<void>>> triple_type;
7479 typedef check<check<check<check<void>>>> quadruple_type;
7483 namespace test_decltype
7496 namespace test_type_deduction
7499 template < typename T1, typename T2 >
7502 static const bool value = false;
7505 template < typename T >
7506 struct is_same<T, T>
7508 static const bool value = true;
7511 template < typename T1, typename T2 >
7513 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7519 test(const int c, volatile int v)
7521 static_assert(is_same<int, decltype(0)>::value == true, "");
7522 static_assert(is_same<int, decltype(c)>::value == false, "");
7523 static_assert(is_same<int, decltype(v)>::value == false, "");
7526 auto sumi = ac + av + 'x';
7527 auto sumf = ac + av + 1.0;
7528 static_assert(is_same<int, decltype(ac)>::value == true, "");
7529 static_assert(is_same<int, decltype(av)>::value == true, "");
7530 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7531 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7532 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7533 return (sumf > 0.0) ? sumi : add(c, v);
7538 namespace test_noexcept
7541 int f() { return 0; }
7542 int g() noexcept { return 0; }
7544 static_assert(noexcept(f()) == false, "");
7545 static_assert(noexcept(g()) == true, "");
7549 namespace test_constexpr
7552 template < typename CharT >
7553 unsigned long constexpr
7554 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7556 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7559 template < typename CharT >
7560 unsigned long constexpr
7561 strlen_c(const CharT *const s) noexcept
7563 return strlen_c_r(s, 0UL);
7566 static_assert(strlen_c("") == 0UL, "");
7567 static_assert(strlen_c("1") == 1UL, "");
7568 static_assert(strlen_c("example
") == 7UL, "");
7569 static_assert(strlen_c("another\
0example
") == 7UL, "");
7573 namespace test_rvalue_references
7579 static constexpr int value = N;
7582 answer<1> f(int&) { return answer<1>(); }
7583 answer<2> f(const int&) { return answer<2>(); }
7584 answer<3> f(int&&) { return answer<3>(); }
7591 static_assert(decltype(f(i))::value == 1, "");
7592 static_assert(decltype(f(c))::value == 2, "");
7593 static_assert(decltype(f(0))::value == 3, "");
7598 namespace test_uniform_initialization
7603 static const int zero {};
7604 static const int one {1};
7607 static_assert(test::zero == 0, "");
7608 static_assert(test::one == 1, "");
7612 namespace test_lambdas
7618 auto lambda1 = [](){};
7619 auto lambda2 = lambda1;
7627 auto a = [](int i, int j){ return i + j; }(1, 2);
7628 auto b = []() -> int { return '0'; }();
7629 auto c = [=](){ return a + b; }();
7630 auto d = [&](){ return c; }();
7631 auto e = [a, &b](int x) mutable {
7632 const auto identity = [](int y){ return y; };
7633 for (auto i = 0; i < a; ++i)
7635 return x + identity(a + b);
7637 return a + b + c + d + e;
7643 const auto nullary = [](){ return 0; };
7644 const auto unary = [](int x){ return x; };
7645 using nullary_t = decltype(nullary);
7646 using unary_t = decltype(unary);
7647 const auto higher1st = [](nullary_t f){ return f(); };
7648 const auto higher2nd = [unary](nullary_t f1){
7649 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7651 return higher1st(nullary) + higher2nd(nullary)(unary);
7656 namespace test_variadic_templates
7662 template <int N0, int... N1toN>
7663 struct sum<N0, N1toN...>
7665 static constexpr auto value = N0 + sum<N1toN...>::value;
7671 static constexpr auto value = 0;
7674 static_assert(sum<>::value == 0, "");
7675 static_assert(sum<1>::value == 1, "");
7676 static_assert(sum<23>::value == 23, "");
7677 static_assert(sum<1, 2>::value == 3, "");
7678 static_assert(sum<5, 5, 11>::value == 21, "");
7679 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7683 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7684 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7686 namespace test_template_alias_sfinae
7691 template<typename T>
7692 using member = typename T::member_type;
7694 template<typename T>
7697 template<typename T>
7698 void func(member<T>*) {}
7702 void test() { func<foo>(0); }
7706 } // namespace cxx11
7708 #endif // __cplusplus >= 201103L
7713 if ac_fn_cxx_try_compile "$LINENO"; then :
7718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7721 eval ac_res=\$$cachevar
7722 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7723 $as_echo "$ac_res" >&6; }
7724 if eval test x\$$cachevar = xyes; then
7726 if test -n "$CXXCPP" ; then
7727 CXXCPP="$CXXCPP $switch"
7733 if test x$ac_success = xyes; then
7738 CXX_FOR_BUILD="$CXX"
7739 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7740 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7741 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7742 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7743 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7745 ac_cpp='$CPP $CPPFLAGS'
7746 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7747 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7748 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7750 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7751 if test x$ac_success = xno; then
7752 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7755 if test x$ac_success = xno; then
7756 HAVE_CXX11_FOR_BUILD=0
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7758 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7760 HAVE_CXX11_FOR_BUILD=1
7762 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7770 # Check whether --enable-pgo-build was given.
7771 if test "${enable_pgo_build+set}" = set; then :
7772 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7778 # Issue errors and warnings for invalid/strange PGO build combinations.
7779 case "$have_compiler:$host:$target:$enable_pgo_build" in
7782 # Allow the PGO build only if we aren't building a compiler and
7783 # we are in a native configuration.
7784 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7786 # Disallow the PGO bootstrap if we are building a compiler.
7787 yes:*:*:yes |
yes:*:*:lto
)
7788 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7791 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7795 if test "$enable_pgo_build" != "no"; then
7796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7797 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7798 old_CFLAGS
="$CFLAGS"
7799 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7800 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7803 /* end confdefs.h. */
7806 if ac_fn_c_try_compile
"$LINENO"; then :
7809 PGO_BUILD_GEN_CFLAGS
=
7811 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7812 CFLAGS
="$old_CFLAGS"
7813 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7815 $as_echo "yes" >&6; }
7816 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7819 $as_echo "no" >&6; }
7820 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7823 if test "$enable_pgo_build" = "lto"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7825 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7826 old_CFLAGS
="$CFLAGS"
7827 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7828 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7829 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7830 /* end confdefs.h. */
7833 if ac_fn_c_try_compile
"$LINENO"; then :
7836 PGO_BUILD_LTO_CFLAGS
=
7838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7839 CFLAGS
="$old_CFLAGS"
7840 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7842 $as_echo "yes" >&6; }
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7845 $as_echo "no" >&6; }
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7847 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7855 # Used for setting $lt_cv_objdir
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7857 $as_echo_n "checking for objdir... " >&6; }
7858 if ${lt_cv_objdir+:} false
; then :
7859 $as_echo_n "(cached) " >&6
7861 rm -f .libs
2>/dev
/null
7862 mkdir .libs
2>/dev
/null
7863 if test -d .libs
; then
7866 # MS-DOS does not allow filenames that begin with a dot.
7869 rmdir .libs
2>/dev
/null
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7872 $as_echo "$lt_cv_objdir" >&6; }
7873 objdir
=$lt_cv_objdir
7879 cat >>confdefs.h
<<_ACEOF
7880 #define LT_OBJDIR "$lt_cv_objdir/"
7885 # Check for GMP, MPFR and MPC
7886 gmplibs
="-lmpc -lmpfr -lgmp"
7890 # Specify a location for mpc
7891 # check for this first so it ends up on the link line before mpfr.
7893 # Check whether --with-mpc was given.
7894 if test "${with_mpc+set}" = set; then :
7899 # Check whether --with-mpc-include was given.
7900 if test "${with_mpc_include+set}" = set; then :
7901 withval
=$with_mpc_include;
7905 # Check whether --with-mpc-lib was given.
7906 if test "${with_mpc_lib+set}" = set; then :
7907 withval
=$with_mpc_lib;
7911 if test "x$with_mpc" != x
; then
7912 gmplibs
="-L$with_mpc/lib $gmplibs"
7913 gmpinc
="-I$with_mpc/include $gmpinc"
7915 if test "x$with_mpc_include" != x
; then
7916 gmpinc
="-I$with_mpc_include $gmpinc"
7918 if test "x$with_mpc_lib" != x
; then
7919 gmplibs
="-L$with_mpc_lib $gmplibs"
7921 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
7922 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7923 gmpinc
='-I$$s/mpc/src '"$gmpinc"
7924 # Do not test the mpc version. Assume that it is sufficient, since
7925 # it is in the source tree, and the library has not been built yet
7926 # but it would be included on the link line in the version check below
7927 # hence making the test fail.
7931 # Specify a location for mpfr
7932 # check for this first so it ends up on the link line before gmp.
7934 # Check whether --with-mpfr was given.
7935 if test "${with_mpfr+set}" = set; then :
7940 # Check whether --with-mpfr-include was given.
7941 if test "${with_mpfr_include+set}" = set; then :
7942 withval
=$with_mpfr_include;
7946 # Check whether --with-mpfr-lib was given.
7947 if test "${with_mpfr_lib+set}" = set; then :
7948 withval
=$with_mpfr_lib;
7952 if test "x$with_mpfr" != x
; then
7953 gmplibs
="-L$with_mpfr/lib $gmplibs"
7954 gmpinc
="-I$with_mpfr/include $gmpinc"
7956 if test "x$with_mpfr_include" != x
; then
7957 gmpinc
="-I$with_mpfr_include $gmpinc"
7959 if test "x$with_mpfr_lib" != x
; then
7960 gmplibs
="-L$with_mpfr_lib $gmplibs"
7962 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
7963 # MPFR v3.1.0 moved the sources into a src sub-directory.
7964 if ! test -d ${srcdir}/mpfr
/src
; then
7965 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7967 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7968 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7969 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7970 # Do not test the mpfr version. Assume that it is sufficient, since
7971 # it is in the source tree, and the library has not been built yet
7972 # but it would be included on the link line in the version check below
7973 # hence making the test fail.
7977 # Specify a location for gmp
7979 # Check whether --with-gmp was given.
7980 if test "${with_gmp+set}" = set; then :
7985 # Check whether --with-gmp-include was given.
7986 if test "${with_gmp_include+set}" = set; then :
7987 withval
=$with_gmp_include;
7991 # Check whether --with-gmp-lib was given.
7992 if test "${with_gmp_lib+set}" = set; then :
7993 withval
=$with_gmp_lib;
7998 if test "x$with_gmp" != x
; then
7999 gmplibs
="-L$with_gmp/lib $gmplibs"
8000 gmpinc
="-I$with_gmp/include $gmpinc"
8002 if test "x$with_gmp_include" != x
; then
8003 gmpinc
="-I$with_gmp_include $gmpinc"
8005 if test "x$with_gmp_lib" != x
; then
8006 gmplibs
="-L$with_gmp_lib $gmplibs"
8008 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8009 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8010 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8011 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8012 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8013 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8014 # Do not test the gmp version. Assume that it is sufficient, since
8015 # it is in the source tree, and the library has not been built yet
8016 # but it would be included on the link line in the version check below
8017 # hence making the test fail.
8021 if test -d ${srcdir}/gcc
&& test "x$have_gmp" = xno
; then
8023 saved_CFLAGS
="$CFLAGS"
8024 CFLAGS
="$CFLAGS $gmpinc"
8025 # Check for the recommended and required versions of GMP.
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8027 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8028 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8029 /* end confdefs.h. */
8035 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8036 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8037 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8045 if ac_fn_c_try_compile
"$LINENO"; then :
8046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8047 /* end confdefs.h. */
8053 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8054 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8055 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8063 if ac_fn_c_try_compile
"$LINENO"; then :
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8065 $as_echo "yes" >&6; }
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8068 $as_echo "buggy but acceptable" >&6; }
8070 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073 $as_echo "no" >&6; }; have_gmp
=no
8075 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8077 # If we have GMP, check the MPFR version.
8078 if test x
"$have_gmp" = xyes
; then
8079 # Check for the recommended and required versions of MPFR.
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8081 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8083 /* end confdefs.h. */
8090 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8098 if ac_fn_c_try_compile
"$LINENO"; then :
8099 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8100 /* end confdefs.h. */
8107 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8115 if ac_fn_c_try_compile
"$LINENO"; then :
8116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8117 $as_echo "yes" >&6; }
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8120 $as_echo "buggy but acceptable" >&6; }
8122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8125 $as_echo "no" >&6; }; have_gmp
=no
8127 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8130 # Check for the MPC header version.
8131 if test x
"$have_gmp" = xyes
; then
8132 # Check for the recommended and required versions of MPC.
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8134 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8136 /* end confdefs.h. */
8142 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8150 if ac_fn_c_try_compile
"$LINENO"; then :
8151 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8152 /* end confdefs.h. */
8158 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8166 if ac_fn_c_try_compile
"$LINENO"; then :
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8168 $as_echo "yes" >&6; }
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8171 $as_echo "buggy but acceptable" >&6; }
8173 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8176 $as_echo "no" >&6; }; have_gmp
=no
8178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8181 # Now check the MPFR library.
8182 if test x
"$have_gmp" = xyes
; then
8184 LIBS
="$LIBS $gmplibs"
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8186 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8187 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8200 mpfr_atan2 (n, n, x, MPFR_RNDN);
8201 mpfr_erfc (n, x, MPFR_RNDN);
8202 mpfr_subnormalize (x, t, MPFR_RNDN);
8206 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8207 mpc_cosh (c, c, MPC_RNDNN);
8208 mpc_pow (c, c, c, MPC_RNDNN);
8209 mpc_acosh (c, c, MPC_RNDNN);
8216 if ac_fn_c_try_link
"$LINENO"; then :
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8218 $as_echo "yes" >&6; }
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }; have_gmp
=no
8223 rm -f core conftest.err conftest.
$ac_objext \
8224 conftest
$ac_exeext conftest.
$ac_ext
8228 CFLAGS
="$saved_CFLAGS"
8230 # The library versions listed in the error message below should match
8231 # the HARD-minimums enforced above.
8232 if test x
$have_gmp != xyes
; then
8233 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8234 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8235 their locations. Source code for these libraries can be found at
8236 their respective hosting sites as well as at
8237 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8238 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8239 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8240 make sure that you have installed both the libraries and the header
8241 files. They may be located in separate packages." "$LINENO" 5
8245 # Flags needed for both GMP, MPFR and/or MPC.
8253 # Libraries to use for stage1 or when not bootstrapping.
8255 # Check whether --with-stage1-libs was given.
8256 if test "${with_stage1_libs+set}" = set; then :
8257 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8260 stage1_libs
=$withval
8268 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8269 # default is yes if gcc is being built; no otherwise. The reason for
8270 # this default is that gdb is sometimes linked against GNU Source
8271 # Highlight, which is a shared library that uses C++ exceptions. In
8272 # this case, -static-libstdc++ will cause crashes.
8274 # Check whether --with-static-standard-libraries was given.
8275 if test "${with_static_standard_libraries+set}" = set; then :
8276 withval
=$with_static_standard_libraries;
8278 with_static_standard_libraries
=auto
8281 if test "$with_static_standard_libraries" = auto
; then
8282 with_static_standard_libraries
=$have_compiler
8285 # Linker flags to use for stage1 or when not bootstrapping.
8287 # Check whether --with-stage1-ldflags was given.
8288 if test "${with_stage1_ldflags+set}" = set; then :
8289 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8292 stage1_ldflags
=$withval
8296 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8297 # if supported. But if the user explicitly specified the libraries to use,
8298 # trust that they are doing what they want.
8299 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8300 -a "$have_static_libs" = yes; then
8301 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8307 # Libraries to use for stage2 and later builds.
8309 # Check whether --with-boot-libs was given.
8310 if test "${with_boot_libs+set}" = set; then :
8311 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8314 poststage1_libs
=$withval
8322 # Linker flags to use for stage2 and later builds.
8324 # Check whether --with-boot-ldflags was given.
8325 if test "${with_boot_ldflags+set}" = set; then :
8326 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8329 poststage1_ldflags
=$withval
8333 # In stages 2 and 3, default to linking libstdc++ and libgcc
8334 # statically. But if the user explicitly specified the libraries to
8335 # use, trust that they are doing what they want.
8336 if test "$poststage1_libs" = ""; then
8337 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8343 # GCC GRAPHITE dependency isl.
8344 # Basic setup is inlined here, actual checks are in config/isl.m4
8347 # Check whether --with-isl was given.
8348 if test "${with_isl+set}" = set; then :
8353 # Treat --without-isl as a request to disable
8354 # GRAPHITE support and skip all following checks.
8355 if test "x$with_isl" != "xno"; then
8359 # Check whether --with-isl-include was given.
8360 if test "${with_isl_include+set}" = set; then :
8361 withval
=$with_isl_include;
8365 # Check whether --with-isl-lib was given.
8366 if test "${with_isl_lib+set}" = set; then :
8367 withval
=$with_isl_lib;
8371 # Check whether --enable-isl-version-check was given.
8372 if test "${enable_isl_version_check+set}" = set; then :
8373 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8375 ENABLE_ISL_CHECK
=yes
8379 # Initialize isllibs and islinc.
8388 isllibs
="-L$with_isl/lib"
8389 islinc
="-I$with_isl/include"
8392 if test "x${with_isl_include}" != x
; then
8393 islinc
="-I$with_isl_include"
8395 if test "x${with_isl_lib}" != x
; then
8396 isllibs
="-L$with_isl_lib"
8398 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8399 && test -d ${srcdir}/isl
; then
8400 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8401 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8404 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8407 isllibs
="${isllibs} -lisl"
8411 if test "${ENABLE_ISL_CHECK}" = yes ; then
8412 _isl_saved_CFLAGS
=$CFLAGS
8413 _isl_saved_LDFLAGS
=$LDFLAGS
8414 _isl_saved_LIBS
=$LIBS
8416 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8417 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8418 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8421 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8423 /* end confdefs.h. */
8424 #include <isl/schedule.h>
8428 isl_options_set_schedule_serialize_sccs (NULL, 0);
8433 if ac_fn_c_try_link
"$LINENO"; then :
8438 rm -f core conftest.err conftest.
$ac_objext \
8439 conftest
$ac_exeext conftest.
$ac_ext
8440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8441 $as_echo "$gcc_cv_isl" >&6; }
8443 if test "${gcc_cv_isl}" = no
; then
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8445 $as_echo "required isl version is 0.15 or later" >&6; }
8448 CFLAGS
=$_isl_saved_CFLAGS
8449 LDFLAGS
=$_isl_saved_LDFLAGS
8450 LIBS
=$_isl_saved_LIBS
8458 if test "x${with_isl}" = xno
; then
8459 graphite_requested
=no
8460 elif test "x${with_isl}" != x \
8461 ||
test "x${with_isl_include}" != x \
8462 ||
test "x${with_isl_lib}" != x
; then
8463 graphite_requested
=yes
8465 graphite_requested
=no
8470 if test "${gcc_cv_isl}" = no
; then
8475 if test "${graphite_requested}" = yes \
8476 && test "x${isllibs}" = x \
8477 && test "x${islinc}" = x
; then
8479 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8485 # If the isl check failed, disable builds of in-tree variant of isl
8486 if test "x$with_isl" = xno ||
8487 test "x$gcc_cv_isl" = xno
; then
8488 noconfigdirs
="$noconfigdirs isl"
8495 # Check for LTO support.
8496 # Check whether --enable-lto was given.
8497 if test "${enable_lto+set}" = set; then :
8498 enableval
=$enable_lto; enable_lto
=$enableval
8500 enable_lto
=yes; default_enable_lto
=yes
8509 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8510 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8511 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8520 if test $target_elf = yes; then :
8521 # ELF platforms build the lto-plugin always.
8522 build_lto_plugin
=yes
8525 if test x
"$default_enable_lto" = x
"yes" ; then
8527 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8528 # On other non-ELF platforms, LTO has yet to be validated.
8532 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8533 # It would also be nice to check the binutils support, but we don't
8534 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8535 # warn during gcc/ subconfigure; unless you're bootstrapping with
8536 # -flto it won't be needed until after installation anyway.
8538 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8539 *) if test x
"$enable_lto" = x
"yes"; then
8540 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8545 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8546 # Build it unless LTO was explicitly disabled.
8548 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8555 # Check whether --enable-linker-plugin-configure-flags was given.
8556 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8557 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8559 extra_linker_plugin_configure_flags
=
8563 # Check whether --enable-linker-plugin-flags was given.
8564 if test "${enable_linker_plugin_flags+set}" = set; then :
8565 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8567 extra_linker_plugin_flags
=
8572 # Enable --enable-host-shared.
8573 # Checked early to determine whether jit is an 'all' language
8574 # Check whether --enable-host-shared was given.
8575 if test "${enable_host_shared+set}" = set; then :
8576 enableval
=$enable_host_shared; host_shared
=$enableval
8578 x86_64-
*-darwin* | aarch64-
*-darwin*)
8579 if test x
$host_shared != xyes
; then
8580 # PIC is the default, and actually cannot be switched off.
8581 echo configure.ac
: warning
: PIC code is required
for the configured target
, host-shared setting ignored.
1>&2
8588 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8589 *) host_shared
=no
;;
8595 # By default, C and C++ are the only stage 1 languages.
8596 stage1_languages
=,c
,
8598 # Target libraries that we bootstrap.
8599 bootstrap_target_libs
=,target-libgcc
,
8601 # Figure out what language subdirectories are present.
8602 # Look if the user specified --enable-languages="..."; if not, use
8603 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8605 # NB: embedded tabs in this IF block -- do not untabify
8606 if test -d ${srcdir}/gcc
; then
8607 if test x
"${enable_languages+set}" != xset
; then
8608 if test x
"${LANGUAGES+set}" = xset
; then
8609 enable_languages
="${LANGUAGES}"
8610 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8612 enable_languages
=default
8615 if test x
"${enable_languages}" = x ||
8616 test x
"${enable_languages}" = xyes
;
8618 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8622 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8624 # 'f95' is the old name for the 'fortran' language. We issue a warning
8625 # and make the substitution.
8626 case ,${enable_languages}, in
8628 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8629 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8633 # If bootstrapping, C++ must be enabled.
8634 case ",$enable_languages,:$enable_bootstrap" in
8637 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8638 enable_languages
="${enable_languages},c++"
8640 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8645 # First scan to see if an enabled language requires some other language.
8646 # We assume that a given config-lang.in will list all the language
8647 # front ends it requires, even if some are required indirectly.
8648 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8649 case ${lang_frag} in
8651 # The odd quoting in the next line works around
8652 # an apparent bug in bash 1.12 on linux.
8653 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8655 # From the config-lang.in, get $language, $lang_requires, and
8656 # $lang_requires_boot_languages.
8659 lang_requires_boot_languages
=
8660 # set srcdir during sourcing lang_frag to the gcc dir.
8661 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8662 # polutes this shell
8663 saved_srcdir
=${srcdir}
8664 srcdir
=${srcdir}/gcc .
${lang_frag}
8665 srcdir
=${saved_srcdir}
8666 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8667 case ,${enable_languages}, in
8672 echo " \`$other' language required by \`$language'; enabling" 1>&2
8673 enable_languages
="${enable_languages},${other}"
8677 for other
in ${lang_requires_boot_languages} ; do
8678 if test "$other" != "c"; then
8679 case ,${enable_stage1_languages}, in
8684 case ,${enable_languages}, in
8686 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8687 enable_stage1_languages
="$enable_stage1_languages,${other}"
8698 new_enable_languages
=,c
,
8700 # If LTO is enabled, add the LTO front end.
8701 if test "$enable_lto" = "yes" ; then
8702 case ,${enable_languages}, in
8704 *) enable_languages
="${enable_languages},lto" ;;
8706 if test "${build_lto_plugin}" = "yes" ; then
8707 configdirs
="$configdirs lto-plugin"
8711 # If we're building an offloading compiler, add the LTO front end.
8712 if test x
"$enable_as_accelerator_for" != x
; then
8713 case ,${enable_languages}, in
8715 *) enable_languages
="${enable_languages},lto" ;;
8719 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8720 potential_languages
=,c
,
8722 enabled_target_libs
=
8723 disabled_target_libs
=
8725 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8726 case ${lang_frag} in
8728 # The odd quoting in the next line works around
8729 # an apparent bug in bash 1.12 on linux.
8730 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8732 # From the config-lang.in, get $language, $target_libs,
8733 # $lang_dirs, $boot_language, and $build_by_default
8739 build_by_default
=yes
8740 # set srcdir during sourcing. See above about save & restore
8741 saved_srcdir
=${srcdir}
8742 srcdir
=${srcdir}/gcc .
${lang_frag}
8743 srcdir
=${saved_srcdir}
8744 if test x
${language} = x
; then
8745 echo "${lang_frag} doesn't set \$language." 1>&2
8749 if test "$language" = "c++"; then
8754 # C is always enabled, so no need to add it again
8755 if test "$language" != "c"; then
8756 case ,${enable_languages}, in
8758 # Language was explicitly selected; include it
8762 # All languages are enabled
8766 # 'default' was selected, select it if it is a default language
8767 add_this_lang
=${build_by_default}
8772 # Disable languages that need other directories if these aren't available.
8773 for i
in $subdir_requires; do
8774 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8775 case ${add_this_lang} in
8777 # Specifically requested language; tell them.
8778 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8782 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8783 add_this_lang
=unsupported
8787 add_this_lang
=unsupported
8792 # Disable Ada if no preexisting GNAT is available.
8793 case ${add_this_lang}:${language}:${have_gnat} in
8795 # Specifically requested language; tell them.
8796 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8800 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8801 add_this_lang
=unsupported
8805 add_this_lang
=unsupported
8809 # Disable D if no preexisting GDC is available.
8810 case ${add_this_lang}:${language}:${have_gdc} in
8812 # Specifically requested language; tell them.
8813 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8817 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8818 add_this_lang
=unsupported
8822 add_this_lang
=unsupported
8826 # Disable jit if -enable-host-shared not specified
8827 # but not if building for Mingw. All code in Windows
8828 # is position independent code (PIC).
8832 case ${add_this_lang}:${language}:${host_shared} in
8834 # PR jit/64780: explicitly specify --enable-host-shared
8836 Enabling language \"jit\" requires --enable-host-shared.
8838 --enable-host-shared typically slows the rest of the compiler down by
8839 a few %, so you must explicitly enable it.
8841 If you want to build both the jit and the regular compiler, it is often
8842 best to do this via two separate configure/builds, in separate
8843 directories, to avoid imposing the performance cost of
8844 --enable-host-shared on the regular compiler." "$LINENO" 5
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8848 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8849 add_this_lang
=unsupported
8853 add_this_lang
=unsupported
8859 # Disable a language that is unsupported by the target.
8860 case "${add_this_lang}: $unsupported_languages " in
8864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8865 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8866 add_this_lang
=unsupported
8870 case $add_this_lang in
8872 # Remove language-dependent dirs.
8873 disabled_target_libs
="$disabled_target_libs $target_libs"
8874 noconfigdirs
="$noconfigdirs $lang_dirs"
8877 # Remove language-dependent dirs; still show language as supported.
8878 disabled_target_libs
="$disabled_target_libs $target_libs"
8879 noconfigdirs
="$noconfigdirs $lang_dirs"
8880 potential_languages
="${potential_languages}${language},"
8883 new_enable_languages
="${new_enable_languages}${language},"
8884 potential_languages
="${potential_languages}${language},"
8885 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
8886 enabled_target_libs
="$enabled_target_libs $target_libs"
8887 case "${boot_language}:,$enable_stage1_languages," in
8888 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
8889 # Add to (comma-separated) list of stage 1 languages.
8890 case ",$stage1_languages," in
8891 *,$language,* |
,yes, |
,all
,) ;;
8892 *) stage1_languages
="${stage1_languages}${language}," ;;
8894 # We need to bootstrap any supporting libraries.
8895 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8904 # Add target libraries which are only needed for disabled languages
8906 if test -n "$disabled_target_libs"; then
8907 for dir
in $disabled_target_libs; do
8908 case " $enabled_target_libs " in
8910 *) noconfigdirs
="$noconfigdirs $dir" ;;
8915 # Check whether --enable-stage1-languages was given.
8916 if test "${enable_stage1_languages+set}" = set; then :
8917 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8919 # Set it to something that will have no effect in the loop below
8920 enable_stage1_languages
=c
;;
8922 enable_stage1_languages
=`echo $new_enable_languages | \
8923 sed -e "s/^,//" -e "s/,$//" ` ;;
8925 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
8926 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8929 # Add "good" languages from enable_stage1_languages to stage1_languages,
8930 # while "bad" languages go in missing_languages. Leave no duplicates.
8931 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8932 case $potential_languages in
8934 case $stage1_languages in
8936 *) stage1_languages
="$stage1_languages$i," ;;
8939 case $missing_languages in
8941 *) missing_languages
="$missing_languages$i," ;;
8948 # Remove leading/trailing commas that were added for simplicity
8949 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8950 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8951 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8952 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8954 if test "x$missing_languages" != x
; then
8956 The following requested languages could not be built: ${missing_languages}
8957 Supported languages are: ${potential_languages}" "$LINENO" 5
8959 if test "x$new_enable_languages" != "x$enable_languages"; then
8960 echo The following languages will be built
: ${new_enable_languages}
8961 enable_languages
="$new_enable_languages"
8965 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8968 # Handle --disable-<component> generically.
8969 for dir
in $configdirs $build_configdirs $target_configdirs ; do
8970 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8971 varname
=`echo $dirname | sed -e s/+/_/g`
8972 if eval test x\
${enable_${varname}} "=" xno
; then
8973 noconfigdirs
="$noconfigdirs $dir"
8977 # Check for Boehm's garbage collector
8978 # Check whether --enable-objc-gc was given.
8979 if test "${enable_objc_gc+set}" = set; then :
8980 enableval
=$enable_objc_gc;
8984 # Check whether --with-target-bdw-gc was given.
8985 if test "${with_target_bdw_gc+set}" = set; then :
8986 withval
=$with_target_bdw_gc;
8990 # Check whether --with-target-bdw-gc-include was given.
8991 if test "${with_target_bdw_gc_include+set}" = set; then :
8992 withval
=$with_target_bdw_gc_include;
8996 # Check whether --with-target-bdw-gc-lib was given.
8997 if test "${with_target_bdw_gc_lib+set}" = set; then :
8998 withval
=$with_target_bdw_gc_lib;
9002 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9004 $as_echo_n "checking for bdw garbage collector... " >&6; }
9005 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9007 $as_echo "using bdw-gc in default locations" >&6; }
9009 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9010 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9011 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9012 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9015 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9020 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9021 case ,${enable_languages}, in
9023 # Disable libitm, libsanitizer if we're not building libstdc++
9024 case "${noconfigdirs}" in
9025 *target-libstdc
++-v3*)
9026 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9032 noconfigdirs
="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9036 # If gcc/ is not in the source tree then we'll not be building a
9037 # target compiler, assume in that case we don't want to build any
9038 # target libraries or tools.
9040 # This was added primarily for the benefit for binutils-gdb who reuse
9041 # this configure script, but don't always have target tools available.
9042 if test ! -d ${srcdir}/gcc
; then
9043 skipdirs
="${skipdirs} ${target_configdirs}"
9046 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9047 # $build_configdirs and $target_configdirs.
9048 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9051 for dir
in .
$skipdirs $noconfigdirs ; do
9052 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9053 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9054 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9055 if test -r $srcdir/$dirname/configure
; then
9056 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9059 notsupp
="$notsupp $dir"
9063 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9064 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9065 if test -r $srcdir/$dirname/configure
; then
9066 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9069 notsupp
="$notsupp $dir"
9073 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9074 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9075 if test -r $srcdir/$dirname/configure
; then
9076 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9079 notsupp
="$notsupp $dir"
9085 # Quietly strip out all directories which aren't configurable in this tree.
9086 # This relies on all configurable subdirectories being autoconfiscated, which
9088 build_configdirs_all
="$build_configdirs"
9090 for i
in ${build_configdirs_all} ; do
9091 j
=`echo $i | sed -e s/build-//g`
9092 if test -f ${srcdir}/$j/configure
; then
9093 build_configdirs
="${build_configdirs} $i"
9097 configdirs_all
="$configdirs"
9099 for i
in ${configdirs_all} ; do
9100 if test -f ${srcdir}/$i/configure
; then
9101 configdirs
="${configdirs} $i"
9105 target_configdirs_all
="$target_configdirs"
9107 for i
in ${target_configdirs_all} ; do
9108 j
=`echo $i | sed -e s/target-//g`
9109 if test -f ${srcdir}/$j/configure
; then
9110 target_configdirs
="${target_configdirs} $i"
9114 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9115 # so we have to add it after the preceding checks.
9116 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9118 case " $configdirs " in
9120 # If we can build libiberty, we can also build libiberty-linker-plugin.
9121 configdirs
="$configdirs libiberty-linker-plugin"
9122 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9123 --with-libiberty=../libiberty-linker-plugin";;
9125 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9129 # Sometimes we have special requirements for the host libiberty.
9130 extra_host_libiberty_configure_flags
=
9131 case " $configdirs " in
9132 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9133 # When these are to be built as shared libraries, the same applies to
9135 extra_host_libiberty_configure_flags
=--enable-shared
9140 # Sometimes we have special requirements for the host zlib.
9141 extra_host_zlib_configure_flags
=
9142 case " $configdirs " in
9144 # When bfd is to be built as a shared library, the same applies to
9146 if test "$enable_shared" = "yes"; then
9147 extra_host_zlib_configure_flags
=--enable-host-shared
9153 # Produce a warning message for the subdirs we can't configure.
9154 # This isn't especially interesting in the Cygnus tree, but in the individual
9155 # FSF releases, it's important to let people know when their machine isn't
9156 # supported by the one or two programs in a package.
9158 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9159 # If $appdirs is non-empty, at least one of those directories must still
9160 # be configured, or we error out. (E.g., if the gas release supports a
9161 # specified target in some subdirs but not the gas subdir, we shouldn't
9162 # pretend that all is well.)
9163 if test -n "$appdirs" ; then
9164 for dir
in $appdirs ; do
9165 if test -r $dir/Makefile.
in ; then
9166 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9170 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9176 if test -n "$appdirs" ; then
9177 echo "*** This configuration is not supported by this package." 1>&2
9181 # Okay, some application will build, or we don't care to check. Still
9182 # notify of subdirs not getting built.
9183 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9184 echo " ${notsupp}" 1>&2
9185 echo " (Any other directories should still work fine.)" 1>&2
9193 # To find our prefix, in gcc_cv_tool_prefix.
9195 # The user is always right.
9196 if test "${PATH_SEPARATOR+set}" != set; then
9197 echo "#! /bin/sh" >conf$$.sh
9198 echo "exit 0" >>conf$$.sh
9200 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9209 get_gcc_base_ver
="cat"
9211 # Check whether --with-gcc-major-version-only was given.
9212 if test "${with_gcc_major_version_only+set}" = set; then :
9213 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9214 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9224 if test "x$exec_prefix" = xNONE
; then
9225 if test "x$prefix" = xNONE
; then
9226 gcc_cv_tool_prefix
=$ac_default_prefix
9228 gcc_cv_tool_prefix
=$prefix
9231 gcc_cv_tool_prefix
=$exec_prefix
9234 # If there is no compiler in the tree, use the PATH only. In any
9235 # case, if there is no compiler in the tree nobody should use
9236 # AS_FOR_TARGET and LD_FOR_TARGET.
9237 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9238 if test x
$with_gcc_major_version_only = xyes
; then
9239 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9241 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9243 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9244 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9245 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9246 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9247 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9248 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9253 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9254 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9262 # Check whether --with-build-sysroot was given.
9263 if test "${with_build_sysroot+set}" = set; then :
9264 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9265 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9268 SYSROOT_CFLAGS_FOR_TARGET
=
9274 # Check whether --with-debug-prefix-map was given.
9275 if test "${with_debug_prefix_map+set}" = set; then :
9276 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9277 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9278 for debug_map
in $withval; do
9279 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9283 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9288 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9289 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9290 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9291 # We want to ensure that TARGET libraries (which we know are built with
9292 # gcc) are built with "-O2 -g", so include those options when setting
9293 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9294 if test "x$CFLAGS_FOR_TARGET" = x
; then
9295 if test "x${is_cross_compiler}" = xyes
; then
9296 CFLAGS_FOR_TARGET
="-g -O2"
9298 CFLAGS_FOR_TARGET
=$CFLAGS
9301 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9304 *" -g "* |
*" -g3 "*) ;;
9305 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9311 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9312 if test "x${is_cross_compiler}" = xyes
; then
9313 CXXFLAGS_FOR_TARGET
="-g -O2"
9315 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9316 case " $CXXFLAGS " in
9318 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9320 case " $CXXFLAGS " in
9321 *" -g "* |
*" -g3 "*) ;;
9322 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9330 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9331 # the named directory are copied to $(tooldir)/sys-include.
9332 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9333 if test x
${is_cross_compiler} = xno
; then
9334 echo 1>&2 '***' --with-headers is only supported when cross compiling
9337 if test x
"${with_headers}" != xyes
; then
9338 x
=${gcc_cv_tool_prefix}
9339 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9343 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9344 # the name directories are copied to $(tooldir)/lib. Multiple directories
9346 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9347 if test x
${is_cross_compiler} = xno
; then
9348 echo 1>&2 '***' --with-libs is only supported when cross compiling
9351 if test x
"${with_libs}" != xyes
; then
9352 # Copy the libraries in reverse order, so that files in the first named
9353 # library override files in subsequent libraries.
9354 x
=${gcc_cv_tool_prefix}
9355 for l
in ${with_libs}; do
9356 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9361 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9363 # This is done by determining whether or not the appropriate directory
9364 # is available, and by checking whether or not specific configurations
9365 # have requested that this magic not happen.
9367 # The command line options always override the explicit settings in
9368 # configure.ac, and the settings in configure.ac override this magic.
9370 # If the default for a toolchain is to use GNU as and ld, and you don't
9371 # want to do that, then you should use the --without-gnu-as and
9372 # --without-gnu-ld options for the configure script. Similarly, if
9373 # the default is to use the included zlib and you don't want to do that,
9374 # you should use the --with-system-zlib option for the configure script.
9376 if test x
${use_gnu_as} = x
&&
9377 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9379 extra_host_args
="$extra_host_args --with-gnu-as"
9382 if test x
${use_gnu_ld} = x
&&
9383 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9385 extra_host_args
="$extra_host_args --with-gnu-ld"
9388 if test x
${use_included_zlib} = x
&&
9389 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9392 with_system_zlib
=yes
9393 extra_host_args
="$extra_host_args --with-system-zlib"
9396 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9397 # can detect this case.
9399 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9401 extra_host_args
="$extra_host_args --with-newlib"
9404 # Handle ${copy_dirs}
9405 set fnord
${copy_dirs}
9407 while test $# != 0 ; do
9408 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9411 echo Copying
$1 to
$2
9413 # Use the install script to create the directory and all required
9414 # parent directories.
9415 if test -d $2 ; then
9419 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9422 # Copy the directory, assuming we have tar.
9423 # FIXME: Should we use B in the second tar? Not all systems support it.
9424 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9426 # It is the responsibility of the user to correctly adjust all
9427 # symlinks. If somebody can figure out how to handle them correctly
9428 # here, feel free to add the code.
9435 # Determine a target-dependent exec_prefix that the installed
9436 # gcc will search in. Keep this list sorted by triplet, with
9437 # the *-*-osname triplets last.
9440 i
[34567]86-pc-msdosdjgpp*)
9441 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9446 md_exec_prefix
=/usr
/ccs
/bin
9450 extra_arflags_for_target
=
9451 extra_nmflags_for_target
=
9452 extra_ranlibflags_for_target
=
9453 target_makefile_frag
=/dev
/null
9456 target_makefile_frag
="config/mt-spu"
9458 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9459 target_makefile_frag
="config/mt-sde"
9461 mipsisa
*-*-elfoabi*)
9462 target_makefile_frag
="config/mt-mips-elfoabi"
9464 mips
*-*-*linux
* | mips
*-*-gnu*)
9465 target_makefile_frag
="config/mt-mips-gnu"
9468 target_makefile_frag
="config/mt-nios2-elf"
9471 target_makefile_frag
="config/mt-android"
9473 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9474 target_makefile_frag
="config/mt-gnu"
9476 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9477 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9478 # commands to handle both 32-bit and 64-bit objects. These flags are
9479 # harmless if we're using GNU nm or ar.
9480 extra_arflags_for_target
=" -X32_64"
9481 extra_nmflags_for_target
=" -B -X32_64"
9485 alphaieee_frag
=/dev
/null
9488 # This just makes sure to use the -mieee option to build target libs.
9489 # This should probably be set individually by each library.
9490 alphaieee_frag
="config/mt-alphaieee"
9494 # If --enable-target-optspace always use -Os instead of -O2 to build
9495 # the target libraries, similarly if it is not specified, use -Os
9496 # on selected platforms.
9497 ospace_frag
=/dev
/null
9498 case "${enable_target_optspace}:${target}" in
9500 ospace_frag
="config/mt-ospace"
9503 ospace_frag
="config/mt-d30v"
9505 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9506 ospace_frag
="config/mt-ospace"
9511 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9515 # Some systems (e.g., one of the i386-aix systems the gas testers are
9516 # using) don't handle "\$" correctly, so don't use it here.
9517 tooldir
='${exec_prefix}'/${target_noncanonical}
9518 build_tooldir
=${tooldir}
9520 # Create a .gdbinit file which runs the one in srcdir
9521 # and tells GDB to look there for source files.
9523 if test -r ${srcdir}/.gdbinit
; then
9526 *) cat > .
/.gdbinit
<<EOF
9530 source ${srcdir}/.gdbinit
9536 # Make sure that the compiler is able to generate an executable. If it
9537 # can't, we are probably in trouble. We don't care whether we can run the
9538 # executable--we might be using a cross compiler--we only care whether it
9539 # can be created. At this point the main configure script has set CC.
9541 echo "int main () { return 0; }" > conftest.c
9542 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9543 if test $?
= 0 ; then
9544 if test -s conftest ||
test -s conftest.exe
; then
9550 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9551 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9558 # Decide which environment variable is used to find dynamic libraries.
9560 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9561 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9562 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9563 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9566 # On systems where the dynamic library environment variable is PATH,
9567 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9568 # built executables to PATH.
9569 if test "$RPATH_ENVVAR" = PATH
; then
9570 GCC_SHLIB_SUBDIR
=/shlib
9575 # Adjust the toplevel makefile according to whether bootstrap was selected.
9576 case $enable_bootstrap in
9578 bootstrap_suffix
=bootstrap
9579 BUILD_CONFIG
=bootstrap-debug
9582 bootstrap_suffix
=no-bootstrap
9587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9588 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9591 # Check whether --with-build-config was given.
9592 if test "${with_build_config+set}" = set; then :
9593 withval
=$with_build_config; case $with_build_config in
9594 yes) with_build_config
= ;;
9595 no
) with_build_config
= BUILD_CONFIG
= ;;
9600 if test "x${with_build_config}" != x
; then
9601 BUILD_CONFIG
=$with_build_config
9603 case $BUILD_CONFIG in
9605 if echo "int f (void) { return 0; }" > conftest.c
&&
9606 ${CC} -c conftest.c
&&
9607 mv conftest.o conftest.o.g0
&&
9608 ${CC} -c -g conftest.c
&&
9609 mv conftest.o conftest.o.g
&&
9610 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9615 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9620 $as_echo "$BUILD_CONFIG" >&6; }
9623 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9625 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9626 # Check whether --enable-vtable-verify was given.
9627 if test "${enable_vtable_verify+set}" = set; then :
9628 enableval
=$enable_vtable_verify; case "$enableval" in
9629 yes) enable_vtable_verify
=yes ;;
9630 no
) enable_vtable_verify
=no
;;
9631 *) enable_vtable_verify
=no
;;
9634 enable_vtable_verify
=no
9637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9638 $as_echo "$enable_vtable_verify" >&6; }
9640 # Record target_configdirs and the configure arguments for target and
9641 # build configuration in Makefile.
9642 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9643 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9644 bootstrap_fixincludes
=no
9646 # If we are building libgomp, bootstrap it.
9647 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9648 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9651 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9652 # or bootstrap-ubsan, bootstrap it.
9653 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9654 case "$BUILD_CONFIG" in
9655 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9656 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9657 bootstrap_fixincludes
=yes
9662 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9663 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9664 test "$enable_vtable_verify" != no
; then
9665 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9668 # If we are building libatomic and the list of enabled languages includes the
9669 # D frontend, bootstrap it.
9670 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9671 case ,${enable_languages}, in
9673 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
9678 # Determine whether gdb needs tk/tcl or not.
9679 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9680 # and in that case we want gdb to be built without tk. Ugh!
9681 # In fact I believe gdb is the *only* package directly dependent on tk,
9682 # so we should be able to put the 'maybe's in unconditionally and
9683 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9684 # 100% sure that that's safe though.
9686 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9687 case "$enable_gdbtk" in
9691 GDB_TK
="${gdb_tk}" ;;
9693 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9694 # distro. Eventually someone will fix this and move Insight, nee
9695 # gdbtk to a separate directory.
9696 if test -d ${srcdir}/gdb
/gdbtk
; then
9703 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9704 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9706 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9707 # else does, only include them if one of these is built. The Makefile
9708 # provides the ordering, so it's enough here to add to the list.
9709 case " ${configdirs} " in
9711 configdirs
="${configdirs} gnulib gdbsupport"
9714 configdirs
="${configdirs} gnulib gdbsupport"
9717 configdirs
="${configdirs} gnulib"
9721 # Strip out unwanted targets.
9723 # While at that, we remove Makefiles if we were started for recursive
9724 # configuration, so that the top-level Makefile reconfigures them,
9725 # like we used to do when configure itself was recursive.
9727 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9728 # but now we're fixing up the Makefile ourselves with the additional
9729 # commands passed to AC_CONFIG_FILES. Use separate variables
9730 # extrasub-{build,host,target} not because there is any reason to split
9731 # the substitutions up that way, but only to remain below the limit of
9732 # 99 commands in a script, for HP-UX sed.
9734 # Do not nest @if/@endif or @unless/@endunless pairs, because
9735 # configure will not warn you at all.
9737 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9738 yes:yes:*\ gold\
*:*,c
++,*) ;;
9739 yes:yes:*\ gold\
*:*)
9740 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9745 for module
in ${build_configdirs} ; do
9746 if test -z "${no_recursion}" \
9747 && test -f ${build_subdir}/${module}/Makefile
; then
9748 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9749 rm -f ${build_subdir}/${module}/Makefile
9751 extrasub_build
="$extrasub_build
9752 /^@if build-$module\$/d
9753 /^@endif build-$module\$/d
9754 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9755 /^@if build-$module-$bootstrap_suffix\$/d
9756 /^@endif build-$module-$bootstrap_suffix\$/d
9757 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9760 for module
in ${configdirs} ; do
9761 if test -z "${no_recursion}"; then
9762 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9763 if test -f ${file}; then
9764 echo 1>&2 "*** removing ${file} to force reconfigure"
9769 case ${module},${bootstrap_fixincludes} in
9770 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9771 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9773 extrasub_host
="$extrasub_host
9775 /^@endif $module\$/d
9776 /^@unless $module\$/,/^@endunless $module\$/d
9777 /^@if $module-$host_bootstrap_suffix\$/d
9778 /^@endif $module-$host_bootstrap_suffix\$/d
9779 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9782 for module
in ${target_configdirs} ; do
9783 if test -z "${no_recursion}" \
9784 && test -f ${target_subdir}/${module}/Makefile
; then
9785 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9786 rm -f ${target_subdir}/${module}/Makefile
9789 # We only bootstrap target libraries listed in bootstrap_target_libs.
9790 case $bootstrap_target_libs in
9791 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9792 *) target_bootstrap_suffix
=no-bootstrap
;;
9795 extrasub_target
="$extrasub_target
9796 /^@if target-$module\$/d
9797 /^@endif target-$module\$/d
9798 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9799 /^@if target-$module-$target_bootstrap_suffix\$/d
9800 /^@endif target-$module-$target_bootstrap_suffix\$/d
9801 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9804 # Do the final fixup along with target modules.
9805 extrasub_target
="$extrasub_target
9810 if test "$enable_pgo_build" != "no"; then
9811 extrasub_build
="$extrasub_build
9813 /^@endif pgo-build\$/d"
9816 # Create the serialization dependencies. This uses a temporary file.
9818 # Check whether --enable-serial-configure was given.
9819 if test "${enable_serial_configure+set}" = set; then :
9820 enableval
=$enable_serial_configure;
9824 case ${enable_serial_configure} in
9826 enable_serial_build_configure
=yes
9827 enable_serial_host_configure
=yes
9828 enable_serial_target_configure
=yes
9832 # These force 'configure's to be done one at a time, to avoid problems
9833 # with contention over a shared config.cache.
9835 echo '# serdep.tmp' > serdep.tmp
9837 test "x${enable_serial_build_configure}" = xyes
&&
9838 for item
in ${build_configdirs} ; do
9841 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
9846 test "x${enable_serial_host_configure}" = xyes
&&
9847 for item
in ${configdirs} ; do
9850 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
9855 test "x${enable_serial_target_configure}" = xyes
&&
9856 for item
in ${target_configdirs} ; do
9859 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
9863 serialization_dependencies
=serdep.tmp
9866 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9867 # target, nonopt, and variable assignments. These are the ones we
9868 # might not want to pass down to subconfigures. The exception being
9869 # --cache-file=/dev/null, which is used to turn off the use of cache
9870 # files altogether, and which should be passed on to subconfigures.
9871 # Also strip program-prefix, program-suffix, and program-transform-name,
9872 # so that we can pass down a consistent program-transform-name.
9877 eval "set -- $ac_configure_args"
9880 if test X
"$skip_next" = X
"yes"; then
9884 if test X
"$keep_next" = X
"yes"; then
9887 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9889 baseargs
="$baseargs '$ac_arg'"
9890 tbaseargs
="$tbaseargs '$ac_arg'"
9895 # Handle separated arguments. Based on the logic generated by
9898 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
9899 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
9900 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
9901 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
9915 --with-* |
--without-*)
9916 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9920 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
9923 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
9932 mpc | mpfr | gmp | isl
)
9933 # If we're processing --with-$lib, --with-$lib-include or
9934 # --with-$lib-lib, for one of the libs above, and target is
9935 # different from host, don't pass the current argument to any
9936 # target library's configure.
9937 if test x
$is_cross_compiler = xyes
; then
9946 --cache-file=/dev
/null | \
9947 -cache-file=/dev
/null
)
9948 # Handled here to avoid the test to skip args below.
9949 baseargs
="$baseargs '$ac_arg'"
9950 tbaseargs
="$tbaseargs '$ac_arg'"
9951 # Assert: $separate_arg should always be no.
9952 keep_next
=$separate_arg
9968 -program-prefix* | \
9969 -program-suffix* | \
9970 -program-transform-name* )
9971 skip_next
=$separate_arg
9975 # An option. Add it.
9978 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9980 baseargs
="$baseargs '$ac_arg'"
9981 if test X
"$skip_targ" = Xno
; then
9982 tbaseargs
="$tbaseargs '$ac_arg'"
9984 keep_next
=$separate_arg
9987 # Either a variable assignment, or a nonopt (triplet). Don't
9988 # pass it down; let the Makefile handle this.
9993 # Remove the initial space we just introduced and, as these will be
9994 # expanded by make, quote '$'.
9995 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9997 # Add in --program-transform-name, after --program-prefix and
9998 # --program-suffix have been applied to it. Autoconf has already
9999 # doubled dollar signs and backslashes in program_transform_name; we want
10000 # the backslashes un-doubled, and then the entire thing wrapped in single
10001 # quotes, because this will be expanded first by make and then by the shell.
10002 # Also, because we want to override the logic in subdir configure scripts to
10003 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10004 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10005 ${program_transform_name}
10007 gcc_transform_name
=`cat conftestsed.out`
10008 rm -f conftestsed.out
10009 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
10010 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10011 if test "$silent" = yes; then
10012 baseargs
="$baseargs --silent"
10013 tbaseargs
="$tbaseargs --silent"
10016 baseargs
="$baseargs --disable-option-checking"
10017 tbaseargs
="$tbaseargs --disable-option-checking"
10019 if test "$enable_year2038" = no
; then
10020 baseargs
="$baseargs --disable-year2038"
10021 tbaseargs
="$tbaseargs --disable-year2038"
10024 # Record and document user additions to sub configure arguments.
10029 # For the build-side libraries, we just need to pretend we're native,
10030 # and not use the same cache file. Multilibs are neither needed nor
10031 # desired. We can't even use the same cache file for all build-side
10032 # libraries, as they're compiled differently; some with C, some with
10033 # C++ or with different feature-enabling options.
10034 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
10036 # For host modules, accept cache file option, or specification as blank.
10037 case "${cache_file}" in
10039 cache_file_option
="" ;;
10040 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10041 cache_file_option
="--cache-file=${cache_file}" ;;
10043 cache_file_option
="--cache-file=../${cache_file}" ;;
10046 # Host dirs don't like to share a cache file either, horribly enough.
10047 # This seems to be due to autoconf 2.5x stupidity.
10048 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10050 target_configargs
="$target_configargs ${tbaseargs}"
10052 # Passing a --with-cross-host argument lets the target libraries know
10053 # whether they are being built with a cross-compiler or being built
10054 # native. However, it would be better to use other mechanisms to make the
10055 # sorts of decisions they want to make on this basis. Please consider
10056 # this option to be deprecated. FIXME.
10057 if test x
${is_cross_compiler} = xyes
; then
10058 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10061 # Special user-friendly check for native x86_64-linux build, if
10062 # multilib is not explicitly enabled.
10063 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10064 x86_64-
*linux
*:yes:$build:$build:)
10065 # Make sure we have a development environment that handles 32-bit
10067 echo "int main () { return 0; }" > conftest.c
10068 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10069 if test $?
= 0 ; then
10070 if test -s conftest ||
test -s conftest.exe
; then
10075 if test x
${dev64} != xyes
; then
10076 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
10081 # Default to --enable-multilib.
10082 if test x
${enable_multilib} = x
; then
10083 target_configargs
="--enable-multilib ${target_configargs}"
10086 # Pass --with-newlib if appropriate. Note that target_configdirs has
10087 # changed from the earlier setting of with_newlib.
10088 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10089 target_configargs
="--with-newlib ${target_configargs}"
10092 # Different target subdirs use different values of certain variables
10093 # (notably CXX). Worse, multilibs use *lots* of different values.
10094 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10095 # it doesn't automatically accept command-line overrides of them.
10096 # This means it's not safe for target subdirs to share a cache file,
10097 # which is disgusting, but there you have it. Hopefully this can be
10098 # fixed in future. It's still worthwhile to use a cache file for each
10099 # directory. I think.
10101 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10102 # We need to pass --target, as newer autoconf's requires consistency
10103 # for target_alias and gcc doesn't manage it consistently.
10104 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10107 case " $target_configdirs " in
10109 case " $target_configargs " in
10110 *" --with-newlib "*)
10113 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10117 # If we're not building GCC, don't discard standard headers.
10118 if test -d ${srcdir}/gcc
; then
10119 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10121 if test "${build}" != "${host}"; then
10122 # On Canadian crosses, CC_FOR_TARGET will have already been set
10123 # by `configure', so we won't have an opportunity to add -Bgcc/
10124 # to it. This is right: we don't want to search that directory
10125 # for binaries, but we want the header files in there, so add
10127 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10129 # Someone might think of using the pre-installed headers on
10130 # Canadian crosses, in case the installed compiler is not fully
10131 # compatible with the compiler being built. In this case, it
10132 # would be better to flag an error than risking having
10133 # incompatible object files being constructed. We can't
10134 # guarantee that an error will be flagged, but let's hope the
10135 # compiler will do it, when presented with incompatible header
10140 case "${target}-${is_cross_compiler}" in
10141 i
[3456789]86-*-linux*-no)
10142 # Here host == target, so we don't need to build gcc,
10143 # so we don't want to discard standard headers.
10144 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10147 # If we're building newlib, use its generic headers last, but search
10148 # for any libc-related directories first (so make it the last -B
10150 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10152 # If we're building libgloss, find the startup file, simulator library
10153 # and linker script.
10154 case " $target_configdirs " in
10156 # Look for startup file, simulator library and maybe linker script.
10157 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10158 # Look for libnosys.a in case the target needs it.
10159 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10160 # Most targets have the linker script in the source directory.
10161 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10172 x86_64-
*mingw
* |
*-w64-mingw*)
10173 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10174 # however, use a symlink named 'mingw' in ${prefix} .
10175 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10178 # MinGW can't be handled as Cygwin above since it does not use newlib.
10179 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'
10183 # Allow the user to override the flags for
10184 # our build compiler if desired.
10185 if test x
"${build}" = x
"${host}" ; then
10186 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10187 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10188 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10189 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10192 # On Canadian crosses, we'll be searching the right directories for
10193 # the previously-installed cross compiler, so don't bother to add
10194 # flags for directories within the install tree of the compiler
10195 # being built; programs in there won't even run.
10196 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10197 # Search for pre-installed headers if nothing else fits.
10198 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10201 if test "x
${use_gnu_ld}" = x &&
10202 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10203 # Arrange for us to find uninstalled linker scripts.
10204 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10207 # Search for other target-specific linker scripts and such.
10208 case "${target}" in
10210 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10212 # The VxWorks support for shared libraries is getting in
10213 # incrementally. Make sure it doesn't get activated implicitly:
10215 if test "${enable_shared-unset}" = unset ; then
10217 # So the build of libraries knows ...
10218 target_configargs="${target_configargs} --disable-shared"
10220 host_configargs="${host_configargs} --disable-shared"
10225 # Makefile fragments.
10226 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10228 eval fragval=\$$frag
10229 if test $fragval != /dev/null; then
10230 eval $frag=${srcdir}/$fragval
10238 # Miscellanea: directories, flags, etc.
10247 # Build module lists & subconfigure args.
10251 # Host module lists & subconfigure args.
10256 # Target module lists & subconfigure args.
10281 # Generate default definitions for YACC, M4, LEX and other programs that run
10282 # on the build machine. These are used if the Makefile can't locate these
10283 # programs in objdir.
10284 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10286 for ac_prog in 'bison -y' byacc yacc
10288 # Extract the first word of "$ac_prog", so it can be a program name with args.
10289 set dummy $ac_prog; ac_word=$2
10290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10291 $as_echo_n "checking
for $ac_word...
" >&6; }
10292 if ${ac_cv_prog_YACC+:} false; then :
10293 $as_echo_n "(cached
) " >&6
10295 if test -n "$YACC"; then
10296 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10299 for as_dir in $PATH
10302 test -z "$as_dir" && as_dir=.
10303 for ac_exec_ext in '' $ac_executable_extensions; do
10304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10305 ac_cv_prog_YACC="$ac_prog"
10306 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10315 YACC=$ac_cv_prog_YACC
10316 if test -n "$YACC"; then
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10318 $as_echo "$YACC" >&6; }
10320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10321 $as_echo "no
" >&6; }
10325 test -n "$YACC" && break
10327 test -n "$YACC" || YACC="$MISSING bison
-y"
10329 case " $build_configdirs " in
10330 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10333 for ac_prog in bison
10335 # Extract the first word of "$ac_prog", so it can be a program name with args.
10336 set dummy $ac_prog; ac_word=$2
10337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10338 $as_echo_n "checking
for $ac_word...
" >&6; }
10339 if ${ac_cv_prog_BISON+:} false; then :
10340 $as_echo_n "(cached
) " >&6
10342 if test -n "$BISON"; then
10343 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10346 for as_dir in $PATH
10349 test -z "$as_dir" && as_dir=.
10350 for ac_exec_ext in '' $ac_executable_extensions; do
10351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10352 ac_cv_prog_BISON="$ac_prog"
10353 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10362 BISON=$ac_cv_prog_BISON
10363 if test -n "$BISON"; then
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10365 $as_echo "$BISON" >&6; }
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10368 $as_echo "no
" >&6; }
10372 test -n "$BISON" && break
10374 test -n "$BISON" || BISON="$MISSING bison
"
10376 case " $build_configdirs " in
10377 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10380 for ac_prog in gm4 gnum4 m4
10382 # Extract the first word of "$ac_prog", so it can be a program name with args.
10383 set dummy $ac_prog; ac_word=$2
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10385 $as_echo_n "checking
for $ac_word...
" >&6; }
10386 if ${ac_cv_prog_M4+:} false; then :
10387 $as_echo_n "(cached
) " >&6
10389 if test -n "$M4"; then
10390 ac_cv_prog_M4="$M4" # Let the user override the test.
10392 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10393 for as_dir in $PATH
10396 test -z "$as_dir" && as_dir=.
10397 for ac_exec_ext in '' $ac_executable_extensions; do
10398 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10399 ac_cv_prog_M4="$ac_prog"
10400 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10410 if test -n "$M4"; then
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10412 $as_echo "$M4" >&6; }
10414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10415 $as_echo "no
" >&6; }
10419 test -n "$M4" && break
10421 test -n "$M4" || M4="$MISSING m4"
10423 case " $build_configdirs " in
10424 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10427 for ac_prog in flex lex
10429 # Extract the first word of "$ac_prog", so it can be a program name with args.
10430 set dummy $ac_prog; ac_word=$2
10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10432 $as_echo_n "checking
for $ac_word...
" >&6; }
10433 if ${ac_cv_prog_LEX+:} false; then :
10434 $as_echo_n "(cached
) " >&6
10436 if test -n "$LEX"; then
10437 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10440 for as_dir in $PATH
10443 test -z "$as_dir" && as_dir=.
10444 for ac_exec_ext in '' $ac_executable_extensions; do
10445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10446 ac_cv_prog_LEX="$ac_prog"
10447 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10456 LEX=$ac_cv_prog_LEX
10457 if test -n "$LEX"; then
10458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10459 $as_echo "$LEX" >&6; }
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10462 $as_echo "no
" >&6; }
10466 test -n "$LEX" && break
10468 test -n "$LEX" || LEX="$MISSING flex
"
10470 case " $build_configdirs " in
10471 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10472 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10475 for ac_prog in flex
10477 # Extract the first word of "$ac_prog", so it can be a program name with args.
10478 set dummy $ac_prog; ac_word=$2
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10480 $as_echo_n "checking
for $ac_word...
" >&6; }
10481 if ${ac_cv_prog_FLEX+:} false; then :
10482 $as_echo_n "(cached
) " >&6
10484 if test -n "$FLEX"; then
10485 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10487 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10488 for as_dir in $PATH
10491 test -z "$as_dir" && as_dir=.
10492 for ac_exec_ext in '' $ac_executable_extensions; do
10493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10494 ac_cv_prog_FLEX="$ac_prog"
10495 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10504 FLEX=$ac_cv_prog_FLEX
10505 if test -n "$FLEX"; then
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10507 $as_echo "$FLEX" >&6; }
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10510 $as_echo "no
" >&6; }
10514 test -n "$FLEX" && break
10516 test -n "$FLEX" || FLEX="$MISSING flex
"
10518 case " $build_configdirs " in
10519 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10522 for ac_prog in makeinfo
10524 # Extract the first word of "$ac_prog", so it can be a program name with args.
10525 set dummy $ac_prog; ac_word=$2
10526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10527 $as_echo_n "checking
for $ac_word...
" >&6; }
10528 if ${ac_cv_prog_MAKEINFO+:} false; then :
10529 $as_echo_n "(cached
) " >&6
10531 if test -n "$MAKEINFO"; then
10532 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10535 for as_dir in $PATH
10538 test -z "$as_dir" && as_dir=.
10539 for ac_exec_ext in '' $ac_executable_extensions; do
10540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10541 ac_cv_prog_MAKEINFO="$ac_prog"
10542 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10551 MAKEINFO=$ac_cv_prog_MAKEINFO
10552 if test -n "$MAKEINFO"; then
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10554 $as_echo "$MAKEINFO" >&6; }
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10557 $as_echo "no
" >&6; }
10561 test -n "$MAKEINFO" && break
10563 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10565 case " $build_configdirs " in
10566 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10569 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10570 # higher, else we use the "missing
" dummy.
10571 if ${MAKEINFO} --version \
10572 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10575 MAKEINFO="$MISSING makeinfo
"
10581 # FIXME: expect and dejagnu may become build tools?
10583 for ac_prog in expect
10585 # Extract the first word of "$ac_prog", so it can be a program name with args.
10586 set dummy $ac_prog; ac_word=$2
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10588 $as_echo_n "checking
for $ac_word...
" >&6; }
10589 if ${ac_cv_prog_EXPECT+:} false; then :
10590 $as_echo_n "(cached
) " >&6
10592 if test -n "$EXPECT"; then
10593 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10596 for as_dir in $PATH
10599 test -z "$as_dir" && as_dir=.
10600 for ac_exec_ext in '' $ac_executable_extensions; do
10601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10602 ac_cv_prog_EXPECT="$ac_prog"
10603 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10612 EXPECT=$ac_cv_prog_EXPECT
10613 if test -n "$EXPECT"; then
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10615 $as_echo "$EXPECT" >&6; }
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10618 $as_echo "no
" >&6; }
10622 test -n "$EXPECT" && break
10624 test -n "$EXPECT" || EXPECT="expect
"
10626 case " $configdirs " in
10628 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10632 for ac_prog in runtest
10634 # Extract the first word of "$ac_prog", so it can be a program name with args.
10635 set dummy $ac_prog; ac_word=$2
10636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10637 $as_echo_n "checking
for $ac_word...
" >&6; }
10638 if ${ac_cv_prog_RUNTEST+:} false; then :
10639 $as_echo_n "(cached
) " >&6
10641 if test -n "$RUNTEST"; then
10642 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10645 for as_dir in $PATH
10648 test -z "$as_dir" && as_dir=.
10649 for ac_exec_ext in '' $ac_executable_extensions; do
10650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10651 ac_cv_prog_RUNTEST="$ac_prog"
10652 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10661 RUNTEST=$ac_cv_prog_RUNTEST
10662 if test -n "$RUNTEST"; then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10664 $as_echo "$RUNTEST" >&6; }
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10667 $as_echo "no
" >&6; }
10671 test -n "$RUNTEST" && break
10673 test -n "$RUNTEST" || RUNTEST="runtest
"
10675 case " $configdirs " in
10677 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10684 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10685 ncn_target_tool_prefix=
10686 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10690 if test -n "$AR"; then
10692 elif test -n "$ac_cv_prog_AR"; then
10696 if test -n "$ac_cv_prog_AR"; then
10697 for ncn_progname in ar; do
10698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10699 set dummy ${ncn_progname}; ac_word=$2
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10701 $as_echo_n "checking
for $ac_word...
" >&6; }
10702 if ${ac_cv_prog_AR+:} false; then :
10703 $as_echo_n "(cached
) " >&6
10705 if test -n "$AR"; then
10706 ac_cv_prog_AR="$AR" # Let the user override the test.
10708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10709 for as_dir in $PATH
10712 test -z "$as_dir" && as_dir=.
10713 for ac_exec_ext in '' $ac_executable_extensions; do
10714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10715 ac_cv_prog_AR="${ncn_progname}"
10716 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10726 if test -n "$AR"; then
10727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10728 $as_echo "$AR" >&6; }
10730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10731 $as_echo "no
" >&6; }
10738 for ncn_progname in ar; do
10739 if test -n "$ncn_tool_prefix"; then
10740 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10741 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10743 $as_echo_n "checking
for $ac_word...
" >&6; }
10744 if ${ac_cv_prog_AR+:} false; then :
10745 $as_echo_n "(cached
) " >&6
10747 if test -n "$AR"; then
10748 ac_cv_prog_AR="$AR" # Let the user override the test.
10750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10751 for as_dir in $PATH
10754 test -z "$as_dir" && as_dir=.
10755 for ac_exec_ext in '' $ac_executable_extensions; do
10756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10757 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10758 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10768 if test -n "$AR"; then
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10770 $as_echo "$AR" >&6; }
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10773 $as_echo "no
" >&6; }
10778 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10779 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10780 set dummy ${ncn_progname}; ac_word=$2
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10782 $as_echo_n "checking
for $ac_word...
" >&6; }
10783 if ${ac_cv_prog_AR+:} false; then :
10784 $as_echo_n "(cached
) " >&6
10786 if test -n "$AR"; then
10787 ac_cv_prog_AR="$AR" # Let the user override the test.
10789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10790 for as_dir in $PATH
10793 test -z "$as_dir" && as_dir=.
10794 for ac_exec_ext in '' $ac_executable_extensions; do
10795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10796 ac_cv_prog_AR="${ncn_progname}"
10797 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10807 if test -n "$AR"; then
10808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10809 $as_echo "$AR" >&6; }
10811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10812 $as_echo "no
" >&6; }
10817 test -n "$ac_cv_prog_AR" && break
10820 if test -z "$ac_cv_prog_AR" ; then
10822 if test $build = $host ; then
10825 AR="${ncn_tool_prefix}$2"
10831 if test -n "$AS"; then
10833 elif test -n "$ac_cv_prog_AS"; then
10837 if test -n "$ac_cv_prog_AS"; then
10838 for ncn_progname in as; do
10839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10840 set dummy ${ncn_progname}; ac_word=$2
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10842 $as_echo_n "checking
for $ac_word...
" >&6; }
10843 if ${ac_cv_prog_AS+:} false; then :
10844 $as_echo_n "(cached
) " >&6
10846 if test -n "$AS"; then
10847 ac_cv_prog_AS="$AS" # Let the user override the test.
10849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10850 for as_dir in $PATH
10853 test -z "$as_dir" && as_dir=.
10854 for ac_exec_ext in '' $ac_executable_extensions; do
10855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10856 ac_cv_prog_AS="${ncn_progname}"
10857 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10867 if test -n "$AS"; then
10868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10869 $as_echo "$AS" >&6; }
10871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10872 $as_echo "no
" >&6; }
10879 for ncn_progname in as; do
10880 if test -n "$ncn_tool_prefix"; then
10881 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10882 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10884 $as_echo_n "checking
for $ac_word...
" >&6; }
10885 if ${ac_cv_prog_AS+:} false; then :
10886 $as_echo_n "(cached
) " >&6
10888 if test -n "$AS"; then
10889 ac_cv_prog_AS="$AS" # Let the user override the test.
10891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10892 for as_dir in $PATH
10895 test -z "$as_dir" && as_dir=.
10896 for ac_exec_ext in '' $ac_executable_extensions; do
10897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10898 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10899 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10909 if test -n "$AS"; then
10910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10911 $as_echo "$AS" >&6; }
10913 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10914 $as_echo "no
" >&6; }
10919 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10920 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10921 set dummy ${ncn_progname}; ac_word=$2
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10923 $as_echo_n "checking
for $ac_word...
" >&6; }
10924 if ${ac_cv_prog_AS+:} false; then :
10925 $as_echo_n "(cached
) " >&6
10927 if test -n "$AS"; then
10928 ac_cv_prog_AS="$AS" # Let the user override the test.
10930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10931 for as_dir in $PATH
10934 test -z "$as_dir" && as_dir=.
10935 for ac_exec_ext in '' $ac_executable_extensions; do
10936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10937 ac_cv_prog_AS="${ncn_progname}"
10938 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10948 if test -n "$AS"; then
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10950 $as_echo "$AS" >&6; }
10952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10953 $as_echo "no
" >&6; }
10958 test -n "$ac_cv_prog_AS" && break
10961 if test -z "$ac_cv_prog_AS" ; then
10963 if test $build = $host ; then
10966 AS="${ncn_tool_prefix}$2"
10972 if test -n "$DLLTOOL"; then
10973 ac_cv_prog_DLLTOOL=$DLLTOOL
10974 elif test -n "$ac_cv_prog_DLLTOOL"; then
10975 DLLTOOL=$ac_cv_prog_DLLTOOL
10978 if test -n "$ac_cv_prog_DLLTOOL"; then
10979 for ncn_progname in dlltool; do
10980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10981 set dummy ${ncn_progname}; ac_word=$2
10982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10983 $as_echo_n "checking
for $ac_word...
" >&6; }
10984 if ${ac_cv_prog_DLLTOOL+:} false; then :
10985 $as_echo_n "(cached
) " >&6
10987 if test -n "$DLLTOOL"; then
10988 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10991 for as_dir in $PATH
10994 test -z "$as_dir" && as_dir=.
10995 for ac_exec_ext in '' $ac_executable_extensions; do
10996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10997 ac_cv_prog_DLLTOOL="${ncn_progname}"
10998 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11007 DLLTOOL=$ac_cv_prog_DLLTOOL
11008 if test -n "$DLLTOOL"; then
11009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11010 $as_echo "$DLLTOOL" >&6; }
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11013 $as_echo "no
" >&6; }
11020 for ncn_progname in dlltool; do
11021 if test -n "$ncn_tool_prefix"; then
11022 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11023 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11025 $as_echo_n "checking
for $ac_word...
" >&6; }
11026 if ${ac_cv_prog_DLLTOOL+:} false; then :
11027 $as_echo_n "(cached
) " >&6
11029 if test -n "$DLLTOOL"; then
11030 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11033 for as_dir in $PATH
11036 test -z "$as_dir" && as_dir=.
11037 for ac_exec_ext in '' $ac_executable_extensions; do
11038 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11039 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11040 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11049 DLLTOOL=$ac_cv_prog_DLLTOOL
11050 if test -n "$DLLTOOL"; then
11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11052 $as_echo "$DLLTOOL" >&6; }
11054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11055 $as_echo "no
" >&6; }
11060 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11061 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11062 set dummy ${ncn_progname}; ac_word=$2
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11064 $as_echo_n "checking
for $ac_word...
" >&6; }
11065 if ${ac_cv_prog_DLLTOOL+:} false; then :
11066 $as_echo_n "(cached
) " >&6
11068 if test -n "$DLLTOOL"; then
11069 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11071 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11072 for as_dir in $PATH
11075 test -z "$as_dir" && as_dir=.
11076 for ac_exec_ext in '' $ac_executable_extensions; do
11077 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11078 ac_cv_prog_DLLTOOL="${ncn_progname}"
11079 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11088 DLLTOOL=$ac_cv_prog_DLLTOOL
11089 if test -n "$DLLTOOL"; then
11090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11091 $as_echo "$DLLTOOL" >&6; }
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11094 $as_echo "no
" >&6; }
11099 test -n "$ac_cv_prog_DLLTOOL" && break
11102 if test -z "$ac_cv_prog_DLLTOOL" ; then
11104 if test $build = $host ; then
11107 DLLTOOL="${ncn_tool_prefix}$2"
11113 if test -n "$DSYMUTIL"; then
11114 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11115 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11116 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11119 if test -n "$ac_cv_prog_DSYMUTIL"; then
11120 for ncn_progname in dsymutil; do
11121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11122 set dummy ${ncn_progname}; ac_word=$2
11123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11124 $as_echo_n "checking
for $ac_word...
" >&6; }
11125 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11126 $as_echo_n "(cached
) " >&6
11128 if test -n "$DSYMUTIL"; then
11129 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11132 for as_dir in $PATH
11135 test -z "$as_dir" && as_dir=.
11136 for ac_exec_ext in '' $ac_executable_extensions; do
11137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11138 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11139 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11148 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11149 if test -n "$DSYMUTIL"; then
11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11151 $as_echo "$DSYMUTIL" >&6; }
11153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11154 $as_echo "no
" >&6; }
11161 for ncn_progname in dsymutil; do
11162 if test -n "$ncn_tool_prefix"; then
11163 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11164 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11166 $as_echo_n "checking
for $ac_word...
" >&6; }
11167 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11168 $as_echo_n "(cached
) " >&6
11170 if test -n "$DSYMUTIL"; then
11171 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11174 for as_dir in $PATH
11177 test -z "$as_dir" && as_dir=.
11178 for ac_exec_ext in '' $ac_executable_extensions; do
11179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11180 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11181 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11190 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11191 if test -n "$DSYMUTIL"; then
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11193 $as_echo "$DSYMUTIL" >&6; }
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11196 $as_echo "no
" >&6; }
11201 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11203 set dummy ${ncn_progname}; ac_word=$2
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11205 $as_echo_n "checking
for $ac_word...
" >&6; }
11206 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11207 $as_echo_n "(cached
) " >&6
11209 if test -n "$DSYMUTIL"; then
11210 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11213 for as_dir in $PATH
11216 test -z "$as_dir" && as_dir=.
11217 for ac_exec_ext in '' $ac_executable_extensions; do
11218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11219 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11220 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11229 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11230 if test -n "$DSYMUTIL"; then
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11232 $as_echo "$DSYMUTIL" >&6; }
11234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11235 $as_echo "no
" >&6; }
11240 test -n "$ac_cv_prog_DSYMUTIL" && break
11243 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11245 if test $build = $host ; then
11248 DSYMUTIL="${ncn_tool_prefix}$2"
11254 if test -n "$LD"; then
11256 elif test -n "$ac_cv_prog_LD"; then
11260 if test -n "$ac_cv_prog_LD"; then
11261 for ncn_progname in ld; do
11262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11263 set dummy ${ncn_progname}; ac_word=$2
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11265 $as_echo_n "checking
for $ac_word...
" >&6; }
11266 if ${ac_cv_prog_LD+:} false; then :
11267 $as_echo_n "(cached
) " >&6
11269 if test -n "$LD"; then
11270 ac_cv_prog_LD="$LD" # Let the user override the test.
11272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11273 for as_dir in $PATH
11276 test -z "$as_dir" && as_dir=.
11277 for ac_exec_ext in '' $ac_executable_extensions; do
11278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11279 ac_cv_prog_LD="${ncn_progname}"
11280 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11290 if test -n "$LD"; then
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11292 $as_echo "$LD" >&6; }
11294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11295 $as_echo "no
" >&6; }
11302 for ncn_progname in ld; do
11303 if test -n "$ncn_tool_prefix"; then
11304 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11305 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11307 $as_echo_n "checking
for $ac_word...
" >&6; }
11308 if ${ac_cv_prog_LD+:} false; then :
11309 $as_echo_n "(cached
) " >&6
11311 if test -n "$LD"; then
11312 ac_cv_prog_LD="$LD" # Let the user override the test.
11314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11315 for as_dir in $PATH
11318 test -z "$as_dir" && as_dir=.
11319 for ac_exec_ext in '' $ac_executable_extensions; do
11320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11321 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11322 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11332 if test -n "$LD"; then
11333 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11334 $as_echo "$LD" >&6; }
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11337 $as_echo "no
" >&6; }
11342 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11343 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11344 set dummy ${ncn_progname}; ac_word=$2
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11346 $as_echo_n "checking
for $ac_word...
" >&6; }
11347 if ${ac_cv_prog_LD+:} false; then :
11348 $as_echo_n "(cached
) " >&6
11350 if test -n "$LD"; then
11351 ac_cv_prog_LD="$LD" # Let the user override the test.
11353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11354 for as_dir in $PATH
11357 test -z "$as_dir" && as_dir=.
11358 for ac_exec_ext in '' $ac_executable_extensions; do
11359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11360 ac_cv_prog_LD="${ncn_progname}"
11361 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11371 if test -n "$LD"; then
11372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11373 $as_echo "$LD" >&6; }
11375 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11376 $as_echo "no
" >&6; }
11381 test -n "$ac_cv_prog_LD" && break
11384 if test -z "$ac_cv_prog_LD" ; then
11386 if test $build = $host ; then
11389 LD="${ncn_tool_prefix}$2"
11395 if test -n "$LIPO"; then
11396 ac_cv_prog_LIPO=$LIPO
11397 elif test -n "$ac_cv_prog_LIPO"; then
11398 LIPO=$ac_cv_prog_LIPO
11401 if test -n "$ac_cv_prog_LIPO"; then
11402 for ncn_progname in lipo; do
11403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11404 set dummy ${ncn_progname}; ac_word=$2
11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11406 $as_echo_n "checking
for $ac_word...
" >&6; }
11407 if ${ac_cv_prog_LIPO+:} false; then :
11408 $as_echo_n "(cached
) " >&6
11410 if test -n "$LIPO"; then
11411 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11414 for as_dir in $PATH
11417 test -z "$as_dir" && as_dir=.
11418 for ac_exec_ext in '' $ac_executable_extensions; do
11419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11420 ac_cv_prog_LIPO="${ncn_progname}"
11421 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11430 LIPO=$ac_cv_prog_LIPO
11431 if test -n "$LIPO"; then
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11433 $as_echo "$LIPO" >&6; }
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11436 $as_echo "no
" >&6; }
11443 for ncn_progname in lipo; do
11444 if test -n "$ncn_tool_prefix"; then
11445 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11446 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11448 $as_echo_n "checking
for $ac_word...
" >&6; }
11449 if ${ac_cv_prog_LIPO+:} false; then :
11450 $as_echo_n "(cached
) " >&6
11452 if test -n "$LIPO"; then
11453 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11456 for as_dir in $PATH
11459 test -z "$as_dir" && as_dir=.
11460 for ac_exec_ext in '' $ac_executable_extensions; do
11461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11462 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11463 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11472 LIPO=$ac_cv_prog_LIPO
11473 if test -n "$LIPO"; then
11474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11475 $as_echo "$LIPO" >&6; }
11477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11478 $as_echo "no
" >&6; }
11483 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11484 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11485 set dummy ${ncn_progname}; ac_word=$2
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11487 $as_echo_n "checking
for $ac_word...
" >&6; }
11488 if ${ac_cv_prog_LIPO+:} false; then :
11489 $as_echo_n "(cached
) " >&6
11491 if test -n "$LIPO"; then
11492 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11495 for as_dir in $PATH
11498 test -z "$as_dir" && as_dir=.
11499 for ac_exec_ext in '' $ac_executable_extensions; do
11500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11501 ac_cv_prog_LIPO="${ncn_progname}"
11502 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11511 LIPO=$ac_cv_prog_LIPO
11512 if test -n "$LIPO"; then
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11514 $as_echo "$LIPO" >&6; }
11516 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11517 $as_echo "no
" >&6; }
11522 test -n "$ac_cv_prog_LIPO" && break
11525 if test -z "$ac_cv_prog_LIPO" ; then
11527 if test $build = $host ; then
11530 LIPO="${ncn_tool_prefix}$2"
11536 if test -n "$NM"; then
11538 elif test -n "$ac_cv_prog_NM"; then
11542 if test -n "$ac_cv_prog_NM"; then
11543 for ncn_progname in nm; do
11544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11545 set dummy ${ncn_progname}; ac_word=$2
11546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11547 $as_echo_n "checking
for $ac_word...
" >&6; }
11548 if ${ac_cv_prog_NM+:} false; then :
11549 $as_echo_n "(cached
) " >&6
11551 if test -n "$NM"; then
11552 ac_cv_prog_NM="$NM" # Let the user override the test.
11554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11555 for as_dir in $PATH
11558 test -z "$as_dir" && as_dir=.
11559 for ac_exec_ext in '' $ac_executable_extensions; do
11560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11561 ac_cv_prog_NM="${ncn_progname}"
11562 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11572 if test -n "$NM"; then
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11574 $as_echo "$NM" >&6; }
11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11577 $as_echo "no
" >&6; }
11584 for ncn_progname in nm; do
11585 if test -n "$ncn_tool_prefix"; then
11586 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11587 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11589 $as_echo_n "checking
for $ac_word...
" >&6; }
11590 if ${ac_cv_prog_NM+:} false; then :
11591 $as_echo_n "(cached
) " >&6
11593 if test -n "$NM"; then
11594 ac_cv_prog_NM="$NM" # Let the user override the test.
11596 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597 for as_dir in $PATH
11600 test -z "$as_dir" && as_dir=.
11601 for ac_exec_ext in '' $ac_executable_extensions; do
11602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11603 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11604 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11614 if test -n "$NM"; then
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11616 $as_echo "$NM" >&6; }
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11619 $as_echo "no
" >&6; }
11624 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11625 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11626 set dummy ${ncn_progname}; ac_word=$2
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11628 $as_echo_n "checking
for $ac_word...
" >&6; }
11629 if ${ac_cv_prog_NM+:} false; then :
11630 $as_echo_n "(cached
) " >&6
11632 if test -n "$NM"; then
11633 ac_cv_prog_NM="$NM" # Let the user override the test.
11635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11636 for as_dir in $PATH
11639 test -z "$as_dir" && as_dir=.
11640 for ac_exec_ext in '' $ac_executable_extensions; do
11641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11642 ac_cv_prog_NM="${ncn_progname}"
11643 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11653 if test -n "$NM"; then
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11655 $as_echo "$NM" >&6; }
11657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11658 $as_echo "no
" >&6; }
11663 test -n "$ac_cv_prog_NM" && break
11666 if test -z "$ac_cv_prog_NM" ; then
11668 if test $build = $host ; then
11671 NM="${ncn_tool_prefix}$2"
11677 if test -n "$RANLIB"; then
11678 ac_cv_prog_RANLIB=$RANLIB
11679 elif test -n "$ac_cv_prog_RANLIB"; then
11680 RANLIB=$ac_cv_prog_RANLIB
11683 if test -n "$ac_cv_prog_RANLIB"; then
11684 for ncn_progname in ranlib; do
11685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11686 set dummy ${ncn_progname}; ac_word=$2
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11688 $as_echo_n "checking
for $ac_word...
" >&6; }
11689 if ${ac_cv_prog_RANLIB+:} false; then :
11690 $as_echo_n "(cached
) " >&6
11692 if test -n "$RANLIB"; then
11693 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696 for as_dir in $PATH
11699 test -z "$as_dir" && as_dir=.
11700 for ac_exec_ext in '' $ac_executable_extensions; do
11701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11702 ac_cv_prog_RANLIB="${ncn_progname}"
11703 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11712 RANLIB=$ac_cv_prog_RANLIB
11713 if test -n "$RANLIB"; then
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11715 $as_echo "$RANLIB" >&6; }
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11718 $as_echo "no
" >&6; }
11725 for ncn_progname in ranlib; do
11726 if test -n "$ncn_tool_prefix"; then
11727 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11728 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11730 $as_echo_n "checking
for $ac_word...
" >&6; }
11731 if ${ac_cv_prog_RANLIB+:} false; then :
11732 $as_echo_n "(cached
) " >&6
11734 if test -n "$RANLIB"; then
11735 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11738 for as_dir in $PATH
11741 test -z "$as_dir" && as_dir=.
11742 for ac_exec_ext in '' $ac_executable_extensions; do
11743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11744 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11745 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11754 RANLIB=$ac_cv_prog_RANLIB
11755 if test -n "$RANLIB"; then
11756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11757 $as_echo "$RANLIB" >&6; }
11759 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11760 $as_echo "no
" >&6; }
11765 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11766 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11767 set dummy ${ncn_progname}; ac_word=$2
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11769 $as_echo_n "checking
for $ac_word...
" >&6; }
11770 if ${ac_cv_prog_RANLIB+:} false; then :
11771 $as_echo_n "(cached
) " >&6
11773 if test -n "$RANLIB"; then
11774 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11777 for as_dir in $PATH
11780 test -z "$as_dir" && as_dir=.
11781 for ac_exec_ext in '' $ac_executable_extensions; do
11782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11783 ac_cv_prog_RANLIB="${ncn_progname}"
11784 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11793 RANLIB=$ac_cv_prog_RANLIB
11794 if test -n "$RANLIB"; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11796 $as_echo "$RANLIB" >&6; }
11798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11799 $as_echo "no
" >&6; }
11804 test -n "$ac_cv_prog_RANLIB" && break
11807 if test -z "$ac_cv_prog_RANLIB" ; then
11813 if test -n "$STRIP"; then
11814 ac_cv_prog_STRIP=$STRIP
11815 elif test -n "$ac_cv_prog_STRIP"; then
11816 STRIP=$ac_cv_prog_STRIP
11819 if test -n "$ac_cv_prog_STRIP"; then
11820 for ncn_progname in strip; do
11821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11822 set dummy ${ncn_progname}; ac_word=$2
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11824 $as_echo_n "checking
for $ac_word...
" >&6; }
11825 if ${ac_cv_prog_STRIP+:} false; then :
11826 $as_echo_n "(cached
) " >&6
11828 if test -n "$STRIP"; then
11829 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832 for as_dir in $PATH
11835 test -z "$as_dir" && as_dir=.
11836 for ac_exec_ext in '' $ac_executable_extensions; do
11837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11838 ac_cv_prog_STRIP="${ncn_progname}"
11839 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11848 STRIP=$ac_cv_prog_STRIP
11849 if test -n "$STRIP"; then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11851 $as_echo "$STRIP" >&6; }
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11854 $as_echo "no
" >&6; }
11861 for ncn_progname in strip; do
11862 if test -n "$ncn_tool_prefix"; then
11863 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11864 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11866 $as_echo_n "checking
for $ac_word...
" >&6; }
11867 if ${ac_cv_prog_STRIP+:} false; then :
11868 $as_echo_n "(cached
) " >&6
11870 if test -n "$STRIP"; then
11871 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11877 test -z "$as_dir" && as_dir=.
11878 for ac_exec_ext in '' $ac_executable_extensions; do
11879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11880 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11881 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11890 STRIP=$ac_cv_prog_STRIP
11891 if test -n "$STRIP"; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11893 $as_echo "$STRIP" >&6; }
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11896 $as_echo "no
" >&6; }
11901 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11903 set dummy ${ncn_progname}; ac_word=$2
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11905 $as_echo_n "checking
for $ac_word...
" >&6; }
11906 if ${ac_cv_prog_STRIP+:} false; then :
11907 $as_echo_n "(cached
) " >&6
11909 if test -n "$STRIP"; then
11910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913 for as_dir in $PATH
11916 test -z "$as_dir" && as_dir=.
11917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11919 ac_cv_prog_STRIP="${ncn_progname}"
11920 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11929 STRIP=$ac_cv_prog_STRIP
11930 if test -n "$STRIP"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11932 $as_echo "$STRIP" >&6; }
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11935 $as_echo "no
" >&6; }
11940 test -n "$ac_cv_prog_STRIP" && break
11943 if test -z "$ac_cv_prog_STRIP" ; then
11949 if test -n "$WINDRES"; then
11950 ac_cv_prog_WINDRES=$WINDRES
11951 elif test -n "$ac_cv_prog_WINDRES"; then
11952 WINDRES=$ac_cv_prog_WINDRES
11955 if test -n "$ac_cv_prog_WINDRES"; then
11956 for ncn_progname in windres; do
11957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11958 set dummy ${ncn_progname}; ac_word=$2
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11960 $as_echo_n "checking
for $ac_word...
" >&6; }
11961 if ${ac_cv_prog_WINDRES+:} false; then :
11962 $as_echo_n "(cached
) " >&6
11964 if test -n "$WINDRES"; then
11965 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968 for as_dir in $PATH
11971 test -z "$as_dir" && as_dir=.
11972 for ac_exec_ext in '' $ac_executable_extensions; do
11973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11974 ac_cv_prog_WINDRES="${ncn_progname}"
11975 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11984 WINDRES=$ac_cv_prog_WINDRES
11985 if test -n "$WINDRES"; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
11987 $as_echo "$WINDRES" >&6; }
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11990 $as_echo "no
" >&6; }
11997 for ncn_progname in windres; do
11998 if test -n "$ncn_tool_prefix"; then
11999 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12000 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12002 $as_echo_n "checking
for $ac_word...
" >&6; }
12003 if ${ac_cv_prog_WINDRES+:} false; then :
12004 $as_echo_n "(cached
) " >&6
12006 if test -n "$WINDRES"; then
12007 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12010 for as_dir in $PATH
12013 test -z "$as_dir" && as_dir=.
12014 for ac_exec_ext in '' $ac_executable_extensions; do
12015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12016 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12017 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12026 WINDRES=$ac_cv_prog_WINDRES
12027 if test -n "$WINDRES"; then
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12029 $as_echo "$WINDRES" >&6; }
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12032 $as_echo "no
" >&6; }
12037 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12039 set dummy ${ncn_progname}; ac_word=$2
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12041 $as_echo_n "checking
for $ac_word...
" >&6; }
12042 if ${ac_cv_prog_WINDRES+:} false; then :
12043 $as_echo_n "(cached
) " >&6
12045 if test -n "$WINDRES"; then
12046 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049 for as_dir in $PATH
12052 test -z "$as_dir" && as_dir=.
12053 for ac_exec_ext in '' $ac_executable_extensions; do
12054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12055 ac_cv_prog_WINDRES="${ncn_progname}"
12056 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12065 WINDRES=$ac_cv_prog_WINDRES
12066 if test -n "$WINDRES"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12068 $as_echo "$WINDRES" >&6; }
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12071 $as_echo "no
" >&6; }
12076 test -n "$ac_cv_prog_WINDRES" && break
12079 if test -z "$ac_cv_prog_WINDRES" ; then
12081 if test $build = $host ; then
12084 WINDRES="${ncn_tool_prefix}$2"
12090 if test -n "$WINDMC"; then
12091 ac_cv_prog_WINDMC=$WINDMC
12092 elif test -n "$ac_cv_prog_WINDMC"; then
12093 WINDMC=$ac_cv_prog_WINDMC
12096 if test -n "$ac_cv_prog_WINDMC"; then
12097 for ncn_progname in windmc; do
12098 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12099 set dummy ${ncn_progname}; ac_word=$2
12100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12101 $as_echo_n "checking
for $ac_word...
" >&6; }
12102 if ${ac_cv_prog_WINDMC+:} false; then :
12103 $as_echo_n "(cached
) " >&6
12105 if test -n "$WINDMC"; then
12106 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12109 for as_dir in $PATH
12112 test -z "$as_dir" && as_dir=.
12113 for ac_exec_ext in '' $ac_executable_extensions; do
12114 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12115 ac_cv_prog_WINDMC="${ncn_progname}"
12116 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12125 WINDMC=$ac_cv_prog_WINDMC
12126 if test -n "$WINDMC"; then
12127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12128 $as_echo "$WINDMC" >&6; }
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12131 $as_echo "no
" >&6; }
12138 for ncn_progname in windmc; do
12139 if test -n "$ncn_tool_prefix"; then
12140 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12141 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12143 $as_echo_n "checking
for $ac_word...
" >&6; }
12144 if ${ac_cv_prog_WINDMC+:} false; then :
12145 $as_echo_n "(cached
) " >&6
12147 if test -n "$WINDMC"; then
12148 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12151 for as_dir in $PATH
12154 test -z "$as_dir" && as_dir=.
12155 for ac_exec_ext in '' $ac_executable_extensions; do
12156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12157 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12158 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12167 WINDMC=$ac_cv_prog_WINDMC
12168 if test -n "$WINDMC"; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12170 $as_echo "$WINDMC" >&6; }
12172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12173 $as_echo "no
" >&6; }
12178 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12180 set dummy ${ncn_progname}; ac_word=$2
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12182 $as_echo_n "checking
for $ac_word...
" >&6; }
12183 if ${ac_cv_prog_WINDMC+:} false; then :
12184 $as_echo_n "(cached
) " >&6
12186 if test -n "$WINDMC"; then
12187 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12190 for as_dir in $PATH
12193 test -z "$as_dir" && as_dir=.
12194 for ac_exec_ext in '' $ac_executable_extensions; do
12195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12196 ac_cv_prog_WINDMC="${ncn_progname}"
12197 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12206 WINDMC=$ac_cv_prog_WINDMC
12207 if test -n "$WINDMC"; then
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12209 $as_echo "$WINDMC" >&6; }
12211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12212 $as_echo "no
" >&6; }
12217 test -n "$ac_cv_prog_WINDMC" && break
12220 if test -z "$ac_cv_prog_WINDMC" ; then
12222 if test $build = $host ; then
12225 WINDMC="${ncn_tool_prefix}$2"
12231 if test -n "$OBJCOPY"; then
12232 ac_cv_prog_OBJCOPY=$OBJCOPY
12233 elif test -n "$ac_cv_prog_OBJCOPY"; then
12234 OBJCOPY=$ac_cv_prog_OBJCOPY
12237 if test -n "$ac_cv_prog_OBJCOPY"; then
12238 for ncn_progname in objcopy; do
12239 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12240 set dummy ${ncn_progname}; ac_word=$2
12241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12242 $as_echo_n "checking
for $ac_word...
" >&6; }
12243 if ${ac_cv_prog_OBJCOPY+:} false; then :
12244 $as_echo_n "(cached
) " >&6
12246 if test -n "$OBJCOPY"; then
12247 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12250 for as_dir in $PATH
12253 test -z "$as_dir" && as_dir=.
12254 for ac_exec_ext in '' $ac_executable_extensions; do
12255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12256 ac_cv_prog_OBJCOPY="${ncn_progname}"
12257 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12266 OBJCOPY=$ac_cv_prog_OBJCOPY
12267 if test -n "$OBJCOPY"; then
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12269 $as_echo "$OBJCOPY" >&6; }
12271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12272 $as_echo "no
" >&6; }
12279 for ncn_progname in objcopy; do
12280 if test -n "$ncn_tool_prefix"; then
12281 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12282 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12284 $as_echo_n "checking
for $ac_word...
" >&6; }
12285 if ${ac_cv_prog_OBJCOPY+:} false; then :
12286 $as_echo_n "(cached
) " >&6
12288 if test -n "$OBJCOPY"; then
12289 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12292 for as_dir in $PATH
12295 test -z "$as_dir" && as_dir=.
12296 for ac_exec_ext in '' $ac_executable_extensions; do
12297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12298 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12299 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12308 OBJCOPY=$ac_cv_prog_OBJCOPY
12309 if test -n "$OBJCOPY"; then
12310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12311 $as_echo "$OBJCOPY" >&6; }
12313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12314 $as_echo "no
" >&6; }
12319 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12320 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12321 set dummy ${ncn_progname}; ac_word=$2
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12323 $as_echo_n "checking
for $ac_word...
" >&6; }
12324 if ${ac_cv_prog_OBJCOPY+:} false; then :
12325 $as_echo_n "(cached
) " >&6
12327 if test -n "$OBJCOPY"; then
12328 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12331 for as_dir in $PATH
12334 test -z "$as_dir" && as_dir=.
12335 for ac_exec_ext in '' $ac_executable_extensions; do
12336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12337 ac_cv_prog_OBJCOPY="${ncn_progname}"
12338 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12347 OBJCOPY=$ac_cv_prog_OBJCOPY
12348 if test -n "$OBJCOPY"; then
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12350 $as_echo "$OBJCOPY" >&6; }
12352 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12353 $as_echo "no
" >&6; }
12358 test -n "$ac_cv_prog_OBJCOPY" && break
12361 if test -z "$ac_cv_prog_OBJCOPY" ; then
12363 if test $build = $host ; then
12366 OBJCOPY="${ncn_tool_prefix}$2"
12372 if test -n "$OBJDUMP"; then
12373 ac_cv_prog_OBJDUMP=$OBJDUMP
12374 elif test -n "$ac_cv_prog_OBJDUMP"; then
12375 OBJDUMP=$ac_cv_prog_OBJDUMP
12378 if test -n "$ac_cv_prog_OBJDUMP"; then
12379 for ncn_progname in objdump; do
12380 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12381 set dummy ${ncn_progname}; ac_word=$2
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12383 $as_echo_n "checking
for $ac_word...
" >&6; }
12384 if ${ac_cv_prog_OBJDUMP+:} false; then :
12385 $as_echo_n "(cached
) " >&6
12387 if test -n "$OBJDUMP"; then
12388 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12391 for as_dir in $PATH
12394 test -z "$as_dir" && as_dir=.
12395 for ac_exec_ext in '' $ac_executable_extensions; do
12396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12397 ac_cv_prog_OBJDUMP="${ncn_progname}"
12398 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12407 OBJDUMP=$ac_cv_prog_OBJDUMP
12408 if test -n "$OBJDUMP"; then
12409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12410 $as_echo "$OBJDUMP" >&6; }
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12413 $as_echo "no
" >&6; }
12420 for ncn_progname in objdump; do
12421 if test -n "$ncn_tool_prefix"; then
12422 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12423 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12425 $as_echo_n "checking
for $ac_word...
" >&6; }
12426 if ${ac_cv_prog_OBJDUMP+:} false; then :
12427 $as_echo_n "(cached
) " >&6
12429 if test -n "$OBJDUMP"; then
12430 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12433 for as_dir in $PATH
12436 test -z "$as_dir" && as_dir=.
12437 for ac_exec_ext in '' $ac_executable_extensions; do
12438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12439 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12440 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12449 OBJDUMP=$ac_cv_prog_OBJDUMP
12450 if test -n "$OBJDUMP"; then
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12452 $as_echo "$OBJDUMP" >&6; }
12454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12455 $as_echo "no
" >&6; }
12460 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12462 set dummy ${ncn_progname}; ac_word=$2
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12464 $as_echo_n "checking
for $ac_word...
" >&6; }
12465 if ${ac_cv_prog_OBJDUMP+:} false; then :
12466 $as_echo_n "(cached
) " >&6
12468 if test -n "$OBJDUMP"; then
12469 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12472 for as_dir in $PATH
12475 test -z "$as_dir" && as_dir=.
12476 for ac_exec_ext in '' $ac_executable_extensions; do
12477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12478 ac_cv_prog_OBJDUMP="${ncn_progname}"
12479 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12488 OBJDUMP=$ac_cv_prog_OBJDUMP
12489 if test -n "$OBJDUMP"; then
12490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12491 $as_echo "$OBJDUMP" >&6; }
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12494 $as_echo "no
" >&6; }
12499 test -n "$ac_cv_prog_OBJDUMP" && break
12502 if test -z "$ac_cv_prog_OBJDUMP" ; then
12504 if test $build = $host ; then
12507 OBJDUMP="${ncn_tool_prefix}$2"
12513 if test -n "$OTOOL"; then
12514 ac_cv_prog_OTOOL=$OTOOL
12515 elif test -n "$ac_cv_prog_OTOOL"; then
12516 OTOOL=$ac_cv_prog_OTOOL
12519 if test -n "$ac_cv_prog_OTOOL"; then
12520 for ncn_progname in otool; do
12521 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12522 set dummy ${ncn_progname}; ac_word=$2
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12524 $as_echo_n "checking
for $ac_word...
" >&6; }
12525 if ${ac_cv_prog_OTOOL+:} false; then :
12526 $as_echo_n "(cached
) " >&6
12528 if test -n "$OTOOL"; then
12529 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12532 for as_dir in $PATH
12535 test -z "$as_dir" && as_dir=.
12536 for ac_exec_ext in '' $ac_executable_extensions; do
12537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12538 ac_cv_prog_OTOOL="${ncn_progname}"
12539 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12548 OTOOL=$ac_cv_prog_OTOOL
12549 if test -n "$OTOOL"; then
12550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12551 $as_echo "$OTOOL" >&6; }
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12554 $as_echo "no
" >&6; }
12561 for ncn_progname in otool; do
12562 if test -n "$ncn_tool_prefix"; then
12563 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12564 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12566 $as_echo_n "checking
for $ac_word...
" >&6; }
12567 if ${ac_cv_prog_OTOOL+:} false; then :
12568 $as_echo_n "(cached
) " >&6
12570 if test -n "$OTOOL"; then
12571 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12574 for as_dir in $PATH
12577 test -z "$as_dir" && as_dir=.
12578 for ac_exec_ext in '' $ac_executable_extensions; do
12579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12580 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12581 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12590 OTOOL=$ac_cv_prog_OTOOL
12591 if test -n "$OTOOL"; then
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12593 $as_echo "$OTOOL" >&6; }
12595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12596 $as_echo "no
" >&6; }
12601 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12602 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12603 set dummy ${ncn_progname}; ac_word=$2
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12605 $as_echo_n "checking
for $ac_word...
" >&6; }
12606 if ${ac_cv_prog_OTOOL+:} false; then :
12607 $as_echo_n "(cached
) " >&6
12609 if test -n "$OTOOL"; then
12610 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12613 for as_dir in $PATH
12616 test -z "$as_dir" && as_dir=.
12617 for ac_exec_ext in '' $ac_executable_extensions; do
12618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12619 ac_cv_prog_OTOOL="${ncn_progname}"
12620 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12629 OTOOL=$ac_cv_prog_OTOOL
12630 if test -n "$OTOOL"; then
12631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12632 $as_echo "$OTOOL" >&6; }
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12635 $as_echo "no
" >&6; }
12640 test -n "$ac_cv_prog_OTOOL" && break
12643 if test -z "$ac_cv_prog_OTOOL" ; then
12645 if test $build = $host ; then
12648 OTOOL="${ncn_tool_prefix}$2"
12654 if test -n "$READELF"; then
12655 ac_cv_prog_READELF=$READELF
12656 elif test -n "$ac_cv_prog_READELF"; then
12657 READELF=$ac_cv_prog_READELF
12660 if test -n "$ac_cv_prog_READELF"; then
12661 for ncn_progname in readelf; do
12662 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12663 set dummy ${ncn_progname}; ac_word=$2
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12665 $as_echo_n "checking
for $ac_word...
" >&6; }
12666 if ${ac_cv_prog_READELF+:} false; then :
12667 $as_echo_n "(cached
) " >&6
12669 if test -n "$READELF"; then
12670 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12673 for as_dir in $PATH
12676 test -z "$as_dir" && as_dir=.
12677 for ac_exec_ext in '' $ac_executable_extensions; do
12678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12679 ac_cv_prog_READELF="${ncn_progname}"
12680 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12689 READELF=$ac_cv_prog_READELF
12690 if test -n "$READELF"; then
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12692 $as_echo "$READELF" >&6; }
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12695 $as_echo "no
" >&6; }
12702 for ncn_progname in readelf; do
12703 if test -n "$ncn_tool_prefix"; then
12704 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12705 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12707 $as_echo_n "checking
for $ac_word...
" >&6; }
12708 if ${ac_cv_prog_READELF+:} false; then :
12709 $as_echo_n "(cached
) " >&6
12711 if test -n "$READELF"; then
12712 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12715 for as_dir in $PATH
12718 test -z "$as_dir" && as_dir=.
12719 for ac_exec_ext in '' $ac_executable_extensions; do
12720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12721 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12722 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12731 READELF=$ac_cv_prog_READELF
12732 if test -n "$READELF"; then
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12734 $as_echo "$READELF" >&6; }
12736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12737 $as_echo "no
" >&6; }
12742 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12744 set dummy ${ncn_progname}; ac_word=$2
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12746 $as_echo_n "checking
for $ac_word...
" >&6; }
12747 if ${ac_cv_prog_READELF+:} false; then :
12748 $as_echo_n "(cached
) " >&6
12750 if test -n "$READELF"; then
12751 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12754 for as_dir in $PATH
12757 test -z "$as_dir" && as_dir=.
12758 for ac_exec_ext in '' $ac_executable_extensions; do
12759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12760 ac_cv_prog_READELF="${ncn_progname}"
12761 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12770 READELF=$ac_cv_prog_READELF
12771 if test -n "$READELF"; then
12772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12773 $as_echo "$READELF" >&6; }
12775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12776 $as_echo "no
" >&6; }
12781 test -n "$ac_cv_prog_READELF" && break
12784 if test -z "$ac_cv_prog_READELF" ; then
12786 if test $build = $host ; then
12789 READELF="${ncn_tool_prefix}$2"
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
12801 $as_echo_n "checking
for -plugin option...
" >&6; }
12803 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
12805 for plugin in $plugin_names; do
12806 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
12807 if test x$plugin_so = x$plugin; then
12808 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
12810 if test x$plugin_so != x$plugin; then
12811 plugin_option="--plugin $plugin_so"
12815 if test -n "$ac_tool_prefix"; then
12816 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12817 set dummy ${ac_tool_prefix}ar; ac_word=$2
12818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12819 $as_echo_n "checking
for $ac_word...
" >&6; }
12820 if ${ac_cv_prog_AR+:} false; then :
12821 $as_echo_n "(cached
) " >&6
12823 if test -n "$AR"; then
12824 ac_cv_prog_AR="$AR" # Let the user override the test.
12826 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12827 for as_dir in $PATH
12830 test -z "$as_dir" && as_dir=.
12831 for ac_exec_ext in '' $ac_executable_extensions; do
12832 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12833 ac_cv_prog_AR="${ac_tool_prefix}ar"
12834 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12844 if test -n "$AR"; then
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12846 $as_echo "$AR" >&6; }
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12849 $as_echo "no
" >&6; }
12854 if test -z "$ac_cv_prog_AR"; then
12856 # Extract the first word of "ar", so it can be a program name with args.
12857 set dummy ar; ac_word=$2
12858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12859 $as_echo_n "checking
for $ac_word...
" >&6; }
12860 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12861 $as_echo_n "(cached
) " >&6
12863 if test -n "$ac_ct_AR"; then
12864 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12867 for as_dir in $PATH
12870 test -z "$as_dir" && as_dir=.
12871 for ac_exec_ext in '' $ac_executable_extensions; do
12872 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12873 ac_cv_prog_ac_ct_AR="ar"
12874 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12883 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12884 if test -n "$ac_ct_AR"; then
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
12886 $as_echo "$ac_ct_AR" >&6; }
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12889 $as_echo "no
" >&6; }
12892 if test "x
$ac_ct_AR" = x; then
12895 case $cross_compiling:$ac_tool_warned in
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
12898 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
12899 ac_tool_warned=yes ;;
12904 AR="$ac_cv_prog_AR"
12907 if test "${AR}" = "" ; then
12908 as_fn_error $? "Required archive tool
'ar' not found on PATH.
" "$LINENO" 5
12911 ${AR} $plugin_option rc conftest.a conftest.c
12912 if test "$?
" != 0; then
12913 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
12914 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
12918 if test -n "$plugin_option"; then
12919 PLUGIN_OPTION="$plugin_option"
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
12921 $as_echo "$plugin_option" >&6; }
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12924 $as_echo "no
" >&6; }
12928 RANLIB_PLUGIN_OPTION=
12929 if test -n "$PLUGIN_OPTION"; then
12930 if $AR --help 2>&1 | grep -q "\
--plugin"; then
12931 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
12933 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
12934 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
12942 # Check whether --with-build-time-tools was given.
12943 if test "${with_build_time_tools+set}" = set; then :
12944 withval=$with_build_time_tools; case x"$withval" in
12947 with_build_time_tools=
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
12949 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
12953 with_build_time_tools=
12959 if test -n "$CC_FOR_TARGET"; then
12960 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12961 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12962 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12965 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12966 for ncn_progname in cc gcc; do
12967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12968 set dummy ${ncn_progname}; ac_word=$2
12969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12970 $as_echo_n "checking
for $ac_word...
" >&6; }
12971 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12972 $as_echo_n "(cached
) " >&6
12974 if test -n "$CC_FOR_TARGET"; then
12975 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12978 for as_dir in $PATH
12981 test -z "$as_dir" && as_dir=.
12982 for ac_exec_ext in '' $ac_executable_extensions; do
12983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12984 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12985 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12994 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12995 if test -n "$CC_FOR_TARGET"; then
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12997 $as_echo "$CC_FOR_TARGET" >&6; }
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13000 $as_echo "no
" >&6; }
13007 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13008 for ncn_progname in cc gcc; do
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13010 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13011 if test -x $with_build_time_tools/${ncn_progname}; then
13012 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13014 $as_echo "yes" >&6; }
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13018 $as_echo "no
" >&6; }
13023 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13024 for ncn_progname in cc gcc; do
13025 if test -n "$ncn_target_tool_prefix"; then
13026 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13027 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13029 $as_echo_n "checking
for $ac_word...
" >&6; }
13030 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13031 $as_echo_n "(cached
) " >&6
13033 if test -n "$CC_FOR_TARGET"; then
13034 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13037 for as_dir in $PATH
13040 test -z "$as_dir" && as_dir=.
13041 for ac_exec_ext in '' $ac_executable_extensions; do
13042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13043 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13044 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13053 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13054 if test -n "$CC_FOR_TARGET"; then
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13056 $as_echo "$CC_FOR_TARGET" >&6; }
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13059 $as_echo "no
" >&6; }
13064 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13066 set dummy ${ncn_progname}; ac_word=$2
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13068 $as_echo_n "checking
for $ac_word...
" >&6; }
13069 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13070 $as_echo_n "(cached
) " >&6
13072 if test -n "$CC_FOR_TARGET"; then
13073 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13076 for as_dir in $PATH
13079 test -z "$as_dir" && as_dir=.
13080 for ac_exec_ext in '' $ac_executable_extensions; do
13081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13082 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13083 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13092 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13093 if test -n "$CC_FOR_TARGET"; then
13094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13095 $as_echo "$CC_FOR_TARGET" >&6; }
13097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13098 $as_echo "no
" >&6; }
13103 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13107 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13109 if test $build = $target ; then
13112 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13115 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13120 if test -n "$CXX_FOR_TARGET"; then
13121 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13122 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13123 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13126 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13127 for ncn_progname in c++ g++ cxx gxx; do
13128 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13129 set dummy ${ncn_progname}; ac_word=$2
13130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13131 $as_echo_n "checking
for $ac_word...
" >&6; }
13132 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13133 $as_echo_n "(cached
) " >&6
13135 if test -n "$CXX_FOR_TARGET"; then
13136 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13139 for as_dir in $PATH
13142 test -z "$as_dir" && as_dir=.
13143 for ac_exec_ext in '' $ac_executable_extensions; do
13144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13145 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13146 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13155 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13156 if test -n "$CXX_FOR_TARGET"; then
13157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13158 $as_echo "$CXX_FOR_TARGET" >&6; }
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13161 $as_echo "no
" >&6; }
13168 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13169 for ncn_progname in c++ g++ cxx gxx; do
13170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13171 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13172 if test -x $with_build_time_tools/${ncn_progname}; then
13173 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13175 $as_echo "yes" >&6; }
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13179 $as_echo "no
" >&6; }
13184 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13185 for ncn_progname in c++ g++ cxx gxx; do
13186 if test -n "$ncn_target_tool_prefix"; then
13187 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13188 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13190 $as_echo_n "checking
for $ac_word...
" >&6; }
13191 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13192 $as_echo_n "(cached
) " >&6
13194 if test -n "$CXX_FOR_TARGET"; then
13195 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13197 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13198 for as_dir in $PATH
13201 test -z "$as_dir" && as_dir=.
13202 for ac_exec_ext in '' $ac_executable_extensions; do
13203 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13204 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13205 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13214 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13215 if test -n "$CXX_FOR_TARGET"; then
13216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13217 $as_echo "$CXX_FOR_TARGET" >&6; }
13219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13220 $as_echo "no
" >&6; }
13225 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13226 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13227 set dummy ${ncn_progname}; ac_word=$2
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13229 $as_echo_n "checking
for $ac_word...
" >&6; }
13230 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13231 $as_echo_n "(cached
) " >&6
13233 if test -n "$CXX_FOR_TARGET"; then
13234 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13237 for as_dir in $PATH
13240 test -z "$as_dir" && as_dir=.
13241 for ac_exec_ext in '' $ac_executable_extensions; do
13242 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13243 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13244 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13253 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13254 if test -n "$CXX_FOR_TARGET"; then
13255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13256 $as_echo "$CXX_FOR_TARGET" >&6; }
13258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13259 $as_echo "no
" >&6; }
13264 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13268 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13269 set dummy c++ g++ cxx gxx
13270 if test $build = $target ; then
13271 CXX_FOR_TARGET="$2"
13273 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13276 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13281 if test -n "$GCC_FOR_TARGET"; then
13282 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13283 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13284 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13287 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13288 for ncn_progname in gcc; do
13289 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13290 set dummy ${ncn_progname}; ac_word=$2
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13292 $as_echo_n "checking
for $ac_word...
" >&6; }
13293 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13294 $as_echo_n "(cached
) " >&6
13296 if test -n "$GCC_FOR_TARGET"; then
13297 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13300 for as_dir in $PATH
13303 test -z "$as_dir" && as_dir=.
13304 for ac_exec_ext in '' $ac_executable_extensions; do
13305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13306 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13307 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13316 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13317 if test -n "$GCC_FOR_TARGET"; then
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13319 $as_echo "$GCC_FOR_TARGET" >&6; }
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13322 $as_echo "no
" >&6; }
13329 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13330 for ncn_progname in gcc; do
13331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13332 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13333 if test -x $with_build_time_tools/${ncn_progname}; then
13334 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13336 $as_echo "yes" >&6; }
13339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13340 $as_echo "no
" >&6; }
13345 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13346 for ncn_progname in gcc; do
13347 if test -n "$ncn_target_tool_prefix"; then
13348 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13349 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13351 $as_echo_n "checking
for $ac_word...
" >&6; }
13352 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13353 $as_echo_n "(cached
) " >&6
13355 if test -n "$GCC_FOR_TARGET"; then
13356 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13359 for as_dir in $PATH
13362 test -z "$as_dir" && as_dir=.
13363 for ac_exec_ext in '' $ac_executable_extensions; do
13364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13365 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13366 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13375 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13376 if test -n "$GCC_FOR_TARGET"; then
13377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13378 $as_echo "$GCC_FOR_TARGET" >&6; }
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13381 $as_echo "no
" >&6; }
13386 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13387 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13388 set dummy ${ncn_progname}; ac_word=$2
13389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13390 $as_echo_n "checking
for $ac_word...
" >&6; }
13391 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13392 $as_echo_n "(cached
) " >&6
13394 if test -n "$GCC_FOR_TARGET"; then
13395 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13398 for as_dir in $PATH
13401 test -z "$as_dir" && as_dir=.
13402 for ac_exec_ext in '' $ac_executable_extensions; do
13403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13404 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13405 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13414 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13415 if test -n "$GCC_FOR_TARGET"; then
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13417 $as_echo "$GCC_FOR_TARGET" >&6; }
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13420 $as_echo "no
" >&6; }
13425 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13429 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13430 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13432 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13437 if test -n "$GFORTRAN_FOR_TARGET"; then
13438 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13439 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13440 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13443 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13444 for ncn_progname in gfortran; do
13445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13446 set dummy ${ncn_progname}; ac_word=$2
13447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13448 $as_echo_n "checking
for $ac_word...
" >&6; }
13449 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13450 $as_echo_n "(cached
) " >&6
13452 if test -n "$GFORTRAN_FOR_TARGET"; then
13453 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13456 for as_dir in $PATH
13459 test -z "$as_dir" && as_dir=.
13460 for ac_exec_ext in '' $ac_executable_extensions; do
13461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13462 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13463 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13472 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13473 if test -n "$GFORTRAN_FOR_TARGET"; then
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13475 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13478 $as_echo "no
" >&6; }
13485 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13486 for ncn_progname in gfortran; do
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13488 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13489 if test -x $with_build_time_tools/${ncn_progname}; then
13490 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13492 $as_echo "yes" >&6; }
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13496 $as_echo "no
" >&6; }
13501 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13502 for ncn_progname in gfortran; do
13503 if test -n "$ncn_target_tool_prefix"; then
13504 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13505 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13507 $as_echo_n "checking
for $ac_word...
" >&6; }
13508 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13509 $as_echo_n "(cached
) " >&6
13511 if test -n "$GFORTRAN_FOR_TARGET"; then
13512 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13515 for as_dir in $PATH
13518 test -z "$as_dir" && as_dir=.
13519 for ac_exec_ext in '' $ac_executable_extensions; do
13520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13521 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13522 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13531 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13532 if test -n "$GFORTRAN_FOR_TARGET"; then
13533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13534 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13537 $as_echo "no
" >&6; }
13542 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13544 set dummy ${ncn_progname}; ac_word=$2
13545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13546 $as_echo_n "checking
for $ac_word...
" >&6; }
13547 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13548 $as_echo_n "(cached
) " >&6
13550 if test -n "$GFORTRAN_FOR_TARGET"; then
13551 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13554 for as_dir in $PATH
13557 test -z "$as_dir" && as_dir=.
13558 for ac_exec_ext in '' $ac_executable_extensions; do
13559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13560 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13561 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13570 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13571 if test -n "$GFORTRAN_FOR_TARGET"; then
13572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13573 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13576 $as_echo "no
" >&6; }
13581 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13585 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13587 if test $build = $target ; then
13588 GFORTRAN_FOR_TARGET="$2"
13590 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13593 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13598 if test -n "$GOC_FOR_TARGET"; then
13599 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13600 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13601 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13604 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13605 for ncn_progname in gccgo; do
13606 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13607 set dummy ${ncn_progname}; ac_word=$2
13608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13609 $as_echo_n "checking
for $ac_word...
" >&6; }
13610 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13611 $as_echo_n "(cached
) " >&6
13613 if test -n "$GOC_FOR_TARGET"; then
13614 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13617 for as_dir in $PATH
13620 test -z "$as_dir" && as_dir=.
13621 for ac_exec_ext in '' $ac_executable_extensions; do
13622 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13623 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13624 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13633 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13634 if test -n "$GOC_FOR_TARGET"; then
13635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13636 $as_echo "$GOC_FOR_TARGET" >&6; }
13638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13639 $as_echo "no
" >&6; }
13646 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13647 for ncn_progname in gccgo; do
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13649 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13650 if test -x $with_build_time_tools/${ncn_progname}; then
13651 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13653 $as_echo "yes" >&6; }
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13657 $as_echo "no
" >&6; }
13662 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13663 for ncn_progname in gccgo; do
13664 if test -n "$ncn_target_tool_prefix"; then
13665 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13666 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13668 $as_echo_n "checking
for $ac_word...
" >&6; }
13669 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13670 $as_echo_n "(cached
) " >&6
13672 if test -n "$GOC_FOR_TARGET"; then
13673 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13676 for as_dir in $PATH
13679 test -z "$as_dir" && as_dir=.
13680 for ac_exec_ext in '' $ac_executable_extensions; do
13681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13682 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13683 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13692 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13693 if test -n "$GOC_FOR_TARGET"; then
13694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13695 $as_echo "$GOC_FOR_TARGET" >&6; }
13697 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13698 $as_echo "no
" >&6; }
13703 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13704 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13705 set dummy ${ncn_progname}; ac_word=$2
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13707 $as_echo_n "checking
for $ac_word...
" >&6; }
13708 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13709 $as_echo_n "(cached
) " >&6
13711 if test -n "$GOC_FOR_TARGET"; then
13712 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13715 for as_dir in $PATH
13718 test -z "$as_dir" && as_dir=.
13719 for ac_exec_ext in '' $ac_executable_extensions; do
13720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13721 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13722 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13731 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13732 if test -n "$GOC_FOR_TARGET"; then
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13734 $as_echo "$GOC_FOR_TARGET" >&6; }
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13737 $as_echo "no
" >&6; }
13742 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13746 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13748 if test $build = $target ; then
13749 GOC_FOR_TARGET="$2"
13751 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13754 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13759 if test -n "$GDC_FOR_TARGET"; then
13760 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13761 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13762 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13765 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13766 for ncn_progname in gdc; do
13767 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13768 set dummy ${ncn_progname}; ac_word=$2
13769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13770 $as_echo_n "checking
for $ac_word...
" >&6; }
13771 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13772 $as_echo_n "(cached
) " >&6
13774 if test -n "$GDC_FOR_TARGET"; then
13775 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13778 for as_dir in $PATH
13781 test -z "$as_dir" && as_dir=.
13782 for ac_exec_ext in '' $ac_executable_extensions; do
13783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13784 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13785 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13794 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13795 if test -n "$GDC_FOR_TARGET"; then
13796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13797 $as_echo "$GDC_FOR_TARGET" >&6; }
13799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13800 $as_echo "no
" >&6; }
13807 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13808 for ncn_progname in gdc; do
13809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13810 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13811 if test -x $with_build_time_tools/${ncn_progname}; then
13812 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13814 $as_echo "yes" >&6; }
13817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13818 $as_echo "no
" >&6; }
13823 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13824 for ncn_progname in gdc; do
13825 if test -n "$ncn_target_tool_prefix"; then
13826 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13827 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13829 $as_echo_n "checking
for $ac_word...
" >&6; }
13830 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13831 $as_echo_n "(cached
) " >&6
13833 if test -n "$GDC_FOR_TARGET"; then
13834 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13837 for as_dir in $PATH
13840 test -z "$as_dir" && as_dir=.
13841 for ac_exec_ext in '' $ac_executable_extensions; do
13842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13843 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13844 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13853 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13854 if test -n "$GDC_FOR_TARGET"; then
13855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13856 $as_echo "$GDC_FOR_TARGET" >&6; }
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13859 $as_echo "no
" >&6; }
13864 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13865 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13866 set dummy ${ncn_progname}; ac_word=$2
13867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13868 $as_echo_n "checking
for $ac_word...
" >&6; }
13869 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13870 $as_echo_n "(cached
) " >&6
13872 if test -n "$GDC_FOR_TARGET"; then
13873 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13876 for as_dir in $PATH
13879 test -z "$as_dir" && as_dir=.
13880 for ac_exec_ext in '' $ac_executable_extensions; do
13881 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13882 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13883 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13892 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13893 if test -n "$GDC_FOR_TARGET"; then
13894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13895 $as_echo "$GDC_FOR_TARGET" >&6; }
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13898 $as_echo "no
" >&6; }
13903 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13907 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13909 if test $build = $target ; then
13910 GDC_FOR_TARGET="$2"
13912 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13915 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13920 cat > conftest.c << \EOF
13925 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13926 have_gcc_for_target=yes
13928 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13929 have_gcc_for_target=no
13936 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13937 if test -n "$with_build_time_tools"; then
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
13939 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
13940 if test -x $with_build_time_tools/ar; then
13941 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13942 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
13944 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13947 $as_echo "no
" >&6; }
13949 elif test $build != $host && test $have_gcc_for_target = yes; then
13950 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13951 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13952 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13955 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13956 # Extract the first word of "ar", so it can be a program name with args.
13957 set dummy ar; ac_word=$2
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13959 $as_echo_n "checking
for $ac_word...
" >&6; }
13960 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13961 $as_echo_n "(cached
) " >&6
13963 case $AR_FOR_TARGET in
13965 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13969 for as_dir in $gcc_cv_tool_dirs
13972 test -z "$as_dir" && as_dir=.
13973 for ac_exec_ext in '' $ac_executable_extensions; do
13974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13975 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13976 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13986 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13987 if test -n "$AR_FOR_TARGET"; then
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13989 $as_echo "$AR_FOR_TARGET" >&6; }
13991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13992 $as_echo "no
" >&6; }
13997 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14000 if test -n "$AR_FOR_TARGET"; then
14001 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14002 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14003 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14006 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14007 for ncn_progname in ar; do
14008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14009 set dummy ${ncn_progname}; ac_word=$2
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14011 $as_echo_n "checking
for $ac_word...
" >&6; }
14012 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14013 $as_echo_n "(cached
) " >&6
14015 if test -n "$AR_FOR_TARGET"; then
14016 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14019 for as_dir in $PATH
14022 test -z "$as_dir" && as_dir=.
14023 for ac_exec_ext in '' $ac_executable_extensions; do
14024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14025 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14026 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14035 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14036 if test -n "$AR_FOR_TARGET"; then
14037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14038 $as_echo "$AR_FOR_TARGET" >&6; }
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14041 $as_echo "no
" >&6; }
14048 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14049 for ncn_progname in ar; do
14050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14051 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14052 if test -x $with_build_time_tools/${ncn_progname}; then
14053 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14054 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14055 $as_echo "yes" >&6; }
14058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14059 $as_echo "no
" >&6; }
14064 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14065 for ncn_progname in ar; do
14066 if test -n "$ncn_target_tool_prefix"; then
14067 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14068 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14070 $as_echo_n "checking
for $ac_word...
" >&6; }
14071 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14072 $as_echo_n "(cached
) " >&6
14074 if test -n "$AR_FOR_TARGET"; then
14075 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14078 for as_dir in $PATH
14081 test -z "$as_dir" && as_dir=.
14082 for ac_exec_ext in '' $ac_executable_extensions; do
14083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14084 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14085 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14094 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14095 if test -n "$AR_FOR_TARGET"; then
14096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14097 $as_echo "$AR_FOR_TARGET" >&6; }
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14100 $as_echo "no
" >&6; }
14105 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14106 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14107 set dummy ${ncn_progname}; ac_word=$2
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14109 $as_echo_n "checking
for $ac_word...
" >&6; }
14110 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14111 $as_echo_n "(cached
) " >&6
14113 if test -n "$AR_FOR_TARGET"; then
14114 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14117 for as_dir in $PATH
14120 test -z "$as_dir" && as_dir=.
14121 for ac_exec_ext in '' $ac_executable_extensions; do
14122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14123 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14124 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14133 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14134 if test -n "$AR_FOR_TARGET"; then
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14136 $as_echo "$AR_FOR_TARGET" >&6; }
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14139 $as_echo "no
" >&6; }
14144 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14148 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14150 if test $build = $target ; then
14153 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14156 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14160 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14166 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14167 if test -n "$with_build_time_tools"; then
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14169 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14170 if test -x $with_build_time_tools/as; then
14171 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14172 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14174 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14177 $as_echo "no
" >&6; }
14179 elif test $build != $host && test $have_gcc_for_target = yes; then
14180 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14181 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14182 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14185 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14186 # Extract the first word of "as
", so it can be a program name with args.
14187 set dummy as; ac_word=$2
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14189 $as_echo_n "checking
for $ac_word...
" >&6; }
14190 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14191 $as_echo_n "(cached
) " >&6
14193 case $AS_FOR_TARGET in
14195 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14199 for as_dir in $gcc_cv_tool_dirs
14202 test -z "$as_dir" && as_dir=.
14203 for ac_exec_ext in '' $ac_executable_extensions; do
14204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14205 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14206 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14216 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14217 if test -n "$AS_FOR_TARGET"; then
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14219 $as_echo "$AS_FOR_TARGET" >&6; }
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14222 $as_echo "no
" >&6; }
14227 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14230 if test -n "$AS_FOR_TARGET"; then
14231 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14232 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14233 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14236 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14237 for ncn_progname in as; do
14238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14239 set dummy ${ncn_progname}; ac_word=$2
14240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14241 $as_echo_n "checking
for $ac_word...
" >&6; }
14242 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14243 $as_echo_n "(cached
) " >&6
14245 if test -n "$AS_FOR_TARGET"; then
14246 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14249 for as_dir in $PATH
14252 test -z "$as_dir" && as_dir=.
14253 for ac_exec_ext in '' $ac_executable_extensions; do
14254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14255 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14256 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14265 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14266 if test -n "$AS_FOR_TARGET"; then
14267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14268 $as_echo "$AS_FOR_TARGET" >&6; }
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14271 $as_echo "no
" >&6; }
14278 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14279 for ncn_progname in as; do
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14281 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14282 if test -x $with_build_time_tools/${ncn_progname}; then
14283 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14285 $as_echo "yes" >&6; }
14288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14289 $as_echo "no
" >&6; }
14294 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14295 for ncn_progname in as; do
14296 if test -n "$ncn_target_tool_prefix"; then
14297 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14298 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14300 $as_echo_n "checking
for $ac_word...
" >&6; }
14301 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14302 $as_echo_n "(cached
) " >&6
14304 if test -n "$AS_FOR_TARGET"; then
14305 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14308 for as_dir in $PATH
14311 test -z "$as_dir" && as_dir=.
14312 for ac_exec_ext in '' $ac_executable_extensions; do
14313 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14314 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14315 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14324 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14325 if test -n "$AS_FOR_TARGET"; then
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14327 $as_echo "$AS_FOR_TARGET" >&6; }
14329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14330 $as_echo "no
" >&6; }
14335 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14336 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14337 set dummy ${ncn_progname}; ac_word=$2
14338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14339 $as_echo_n "checking
for $ac_word...
" >&6; }
14340 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14341 $as_echo_n "(cached
) " >&6
14343 if test -n "$AS_FOR_TARGET"; then
14344 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14347 for as_dir in $PATH
14350 test -z "$as_dir" && as_dir=.
14351 for ac_exec_ext in '' $ac_executable_extensions; do
14352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14353 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14354 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14363 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14364 if test -n "$AS_FOR_TARGET"; then
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14366 $as_echo "$AS_FOR_TARGET" >&6; }
14368 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14369 $as_echo "no
" >&6; }
14374 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14378 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14380 if test $build = $target ; then
14383 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14386 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14390 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14396 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14397 if test -n "$with_build_time_tools"; then
14398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14399 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14400 if test -x $with_build_time_tools/dlltool; then
14401 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14402 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14404 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14407 $as_echo "no
" >&6; }
14409 elif test $build != $host && test $have_gcc_for_target = yes; then
14410 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14411 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14412 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14415 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14416 # Extract the first word of "dlltool
", so it can be a program name with args.
14417 set dummy dlltool; ac_word=$2
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14419 $as_echo_n "checking
for $ac_word...
" >&6; }
14420 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14421 $as_echo_n "(cached
) " >&6
14423 case $DLLTOOL_FOR_TARGET in
14425 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14429 for as_dir in $gcc_cv_tool_dirs
14432 test -z "$as_dir" && as_dir=.
14433 for ac_exec_ext in '' $ac_executable_extensions; do
14434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14435 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14436 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14446 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14447 if test -n "$DLLTOOL_FOR_TARGET"; then
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14449 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14452 $as_echo "no
" >&6; }
14457 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14460 if test -n "$DLLTOOL_FOR_TARGET"; then
14461 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14462 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14463 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14466 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14467 for ncn_progname in dlltool; do
14468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14469 set dummy ${ncn_progname}; ac_word=$2
14470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14471 $as_echo_n "checking
for $ac_word...
" >&6; }
14472 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14473 $as_echo_n "(cached
) " >&6
14475 if test -n "$DLLTOOL_FOR_TARGET"; then
14476 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14479 for as_dir in $PATH
14482 test -z "$as_dir" && as_dir=.
14483 for ac_exec_ext in '' $ac_executable_extensions; do
14484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14485 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14486 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14495 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14496 if test -n "$DLLTOOL_FOR_TARGET"; then
14497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14498 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14501 $as_echo "no
" >&6; }
14508 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14509 for ncn_progname in dlltool; do
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14511 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14512 if test -x $with_build_time_tools/${ncn_progname}; then
14513 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14515 $as_echo "yes" >&6; }
14518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14519 $as_echo "no
" >&6; }
14524 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14525 for ncn_progname in dlltool; do
14526 if test -n "$ncn_target_tool_prefix"; then
14527 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14528 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14530 $as_echo_n "checking
for $ac_word...
" >&6; }
14531 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14532 $as_echo_n "(cached
) " >&6
14534 if test -n "$DLLTOOL_FOR_TARGET"; then
14535 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14537 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14538 for as_dir in $PATH
14541 test -z "$as_dir" && as_dir=.
14542 for ac_exec_ext in '' $ac_executable_extensions; do
14543 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14544 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14545 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14554 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14555 if test -n "$DLLTOOL_FOR_TARGET"; then
14556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14557 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14560 $as_echo "no
" >&6; }
14565 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14566 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14567 set dummy ${ncn_progname}; ac_word=$2
14568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14569 $as_echo_n "checking
for $ac_word...
" >&6; }
14570 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14571 $as_echo_n "(cached
) " >&6
14573 if test -n "$DLLTOOL_FOR_TARGET"; then
14574 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14577 for as_dir in $PATH
14580 test -z "$as_dir" && as_dir=.
14581 for ac_exec_ext in '' $ac_executable_extensions; do
14582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14583 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14584 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14593 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14594 if test -n "$DLLTOOL_FOR_TARGET"; then
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14596 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14599 $as_echo "no
" >&6; }
14604 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14608 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14610 if test $build = $target ; then
14611 DLLTOOL_FOR_TARGET="$2"
14613 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14616 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14620 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14626 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14627 if test -n "$with_build_time_tools"; then
14628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
14629 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
14630 if test -x $with_build_time_tools/dsymutil; then
14631 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14632 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14634 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14637 $as_echo "no
" >&6; }
14639 elif test $build != $host && test $have_gcc_for_target = yes; then
14640 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14641 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14642 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14645 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14646 # Extract the first word of "dsymutil
", so it can be a program name with args.
14647 set dummy dsymutil; ac_word=$2
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14649 $as_echo_n "checking
for $ac_word...
" >&6; }
14650 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14651 $as_echo_n "(cached
) " >&6
14653 case $DSYMUTIL_FOR_TARGET in
14655 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14659 for as_dir in $gcc_cv_tool_dirs
14662 test -z "$as_dir" && as_dir=.
14663 for ac_exec_ext in '' $ac_executable_extensions; do
14664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14665 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14666 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14676 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14677 if test -n "$DSYMUTIL_FOR_TARGET"; then
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14679 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14682 $as_echo "no
" >&6; }
14687 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14690 if test -n "$DSYMUTIL_FOR_TARGET"; then
14691 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14692 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14693 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14696 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14697 for ncn_progname in dsymutil; do
14698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14699 set dummy ${ncn_progname}; ac_word=$2
14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14701 $as_echo_n "checking
for $ac_word...
" >&6; }
14702 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14703 $as_echo_n "(cached
) " >&6
14705 if test -n "$DSYMUTIL_FOR_TARGET"; then
14706 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14709 for as_dir in $PATH
14712 test -z "$as_dir" && as_dir=.
14713 for ac_exec_ext in '' $ac_executable_extensions; do
14714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14715 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14716 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14725 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14726 if test -n "$DSYMUTIL_FOR_TARGET"; then
14727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14728 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14731 $as_echo "no
" >&6; }
14738 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14739 for ncn_progname in dsymutil; do
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14741 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14742 if test -x $with_build_time_tools/${ncn_progname}; then
14743 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14745 $as_echo "yes" >&6; }
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14749 $as_echo "no
" >&6; }
14754 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14755 for ncn_progname in dsymutil; do
14756 if test -n "$ncn_target_tool_prefix"; then
14757 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14758 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14760 $as_echo_n "checking
for $ac_word...
" >&6; }
14761 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14762 $as_echo_n "(cached
) " >&6
14764 if test -n "$DSYMUTIL_FOR_TARGET"; then
14765 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14768 for as_dir in $PATH
14771 test -z "$as_dir" && as_dir=.
14772 for ac_exec_ext in '' $ac_executable_extensions; do
14773 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14774 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14775 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14784 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14785 if test -n "$DSYMUTIL_FOR_TARGET"; then
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14787 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14790 $as_echo "no
" >&6; }
14795 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14796 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14797 set dummy ${ncn_progname}; ac_word=$2
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14799 $as_echo_n "checking
for $ac_word...
" >&6; }
14800 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14801 $as_echo_n "(cached
) " >&6
14803 if test -n "$DSYMUTIL_FOR_TARGET"; then
14804 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14807 for as_dir in $PATH
14810 test -z "$as_dir" && as_dir=.
14811 for ac_exec_ext in '' $ac_executable_extensions; do
14812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14813 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14814 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14823 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14824 if test -n "$DSYMUTIL_FOR_TARGET"; then
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14826 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14829 $as_echo "no
" >&6; }
14834 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14838 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14840 if test $build = $target ; then
14841 DSYMUTIL_FOR_TARGET="$2"
14843 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14846 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14850 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14856 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14857 if test -n "$with_build_time_tools"; then
14858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
14859 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
14860 if test -x $with_build_time_tools/ld; then
14861 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14862 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
14864 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14867 $as_echo "no
" >&6; }
14869 elif test $build != $host && test $have_gcc_for_target = yes; then
14870 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14871 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14872 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14875 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14876 # Extract the first word of "ld
", so it can be a program name with args.
14877 set dummy ld; ac_word=$2
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14879 $as_echo_n "checking
for $ac_word...
" >&6; }
14880 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14881 $as_echo_n "(cached
) " >&6
14883 case $LD_FOR_TARGET in
14885 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14889 for as_dir in $gcc_cv_tool_dirs
14892 test -z "$as_dir" && as_dir=.
14893 for ac_exec_ext in '' $ac_executable_extensions; do
14894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14895 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14896 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14906 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14907 if test -n "$LD_FOR_TARGET"; then
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14909 $as_echo "$LD_FOR_TARGET" >&6; }
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14912 $as_echo "no
" >&6; }
14917 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14920 if test -n "$LD_FOR_TARGET"; then
14921 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14922 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14923 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14926 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14927 for ncn_progname in ld; do
14928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14929 set dummy ${ncn_progname}; ac_word=$2
14930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14931 $as_echo_n "checking
for $ac_word...
" >&6; }
14932 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14933 $as_echo_n "(cached
) " >&6
14935 if test -n "$LD_FOR_TARGET"; then
14936 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14939 for as_dir in $PATH
14942 test -z "$as_dir" && as_dir=.
14943 for ac_exec_ext in '' $ac_executable_extensions; do
14944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14945 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14946 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14955 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14956 if test -n "$LD_FOR_TARGET"; then
14957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14958 $as_echo "$LD_FOR_TARGET" >&6; }
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14961 $as_echo "no
" >&6; }
14968 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14969 for ncn_progname in ld; do
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14971 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14972 if test -x $with_build_time_tools/${ncn_progname}; then
14973 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14975 $as_echo "yes" >&6; }
14978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14979 $as_echo "no
" >&6; }
14984 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14985 for ncn_progname in ld; do
14986 if test -n "$ncn_target_tool_prefix"; then
14987 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14988 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14990 $as_echo_n "checking
for $ac_word...
" >&6; }
14991 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14992 $as_echo_n "(cached
) " >&6
14994 if test -n "$LD_FOR_TARGET"; then
14995 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14998 for as_dir in $PATH
15001 test -z "$as_dir" && as_dir=.
15002 for ac_exec_ext in '' $ac_executable_extensions; do
15003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15004 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15005 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15014 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15015 if test -n "$LD_FOR_TARGET"; then
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15017 $as_echo "$LD_FOR_TARGET" >&6; }
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15020 $as_echo "no
" >&6; }
15025 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15026 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15027 set dummy ${ncn_progname}; ac_word=$2
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15029 $as_echo_n "checking
for $ac_word...
" >&6; }
15030 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15031 $as_echo_n "(cached
) " >&6
15033 if test -n "$LD_FOR_TARGET"; then
15034 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15037 for as_dir in $PATH
15040 test -z "$as_dir" && as_dir=.
15041 for ac_exec_ext in '' $ac_executable_extensions; do
15042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15043 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15044 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15053 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15054 if test -n "$LD_FOR_TARGET"; then
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15056 $as_echo "$LD_FOR_TARGET" >&6; }
15058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15059 $as_echo "no
" >&6; }
15064 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15068 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15070 if test $build = $target ; then
15073 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15076 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15080 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15086 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15087 if test -n "$with_build_time_tools"; then
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
15089 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
15090 if test -x $with_build_time_tools/lipo; then
15091 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15092 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
15094 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15097 $as_echo "no
" >&6; }
15099 elif test $build != $host && test $have_gcc_for_target = yes; then
15100 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15101 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15102 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15105 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15106 # Extract the first word of "lipo
", so it can be a program name with args.
15107 set dummy lipo; ac_word=$2
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15109 $as_echo_n "checking
for $ac_word...
" >&6; }
15110 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15111 $as_echo_n "(cached
) " >&6
15113 case $LIPO_FOR_TARGET in
15115 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15119 for as_dir in $gcc_cv_tool_dirs
15122 test -z "$as_dir" && as_dir=.
15123 for ac_exec_ext in '' $ac_executable_extensions; do
15124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15125 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15126 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15136 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15137 if test -n "$LIPO_FOR_TARGET"; then
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15139 $as_echo "$LIPO_FOR_TARGET" >&6; }
15141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15142 $as_echo "no
" >&6; }
15147 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15150 if test -n "$LIPO_FOR_TARGET"; then
15151 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15152 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15153 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15156 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15157 for ncn_progname in lipo; do
15158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15159 set dummy ${ncn_progname}; ac_word=$2
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15161 $as_echo_n "checking
for $ac_word...
" >&6; }
15162 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15163 $as_echo_n "(cached
) " >&6
15165 if test -n "$LIPO_FOR_TARGET"; then
15166 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15169 for as_dir in $PATH
15172 test -z "$as_dir" && as_dir=.
15173 for ac_exec_ext in '' $ac_executable_extensions; do
15174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15175 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15176 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15185 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15186 if test -n "$LIPO_FOR_TARGET"; then
15187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15188 $as_echo "$LIPO_FOR_TARGET" >&6; }
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15191 $as_echo "no
" >&6; }
15198 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15199 for ncn_progname in lipo; do
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15201 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15202 if test -x $with_build_time_tools/${ncn_progname}; then
15203 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15205 $as_echo "yes" >&6; }
15208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15209 $as_echo "no
" >&6; }
15214 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15215 for ncn_progname in lipo; do
15216 if test -n "$ncn_target_tool_prefix"; then
15217 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15218 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15220 $as_echo_n "checking
for $ac_word...
" >&6; }
15221 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15222 $as_echo_n "(cached
) " >&6
15224 if test -n "$LIPO_FOR_TARGET"; then
15225 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15228 for as_dir in $PATH
15231 test -z "$as_dir" && as_dir=.
15232 for ac_exec_ext in '' $ac_executable_extensions; do
15233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15234 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15235 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15244 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15245 if test -n "$LIPO_FOR_TARGET"; then
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15247 $as_echo "$LIPO_FOR_TARGET" >&6; }
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15250 $as_echo "no
" >&6; }
15255 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15257 set dummy ${ncn_progname}; ac_word=$2
15258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15259 $as_echo_n "checking
for $ac_word...
" >&6; }
15260 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15261 $as_echo_n "(cached
) " >&6
15263 if test -n "$LIPO_FOR_TARGET"; then
15264 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15267 for as_dir in $PATH
15270 test -z "$as_dir" && as_dir=.
15271 for ac_exec_ext in '' $ac_executable_extensions; do
15272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15273 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15274 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15283 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15284 if test -n "$LIPO_FOR_TARGET"; then
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15286 $as_echo "$LIPO_FOR_TARGET" >&6; }
15288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15289 $as_echo "no
" >&6; }
15294 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15298 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15300 if test $build = $target ; then
15301 LIPO_FOR_TARGET="$2"
15303 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15306 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15310 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15316 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15317 if test -n "$with_build_time_tools"; then
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15319 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15320 if test -x $with_build_time_tools/nm; then
15321 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15322 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15324 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15327 $as_echo "no
" >&6; }
15329 elif test $build != $host && test $have_gcc_for_target = yes; then
15330 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15331 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15332 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15335 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15336 # Extract the first word of "nm
", so it can be a program name with args.
15337 set dummy nm; ac_word=$2
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15339 $as_echo_n "checking
for $ac_word...
" >&6; }
15340 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15341 $as_echo_n "(cached
) " >&6
15343 case $NM_FOR_TARGET in
15345 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15349 for as_dir in $gcc_cv_tool_dirs
15352 test -z "$as_dir" && as_dir=.
15353 for ac_exec_ext in '' $ac_executable_extensions; do
15354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15355 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15356 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15366 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15367 if test -n "$NM_FOR_TARGET"; then
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15369 $as_echo "$NM_FOR_TARGET" >&6; }
15371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15372 $as_echo "no
" >&6; }
15377 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15380 if test -n "$NM_FOR_TARGET"; then
15381 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15382 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15383 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15386 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15387 for ncn_progname in nm; do
15388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15389 set dummy ${ncn_progname}; ac_word=$2
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15391 $as_echo_n "checking
for $ac_word...
" >&6; }
15392 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15393 $as_echo_n "(cached
) " >&6
15395 if test -n "$NM_FOR_TARGET"; then
15396 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15399 for as_dir in $PATH
15402 test -z "$as_dir" && as_dir=.
15403 for ac_exec_ext in '' $ac_executable_extensions; do
15404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15405 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15406 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15415 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15416 if test -n "$NM_FOR_TARGET"; then
15417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15418 $as_echo "$NM_FOR_TARGET" >&6; }
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15421 $as_echo "no
" >&6; }
15428 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15429 for ncn_progname in nm; do
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15431 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15432 if test -x $with_build_time_tools/${ncn_progname}; then
15433 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15435 $as_echo "yes" >&6; }
15438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15439 $as_echo "no
" >&6; }
15444 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15445 for ncn_progname in nm; do
15446 if test -n "$ncn_target_tool_prefix"; then
15447 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15448 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15450 $as_echo_n "checking
for $ac_word...
" >&6; }
15451 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15452 $as_echo_n "(cached
) " >&6
15454 if test -n "$NM_FOR_TARGET"; then
15455 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15458 for as_dir in $PATH
15461 test -z "$as_dir" && as_dir=.
15462 for ac_exec_ext in '' $ac_executable_extensions; do
15463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15464 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15465 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15474 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15475 if test -n "$NM_FOR_TARGET"; then
15476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15477 $as_echo "$NM_FOR_TARGET" >&6; }
15479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15480 $as_echo "no
" >&6; }
15485 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15487 set dummy ${ncn_progname}; ac_word=$2
15488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15489 $as_echo_n "checking
for $ac_word...
" >&6; }
15490 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15491 $as_echo_n "(cached
) " >&6
15493 if test -n "$NM_FOR_TARGET"; then
15494 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15497 for as_dir in $PATH
15500 test -z "$as_dir" && as_dir=.
15501 for ac_exec_ext in '' $ac_executable_extensions; do
15502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15503 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15504 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15513 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15514 if test -n "$NM_FOR_TARGET"; then
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15516 $as_echo "$NM_FOR_TARGET" >&6; }
15518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15519 $as_echo "no
" >&6; }
15524 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15528 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15530 if test $build = $target ; then
15533 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15536 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15540 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15546 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15547 if test -n "$with_build_time_tools"; then
15548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15549 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15550 if test -x $with_build_time_tools/objcopy; then
15551 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15552 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15554 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15557 $as_echo "no
" >&6; }
15559 elif test $build != $host && test $have_gcc_for_target = yes; then
15560 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15561 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15562 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15565 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15566 # Extract the first word of "objcopy
", so it can be a program name with args.
15567 set dummy objcopy; ac_word=$2
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15569 $as_echo_n "checking
for $ac_word...
" >&6; }
15570 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15571 $as_echo_n "(cached
) " >&6
15573 case $OBJCOPY_FOR_TARGET in
15575 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15579 for as_dir in $gcc_cv_tool_dirs
15582 test -z "$as_dir" && as_dir=.
15583 for ac_exec_ext in '' $ac_executable_extensions; do
15584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15585 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15586 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15596 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15597 if test -n "$OBJCOPY_FOR_TARGET"; then
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15599 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15602 $as_echo "no
" >&6; }
15607 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15610 if test -n "$OBJCOPY_FOR_TARGET"; then
15611 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15612 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15613 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15616 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15617 for ncn_progname in objcopy; do
15618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15619 set dummy ${ncn_progname}; ac_word=$2
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15621 $as_echo_n "checking
for $ac_word...
" >&6; }
15622 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15623 $as_echo_n "(cached
) " >&6
15625 if test -n "$OBJCOPY_FOR_TARGET"; then
15626 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15629 for as_dir in $PATH
15632 test -z "$as_dir" && as_dir=.
15633 for ac_exec_ext in '' $ac_executable_extensions; do
15634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15635 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15636 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15645 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15646 if test -n "$OBJCOPY_FOR_TARGET"; then
15647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15648 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15651 $as_echo "no
" >&6; }
15658 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15659 for ncn_progname in objcopy; do
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15661 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15662 if test -x $with_build_time_tools/${ncn_progname}; then
15663 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15665 $as_echo "yes" >&6; }
15668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15669 $as_echo "no
" >&6; }
15674 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15675 for ncn_progname in objcopy; do
15676 if test -n "$ncn_target_tool_prefix"; then
15677 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15678 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15680 $as_echo_n "checking
for $ac_word...
" >&6; }
15681 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15682 $as_echo_n "(cached
) " >&6
15684 if test -n "$OBJCOPY_FOR_TARGET"; then
15685 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15688 for as_dir in $PATH
15691 test -z "$as_dir" && as_dir=.
15692 for ac_exec_ext in '' $ac_executable_extensions; do
15693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15694 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15695 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15704 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15705 if test -n "$OBJCOPY_FOR_TARGET"; then
15706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15707 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15710 $as_echo "no
" >&6; }
15715 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15717 set dummy ${ncn_progname}; ac_word=$2
15718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15719 $as_echo_n "checking
for $ac_word...
" >&6; }
15720 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15721 $as_echo_n "(cached
) " >&6
15723 if test -n "$OBJCOPY_FOR_TARGET"; then
15724 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15727 for as_dir in $PATH
15730 test -z "$as_dir" && as_dir=.
15731 for ac_exec_ext in '' $ac_executable_extensions; do
15732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15733 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15734 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15743 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15744 if test -n "$OBJCOPY_FOR_TARGET"; then
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15746 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15749 $as_echo "no
" >&6; }
15754 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15758 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15760 if test $build = $target ; then
15761 OBJCOPY_FOR_TARGET="$2"
15763 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15766 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15770 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15776 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15777 if test -n "$with_build_time_tools"; then
15778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
15779 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
15780 if test -x $with_build_time_tools/objdump; then
15781 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15782 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15784 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15787 $as_echo "no
" >&6; }
15789 elif test $build != $host && test $have_gcc_for_target = yes; then
15790 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15791 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15792 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15795 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15796 # Extract the first word of "objdump
", so it can be a program name with args.
15797 set dummy objdump; ac_word=$2
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15799 $as_echo_n "checking
for $ac_word...
" >&6; }
15800 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15801 $as_echo_n "(cached
) " >&6
15803 case $OBJDUMP_FOR_TARGET in
15805 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15809 for as_dir in $gcc_cv_tool_dirs
15812 test -z "$as_dir" && as_dir=.
15813 for ac_exec_ext in '' $ac_executable_extensions; do
15814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15815 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15816 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15826 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15827 if test -n "$OBJDUMP_FOR_TARGET"; then
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15829 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15832 $as_echo "no
" >&6; }
15837 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15840 if test -n "$OBJDUMP_FOR_TARGET"; then
15841 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15842 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15843 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15846 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15847 for ncn_progname in objdump; do
15848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15849 set dummy ${ncn_progname}; ac_word=$2
15850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15851 $as_echo_n "checking
for $ac_word...
" >&6; }
15852 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15853 $as_echo_n "(cached
) " >&6
15855 if test -n "$OBJDUMP_FOR_TARGET"; then
15856 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15859 for as_dir in $PATH
15862 test -z "$as_dir" && as_dir=.
15863 for ac_exec_ext in '' $ac_executable_extensions; do
15864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15865 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15866 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15875 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15876 if test -n "$OBJDUMP_FOR_TARGET"; then
15877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15878 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15881 $as_echo "no
" >&6; }
15888 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15889 for ncn_progname in objdump; do
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15891 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15892 if test -x $with_build_time_tools/${ncn_progname}; then
15893 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15895 $as_echo "yes" >&6; }
15898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15899 $as_echo "no
" >&6; }
15904 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15905 for ncn_progname in objdump; do
15906 if test -n "$ncn_target_tool_prefix"; then
15907 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15908 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15910 $as_echo_n "checking
for $ac_word...
" >&6; }
15911 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15912 $as_echo_n "(cached
) " >&6
15914 if test -n "$OBJDUMP_FOR_TARGET"; then
15915 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15918 for as_dir in $PATH
15921 test -z "$as_dir" && as_dir=.
15922 for ac_exec_ext in '' $ac_executable_extensions; do
15923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15924 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15925 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15934 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15935 if test -n "$OBJDUMP_FOR_TARGET"; then
15936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15937 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15940 $as_echo "no
" >&6; }
15945 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15946 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15947 set dummy ${ncn_progname}; ac_word=$2
15948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15949 $as_echo_n "checking
for $ac_word...
" >&6; }
15950 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15951 $as_echo_n "(cached
) " >&6
15953 if test -n "$OBJDUMP_FOR_TARGET"; then
15954 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15957 for as_dir in $PATH
15960 test -z "$as_dir" && as_dir=.
15961 for ac_exec_ext in '' $ac_executable_extensions; do
15962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15963 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15964 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15973 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15974 if test -n "$OBJDUMP_FOR_TARGET"; then
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15976 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15979 $as_echo "no
" >&6; }
15984 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15988 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15990 if test $build = $target ; then
15991 OBJDUMP_FOR_TARGET="$2"
15993 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15996 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16000 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16006 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16007 if test -n "$with_build_time_tools"; then
16008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
16009 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
16010 if test -x $with_build_time_tools/otool; then
16011 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16012 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16014 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16017 $as_echo "no
" >&6; }
16019 elif test $build != $host && test $have_gcc_for_target = yes; then
16020 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16021 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16022 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16025 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16026 # Extract the first word of "otool
", so it can be a program name with args.
16027 set dummy otool; ac_word=$2
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16029 $as_echo_n "checking
for $ac_word...
" >&6; }
16030 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16031 $as_echo_n "(cached
) " >&6
16033 case $OTOOL_FOR_TARGET in
16035 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16039 for as_dir in $gcc_cv_tool_dirs
16042 test -z "$as_dir" && as_dir=.
16043 for ac_exec_ext in '' $ac_executable_extensions; do
16044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16045 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16046 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16056 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16057 if test -n "$OTOOL_FOR_TARGET"; then
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16059 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16062 $as_echo "no
" >&6; }
16067 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16070 if test -n "$OTOOL_FOR_TARGET"; then
16071 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16072 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16073 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16076 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16077 for ncn_progname in otool; do
16078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16079 set dummy ${ncn_progname}; ac_word=$2
16080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16081 $as_echo_n "checking
for $ac_word...
" >&6; }
16082 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16083 $as_echo_n "(cached
) " >&6
16085 if test -n "$OTOOL_FOR_TARGET"; then
16086 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16089 for as_dir in $PATH
16092 test -z "$as_dir" && as_dir=.
16093 for ac_exec_ext in '' $ac_executable_extensions; do
16094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16095 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16096 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16105 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16106 if test -n "$OTOOL_FOR_TARGET"; then
16107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16108 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16111 $as_echo "no
" >&6; }
16118 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16119 for ncn_progname in otool; do
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16121 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16122 if test -x $with_build_time_tools/${ncn_progname}; then
16123 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16125 $as_echo "yes" >&6; }
16128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16129 $as_echo "no
" >&6; }
16134 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16135 for ncn_progname in otool; do
16136 if test -n "$ncn_target_tool_prefix"; then
16137 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16138 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16140 $as_echo_n "checking
for $ac_word...
" >&6; }
16141 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16142 $as_echo_n "(cached
) " >&6
16144 if test -n "$OTOOL_FOR_TARGET"; then
16145 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16148 for as_dir in $PATH
16151 test -z "$as_dir" && as_dir=.
16152 for ac_exec_ext in '' $ac_executable_extensions; do
16153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16154 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16155 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16164 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16165 if test -n "$OTOOL_FOR_TARGET"; then
16166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16167 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16170 $as_echo "no
" >&6; }
16175 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16176 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16177 set dummy ${ncn_progname}; ac_word=$2
16178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16179 $as_echo_n "checking
for $ac_word...
" >&6; }
16180 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16181 $as_echo_n "(cached
) " >&6
16183 if test -n "$OTOOL_FOR_TARGET"; then
16184 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16187 for as_dir in $PATH
16190 test -z "$as_dir" && as_dir=.
16191 for ac_exec_ext in '' $ac_executable_extensions; do
16192 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16193 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16194 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16203 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16204 if test -n "$OTOOL_FOR_TARGET"; then
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16206 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16209 $as_echo "no
" >&6; }
16214 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16218 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16220 if test $build = $target ; then
16221 OTOOL_FOR_TARGET="$2"
16223 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16226 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16230 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16236 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16237 if test -n "$with_build_time_tools"; then
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16239 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16240 if test -x $with_build_time_tools/ranlib; then
16241 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16242 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16244 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16247 $as_echo "no
" >&6; }
16249 elif test $build != $host && test $have_gcc_for_target = yes; then
16250 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16251 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16252 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16255 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16256 # Extract the first word of "ranlib
", so it can be a program name with args.
16257 set dummy ranlib; ac_word=$2
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16259 $as_echo_n "checking
for $ac_word...
" >&6; }
16260 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16261 $as_echo_n "(cached
) " >&6
16263 case $RANLIB_FOR_TARGET in
16265 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16268 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16269 for as_dir in $gcc_cv_tool_dirs
16272 test -z "$as_dir" && as_dir=.
16273 for ac_exec_ext in '' $ac_executable_extensions; do
16274 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16275 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16276 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16286 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16287 if test -n "$RANLIB_FOR_TARGET"; then
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16289 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16292 $as_echo "no
" >&6; }
16297 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16300 if test -n "$RANLIB_FOR_TARGET"; then
16301 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16302 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16303 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16306 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16307 for ncn_progname in ranlib; do
16308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16309 set dummy ${ncn_progname}; ac_word=$2
16310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16311 $as_echo_n "checking
for $ac_word...
" >&6; }
16312 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16313 $as_echo_n "(cached
) " >&6
16315 if test -n "$RANLIB_FOR_TARGET"; then
16316 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16319 for as_dir in $PATH
16322 test -z "$as_dir" && as_dir=.
16323 for ac_exec_ext in '' $ac_executable_extensions; do
16324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16325 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16326 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16335 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16336 if test -n "$RANLIB_FOR_TARGET"; then
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16338 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16341 $as_echo "no
" >&6; }
16348 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16349 for ncn_progname in ranlib; do
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16351 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16352 if test -x $with_build_time_tools/${ncn_progname}; then
16353 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16355 $as_echo "yes" >&6; }
16358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16359 $as_echo "no
" >&6; }
16364 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16365 for ncn_progname in ranlib; do
16366 if test -n "$ncn_target_tool_prefix"; then
16367 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16368 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16370 $as_echo_n "checking
for $ac_word...
" >&6; }
16371 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16372 $as_echo_n "(cached
) " >&6
16374 if test -n "$RANLIB_FOR_TARGET"; then
16375 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16378 for as_dir in $PATH
16381 test -z "$as_dir" && as_dir=.
16382 for ac_exec_ext in '' $ac_executable_extensions; do
16383 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16384 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16385 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16394 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16395 if test -n "$RANLIB_FOR_TARGET"; then
16396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16397 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16400 $as_echo "no
" >&6; }
16405 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16406 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16407 set dummy ${ncn_progname}; ac_word=$2
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16409 $as_echo_n "checking
for $ac_word...
" >&6; }
16410 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16411 $as_echo_n "(cached
) " >&6
16413 if test -n "$RANLIB_FOR_TARGET"; then
16414 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16417 for as_dir in $PATH
16420 test -z "$as_dir" && as_dir=.
16421 for ac_exec_ext in '' $ac_executable_extensions; do
16422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16423 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16424 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16433 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16434 if test -n "$RANLIB_FOR_TARGET"; then
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16436 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16439 $as_echo "no
" >&6; }
16444 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16448 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16450 if test $build = $target ; then
16451 RANLIB_FOR_TARGET="$2"
16453 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16456 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16460 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16466 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16467 if test -n "$with_build_time_tools"; then
16468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16469 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16470 if test -x $with_build_time_tools/readelf; then
16471 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16472 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16474 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16477 $as_echo "no
" >&6; }
16479 elif test $build != $host && test $have_gcc_for_target = yes; then
16480 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16481 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16482 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16485 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16486 # Extract the first word of "readelf
", so it can be a program name with args.
16487 set dummy readelf; ac_word=$2
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16489 $as_echo_n "checking
for $ac_word...
" >&6; }
16490 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16491 $as_echo_n "(cached
) " >&6
16493 case $READELF_FOR_TARGET in
16495 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16499 for as_dir in $gcc_cv_tool_dirs
16502 test -z "$as_dir" && as_dir=.
16503 for ac_exec_ext in '' $ac_executable_extensions; do
16504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16505 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16506 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16516 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16517 if test -n "$READELF_FOR_TARGET"; then
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16519 $as_echo "$READELF_FOR_TARGET" >&6; }
16521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16522 $as_echo "no
" >&6; }
16527 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16530 if test -n "$READELF_FOR_TARGET"; then
16531 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16532 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16533 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16536 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16537 for ncn_progname in readelf; do
16538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16539 set dummy ${ncn_progname}; ac_word=$2
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16541 $as_echo_n "checking
for $ac_word...
" >&6; }
16542 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16543 $as_echo_n "(cached
) " >&6
16545 if test -n "$READELF_FOR_TARGET"; then
16546 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16549 for as_dir in $PATH
16552 test -z "$as_dir" && as_dir=.
16553 for ac_exec_ext in '' $ac_executable_extensions; do
16554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16555 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16556 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16565 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16566 if test -n "$READELF_FOR_TARGET"; then
16567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16568 $as_echo "$READELF_FOR_TARGET" >&6; }
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16571 $as_echo "no
" >&6; }
16578 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16579 for ncn_progname in readelf; do
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16581 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16582 if test -x $with_build_time_tools/${ncn_progname}; then
16583 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16585 $as_echo "yes" >&6; }
16588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16589 $as_echo "no
" >&6; }
16594 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16595 for ncn_progname in readelf; do
16596 if test -n "$ncn_target_tool_prefix"; then
16597 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16598 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16600 $as_echo_n "checking
for $ac_word...
" >&6; }
16601 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16602 $as_echo_n "(cached
) " >&6
16604 if test -n "$READELF_FOR_TARGET"; then
16605 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16608 for as_dir in $PATH
16611 test -z "$as_dir" && as_dir=.
16612 for ac_exec_ext in '' $ac_executable_extensions; do
16613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16614 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16615 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16624 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16625 if test -n "$READELF_FOR_TARGET"; then
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16627 $as_echo "$READELF_FOR_TARGET" >&6; }
16629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16630 $as_echo "no
" >&6; }
16635 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16636 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16637 set dummy ${ncn_progname}; ac_word=$2
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16639 $as_echo_n "checking
for $ac_word...
" >&6; }
16640 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16641 $as_echo_n "(cached
) " >&6
16643 if test -n "$READELF_FOR_TARGET"; then
16644 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16647 for as_dir in $PATH
16650 test -z "$as_dir" && as_dir=.
16651 for ac_exec_ext in '' $ac_executable_extensions; do
16652 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16653 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16654 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16663 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16664 if test -n "$READELF_FOR_TARGET"; then
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16666 $as_echo "$READELF_FOR_TARGET" >&6; }
16668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16669 $as_echo "no
" >&6; }
16674 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16678 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16680 if test $build = $target ; then
16681 READELF_FOR_TARGET="$2"
16683 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16686 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16690 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16696 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16697 if test -n "$with_build_time_tools"; then
16698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
16699 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
16700 if test -x $with_build_time_tools/strip; then
16701 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16702 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
16704 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16707 $as_echo "no
" >&6; }
16709 elif test $build != $host && test $have_gcc_for_target = yes; then
16710 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16711 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16712 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16715 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16716 # Extract the first word of "strip
", so it can be a program name with args.
16717 set dummy strip; ac_word=$2
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16719 $as_echo_n "checking
for $ac_word...
" >&6; }
16720 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16721 $as_echo_n "(cached
) " >&6
16723 case $STRIP_FOR_TARGET in
16725 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16729 for as_dir in $gcc_cv_tool_dirs
16732 test -z "$as_dir" && as_dir=.
16733 for ac_exec_ext in '' $ac_executable_extensions; do
16734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16735 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16736 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16746 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16747 if test -n "$STRIP_FOR_TARGET"; then
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16749 $as_echo "$STRIP_FOR_TARGET" >&6; }
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16752 $as_echo "no
" >&6; }
16757 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16760 if test -n "$STRIP_FOR_TARGET"; then
16761 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16762 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16763 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16766 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16767 for ncn_progname in strip; do
16768 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16769 set dummy ${ncn_progname}; ac_word=$2
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16771 $as_echo_n "checking
for $ac_word...
" >&6; }
16772 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16773 $as_echo_n "(cached
) " >&6
16775 if test -n "$STRIP_FOR_TARGET"; then
16776 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16779 for as_dir in $PATH
16782 test -z "$as_dir" && as_dir=.
16783 for ac_exec_ext in '' $ac_executable_extensions; do
16784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16785 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16786 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16795 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16796 if test -n "$STRIP_FOR_TARGET"; then
16797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16798 $as_echo "$STRIP_FOR_TARGET" >&6; }
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16801 $as_echo "no
" >&6; }
16808 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16809 for ncn_progname in strip; do
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16811 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16812 if test -x $with_build_time_tools/${ncn_progname}; then
16813 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16815 $as_echo "yes" >&6; }
16818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16819 $as_echo "no
" >&6; }
16824 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16825 for ncn_progname in strip; do
16826 if test -n "$ncn_target_tool_prefix"; then
16827 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16828 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16830 $as_echo_n "checking
for $ac_word...
" >&6; }
16831 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16832 $as_echo_n "(cached
) " >&6
16834 if test -n "$STRIP_FOR_TARGET"; then
16835 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16838 for as_dir in $PATH
16841 test -z "$as_dir" && as_dir=.
16842 for ac_exec_ext in '' $ac_executable_extensions; do
16843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16844 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16845 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16854 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16855 if test -n "$STRIP_FOR_TARGET"; then
16856 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16857 $as_echo "$STRIP_FOR_TARGET" >&6; }
16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16860 $as_echo "no
" >&6; }
16865 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16866 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16867 set dummy ${ncn_progname}; ac_word=$2
16868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16869 $as_echo_n "checking
for $ac_word...
" >&6; }
16870 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16871 $as_echo_n "(cached
) " >&6
16873 if test -n "$STRIP_FOR_TARGET"; then
16874 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16877 for as_dir in $PATH
16880 test -z "$as_dir" && as_dir=.
16881 for ac_exec_ext in '' $ac_executable_extensions; do
16882 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16883 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16884 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16893 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16894 if test -n "$STRIP_FOR_TARGET"; then
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16896 $as_echo "$STRIP_FOR_TARGET" >&6; }
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16899 $as_echo "no
" >&6; }
16904 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16908 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16910 if test $build = $target ; then
16911 STRIP_FOR_TARGET="$2"
16913 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16916 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16920 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16926 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16927 if test -n "$with_build_time_tools"; then
16928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
16929 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
16930 if test -x $with_build_time_tools/windres; then
16931 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16932 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16934 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16937 $as_echo "no
" >&6; }
16939 elif test $build != $host && test $have_gcc_for_target = yes; then
16940 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16941 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16942 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16945 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16946 # Extract the first word of "windres
", so it can be a program name with args.
16947 set dummy windres; ac_word=$2
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16949 $as_echo_n "checking
for $ac_word...
" >&6; }
16950 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16951 $as_echo_n "(cached
) " >&6
16953 case $WINDRES_FOR_TARGET in
16955 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16959 for as_dir in $gcc_cv_tool_dirs
16962 test -z "$as_dir" && as_dir=.
16963 for ac_exec_ext in '' $ac_executable_extensions; do
16964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16965 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16966 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16976 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16977 if test -n "$WINDRES_FOR_TARGET"; then
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16979 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16982 $as_echo "no
" >&6; }
16987 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16990 if test -n "$WINDRES_FOR_TARGET"; then
16991 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16992 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16993 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16996 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16997 for ncn_progname in windres; do
16998 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16999 set dummy ${ncn_progname}; ac_word=$2
17000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17001 $as_echo_n "checking
for $ac_word...
" >&6; }
17002 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17003 $as_echo_n "(cached
) " >&6
17005 if test -n "$WINDRES_FOR_TARGET"; then
17006 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17009 for as_dir in $PATH
17012 test -z "$as_dir" && as_dir=.
17013 for ac_exec_ext in '' $ac_executable_extensions; do
17014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17015 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17016 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17025 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17026 if test -n "$WINDRES_FOR_TARGET"; then
17027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17028 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17031 $as_echo "no
" >&6; }
17038 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17039 for ncn_progname in windres; do
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17041 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17042 if test -x $with_build_time_tools/${ncn_progname}; then
17043 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17044 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17045 $as_echo "yes" >&6; }
17048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17049 $as_echo "no
" >&6; }
17054 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17055 for ncn_progname in windres; do
17056 if test -n "$ncn_target_tool_prefix"; then
17057 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17058 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17060 $as_echo_n "checking
for $ac_word...
" >&6; }
17061 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17062 $as_echo_n "(cached
) " >&6
17064 if test -n "$WINDRES_FOR_TARGET"; then
17065 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17068 for as_dir in $PATH
17071 test -z "$as_dir" && as_dir=.
17072 for ac_exec_ext in '' $ac_executable_extensions; do
17073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17074 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17075 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17084 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17085 if test -n "$WINDRES_FOR_TARGET"; then
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17087 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17090 $as_echo "no
" >&6; }
17095 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17096 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17097 set dummy ${ncn_progname}; ac_word=$2
17098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17099 $as_echo_n "checking
for $ac_word...
" >&6; }
17100 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17101 $as_echo_n "(cached
) " >&6
17103 if test -n "$WINDRES_FOR_TARGET"; then
17104 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17107 for as_dir in $PATH
17110 test -z "$as_dir" && as_dir=.
17111 for ac_exec_ext in '' $ac_executable_extensions; do
17112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17113 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17114 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17123 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17124 if test -n "$WINDRES_FOR_TARGET"; then
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17126 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17129 $as_echo "no
" >&6; }
17134 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17138 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17140 if test $build = $target ; then
17141 WINDRES_FOR_TARGET="$2"
17143 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17146 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17150 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17156 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17157 if test -n "$with_build_time_tools"; then
17158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17159 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17160 if test -x $with_build_time_tools/windmc; then
17161 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17162 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17164 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17167 $as_echo "no
" >&6; }
17169 elif test $build != $host && test $have_gcc_for_target = yes; then
17170 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17171 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17172 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17175 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17176 # Extract the first word of "windmc
", so it can be a program name with args.
17177 set dummy windmc; ac_word=$2
17178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17179 $as_echo_n "checking
for $ac_word...
" >&6; }
17180 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17181 $as_echo_n "(cached
) " >&6
17183 case $WINDMC_FOR_TARGET in
17185 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17189 for as_dir in $gcc_cv_tool_dirs
17192 test -z "$as_dir" && as_dir=.
17193 for ac_exec_ext in '' $ac_executable_extensions; do
17194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17195 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17196 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17206 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17207 if test -n "$WINDMC_FOR_TARGET"; then
17208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17209 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17212 $as_echo "no
" >&6; }
17217 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17220 if test -n "$WINDMC_FOR_TARGET"; then
17221 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17222 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17223 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17226 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17227 for ncn_progname in windmc; do
17228 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17229 set dummy ${ncn_progname}; ac_word=$2
17230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17231 $as_echo_n "checking
for $ac_word...
" >&6; }
17232 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17233 $as_echo_n "(cached
) " >&6
17235 if test -n "$WINDMC_FOR_TARGET"; then
17236 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17239 for as_dir in $PATH
17242 test -z "$as_dir" && as_dir=.
17243 for ac_exec_ext in '' $ac_executable_extensions; do
17244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17245 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17246 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17255 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17256 if test -n "$WINDMC_FOR_TARGET"; then
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17258 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17261 $as_echo "no
" >&6; }
17268 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17269 for ncn_progname in windmc; do
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17271 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17272 if test -x $with_build_time_tools/${ncn_progname}; then
17273 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17275 $as_echo "yes" >&6; }
17278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17279 $as_echo "no
" >&6; }
17284 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17285 for ncn_progname in windmc; do
17286 if test -n "$ncn_target_tool_prefix"; then
17287 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17288 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17290 $as_echo_n "checking
for $ac_word...
" >&6; }
17291 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17292 $as_echo_n "(cached
) " >&6
17294 if test -n "$WINDMC_FOR_TARGET"; then
17295 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17298 for as_dir in $PATH
17301 test -z "$as_dir" && as_dir=.
17302 for ac_exec_ext in '' $ac_executable_extensions; do
17303 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17304 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17305 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17314 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17315 if test -n "$WINDMC_FOR_TARGET"; then
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17317 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17320 $as_echo "no
" >&6; }
17325 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17326 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17327 set dummy ${ncn_progname}; ac_word=$2
17328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17329 $as_echo_n "checking
for $ac_word...
" >&6; }
17330 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17331 $as_echo_n "(cached
) " >&6
17333 if test -n "$WINDMC_FOR_TARGET"; then
17334 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17337 for as_dir in $PATH
17340 test -z "$as_dir" && as_dir=.
17341 for ac_exec_ext in '' $ac_executable_extensions; do
17342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17343 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17344 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17353 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17354 if test -n "$WINDMC_FOR_TARGET"; then
17355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17356 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17359 $as_echo "no
" >&6; }
17364 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17368 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17370 if test $build = $target ; then
17371 WINDMC_FOR_TARGET="$2"
17373 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17376 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17380 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17384 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17387 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17388 if test "x
${build}" != "x
${host}" ; then
17389 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17390 # We already found the complete path
17391 ac_dir=`dirname $AR_FOR_TARGET`
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17393 $as_echo "pre-installed
in $ac_dir" >&6; }
17395 # Canadian cross, just use what we found
17396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17397 $as_echo "pre-installed
" >&6; }
17401 case " ${configdirs} " in
17406 if test $ok = yes; then
17407 # An in-tree tool is available and we can use it
17408 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17410 $as_echo "just compiled
" >&6; }
17411 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17412 # We already found the complete path
17413 ac_dir=`dirname $AR_FOR_TARGET`
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17415 $as_echo "pre-installed
in $ac_dir" >&6; }
17416 elif test "x
$target" = "x
$host"; then
17417 # We can use an host tool
17418 AR_FOR_TARGET='$(AR)'
17419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17420 $as_echo "host tool
" >&6; }
17422 # We need a cross tool
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17424 $as_echo "pre-installed
" >&6; }
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17429 $as_echo_n "checking where to
find the target as...
" >&6; }
17430 if test "x
${build}" != "x
${host}" ; then
17431 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17432 # We already found the complete path
17433 ac_dir=`dirname $AS_FOR_TARGET`
17434 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17435 $as_echo "pre-installed
in $ac_dir" >&6; }
17437 # Canadian cross, just use what we found
17438 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17439 $as_echo "pre-installed
" >&6; }
17443 case " ${configdirs} " in
17448 if test $ok = yes; then
17449 # An in-tree tool is available and we can use it
17450 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17452 $as_echo "just compiled
" >&6; }
17453 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17454 # We already found the complete path
17455 ac_dir=`dirname $AS_FOR_TARGET`
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17457 $as_echo "pre-installed
in $ac_dir" >&6; }
17458 elif test "x
$target" = "x
$host"; then
17459 # We can use an host tool
17460 AS_FOR_TARGET='$(AS)'
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17462 $as_echo "host tool
" >&6; }
17464 # We need a cross tool
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17466 $as_echo "pre-installed
" >&6; }
17470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17471 $as_echo_n "checking where to
find the target cc...
" >&6; }
17472 if test "x
${build}" != "x
${host}" ; then
17473 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17474 # We already found the complete path
17475 ac_dir=`dirname $CC_FOR_TARGET`
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17477 $as_echo "pre-installed
in $ac_dir" >&6; }
17479 # Canadian cross, just use what we found
17480 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17481 $as_echo "pre-installed
" >&6; }
17485 case " ${configdirs} " in
17490 if test $ok = yes; then
17491 # An in-tree tool is available and we can use it
17492 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17494 $as_echo "just compiled
" >&6; }
17495 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17496 # We already found the complete path
17497 ac_dir=`dirname $CC_FOR_TARGET`
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17499 $as_echo "pre-installed
in $ac_dir" >&6; }
17500 elif test "x
$target" = "x
$host"; then
17501 # We can use an host tool
17502 CC_FOR_TARGET='$(CC)'
17503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17504 $as_echo "host tool
" >&6; }
17506 # We need a cross tool
17507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17508 $as_echo "pre-installed
" >&6; }
17512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17513 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17514 if test "x
${build}" != "x
${host}" ; then
17515 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17516 # We already found the complete path
17517 ac_dir=`dirname $CXX_FOR_TARGET`
17518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17519 $as_echo "pre-installed
in $ac_dir" >&6; }
17521 # Canadian cross, just use what we found
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17523 $as_echo "pre-installed
" >&6; }
17527 case " ${configdirs} " in
17531 case ,${enable_languages}, in
17535 if test $ok = yes; then
17536 # An in-tree tool is available and we can use it
17537 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'
17538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17539 $as_echo "just compiled
" >&6; }
17540 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17541 # We already found the complete path
17542 ac_dir=`dirname $CXX_FOR_TARGET`
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17544 $as_echo "pre-installed
in $ac_dir" >&6; }
17545 elif test "x
$target" = "x
$host"; then
17546 # We can use an host tool
17547 CXX_FOR_TARGET='$(CXX)'
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17549 $as_echo "host tool
" >&6; }
17551 # We need a cross tool
17552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17553 $as_echo "pre-installed
" >&6; }
17557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
17558 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17559 if test "x
${build}" != "x
${host}" ; then
17560 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17561 # We already found the complete path
17562 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17564 $as_echo "pre-installed
in $ac_dir" >&6; }
17566 # Canadian cross, just use what we found
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17568 $as_echo "pre-installed
" >&6; }
17572 case " ${configdirs} " in
17576 case ,${enable_languages}, in
17580 if test $ok = yes; then
17581 # An in-tree tool is available and we can use it
17582 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'
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17584 $as_echo "just compiled
" >&6; }
17585 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17586 # We already found the complete path
17587 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17589 $as_echo "pre-installed
in $ac_dir" >&6; }
17590 elif test "x
$target" = "x
$host"; then
17591 # We can use an host tool
17592 RAW_CXX_FOR_TARGET='$(CXX)'
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17594 $as_echo "host tool
" >&6; }
17596 # We need a cross tool
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17598 $as_echo "pre-installed
" >&6; }
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
17603 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17604 if test "x
${build}" != "x
${host}" ; then
17605 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17606 # We already found the complete path
17607 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17609 $as_echo "pre-installed
in $ac_dir" >&6; }
17611 # Canadian cross, just use what we found
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17613 $as_echo "pre-installed
" >&6; }
17617 case " ${configdirs} " in
17622 if test $ok = yes; then
17623 # An in-tree tool is available and we can use it
17624 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17626 $as_echo "just compiled
" >&6; }
17627 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17628 # We already found the complete path
17629 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17631 $as_echo "pre-installed
in $ac_dir" >&6; }
17632 elif test "x
$target" = "x
$host"; then
17633 # We can use an host tool
17634 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17636 $as_echo "host tool
" >&6; }
17638 # We need a cross tool
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17640 $as_echo "pre-installed
" >&6; }
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
17645 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
17646 if test "x
${build}" != "x
${host}" ; then
17647 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17648 # We already found the complete path
17649 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17651 $as_echo "pre-installed
in $ac_dir" >&6; }
17653 # Canadian cross, just use what we found
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17655 $as_echo "pre-installed
" >&6; }
17658 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17659 # We already found the complete path
17660 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17662 $as_echo "pre-installed
in $ac_dir" >&6; }
17663 elif test "x
$target" = "x
$host"; then
17664 # We can use an host tool
17665 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17667 $as_echo "host tool
" >&6; }
17669 # We need a cross tool
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17671 $as_echo "pre-installed
" >&6; }
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
17676 $as_echo_n "checking where to
find the target gcc...
" >&6; }
17677 if test "x
${build}" != "x
${host}" ; then
17678 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17679 # We already found the complete path
17680 ac_dir=`dirname $GCC_FOR_TARGET`
17681 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17682 $as_echo "pre-installed
in $ac_dir" >&6; }
17684 # Canadian cross, just use what we found
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17686 $as_echo "pre-installed
" >&6; }
17690 case " ${configdirs} " in
17695 if test $ok = yes; then
17696 # An in-tree tool is available and we can use it
17697 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17699 $as_echo "just compiled
" >&6; }
17700 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17701 # We already found the complete path
17702 ac_dir=`dirname $GCC_FOR_TARGET`
17703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17704 $as_echo "pre-installed
in $ac_dir" >&6; }
17705 elif test "x
$target" = "x
$host"; then
17706 # We can use an host tool
17707 GCC_FOR_TARGET='$()'
17708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17709 $as_echo "host tool
" >&6; }
17711 # We need a cross tool
17712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17713 $as_echo "pre-installed
" >&6; }
17717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
17718 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
17719 if test "x
${build}" != "x
${host}" ; then
17720 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17721 # We already found the complete path
17722 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17724 $as_echo "pre-installed
in $ac_dir" >&6; }
17726 # Canadian cross, just use what we found
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17728 $as_echo "pre-installed
" >&6; }
17732 case " ${configdirs} " in
17736 case ,${enable_languages}, in
17740 if test $ok = yes; then
17741 # An in-tree tool is available and we can use it
17742 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17744 $as_echo "just compiled
" >&6; }
17745 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17746 # We already found the complete path
17747 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17749 $as_echo "pre-installed
in $ac_dir" >&6; }
17750 elif test "x
$target" = "x
$host"; then
17751 # We can use an host tool
17752 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17754 $as_echo "host tool
" >&6; }
17756 # We need a cross tool
17757 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17758 $as_echo "pre-installed
" >&6; }
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
17763 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
17764 if test "x
${build}" != "x
${host}" ; then
17765 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17766 # We already found the complete path
17767 ac_dir=`dirname $GOC_FOR_TARGET`
17768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17769 $as_echo "pre-installed
in $ac_dir" >&6; }
17771 # Canadian cross, just use what we found
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17773 $as_echo "pre-installed
" >&6; }
17777 case " ${configdirs} " in
17781 case ,${enable_languages}, in
17785 if test $ok = yes; then
17786 # An in-tree tool is available and we can use it
17787 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17788 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17789 $as_echo "just compiled
" >&6; }
17790 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17791 # We already found the complete path
17792 ac_dir=`dirname $GOC_FOR_TARGET`
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17794 $as_echo "pre-installed
in $ac_dir" >&6; }
17795 elif test "x
$target" = "x
$host"; then
17796 # We can use an host tool
17797 GOC_FOR_TARGET='$(GOC)'
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17799 $as_echo "host tool
" >&6; }
17801 # We need a cross tool
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17803 $as_echo "pre-installed
" >&6; }
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
17808 $as_echo_n "checking where to
find the target gdc...
" >&6; }
17809 if test "x
${build}" != "x
${host}" ; then
17810 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17811 # We already found the complete path
17812 ac_dir=`dirname $GDC_FOR_TARGET`
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17814 $as_echo "pre-installed
in $ac_dir" >&6; }
17816 # Canadian cross, just use what we found
17817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17818 $as_echo "pre-installed
" >&6; }
17822 case " ${configdirs} " in
17826 case ,${enable_languages}, in
17830 if test $ok = yes; then
17831 # An in-tree tool is available and we can use it
17832 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17834 $as_echo "just compiled
" >&6; }
17835 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17836 # We already found the complete path
17837 ac_dir=`dirname $GDC_FOR_TARGET`
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17839 $as_echo "pre-installed
in $ac_dir" >&6; }
17840 elif test "x
$target" = "x
$host"; then
17841 # We can use an host tool
17842 GDC_FOR_TARGET='$(GDC)'
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17844 $as_echo "host tool
" >&6; }
17846 # We need a cross tool
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17848 $as_echo "pre-installed
" >&6; }
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
17853 $as_echo_n "checking where to
find the target ld...
" >&6; }
17854 if test "x
${build}" != "x
${host}" ; then
17855 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17856 # We already found the complete path
17857 ac_dir=`dirname $LD_FOR_TARGET`
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17859 $as_echo "pre-installed
in $ac_dir" >&6; }
17861 # Canadian cross, just use what we found
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17863 $as_echo "pre-installed
" >&6; }
17867 case " ${configdirs} " in
17872 if test $ok = yes; then
17873 # An in-tree tool is available and we can use it
17874 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17876 $as_echo "just compiled
" >&6; }
17877 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17878 # We already found the complete path
17879 ac_dir=`dirname $LD_FOR_TARGET`
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17881 $as_echo "pre-installed
in $ac_dir" >&6; }
17882 elif test "x
$target" = "x
$host"; then
17883 # We can use an host tool
17884 LD_FOR_TARGET='$(LD)'
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17886 $as_echo "host tool
" >&6; }
17888 # We need a cross tool
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17890 $as_echo "pre-installed
" >&6; }
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
17895 $as_echo_n "checking where to
find the target lipo...
" >&6; }
17896 if test "x
${build}" != "x
${host}" ; then
17897 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
17898 # We already found the complete path
17899 ac_dir=`dirname $LIPO_FOR_TARGET`
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17901 $as_echo "pre-installed
in $ac_dir" >&6; }
17903 # Canadian cross, just use what we found
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17905 $as_echo "pre-installed
" >&6; }
17908 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
17909 # We already found the complete path
17910 ac_dir=`dirname $LIPO_FOR_TARGET`
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17912 $as_echo "pre-installed
in $ac_dir" >&6; }
17913 elif test "x
$target" = "x
$host"; then
17914 # We can use an host tool
17915 LIPO_FOR_TARGET='$(LIPO)'
17916 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17917 $as_echo "host tool
" >&6; }
17919 # We need a cross tool
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17921 $as_echo "pre-installed
" >&6; }
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
17926 $as_echo_n "checking where to
find the target nm...
" >&6; }
17927 if test "x
${build}" != "x
${host}" ; then
17928 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
17929 # We already found the complete path
17930 ac_dir=`dirname $NM_FOR_TARGET`
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17932 $as_echo "pre-installed
in $ac_dir" >&6; }
17934 # Canadian cross, just use what we found
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17936 $as_echo "pre-installed
" >&6; }
17940 case " ${configdirs} " in
17945 if test $ok = yes; then
17946 # An in-tree tool is available and we can use it
17947 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17949 $as_echo "just compiled
" >&6; }
17950 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
17951 # We already found the complete path
17952 ac_dir=`dirname $NM_FOR_TARGET`
17953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17954 $as_echo "pre-installed
in $ac_dir" >&6; }
17955 elif test "x
$target" = "x
$host"; then
17956 # We can use an host tool
17957 NM_FOR_TARGET='$(NM)'
17958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17959 $as_echo "host tool
" >&6; }
17961 # We need a cross tool
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17963 $as_echo "pre-installed
" >&6; }
17967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
17968 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
17969 if test "x
${build}" != "x
${host}" ; then
17970 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
17971 # We already found the complete path
17972 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17974 $as_echo "pre-installed
in $ac_dir" >&6; }
17976 # Canadian cross, just use what we found
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17978 $as_echo "pre-installed
" >&6; }
17982 case " ${configdirs} " in
17987 if test $ok = yes; then
17988 # An in-tree tool is available and we can use it
17989 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17991 $as_echo "just compiled
" >&6; }
17992 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
17993 # We already found the complete path
17994 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17996 $as_echo "pre-installed
in $ac_dir" >&6; }
17997 elif test "x
$target" = "x
$host"; then
17998 # We can use an host tool
17999 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18001 $as_echo "host tool
" >&6; }
18003 # We need a cross tool
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18005 $as_echo "pre-installed
" >&6; }
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
18010 $as_echo_n "checking where to
find the target objdump...
" >&6; }
18011 if test "x
${build}" != "x
${host}" ; then
18012 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18013 # We already found the complete path
18014 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18016 $as_echo "pre-installed
in $ac_dir" >&6; }
18018 # Canadian cross, just use what we found
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18020 $as_echo "pre-installed
" >&6; }
18024 case " ${configdirs} " in
18029 if test $ok = yes; then
18030 # An in-tree tool is available and we can use it
18031 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18033 $as_echo "just compiled
" >&6; }
18034 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18035 # We already found the complete path
18036 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18038 $as_echo "pre-installed
in $ac_dir" >&6; }
18039 elif test "x
$target" = "x
$host"; then
18040 # We can use an host tool
18041 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18042 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18043 $as_echo "host tool
" >&6; }
18045 # We need a cross tool
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18047 $as_echo "pre-installed
" >&6; }
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
18052 $as_echo_n "checking where to
find the target otool...
" >&6; }
18053 if test "x
${build}" != "x
${host}" ; then
18054 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18055 # We already found the complete path
18056 ac_dir=`dirname $OTOOL_FOR_TARGET`
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18058 $as_echo "pre-installed
in $ac_dir" >&6; }
18060 # Canadian cross, just use what we found
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18062 $as_echo "pre-installed
" >&6; }
18065 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18066 # We already found the complete path
18067 ac_dir=`dirname $OTOOL_FOR_TARGET`
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18069 $as_echo "pre-installed
in $ac_dir" >&6; }
18070 elif test "x
$target" = "x
$host"; then
18071 # We can use an host tool
18072 OTOOL_FOR_TARGET='$(OTOOL)'
18073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18074 $as_echo "host tool
" >&6; }
18076 # We need a cross tool
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18078 $as_echo "pre-installed
" >&6; }
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
18083 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
18084 if test "x
${build}" != "x
${host}" ; then
18085 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18086 # We already found the complete path
18087 ac_dir=`dirname $RANLIB_FOR_TARGET`
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18089 $as_echo "pre-installed
in $ac_dir" >&6; }
18091 # Canadian cross, just use what we found
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18093 $as_echo "pre-installed
" >&6; }
18097 case " ${configdirs} " in
18102 if test $ok = yes; then
18103 # An in-tree tool is available and we can use it
18104 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18106 $as_echo "just compiled
" >&6; }
18107 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18108 # We already found the complete path
18109 ac_dir=`dirname $RANLIB_FOR_TARGET`
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18111 $as_echo "pre-installed
in $ac_dir" >&6; }
18112 elif test "x
$target" = "x
$host"; then
18113 # We can use an host tool
18114 RANLIB_FOR_TARGET='$(RANLIB)'
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18116 $as_echo "host tool
" >&6; }
18118 # We need a cross tool
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18120 $as_echo "pre-installed
" >&6; }
18124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18125 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18126 if test "x
${build}" != "x
${host}" ; then
18127 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18128 # We already found the complete path
18129 ac_dir=`dirname $READELF_FOR_TARGET`
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18131 $as_echo "pre-installed
in $ac_dir" >&6; }
18133 # Canadian cross, just use what we found
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18135 $as_echo "pre-installed
" >&6; }
18139 case " ${configdirs} " in
18144 if test $ok = yes; then
18145 # An in-tree tool is available and we can use it
18146 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18148 $as_echo "just compiled
" >&6; }
18149 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18150 # We already found the complete path
18151 ac_dir=`dirname $READELF_FOR_TARGET`
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18153 $as_echo "pre-installed
in $ac_dir" >&6; }
18154 elif test "x
$target" = "x
$host"; then
18155 # We can use an host tool
18156 READELF_FOR_TARGET='$(READELF)'
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18158 $as_echo "host tool
" >&6; }
18160 # We need a cross tool
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18162 $as_echo "pre-installed
" >&6; }
18166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18167 $as_echo_n "checking where to
find the target strip...
" >&6; }
18168 if test "x
${build}" != "x
${host}" ; then
18169 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18170 # We already found the complete path
18171 ac_dir=`dirname $STRIP_FOR_TARGET`
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18173 $as_echo "pre-installed
in $ac_dir" >&6; }
18175 # Canadian cross, just use what we found
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18177 $as_echo "pre-installed
" >&6; }
18181 case " ${configdirs} " in
18186 if test $ok = yes; then
18187 # An in-tree tool is available and we can use it
18188 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18190 $as_echo "just compiled
" >&6; }
18191 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18192 # We already found the complete path
18193 ac_dir=`dirname $STRIP_FOR_TARGET`
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18195 $as_echo "pre-installed
in $ac_dir" >&6; }
18196 elif test "x
$target" = "x
$host"; then
18197 # We can use an host tool
18198 STRIP_FOR_TARGET='$(STRIP)'
18199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18200 $as_echo "host tool
" >&6; }
18202 # We need a cross tool
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18204 $as_echo "pre-installed
" >&6; }
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18209 $as_echo_n "checking where to
find the target windres...
" >&6; }
18210 if test "x
${build}" != "x
${host}" ; then
18211 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18212 # We already found the complete path
18213 ac_dir=`dirname $WINDRES_FOR_TARGET`
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18215 $as_echo "pre-installed
in $ac_dir" >&6; }
18217 # Canadian cross, just use what we found
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18219 $as_echo "pre-installed
" >&6; }
18223 case " ${configdirs} " in
18228 if test $ok = yes; then
18229 # An in-tree tool is available and we can use it
18230 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18232 $as_echo "just compiled
" >&6; }
18233 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18234 # We already found the complete path
18235 ac_dir=`dirname $WINDRES_FOR_TARGET`
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18237 $as_echo "pre-installed
in $ac_dir" >&6; }
18238 elif test "x
$target" = "x
$host"; then
18239 # We can use an host tool
18240 WINDRES_FOR_TARGET='$(WINDRES)'
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18242 $as_echo "host tool
" >&6; }
18244 # We need a cross tool
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18246 $as_echo "pre-installed
" >&6; }
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18251 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18252 if test "x
${build}" != "x
${host}" ; then
18253 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18254 # We already found the complete path
18255 ac_dir=`dirname $WINDMC_FOR_TARGET`
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18257 $as_echo "pre-installed
in $ac_dir" >&6; }
18259 # Canadian cross, just use what we found
18260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18261 $as_echo "pre-installed
" >&6; }
18265 case " ${configdirs} " in
18270 if test $ok = yes; then
18271 # An in-tree tool is available and we can use it
18272 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18274 $as_echo "just compiled
" >&6; }
18275 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18276 # We already found the complete path
18277 ac_dir=`dirname $WINDMC_FOR_TARGET`
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18279 $as_echo "pre-installed
in $ac_dir" >&6; }
18280 elif test "x
$target" = "x
$host"; then
18281 # We can use an host tool
18282 WINDMC_FOR_TARGET='$(WINDMC)'
18283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18284 $as_echo "host tool
" >&6; }
18286 # We need a cross tool
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18288 $as_echo "pre-installed
" >&6; }
18296 # Certain tools may need extra flags.
18297 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18298 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18299 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18301 # When building target libraries, except in a Canadian cross, we use
18302 # the same toolchain as the compiler we just built.
18303 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18304 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18305 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18306 if test $host = $build; then
18307 case " $configdirs " in
18309 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18310 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18311 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18321 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18322 # Check whether --enable-maintainer-mode was given.
18323 if test "${enable_maintainer_mode+set}" = set; then :
18324 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18326 USE_MAINTAINER_MODE=no
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18330 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18333 if test "$USE_MAINTAINER_MODE" = yes; then
18334 MAINTAINER_MODE_TRUE=
18335 MAINTAINER_MODE_FALSE='#'
18337 MAINTAINER_MODE_TRUE='#'
18338 MAINTAINER_MODE_FALSE=
18340 MAINT=$MAINTAINER_MODE_TRUE
18342 # ---------------------
18343 # GCC bootstrap support
18344 # ---------------------
18346 # Stage specific cflags for build.
18351 yes) stage1_cflags="-g -Wa,-J" ;;
18352 *) stage1_cflags="-g -J" ;;
18358 # Enable --enable-checking in stage1 of the compiler.
18359 # Check whether --enable-stage1-checking was given.
18360 if test "${enable_stage1_checking+set}" = set; then :
18361 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18363 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18364 # For --disable-checking or implicit --enable-checking=release, avoid
18365 # setting --enable-checking=gc in the default stage1 checking for LTO
18366 # bootstraps. See PR62077.
18367 case $BUILD_CONFIG in
18369 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18371 stage1_checking=--enable-checking=yes,types;;
18373 if test "x
$enable_checking" = x && \
18374 test -d ${srcdir}/gcc && \
18375 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18376 stage1_checking=--enable-checking=yes,types,extra
18379 stage1_checking=--enable-checking=$enable_checking,types
18385 # Enable -Werror in bootstrap stage2 and later.
18386 # Check whether --enable-werror was given.
18387 if test "${enable_werror+set}" = set; then :
18388 enableval=$enable_werror;
18389 case ${enable_werror} in
18390 yes) stage2_werror_flag="--enable-werror-always" ;;
18391 *) stage2_werror_flag="" ;;
18396 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18397 case $BUILD_CONFIG in
18399 stage2_werror_flag="--enable-werror-always" ;;
18401 stage2_werror_flag="--enable-werror-always" ;;
18410 # Specify what files to not compare during bootstrap.
18412 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18414 hppa*64*-*-hpux*) ;;
18415 hppa*-*-hpux*) compare_exclusions="$compare_exclusions |
*/libgcc
/lib2funcs
* | gcc
/function-tests.o
" ;;
18416 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18420 ac_config_files="$ac_config_files Makefile
"
18422 cat >confcache <<\_ACEOF
18423 # This file is a shell script that caches the results of configure
18424 # tests run on this system so they can be shared between configure
18425 # scripts and configure runs, see configure's option --config-cache.
18426 # It is not useful on other systems. If it contains results you don't
18427 # want to keep, you may remove or edit it.
18429 # config.status only pays attention to the cache file if you give it
18430 # the --recheck option to rerun configure.
18432 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18433 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18434 # following values.
18438 # The following way of writing the cache mishandles newlines in values,
18439 # but we know of no workaround that is simple, portable, and efficient.
18440 # So, we kill variables containing newlines.
18441 # Ultrix sh set writes to stderr and can't be redirected directly,
18442 # and sets the high bit in the cache file unless we assign to the vars.
18444 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18445 eval ac_val=\$$ac_var
18449 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18450 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18453 _ | IFS | as_nl) ;; #(
18454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18455 *) { eval $ac_var=; unset $ac_var;} ;;
18461 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18462 *${as_nl}ac_space=\ *)
18463 # `set' does not quote correctly, so add quotes: double-quote
18464 # substitution turns \\\\ into \\, and sed turns \\ into \.
18467 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18470 # `set' quotes correctly as required by POSIX, so do not add quotes.
18471 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18482 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18484 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18485 if test -w "$cache_file"; then
18486 if test "x
$cache_file" != "x
/dev
/null
"; then
18487 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18488 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18489 if test ! -f "$cache_file" || test -h "$cache_file"; then
18490 cat confcache >"$cache_file"
18492 case $cache_file in #(
18494 mv -f confcache "$cache_file"$$ &&
18495 mv -f "$cache_file"$$ "$cache_file" ;; #(
18497 mv -f confcache "$cache_file" ;;
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18503 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18508 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18509 # Let make expand exec_prefix.
18510 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18512 # Transform confdefs.h into DEFS.
18513 # Protect against shell expansion while executing Makefile rules.
18514 # Protect against Makefile macro expansion.
18516 # If the first sed substitution is executed (which looks for macros that
18517 # take arguments), then branch to the quote section. Otherwise,
18518 # look for a macro that doesn't take arguments.
18528 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18530 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18534 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18547 DEFS=`sed -n "$ac_script" confdefs.h`
18553 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18554 # 1. Remove the extension, and $U if already installed.
18555 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18556 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18557 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18558 # will be set to the directory where LIBOBJS objects are built.
18559 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18560 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
18562 LIBOBJS=$ac_libobjs
18564 LTLIBOBJS=$ac_ltlibobjs
18568 : "${CONFIG_STATUS=./config.status}"
18570 ac_clean_files_save=$ac_clean_files
18571 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18573 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18575 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18577 # Generated by $as_me.
18578 # Run this file to recreate the current configuration.
18579 # Compiler output produced by configure, useful for debugging
18580 # configure, is in config.log if it exists.
18583 ac_cs_recheck=false
18586 SHELL=\${CONFIG_SHELL-$SHELL}
18589 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18590 ## -------------------- ##
18591 ## M4sh Initialization. ##
18592 ## -------------------- ##
18594 # Be more Bourne compatible
18595 DUALCASE=1; export DUALCASE # for MKS sh
18596 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18599 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18600 # is contrary to our usage. Disable this feature.
18601 alias -g '${1+"$@"}'='"$@"'
18602 setopt NO_GLOB_SUBST
18604 case `(set -o) 2>/dev/null` in #(
18616 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18617 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18618 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
18619 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18620 # Prefer a ksh shell builtin over an external printf program on Solaris,
18621 # but without wasting forks for bash or zsh.
18622 if test -z "$BASH_VERSION$ZSH_VERSION" \
18623 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18624 as_echo
='print -r --'
18625 as_echo_n
='print -rn --'
18626 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18627 as_echo
='printf %s\n'
18628 as_echo_n
='printf %s'
18630 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18631 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
18632 as_echo_n
='/usr/ucb/echo -n'
18634 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
18635 as_echo_n_body
='eval
18639 expr "X$arg" : "X\\(.*\\)$as_nl";
18640 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18642 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18644 export as_echo_n_body
18645 as_echo_n
='sh -c $as_echo_n_body as_echo'
18647 export as_echo_body
18648 as_echo
='sh -c $as_echo_body as_echo'
18651 # The user is always right.
18652 if test "${PATH_SEPARATOR+set}" != set; then
18654 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
18655 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
18662 # We need space, tab and new line, in precisely that order. Quoting is
18663 # there to prevent editors from complaining about space-tab.
18664 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18665 # splitting by setting IFS to empty value.)
18668 # Find who we are. Look in the path if we contain no directory separator.
18671 *[\\/]* ) as_myself
=$0 ;;
18672 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18673 for as_dir
in $PATH
18676 test -z "$as_dir" && as_dir
=.
18677 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18683 # We did not find ourselves, most probably we were run as `sh COMMAND'
18684 # in which case we are not to be found in the path.
18685 if test "x$as_myself" = x
; then
18688 if test ! -f "$as_myself"; then
18689 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18693 # Unset variables that we do not need and which cause bugs (e.g. in
18694 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18695 # suppresses any "Segmentation fault" message there. '((' could
18696 # trigger a bug in pdksh 5.2.14.
18697 for as_var
in BASH_ENV ENV MAIL MAILPATH
18698 do eval test x\
${$as_var+set} = xset \
18699 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18712 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18715 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18716 # ----------------------------------------
18717 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18718 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18719 # script with STATUS, using 1 if that was 0.
18722 as_status
=$1; test $as_status -eq 0 && as_status
=1
18724 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18725 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18727 $as_echo "$as_me: error: $2" >&2
18728 as_fn_exit
$as_status
18732 # as_fn_set_status STATUS
18733 # -----------------------
18734 # Set $? to STATUS, without forking.
18735 as_fn_set_status
()
18738 } # as_fn_set_status
18740 # as_fn_exit STATUS
18741 # -----------------
18742 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18746 as_fn_set_status
$1
18752 # Portably unset VAR.
18755 { eval $1=; unset $1;}
18757 as_unset
=as_fn_unset
18758 # as_fn_append VAR VALUE
18759 # ----------------------
18760 # Append the text in VALUE to the end of the definition contained in VAR. Take
18761 # advantage of any shell optimizations that allow amortized linear growth over
18762 # repeated appends, instead of the typical quadratic growth present in naive
18764 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18765 eval 'as_fn_append ()
18776 # as_fn_arith ARG...
18777 # ------------------
18778 # Perform arithmetic evaluation on the ARGs, and store the result in the
18779 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18780 # must be portable across $(()) and expr.
18781 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18782 eval 'as_fn_arith ()
18789 as_val
=`expr "$@" || test $? -eq 1`
18794 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18795 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18801 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18802 as_basename
=basename
18807 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18813 as_me
=`$as_basename -- "$0" ||
18814 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18815 X"$0" : 'X\(//\)$' \| \
18816 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18818 sed '/^.*\/\([^/][^/]*\)\/*$/{
18832 # Avoid depending upon Character Ranges.
18833 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18834 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18835 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18836 as_cr_digits
='0123456789'
18837 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18839 ECHO_C
= ECHO_N
= ECHO_T
=
18840 case `echo -n x` in #(((((
18842 case `echo 'xy\c'` in
18843 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18845 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18852 rm -f conf$$ conf$$.exe conf$$.
file
18853 if test -d conf$$.dir
; then
18854 rm -f conf$$.dir
/conf$$.
file
18857 mkdir conf$$.dir
2>/dev
/null
18859 if (echo >conf$$.
file) 2>/dev
/null
; then
18860 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18862 # ... but there are two gotchas:
18863 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18864 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18865 # In both cases, we have to default to `cp -pR'.
18866 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18868 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18876 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18877 rmdir conf$$.dir
2>/dev
/null
18882 # Create "$as_dir" as a directory, including parents if necessary.
18887 -*) as_dir
=.
/$as_dir;;
18889 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18893 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18894 *) as_qdir
=$as_dir;;
18896 as_dirs
="'$as_qdir' $as_dirs"
18897 as_dir
=`$as_dirname -- "$as_dir" ||
18898 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18899 X"$as_dir" : 'X\(//\)[^/]' \| \
18900 X"$as_dir" : 'X\(//\)$' \| \
18901 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18902 $as_echo X"$as_dir" |
18903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18907 /^X\(\/\/\)[^/].*/{
18920 test -d "$as_dir" && break
18922 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18923 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18927 if mkdir
-p .
2>/dev
/null
; then
18928 as_mkdir_p
='mkdir -p "$as_dir"'
18930 test -d .
/-p && rmdir .
/-p
18935 # as_fn_executable_p FILE
18936 # -----------------------
18937 # Test if FILE is an executable regular file.
18938 as_fn_executable_p
()
18940 test -f "$1" && test -x "$1"
18941 } # as_fn_executable_p
18942 as_test_x
='test -x'
18943 as_executable_p
=as_fn_executable_p
18945 # Sed expression to map a string onto a valid CPP name.
18946 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18948 # Sed expression to map a string onto a valid variable name.
18949 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18953 ## ----------------------------------- ##
18954 ## Main body of $CONFIG_STATUS script. ##
18955 ## ----------------------------------- ##
18957 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18959 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18960 # Save the log message, to keep $0 and so on meaningful, and to
18961 # report actual input values of CONFIG_FILES etc. instead of their
18962 # values after options handling.
18964 This file was extended by $as_me, which was
18965 generated by GNU Autoconf 2.69. Invocation command line was
18967 CONFIG_FILES = $CONFIG_FILES
18968 CONFIG_HEADERS = $CONFIG_HEADERS
18969 CONFIG_LINKS = $CONFIG_LINKS
18970 CONFIG_COMMANDS = $CONFIG_COMMANDS
18973 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18978 case $ac_config_files in *"
18979 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18984 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18985 # Files that config.status was made for.
18986 config_files="$ac_config_files"
18990 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18992 \`$as_me' instantiates files and other configuration actions
18993 from templates according to the current configuration. Unless the files
18994 and actions are specified as TAGs, all are instantiated by default.
18996 Usage: $0 [OPTION]... [TAG]...
18998 -h, --help print this help, then exit
18999 -V, --version print version number and configuration settings, then exit
19000 --config print configuration, then exit
19001 -q, --quiet, --silent
19002 do not print progress messages
19003 -d, --debug don't remove temporary files
19004 --recheck update $as_me by reconfiguring in the same conditions
19005 --file=FILE[:TEMPLATE]
19006 instantiate the configuration file FILE
19008 Configuration files:
19011 Report bugs to the package provider."
19014 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19015 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19018 configured by $0, generated by GNU Autoconf 2.69,
19019 with options \\"\$ac_cs_config\\"
19021 Copyright (C) 2012 Free Software Foundation, Inc.
19022 This config.status script is free software; the Free Software Foundation
19023 gives unlimited permission to copy, distribute and modify it."
19029 test -n "\$AWK" || AWK=awk
19032 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19033 # The default lists apply if the user does not specify any file.
19039 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19040 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19044 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19056 # Handling of the options.
19057 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19059 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19060 $as_echo "$ac_cs_version"; exit ;;
19061 --config |
--confi |
--conf |
--con |
--co |
--c )
19062 $as_echo "$ac_cs_config"; exit ;;
19063 --debug |
--debu |
--deb |
--de |
--d |
-d )
19065 --file |
--fil |
--fi |
--f )
19068 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19069 '') as_fn_error $?
"missing file argument" ;;
19071 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19072 ac_need_defaults
=false
;;
19073 --he |
--h |
--help |
--hel |
-h )
19074 $as_echo "$ac_cs_usage"; exit ;;
19075 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19076 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19079 # This is an error.
19080 -*) as_fn_error $?
"unrecognized option: \`$1'
19081 Try \`$0 --help' for more information." ;;
19083 *) as_fn_append ac_config_targets
" $1"
19084 ac_need_defaults
=false
;;
19090 ac_configure_extra_args
=
19092 if $ac_cs_silent; then
19094 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19099 if \$ac_cs_recheck; then
19100 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19102 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19103 CONFIG_SHELL='$SHELL'
19104 export CONFIG_SHELL
19109 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19113 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19114 ## Running $as_me. ##
19120 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19124 extrasub_build="$extrasub_build"
19125 extrasub_host="$extrasub_host"
19126 extrasub_target="$extrasub_target"
19130 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19132 # Handling of arguments.
19133 for ac_config_target
in $ac_config_targets
19135 case $ac_config_target in
19136 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19138 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19143 # If the user did not use the arguments to specify the items to instantiate,
19144 # then the envvar interface is used. Set only those that are not.
19145 # We use the long form for the default assignment because of an extremely
19146 # bizarre bug on SunOS 4.1.3.
19147 if $ac_need_defaults; then
19148 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19151 # Have a temporary directory for convenience. Make it in the build tree
19152 # simply because there is no reason against having it here, and in addition,
19153 # creating and moving files from /tmp can sometimes cause problems.
19154 # Hook for its removal unless debugging.
19155 # Note that there is a small window in which the directory will not be cleaned:
19156 # after its creation but before its name has been assigned to `$tmp'.
19160 trap 'exit_status=$?
19161 : "${ac_tmp:=$tmp}"
19162 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19164 trap 'as_fn_exit 1' 1 2 13 15
19166 # Create a (secure) tmp directory for tmp files.
19169 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19173 tmp
=.
/conf$$
-$RANDOM
19174 (umask 077 && mkdir
"$tmp")
19175 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19178 # Set up the scripts for CONFIG_FILES section.
19179 # No need to generate them if there are no CONFIG_FILES.
19180 # This happens for instance with `./config.status config.h'.
19181 if test -n "$CONFIG_FILES"; then
19183 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19184 ac_cs_awk_getline
=:
19185 ac_cs_awk_pipe_init
=
19186 ac_cs_awk_read_file
='
19187 while ((getline aline < (F[key])) > 0)
19190 ac_cs_awk_pipe_fini
=
19192 ac_cs_awk_getline
=false
19193 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19194 ac_cs_awk_read_file
='
19196 print "cat " F[key] " &&"
19197 '$ac_cs_awk_pipe_init
19198 # The final `:' finishes the AND list.
19199 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19201 ac_cr
=`echo X | tr X '\015'`
19202 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19203 # But we know of no other shell where ac_cr would be empty at this
19204 # point, so we can use a bashism as a fallback.
19205 if test "x$ac_cr" = x
; then
19206 eval ac_cr
=\$
\'\\r
\'
19208 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19209 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19212 ac_cs_awk_cr
=$ac_cr
19215 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19218 # Create commands to substitute file output variables.
19220 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19221 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19222 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19225 } >conf$
$files.sh
&&
19226 . .
/conf$
$files.sh ||
19227 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19228 rm -f conf$
$files.sh
19231 echo "cat >conf$$subs.awk <<_ACEOF" &&
19232 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19234 } >conf$$subs.sh ||
19235 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19236 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19238 for ac_last_try in false false false false false :; do
19239 . ./conf$$subs.sh ||
19240 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19242 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19243 if test $ac_delim_n = $ac_delim_num; then
19245 elif $ac_last_try; then
19246 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19248 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19251 rm -f conf$$subs.sh
19253 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19254 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19258 s/^/S["/; s
/!.
*/"]=/
19268 s/\(.\{148\}\)..*/\1/
19270 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19275 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19282 s/\(.\{148\}\)..*/\1/
19284 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19288 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19293 ' <conf$$subs.awk | sed '
19298 ' >>$CONFIG_STATUS || ac_write_fail=1
19299 rm -f conf$$subs.awk
19300 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19302 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19303 for (key in S) S_is_set[key] = 1
19305 \$ac_cs_awk_pipe_init
19309 nfields = split(line, field, "@
")
19311 len = length(field[1])
19312 for (i = 2; i < nfields; i++) {
19314 keylen = length(key)
19315 if (S_is_set[key]) {
19317 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19318 len += length(value) + length(field[++i])
19323 if (nfields == 3 && !substed) {
19325 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19326 \$ac_cs_awk_read_file
19332 \$ac_cs_awk_pipe_fini
19335 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19336 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19337 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19340 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19341 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19344 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19345 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19346 # trailing colons and then remove the whole line if VPATH becomes empty
19347 # (actually we leave an empty line to preserve line numbers).
19348 if test "x
$srcdir" = x.; then
19349 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19367 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19368 fi # test -n "$CONFIG_FILES"
19371 eval set X " :F
$CONFIG_FILES "
19376 :[FHLC]) ac_mode=$ac_tag; continue;;
19378 case $ac_mode$ac_tag in
19380 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19381 :[FH]-) ac_tag=-:-;;
19382 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19399 -) ac_f="$ac_tmp/stdin";;
19400 *) # Look for the file first in the build tree, then in the source tree
19401 # (if the path is not absolute). The absolute path cannot be DOS-style,
19402 # because $ac_f cannot contain `:'.
19406 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19408 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19410 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19411 as_fn_append ac_file_inputs " '$ac_f'"
19414 # Let's still pretend it is `configure' which instantiates (i.e., don't
19415 # use $as_me), people would be surprised to read:
19416 # /* config.h. Generated by config.status. */
19417 configure_input='Generated from '`
19418 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19420 if test x"$ac_file" != x-; then
19421 configure_input="$ac_file.
$configure_input"
19422 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19423 $as_echo "$as_me: creating
$ac_file" >&6;}
19425 # Neutralize special characters interpreted by sed in replacement strings.
19426 case $configure_input in #(
19427 *\&* | *\|* | *\\* )
19428 ac_sed_conf_input=`$as_echo "$configure_input" |
19429 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19430 *) ac_sed_conf_input=$configure_input;;
19434 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19435 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19440 ac_dir=`$as_dirname -- "$ac_file" ||
19441 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19442 X"$ac_file" : 'X\(//\)[^/]' \| \
19443 X"$ac_file" : 'X\(//\)$' \| \
19444 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19445 $as_echo X"$ac_file" |
19446 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19450 /^X\(\/\/\)[^/].*/{
19463 as_dir="$ac_dir"; as_fn_mkdir_p
19467 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19469 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19470 # A "..
" for each directory in $ac_dir_suffix.
19471 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19472 case $ac_top_builddir_sub in
19473 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19474 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19477 ac_abs_top_builddir=$ac_pwd
19478 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19479 # for backward compatibility:
19480 ac_top_builddir=$ac_top_build_prefix
19483 .) # We are building in place.
19485 ac_top_srcdir=$ac_top_builddir_sub
19486 ac_abs_top_srcdir=$ac_pwd ;;
19487 [\\/]* | ?:[\\/]* ) # Absolute name.
19488 ac_srcdir=$srcdir$ac_dir_suffix;
19489 ac_top_srcdir=$srcdir
19490 ac_abs_top_srcdir=$srcdir ;;
19491 *) # Relative name.
19492 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19493 ac_top_srcdir=$ac_top_build_prefix$srcdir
19494 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19496 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19506 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19507 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19511 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19512 # If the template does not know about datarootdir, expand it.
19513 # FIXME: This hack should be removed a few years after 2.60.
19514 ac_datarootdir_hack=; ac_datarootdir_seen=
19525 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19526 *datarootdir*) ac_datarootdir_seen=yes;;
19527 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19529 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19531 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19532 ac_datarootdir_hack='
19533 s&@datadir@&$datadir&g
19534 s&@docdir@&$docdir&g
19535 s&@infodir@&$infodir&g
19536 s&@localedir@&$localedir&g
19537 s&@mandir@&$mandir&g
19538 s&\\\${datarootdir}&$datarootdir&g' ;;
19542 # Neutralize VPATH when `$srcdir' = `.'.
19543 # Shell code in configure.ac might set extrasub.
19544 # FIXME: do we really want to maintain this feature?
19545 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19546 ac_sed_extra="$ac_vpsub
19549 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19551 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19552 s|@configure_input@|
$ac_sed_conf_input|
;t t
19553 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19554 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19555 s
&@srcdir@
&$ac_srcdir&;t t
19556 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19557 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19558 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19559 s
&@builddir@
&$ac_builddir&;t t
19560 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19561 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19562 s
&@INSTALL@
&$ac_INSTALL&;t t
19563 $ac_datarootdir_hack
19565 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19566 if $ac_cs_awk_getline; then
19567 $AWK -f "$ac_tmp/subs.
awk"
19569 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19571 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19573 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19574 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19575 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19576 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19578 which seems to be undefined. Please make sure it is defined" >&5
19579 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19580 which seems to be undefined. Please make sure it is defined" >&2;}
19582 rm -f "$ac_tmp/stdin"
19584 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19585 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19587 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19595 case $ac_file$ac_mode in
19596 "Makefile":F) sed "$extrasub_build" Makefile |
19597 sed "$extrasub_host" |
19598 sed "$extrasub_target" > mf$$
19599 mv -f mf$$ Makefile ;;
19607 ac_clean_files=$ac_clean_files_save
19609 test $ac_write_fail = 0 ||
19610 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19613 # configure is writing to config.log, and then calls config.status.
19614 # config.status does its own redirection, appending to config.log.
19615 # Unfortunately, on DOS this fails, as config.log is still kept open
19616 # by configure, so config.status won't be able to
write to it
; its
19617 # output is simply discarded. So we exec the FD to /dev/null,
19618 # effectively closing config.log, so it can be properly (re)opened and
19619 # appended to by config.status. When coming back to configure, we
19620 # need to make the FD available again.
19621 if test "$no_create" != yes; then
19623 ac_config_status_args
=
19624 test "$silent" = yes &&
19625 ac_config_status_args
="$ac_config_status_args --quiet"
19627 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19629 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19630 # would make configure fail if this is the last instruction.
19631 $ac_cs_success || as_fn_exit
1
19633 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19635 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}