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
683 DEBUG_PREFIX_CFLAGS_FOR_TARGET
684 SYSROOT_CFLAGS_FOR_TARGET
686 extra_host_zlib_configure_flags
687 extra_host_libiberty_configure_flags
694 extra_linker_plugin_flags
695 extra_linker_plugin_configure_flags
702 extra_isl_gmp_configure_flags
703 extra_mpc_mpfr_configure_flags
704 extra_mpc_gmp_configure_flags
705 extra_mpfr_configure_flags
753 TOPLEVEL_CONFIGURE_ARGUMENTS
781 program_transform_name
792 ac_subst_files
='serialization_dependencies
798 enable_option_checking
801 enable_as_accelerator_for
802 enable_offload_targets
803 enable_offload_defaulted
806 enable_compressed_debug_sections
808 enable_libquadmath_support
825 with_static_standard_libraries
832 enable_isl_version_check
834 enable_linker_plugin_configure_flags
835 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
907 # Initialize some variables set by options.
909 ac_init_version
=false
910 ac_unrecognized_opts
=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
921 program_transform_name
=s
,x
,x
,
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir
='${exec_prefix}/bin'
936 sbindir
='${exec_prefix}/sbin'
937 libexecdir
='${exec_prefix}/libexec'
938 datarootdir
='${prefix}/share'
939 datadir
='${datarootdir}'
940 sysconfdir
='${prefix}/etc'
941 sharedstatedir
='${prefix}/com'
942 localstatedir
='${prefix}/var'
943 includedir
='${prefix}/include'
944 oldincludedir
='/usr/include'
945 docdir
='${datarootdir}/doc/${PACKAGE}'
946 infodir
='${datarootdir}/info'
951 libdir
='${exec_prefix}/lib'
952 localedir
='${datarootdir}/locale'
953 mandir
='${datarootdir}/man'
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\
$ac_option
967 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 # Accept the important Cygnus configure options, so we can diagnose typos.
974 case $ac_dashdash$ac_option in
978 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
980 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
983 -build |
--build |
--buil |
--bui |
--bu)
984 ac_prev
=build_alias
;;
985 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
986 build_alias
=$ac_optarg ;;
988 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
989 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
990 ac_prev
=cache_file
;;
991 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
992 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
993 cache_file
=$ac_optarg ;;
996 cache_file
=config.cache
;;
998 -datadir |
--datadir |
--datadi |
--datad)
1000 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1001 datadir
=$ac_optarg ;;
1003 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1004 |
--dataroo |
--dataro |
--datar)
1005 ac_prev
=datarootdir
;;
1006 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1007 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1008 datarootdir
=$ac_optarg ;;
1010 -disable-* |
--disable-*)
1011 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1014 as_fn_error $?
"invalid feature name: $ac_useropt"
1015 ac_useropt_orig
=$ac_useropt
1016 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1019 "enable_
$ac_useropt"
1021 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1022 ac_unrecognized_sep
=', ';;
1024 eval enable_
$ac_useropt=no
;;
1026 -docdir |
--docdir |
--docdi |
--doc |
--do)
1028 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1029 docdir
=$ac_optarg ;;
1031 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1033 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1034 dvidir
=$ac_optarg ;;
1036 -enable-* |
--enable-*)
1037 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1040 as_fn_error $?
"invalid feature name: $ac_useropt"
1041 ac_useropt_orig
=$ac_useropt
1042 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1045 "enable_
$ac_useropt"
1047 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1048 ac_unrecognized_sep
=', ';;
1050 eval enable_
$ac_useropt=\
$ac_optarg ;;
1052 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1053 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1054 |
--exec |
--exe |
--ex)
1055 ac_prev
=exec_prefix
;;
1056 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1057 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1058 |
--exec=* |
--exe=* |
--ex=*)
1059 exec_prefix
=$ac_optarg ;;
1061 -gas |
--gas |
--ga |
--g)
1062 # Obsolete; use --with-gas.
1065 -help |
--help |
--hel |
--he |
-h)
1066 ac_init_help
=long
;;
1067 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1068 ac_init_help
=recursive
;;
1069 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1070 ac_init_help
=short
;;
1072 -host |
--host |
--hos |
--ho)
1073 ac_prev
=host_alias
;;
1074 -host=* |
--host=* |
--hos=* |
--ho=*)
1075 host_alias
=$ac_optarg ;;
1077 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1079 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1081 htmldir
=$ac_optarg ;;
1083 -includedir |
--includedir |
--includedi |
--included |
--include \
1084 |
--includ |
--inclu |
--incl |
--inc)
1085 ac_prev
=includedir
;;
1086 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1087 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1088 includedir
=$ac_optarg ;;
1090 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1092 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1093 infodir
=$ac_optarg ;;
1095 -libdir |
--libdir |
--libdi |
--libd)
1097 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1098 libdir
=$ac_optarg ;;
1100 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1101 |
--libexe |
--libex |
--libe)
1102 ac_prev
=libexecdir
;;
1103 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1104 |
--libexe=* |
--libex=* |
--libe=*)
1105 libexecdir
=$ac_optarg ;;
1107 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1108 ac_prev
=localedir
;;
1109 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1110 localedir
=$ac_optarg ;;
1112 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1113 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1114 ac_prev
=localstatedir
;;
1115 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1116 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1117 localstatedir
=$ac_optarg ;;
1119 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1121 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1122 mandir
=$ac_optarg ;;
1124 -nfp |
--nfp |
--nf)
1125 # Obsolete; use --without-fp.
1128 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1129 |
--no-cr |
--no-c |
-n)
1132 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1133 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1136 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1137 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1138 |
--oldin |
--oldi |
--old |
--ol |
--o)
1139 ac_prev
=oldincludedir
;;
1140 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1141 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1142 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1143 oldincludedir
=$ac_optarg ;;
1145 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1147 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1148 prefix
=$ac_optarg ;;
1150 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1151 |
--program-pre |
--program-pr |
--program-p)
1152 ac_prev
=program_prefix
;;
1153 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1154 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1155 program_prefix
=$ac_optarg ;;
1157 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1158 |
--program-suf |
--program-su |
--program-s)
1159 ac_prev
=program_suffix
;;
1160 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1161 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1162 program_suffix
=$ac_optarg ;;
1164 -program-transform-name |
--program-transform-name \
1165 |
--program-transform-nam |
--program-transform-na \
1166 |
--program-transform-n |
--program-transform- \
1167 |
--program-transform |
--program-transfor \
1168 |
--program-transfo |
--program-transf \
1169 |
--program-trans |
--program-tran \
1170 |
--progr-tra |
--program-tr |
--program-t)
1171 ac_prev
=program_transform_name
;;
1172 -program-transform-name=* |
--program-transform-name=* \
1173 |
--program-transform-nam=* |
--program-transform-na=* \
1174 |
--program-transform-n=* |
--program-transform-=* \
1175 |
--program-transform=* |
--program-transfor=* \
1176 |
--program-transfo=* |
--program-transf=* \
1177 |
--program-trans=* |
--program-tran=* \
1178 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1179 program_transform_name
=$ac_optarg ;;
1181 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1183 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1184 pdfdir
=$ac_optarg ;;
1186 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1188 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1191 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1192 |
-silent |
--silent |
--silen |
--sile |
--sil)
1195 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1197 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1199 sbindir
=$ac_optarg ;;
1201 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1202 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1203 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1205 ac_prev
=sharedstatedir
;;
1206 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1207 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1208 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1210 sharedstatedir
=$ac_optarg ;;
1212 -site |
--site |
--sit)
1214 -site=* |
--site=* |
--sit=*)
1217 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1219 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1220 srcdir
=$ac_optarg ;;
1222 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1223 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1224 ac_prev
=sysconfdir
;;
1225 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1226 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1227 sysconfdir
=$ac_optarg ;;
1229 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1230 ac_prev
=target_alias
;;
1231 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1232 target_alias
=$ac_optarg ;;
1234 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1237 -version |
--version |
--versio |
--versi |
--vers |
-V)
1238 ac_init_version
=: ;;
1241 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1244 as_fn_error $?
"invalid package name: $ac_useropt"
1245 ac_useropt_orig
=$ac_useropt
1246 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1251 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1252 ac_unrecognized_sep
=', ';;
1254 eval with_
$ac_useropt=\
$ac_optarg ;;
1256 -without-* |
--without-*)
1257 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1260 as_fn_error $?
"invalid package name: $ac_useropt"
1261 ac_useropt_orig
=$ac_useropt
1262 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1267 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1268 ac_unrecognized_sep
=', ';;
1270 eval with_
$ac_useropt=no
;;
1273 # Obsolete; use --with-x.
1276 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1277 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1278 ac_prev
=x_includes
;;
1279 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1280 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1281 x_includes
=$ac_optarg ;;
1283 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1284 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1285 ac_prev
=x_libraries
;;
1286 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1287 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1288 x_libraries
=$ac_optarg ;;
1290 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1291 Try \`$0 --help' for more information"
1295 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1296 # Reject names that are not valid shell variable names.
1297 case $ac_envvar in #(
1298 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1299 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1301 eval $ac_envvar=\
$ac_optarg
1302 export $ac_envvar ;;
1305 # FIXME: should be removed in autoconf 3.0.
1306 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1307 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1308 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1309 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1315 if test -n "$ac_prev"; then
1316 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1317 as_fn_error $?
"missing argument to $ac_option"
1320 if test -n "$ac_unrecognized_opts"; then
1321 case $enable_option_checking in
1323 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1324 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1328 # Check all directory arguments for consistency.
1329 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1334 eval ac_val
=\$
$ac_var
1335 # Remove trailing slashes.
1338 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1339 eval $ac_var=\
$ac_val;;
1341 # Be sure to have absolute directory names.
1343 [\\/$
]* | ?
:[\\/]* ) continue;;
1344 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1346 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1354 target
=$target_alias
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x
; then
1358 if test "x$build_alias" = x
; then
1359 cross_compiling
=maybe
1360 elif test "x$build_alias" != "x$host_alias"; then
1366 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1368 test "$silent" = yes && exec 6>/dev
/null
1371 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1372 ac_ls_di
=`ls -di .` &&
1373 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1374 as_fn_error $?
"working directory cannot be determined"
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376 as_fn_error $?
"pwd does not report name of working directory"
1379 # Find the source files, if location was not specified.
1380 if test -z "$srcdir"; then
1381 ac_srcdir_defaulted
=yes
1382 # Try the directory containing this script, then the parent directory.
1383 ac_confdir
=`$as_dirname -- "$as_myself" ||
1384 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385 X"$as_myself" : 'X\(//\)[^/]' \| \
1386 X"$as_myself" : 'X\(//\)$' \| \
1387 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1388 $as_echo X"$as_myself" |
1389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1411 ac_srcdir_defaulted
=no
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1415 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1417 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1419 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1429 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 as_fn_error $?
"path to source, $srcdir, contains spaces"
1436 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1438 for ac_var
in $ac_precious_vars; do
1439 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1441 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1446 # Report the --help message.
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1452 \`configure' configures this package to adapt to many kinds of systems.
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1459 Defaults for the options are specified in brackets.
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1483 For better control, use the options below.
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1510 --program-prefix=PREFIX prepend PREFIX to installed program names
1511 --program-suffix=SUFFIX append SUFFIX to installed program names
1512 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1515 --build=BUILD configure
for building on BUILD
[guessed
]
1516 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1517 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1521 if test -n "$ac_init_help"; then
1526 --disable-option-checking ignore unrecognized
--enable/--with options
1527 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1528 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1529 --enable-as-accelerator-for=ARG
1530 build as offload target compiler. Specify offload
1532 --enable-offload-targets=LIST
1533 enable offloading to devices from comma-separated
1534 LIST of TARGET
[=DIR
]. Use optional path to
find
1535 offload target compiler during the build
1536 --enable-offload-defaulted
1537 If enabled
, configured but not installed offload compilers and
1538 libgomp plugins are silently ignored. Useful
for distribution
1539 compilers where those are
in separate optional packages.
1541 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1542 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1543 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1544 Enable compressed debug sections
for gas
, gold or ld
1546 --disable-libquadmath do not build libquadmath directory
1547 --disable-libquadmath-support
1548 disable libquadmath support
for Fortran
1549 --enable-libada build libada directory
1550 --enable-libgm2 build libgm2 directory
1551 --enable-libssp build libssp directory
1552 --disable-libstdcxx do not build libstdc
++-v3 directory
1553 --enable-bootstrap enable bootstrapping
[yes if native build
]
1554 --enable-pgo-build[=lto
]
1555 enable the PGO build
1556 --disable-isl-version-check
1557 disable check
for isl version
1558 --enable-lto enable link
time optimization support
1559 --enable-linker-plugin-configure-flags=FLAGS
1560 additional flags
for configuring linker plugins
1562 --enable-linker-plugin-flags=FLAGS
1563 additional flags
for configuring and building linker
1565 --enable-host-pie build position independent
host executables
1566 --enable-host-shared build
host code as shared libraries
1567 --enable-stage1-languages[=all
]
1568 choose additional languages to build during stage1.
1569 Mostly useful
for compiler development
1570 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1572 --enable-vtable-verify Enable vtable verification feature
1573 --enable-serial-[{host,target,build}-]configure
1574 force sequential configuration of sub-packages for
1575 the host, target or build machine, or all
1577 --enable-maintainer-mode
1578 enable make rules and dependencies not useful (and
1579 sometimes confusing) to the casual installer
1580 --enable-stage1-checking[=all]
1581 choose additional checking for stage1 of the
1583 --enable-werror enable -Werror in bootstrap stage2 and later
1586 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1587 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1588 --with-build-libsubdir=DIR Directory where to find libraries for build system
1589 --with-system-zlib use installed libz
1590 --with-mpc=PATH specify prefix directory for installed MPC package.
1591 Equivalent to --with-mpc-include=PATH/include plus
1592 --with-mpc-lib=PATH/lib
1593 --with-mpc-include=PATH specify directory for installed MPC include files
1594 --with-mpc-lib=PATH specify directory for the installed MPC library
1595 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1596 Equivalent to --with-mpfr-include=PATH/include plus
1597 --with-mpfr-lib=PATH/lib
1598 --with-mpfr-include=PATH
1599 specify directory for installed MPFR include files
1600 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1601 --with-gmp=PATH specify prefix directory for the installed GMP
1602 package. Equivalent to
1603 --with-gmp-include=PATH/include plus
1604 --with-gmp-lib=PATH/lib
1605 --with-gmp-include=PATH specify directory for installed GMP include files
1606 --with-gmp-lib=PATH specify directory for the installed GMP library
1607 --with-stage1-libs=LIBS libraries for stage1
1608 --with-static-standard-libraries
1609 use -static-libstdc++ and -static-libgcc
1611 --with-stage1-ldflags=FLAGS
1612 linker flags for stage1
1613 --with-boot-libs=LIBS libraries for stage2 and later
1614 --with-boot-ldflags=FLAGS
1615 linker flags for stage2 and later
1616 --with-isl=PATH Specify prefix directory for the installed isl
1617 package. Equivalent to
1618 --with-isl-include=PATH/include plus
1619 --with-isl-lib=PATH/lib
1620 --with-isl-include=PATH Specify directory for installed isl include files
1621 --with-isl-lib=PATH Specify the directory for the installed isl library
1622 --with-target-bdw-gc=PATHLIST
1623 specify prefix directory for installed bdw-gc
1624 package. Equivalent to
1625 --with-target-bdw-gc-include=PATH/include plus
1626 --with-target-bdw-gc-lib=PATH/lib
1627 --with-target-bdw-gc-include=PATHLIST
1628 specify directories for installed bdw-gc include
1630 --with-target-bdw-gc-lib=PATHLIST
1631 specify directories for installed bdw-gc library
1632 --with-gcc-major-version-only
1633 use only GCC major number in filesystem paths
1634 --with-build-sysroot=SYSROOT
1635 use sysroot as the system root during the build
1636 --with-debug-prefix-map='A
=B C
=D ...
'
1637 map A to B, C to D ... in debug information
1638 --with-build-config='NAME NAME2...
'
1639 use config/NAME.mk build configuration
1640 --with-build-time-tools=PATH
1641 use given path to find target tools during the build
1643 Some influential environment variables:
1644 CC C compiler command
1645 CFLAGS C compiler flags
1646 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1647 nonstandard directory <lib dir>
1648 LIBS libraries to pass to the linker, e.g. -l<library>
1649 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1650 you have headers in a nonstandard directory <include dir>
1651 CXX C++ compiler command
1652 CXXFLAGS C++ compiler flags
1654 additional configure arguments for build directories
1656 additional configure arguments for host directories
1658 additional configure arguments for target directories
1661 DLLTOOL DLLTOOL for the host
1662 DSYMUTIL DSYMUTIL for the host
1664 LIPO LIPO for the host
1666 RANLIB RANLIB for the host
1667 STRIP STRIP for the host
1668 WINDRES WINDRES for the host
1669 WINDMC WINDMC for the host
1670 OBJCOPY OBJCOPY for the host
1671 OBJDUMP OBJDUMP for the host
1672 OTOOL OTOOL for the host
1673 READELF READELF for the host
1681 GFORTRAN for the target
1693 DLLTOOL for the target
1695 DSYMUTIL for the target
1703 OBJCOPY for the target
1705 OBJDUMP for the target
1707 OTOOL for the target
1709 RANLIB for the target
1711 READELF for the target
1713 STRIP for the target
1715 WINDRES for the target
1717 WINDMC for the target
1719 Use these variables to override the choices made by `configure' or to
help
1720 it to
find libraries and programs with nonstandard names
/locations.
1722 Report bugs to the package provider.
1727 if test "$ac_init_help" = "recursive"; then
1728 # If there are subdirs, report their specific --help.
1729 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1730 test -d "$ac_dir" ||
1731 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1736 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1738 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1739 # A ".." for each directory in $ac_dir_suffix.
1740 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1741 case $ac_top_builddir_sub in
1742 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1743 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1746 ac_abs_top_builddir
=$ac_pwd
1747 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1748 # for backward compatibility:
1749 ac_top_builddir
=$ac_top_build_prefix
1752 .
) # We are building in place.
1754 ac_top_srcdir
=$ac_top_builddir_sub
1755 ac_abs_top_srcdir
=$ac_pwd ;;
1756 [\\/]* | ?
:[\\/]* ) # Absolute name.
1757 ac_srcdir
=$srcdir$ac_dir_suffix;
1758 ac_top_srcdir
=$srcdir
1759 ac_abs_top_srcdir
=$srcdir ;;
1761 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1762 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1763 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1765 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1767 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1768 # Check for guested configure.
1769 if test -f "$ac_srcdir/configure.gnu"; then
1771 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1772 elif test -f "$ac_srcdir/configure"; then
1774 $SHELL "$ac_srcdir/configure" --help=recursive
1776 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1778 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1782 test -n "$ac_init_help" && exit $ac_status
1783 if $ac_init_version; then
1786 generated by GNU Autoconf
2.69
1788 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1789 This configure
script is free software
; the Free Software Foundation
1790 gives unlimited permission to copy
, distribute and modify it.
1795 ## ------------------------ ##
1796 ## Autoconf initialization. ##
1797 ## ------------------------ ##
1799 # ac_fn_c_try_compile LINENO
1800 # --------------------------
1801 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1802 ac_fn_c_try_compile
()
1804 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1805 rm -f conftest.
$ac_objext
1806 if { { ac_try
="$ac_compile"
1808 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1809 *) ac_try_echo=$ac_try;;
1811 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1812 $as_echo "$ac_try_echo"; } >&5
1813 (eval "$ac_compile") 2>conftest.err
1815 if test -s conftest.err; then
1816 grep -v '^ *+' conftest.err >conftest.er1
1817 cat conftest.er1 >&5
1818 mv -f conftest.er1 conftest.err
1820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1821 test $ac_status = 0; } && {
1822 test -z "$ac_c_werror_flag" ||
1823 test ! -s conftest.err
1824 } && test -s conftest.$ac_objext; then :
1827 $as_echo "$as_me: failed program was:" >&5
1828 sed 's/^/| /' conftest.$ac_ext >&5
1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1833 as_fn_set_status $ac_retval
1835 } # ac_fn_c_try_compile
1837 # ac_fn_cxx_try_compile LINENO
1838 # ----------------------------
1839 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1840 ac_fn_cxx_try_compile ()
1842 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1843 rm -f conftest.$ac_objext
1844 if { { ac_try="$ac_compile"
1846 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1847 *) ac_try_echo
=$ac_try;;
1849 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1850 $as_echo "$ac_try_echo"; } >&5
1851 (eval "$ac_compile") 2>conftest.err
1853 if test -s conftest.err
; then
1854 grep -v '^ *+' conftest.err
>conftest.er1
1855 cat conftest.er1
>&5
1856 mv -f conftest.er1 conftest.err
1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1859 test $ac_status = 0; } && {
1860 test -z "$ac_cxx_werror_flag" ||
1861 test ! -s conftest.err
1862 } && test -s conftest.
$ac_objext; then :
1865 $as_echo "$as_me: failed program was:" >&5
1866 sed 's/^/| /' conftest.
$ac_ext >&5
1870 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1871 as_fn_set_status
$ac_retval
1873 } # ac_fn_cxx_try_compile
1875 # ac_fn_cxx_try_link LINENO
1876 # -------------------------
1877 # Try to link conftest.$ac_ext, and return whether this succeeded.
1878 ac_fn_cxx_try_link
()
1880 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1881 rm -f conftest.
$ac_objext conftest
$ac_exeext
1882 if { { ac_try
="$ac_link"
1884 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1885 *) ac_try_echo=$ac_try;;
1887 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1888 $as_echo "$ac_try_echo"; } >&5
1889 (eval "$ac_link") 2>conftest.err
1891 if test -s conftest.err; then
1892 grep -v '^ *+' conftest.err >conftest.er1
1893 cat conftest.er1 >&5
1894 mv -f conftest.er1 conftest.err
1896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1897 test $ac_status = 0; } && {
1898 test -z "$ac_cxx_werror_flag" ||
1899 test ! -s conftest.err
1900 } && test -s conftest$ac_exeext && {
1901 test "$cross_compiling" = yes ||
1902 test -x conftest$ac_exeext
1906 $as_echo "$as_me: failed program was:" >&5
1907 sed 's/^/| /' conftest.$ac_ext >&5
1911 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1912 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1913 # interfere with the next link command; also delete a directory that is
1914 # left behind by Apple's compiler. We do this before executing the actions.
1915 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1917 as_fn_set_status $ac_retval
1919 } # ac_fn_cxx_try_link
1921 # ac_fn_c_try_link LINENO
1922 # -----------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded.
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext conftest$ac_exeext
1928 if { { ac_try="$ac_link"
1930 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1931 *) ac_try_echo
=$ac_try;;
1933 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>conftest.err
1937 if test -s conftest.err
; then
1938 grep -v '^ *+' conftest.err
>conftest.er1
1939 cat conftest.er1
>&5
1940 mv -f conftest.er1 conftest.err
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_c_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest
$ac_exeext && {
1947 test "$cross_compiling" = yes ||
1948 test -x conftest
$ac_exeext
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.
$ac_ext >&5
1957 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959 # interfere with the next link command; also delete a directory that is
1960 # left behind by Apple's compiler. We do this before executing the actions.
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1963 as_fn_set_status
$ac_retval
1965 } # ac_fn_c_try_link
1966 cat >config.log
<<_ACEOF
1967 This file contains any messages produced by compilers while
1968 running configure, to aid debugging if configure makes a mistake.
1970 It was created by $as_me, which was
1971 generated by GNU Autoconf 2.69. Invocation command line was
1983 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1984 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1985 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1986 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1987 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1989 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1990 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1992 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1993 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1994 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1995 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1996 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1997 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1998 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2002 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2006 test -z "$as_dir" && as_dir
=.
2007 $as_echo "PATH: $as_dir"
2023 # Keep a trace of the command line.
2024 # Strip out --no-create and --no-recursion so they do not pile up.
2025 # Strip out --silent because we don't want to record it for future runs.
2026 # Also quote any args containing shell meta-characters.
2027 # Make two passes to allow for proper duplicate-argument suppression.
2031 ac_must_keep_next
=false
2037 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2038 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2039 |
-silent |
--silent |
--silen |
--sile |
--sil)
2042 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2045 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2047 as_fn_append ac_configure_args1
" '$ac_arg'"
2048 if test $ac_must_keep_next = true
; then
2049 ac_must_keep_next
=false
# Got value, back to normal.
2052 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2053 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2054 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2055 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2056 case "$ac_configure_args0 " in
2057 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2060 -* ) ac_must_keep_next
=true
;;
2063 as_fn_append ac_configure_args
" '$ac_arg'"
2068 { ac_configure_args0
=; unset ac_configure_args0
;}
2069 { ac_configure_args1
=; unset ac_configure_args1
;}
2071 # When interrupted or exit'd, cleanup temporary files, and complete
2072 # config.log. We remove comments because anyway the quotes in there
2073 # would cause problems or look ugly.
2074 # WARNING: Use '\'' to represent an apostrophe within the trap.
2075 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2076 trap 'exit_status=$?
2077 # Save into config.log some information that might help in debugging.
2081 $as_echo "## ---------------- ##
2082 ## Cache variables. ##
2083 ## ---------------- ##"
2085 # The following way of writing the cache mishandles newlines in values,
2087 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2088 eval ac_val=\$$ac_var
2092 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2093 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2096 _ | IFS | as_nl) ;; #(
2097 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2098 *) { eval $ac_var=; unset $ac_var;} ;;
2103 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2104 *${as_nl}ac_space=\ *)
2106 "s/'\''/'\''\\\\'\'''\''/g;
2107 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2110 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2117 $as_echo "## ----------------- ##
2118 ## Output variables. ##
2119 ## ----------------- ##"
2121 for ac_var in $ac_subst_vars
2123 eval ac_val=\$$ac_var
2125 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2127 $as_echo "$ac_var='\''$ac_val'\''"
2131 if test -n "$ac_subst_files"; then
2132 $as_echo "## ------------------- ##
2133 ## File substitutions. ##
2134 ## ------------------- ##"
2136 for ac_var
in $ac_subst_files
2138 eval ac_val
=\$
$ac_var
2140 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2142 $as_echo "$ac_var='\''$ac_val'\''"
2147 if test -s confdefs.h; then
2148 $as_echo "## ----------- ##
2155 test "$ac_signal" != 0 &&
2156 $as_echo "$as_me: caught signal $ac_signal"
2157 $as_echo "$as_me: exit $exit_status"
2159 rm -f core *.core core.conftest.* &&
2160 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2163 for ac_signal
in 1 2 13 15; do
2164 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2168 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2169 rm -f -r conftest
* confdefs.h
2171 $as_echo "/* confdefs.h */" > confdefs.h
2173 # Predefined preprocessor variables.
2175 cat >>confdefs.h
<<_ACEOF
2176 #define PACKAGE_NAME "$PACKAGE_NAME"
2179 cat >>confdefs.h
<<_ACEOF
2180 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2183 cat >>confdefs.h
<<_ACEOF
2184 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2187 cat >>confdefs.h
<<_ACEOF
2188 #define PACKAGE_STRING "$PACKAGE_STRING"
2191 cat >>confdefs.h
<<_ACEOF
2192 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2195 cat >>confdefs.h
<<_ACEOF
2196 #define PACKAGE_URL "$PACKAGE_URL"
2200 # Let the site file select an alternate cache file if it wants to.
2201 # Prefer an explicitly selected file to automatically selected ones.
2204 if test -n "$CONFIG_SITE"; then
2205 # We do not want a PATH search for config.site.
2206 case $CONFIG_SITE in #((
2207 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2208 */*) ac_site_file1
=$CONFIG_SITE;;
2209 *) ac_site_file1
=.
/$CONFIG_SITE;;
2211 elif test "x$prefix" != xNONE
; then
2212 ac_site_file1
=$prefix/share
/config.site
2213 ac_site_file2
=$prefix/etc
/config.site
2215 ac_site_file1
=$ac_default_prefix/share
/config.site
2216 ac_site_file2
=$ac_default_prefix/etc
/config.site
2218 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2220 test "x$ac_site_file" = xNONE
&& continue
2221 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2223 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2224 sed 's/^/| /' "$ac_site_file" >&5
2226 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2227 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2228 as_fn_error $?
"failed to load site script $ac_site_file
2229 See \`config.log' for more details" "$LINENO" 5; }
2233 if test -r "$cache_file"; then
2234 # Some versions of bash will fail to source /dev/null (special files
2235 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2236 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2238 $as_echo "$as_me: loading cache $cache_file" >&6;}
2240 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2241 *) .
"./$cache_file";;
2245 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2246 $as_echo "$as_me: creating cache $cache_file" >&6;}
2250 # Check that the precious variables saved in the cache have kept the same
2252 ac_cache_corrupted
=false
2253 for ac_var
in $ac_precious_vars; do
2254 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2255 eval ac_new_set
=\
$ac_env_${ac_var}_set
2256 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2257 eval ac_new_val
=\
$ac_env_${ac_var}_value
2258 case $ac_old_set,$ac_new_set in
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2261 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2262 ac_cache_corrupted
=: ;;
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2265 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2266 ac_cache_corrupted
=: ;;
2269 if test "x$ac_old_val" != "x$ac_new_val"; then
2270 # differences in whitespace do not lead to failure.
2271 ac_old_val_w
=`echo x $ac_old_val`
2272 ac_new_val_w
=`echo x $ac_new_val`
2273 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2275 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2276 ac_cache_corrupted
=:
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2279 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2280 eval $ac_var=\
$ac_old_val
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2283 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2285 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2288 # Pass precious variables to config.status.
2289 if test "$ac_new_set" = set; then
2291 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2292 *) ac_arg
=$ac_var=$ac_new_val ;;
2294 case " $ac_configure_args " in
2295 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2296 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2300 if $ac_cache_corrupted; then
2301 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2304 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2305 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2307 ## -------------------- ##
2308 ## Main body of script. ##
2309 ## -------------------- ##
2312 ac_cpp
='$CPP $CPPFLAGS'
2313 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2314 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2315 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2325 # if PWD already has a value, it is probably wrong.
2326 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2328 # Export original configure arguments for use by sub-configures.
2329 # Quote arguments with shell meta charatcers.
2330 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2331 set -- "$progname" "$@"
2335 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2336 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2337 # if the argument is of the form -foo=baz, quote the baz part only
2338 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2341 # Add the quoted argument to the list.
2342 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2344 if test "$silent" = yes; then
2345 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2347 # Remove the initial space we just introduced and, as these will be
2348 # expanded by make, quote '$'.
2349 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2352 # Find the build, host, and target systems.
2354 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2355 if test -f "$ac_dir/install-sh"; then
2357 ac_install_sh
="$ac_aux_dir/install-sh -c"
2359 elif test -f "$ac_dir/install.sh"; then
2361 ac_install_sh
="$ac_aux_dir/install.sh -c"
2363 elif test -f "$ac_dir/shtool"; then
2365 ac_install_sh
="$ac_aux_dir/shtool install -c"
2369 if test -z "$ac_aux_dir"; then
2370 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2373 # These three variables are undocumented and unsupported,
2374 # and are intended to be withdrawn in a future Autoconf release.
2375 # They can cause serious problems if a builder's source tree is in a directory
2376 # whose full name contains unusual characters.
2377 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2378 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2379 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2382 # Make sure we can run config.sub.
2383 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2384 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2387 $as_echo_n "checking build system type... " >&6; }
2388 if ${ac_cv_build+:} false
; then :
2389 $as_echo_n "(cached) " >&6
2391 ac_build_alias
=$build_alias
2392 test "x$ac_build_alias" = x
&&
2393 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2394 test "x$ac_build_alias" = x
&&
2395 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2396 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2397 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2401 $as_echo "$ac_cv_build" >&6; }
2402 case $ac_cv_build in
2404 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2407 ac_save_IFS
=$IFS; IFS
='-'
2413 # Remember, the first character of IFS is used to create $*,
2414 # except with old shells:
2417 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2420 case ${build_alias} in
2421 "") build_noncanonical
=${build} ;;
2422 *) build_noncanonical
=${build_alias} ;;
2427 case ${host_alias} in
2428 "") host_noncanonical
=${build_noncanonical} ;;
2429 *) host_noncanonical
=${host_alias} ;;
2434 case ${target_alias} in
2435 "") target_noncanonical
=${host_noncanonical} ;;
2436 *) target_noncanonical
=${target_alias} ;;
2442 test "$host_noncanonical" = "$target_noncanonical" &&
2443 test "$program_prefix$program_suffix$program_transform_name" = \
2445 program_transform_name
=s
,y
,y
,
2447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2448 $as_echo_n "checking host system type... " >&6; }
2449 if ${ac_cv_host+:} false
; then :
2450 $as_echo_n "(cached) " >&6
2452 if test "x$host_alias" = x
; then
2453 ac_cv_host
=$ac_cv_build
2455 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2456 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2461 $as_echo "$ac_cv_host" >&6; }
2464 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2467 ac_save_IFS
=$IFS; IFS
='-'
2473 # Remember, the first character of IFS is used to create $*,
2474 # except with old shells:
2477 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2481 $as_echo_n "checking target system type... " >&6; }
2482 if ${ac_cv_target+:} false
; then :
2483 $as_echo_n "(cached) " >&6
2485 if test "x$target_alias" = x
; then
2486 ac_cv_target
=$ac_cv_host
2488 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2489 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2494 $as_echo "$ac_cv_target" >&6; }
2495 case $ac_cv_target in
2497 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2499 target
=$ac_cv_target
2500 ac_save_IFS
=$IFS; IFS
='-'
2506 # Remember, the first character of IFS is used to create $*,
2507 # except with old shells:
2510 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2513 # The aliases save the names the user supplied, while $host etc.
2514 # will get canonicalized.
2515 test -n "$target_alias" &&
2516 test "$program_prefix$program_suffix$program_transform_name" = \
2518 program_prefix
=${target_alias}-
2520 test "$program_prefix" != NONE
&&
2521 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2522 # Use a double $ so make ignores it.
2523 test "$program_suffix" != NONE
&&
2524 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2525 # Double any \ or $.
2526 # By default was `s,x,x', remove it if useless.
2527 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2528 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2532 # Get 'install' or 'install-sh' and its variants.
2533 # Find a good install program. We prefer a C program (faster),
2534 # so one script is as good as another. But avoid the broken or
2535 # incompatible versions:
2536 # SysV /etc/install, /usr/sbin/install
2537 # SunOS /usr/etc/install
2538 # IRIX /sbin/install
2540 # AmigaOS /C/install, which installs bootblocks on floppy discs
2541 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2542 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2543 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2544 # OS/2's system install, which has a completely different semantic
2545 # ./install, which can be erroneously created by make from ./install.sh.
2546 # Reject install programs that cannot install multiple files.
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2548 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2549 if test -z "$INSTALL"; then
2550 if ${ac_cv_path_install+:} false
; then :
2551 $as_echo_n "(cached) " >&6
2553 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2557 test -z "$as_dir" && as_dir
=.
2558 # Account for people who put trailing slashes in PATH elements.
2559 case $as_dir/ in #((
2560 .
/ | .
// |
/[cC
]/* | \
2561 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2562 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2565 # OSF1 and SCO ODT 3.0 have their own names for install.
2566 # Don't use installbsd from OSF since it installs stuff as root
2568 for ac_prog
in ginstall scoinst
install; do
2569 for ac_exec_ext
in '' $ac_executable_extensions; do
2570 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2571 if test $ac_prog = install &&
2572 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2573 # AIX install. It has an incompatible calling convention.
2575 elif test $ac_prog = install &&
2576 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2577 # program-specific install script used by HP pwplus--don't use.
2580 rm -rf conftest.one conftest.two conftest.dir
2581 echo one
> conftest.one
2582 echo two
> conftest.two
2584 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2585 test -s conftest.one
&& test -s conftest.two
&&
2586 test -s conftest.dir
/conftest.one
&&
2587 test -s conftest.dir
/conftest.two
2589 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2602 rm -rf conftest.one conftest.two conftest.dir
2605 if test "${ac_cv_path_install+set}" = set; then
2606 INSTALL
=$ac_cv_path_install
2608 # As a last resort, use the slow shell script. Don't cache a
2609 # value for INSTALL within a source directory, because that will
2610 # break other packages using the cache if that directory is
2611 # removed, or if the value is a relative name.
2612 INSTALL
=$ac_install_sh
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2616 $as_echo "$INSTALL" >&6; }
2618 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2619 # It thinks the first close brace ends the variable substitution.
2620 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2622 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2624 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2627 $as_echo_n "checking whether ln works... " >&6; }
2628 if ${acx_cv_prog_LN+:} false
; then :
2629 $as_echo_n "(cached) " >&6
2631 rm -f conftestdata_t
2632 echo >conftestdata_f
2633 if ln conftestdata_f conftestdata_t
2>/dev
/null
2639 rm -f conftestdata_f conftestdata_t
2642 if test $acx_cv_prog_LN = no
; then
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2645 $as_echo "no, using $LN" >&6; }
2647 LN
="$acx_cv_prog_LN"
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649 $as_echo "yes" >&6; }
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2653 $as_echo_n "checking whether ln -s works... " >&6; }
2655 if test "$LN_S" = "ln -s"; then
2656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2657 $as_echo "yes" >&6; }
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2660 $as_echo "no, using $LN_S" >&6; }
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2664 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2665 if ${ac_cv_path_SED+:} false
; then :
2666 $as_echo_n "(cached) " >&6
2668 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2669 for ac_i
in 1 2 3 4 5 6 7; do
2670 ac_script
="$ac_script$as_nl$ac_script"
2672 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2673 { ac_script
=; unset ac_script
;}
2674 if test -z "$SED"; then
2675 ac_path_SED_found
=false
2676 # Loop through the user's path and test for each of PROGNAME-LIST
2677 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2681 test -z "$as_dir" && as_dir
=.
2682 for ac_prog
in sed gsed
; do
2683 for ac_exec_ext
in '' $ac_executable_extensions; do
2684 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2685 as_fn_executable_p
"$ac_path_SED" ||
continue
2686 # Check for GNU ac_path_SED and select it if it is found.
2687 # Check for GNU $ac_path_SED
2688 case `"$ac_path_SED" --version 2>&1` in
2690 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2693 $as_echo_n 0123456789 >"conftest.in"
2696 cat "conftest.in" "conftest.in" >"conftest.tmp"
2697 mv "conftest.tmp" "conftest.in"
2698 cp "conftest.in" "conftest.nl"
2699 $as_echo '' >> "conftest.nl"
2700 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2701 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2702 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2703 if test $ac_count -gt ${ac_path_SED_max-0}; then
2704 # Best one so far, save it but keep looking for a better one
2705 ac_cv_path_SED
="$ac_path_SED"
2706 ac_path_SED_max
=$ac_count
2708 # 10*(2^10) chars as input seems more than enough
2709 test $ac_count -gt 10 && break
2711 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2714 $ac_path_SED_found && break 3
2719 if test -z "$ac_cv_path_SED"; then
2720 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2728 $as_echo "$ac_cv_path_SED" >&6; }
2729 SED
="$ac_cv_path_SED"
2732 for ac_prog
in gawk mawk nawk
awk
2734 # Extract the first word of "$ac_prog", so it can be a program name with args.
2735 set dummy
$ac_prog; ac_word
=$2
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2737 $as_echo_n "checking for $ac_word... " >&6; }
2738 if ${ac_cv_prog_AWK+:} false
; then :
2739 $as_echo_n "(cached) " >&6
2741 if test -n "$AWK"; then
2742 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2744 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2748 test -z "$as_dir" && as_dir
=.
2749 for ac_exec_ext
in '' $ac_executable_extensions; do
2750 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2751 ac_cv_prog_AWK
="$ac_prog"
2752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 if test -n "$AWK"; then
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2764 $as_echo "$AWK" >&6; }
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 $as_echo "no" >&6; }
2771 test -n "$AWK" && break
2775 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2777 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2779 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2780 INSTALL
="${srcpwd}/install-sh -c"
2783 # Set srcdir to "." if that's what it is.
2784 # This is important for multilib support.
2786 if test "${pwd}" = "${srcpwd}" ; then
2794 ### To add a new directory to the tree, first choose whether it is a target
2795 ### or a host dependent tool. Then put it into the appropriate list
2796 ### (library or tools, host or target), doing a dependency sort.
2798 # Subdirs will be configured in the order listed in build_configdirs,
2799 # configdirs, or target_configdirs; see the serialization section below.
2801 # Dependency sorting is only needed when *configuration* must be done in
2802 # a particular order. In all cases a dependency should be specified in
2803 # the Makefile, whether or not it's implicitly specified here.
2805 # Double entries in build_configdirs, configdirs, or target_configdirs may
2806 # cause circular dependencies and break everything horribly.
2808 # these library is used by various programs built for the build
2811 build_libs
="build-libiberty build-libcpp"
2813 # these tools are built for the build environment
2814 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2816 # these libraries are used by various programs built for the host environment
2818 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2820 # these tools are built for the host environment
2821 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2822 # know that we are building the simulator.
2823 # binutils, gas and ld appear in that order because it makes sense to run
2824 # "make check" in that particular order.
2825 # If --enable-gold is used, "gold" may replace "ld".
2826 host_tools
="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gm2tools gotools c++tools"
2828 # these libraries are built for the target environment, and are built after
2829 # the host libraries and the host tools (which may be a cross compiler)
2830 # Note that libiberty is not a target library.
2831 target_libraries
="target-libgcc \
2832 target-libbacktrace \
2838 target-libstdc++-v3 \
2839 target-libsanitizer \
2842 target-libquadmath \
2843 target-libgfortran \
2852 # these tools are built using the target libraries, and are intended to
2853 # run only in the target environment
2855 # note: any program that *uses* libraries that are in the "target_libraries"
2856 # list belongs in this list.
2858 target_tools
="target-rda"
2860 ################################################################################
2862 ## All tools belong in one of the four categories, and are assigned above
2863 ## We assign ${configdirs} this way to remove all embedded newlines. This
2864 ## is important because configure will choke if they ever get through.
2865 ## ${configdirs} is directories we build using the host tools.
2866 ## ${target_configdirs} is directories we build using the target tools.
2867 configdirs
=`echo ${host_libs} ${host_tools}`
2868 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2869 build_configdirs
=`echo ${build_libs} ${build_tools}`
2873 ################################################################################
2875 srcname
="gnu development package"
2877 # This gets set non-empty for some net releases of packages.
2880 # Define is_cross_compiler to save on calls to 'test'.
2882 if test x
"${host}" = x
"${target}" ; then
2883 is_cross_compiler
=no
2885 is_cross_compiler
=yes
2888 # Find the build and target subdir names.
2890 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2891 # have matching libraries, they should use host libraries: Makefile.tpl
2892 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2893 # However, they still use the build modules, because the corresponding
2894 # host modules (e.g. bison) are only built for the host when bootstrap
2896 # - build_subdir is where we find build modules, and never changes.
2897 # - build_libsubdir is where we find build libraries, and can be overridden.
2899 # Prefix 'build-' so this never conflicts with target_subdir.
2900 build_subdir
="build-${build_noncanonical}"
2902 # Check whether --with-build-libsubdir was given.
2903 if test "${with_build_libsubdir+set}" = set; then :
2904 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2906 build_libsubdir
="$build_subdir"
2909 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2910 if ( test $srcdir = .
&& test -d gcc
) \
2911 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2912 host_subdir
="host-${host_noncanonical}"
2917 target_subdir
=${target_noncanonical}
2919 # Be sure to cover against remnants of an in-tree build.
2920 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2921 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2922 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2925 # Skipdirs are removed silently.
2927 # Noconfigdirs are removed loudly.
2931 # Make sure we don't let GNU ld be added if we didn't want it.
2932 if test x
$with_gnu_ld = xno
; then
2934 noconfigdirs
="$noconfigdirs ld gold"
2938 # Make sure we don't let GNU as be added if we didn't want it.
2939 if test x
$with_gnu_as = xno
; then
2941 noconfigdirs
="$noconfigdirs gas"
2946 # Check whether --with-system-zlib was given.
2947 if test "${with_system_zlib+set}" = set; then :
2948 withval
=$with_system_zlib;
2951 # Make sure we don't let ZLIB be added if we didn't want it.
2952 if test x
$with_system_zlib = xyes
; then
2953 use_included_zlib
=no
2954 noconfigdirs
="$noconfigdirs zlib"
2957 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2959 if test x
$with_system_readline = xyes
; then
2960 noconfigdirs
="$noconfigdirs readline"
2963 # some tools are so dependent upon X11 that if we're not building with X,
2964 # it's not even worth trying to configure, much less build, that tool.
2967 yes |
"") ;; # the default value for this tree is that X11 is available
2969 skipdirs
="${skipdirs} tk itcl libgui"
2970 # We won't be able to build gdbtk without X.
2973 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2976 # Some are only suitable for cross toolchains.
2977 # Remove these if host=target.
2978 cross_only
="target-libgloss target-newlib target-opcodes"
2980 case $is_cross_compiler in
2981 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2984 # If both --with-headers and --with-libs are specified, default to
2986 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2987 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2988 if test x
"${with_newlib}" = x
; then
2993 # Recognize --with-newlib/--without-newlib.
2994 case ${with_newlib} in
2995 no
) skipdirs
="${skipdirs} target-newlib" ;;
2996 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2999 # Check whether --enable-as-accelerator-for was given.
3000 if test "${enable_as_accelerator_for+set}" = set; then :
3001 enableval
=$enable_as_accelerator_for;
3005 # Check whether --enable-offload-targets was given.
3006 if test "${enable_offload_targets+set}" = set; then :
3007 enableval
=$enable_offload_targets;
3008 if test x
"$enable_offload_targets" = x
; then
3009 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3013 enable_offload_targets
=
3017 # Check whether --enable-offload-defaulted was given.
3018 if test "${enable_offload_defaulted+set}" = set; then :
3019 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3021 enable_offload_defaulted
=
3025 # Handle --enable-gold, --enable-ld.
3026 # --disable-gold [--enable-ld]
3027 # Build only ld. Default option.
3028 # --enable-gold [--enable-ld]
3029 # Build both gold and ld. Install gold as "ld.gold", install ld
3030 # as "ld.bfd" and "ld".
3031 # --enable-gold=default [--enable-ld]
3032 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3033 # install ld as "ld.bfd".
3034 # --enable-gold[=default] --disable-ld
3035 # Build only gold, which is then installed as both "ld.gold" and "ld".
3036 # --enable-gold --enable-ld=default
3037 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3039 # In other words, ld is default
3040 # --enable-gold=default --enable-ld=default
3044 # Check whether --enable-gold was given.
3045 if test "${enable_gold+set}" = set; then :
3046 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3051 case "${ENABLE_GOLD}" in
3053 # Check for ELF target.
3056 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3057 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3058 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3059 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3061 *-*-linux*aout
* |
*-*-linux*oldld
*)
3069 if test "$is_elf" = "yes"; then
3070 # Check for target supported by gold.
3072 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3073 | aarch64
*-*-* | mips
*-*-* | s390
*-*-* | loongarch
*-*-*)
3074 configdirs
="$configdirs gold"
3075 if test x
${ENABLE_GOLD} = xdefault
; then
3086 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3090 # Check whether --enable-ld was given.
3091 if test "${enable_ld+set}" = set; then :
3092 enableval
=$enable_ld; ENABLE_LD
=$enableval
3098 case "${ENABLE_LD}" in
3100 if test x
${default_ld} != x
; then
3101 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3107 if test x
${ENABLE_GOLD} != xyes
; then
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3109 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3111 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3114 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3119 # Decide the default method for compressing debug sections.
3120 # Provide a configure time option to override our default.
3121 # Check whether --enable-compressed_debug_sections was given.
3122 if test "${enable_compressed_debug_sections+set}" = set; then :
3123 enableval
=$enable_compressed_debug_sections;
3124 if test x
"$enable_compressed_debug_sections" = xyes
; then
3125 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3129 enable_compressed_debug_sections
=
3133 # Configure extra directories which are host specific
3137 configdirs
="$configdirs libtermcap" ;;
3140 # A target can indicate whether a language isn't supported for some reason.
3141 # Only spaces may be used in this macro; not newlines or tabs.
3142 unsupported_languages
=
3144 # Remove more programs from consideration, based on the host or
3145 # target this usually means that a port of the program doesn't
3149 i
[3456789]86-*-msdosdjgpp*)
3150 noconfigdirs
="$noconfigdirs tcl tk itcl"
3155 # Check whether --enable-libquadmath was given.
3156 if test "${enable_libquadmath+set}" = set; then :
3157 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3159 ENABLE_LIBQUADMATH
=yes
3162 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3163 noconfigdirs
="$noconfigdirs target-libquadmath"
3167 # Check whether --enable-libquadmath-support was given.
3168 if test "${enable_libquadmath_support+set}" = set; then :
3169 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3171 ENABLE_LIBQUADMATH_SUPPORT
=yes
3174 enable_libquadmath_support
=
3175 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3176 enable_libquadmath_support
=no
3180 # Check whether --enable-libada was given.
3181 if test "${enable_libada+set}" = set; then :
3182 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3187 if test "${ENABLE_LIBADA}" != "yes" ; then
3188 noconfigdirs
="$noconfigdirs gnattools"
3191 # Check whether --enable-libgm2 was given.
3192 if test "${enable_libgm2+set}" = set; then :
3193 enableval
=$enable_libgm2; ENABLE_LIBGM2
=$enableval
3198 if test "${ENABLE_LIBGM2}" != "yes" ; then
3199 noconfigdirs
="$noconfigdirs gm2tools"
3202 # Check whether --enable-libssp was given.
3203 if test "${enable_libssp+set}" = set; then :
3204 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3210 # Check whether --enable-libstdcxx was given.
3211 if test "${enable_libstdcxx+set}" = set; then :
3212 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3214 ENABLE_LIBSTDCXX
=default
3217 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3218 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3221 # Enable libgomp by default on hosted POSIX systems, and a few others.
3222 if test x
$enable_libgomp = x
; then
3224 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3226 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3228 *-*-solaris2* |
*-*-hpux11*)
3230 *-*-darwin* |
*-*-aix*)
3232 nvptx
*-*-* | amdgcn
*-*-*)
3235 noconfigdirs
="$noconfigdirs target-libgomp"
3240 # Disable libatomic on unsupported systems.
3241 if test -d ${srcdir}/libatomic
; then
3242 if test x
$enable_libatomic = x
; then
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3244 $as_echo_n "checking for libatomic support... " >&6; }
3245 if (srcdir
=${srcdir}/libatomic
; \
3246 .
${srcdir}/configure.tgt
; \
3247 test -n "$UNSUPPORTED")
3249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3250 $as_echo "no" >&6; }
3251 noconfigdirs
="$noconfigdirs target-libatomic"
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3254 $as_echo "yes" >&6; }
3259 # Disable libitm on unsupported systems.
3260 if test -d ${srcdir}/libitm
; then
3261 if test x
$enable_libitm = x
; then
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3263 $as_echo_n "checking for libitm support... " >&6; }
3264 if (srcdir
=${srcdir}/libitm
; \
3265 .
${srcdir}/configure.tgt
; \
3266 test -n "$UNSUPPORTED")
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3269 $as_echo "no" >&6; }
3270 noconfigdirs
="$noconfigdirs target-libitm"
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3273 $as_echo "yes" >&6; }
3278 # Disable libsanitizer on unsupported systems.
3279 if test -d ${srcdir}/libsanitizer
; then
3280 if test x
$enable_libsanitizer = x
; then
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3282 $as_echo_n "checking for libsanitizer support... " >&6; }
3283 if (srcdir
=${srcdir}/libsanitizer
; \
3284 .
${srcdir}/configure.tgt
; \
3285 test -n "$UNSUPPORTED")
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3288 $as_echo "no" >&6; }
3289 noconfigdirs
="$noconfigdirs target-libsanitizer"
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3292 $as_echo "yes" >&6; }
3297 # Disable libvtv on unsupported systems.
3298 if test -d ${srcdir}/libvtv
; then
3299 if test x
$enable_libvtv = x
; then
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3301 $as_echo_n "checking for libvtv support... " >&6; }
3302 if (srcdir
=${srcdir}/libvtv
; \
3303 .
${srcdir}/configure.tgt
; \
3304 test "$VTV_SUPPORTED" != "yes")
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3308 noconfigdirs
="$noconfigdirs target-libvtv"
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3311 $as_echo "yes" >&6; }
3316 # Disable libquadmath for some systems.
3319 noconfigdirs
="$noconfigdirs target-libquadmath"
3321 # libquadmath is unused on AIX and libquadmath build process use of
3322 # LD_LIBRARY_PATH can break AIX bootstrap.
3323 powerpc-
*-aix* | rs6000-
*-aix*)
3324 noconfigdirs
="$noconfigdirs target-libquadmath"
3328 # Disable libssp for some systems.
3331 # No hosted I/O support.
3332 noconfigdirs
="$noconfigdirs target-libssp"
3335 noconfigdirs
="$noconfigdirs target-libssp"
3337 powerpc-
*-aix* | rs6000-
*-aix*)
3338 noconfigdirs
="$noconfigdirs target-libssp"
3341 # No hosted I/O support.
3342 noconfigdirs
="$noconfigdirs target-libssp"
3345 # libssp uses a misaligned load to trigger a fault, but the RL78
3346 # doesn't fault for those - instead, it gives a build-time error
3347 # for explicit misaligned loads.
3348 noconfigdirs
="$noconfigdirs target-libssp"
3351 # No hosted I/O support.
3352 noconfigdirs
="$noconfigdirs target-libssp"
3356 # Disable libstdc++-v3 for some systems.
3357 # Allow user to override this if they pass --enable-libstdcxx
3358 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3361 # VxWorks uses the Dinkumware C++ library.
3362 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3365 # Not ported/fails to build when using newlib.
3366 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3369 # the C++ libraries don't build on top of CE's C libraries
3370 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3373 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3376 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3379 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3384 # Disable C++ on systems where it is known to not work.
3385 # For testing, you can override this with --enable-languages=c++.
3386 case ,${enable_languages}, in
3392 unsupported_languages
="$unsupported_languages c++"
3398 # Disable Objc on systems where it is known to not work.
3399 # For testing, you can override this with --enable-languages=objc.
3400 case ,${enable_languages}, in
3406 unsupported_languages
="$unsupported_languages objc"
3412 # Disable D on systems where it is known to not work.
3413 # For testing, you can override this with --enable-languages=d.
3414 case ,${enable_languages}, in
3420 unsupported_languages
="$unsupported_languages d"
3426 # Disable libphobos on unsupported systems.
3427 # For testing, you can override this with --enable-libphobos.
3428 if test -d ${srcdir}/libphobos
; then
3429 if test x
$enable_libphobos = x
; then
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3431 $as_echo_n "checking for libphobos support... " >&6; }
3432 if (srcdir
=${srcdir}/libphobos
; \
3433 .
${srcdir}/configure.tgt
; \
3434 test "$LIBPHOBOS_SUPPORTED" != "yes")
3436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3437 $as_echo "no" >&6; }
3438 noconfigdirs
="$noconfigdirs target-libphobos"
3440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3441 $as_echo "yes" >&6; }
3446 # Disable Fortran for some systems.
3449 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3450 unsupported_languages
="$unsupported_languages fortran"
3453 unsupported_languages
="$unsupported_languages fortran"
3457 # Disable libffi for some systems.
3461 i
[3456789]86-*-darwin*)
3463 x86_64-
*-darwin[912]*)
3466 noconfigdirs
="$noconfigdirs target-libffi"
3469 noconfigdirs
="$noconfigdirs target-libffi"
3472 noconfigdirs
="$noconfigdirs target-libffi"
3475 noconfigdirs
="$noconfigdirs target-libffi"
3478 noconfigdirs
="$noconfigdirs target-libffi"
3481 noconfigdirs
="$noconfigdirs target-libffi"
3484 noconfigdirs
="$noconfigdirs target-libffi"
3486 aarch64
*-*-freebsd*)
3487 noconfigdirs
="$noconfigdirs target-libffi"
3490 noconfigdirs
="$noconfigdirs target-libffi"
3493 noconfigdirs
="$noconfigdirs target-libffi"
3496 noconfigdirs
="$noconfigdirs target-libffi"
3499 noconfigdirs
="$noconfigdirs target-libffi"
3502 noconfigdirs
="$noconfigdirs target-libffi"
3504 cris-
*-* | crisv32-
*-*)
3508 *) # See PR46792 regarding target-libffi.
3509 noconfigdirs
="$noconfigdirs target-libffi";;
3513 noconfigdirs
="$noconfigdirs target-libffi"
3516 noconfigdirs
="$noconfigdirs target-libffi"
3518 i
[3456789]86-w64-mingw*)
3519 noconfigdirs
="$noconfigdirs target-libffi"
3521 i
[3456789]86-*-mingw*)
3522 noconfigdirs
="$noconfigdirs target-libffi"
3525 noconfigdirs
="$noconfigdirs target-libffi"
3528 noconfigdirs
="$noconfigdirs target-libffi"
3535 noconfigdirs
="$noconfigdirs target-libffi"
3538 noconfigdirs
="$noconfigdirs target-libffi"
3542 # Disable the go frontend on systems where it is known to not work. Please keep
3543 # this in sync with contrib/config-list.mk.
3545 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3546 unsupported_languages
="$unsupported_languages go"
3550 # Only allow gdbserver on some systems.
3551 if test -d ${srcdir}/gdbserver
; then
3552 if test x
$enable_gdbserver = x
; then
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3554 $as_echo_n "checking for gdbserver support... " >&6; }
3555 if (srcdir
=${srcdir}/gdbserver
; \
3556 .
${srcdir}/configure.srv
; \
3557 test -n "$UNSUPPORTED")
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3560 $as_echo "no" >&6; }
3561 noconfigdirs
="$noconfigdirs gdbserver"
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3564 $as_echo "yes" >&6; }
3569 # Disable libgo for some systems where it is known to not work.
3570 # For testing, you can easily override this with --enable-libgo.
3571 if test x
$enable_libgo = x
; then
3575 noconfigdirs
="$noconfigdirs target-libgo"
3577 *-*-cygwin* |
*-*-mingw*)
3578 noconfigdirs
="$noconfigdirs target-libgo"
3581 noconfigdirs
="$noconfigdirs target-libgo"
3586 # Default libgloss CPU subdirectory.
3587 libgloss_dir
="$target_cpu"
3590 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3594 libgloss_dir
=aarch64
3599 cris-
*-* | crisv32-
*-*)
3609 libgloss_dir
=loongarch
3611 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3612 libgloss_dir
=m68hc11
3614 m68
*-*-* | fido-
*-*)
3631 # Disable newlib and libgloss for various target OSes.
3634 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3636 i
[3456789]86-*-linux*)
3637 # This section makes it possible to build newlib natively on linux.
3638 # If we are using a cross compiler then don't configure newlib.
3639 if test x
${is_cross_compiler} != xno
; then
3640 noconfigdirs
="$noconfigdirs target-newlib"
3642 noconfigdirs
="$noconfigdirs target-libgloss"
3643 # If we are not using a cross compiler, do configure newlib.
3644 # Note however, that newlib will only be configured in this situation
3645 # if the --with-newlib option has been given, because otherwise
3646 # 'target-newlib' will appear in skipdirs.
3648 i
[3456789]86-*-rdos*)
3649 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3651 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3652 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3655 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3658 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3661 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3664 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3667 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3670 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3673 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3675 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3676 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3679 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3682 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3685 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3688 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3691 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3694 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3697 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3705 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3706 noconfigdirs
="$noconfigdirs sim target-rda"
3711 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3712 noconfigdirs
="$noconfigdirs sim target-rda"
3715 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3716 noconfigdirs
="$noconfigdirs sim target-rda"
3718 i
[3456789]86-*-darwin*)
3719 noconfigdirs
="$noconfigdirs ld gprof"
3720 noconfigdirs
="$noconfigdirs sim target-rda"
3722 x86_64-
*-darwin[912]*)
3723 noconfigdirs
="$noconfigdirs ld gas gprof"
3724 noconfigdirs
="$noconfigdirs sim target-rda"
3727 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3728 noconfigdirs
="$noconfigdirs sim target-rda"
3733 if test "x$with_gmp" = x \
3734 && ! test -d ${srcdir}/gmp \
3735 && test -f /usr
/local
/include
/gmp.h
; then
3740 # Remove unsupported stuff on all kaOS configurations.
3741 noconfigdirs
="$noconfigdirs target-libgloss"
3748 noconfigdirs
="$noconfigdirs target-libgloss"
3751 noconfigdirs
="$noconfigdirs target-libgloss"
3753 # The tpf target doesn't support gdb yet.
3755 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3758 noconfigdirs
="$noconfigdirs target-rda"
3763 # ld works, but does not support shared libraries.
3764 # gas doesn't generate exception information.
3765 noconfigdirs
="$noconfigdirs gas ld"
3768 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3771 # newlib is not 64 bit ready
3772 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3775 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3777 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3778 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3781 noconfigdirs
="$noconfigdirs sim"
3784 noconfigdirs
="$noconfigdirs target-libgloss"
3787 noconfigdirs
="$noconfigdirs ld target-libgloss"
3790 if test x
${with_avrlibc} != xno
; then
3791 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3794 c4x-
*-* | tic4x-
*-*)
3795 noconfigdirs
="$noconfigdirs target-libgloss"
3798 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3801 noconfigdirs
="$noconfigdirs target-libgloss"
3804 noconfigdirs
="$noconfigdirs gdb"
3807 noconfigdirs
="$noconfigdirs gdb"
3810 noconfigdirs
="$noconfigdirs target-rda gprof"
3813 noconfigdirs
="$noconfigdirs"
3816 noconfigdirs
="$noconfigdirs target-libgloss"
3819 noconfigdirs
="$noconfigdirs target-libgloss"
3822 noconfigdirs
="$noconfigdirs gdb"
3830 hppa
*-*-openbsd* | \
3836 noconfigdirs
="$noconfigdirs ld"
3839 noconfigdirs
="$noconfigdirs gdb"
3842 # No gdb support yet.
3843 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3846 # No ld support yet.
3847 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3850 # No ld support yet.
3851 noconfigdirs
="$noconfigdirs libgui itcl ld"
3853 i
[3456789]86-w64-mingw*)
3855 i
[3456789]86-*-mingw*)
3856 target_configdirs
="$target_configdirs target-winsup"
3859 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3860 noconfigdirs
="$noconfigdirs target-libgloss"
3861 # always build newlib if winsup directory is present.
3862 if test -d "$srcdir/winsup/cygwin"; then
3863 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3864 elif test -d "$srcdir/newlib"; then
3865 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3869 noconfigdirs
="$noconfigdirs target-libgloss"
3871 i
[3456789]86-*-sco3.2v5
*)
3872 # The linker does not yet know about weak symbols in COFF,
3873 # and is not configured to handle mixed ELF and COFF.
3874 noconfigdirs
="$noconfigdirs ld target-libgloss"
3876 i
[3456789]86-*-sco*)
3877 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3879 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3880 noconfigdirs
="$noconfigdirs target-libgloss"
3882 i
[3456789]86-*-sysv4*)
3883 noconfigdirs
="$noconfigdirs target-libgloss"
3885 i
[3456789]86-*-beos*)
3886 noconfigdirs
="$noconfigdirs gdb"
3888 i
[3456789]86-*-rdos*)
3889 noconfigdirs
="$noconfigdirs gdb"
3892 noconfigdirs
="$noconfigdirs gdb"
3895 noconfigdirs
="$noconfigdirs sim"
3898 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3899 noconfigdirs
="$noconfigdirs $target_libraries"
3902 noconfigdirs
="$noconfigdirs gdb gprof"
3905 # copied from rs6000-*-* entry
3906 noconfigdirs
="$noconfigdirs gprof"
3908 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3909 target_configdirs
="$target_configdirs target-winsup"
3910 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3911 # always build newlib.
3912 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3914 # This is temporary until we can link against shared libraries
3915 powerpcle-
*-solaris*)
3916 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3919 noconfigdirs
="$noconfigdirs gdb"
3922 noconfigdirs
="$noconfigdirs gprof"
3925 noconfigdirs
="$noconfigdirs gprof"
3928 noconfigdirs
="$noconfigdirs gprof"
3931 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
3934 noconfigdirs
="$noconfigdirs gprof"
3936 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
3937 if test x
$with_newlib = xyes
; then
3938 noconfigdirs
="$noconfigdirs gprof"
3942 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3945 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3948 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
3952 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
3953 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
3954 noconfigdirs
="$noconfigdirs ld gas gprof"
3957 noconfigdirs
="$noconfigdirs gprof"
3960 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3967 noconfigdirs
="$noconfigdirs target-libgloss" ;;
3971 if test x
${is_cross_compiler} = xno
; then
3976 noconfigdirs
="$noconfigdirs sim"
3979 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3982 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3985 noconfigdirs
="$noconfigdirs ld"
3987 loongarch
*-*-linux*)
3990 noconfigdirs
="$noconfigdirs gprof"
3994 # If we aren't building newlib, then don't build libgloss, since libgloss
3995 # depends upon some newlib header files.
3996 case "${noconfigdirs}" in
3997 *target-libgloss
*) ;;
3998 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4001 # Work in distributions that contain no compiler tools, like Autoconf.
4002 host_makefile_frag
=/dev
/null
4003 if test -d ${srcdir}/config
; then
4005 i
[3456789]86-*-msdosdjgpp*)
4006 host_makefile_frag
="config/mh-djgpp"
4010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4011 $as_echo_n "checking to see if cat works as expected... " >&6; }
4012 echo a
>cygwin-cat-check
4013 if test `cat cygwin-cat-check` = a
; then
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4016 $as_echo "yes" >&6; }
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4020 $as_echo "no" >&6; }
4021 as_fn_error $?
"The cat command does not ignore carriage return characters.
4022 Please either mount the build directory in binary mode or run the following
4023 commands before running any configure script:
4029 host_makefile_frag
="config/mh-cygwin"
4032 host_makefile_frag
="config/mh-mingw"
4035 host_makefile_frag
="config/mh-alpha-linux"
4038 host_makefile_frag
="config/mh-pa"
4041 host_makefile_frag
="config/mh-pa"
4043 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4044 host_makefile_frag
="config/mh-darwin"
4047 host_makefile_frag
="config/mh-ppc-aix"
4050 host_makefile_frag
="config/mh-ppc-aix"
4055 if test "${build}" != "${host}" ; then
4056 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4057 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4058 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4059 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4060 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4061 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4062 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4063 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4064 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4065 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4066 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4067 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4068 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4069 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4070 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4072 AR_FOR_BUILD
="\$(AR)"
4073 AS_FOR_BUILD
="\$(AS)"
4074 CC_FOR_BUILD
="\$(CC)"
4075 CXX_FOR_BUILD
="\$(CXX)"
4076 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4077 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4078 GOC_FOR_BUILD
="\$(GOC)"
4079 GDC_FOR_BUILD
="\$(GDC)"
4080 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4081 LD_FOR_BUILD
="\$(LD)"
4082 NM_FOR_BUILD
="\$(NM)"
4083 RANLIB_FOR_BUILD
="\$(RANLIB)"
4084 WINDRES_FOR_BUILD
="\$(WINDRES)"
4085 WINDMC_FOR_BUILD
="\$(WINDMC)"
4089 ac_cpp
='$CPP $CPPFLAGS'
4090 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4091 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4092 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4093 if test -n "$ac_tool_prefix"; then
4094 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4095 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4097 $as_echo_n "checking for $ac_word... " >&6; }
4098 if ${ac_cv_prog_CC+:} false
; then :
4099 $as_echo_n "(cached) " >&6
4101 if test -n "$CC"; then
4102 ac_cv_prog_CC
="$CC" # Let the user override the test.
4104 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4108 test -z "$as_dir" && as_dir
=.
4109 for ac_exec_ext
in '' $ac_executable_extensions; do
4110 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4111 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4122 if test -n "$CC"; then
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4124 $as_echo "$CC" >&6; }
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4127 $as_echo "no" >&6; }
4132 if test -z "$ac_cv_prog_CC"; then
4134 # Extract the first word of "gcc", so it can be a program name with args.
4135 set dummy gcc
; ac_word
=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4139 $as_echo_n "(cached) " >&6
4141 if test -n "$ac_ct_CC"; then
4142 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4144 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4148 test -z "$as_dir" && as_dir
=.
4149 for ac_exec_ext
in '' $ac_executable_extensions; do
4150 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_ac_ct_CC
="gcc"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4161 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4162 if test -n "$ac_ct_CC"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4164 $as_echo "$ac_ct_CC" >&6; }
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4170 if test "x$ac_ct_CC" = x
; then
4173 case $cross_compiling:$ac_tool_warned in
4175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4177 ac_tool_warned
=yes ;;
4185 if test -z "$CC"; then
4186 if test -n "$ac_tool_prefix"; then
4187 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4188 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4190 $as_echo_n "checking for $ac_word... " >&6; }
4191 if ${ac_cv_prog_CC+:} false
; then :
4192 $as_echo_n "(cached) " >&6
4194 if test -n "$CC"; then
4195 ac_cv_prog_CC
="$CC" # Let the user override the test.
4197 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4201 test -z "$as_dir" && as_dir
=.
4202 for ac_exec_ext
in '' $ac_executable_extensions; do
4203 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4204 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4205 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4215 if test -n "$CC"; then
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4217 $as_echo "$CC" >&6; }
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4220 $as_echo "no" >&6; }
4226 if test -z "$CC"; then
4227 # Extract the first word of "cc", so it can be a program name with args.
4228 set dummy cc
; ac_word
=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_CC+:} false
; then :
4232 $as_echo_n "(cached) " >&6
4234 if test -n "$CC"; then
4235 ac_cv_prog_CC
="$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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4246 ac_prog_rejected
=yes
4250 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4257 if test $ac_prog_rejected = yes; then
4258 # We found a bogon in the path, so make sure we never use it.
4259 set dummy
$ac_cv_prog_CC
4261 if test $# != 0; then
4262 # We chose a different compiler from the bogus one.
4263 # However, it has the same basename, so the bogon will be chosen
4264 # first if we set CC to just the basename; use the full file name.
4266 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4272 if test -n "$CC"; then
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4274 $as_echo "$CC" >&6; }
4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4277 $as_echo "no" >&6; }
4282 if test -z "$CC"; then
4283 if test -n "$ac_tool_prefix"; then
4284 for ac_prog
in cl.exe
4286 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4287 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4289 $as_echo_n "checking for $ac_word... " >&6; }
4290 if ${ac_cv_prog_CC+:} false
; then :
4291 $as_echo_n "(cached) " >&6
4293 if test -n "$CC"; then
4294 ac_cv_prog_CC
="$CC" # Let the user override the test.
4296 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4300 test -z "$as_dir" && as_dir
=.
4301 for ac_exec_ext
in '' $ac_executable_extensions; do
4302 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4303 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4314 if test -n "$CC"; then
4315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4316 $as_echo "$CC" >&6; }
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4319 $as_echo "no" >&6; }
4323 test -n "$CC" && break
4326 if test -z "$CC"; then
4328 for ac_prog
in cl.exe
4330 # Extract the first word of "$ac_prog", so it can be a program name with args.
4331 set dummy
$ac_prog; ac_word
=$2
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4333 $as_echo_n "checking for $ac_word... " >&6; }
4334 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4335 $as_echo_n "(cached) " >&6
4337 if test -n "$ac_ct_CC"; then
4338 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4340 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4344 test -z "$as_dir" && as_dir
=.
4345 for ac_exec_ext
in '' $ac_executable_extensions; do
4346 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_ac_ct_CC
="$ac_prog"
4348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4357 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4358 if test -n "$ac_ct_CC"; then
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4360 $as_echo "$ac_ct_CC" >&6; }
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4363 $as_echo "no" >&6; }
4367 test -n "$ac_ct_CC" && break
4370 if test "x$ac_ct_CC" = x
; then
4373 case $cross_compiling:$ac_tool_warned in
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377 ac_tool_warned
=yes ;;
4386 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4388 as_fn_error $?
"no acceptable C compiler found in \$PATH
4389 See \`config.log' for more details" "$LINENO" 5; }
4391 # Provide some information about the compiler.
4392 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4395 for ac_option
in --version -v -V -qversion; do
4396 { { ac_try
="$ac_compiler $ac_option >&5"
4398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4399 *) ac_try_echo=$ac_try;;
4401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4402 $as_echo "$ac_try_echo"; } >&5
4403 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4405 if test -s conftest.err; then
4407 ... rest of stderr output deleted ...
4408 10q' conftest.err >conftest.er1
4409 cat conftest.er1 >&5
4411 rm -f conftest.er1 conftest.err
4412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4413 test $ac_status = 0; }
4416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417 /* end confdefs.h. */
4427 ac_clean_files_save=$ac_clean_files
4428 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4429 # Try to create an executable without -o first, disregard a.out.
4430 # It will help us diagnose broken compilers, and finding out an intuition
4432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4433 $as_echo_n "checking whether the C compiler works... " >&6; }
4434 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4436 # The possible output files:
4437 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4440 for ac_file in $ac_files
4443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4444 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4449 if { { ac_try="$ac_link_default"
4451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4452 *) ac_try_echo
=$ac_try;;
4454 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4455 $as_echo "$ac_try_echo"; } >&5
4456 (eval "$ac_link_default") 2>&5
4458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4459 test $ac_status = 0; }; then :
4460 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4461 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4462 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4463 # so that the user can short-circuit this test for compilers unknown to
4465 for ac_file
in $ac_files ''
4467 test -f "$ac_file" ||
continue
4469 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4472 # We found the default executable, but exeext='' is most
4476 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4478 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4480 # We set ac_cv_exeext here because the later test for it is not
4481 # safe: cross compilers may not add the suffix if given an `-o'
4482 # argument, so we may need to know it at that point already.
4483 # Even if this section looks crufty: it has the advantage of
4490 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4495 if test -z "$ac_file"; then :
4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497 $as_echo "no" >&6; }
4498 $as_echo "$as_me: failed program was:" >&5
4499 sed 's/^/| /' conftest.
$ac_ext >&5
4501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4503 as_fn_error
77 "C compiler cannot create executables
4504 See \`config.log' for more details" "$LINENO" 5; }
4506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4507 $as_echo "yes" >&6; }
4509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4510 $as_echo_n "checking for C compiler default output file name... " >&6; }
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4512 $as_echo "$ac_file" >&6; }
4513 ac_exeext
=$ac_cv_exeext
4515 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4516 ac_clean_files
=$ac_clean_files_save
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4518 $as_echo_n "checking for suffix of executables... " >&6; }
4519 if { { ac_try
="$ac_link"
4521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4522 *) ac_try_echo=$ac_try;;
4524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4525 $as_echo "$ac_try_echo"; } >&5
4526 (eval "$ac_link") 2>&5
4528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4529 test $ac_status = 0; }; then :
4530 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4531 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4532 # work properly (i.e., refer to `conftest.exe'), while it won't with
4534 for ac_file
in conftest.exe conftest conftest.
*; do
4535 test -f "$ac_file" ||
continue
4537 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4538 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4546 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4547 See \`config.log' for more details" "$LINENO" 5; }
4549 rm -f conftest conftest
$ac_cv_exeext
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4551 $as_echo "$ac_cv_exeext" >&6; }
4553 rm -f conftest.
$ac_ext
4554 EXEEXT
=$ac_cv_exeext
4556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4557 /* end confdefs.h. */
4562 FILE *f = fopen ("conftest.out", "w");
4563 return ferror (f) || fclose (f) != 0;
4569 ac_clean_files
="$ac_clean_files conftest.out"
4570 # Check that the compiler produces executables we can run. If not, either
4571 # the compiler is broken, or we cross compile.
4572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4573 $as_echo_n "checking whether we are cross compiling... " >&6; }
4574 if test "$cross_compiling" != yes; then
4575 { { ac_try
="$ac_link"
4577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4581 $as_echo "$ac_try_echo"; } >&5
4582 (eval "$ac_link") 2>&5
4584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4585 test $ac_status = 0; }
4586 if { ac_try='./conftest$ac_cv_exeext'
4587 { { case "(($ac_try" in
4588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4589 *) ac_try_echo
=$ac_try;;
4591 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4592 $as_echo "$ac_try_echo"; } >&5
4593 (eval "$ac_try") 2>&5
4595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4596 test $ac_status = 0; }; }; then
4599 if test "$cross_compiling" = maybe
; then
4602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4604 as_fn_error $?
"cannot run C compiled programs.
4605 If you meant to cross compile, use \`--host'.
4606 See \`config.log' for more details" "$LINENO" 5; }
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4611 $as_echo "$cross_compiling" >&6; }
4613 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4614 ac_clean_files
=$ac_clean_files_save
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4616 $as_echo_n "checking for suffix of object files... " >&6; }
4617 if ${ac_cv_objext+:} false
; then :
4618 $as_echo_n "(cached) " >&6
4620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4621 /* end confdefs.h. */
4631 rm -f conftest.o conftest.obj
4632 if { { ac_try
="$ac_compile"
4634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4635 *) ac_try_echo=$ac_try;;
4637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4638 $as_echo "$ac_try_echo"; } >&5
4639 (eval "$ac_compile") 2>&5
4641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4642 test $ac_status = 0; }; then :
4643 for ac_file in conftest.o conftest.obj conftest.*; do
4644 test -f "$ac_file" || continue;
4646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4647 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4652 $as_echo "$as_me: failed program was:" >&5
4653 sed 's/^/| /' conftest.$ac_ext >&5
4655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4657 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4658 See \
`config.log' for more details" "$LINENO" 5; }
4660 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4663 $as_echo "$ac_cv_objext" >&6; }
4664 OBJEXT=$ac_cv_objext
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4667 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4668 if ${ac_cv_c_compiler_gnu+:} false; then :
4669 $as_echo_n "(cached) " >&6
4671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4672 /* end confdefs.h. */
4685 if ac_fn_c_try_compile "$LINENO"; then :
4690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4695 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4696 if test $ac_compiler_gnu = yes; then
4701 ac_test_CFLAGS=${CFLAGS+set}
4702 ac_save_CFLAGS=$CFLAGS
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4704 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4705 if ${ac_cv_prog_cc_g+:} false; then :
4706 $as_echo_n "(cached) " >&6
4708 ac_save_c_werror_flag=$ac_c_werror_flag
4709 ac_c_werror_flag=yes
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4723 if ac_fn_c_try_compile "$LINENO"; then :
4727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4738 if ac_fn_c_try_compile "$LINENO"; then :
4741 ac_c_werror_flag=$ac_save_c_werror_flag
4743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4744 /* end confdefs.h. */
4754 if ac_fn_c_try_compile "$LINENO"; then :
4757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4762 ac_c_werror_flag=$ac_save_c_werror_flag
4764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4765 $as_echo "$ac_cv_prog_cc_g" >&6; }
4766 if test "$ac_test_CFLAGS" = set; then
4767 CFLAGS=$ac_save_CFLAGS
4768 elif test $ac_cv_prog_cc_g = yes; then
4769 if test "$GCC" = yes; then
4775 if test "$GCC" = yes; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4782 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4783 if ${ac_cv_prog_cc_c89+:} false; then :
4784 $as_echo_n "(cached) " >&6
4786 ac_cv_prog_cc_c89=no
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4793 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4794 struct buf { int x; };
4795 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4796 static char *e (p, i)
4802 static char *f (char * (*g) (char **, int), char **p, ...)
4807 s = g (p, va_arg (v,int));
4812 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4813 function prototypes and stuff, but not '\xHH' hex character constants.
4814 These don't provoke an error unfortunately, instead are silently treated
4815 as 'x'. The following induces an error, until -std is added to get
4816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4817 array size at least. It's necessary to write '\x00'==0 to get something
4818 that's true only with -std. */
4819 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4821 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4822 inside strings and character constants. */
4824 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4826 int test (int i, double x);
4827 struct s1 {int (*f) (int a);};
4828 struct s2 {int (*f) (double a);};
4829 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4835 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4843 CC="$ac_save_CC $ac_arg"
4844 if ac_fn_c_try_compile "$LINENO"; then :
4845 ac_cv_prog_cc_c89=$ac_arg
4847 rm -f core conftest.err conftest.$ac_objext
4848 test "x$ac_cv_prog_cc_c89" != "xno" && break
4850 rm -f conftest.$ac_ext
4855 case "x$ac_cv_prog_cc_c89" in
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4858 $as_echo "none needed" >&6; } ;;
4860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4861 $as_echo "unsupported" >&6; } ;;
4863 CC="$CC $ac_cv_prog_cc_c89"
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4867 if test "x$ac_cv_prog_cc_c89" != xno; then :
4872 ac_cpp='$CPP $CPPFLAGS'
4873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4878 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4879 if ${ac_cv_prog_cc_c99+:} false; then :
4880 $as_echo_n "(cached) " >&6
4882 ac_cv_prog_cc_c99=no
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4887 #include <stdbool.h>
4892 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4893 #define debug(...) fprintf (stderr, __VA_ARGS__)
4894 #define showlist(...) puts (#__VA_ARGS__)
4895 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4897 test_varargs_macros (void)
4902 debug ("X = %d\n", x);
4903 showlist (The first, second, and third items.);
4904 report (x>y, "x is %d but y is %d", x, y);
4907 // Check long long types.
4908 #define BIG64 18446744073709551615ull
4909 #define BIG32 4294967295ul
4910 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4912 your preprocessor is broken;
4916 your preprocessor is broken;
4918 static long long int bignum = -9223372036854775807LL;
4919 static unsigned long long int ubignum = BIG64;
4921 struct incomplete_array
4929 const wchar_t *name;
4933 typedef const char *ccp;
4936 test_restrict (ccp restrict text)
4938 // See if C++-style comments work.
4939 // Iterate through items via the restricted pointer.
4940 // Also check for declarations in for loops.
4941 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4946 // Check varargs and va_copy.
4948 test_varargs (const char *format, ...)
4951 va_start (args, format);
4953 va_copy (args_copy, args);
4964 str = va_arg (args_copy, const char *);
4967 number = va_arg (args_copy, int);
4970 fnumber = va_arg (args_copy, double);
4985 _Bool success = false;
4988 if (test_restrict ("String literal") == 0)
4990 char *restrict newvar = "Another string";
4993 test_varargs ("s, d' f .", "string", 65, 34.234);
4994 test_varargs_macros ();
4996 // Check flexible array members.
4997 struct incomplete_array *ia =
4998 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5000 for (int i = 0; i < ia->datasize; ++i)
5001 ia->data[i] = i * 1.234;
5003 // Check named initializers.
5004 struct named_init ni = {
5006 .name = L"Test wide string",
5007 .average = 543.34343,
5012 int dynamic_array[ni.number];
5013 dynamic_array[ni.number - 1] = 543;
5015 // work around unused variable warnings
5016 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5017 || dynamic_array[ni.number - 1] != 543);
5023 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5025 CC="$ac_save_CC $ac_arg"
5026 if ac_fn_c_try_compile "$LINENO"; then :
5027 ac_cv_prog_cc_c99=$ac_arg
5029 rm -f core conftest.err conftest.$ac_objext
5030 test "x$ac_cv_prog_cc_c99" != "xno" && break
5032 rm -f conftest.$ac_ext
5037 case "x$ac_cv_prog_cc_c99" in
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5040 $as_echo "none needed" >&6; } ;;
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5043 $as_echo "unsupported" >&6; } ;;
5045 CC="$CC $ac_cv_prog_cc_c99"
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5047 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5049 if test "x$ac_cv_prog_cc_c99" != xno; then :
5055 ac_cpp='$CXXCPP $CPPFLAGS'
5056 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5057 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5058 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5059 if test -z "$CXX"; then
5060 if test -n "$CCC"; then
5063 if test -n "$ac_tool_prefix"; then
5064 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5066 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5067 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5069 $as_echo_n "checking for $ac_word... " >&6; }
5070 if ${ac_cv_prog_CXX+:} false; then :
5071 $as_echo_n "(cached) " >&6
5073 if test -n "$CXX"; then
5074 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5080 test -z "$as_dir" && as_dir=.
5081 for ac_exec_ext in '' $ac_executable_extensions; do
5082 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5083 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5094 if test -n "$CXX"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5096 $as_echo "$CXX" >&6; }
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5099 $as_echo "no" >&6; }
5103 test -n "$CXX" && break
5106 if test -z "$CXX"; then
5108 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5110 # Extract the first word of "$ac_prog", so it can be a program name with args.
5111 set dummy $ac_prog; ac_word=$2
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5113 $as_echo_n "checking for $ac_word... " >&6; }
5114 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5115 $as_echo_n "(cached) " >&6
5117 if test -n "$ac_ct_CXX"; then
5118 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 test -z "$as_dir" && as_dir=.
5125 for ac_exec_ext in '' $ac_executable_extensions; do
5126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5127 ac_cv_prog_ac_ct_CXX="$ac_prog"
5128 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5137 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5138 if test -n "$ac_ct_CXX"; then
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5140 $as_echo "$ac_ct_CXX" >&6; }
5142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5143 $as_echo "no" >&6; }
5147 test -n "$ac_ct_CXX" && break
5150 if test "x$ac_ct_CXX" = x; then
5153 case $cross_compiling:$ac_tool_warned in
5155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5157 ac_tool_warned=yes ;;
5165 # Provide some information about the compiler.
5166 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5169 for ac_option in --version -v -V -qversion; do
5170 { { ac_try="$ac_compiler $ac_option >&5"
5172 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5173 *) ac_try_echo
=$ac_try;;
5175 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5176 $as_echo "$ac_try_echo"; } >&5
5177 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5179 if test -s conftest.err
; then
5181 ... rest of stderr output deleted ...
5182 10q' conftest.err
>conftest.er1
5183 cat conftest.er1
>&5
5185 rm -f conftest.er1 conftest.err
5186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5187 test $ac_status = 0; }
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5191 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5192 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5193 $as_echo_n "(cached) " >&6
5195 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5196 /* end confdefs.h. */
5209 if ac_fn_cxx_try_compile
"$LINENO"; then :
5214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5215 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5219 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5220 if test $ac_compiler_gnu = yes; then
5225 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5226 ac_save_CXXFLAGS
=$CXXFLAGS
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5228 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5229 if ${ac_cv_prog_cxx_g+:} false
; then :
5230 $as_echo_n "(cached) " >&6
5232 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5233 ac_cxx_werror_flag
=yes
5236 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5237 /* end confdefs.h. */
5247 if ac_fn_cxx_try_compile
"$LINENO"; then :
5248 ac_cv_prog_cxx_g
=yes
5251 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5262 if ac_fn_cxx_try_compile
"$LINENO"; then :
5265 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5268 /* end confdefs.h. */
5278 if ac_fn_cxx_try_compile
"$LINENO"; then :
5279 ac_cv_prog_cxx_g
=yes
5281 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5286 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5289 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5290 if test "$ac_test_CXXFLAGS" = set; then
5291 CXXFLAGS
=$ac_save_CXXFLAGS
5292 elif test $ac_cv_prog_cxx_g = yes; then
5293 if test "$GXX" = yes; then
5299 if test "$GXX" = yes; then
5306 ac_cpp
='$CPP $CPPFLAGS'
5307 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5308 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5309 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5312 # We must set the default linker to the linker used by gcc for the correct
5313 # operation of libtool. If LD is not defined and we are using gcc, try to
5314 # set the LD default to the ld used by gcc.
5315 if test -z "$LD"; then
5316 if test "$GCC" = yes; then
5319 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5321 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5323 case $gcc_prog_ld in
5324 # Accept absolute paths.
5325 [\\/]* |
[A-Za-z
]:[\\/]*)
5326 LD
="$gcc_prog_ld" ;;
5331 # Check whether -static-libstdc++ -static-libgcc is supported.
5333 if test "$GCC" = yes; then
5334 saved_LDFLAGS
="$LDFLAGS"
5336 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5338 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5340 ac_cpp
='$CXXCPP $CPPFLAGS'
5341 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5342 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5343 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5346 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5347 /* end confdefs.h. */
5349 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5350 #error -static-libstdc++ not implemented
5354 if ac_fn_cxx_try_link
"$LINENO"; then :
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5356 $as_echo "yes" >&6; }; have_static_libs
=yes
5358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359 $as_echo "no" >&6; }
5361 rm -f core conftest.err conftest.
$ac_objext \
5362 conftest
$ac_exeext conftest.
$ac_ext
5364 ac_cpp
='$CPP $CPPFLAGS'
5365 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5366 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5367 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5370 LDFLAGS
="$saved_LDFLAGS"
5376 if test -n "$ac_tool_prefix"; then
5377 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5378 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5380 $as_echo_n "checking for $ac_word... " >&6; }
5381 if ${ac_cv_prog_GNATBIND+:} false
; then :
5382 $as_echo_n "(cached) " >&6
5384 if test -n "$GNATBIND"; then
5385 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5387 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5391 test -z "$as_dir" && as_dir
=.
5392 for ac_exec_ext
in '' $ac_executable_extensions; do
5393 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5394 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5404 GNATBIND
=$ac_cv_prog_GNATBIND
5405 if test -n "$GNATBIND"; then
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5407 $as_echo "$GNATBIND" >&6; }
5409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5410 $as_echo "no" >&6; }
5415 if test -z "$ac_cv_prog_GNATBIND"; then
5416 ac_ct_GNATBIND
=$GNATBIND
5417 # Extract the first word of "gnatbind", so it can be a program name with args.
5418 set dummy gnatbind
; ac_word
=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5422 $as_echo_n "(cached) " >&6
5424 if test -n "$ac_ct_GNATBIND"; then
5425 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5427 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5431 test -z "$as_dir" && as_dir
=.
5432 for ac_exec_ext
in '' $ac_executable_extensions; do
5433 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5434 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5445 if test -n "$ac_ct_GNATBIND"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5447 $as_echo "$ac_ct_GNATBIND" >&6; }
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5453 if test "x$ac_ct_GNATBIND" = x
; then
5456 case $cross_compiling:$ac_tool_warned in
5458 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5459 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5460 ac_tool_warned
=yes ;;
5462 GNATBIND
=$ac_ct_GNATBIND
5465 GNATBIND
="$ac_cv_prog_GNATBIND"
5468 if test -n "$ac_tool_prefix"; then
5469 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5470 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5472 $as_echo_n "checking for $ac_word... " >&6; }
5473 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5474 $as_echo_n "(cached) " >&6
5476 if test -n "$GNATMAKE"; then
5477 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5479 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5483 test -z "$as_dir" && as_dir
=.
5484 for ac_exec_ext
in '' $ac_executable_extensions; do
5485 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5486 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5496 GNATMAKE
=$ac_cv_prog_GNATMAKE
5497 if test -n "$GNATMAKE"; then
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5499 $as_echo "$GNATMAKE" >&6; }
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5507 if test -z "$ac_cv_prog_GNATMAKE"; then
5508 ac_ct_GNATMAKE
=$GNATMAKE
5509 # Extract the first word of "gnatmake", so it can be a program name with args.
5510 set dummy gnatmake
; ac_word
=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5514 $as_echo_n "(cached) " >&6
5516 if test -n "$ac_ct_GNATMAKE"; then
5517 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5519 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5523 test -z "$as_dir" && as_dir
=.
5524 for ac_exec_ext
in '' $ac_executable_extensions; do
5525 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5526 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5537 if test -n "$ac_ct_GNATMAKE"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5539 $as_echo "$ac_ct_GNATMAKE" >&6; }
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5545 if test "x$ac_ct_GNATMAKE" = x
; then
5548 case $cross_compiling:$ac_tool_warned in
5550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5552 ac_tool_warned
=yes ;;
5554 GNATMAKE
=$ac_ct_GNATMAKE
5557 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5561 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5562 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5563 $as_echo_n "(cached) " >&6
5565 cat >conftest.adb
<<EOF
5566 pragma Warnings (Off);
5568 pragma Warnings (On);
5569 use type System.CRTL.int64;
5570 procedure conftest is begin null; end conftest;
5572 acx_cv_cc_gcc_supports_ada
=no
5573 # There is a bug in old released versions of GCC which causes the
5574 # driver to exit successfully when the appropriate language module
5575 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5576 # Therefore we must check for the error message as well as an
5577 # unsuccessful exit.
5578 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5579 # given a .adb file, but produce no object file. So we must check
5580 # if an object file was really produced to guard against this.
5581 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5582 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5583 acx_cv_cc_gcc_supports_ada
=yes
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5588 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5590 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5598 if test -n "$ac_tool_prefix"; then
5599 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5600 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5602 $as_echo_n "checking for $ac_word... " >&6; }
5603 if ${ac_cv_prog_GDC+:} false
; then :
5604 $as_echo_n "(cached) " >&6
5606 if test -n "$GDC"; then
5607 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5609 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5613 test -z "$as_dir" && as_dir
=.
5614 for ac_exec_ext
in '' $ac_executable_extensions; do
5615 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5616 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5617 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5627 if test -n "$GDC"; then
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5629 $as_echo "$GDC" >&6; }
5631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5632 $as_echo "no" >&6; }
5637 if test -z "$ac_cv_prog_GDC"; then
5639 # Extract the first word of "gdc", so it can be a program name with args.
5640 set dummy gdc
; ac_word
=$2
5641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5642 $as_echo_n "checking for $ac_word... " >&6; }
5643 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5644 $as_echo_n "(cached) " >&6
5646 if test -n "$ac_ct_GDC"; then
5647 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5649 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5653 test -z "$as_dir" && as_dir
=.
5654 for ac_exec_ext
in '' $ac_executable_extensions; do
5655 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5656 ac_cv_prog_ac_ct_GDC
="gdc"
5657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5666 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5667 if test -n "$ac_ct_GDC"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5669 $as_echo "$ac_ct_GDC" >&6; }
5671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5672 $as_echo "no" >&6; }
5675 if test "x$ac_ct_GDC" = x
; then
5678 case $cross_compiling:$ac_tool_warned in
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5681 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5682 ac_tool_warned
=yes ;;
5687 GDC
="$ac_cv_prog_GDC"
5690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5691 $as_echo_n "checking whether the D compiler works... " >&6; }
5692 if ${acx_cv_d_compiler_works+:} false
; then :
5693 $as_echo_n "(cached) " >&6
5695 cat >conftest.d
<<EOF
5696 module conftest; int main() { return 0; }
5698 acx_cv_d_compiler_works
=no
5699 if test "x$GDC" != xno
; then
5700 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5701 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5702 acx_cv_d_compiler_works
=yes
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5708 $as_echo "$acx_cv_d_compiler_works" >&6; }
5709 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5716 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5717 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5718 $as_echo_n "(cached) " >&6
5722 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5723 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5724 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5727 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5730 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5731 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5734 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5741 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5742 do_compare
="$gcc_cv_prog_cmp_skip"
5746 # Check whether --enable-bootstrap was given.
5747 if test "${enable_bootstrap+set}" = set; then :
5748 enableval
=$enable_bootstrap;
5750 enable_bootstrap
=default
5754 # Issue errors and warnings for invalid/strange bootstrap combinations.
5755 if test -r $srcdir/gcc
/configure
; then
5761 case "$have_compiler:$host:$target:$enable_bootstrap" in
5764 # Default behavior. Enable bootstrap if we have a compiler
5765 # and we are in a native configuration.
5766 yes:$build:$build:default
)
5767 enable_bootstrap
=yes ;;
5770 enable_bootstrap
=no
;;
5772 # We have a compiler and we are in a native configuration, bootstrap is ok
5773 yes:$build:$build:yes)
5776 # Other configurations, but we have a compiler. Assume the user knows
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5780 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5783 # No compiler: if they passed --enable-bootstrap explicitly, fail
5785 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5787 # Fail if wrong command line
5789 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5793 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5794 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5795 # require C++11 (or higher).
5796 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5797 CXX
="$CXX -std=c++11"
5798 elif test "$have_compiler" = yes; then
5799 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5801 ac_cpp
='$CXXCPP $CPPFLAGS'
5802 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5803 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5804 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5808 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5809 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5810 $as_echo_n "(cached) " >&6
5812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5813 /* end confdefs.h. */
5816 // If the compiler admits that it is not ready for C++11, why torture it?
5817 // Hopefully, this will speed up the test.
5821 #error "This is not a C++ compiler"
5823 #elif __cplusplus < 201103L
5825 #error "This is not a C++11 compiler"
5832 namespace test_static_assert
5835 template <typename T>
5838 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5843 namespace test_final_override
5852 struct Derived : public Base
5854 virtual ~Derived() override {}
5855 virtual void f() override {}
5860 namespace test_double_right_angle_brackets
5863 template < typename T >
5866 typedef check<void> single_type;
5867 typedef check<check<void>> double_type;
5868 typedef check<check<check<void>>> triple_type;
5869 typedef check<check<check<check<void>>>> quadruple_type;
5873 namespace test_decltype
5886 namespace test_type_deduction
5889 template < typename T1, typename T2 >
5892 static const bool value = false;
5895 template < typename T >
5896 struct is_same<T, T>
5898 static const bool value = true;
5901 template < typename T1, typename T2 >
5903 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5909 test(const int c, volatile int v)
5911 static_assert(is_same<int, decltype(0)>::value == true, "");
5912 static_assert(is_same<int, decltype(c)>::value == false, "");
5913 static_assert(is_same<int, decltype(v)>::value == false, "");
5916 auto sumi = ac + av + 'x';
5917 auto sumf = ac + av + 1.0;
5918 static_assert(is_same<int, decltype(ac)>::value == true, "");
5919 static_assert(is_same<int, decltype(av)>::value == true, "");
5920 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5921 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5922 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5923 return (sumf > 0.0) ? sumi : add(c, v);
5928 namespace test_noexcept
5931 int f() { return 0; }
5932 int g() noexcept { return 0; }
5934 static_assert(noexcept(f()) == false, "");
5935 static_assert(noexcept(g()) == true, "");
5939 namespace test_constexpr
5942 template < typename CharT >
5943 unsigned long constexpr
5944 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5946 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5949 template < typename CharT >
5950 unsigned long constexpr
5951 strlen_c(const CharT *const s) noexcept
5953 return strlen_c_r(s, 0UL);
5956 static_assert(strlen_c("") == 0UL, "");
5957 static_assert(strlen_c("1") == 1UL, "");
5958 static_assert(strlen_c("example") == 7UL, "");
5959 static_assert(strlen_c("another\0example") == 7UL, "");
5963 namespace test_rvalue_references
5969 static constexpr int value = N;
5972 answer<1> f(int&) { return answer<1>(); }
5973 answer<2> f(const int&) { return answer<2>(); }
5974 answer<3> f(int&&) { return answer<3>(); }
5981 static_assert(decltype(f(i))::value == 1, "");
5982 static_assert(decltype(f(c))::value == 2, "");
5983 static_assert(decltype(f(0))::value == 3, "");
5988 namespace test_uniform_initialization
5993 static const int zero {};
5994 static const int one {1};
5997 static_assert(test::zero == 0, "");
5998 static_assert(test::one == 1, "");
6002 namespace test_lambdas
6008 auto lambda1 = [](){};
6009 auto lambda2 = lambda1;
6017 auto a = [](int i, int j){ return i + j; }(1, 2);
6018 auto b = []() -> int { return '0'; }();
6019 auto c = [=](){ return a + b; }();
6020 auto d = [&](){ return c; }();
6021 auto e = [a, &b](int x) mutable {
6022 const auto identity = [](int y){ return y; };
6023 for (auto i = 0; i < a; ++i)
6025 return x + identity(a + b);
6027 return a + b + c + d + e;
6033 const auto nullary = [](){ return 0; };
6034 const auto unary = [](int x){ return x; };
6035 using nullary_t = decltype(nullary);
6036 using unary_t = decltype(unary);
6037 const auto higher1st = [](nullary_t f){ return f(); };
6038 const auto higher2nd = [unary](nullary_t f1){
6039 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6041 return higher1st(nullary) + higher2nd(nullary)(unary);
6046 namespace test_variadic_templates
6052 template <int N0, int... N1toN>
6053 struct sum<N0, N1toN...>
6055 static constexpr auto value = N0 + sum<N1toN...>::value;
6061 static constexpr auto value = 0;
6064 static_assert(sum<>::value == 0, "");
6065 static_assert(sum<1>::value == 1, "");
6066 static_assert(sum<23>::value == 23, "");
6067 static_assert(sum<1, 2>::value == 3, "");
6068 static_assert(sum<5, 5, 11>::value == 21, "");
6069 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6073 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6074 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6076 namespace test_template_alias_sfinae
6081 template<typename T>
6082 using member = typename T::member_type;
6084 template<typename T>
6087 template<typename T>
6088 void func(member<T>*) {}
6092 void test() { func<foo>(0); }
6096 } // namespace cxx11
6098 #endif // __cplusplus >= 201103L
6103 if ac_fn_cxx_try_compile
"$LINENO"; then :
6104 ax_cv_cxx_compile_cxx11
=yes
6106 ax_cv_cxx_compile_cxx11
=no
6108 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6111 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6112 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6116 if test x
$ac_success = xno
; then
6117 for alternative
in ${ax_cxx_compile_alternatives}; do
6118 switch
="-std=gnu++${alternative}"
6119 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6121 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6122 if eval \
${$cachevar+:} false
; then :
6123 $as_echo_n "(cached) " >&6
6127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6128 /* end confdefs.h. */
6131 // If the compiler admits that it is not ready for C++11, why torture it?
6132 // Hopefully, this will speed up the test.
6136 #error "This is not a C++ compiler"
6138 #elif __cplusplus < 201103L
6140 #error "This is not a C++11 compiler"
6147 namespace test_static_assert
6150 template <typename T>
6153 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6158 namespace test_final_override
6167 struct Derived : public Base
6169 virtual ~Derived() override {}
6170 virtual void f() override {}
6175 namespace test_double_right_angle_brackets
6178 template < typename T >
6181 typedef check<void> single_type;
6182 typedef check<check<void>> double_type;
6183 typedef check<check<check<void>>> triple_type;
6184 typedef check<check<check<check<void>>>> quadruple_type;
6188 namespace test_decltype
6201 namespace test_type_deduction
6204 template < typename T1, typename T2 >
6207 static const bool value = false;
6210 template < typename T >
6211 struct is_same<T, T>
6213 static const bool value = true;
6216 template < typename T1, typename T2 >
6218 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6224 test(const int c, volatile int v)
6226 static_assert(is_same<int, decltype(0)>::value == true, "");
6227 static_assert(is_same<int, decltype(c)>::value == false, "");
6228 static_assert(is_same<int, decltype(v)>::value == false, "");
6231 auto sumi = ac + av + 'x';
6232 auto sumf = ac + av + 1.0;
6233 static_assert(is_same<int, decltype(ac)>::value == true, "");
6234 static_assert(is_same<int, decltype(av)>::value == true, "");
6235 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6236 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6237 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6238 return (sumf > 0.0) ? sumi : add(c, v);
6243 namespace test_noexcept
6246 int f() { return 0; }
6247 int g() noexcept { return 0; }
6249 static_assert(noexcept(f()) == false, "");
6250 static_assert(noexcept(g()) == true, "");
6254 namespace test_constexpr
6257 template < typename CharT >
6258 unsigned long constexpr
6259 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6261 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6264 template < typename CharT >
6265 unsigned long constexpr
6266 strlen_c(const CharT *const s) noexcept
6268 return strlen_c_r(s, 0UL);
6271 static_assert(strlen_c("") == 0UL, "");
6272 static_assert(strlen_c("1") == 1UL, "");
6273 static_assert(strlen_c("example") == 7UL, "");
6274 static_assert(strlen_c("another\0example") == 7UL, "");
6278 namespace test_rvalue_references
6284 static constexpr int value = N;
6287 answer<1> f(int&) { return answer<1>(); }
6288 answer<2> f(const int&) { return answer<2>(); }
6289 answer<3> f(int&&) { return answer<3>(); }
6296 static_assert(decltype(f(i))::value == 1, "");
6297 static_assert(decltype(f(c))::value == 2, "");
6298 static_assert(decltype(f(0))::value == 3, "");
6303 namespace test_uniform_initialization
6308 static const int zero {};
6309 static const int one {1};
6312 static_assert(test::zero == 0, "");
6313 static_assert(test::one == 1, "");
6317 namespace test_lambdas
6323 auto lambda1 = [](){};
6324 auto lambda2 = lambda1;
6332 auto a = [](int i, int j){ return i + j; }(1, 2);
6333 auto b = []() -> int { return '0'; }();
6334 auto c = [=](){ return a + b; }();
6335 auto d = [&](){ return c; }();
6336 auto e = [a, &b](int x) mutable {
6337 const auto identity = [](int y){ return y; };
6338 for (auto i = 0; i < a; ++i)
6340 return x + identity(a + b);
6342 return a + b + c + d + e;
6348 const auto nullary = [](){ return 0; };
6349 const auto unary = [](int x){ return x; };
6350 using nullary_t = decltype(nullary);
6351 using unary_t = decltype(unary);
6352 const auto higher1st = [](nullary_t f){ return f(); };
6353 const auto higher2nd = [unary](nullary_t f1){
6354 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6356 return higher1st(nullary) + higher2nd(nullary)(unary);
6361 namespace test_variadic_templates
6367 template <int N0, int... N1toN>
6368 struct sum<N0, N1toN...>
6370 static constexpr auto value = N0 + sum<N1toN...>::value;
6376 static constexpr auto value = 0;
6379 static_assert(sum<>::value == 0, "");
6380 static_assert(sum<1>::value == 1, "");
6381 static_assert(sum<23>::value == 23, "");
6382 static_assert(sum<1, 2>::value == 3, "");
6383 static_assert(sum<5, 5, 11>::value == 21, "");
6384 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6388 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6389 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6391 namespace test_template_alias_sfinae
6396 template<typename T>
6397 using member = typename T::member_type;
6399 template<typename T>
6402 template<typename T>
6403 void func(member<T>*) {}
6407 void test() { func<foo>(0); }
6411 } // namespace cxx11
6413 #endif // __cplusplus >= 201103L
6418 if ac_fn_cxx_try_compile
"$LINENO"; then :
6423 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6426 eval ac_res
=\$
$cachevar
6427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6428 $as_echo "$ac_res" >&6; }
6429 if eval test x\$
$cachevar = xyes
; then
6431 if test -n "$CXXCPP" ; then
6432 CXXCPP
="$CXXCPP $switch"
6440 if test x
$ac_success = xno
; then
6441 for alternative
in ${ax_cxx_compile_alternatives}; do
6442 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6443 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6445 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6446 if eval \${$cachevar+:} false; then :
6447 $as_echo_n "(cached
) " >&6
6451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6452 /* end confdefs.h. */
6455 // If the compiler admits that it is not ready for C++11, why torture it?
6456 // Hopefully, this will speed up the test.
6460 #error "This is not a C
++ compiler
"
6462 #elif __cplusplus < 201103L
6464 #error "This is not a C
++11 compiler
"
6471 namespace test_static_assert
6474 template <typename T>
6477 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6482 namespace test_final_override
6491 struct Derived : public Base
6493 virtual ~Derived() override {}
6494 virtual void f() override {}
6499 namespace test_double_right_angle_brackets
6502 template < typename T >
6505 typedef check<void> single_type;
6506 typedef check<check<void>> double_type;
6507 typedef check<check<check<void>>> triple_type;
6508 typedef check<check<check<check<void>>>> quadruple_type;
6512 namespace test_decltype
6525 namespace test_type_deduction
6528 template < typename T1, typename T2 >
6531 static const bool value = false;
6534 template < typename T >
6535 struct is_same<T, T>
6537 static const bool value = true;
6540 template < typename T1, typename T2 >
6542 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6548 test(const int c, volatile int v)
6550 static_assert(is_same<int, decltype(0)>::value == true, "");
6551 static_assert(is_same<int, decltype(c)>::value == false, "");
6552 static_assert(is_same<int, decltype(v)>::value == false, "");
6555 auto sumi = ac + av + 'x';
6556 auto sumf = ac + av + 1.0;
6557 static_assert(is_same<int, decltype(ac)>::value == true, "");
6558 static_assert(is_same<int, decltype(av)>::value == true, "");
6559 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6560 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6561 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6562 return (sumf > 0.0) ? sumi : add(c, v);
6567 namespace test_noexcept
6570 int f() { return 0; }
6571 int g() noexcept { return 0; }
6573 static_assert(noexcept(f()) == false, "");
6574 static_assert(noexcept(g()) == true, "");
6578 namespace test_constexpr
6581 template < typename CharT >
6582 unsigned long constexpr
6583 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6585 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6588 template < typename CharT >
6589 unsigned long constexpr
6590 strlen_c(const CharT *const s) noexcept
6592 return strlen_c_r(s, 0UL);
6595 static_assert(strlen_c("") == 0UL, "");
6596 static_assert(strlen_c("1") == 1UL, "");
6597 static_assert(strlen_c("example
") == 7UL, "");
6598 static_assert(strlen_c("another\
0example
") == 7UL, "");
6602 namespace test_rvalue_references
6608 static constexpr int value = N;
6611 answer<1> f(int&) { return answer<1>(); }
6612 answer<2> f(const int&) { return answer<2>(); }
6613 answer<3> f(int&&) { return answer<3>(); }
6620 static_assert(decltype(f(i))::value == 1, "");
6621 static_assert(decltype(f(c))::value == 2, "");
6622 static_assert(decltype(f(0))::value == 3, "");
6627 namespace test_uniform_initialization
6632 static const int zero {};
6633 static const int one {1};
6636 static_assert(test::zero == 0, "");
6637 static_assert(test::one == 1, "");
6641 namespace test_lambdas
6647 auto lambda1 = [](){};
6648 auto lambda2 = lambda1;
6656 auto a = [](int i, int j){ return i + j; }(1, 2);
6657 auto b = []() -> int { return '0'; }();
6658 auto c = [=](){ return a + b; }();
6659 auto d = [&](){ return c; }();
6660 auto e = [a, &b](int x) mutable {
6661 const auto identity = [](int y){ return y; };
6662 for (auto i = 0; i < a; ++i)
6664 return x + identity(a + b);
6666 return a + b + c + d + e;
6672 const auto nullary = [](){ return 0; };
6673 const auto unary = [](int x){ return x; };
6674 using nullary_t = decltype(nullary);
6675 using unary_t = decltype(unary);
6676 const auto higher1st = [](nullary_t f){ return f(); };
6677 const auto higher2nd = [unary](nullary_t f1){
6678 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6680 return higher1st(nullary) + higher2nd(nullary)(unary);
6685 namespace test_variadic_templates
6691 template <int N0, int... N1toN>
6692 struct sum<N0, N1toN...>
6694 static constexpr auto value = N0 + sum<N1toN...>::value;
6700 static constexpr auto value = 0;
6703 static_assert(sum<>::value == 0, "");
6704 static_assert(sum<1>::value == 1, "");
6705 static_assert(sum<23>::value == 23, "");
6706 static_assert(sum<1, 2>::value == 3, "");
6707 static_assert(sum<5, 5, 11>::value == 21, "");
6708 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6712 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6713 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6715 namespace test_template_alias_sfinae
6720 template<typename T>
6721 using member = typename T::member_type;
6723 template<typename T>
6726 template<typename T>
6727 void func(member<T>*) {}
6731 void test() { func<foo>(0); }
6735 } // namespace cxx11
6737 #endif // __cplusplus >= 201103L
6742 if ac_fn_cxx_try_compile "$LINENO"; then :
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6750 eval ac_res=\$$cachevar
6751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6752 $as_echo "$ac_res" >&6; }
6753 if eval test x\$$cachevar = xyes; then
6755 if test -n "$CXXCPP" ; then
6756 CXXCPP="$CXXCPP $switch"
6762 if test x$ac_success = xyes; then
6769 ac_cpp='$CPP $CPPFLAGS'
6770 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6771 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6772 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6774 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6775 if test x$ac_success = xno; then
6776 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6779 if test x$ac_success = xno; then
6781 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6782 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6786 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6792 if test "${build}" != "${host}"; then
6793 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6795 ac_cpp
='$CXXCPP $CPPFLAGS'
6796 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6797 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6798 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6800 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6801 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6802 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6803 CXX
="$CXX_FOR_BUILD"
6804 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6805 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6807 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6808 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6809 $as_echo_n "(cached) " >&6
6811 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6812 /* end confdefs.h. */
6815 // If the compiler admits that it is not ready for C++11, why torture it?
6816 // Hopefully, this will speed up the test.
6820 #error "This is not a C++ compiler"
6822 #elif __cplusplus < 201103L
6824 #error "This is not a C++11 compiler"
6831 namespace test_static_assert
6834 template <typename T>
6837 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6842 namespace test_final_override
6851 struct Derived : public Base
6853 virtual ~Derived() override {}
6854 virtual void f() override {}
6859 namespace test_double_right_angle_brackets
6862 template < typename T >
6865 typedef check<void> single_type;
6866 typedef check<check<void>> double_type;
6867 typedef check<check<check<void>>> triple_type;
6868 typedef check<check<check<check<void>>>> quadruple_type;
6872 namespace test_decltype
6885 namespace test_type_deduction
6888 template < typename T1, typename T2 >
6891 static const bool value = false;
6894 template < typename T >
6895 struct is_same<T, T>
6897 static const bool value = true;
6900 template < typename T1, typename T2 >
6902 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6908 test(const int c, volatile int v)
6910 static_assert(is_same<int, decltype(0)>::value == true, "");
6911 static_assert(is_same<int, decltype(c)>::value == false, "");
6912 static_assert(is_same<int, decltype(v)>::value == false, "");
6915 auto sumi = ac + av + 'x';
6916 auto sumf = ac + av + 1.0;
6917 static_assert(is_same<int, decltype(ac)>::value == true, "");
6918 static_assert(is_same<int, decltype(av)>::value == true, "");
6919 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6920 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6921 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6922 return (sumf > 0.0) ? sumi : add(c, v);
6927 namespace test_noexcept
6930 int f() { return 0; }
6931 int g() noexcept { return 0; }
6933 static_assert(noexcept(f()) == false, "");
6934 static_assert(noexcept(g()) == true, "");
6938 namespace test_constexpr
6941 template < typename CharT >
6942 unsigned long constexpr
6943 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6945 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6948 template < typename CharT >
6949 unsigned long constexpr
6950 strlen_c(const CharT *const s) noexcept
6952 return strlen_c_r(s, 0UL);
6955 static_assert(strlen_c("") == 0UL, "");
6956 static_assert(strlen_c("1") == 1UL, "");
6957 static_assert(strlen_c("example") == 7UL, "");
6958 static_assert(strlen_c("another\0example") == 7UL, "");
6962 namespace test_rvalue_references
6968 static constexpr int value = N;
6971 answer<1> f(int&) { return answer<1>(); }
6972 answer<2> f(const int&) { return answer<2>(); }
6973 answer<3> f(int&&) { return answer<3>(); }
6980 static_assert(decltype(f(i))::value == 1, "");
6981 static_assert(decltype(f(c))::value == 2, "");
6982 static_assert(decltype(f(0))::value == 3, "");
6987 namespace test_uniform_initialization
6992 static const int zero {};
6993 static const int one {1};
6996 static_assert(test::zero == 0, "");
6997 static_assert(test::one == 1, "");
7001 namespace test_lambdas
7007 auto lambda1 = [](){};
7008 auto lambda2 = lambda1;
7016 auto a = [](int i, int j){ return i + j; }(1, 2);
7017 auto b = []() -> int { return '0'; }();
7018 auto c = [=](){ return a + b; }();
7019 auto d = [&](){ return c; }();
7020 auto e = [a, &b](int x) mutable {
7021 const auto identity = [](int y){ return y; };
7022 for (auto i = 0; i < a; ++i)
7024 return x + identity(a + b);
7026 return a + b + c + d + e;
7032 const auto nullary = [](){ return 0; };
7033 const auto unary = [](int x){ return x; };
7034 using nullary_t = decltype(nullary);
7035 using unary_t = decltype(unary);
7036 const auto higher1st = [](nullary_t f){ return f(); };
7037 const auto higher2nd = [unary](nullary_t f1){
7038 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7040 return higher1st(nullary) + higher2nd(nullary)(unary);
7045 namespace test_variadic_templates
7051 template <int N0, int... N1toN>
7052 struct sum<N0, N1toN...>
7054 static constexpr auto value = N0 + sum<N1toN...>::value;
7060 static constexpr auto value = 0;
7063 static_assert(sum<>::value == 0, "");
7064 static_assert(sum<1>::value == 1, "");
7065 static_assert(sum<23>::value == 23, "");
7066 static_assert(sum<1, 2>::value == 3, "");
7067 static_assert(sum<5, 5, 11>::value == 21, "");
7068 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7072 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7073 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7075 namespace test_template_alias_sfinae
7080 template<typename T>
7081 using member = typename T::member_type;
7083 template<typename T>
7086 template<typename T>
7087 void func(member<T>*) {}
7091 void test() { func<foo>(0); }
7095 } // namespace cxx11
7097 #endif // __cplusplus >= 201103L
7102 if ac_fn_cxx_try_compile
"$LINENO"; then :
7103 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7105 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7107 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7110 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7111 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7115 if test x
$ac_success = xno
; then
7116 for alternative
in ${ax_cxx_compile_alternatives}; do
7117 switch
="-std=gnu++${alternative}"
7118 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7120 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7121 if eval \
${$cachevar+:} false
; then :
7122 $as_echo_n "(cached) " >&6
7126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7127 /* end confdefs.h. */
7130 // If the compiler admits that it is not ready for C++11, why torture it?
7131 // Hopefully, this will speed up the test.
7135 #error "This is not a C++ compiler"
7137 #elif __cplusplus < 201103L
7139 #error "This is not a C++11 compiler"
7146 namespace test_static_assert
7149 template <typename T>
7152 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7157 namespace test_final_override
7166 struct Derived : public Base
7168 virtual ~Derived() override {}
7169 virtual void f() override {}
7174 namespace test_double_right_angle_brackets
7177 template < typename T >
7180 typedef check<void> single_type;
7181 typedef check<check<void>> double_type;
7182 typedef check<check<check<void>>> triple_type;
7183 typedef check<check<check<check<void>>>> quadruple_type;
7187 namespace test_decltype
7200 namespace test_type_deduction
7203 template < typename T1, typename T2 >
7206 static const bool value = false;
7209 template < typename T >
7210 struct is_same<T, T>
7212 static const bool value = true;
7215 template < typename T1, typename T2 >
7217 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7223 test(const int c, volatile int v)
7225 static_assert(is_same<int, decltype(0)>::value == true, "");
7226 static_assert(is_same<int, decltype(c)>::value == false, "");
7227 static_assert(is_same<int, decltype(v)>::value == false, "");
7230 auto sumi = ac + av + 'x';
7231 auto sumf = ac + av + 1.0;
7232 static_assert(is_same<int, decltype(ac)>::value == true, "");
7233 static_assert(is_same<int, decltype(av)>::value == true, "");
7234 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7235 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7236 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7237 return (sumf > 0.0) ? sumi : add(c, v);
7242 namespace test_noexcept
7245 int f() { return 0; }
7246 int g() noexcept { return 0; }
7248 static_assert(noexcept(f()) == false, "");
7249 static_assert(noexcept(g()) == true, "");
7253 namespace test_constexpr
7256 template < typename CharT >
7257 unsigned long constexpr
7258 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7260 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7263 template < typename CharT >
7264 unsigned long constexpr
7265 strlen_c(const CharT *const s) noexcept
7267 return strlen_c_r(s, 0UL);
7270 static_assert(strlen_c("") == 0UL, "");
7271 static_assert(strlen_c("1") == 1UL, "");
7272 static_assert(strlen_c("example") == 7UL, "");
7273 static_assert(strlen_c("another\0example") == 7UL, "");
7277 namespace test_rvalue_references
7283 static constexpr int value = N;
7286 answer<1> f(int&) { return answer<1>(); }
7287 answer<2> f(const int&) { return answer<2>(); }
7288 answer<3> f(int&&) { return answer<3>(); }
7295 static_assert(decltype(f(i))::value == 1, "");
7296 static_assert(decltype(f(c))::value == 2, "");
7297 static_assert(decltype(f(0))::value == 3, "");
7302 namespace test_uniform_initialization
7307 static const int zero {};
7308 static const int one {1};
7311 static_assert(test::zero == 0, "");
7312 static_assert(test::one == 1, "");
7316 namespace test_lambdas
7322 auto lambda1 = [](){};
7323 auto lambda2 = lambda1;
7331 auto a = [](int i, int j){ return i + j; }(1, 2);
7332 auto b = []() -> int { return '0'; }();
7333 auto c = [=](){ return a + b; }();
7334 auto d = [&](){ return c; }();
7335 auto e = [a, &b](int x) mutable {
7336 const auto identity = [](int y){ return y; };
7337 for (auto i = 0; i < a; ++i)
7339 return x + identity(a + b);
7341 return a + b + c + d + e;
7347 const auto nullary = [](){ return 0; };
7348 const auto unary = [](int x){ return x; };
7349 using nullary_t = decltype(nullary);
7350 using unary_t = decltype(unary);
7351 const auto higher1st = [](nullary_t f){ return f(); };
7352 const auto higher2nd = [unary](nullary_t f1){
7353 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7355 return higher1st(nullary) + higher2nd(nullary)(unary);
7360 namespace test_variadic_templates
7366 template <int N0, int... N1toN>
7367 struct sum<N0, N1toN...>
7369 static constexpr auto value = N0 + sum<N1toN...>::value;
7375 static constexpr auto value = 0;
7378 static_assert(sum<>::value == 0, "");
7379 static_assert(sum<1>::value == 1, "");
7380 static_assert(sum<23>::value == 23, "");
7381 static_assert(sum<1, 2>::value == 3, "");
7382 static_assert(sum<5, 5, 11>::value == 21, "");
7383 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7387 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7388 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7390 namespace test_template_alias_sfinae
7395 template<typename T>
7396 using member = typename T::member_type;
7398 template<typename T>
7401 template<typename T>
7402 void func(member<T>*) {}
7406 void test() { func<foo>(0); }
7410 } // namespace cxx11
7412 #endif // __cplusplus >= 201103L
7417 if ac_fn_cxx_try_compile
"$LINENO"; then :
7422 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7425 eval ac_res
=\$
$cachevar
7426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7427 $as_echo "$ac_res" >&6; }
7428 if eval test x\$
$cachevar = xyes
; then
7430 if test -n "$CXXCPP" ; then
7431 CXXCPP
="$CXXCPP $switch"
7439 if test x
$ac_success = xno
; then
7440 for alternative
in ${ax_cxx_compile_alternatives}; do
7441 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7442 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7444 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7445 if eval \${$cachevar+:} false; then :
7446 $as_echo_n "(cached
) " >&6
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7454 // If the compiler admits that it is not ready for C++11, why torture it?
7455 // Hopefully, this will speed up the test.
7459 #error "This is not a C
++ compiler
"
7461 #elif __cplusplus < 201103L
7463 #error "This is not a C
++11 compiler
"
7470 namespace test_static_assert
7473 template <typename T>
7476 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7481 namespace test_final_override
7490 struct Derived : public Base
7492 virtual ~Derived() override {}
7493 virtual void f() override {}
7498 namespace test_double_right_angle_brackets
7501 template < typename T >
7504 typedef check<void> single_type;
7505 typedef check<check<void>> double_type;
7506 typedef check<check<check<void>>> triple_type;
7507 typedef check<check<check<check<void>>>> quadruple_type;
7511 namespace test_decltype
7524 namespace test_type_deduction
7527 template < typename T1, typename T2 >
7530 static const bool value = false;
7533 template < typename T >
7534 struct is_same<T, T>
7536 static const bool value = true;
7539 template < typename T1, typename T2 >
7541 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7547 test(const int c, volatile int v)
7549 static_assert(is_same<int, decltype(0)>::value == true, "");
7550 static_assert(is_same<int, decltype(c)>::value == false, "");
7551 static_assert(is_same<int, decltype(v)>::value == false, "");
7554 auto sumi = ac + av + 'x';
7555 auto sumf = ac + av + 1.0;
7556 static_assert(is_same<int, decltype(ac)>::value == true, "");
7557 static_assert(is_same<int, decltype(av)>::value == true, "");
7558 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7559 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7560 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7561 return (sumf > 0.0) ? sumi : add(c, v);
7566 namespace test_noexcept
7569 int f() { return 0; }
7570 int g() noexcept { return 0; }
7572 static_assert(noexcept(f()) == false, "");
7573 static_assert(noexcept(g()) == true, "");
7577 namespace test_constexpr
7580 template < typename CharT >
7581 unsigned long constexpr
7582 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7584 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7587 template < typename CharT >
7588 unsigned long constexpr
7589 strlen_c(const CharT *const s) noexcept
7591 return strlen_c_r(s, 0UL);
7594 static_assert(strlen_c("") == 0UL, "");
7595 static_assert(strlen_c("1") == 1UL, "");
7596 static_assert(strlen_c("example
") == 7UL, "");
7597 static_assert(strlen_c("another\
0example
") == 7UL, "");
7601 namespace test_rvalue_references
7607 static constexpr int value = N;
7610 answer<1> f(int&) { return answer<1>(); }
7611 answer<2> f(const int&) { return answer<2>(); }
7612 answer<3> f(int&&) { return answer<3>(); }
7619 static_assert(decltype(f(i))::value == 1, "");
7620 static_assert(decltype(f(c))::value == 2, "");
7621 static_assert(decltype(f(0))::value == 3, "");
7626 namespace test_uniform_initialization
7631 static const int zero {};
7632 static const int one {1};
7635 static_assert(test::zero == 0, "");
7636 static_assert(test::one == 1, "");
7640 namespace test_lambdas
7646 auto lambda1 = [](){};
7647 auto lambda2 = lambda1;
7655 auto a = [](int i, int j){ return i + j; }(1, 2);
7656 auto b = []() -> int { return '0'; }();
7657 auto c = [=](){ return a + b; }();
7658 auto d = [&](){ return c; }();
7659 auto e = [a, &b](int x) mutable {
7660 const auto identity = [](int y){ return y; };
7661 for (auto i = 0; i < a; ++i)
7663 return x + identity(a + b);
7665 return a + b + c + d + e;
7671 const auto nullary = [](){ return 0; };
7672 const auto unary = [](int x){ return x; };
7673 using nullary_t = decltype(nullary);
7674 using unary_t = decltype(unary);
7675 const auto higher1st = [](nullary_t f){ return f(); };
7676 const auto higher2nd = [unary](nullary_t f1){
7677 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7679 return higher1st(nullary) + higher2nd(nullary)(unary);
7684 namespace test_variadic_templates
7690 template <int N0, int... N1toN>
7691 struct sum<N0, N1toN...>
7693 static constexpr auto value = N0 + sum<N1toN...>::value;
7699 static constexpr auto value = 0;
7702 static_assert(sum<>::value == 0, "");
7703 static_assert(sum<1>::value == 1, "");
7704 static_assert(sum<23>::value == 23, "");
7705 static_assert(sum<1, 2>::value == 3, "");
7706 static_assert(sum<5, 5, 11>::value == 21, "");
7707 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7711 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7712 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7714 namespace test_template_alias_sfinae
7719 template<typename T>
7720 using member = typename T::member_type;
7722 template<typename T>
7725 template<typename T>
7726 void func(member<T>*) {}
7730 void test() { func<foo>(0); }
7734 } // namespace cxx11
7736 #endif // __cplusplus >= 201103L
7741 if ac_fn_cxx_try_compile "$LINENO"; then :
7746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7749 eval ac_res=\$$cachevar
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7751 $as_echo "$ac_res" >&6; }
7752 if eval test x\$$cachevar = xyes; then
7754 if test -n "$CXXCPP" ; then
7755 CXXCPP="$CXXCPP $switch"
7761 if test x$ac_success = xyes; then
7766 CXX_FOR_BUILD="$CXX"
7767 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7768 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7769 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7770 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7771 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7773 ac_cpp='$CPP $CPPFLAGS'
7774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7778 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7779 if test x$ac_success = xno; then
7780 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7783 if test x$ac_success = xno; then
7784 HAVE_CXX11_FOR_BUILD=0
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7786 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7788 HAVE_CXX11_FOR_BUILD=1
7790 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7798 # Check whether --enable-pgo-build was given.
7799 if test "${enable_pgo_build+set}" = set; then :
7800 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7806 # Issue errors and warnings for invalid/strange PGO build combinations.
7807 case "$have_compiler:$host:$target:$enable_pgo_build" in
7810 # Allow the PGO build only if we aren't building a compiler and
7811 # we are in a native configuration.
7812 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7814 # Disallow the PGO bootstrap if we are building a compiler.
7815 yes:*:*:yes |
yes:*:*:lto
)
7816 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7819 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7823 if test "$enable_pgo_build" != "no"; then
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7825 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7826 old_CFLAGS
="$CFLAGS"
7827 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7828 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7830 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7831 /* end confdefs.h. */
7834 if ac_fn_c_try_compile
"$LINENO"; then :
7837 PGO_BUILD_GEN_CFLAGS
=
7839 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7840 CFLAGS
="$old_CFLAGS"
7841 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7843 $as_echo "yes" >&6; }
7844 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7847 $as_echo "no" >&6; }
7848 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7851 if test "$enable_pgo_build" = "lto"; then
7852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7853 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7854 old_CFLAGS
="$CFLAGS"
7855 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7856 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7857 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7858 /* end confdefs.h. */
7861 if ac_fn_c_try_compile
"$LINENO"; then :
7864 PGO_BUILD_LTO_CFLAGS
=
7866 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7867 CFLAGS
="$old_CFLAGS"
7868 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7870 $as_echo "yes" >&6; }
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7873 $as_echo "no" >&6; }
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7875 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7883 # Used for setting $lt_cv_objdir
7884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7885 $as_echo_n "checking for objdir... " >&6; }
7886 if ${lt_cv_objdir+:} false
; then :
7887 $as_echo_n "(cached) " >&6
7889 rm -f .libs
2>/dev
/null
7890 mkdir .libs
2>/dev
/null
7891 if test -d .libs
; then
7894 # MS-DOS does not allow filenames that begin with a dot.
7897 rmdir .libs
2>/dev
/null
7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7900 $as_echo "$lt_cv_objdir" >&6; }
7901 objdir
=$lt_cv_objdir
7907 cat >>confdefs.h
<<_ACEOF
7908 #define LT_OBJDIR "$lt_cv_objdir/"
7913 # Check for GMP, MPFR and MPC
7916 if test -d ${srcdir}/gcc
; then
7920 if test -d ${srcdir}/gdb
; then
7921 if test "x$enable_gdb" != xno
; then
7926 gmplibs
="-lmpfr -lgmp"
7927 if test x
"$require_mpc" = "xyes" ; then
7928 gmplibs
="-lmpc $gmplibs"
7933 # Specify a location for mpc
7934 # check for this first so it ends up on the link line before mpfr.
7936 # Check whether --with-mpc was given.
7937 if test "${with_mpc+set}" = set; then :
7942 # Check whether --with-mpc-include was given.
7943 if test "${with_mpc_include+set}" = set; then :
7944 withval
=$with_mpc_include;
7948 # Check whether --with-mpc-lib was given.
7949 if test "${with_mpc_lib+set}" = set; then :
7950 withval
=$with_mpc_lib;
7954 if test "x$with_mpc" != x
; then
7955 gmplibs
="-L$with_mpc/lib $gmplibs"
7956 gmpinc
="-I$with_mpc/include $gmpinc"
7958 if test "x$with_mpc_include" != x
; then
7959 gmpinc
="-I$with_mpc_include $gmpinc"
7961 if test "x$with_mpc_lib" != x
; then
7962 gmplibs
="-L$with_mpc_lib $gmplibs"
7964 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
7965 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7966 gmpinc
='-I$$s/mpc/src '"$gmpinc"
7967 # Do not test the mpc version. Assume that it is sufficient, since
7968 # it is in the source tree, and the library has not been built yet
7969 # but it would be included on the link line in the version check below
7970 # hence making the test fail.
7974 # Specify a location for mpfr
7975 # check for this first so it ends up on the link line before gmp.
7977 # Check whether --with-mpfr was given.
7978 if test "${with_mpfr+set}" = set; then :
7983 # Check whether --with-mpfr-include was given.
7984 if test "${with_mpfr_include+set}" = set; then :
7985 withval
=$with_mpfr_include;
7989 # Check whether --with-mpfr-lib was given.
7990 if test "${with_mpfr_lib+set}" = set; then :
7991 withval
=$with_mpfr_lib;
7995 if test "x$with_mpfr" != x
; then
7996 gmplibs
="-L$with_mpfr/lib $gmplibs"
7997 gmpinc
="-I$with_mpfr/include $gmpinc"
7999 if test "x$with_mpfr_include" != x
; then
8000 gmpinc
="-I$with_mpfr_include $gmpinc"
8002 if test "x$with_mpfr_lib" != x
; then
8003 gmplibs
="-L$with_mpfr_lib $gmplibs"
8005 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8006 # MPFR v3.1.0 moved the sources into a src sub-directory.
8007 if ! test -d ${srcdir}/mpfr
/src
; then
8008 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8010 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8011 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8012 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8013 # Do not test the mpfr version. Assume that it is sufficient, since
8014 # it is in the source tree, and the library has not been built yet
8015 # but it would be included on the link line in the version check below
8016 # hence making the test fail.
8020 # Specify a location for gmp
8022 # Check whether --with-gmp was given.
8023 if test "${with_gmp+set}" = set; then :
8028 # Check whether --with-gmp-include was given.
8029 if test "${with_gmp_include+set}" = set; then :
8030 withval
=$with_gmp_include;
8034 # Check whether --with-gmp-lib was given.
8035 if test "${with_gmp_lib+set}" = set; then :
8036 withval
=$with_gmp_lib;
8041 if test "x$with_gmp" != x
; then
8042 gmplibs
="-L$with_gmp/lib $gmplibs"
8043 gmpinc
="-I$with_gmp/include $gmpinc"
8045 if test "x$with_gmp_include" != x
; then
8046 gmpinc
="-I$with_gmp_include $gmpinc"
8048 if test "x$with_gmp_lib" != x
; then
8049 gmplibs
="-L$with_gmp_lib $gmplibs"
8051 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8052 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8053 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8054 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8055 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8056 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8057 # Do not test the gmp version. Assume that it is sufficient, since
8058 # it is in the source tree, and the library has not been built yet
8059 # but it would be included on the link line in the version check below
8060 # hence making the test fail.
8064 if test "x$require_gmp" = xyes
&& test "x$have_gmp" = xno
; then
8066 saved_CFLAGS
="$CFLAGS"
8067 CFLAGS
="$CFLAGS $gmpinc"
8068 # Check for the recommended and required versions of GMP.
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8070 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8071 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8072 /* end confdefs.h. */
8078 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8079 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8080 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8088 if ac_fn_c_try_compile
"$LINENO"; then :
8089 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8090 /* end confdefs.h. */
8096 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8097 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8098 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8106 if ac_fn_c_try_compile
"$LINENO"; then :
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8108 $as_echo "yes" >&6; }
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8111 $as_echo "buggy but acceptable" >&6; }
8113 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }; have_gmp
=no
8118 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8120 # If we have GMP, check the MPFR version.
8121 if test x
"$have_gmp" = xyes
; then
8122 # Check for the recommended and required versions of MPFR.
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8124 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8125 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8126 /* end confdefs.h. */
8133 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8141 if ac_fn_c_try_compile
"$LINENO"; then :
8142 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8143 /* end confdefs.h. */
8150 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8158 if ac_fn_c_try_compile
"$LINENO"; then :
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8160 $as_echo "yes" >&6; }
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8163 $as_echo "buggy but acceptable" >&6; }
8165 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8168 $as_echo "no" >&6; }; have_gmp
=no
8170 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8173 # Check for the MPC header version.
8174 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8175 # Check for the recommended and required versions of MPC.
8176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8177 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8178 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8179 /* end confdefs.h. */
8185 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8193 if ac_fn_c_try_compile
"$LINENO"; then :
8194 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8195 /* end confdefs.h. */
8201 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8209 if ac_fn_c_try_compile
"$LINENO"; then :
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8211 $as_echo "yes" >&6; }
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8214 $as_echo "buggy but acceptable" >&6; }
8216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8219 $as_echo "no" >&6; }; have_gmp
=no
8221 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8224 # Now check the MPFR library.
8225 if test x
"$have_gmp" = xyes
; then
8227 LIBS
="$LIBS $gmplibs"
8228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8229 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8230 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8231 /* end confdefs.h. */
8242 mpfr_atan2 (n, n, x, MPFR_RNDN);
8243 mpfr_erfc (n, x, MPFR_RNDN);
8244 mpfr_subnormalize (x, t, MPFR_RNDN);
8252 if ac_fn_c_try_link
"$LINENO"; then :
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8254 $as_echo "yes" >&6; }
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257 $as_echo "no" >&6; }; have_gmp
=no
8259 rm -f core conftest.err conftest.
$ac_objext \
8260 conftest
$ac_exeext conftest.
$ac_ext
8264 # Now check the MPC library
8265 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8267 LIBS
="$LIBS $gmplibs"
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8269 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8279 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8280 mpc_cosh (c, c, MPC_RNDNN);
8281 mpc_pow (c, c, c, MPC_RNDNN);
8282 mpc_acosh (c, c, MPC_RNDNN);
8289 if ac_fn_c_try_link
"$LINENO"; then :
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8291 $as_echo "yes" >&6; }
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }; have_gmp
=no
8296 rm -f core conftest.err conftest.
$ac_objext \
8297 conftest
$ac_exeext conftest.
$ac_ext
8301 CFLAGS
="$saved_CFLAGS"
8303 # The library versions listed in the error message below should match
8304 # the HARD-minimums enforced above.
8305 if test x
$have_gmp != xyes
; then
8306 if test -d ${srcdir}/gcc
; then
8307 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8308 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8309 their locations. Source code for these libraries can be found at
8310 their respective hosting sites as well as at
8311 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8312 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8313 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8314 make sure that you have installed both the libraries and the header
8315 files. They may be located in separate packages." "$LINENO" 5
8317 as_fn_error $?
"Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8318 Try the --with-gmp and/or --with-mpfr options to specify
8319 their locations. If you obtained GMP and/or MPFR from a vendor
8320 distribution package, make sure that you have installed both the libraries
8321 and the header files. They may be located in separate packages." "$LINENO" 5
8326 # Flags needed for both GMP, MPFR and/or MPC.
8334 # Libraries to use for stage1 or when not bootstrapping.
8336 # Check whether --with-stage1-libs was given.
8337 if test "${with_stage1_libs+set}" = set; then :
8338 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8341 stage1_libs
=$withval
8349 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8350 # default is yes if gcc is being built; no otherwise. The reason for
8351 # this default is that gdb is sometimes linked against GNU Source
8352 # Highlight, which is a shared library that uses C++ exceptions. In
8353 # this case, -static-libstdc++ will cause crashes.
8355 # Check whether --with-static-standard-libraries was given.
8356 if test "${with_static_standard_libraries+set}" = set; then :
8357 withval
=$with_static_standard_libraries;
8359 with_static_standard_libraries
=auto
8362 if test "$with_static_standard_libraries" = auto
; then
8363 with_static_standard_libraries
=$have_compiler
8366 # Linker flags to use for stage1 or when not bootstrapping.
8368 # Check whether --with-stage1-ldflags was given.
8369 if test "${with_stage1_ldflags+set}" = set; then :
8370 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8373 stage1_ldflags
=$withval
8377 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8378 # if supported. But if the user explicitly specified the libraries to use,
8379 # trust that they are doing what they want.
8380 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8381 -a "$have_static_libs" = yes; then
8382 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8388 # Libraries to use for stage2 and later builds.
8390 # Check whether --with-boot-libs was given.
8391 if test "${with_boot_libs+set}" = set; then :
8392 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8395 poststage1_libs
=$withval
8403 # Linker flags to use for stage2 and later builds.
8405 # Check whether --with-boot-ldflags was given.
8406 if test "${with_boot_ldflags+set}" = set; then :
8407 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8410 poststage1_ldflags
=$withval
8414 # In stages 2 and 3, default to linking libstdc++ and libgcc
8415 # statically. But if the user explicitly specified the libraries to
8416 # use, trust that they are doing what they want.
8417 if test "$poststage1_libs" = ""; then
8418 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8424 # GCC GRAPHITE dependency isl.
8425 # Basic setup is inlined here, actual checks are in config/isl.m4
8428 # Check whether --with-isl was given.
8429 if test "${with_isl+set}" = set; then :
8434 # Treat --without-isl as a request to disable
8435 # GRAPHITE support and skip all following checks.
8436 if test "x$with_isl" != "xno"; then
8440 # Check whether --with-isl-include was given.
8441 if test "${with_isl_include+set}" = set; then :
8442 withval
=$with_isl_include;
8446 # Check whether --with-isl-lib was given.
8447 if test "${with_isl_lib+set}" = set; then :
8448 withval
=$with_isl_lib;
8452 # Check whether --enable-isl-version-check was given.
8453 if test "${enable_isl_version_check+set}" = set; then :
8454 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8456 ENABLE_ISL_CHECK
=yes
8460 # Initialize isllibs and islinc.
8469 isllibs
="-L$with_isl/lib"
8470 islinc
="-I$with_isl/include"
8473 if test "x${with_isl_include}" != x
; then
8474 islinc
="-I$with_isl_include"
8476 if test "x${with_isl_lib}" != x
; then
8477 isllibs
="-L$with_isl_lib"
8479 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8480 && test -d ${srcdir}/isl
; then
8481 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8482 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8485 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8488 isllibs
="${isllibs} -lisl"
8492 if test "${ENABLE_ISL_CHECK}" = yes ; then
8493 _isl_saved_CFLAGS
=$CFLAGS
8494 _isl_saved_LDFLAGS
=$LDFLAGS
8495 _isl_saved_LIBS
=$LIBS
8497 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8498 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8499 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8502 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8503 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8504 /* end confdefs.h. */
8505 #include <isl/schedule.h>
8509 isl_options_set_schedule_serialize_sccs (NULL, 0);
8514 if ac_fn_c_try_link
"$LINENO"; then :
8519 rm -f core conftest.err conftest.
$ac_objext \
8520 conftest
$ac_exeext conftest.
$ac_ext
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8522 $as_echo "$gcc_cv_isl" >&6; }
8524 if test "${gcc_cv_isl}" = no
; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8526 $as_echo "required isl version is 0.15 or later" >&6; }
8529 CFLAGS
=$_isl_saved_CFLAGS
8530 LDFLAGS
=$_isl_saved_LDFLAGS
8531 LIBS
=$_isl_saved_LIBS
8539 if test "x${with_isl}" = xno
; then
8540 graphite_requested
=no
8541 elif test "x${with_isl}" != x \
8542 ||
test "x${with_isl_include}" != x \
8543 ||
test "x${with_isl_lib}" != x
; then
8544 graphite_requested
=yes
8546 graphite_requested
=no
8551 if test "${gcc_cv_isl}" = no
; then
8556 if test "${graphite_requested}" = yes \
8557 && test "x${isllibs}" = x \
8558 && test "x${islinc}" = x
; then
8560 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8566 # If the isl check failed, disable builds of in-tree variant of isl
8567 if test "x$with_isl" = xno ||
8568 test "x$gcc_cv_isl" = xno
; then
8569 noconfigdirs
="$noconfigdirs isl"
8576 # Check for LTO support.
8577 # Check whether --enable-lto was given.
8578 if test "${enable_lto+set}" = set; then :
8579 enableval
=$enable_lto; enable_lto
=$enableval
8581 enable_lto
=yes; default_enable_lto
=yes
8590 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8591 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8592 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8601 if test $target_elf = yes; then :
8602 # ELF platforms build the lto-plugin always.
8603 build_lto_plugin
=yes
8606 if test x
"$default_enable_lto" = x
"yes" ; then
8608 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8609 # On other non-ELF platforms, LTO has yet to be validated.
8613 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8614 # It would also be nice to check the binutils support, but we don't
8615 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8616 # warn during gcc/ subconfigure; unless you're bootstrapping with
8617 # -flto it won't be needed until after installation anyway.
8619 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8620 *) if test x
"$enable_lto" = x
"yes"; then
8621 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8626 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8627 # Build it unless LTO was explicitly disabled.
8629 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8636 # Check whether --enable-linker-plugin-configure-flags was given.
8637 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8638 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8640 extra_linker_plugin_configure_flags
=
8644 # Check whether --enable-linker-plugin-flags was given.
8645 if test "${enable_linker_plugin_flags+set}" = set; then :
8646 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8648 extra_linker_plugin_flags
=
8653 # Handle --enable-host-pie
8654 # If host PIE executables are the default (or must be forced on) for some host,
8655 # we must pass that configuration to the gcc directory.
8657 # Check whether --enable-host-pie was given.
8658 if test "${enable_host_pie+set}" = set; then :
8659 enableval
=$enable_host_pie; host_pie
=$enableval
8662 if test x
$host_pie != xyes
; then
8663 # for Darwin20+ this is required.
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8665 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8667 gcc_host_pie
=--enable-host-pie
8674 # Default to PIE (mandatory for aarch64).
8676 gcc_host_pie
=--enable-host-pie
8686 # Enable --enable-host-shared.
8687 # Checked early to determine whether jit is an 'all' language
8688 # Check whether --enable-host-shared was given.
8689 if test "${enable_host_shared+set}" = set; then :
8690 enableval
=$enable_host_shared; host_shared
=$enableval
8692 x86_64-
*-darwin* | aarch64-
*-darwin*)
8693 if test x
$host_shared != xyes
; then
8694 # PIC is the default, and actually cannot be switched off.
8695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8696 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8700 if test x
$host_pie = xyes
-a x
$host_shared != xyes
; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8702 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
8709 # 64B x86_64 and Aarch64 Darwin default to PIC.
8710 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8711 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8712 *-*-darwin*) host_shared
=$host_pie ;;
8720 if test x
$host_shared = xyes
; then
8723 # Since host shared is the default for 64b Darwin, and also enabled for
8724 # host_pie, ensure that we present the PIE flag when host_pie is active.
8725 if test x
$host_pie = xyes
; then
8733 elif test x
$host_pie = xyes
; then
8741 # If we are building PIC/PIE host executables, and we are building dependent
8742 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8745 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8746 host_libs_picflag
='--with-pic'
8750 # By default, C and C++ are the only stage 1 languages.
8751 stage1_languages
=,c
,
8753 # Target libraries that we bootstrap.
8754 bootstrap_target_libs
=,target-libgcc
,
8756 # Figure out what language subdirectories are present.
8757 # Look if the user specified --enable-languages="..."; if not, use
8758 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8760 # NB: embedded tabs in this IF block -- do not untabify
8761 if test -d ${srcdir}/gcc
; then
8762 if test x
"${enable_languages+set}" != xset
; then
8763 if test x
"${LANGUAGES+set}" = xset
; then
8764 enable_languages
="${LANGUAGES}"
8765 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8767 enable_languages
=default
8770 if test x
"${enable_languages}" = x ||
8771 test x
"${enable_languages}" = xyes
;
8773 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8777 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8779 # 'f95' is the old name for the 'fortran' language. We issue a warning
8780 # and make the substitution.
8781 case ,${enable_languages}, in
8783 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8784 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8788 # If bootstrapping, C++ must be enabled.
8789 case ",$enable_languages,:$enable_bootstrap" in
8792 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8793 enable_languages
="${enable_languages},c++"
8795 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8800 # First scan to see if an enabled language requires some other language.
8801 # We assume that a given config-lang.in will list all the language
8802 # front ends it requires, even if some are required indirectly.
8803 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8804 case ${lang_frag} in
8806 # The odd quoting in the next line works around
8807 # an apparent bug in bash 1.12 on linux.
8808 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8810 # From the config-lang.in, get $language, $lang_requires, and
8811 # $lang_requires_boot_languages.
8814 lang_requires_boot_languages
=
8815 # set srcdir during sourcing lang_frag to the gcc dir.
8816 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8817 # polutes this shell
8818 saved_srcdir
=${srcdir}
8819 srcdir
=${srcdir}/gcc .
${lang_frag}
8820 srcdir
=${saved_srcdir}
8821 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8822 case ,${enable_languages}, in
8827 echo " \`$other' language required by \`$language'; enabling" 1>&2
8828 enable_languages
="${enable_languages},${other}"
8832 for other
in ${lang_requires_boot_languages} ; do
8833 if test "$other" != "c"; then
8834 case ,${enable_stage1_languages}, in
8839 case ,${enable_languages}, in
8841 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8842 enable_stage1_languages
="$enable_stage1_languages,${other}"
8853 new_enable_languages
=,c
,
8855 # If LTO is enabled, add the LTO front end.
8856 if test "$enable_lto" = "yes" ; then
8857 case ,${enable_languages}, in
8859 *) enable_languages
="${enable_languages},lto" ;;
8861 if test "${build_lto_plugin}" = "yes" ; then
8862 configdirs
="$configdirs lto-plugin"
8866 # If we're building an offloading compiler, add the LTO front end.
8867 if test x
"$enable_as_accelerator_for" != x
; then
8868 case ,${enable_languages}, in
8870 *) enable_languages
="${enable_languages},lto" ;;
8874 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8875 potential_languages
=,c
,
8877 enabled_target_libs
=
8878 disabled_target_libs
=
8880 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8881 case ${lang_frag} in
8883 # The odd quoting in the next line works around
8884 # an apparent bug in bash 1.12 on linux.
8885 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8887 # From the config-lang.in, get $language, $target_libs,
8888 # $lang_dirs, $boot_language, and $build_by_default
8894 build_by_default
=yes
8895 # set srcdir during sourcing. See above about save & restore
8896 saved_srcdir
=${srcdir}
8897 srcdir
=${srcdir}/gcc .
${lang_frag}
8898 srcdir
=${saved_srcdir}
8899 if test x
${language} = x
; then
8900 echo "${lang_frag} doesn't set \$language." 1>&2
8904 if test "$language" = "c++"; then
8909 # C is always enabled, so no need to add it again
8910 if test "$language" != "c"; then
8911 case ,${enable_languages}, in
8913 # Language was explicitly selected; include it
8917 # All languages are enabled
8921 # 'default' was selected, select it if it is a default language
8922 add_this_lang
=${build_by_default}
8927 # Disable languages that need other directories if these aren't available.
8928 for i
in $subdir_requires; do
8929 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8930 case ${add_this_lang} in
8932 # Specifically requested language; tell them.
8933 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8937 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8938 add_this_lang
=unsupported
8942 add_this_lang
=unsupported
8947 # Disable Ada if no preexisting GNAT is available.
8948 case ${add_this_lang}:${language}:${have_gnat} in
8950 # Specifically requested language; tell them.
8951 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8955 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8956 add_this_lang
=unsupported
8960 add_this_lang
=unsupported
8964 # Disable D if no preexisting GDC is available.
8965 case ${add_this_lang}:${language}:${have_gdc} in
8967 # Specifically requested language; tell them.
8968 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
8971 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8972 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8973 add_this_lang
=unsupported
8977 add_this_lang
=unsupported
8981 # Disable jit if -enable-host-shared not specified
8982 # but not if building for Mingw. All code in Windows
8983 # is position independent code (PIC).
8987 case ${add_this_lang}:${language}:${host_shared} in
8989 # PR jit/64780: explicitly specify --enable-host-shared
8991 Enabling language \"jit\" requires --enable-host-shared.
8993 --enable-host-shared typically slows the rest of the compiler down by
8994 a few %, so you must explicitly enable it.
8996 If you want to build both the jit and the regular compiler, it is often
8997 best to do this via two separate configure/builds, in separate
8998 directories, to avoid imposing the performance cost of
8999 --enable-host-shared on the regular compiler." "$LINENO" 5
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9003 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9004 add_this_lang
=unsupported
9008 add_this_lang
=unsupported
9014 # Disable a language that is unsupported by the target.
9015 case "${add_this_lang}: $unsupported_languages " in
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9020 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9021 add_this_lang
=unsupported
9025 case $add_this_lang in
9027 # Remove language-dependent dirs.
9028 disabled_target_libs
="$disabled_target_libs $target_libs"
9029 noconfigdirs
="$noconfigdirs $lang_dirs"
9032 # Remove language-dependent dirs; still show language as supported.
9033 disabled_target_libs
="$disabled_target_libs $target_libs"
9034 noconfigdirs
="$noconfigdirs $lang_dirs"
9035 potential_languages
="${potential_languages}${language},"
9038 new_enable_languages
="${new_enable_languages}${language},"
9039 potential_languages
="${potential_languages}${language},"
9040 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
9041 enabled_target_libs
="$enabled_target_libs $target_libs"
9042 case "${boot_language}:,$enable_stage1_languages," in
9043 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
9044 # Add to (comma-separated) list of stage 1 languages.
9045 case ",$stage1_languages," in
9046 *,$language,* |
,yes, |
,all
,) ;;
9047 *) stage1_languages
="${stage1_languages}${language}," ;;
9049 # We need to bootstrap any supporting libraries.
9050 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9059 # Add target libraries which are only needed for disabled languages
9061 if test -n "$disabled_target_libs"; then
9062 for dir
in $disabled_target_libs; do
9063 case " $enabled_target_libs " in
9065 *) noconfigdirs
="$noconfigdirs $dir" ;;
9070 # Check whether --enable-stage1-languages was given.
9071 if test "${enable_stage1_languages+set}" = set; then :
9072 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9074 # Set it to something that will have no effect in the loop below
9075 enable_stage1_languages
=c
;;
9077 enable_stage1_languages
=`echo $new_enable_languages | \
9078 sed -e "s/^,//" -e "s/,$//" ` ;;
9080 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
9081 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9084 # Add "good" languages from enable_stage1_languages to stage1_languages,
9085 # while "bad" languages go in missing_languages. Leave no duplicates.
9086 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9087 case $potential_languages in
9089 case $stage1_languages in
9091 *) stage1_languages
="$stage1_languages$i," ;;
9094 case $missing_languages in
9096 *) missing_languages
="$missing_languages$i," ;;
9103 # Remove leading/trailing commas that were added for simplicity
9104 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9105 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9106 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9107 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9109 if test "x$missing_languages" != x
; then
9111 The following requested languages could not be built: ${missing_languages}
9112 Supported languages are: ${potential_languages}" "$LINENO" 5
9114 if test "x$new_enable_languages" != "x$enable_languages"; then
9115 echo The following languages will be built
: ${new_enable_languages}
9116 enable_languages
="$new_enable_languages"
9120 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9123 # Handle --disable-<component> generically.
9124 for dir
in $configdirs $build_configdirs $target_configdirs ; do
9125 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9126 varname
=`echo $dirname | sed -e s/+/_/g`
9127 if eval test x\
${enable_${varname}} "=" xno
; then
9128 noconfigdirs
="$noconfigdirs $dir"
9132 # Check for Boehm's garbage collector
9133 # Check whether --enable-objc-gc was given.
9134 if test "${enable_objc_gc+set}" = set; then :
9135 enableval
=$enable_objc_gc;
9139 # Check whether --with-target-bdw-gc was given.
9140 if test "${with_target_bdw_gc+set}" = set; then :
9141 withval
=$with_target_bdw_gc;
9145 # Check whether --with-target-bdw-gc-include was given.
9146 if test "${with_target_bdw_gc_include+set}" = set; then :
9147 withval
=$with_target_bdw_gc_include;
9151 # Check whether --with-target-bdw-gc-lib was given.
9152 if test "${with_target_bdw_gc_lib+set}" = set; then :
9153 withval
=$with_target_bdw_gc_lib;
9157 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9159 $as_echo_n "checking for bdw garbage collector... " >&6; }
9160 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9162 $as_echo "using bdw-gc in default locations" >&6; }
9164 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9165 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9166 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9167 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9170 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9175 # Disable libitm, libsanitizer, libvtv if we're not building C++
9176 case ,${enable_languages}, in
9178 # Disable libitm, libsanitizer if we're not building libstdc++
9179 case "${noconfigdirs}" in
9180 *target-libstdc
++-v3*)
9181 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9187 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9191 # If gcc/ is not in the source tree then we'll not be building a
9192 # target compiler, assume in that case we don't want to build any
9193 # target libraries or tools.
9195 # This was added primarily for the benefit for binutils-gdb who reuse
9196 # this configure script, but don't always have target tools available.
9197 if test ! -d ${srcdir}/gcc
; then
9198 skipdirs
="${skipdirs} ${target_configdirs}"
9201 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9202 # $build_configdirs and $target_configdirs.
9203 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9206 for dir
in .
$skipdirs $noconfigdirs ; do
9207 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9208 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9209 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9210 if test -r $srcdir/$dirname/configure
; then
9211 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9214 notsupp
="$notsupp $dir"
9218 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9219 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9220 if test -r $srcdir/$dirname/configure
; then
9221 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9224 notsupp
="$notsupp $dir"
9228 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9229 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9230 if test -r $srcdir/$dirname/configure
; then
9231 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9234 notsupp
="$notsupp $dir"
9240 # Quietly strip out all directories which aren't configurable in this tree.
9241 # This relies on all configurable subdirectories being autoconfiscated, which
9243 build_configdirs_all
="$build_configdirs"
9245 for i
in ${build_configdirs_all} ; do
9246 j
=`echo $i | sed -e s/build-//g`
9247 if test -f ${srcdir}/$j/configure
; then
9248 build_configdirs
="${build_configdirs} $i"
9252 configdirs_all
="$configdirs"
9254 for i
in ${configdirs_all} ; do
9255 if test -f ${srcdir}/$i/configure
; then
9256 configdirs
="${configdirs} $i"
9260 target_configdirs_all
="$target_configdirs"
9262 for i
in ${target_configdirs_all} ; do
9263 j
=`echo $i | sed -e s/target-//g`
9264 if test -f ${srcdir}/$j/configure
; then
9265 target_configdirs
="${target_configdirs} $i"
9269 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9270 # so we have to add it after the preceding checks.
9271 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9273 case " $configdirs " in
9275 # If we can build libiberty, we can also build libiberty-linker-plugin.
9276 configdirs
="$configdirs libiberty-linker-plugin"
9277 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9278 --with-libiberty=../libiberty-linker-plugin";;
9280 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9284 # Sometimes we have special requirements for the host libiberty.
9285 extra_host_libiberty_configure_flags
=
9286 case " $configdirs " in
9287 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9288 # When these are to be built as shared libraries, the same applies to
9290 extra_host_libiberty_configure_flags
=--enable-shared
9295 # Sometimes we have special requirements for the host zlib.
9296 extra_host_zlib_configure_flags
=
9297 case " $configdirs " in
9299 # When bfd is to be built as a shared library, the same applies to
9301 if test "$enable_shared" = "yes"; then
9302 extra_host_zlib_configure_flags
=--enable-host-shared
9308 # Produce a warning message for the subdirs we can't configure.
9309 # This isn't especially interesting in the Cygnus tree, but in the individual
9310 # FSF releases, it's important to let people know when their machine isn't
9311 # supported by the one or two programs in a package.
9313 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9314 # If $appdirs is non-empty, at least one of those directories must still
9315 # be configured, or we error out. (E.g., if the gas release supports a
9316 # specified target in some subdirs but not the gas subdir, we shouldn't
9317 # pretend that all is well.)
9318 if test -n "$appdirs" ; then
9319 for dir
in $appdirs ; do
9320 if test -r $dir/Makefile.
in ; then
9321 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9325 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9331 if test -n "$appdirs" ; then
9332 echo "*** This configuration is not supported by this package." 1>&2
9336 # Okay, some application will build, or we don't care to check. Still
9337 # notify of subdirs not getting built.
9338 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9339 echo " ${notsupp}" 1>&2
9340 echo " (Any other directories should still work fine.)" 1>&2
9348 # To find our prefix, in gcc_cv_tool_prefix.
9350 # The user is always right.
9351 if test "${PATH_SEPARATOR+set}" != set; then
9352 echo "#! /bin/sh" >conf$$.sh
9353 echo "exit 0" >>conf$$.sh
9355 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9364 get_gcc_base_ver
="cat"
9366 # Check whether --with-gcc-major-version-only was given.
9367 if test "${with_gcc_major_version_only+set}" = set; then :
9368 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9369 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9379 if test "x$exec_prefix" = xNONE
; then
9380 if test "x$prefix" = xNONE
; then
9381 gcc_cv_tool_prefix
=$ac_default_prefix
9383 gcc_cv_tool_prefix
=$prefix
9386 gcc_cv_tool_prefix
=$exec_prefix
9389 # If there is no compiler in the tree, use the PATH only. In any
9390 # case, if there is no compiler in the tree nobody should use
9391 # AS_FOR_TARGET and LD_FOR_TARGET.
9392 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9393 if test x
$with_gcc_major_version_only = xyes
; then
9394 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9396 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9398 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9399 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9400 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9401 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9402 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9403 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9408 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9409 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9417 # Check whether --with-build-sysroot was given.
9418 if test "${with_build_sysroot+set}" = set; then :
9419 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9420 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9423 SYSROOT_CFLAGS_FOR_TARGET
=
9429 # Check whether --with-debug-prefix-map was given.
9430 if test "${with_debug_prefix_map+set}" = set; then :
9431 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9432 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9433 for debug_map
in $withval; do
9434 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9438 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9443 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9444 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9445 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9446 # We want to ensure that TARGET libraries (which we know are built with
9447 # gcc) are built with "-O2 -g", so include those options when setting
9448 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9449 if test "x$CFLAGS_FOR_TARGET" = x
; then
9450 if test "x${is_cross_compiler}" = xyes
; then
9451 CFLAGS_FOR_TARGET
="-g -O2"
9453 CFLAGS_FOR_TARGET
=$CFLAGS
9456 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9459 *" -g "* |
*" -g3 "*) ;;
9460 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9466 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9467 if test "x${is_cross_compiler}" = xyes
; then
9468 CXXFLAGS_FOR_TARGET
="-g -O2"
9470 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9471 case " $CXXFLAGS " in
9473 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9475 case " $CXXFLAGS " in
9476 *" -g "* |
*" -g3 "*) ;;
9477 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9485 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9486 # the named directory are copied to $(tooldir)/sys-include.
9487 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9488 if test x
${is_cross_compiler} = xno
; then
9489 echo 1>&2 '***' --with-headers is only supported when cross compiling
9492 if test x
"${with_headers}" != xyes
; then
9493 x
=${gcc_cv_tool_prefix}
9494 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9498 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9499 # the name directories are copied to $(tooldir)/lib. Multiple directories
9501 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9502 if test x
${is_cross_compiler} = xno
; then
9503 echo 1>&2 '***' --with-libs is only supported when cross compiling
9506 if test x
"${with_libs}" != xyes
; then
9507 # Copy the libraries in reverse order, so that files in the first named
9508 # library override files in subsequent libraries.
9509 x
=${gcc_cv_tool_prefix}
9510 for l
in ${with_libs}; do
9511 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9516 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9518 # This is done by determining whether or not the appropriate directory
9519 # is available, and by checking whether or not specific configurations
9520 # have requested that this magic not happen.
9522 # The command line options always override the explicit settings in
9523 # configure.ac, and the settings in configure.ac override this magic.
9525 # If the default for a toolchain is to use GNU as and ld, and you don't
9526 # want to do that, then you should use the --without-gnu-as and
9527 # --without-gnu-ld options for the configure script. Similarly, if
9528 # the default is to use the included zlib and you don't want to do that,
9529 # you should use the --with-system-zlib option for the configure script.
9531 if test x
${use_gnu_as} = x
&&
9532 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9534 extra_host_args
="$extra_host_args --with-gnu-as"
9537 if test x
${use_gnu_ld} = x
&&
9538 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9540 extra_host_args
="$extra_host_args --with-gnu-ld"
9543 if test x
${use_included_zlib} = x
&&
9544 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9547 with_system_zlib
=yes
9548 extra_host_args
="$extra_host_args --with-system-zlib"
9551 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9552 # can detect this case.
9554 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9556 extra_host_args
="$extra_host_args --with-newlib"
9559 # Handle ${copy_dirs}
9560 set fnord
${copy_dirs}
9562 while test $# != 0 ; do
9563 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9566 echo Copying
$1 to
$2
9568 # Use the install script to create the directory and all required
9569 # parent directories.
9570 if test -d $2 ; then
9574 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9577 # Copy the directory, assuming we have tar.
9578 # FIXME: Should we use B in the second tar? Not all systems support it.
9579 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9581 # It is the responsibility of the user to correctly adjust all
9582 # symlinks. If somebody can figure out how to handle them correctly
9583 # here, feel free to add the code.
9590 # Determine a target-dependent exec_prefix that the installed
9591 # gcc will search in. Keep this list sorted by triplet, with
9592 # the *-*-osname triplets last.
9595 i
[34567]86-pc-msdosdjgpp*)
9596 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9601 md_exec_prefix
=/usr
/ccs
/bin
9605 extra_arflags_for_target
=
9606 extra_nmflags_for_target
=
9607 extra_ranlibflags_for_target
=
9608 target_makefile_frag
=/dev
/null
9611 target_makefile_frag
="config/mt-spu"
9613 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9614 target_makefile_frag
="config/mt-sde"
9616 mipsisa
*-*-elfoabi*)
9617 target_makefile_frag
="config/mt-mips-elfoabi"
9619 mips
*-*-*linux
* | mips
*-*-gnu*)
9620 target_makefile_frag
="config/mt-mips-gnu"
9623 target_makefile_frag
="config/mt-nios2-elf"
9626 target_makefile_frag
="config/mt-android"
9628 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9629 target_makefile_frag
="config/mt-gnu"
9631 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9632 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9633 # commands to handle both 32-bit and 64-bit objects. These flags are
9634 # harmless if we're using GNU nm or ar.
9635 extra_arflags_for_target
=" -X32_64"
9636 extra_nmflags_for_target
=" -B -X32_64"
9640 alphaieee_frag
=/dev
/null
9643 # This just makes sure to use the -mieee option to build target libs.
9644 # This should probably be set individually by each library.
9645 alphaieee_frag
="config/mt-alphaieee"
9649 # If --enable-target-optspace always use -Os instead of -O2 to build
9650 # the target libraries, similarly if it is not specified, use -Os
9651 # on selected platforms.
9652 ospace_frag
=/dev
/null
9653 case "${enable_target_optspace}:${target}" in
9655 ospace_frag
="config/mt-ospace"
9658 ospace_frag
="config/mt-d30v"
9660 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9661 ospace_frag
="config/mt-ospace"
9666 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9670 # Some systems (e.g., one of the i386-aix systems the gas testers are
9671 # using) don't handle "\$" correctly, so don't use it here.
9672 tooldir
='${exec_prefix}'/${target_noncanonical}
9673 build_tooldir
=${tooldir}
9675 # Create a .gdbinit file which runs the one in srcdir
9676 # and tells GDB to look there for source files.
9678 if test -r ${srcdir}/.gdbinit
; then
9681 *) cat > .
/.gdbinit
<<EOF
9685 source ${srcdir}/.gdbinit
9691 # Make sure that the compiler is able to generate an executable. If it
9692 # can't, we are probably in trouble. We don't care whether we can run the
9693 # executable--we might be using a cross compiler--we only care whether it
9694 # can be created. At this point the main configure script has set CC.
9696 echo "int main () { return 0; }" > conftest.c
9697 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9698 if test $?
= 0 ; then
9699 if test -s conftest ||
test -s conftest.exe
; then
9705 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9706 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9713 # Decide which environment variable is used to find dynamic libraries.
9715 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9716 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9717 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9718 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9721 # On systems where the dynamic library environment variable is PATH,
9722 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9723 # built executables to PATH.
9724 if test "$RPATH_ENVVAR" = PATH
; then
9725 GCC_SHLIB_SUBDIR
=/shlib
9730 # Adjust the toplevel makefile according to whether bootstrap was selected.
9731 case $enable_bootstrap in
9733 bootstrap_suffix
=bootstrap
9734 BUILD_CONFIG
=bootstrap-debug
9737 bootstrap_suffix
=no-bootstrap
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9743 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9746 # Check whether --with-build-config was given.
9747 if test "${with_build_config+set}" = set; then :
9748 withval
=$with_build_config; case $with_build_config in
9749 yes) with_build_config
= ;;
9750 no
) with_build_config
= BUILD_CONFIG
= ;;
9755 if test "x${with_build_config}" != x
; then
9756 BUILD_CONFIG
=$with_build_config
9758 case $BUILD_CONFIG in
9760 if echo "int f (void) { return 0; }" > conftest.c
&&
9761 ${CC} -c conftest.c
&&
9762 mv conftest.o conftest.o.g0
&&
9763 ${CC} -c -g conftest.c
&&
9764 mv conftest.o conftest.o.g
&&
9765 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9770 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9775 $as_echo "$BUILD_CONFIG" >&6; }
9778 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9780 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9781 # Check whether --enable-vtable-verify was given.
9782 if test "${enable_vtable_verify+set}" = set; then :
9783 enableval
=$enable_vtable_verify; case "$enableval" in
9784 yes) enable_vtable_verify
=yes ;;
9785 no
) enable_vtable_verify
=no
;;
9786 *) enable_vtable_verify
=no
;;
9789 enable_vtable_verify
=no
9792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9793 $as_echo "$enable_vtable_verify" >&6; }
9795 # Record target_configdirs and the configure arguments for target and
9796 # build configuration in Makefile.
9797 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9798 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9799 bootstrap_fixincludes
=no
9801 # If we are building libgomp, bootstrap it.
9802 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9803 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9806 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9807 # or bootstrap-ubsan, bootstrap it.
9808 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9809 case "$BUILD_CONFIG" in
9810 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9811 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9812 bootstrap_fixincludes
=yes
9817 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9818 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9819 test "$enable_vtable_verify" != no
; then
9820 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9823 # If we are building libatomic and the list of enabled languages includes the
9824 # D frontend, bootstrap it.
9825 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9826 case ,${enable_languages}, in
9828 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
9833 # Determine whether gdb needs tk/tcl or not.
9834 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9835 # and in that case we want gdb to be built without tk. Ugh!
9836 # In fact I believe gdb is the *only* package directly dependent on tk,
9837 # so we should be able to put the 'maybe's in unconditionally and
9838 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9839 # 100% sure that that's safe though.
9841 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9842 case "$enable_gdbtk" in
9846 GDB_TK
="${gdb_tk}" ;;
9848 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9849 # distro. Eventually someone will fix this and move Insight, nee
9850 # gdbtk to a separate directory.
9851 if test -d ${srcdir}/gdb
/gdbtk
; then
9858 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9859 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9861 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9862 # else does, only include them if one of these is built. The Makefile
9863 # provides the ordering, so it's enough here to add to the list.
9864 case " ${configdirs} " in
9866 configdirs
="${configdirs} gnulib gdbsupport"
9869 configdirs
="${configdirs} gnulib gdbsupport"
9872 configdirs
="${configdirs} gnulib"
9876 # Strip out unwanted targets.
9878 # While at that, we remove Makefiles if we were started for recursive
9879 # configuration, so that the top-level Makefile reconfigures them,
9880 # like we used to do when configure itself was recursive.
9882 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9883 # but now we're fixing up the Makefile ourselves with the additional
9884 # commands passed to AC_CONFIG_FILES. Use separate variables
9885 # extrasub-{build,host,target} not because there is any reason to split
9886 # the substitutions up that way, but only to remain below the limit of
9887 # 99 commands in a script, for HP-UX sed.
9889 # Do not nest @if/@endif or @unless/@endunless pairs, because
9890 # configure will not warn you at all.
9892 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9893 yes:yes:*\ gold\
*:*,c
++,*) ;;
9894 yes:yes:*\ gold\
*:*)
9895 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9900 for module
in ${build_configdirs} ; do
9901 if test -z "${no_recursion}" \
9902 && test -f ${build_subdir}/${module}/Makefile
; then
9903 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9904 rm -f ${build_subdir}/${module}/Makefile
9906 extrasub_build
="$extrasub_build
9907 /^@if build-$module\$/d
9908 /^@endif build-$module\$/d
9909 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9910 /^@if build-$module-$bootstrap_suffix\$/d
9911 /^@endif build-$module-$bootstrap_suffix\$/d
9912 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9915 for module
in ${configdirs} ; do
9916 if test -z "${no_recursion}"; then
9917 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9918 if test -f ${file}; then
9919 echo 1>&2 "*** removing ${file} to force reconfigure"
9924 case ${module},${bootstrap_fixincludes} in
9925 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9926 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9928 extrasub_host
="$extrasub_host
9930 /^@endif $module\$/d
9931 /^@unless $module\$/,/^@endunless $module\$/d
9932 /^@if $module-$host_bootstrap_suffix\$/d
9933 /^@endif $module-$host_bootstrap_suffix\$/d
9934 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9937 for module
in ${target_configdirs} ; do
9938 if test -z "${no_recursion}" \
9939 && test -f ${target_subdir}/${module}/Makefile
; then
9940 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9941 rm -f ${target_subdir}/${module}/Makefile
9944 # We only bootstrap target libraries listed in bootstrap_target_libs.
9945 case $bootstrap_target_libs in
9946 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9947 *) target_bootstrap_suffix
=no-bootstrap
;;
9950 extrasub_target
="$extrasub_target
9951 /^@if target-$module\$/d
9952 /^@endif target-$module\$/d
9953 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9954 /^@if target-$module-$target_bootstrap_suffix\$/d
9955 /^@endif target-$module-$target_bootstrap_suffix\$/d
9956 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9959 # Do the final fixup along with target modules.
9960 extrasub_target
="$extrasub_target
9965 if test "$enable_pgo_build" != "no"; then
9966 extrasub_build
="$extrasub_build
9968 /^@endif pgo-build\$/d"
9971 # Create the serialization dependencies. This uses a temporary file.
9973 # Check whether --enable-serial-configure was given.
9974 if test "${enable_serial_configure+set}" = set; then :
9975 enableval
=$enable_serial_configure;
9979 case ${enable_serial_configure} in
9981 enable_serial_build_configure
=yes
9982 enable_serial_host_configure
=yes
9983 enable_serial_target_configure
=yes
9987 # These force 'configure's to be done one at a time, to avoid problems
9988 # with contention over a shared config.cache.
9990 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes
; then
9991 echo '# serdep.tmp' > serdep.tmp
9994 test "x${enable_serial_build_configure}" = xyes
&&
9995 for item
in ${build_configdirs} ; do
9998 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
10003 test "x${enable_serial_host_configure}" = xyes
&&
10004 for item
in ${configdirs} ; do
10007 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
10012 test "x${enable_serial_target_configure}" = xyes
&&
10013 for item
in ${target_configdirs} ; do
10016 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
10020 serialization_dependencies
=serdep.tmp
10023 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10024 # target, nonopt, and variable assignments. These are the ones we
10025 # might not want to pass down to subconfigures. The exception being
10026 # --cache-file=/dev/null, which is used to turn off the use of cache
10027 # files altogether, and which should be passed on to subconfigures.
10028 # Also strip program-prefix, program-suffix, and program-transform-name,
10029 # so that we can pass down a consistent program-transform-name.
10034 eval "set -- $ac_configure_args"
10037 if test X
"$skip_next" = X
"yes"; then
10041 if test X
"$keep_next" = X
"yes"; then
10044 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10046 baseargs
="$baseargs '$ac_arg'"
10047 tbaseargs
="$tbaseargs '$ac_arg'"
10052 # Handle separated arguments. Based on the logic generated by
10055 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
10056 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
10057 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
10058 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
10072 --with-* |
--without-*)
10073 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10077 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
10080 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
10089 mpc | mpfr | gmp | isl
)
10090 # If we're processing --with-$lib, --with-$lib-include or
10091 # --with-$lib-lib, for one of the libs above, and target is
10092 # different from host, don't pass the current argument to any
10093 # target library's configure.
10094 if test x
$is_cross_compiler = xyes
; then
10103 --cache-file=/dev
/null | \
10104 -cache-file=/dev
/null
)
10105 # Handled here to avoid the test to skip args below.
10106 baseargs
="$baseargs '$ac_arg'"
10107 tbaseargs
="$tbaseargs '$ac_arg'"
10108 # Assert: $separate_arg should always be no.
10109 keep_next
=$separate_arg
10125 -program-prefix* | \
10126 -program-suffix* | \
10127 -program-transform-name* )
10128 skip_next
=$separate_arg
10132 # An option. Add it.
10135 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10137 baseargs
="$baseargs '$ac_arg'"
10138 if test X
"$skip_targ" = Xno
; then
10139 tbaseargs
="$tbaseargs '$ac_arg'"
10141 keep_next
=$separate_arg
10144 # Either a variable assignment, or a nonopt (triplet). Don't
10145 # pass it down; let the Makefile handle this.
10150 # Remove the initial space we just introduced and, as these will be
10151 # expanded by make, quote '$'.
10152 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10154 # Add in --program-transform-name, after --program-prefix and
10155 # --program-suffix have been applied to it. Autoconf has already
10156 # doubled dollar signs and backslashes in program_transform_name; we want
10157 # the backslashes un-doubled, and then the entire thing wrapped in single
10158 # quotes, because this will be expanded first by make and then by the shell.
10159 # Also, because we want to override the logic in subdir configure scripts to
10160 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10161 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10162 ${program_transform_name}
10164 gcc_transform_name
=`cat conftestsed.out`
10165 rm -f conftestsed.out
10166 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
10167 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10168 if test "$silent" = yes; then
10169 baseargs
="$baseargs --silent"
10170 tbaseargs
="$tbaseargs --silent"
10172 baseargs
="$baseargs --disable-option-checking"
10173 tbaseargs
="$tbaseargs --disable-option-checking"
10175 # Record and document user additions to sub configure arguments.
10180 # For the build-side libraries, we just need to pretend we're native,
10181 # and not use the same cache file. Multilibs are neither needed nor
10182 # desired. We can't even use the same cache file for all build-side
10183 # libraries, as they're compiled differently; some with C, some with
10184 # C++ or with different feature-enabling options.
10185 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
10187 # For host modules, accept cache file option, or specification as blank.
10188 case "${cache_file}" in
10190 cache_file_option
="" ;;
10191 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10192 cache_file_option
="--cache-file=${cache_file}" ;;
10194 cache_file_option
="--cache-file=../${cache_file}" ;;
10197 # Host dirs don't like to share a cache file either, horribly enough.
10198 # This seems to be due to autoconf 2.5x stupidity.
10199 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10201 target_configargs
="$target_configargs ${tbaseargs}"
10203 # Passing a --with-cross-host argument lets the target libraries know
10204 # whether they are being built with a cross-compiler or being built
10205 # native. However, it would be better to use other mechanisms to make the
10206 # sorts of decisions they want to make on this basis. Please consider
10207 # this option to be deprecated. FIXME.
10208 if test x
${is_cross_compiler} = xyes
; then
10209 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10212 # Special user-friendly check for native x86_64-linux build, if
10213 # multilib is not explicitly enabled.
10214 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10215 x86_64-
*linux
*:yes:$build:$build:)
10216 # Make sure we have a development environment that handles 32-bit
10218 echo "int main () { return 0; }" > conftest.c
10219 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10220 if test $?
= 0 ; then
10221 if test -s conftest ||
test -s conftest.exe
; then
10226 if test x
${dev64} != xyes
; then
10227 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
10232 # Default to --enable-multilib.
10233 if test x
${enable_multilib} = x
; then
10234 target_configargs
="--enable-multilib ${target_configargs}"
10237 # Pass --with-newlib if appropriate. Note that target_configdirs has
10238 # changed from the earlier setting of with_newlib.
10239 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10240 target_configargs
="--with-newlib ${target_configargs}"
10243 # Different target subdirs use different values of certain variables
10244 # (notably CXX). Worse, multilibs use *lots* of different values.
10245 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10246 # it doesn't automatically accept command-line overrides of them.
10247 # This means it's not safe for target subdirs to share a cache file,
10248 # which is disgusting, but there you have it. Hopefully this can be
10249 # fixed in future. It's still worthwhile to use a cache file for each
10250 # directory. I think.
10252 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10253 # We need to pass --target, as newer autoconf's requires consistency
10254 # for target_alias and gcc doesn't manage it consistently.
10255 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10258 case " $target_configdirs " in
10260 case " $target_configargs " in
10261 *" --with-newlib "*)
10264 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10268 # If we're not building GCC, don't discard standard headers.
10269 if test -d ${srcdir}/gcc
; then
10270 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10272 if test "${build}" != "${host}"; then
10273 # On Canadian crosses, CC_FOR_TARGET will have already been set
10274 # by `configure', so we won't have an opportunity to add -Bgcc/
10275 # to it. This is right: we don't want to search that directory
10276 # for binaries, but we want the header files in there, so add
10278 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10280 # Someone might think of using the pre-installed headers on
10281 # Canadian crosses, in case the installed compiler is not fully
10282 # compatible with the compiler being built. In this case, it
10283 # would be better to flag an error than risking having
10284 # incompatible object files being constructed. We can't
10285 # guarantee that an error will be flagged, but let's hope the
10286 # compiler will do it, when presented with incompatible header
10291 case "${target}-${is_cross_compiler}" in
10292 i
[3456789]86-*-linux*-no)
10293 # Here host == target, so we don't need to build gcc,
10294 # so we don't want to discard standard headers.
10295 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10298 # If we're building newlib, use its generic headers last, but search
10299 # for any libc-related directories first (so make it the last -B
10301 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10303 # If we're building libgloss, find the startup file, simulator library
10304 # and linker script.
10305 case " $target_configdirs " in
10307 # Look for startup file, simulator library and maybe linker script.
10308 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10309 # Look for libnosys.a in case the target needs it.
10310 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10311 # Most targets have the linker script in the source directory.
10312 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10323 x86_64-
*mingw
* |
*-w64-mingw*)
10324 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10325 # however, use a symlink named 'mingw' in ${prefix} .
10326 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10329 # MinGW can't be handled as Cygwin above since it does not use newlib.
10330 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'
10334 # Allow the user to override the flags for
10335 # our build compiler if desired.
10336 if test x
"${build}" = x
"${host}" ; then
10337 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10338 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10339 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10340 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10343 # On Canadian crosses, we'll be searching the right directories for
10344 # the previously-installed cross compiler, so don't bother to add
10345 # flags for directories within the install tree of the compiler
10346 # being built; programs in there won't even run.
10347 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10348 # Search for pre-installed headers if nothing else fits.
10349 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10352 if test "x
${use_gnu_ld}" = x &&
10353 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10354 # Arrange for us to find uninstalled linker scripts.
10355 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10358 # Search for other target-specific linker scripts and such.
10359 case "${target}" in
10361 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10363 # The VxWorks support for shared libraries is getting in
10364 # incrementally. Make sure it doesn't get activated implicitly:
10366 if test "${enable_shared-unset}" = unset ; then
10368 # So the build of libraries knows ...
10369 target_configargs="${target_configargs} --disable-shared"
10371 host_configargs="${host_configargs} --disable-shared"
10376 # Makefile fragments.
10377 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10379 eval fragval=\$$frag
10380 if test $fragval != /dev/null; then
10381 eval $frag=${srcdir}/$fragval
10389 # Miscellanea: directories, flags, etc.
10398 # Build module lists & subconfigure args.
10402 # Host module lists & subconfigure args.
10407 # Target module lists & subconfigure args.
10432 # Generate default definitions for YACC, M4, LEX and other programs that run
10433 # on the build machine. These are used if the Makefile can't locate these
10434 # programs in objdir.
10435 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10437 for ac_prog in 'bison -y' byacc yacc
10439 # Extract the first word of "$ac_prog", so it can be a program name with args.
10440 set dummy $ac_prog; ac_word=$2
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10442 $as_echo_n "checking
for $ac_word...
" >&6; }
10443 if ${ac_cv_prog_YACC+:} false; then :
10444 $as_echo_n "(cached
) " >&6
10446 if test -n "$YACC"; then
10447 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10450 for as_dir in $PATH
10453 test -z "$as_dir" && as_dir=.
10454 for ac_exec_ext in '' $ac_executable_extensions; do
10455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10456 ac_cv_prog_YACC="$ac_prog"
10457 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10466 YACC=$ac_cv_prog_YACC
10467 if test -n "$YACC"; then
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10469 $as_echo "$YACC" >&6; }
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10472 $as_echo "no
" >&6; }
10476 test -n "$YACC" && break
10478 test -n "$YACC" || YACC="$MISSING bison
-y"
10480 case " $build_configdirs " in
10481 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10484 for ac_prog in bison
10486 # Extract the first word of "$ac_prog", so it can be a program name with args.
10487 set dummy $ac_prog; ac_word=$2
10488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10489 $as_echo_n "checking
for $ac_word...
" >&6; }
10490 if ${ac_cv_prog_BISON+:} false; then :
10491 $as_echo_n "(cached
) " >&6
10493 if test -n "$BISON"; then
10494 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10497 for as_dir in $PATH
10500 test -z "$as_dir" && as_dir=.
10501 for ac_exec_ext in '' $ac_executable_extensions; do
10502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10503 ac_cv_prog_BISON="$ac_prog"
10504 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10513 BISON=$ac_cv_prog_BISON
10514 if test -n "$BISON"; then
10515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10516 $as_echo "$BISON" >&6; }
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10519 $as_echo "no
" >&6; }
10523 test -n "$BISON" && break
10525 test -n "$BISON" || BISON="$MISSING bison
"
10527 case " $build_configdirs " in
10528 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10531 for ac_prog in gm4 gnum4 m4
10533 # Extract the first word of "$ac_prog", so it can be a program name with args.
10534 set dummy $ac_prog; ac_word=$2
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10536 $as_echo_n "checking
for $ac_word...
" >&6; }
10537 if ${ac_cv_prog_M4+:} false; then :
10538 $as_echo_n "(cached
) " >&6
10540 if test -n "$M4"; then
10541 ac_cv_prog_M4="$M4" # Let the user override the test.
10543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10544 for as_dir in $PATH
10547 test -z "$as_dir" && as_dir=.
10548 for ac_exec_ext in '' $ac_executable_extensions; do
10549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10550 ac_cv_prog_M4="$ac_prog"
10551 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10561 if test -n "$M4"; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10563 $as_echo "$M4" >&6; }
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10566 $as_echo "no
" >&6; }
10570 test -n "$M4" && break
10572 test -n "$M4" || M4="$MISSING m4"
10574 case " $build_configdirs " in
10575 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10578 for ac_prog in flex lex
10580 # Extract the first word of "$ac_prog", so it can be a program name with args.
10581 set dummy $ac_prog; ac_word=$2
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10583 $as_echo_n "checking
for $ac_word...
" >&6; }
10584 if ${ac_cv_prog_LEX+:} false; then :
10585 $as_echo_n "(cached
) " >&6
10587 if test -n "$LEX"; then
10588 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591 for as_dir in $PATH
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10597 ac_cv_prog_LEX="$ac_prog"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10607 LEX=$ac_cv_prog_LEX
10608 if test -n "$LEX"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10610 $as_echo "$LEX" >&6; }
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10613 $as_echo "no
" >&6; }
10617 test -n "$LEX" && break
10619 test -n "$LEX" || LEX="$MISSING flex
"
10621 case " $build_configdirs " in
10622 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10623 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10626 for ac_prog in flex
10628 # Extract the first word of "$ac_prog", so it can be a program name with args.
10629 set dummy $ac_prog; ac_word=$2
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10631 $as_echo_n "checking
for $ac_word...
" >&6; }
10632 if ${ac_cv_prog_FLEX+:} false; then :
10633 $as_echo_n "(cached
) " >&6
10635 if test -n "$FLEX"; then
10636 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639 for as_dir in $PATH
10642 test -z "$as_dir" && as_dir=.
10643 for ac_exec_ext in '' $ac_executable_extensions; do
10644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10645 ac_cv_prog_FLEX="$ac_prog"
10646 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10655 FLEX=$ac_cv_prog_FLEX
10656 if test -n "$FLEX"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10658 $as_echo "$FLEX" >&6; }
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10661 $as_echo "no
" >&6; }
10665 test -n "$FLEX" && break
10667 test -n "$FLEX" || FLEX="$MISSING flex
"
10669 case " $build_configdirs " in
10670 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10673 for ac_prog in makeinfo
10675 # Extract the first word of "$ac_prog", so it can be a program name with args.
10676 set dummy $ac_prog; ac_word=$2
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10678 $as_echo_n "checking
for $ac_word...
" >&6; }
10679 if ${ac_cv_prog_MAKEINFO+:} false; then :
10680 $as_echo_n "(cached
) " >&6
10682 if test -n "$MAKEINFO"; then
10683 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10686 for as_dir in $PATH
10689 test -z "$as_dir" && as_dir=.
10690 for ac_exec_ext in '' $ac_executable_extensions; do
10691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10692 ac_cv_prog_MAKEINFO="$ac_prog"
10693 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10702 MAKEINFO=$ac_cv_prog_MAKEINFO
10703 if test -n "$MAKEINFO"; then
10704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10705 $as_echo "$MAKEINFO" >&6; }
10707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10708 $as_echo "no
" >&6; }
10712 test -n "$MAKEINFO" && break
10714 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10716 case " $build_configdirs " in
10717 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10720 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10721 # higher, else we use the "missing
" dummy.
10722 if ${MAKEINFO} --version \
10723 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10726 MAKEINFO="$MISSING makeinfo
"
10732 # FIXME: expect and dejagnu may become build tools?
10734 for ac_prog in expect
10736 # Extract the first word of "$ac_prog", so it can be a program name with args.
10737 set dummy $ac_prog; ac_word=$2
10738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10739 $as_echo_n "checking
for $ac_word...
" >&6; }
10740 if ${ac_cv_prog_EXPECT+:} false; then :
10741 $as_echo_n "(cached
) " >&6
10743 if test -n "$EXPECT"; then
10744 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10746 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10747 for as_dir in $PATH
10750 test -z "$as_dir" && as_dir=.
10751 for ac_exec_ext in '' $ac_executable_extensions; do
10752 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10753 ac_cv_prog_EXPECT="$ac_prog"
10754 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10763 EXPECT=$ac_cv_prog_EXPECT
10764 if test -n "$EXPECT"; then
10765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10766 $as_echo "$EXPECT" >&6; }
10768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10769 $as_echo "no
" >&6; }
10773 test -n "$EXPECT" && break
10775 test -n "$EXPECT" || EXPECT="expect
"
10777 case " $configdirs " in
10779 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10783 for ac_prog in runtest
10785 # Extract the first word of "$ac_prog", so it can be a program name with args.
10786 set dummy $ac_prog; ac_word=$2
10787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10788 $as_echo_n "checking
for $ac_word...
" >&6; }
10789 if ${ac_cv_prog_RUNTEST+:} false; then :
10790 $as_echo_n "(cached
) " >&6
10792 if test -n "$RUNTEST"; then
10793 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10796 for as_dir in $PATH
10799 test -z "$as_dir" && as_dir=.
10800 for ac_exec_ext in '' $ac_executable_extensions; do
10801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10802 ac_cv_prog_RUNTEST="$ac_prog"
10803 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10812 RUNTEST=$ac_cv_prog_RUNTEST
10813 if test -n "$RUNTEST"; then
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10815 $as_echo "$RUNTEST" >&6; }
10817 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10818 $as_echo "no
" >&6; }
10822 test -n "$RUNTEST" && break
10824 test -n "$RUNTEST" || RUNTEST="runtest
"
10826 case " $configdirs " in
10828 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10835 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10836 ncn_target_tool_prefix=
10837 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10841 if test -n "$AR"; then
10843 elif test -n "$ac_cv_prog_AR"; then
10847 if test -n "$ac_cv_prog_AR"; then
10848 for ncn_progname in ar; do
10849 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10850 set dummy ${ncn_progname}; ac_word=$2
10851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10852 $as_echo_n "checking
for $ac_word...
" >&6; }
10853 if ${ac_cv_prog_AR+:} false; then :
10854 $as_echo_n "(cached
) " >&6
10856 if test -n "$AR"; then
10857 ac_cv_prog_AR="$AR" # Let the user override the test.
10859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10860 for as_dir in $PATH
10863 test -z "$as_dir" && as_dir=.
10864 for ac_exec_ext in '' $ac_executable_extensions; do
10865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10866 ac_cv_prog_AR="${ncn_progname}"
10867 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10877 if test -n "$AR"; then
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10879 $as_echo "$AR" >&6; }
10881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10882 $as_echo "no
" >&6; }
10889 for ncn_progname in ar; do
10890 if test -n "$ncn_tool_prefix"; then
10891 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10892 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10894 $as_echo_n "checking
for $ac_word...
" >&6; }
10895 if ${ac_cv_prog_AR+:} false; then :
10896 $as_echo_n "(cached
) " >&6
10898 if test -n "$AR"; then
10899 ac_cv_prog_AR="$AR" # Let the user override the test.
10901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10902 for as_dir in $PATH
10905 test -z "$as_dir" && as_dir=.
10906 for ac_exec_ext in '' $ac_executable_extensions; do
10907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10908 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10909 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10919 if test -n "$AR"; then
10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10921 $as_echo "$AR" >&6; }
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10924 $as_echo "no
" >&6; }
10929 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10931 set dummy ${ncn_progname}; ac_word=$2
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10933 $as_echo_n "checking
for $ac_word...
" >&6; }
10934 if ${ac_cv_prog_AR+:} false; then :
10935 $as_echo_n "(cached
) " >&6
10937 if test -n "$AR"; then
10938 ac_cv_prog_AR="$AR" # Let the user override the test.
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10947 ac_cv_prog_AR="${ncn_progname}"
10948 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10958 if test -n "$AR"; then
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10960 $as_echo "$AR" >&6; }
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10963 $as_echo "no
" >&6; }
10968 test -n "$ac_cv_prog_AR" && break
10971 if test -z "$ac_cv_prog_AR" ; then
10973 if test $build = $host ; then
10976 AR="${ncn_tool_prefix}$2"
10982 if test -n "$AS"; then
10984 elif test -n "$ac_cv_prog_AS"; then
10988 if test -n "$ac_cv_prog_AS"; then
10989 for ncn_progname in as; do
10990 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10991 set dummy ${ncn_progname}; ac_word=$2
10992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10993 $as_echo_n "checking
for $ac_word...
" >&6; }
10994 if ${ac_cv_prog_AS+:} false; then :
10995 $as_echo_n "(cached
) " >&6
10997 if test -n "$AS"; then
10998 ac_cv_prog_AS="$AS" # Let the user override the test.
11000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11001 for as_dir in $PATH
11004 test -z "$as_dir" && as_dir=.
11005 for ac_exec_ext in '' $ac_executable_extensions; do
11006 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11007 ac_cv_prog_AS="${ncn_progname}"
11008 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11018 if test -n "$AS"; then
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11020 $as_echo "$AS" >&6; }
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11023 $as_echo "no
" >&6; }
11030 for ncn_progname in as; do
11031 if test -n "$ncn_tool_prefix"; then
11032 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11033 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11035 $as_echo_n "checking
for $ac_word...
" >&6; }
11036 if ${ac_cv_prog_AS+:} false; then :
11037 $as_echo_n "(cached
) " >&6
11039 if test -n "$AS"; then
11040 ac_cv_prog_AS="$AS" # Let the user override the test.
11042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11043 for as_dir in $PATH
11046 test -z "$as_dir" && as_dir=.
11047 for ac_exec_ext in '' $ac_executable_extensions; do
11048 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11049 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11050 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11060 if test -n "$AS"; then
11061 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11062 $as_echo "$AS" >&6; }
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11065 $as_echo "no
" >&6; }
11070 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11072 set dummy ${ncn_progname}; ac_word=$2
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11074 $as_echo_n "checking
for $ac_word...
" >&6; }
11075 if ${ac_cv_prog_AS+:} false; then :
11076 $as_echo_n "(cached
) " >&6
11078 if test -n "$AS"; then
11079 ac_cv_prog_AS="$AS" # Let the user override the test.
11081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082 for as_dir in $PATH
11085 test -z "$as_dir" && as_dir=.
11086 for ac_exec_ext in '' $ac_executable_extensions; do
11087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11088 ac_cv_prog_AS="${ncn_progname}"
11089 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11099 if test -n "$AS"; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11101 $as_echo "$AS" >&6; }
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11104 $as_echo "no
" >&6; }
11109 test -n "$ac_cv_prog_AS" && break
11112 if test -z "$ac_cv_prog_AS" ; then
11114 if test $build = $host ; then
11117 AS="${ncn_tool_prefix}$2"
11123 if test -n "$DLLTOOL"; then
11124 ac_cv_prog_DLLTOOL=$DLLTOOL
11125 elif test -n "$ac_cv_prog_DLLTOOL"; then
11126 DLLTOOL=$ac_cv_prog_DLLTOOL
11129 if test -n "$ac_cv_prog_DLLTOOL"; then
11130 for ncn_progname in dlltool; do
11131 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11132 set dummy ${ncn_progname}; ac_word=$2
11133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11134 $as_echo_n "checking
for $ac_word...
" >&6; }
11135 if ${ac_cv_prog_DLLTOOL+:} false; then :
11136 $as_echo_n "(cached
) " >&6
11138 if test -n "$DLLTOOL"; then
11139 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11142 for as_dir in $PATH
11145 test -z "$as_dir" && as_dir=.
11146 for ac_exec_ext in '' $ac_executable_extensions; do
11147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11148 ac_cv_prog_DLLTOOL="${ncn_progname}"
11149 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11158 DLLTOOL=$ac_cv_prog_DLLTOOL
11159 if test -n "$DLLTOOL"; then
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11161 $as_echo "$DLLTOOL" >&6; }
11163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11164 $as_echo "no
" >&6; }
11171 for ncn_progname in dlltool; do
11172 if test -n "$ncn_tool_prefix"; then
11173 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11174 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11176 $as_echo_n "checking
for $ac_word...
" >&6; }
11177 if ${ac_cv_prog_DLLTOOL+:} false; then :
11178 $as_echo_n "(cached
) " >&6
11180 if test -n "$DLLTOOL"; then
11181 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11184 for as_dir in $PATH
11187 test -z "$as_dir" && as_dir=.
11188 for ac_exec_ext in '' $ac_executable_extensions; do
11189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11190 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11191 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11200 DLLTOOL=$ac_cv_prog_DLLTOOL
11201 if test -n "$DLLTOOL"; then
11202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11203 $as_echo "$DLLTOOL" >&6; }
11205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11206 $as_echo "no
" >&6; }
11211 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11212 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11213 set dummy ${ncn_progname}; ac_word=$2
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11215 $as_echo_n "checking
for $ac_word...
" >&6; }
11216 if ${ac_cv_prog_DLLTOOL+:} false; then :
11217 $as_echo_n "(cached
) " >&6
11219 if test -n "$DLLTOOL"; then
11220 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223 for as_dir in $PATH
11226 test -z "$as_dir" && as_dir=.
11227 for ac_exec_ext in '' $ac_executable_extensions; do
11228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11229 ac_cv_prog_DLLTOOL="${ncn_progname}"
11230 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11239 DLLTOOL=$ac_cv_prog_DLLTOOL
11240 if test -n "$DLLTOOL"; then
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11242 $as_echo "$DLLTOOL" >&6; }
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11245 $as_echo "no
" >&6; }
11250 test -n "$ac_cv_prog_DLLTOOL" && break
11253 if test -z "$ac_cv_prog_DLLTOOL" ; then
11255 if test $build = $host ; then
11258 DLLTOOL="${ncn_tool_prefix}$2"
11264 if test -n "$DSYMUTIL"; then
11265 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11266 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11267 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11270 if test -n "$ac_cv_prog_DSYMUTIL"; then
11271 for ncn_progname in dsymutil; do
11272 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11273 set dummy ${ncn_progname}; ac_word=$2
11274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11275 $as_echo_n "checking
for $ac_word...
" >&6; }
11276 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11277 $as_echo_n "(cached
) " >&6
11279 if test -n "$DSYMUTIL"; then
11280 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11283 for as_dir in $PATH
11286 test -z "$as_dir" && as_dir=.
11287 for ac_exec_ext in '' $ac_executable_extensions; do
11288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11289 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11290 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11299 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11300 if test -n "$DSYMUTIL"; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11302 $as_echo "$DSYMUTIL" >&6; }
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11305 $as_echo "no
" >&6; }
11312 for ncn_progname in dsymutil; do
11313 if test -n "$ncn_tool_prefix"; then
11314 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11315 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11317 $as_echo_n "checking
for $ac_word...
" >&6; }
11318 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11319 $as_echo_n "(cached
) " >&6
11321 if test -n "$DSYMUTIL"; then
11322 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11325 for as_dir in $PATH
11328 test -z "$as_dir" && as_dir=.
11329 for ac_exec_ext in '' $ac_executable_extensions; do
11330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11331 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11332 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11341 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11342 if test -n "$DSYMUTIL"; then
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11344 $as_echo "$DSYMUTIL" >&6; }
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11347 $as_echo "no
" >&6; }
11352 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11354 set dummy ${ncn_progname}; ac_word=$2
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11356 $as_echo_n "checking
for $ac_word...
" >&6; }
11357 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11358 $as_echo_n "(cached
) " >&6
11360 if test -n "$DSYMUTIL"; then
11361 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11370 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11371 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11380 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11381 if test -n "$DSYMUTIL"; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11383 $as_echo "$DSYMUTIL" >&6; }
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11386 $as_echo "no
" >&6; }
11391 test -n "$ac_cv_prog_DSYMUTIL" && break
11394 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11396 if test $build = $host ; then
11399 DSYMUTIL="${ncn_tool_prefix}$2"
11405 if test -n "$LD"; then
11407 elif test -n "$ac_cv_prog_LD"; then
11411 if test -n "$ac_cv_prog_LD"; then
11412 for ncn_progname in ld; do
11413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11414 set dummy ${ncn_progname}; ac_word=$2
11415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11416 $as_echo_n "checking
for $ac_word...
" >&6; }
11417 if ${ac_cv_prog_LD+:} false; then :
11418 $as_echo_n "(cached
) " >&6
11420 if test -n "$LD"; then
11421 ac_cv_prog_LD="$LD" # Let the user override the test.
11423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11424 for as_dir in $PATH
11427 test -z "$as_dir" && as_dir=.
11428 for ac_exec_ext in '' $ac_executable_extensions; do
11429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11430 ac_cv_prog_LD="${ncn_progname}"
11431 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11441 if test -n "$LD"; then
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11443 $as_echo "$LD" >&6; }
11445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11446 $as_echo "no
" >&6; }
11453 for ncn_progname in ld; do
11454 if test -n "$ncn_tool_prefix"; then
11455 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11456 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11458 $as_echo_n "checking
for $ac_word...
" >&6; }
11459 if ${ac_cv_prog_LD+:} false; then :
11460 $as_echo_n "(cached
) " >&6
11462 if test -n "$LD"; then
11463 ac_cv_prog_LD="$LD" # Let the user override the test.
11465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11466 for as_dir in $PATH
11469 test -z "$as_dir" && as_dir=.
11470 for ac_exec_ext in '' $ac_executable_extensions; do
11471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11472 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11473 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11483 if test -n "$LD"; then
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11485 $as_echo "$LD" >&6; }
11487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11488 $as_echo "no
" >&6; }
11493 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11495 set dummy ${ncn_progname}; ac_word=$2
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11497 $as_echo_n "checking
for $ac_word...
" >&6; }
11498 if ${ac_cv_prog_LD+:} false; then :
11499 $as_echo_n "(cached
) " >&6
11501 if test -n "$LD"; then
11502 ac_cv_prog_LD="$LD" # Let the user override the test.
11504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505 for as_dir in $PATH
11508 test -z "$as_dir" && as_dir=.
11509 for ac_exec_ext in '' $ac_executable_extensions; do
11510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11511 ac_cv_prog_LD="${ncn_progname}"
11512 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11522 if test -n "$LD"; then
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11524 $as_echo "$LD" >&6; }
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11527 $as_echo "no
" >&6; }
11532 test -n "$ac_cv_prog_LD" && break
11535 if test -z "$ac_cv_prog_LD" ; then
11537 if test $build = $host ; then
11540 LD="${ncn_tool_prefix}$2"
11546 if test -n "$LIPO"; then
11547 ac_cv_prog_LIPO=$LIPO
11548 elif test -n "$ac_cv_prog_LIPO"; then
11549 LIPO=$ac_cv_prog_LIPO
11552 if test -n "$ac_cv_prog_LIPO"; then
11553 for ncn_progname in lipo; do
11554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11555 set dummy ${ncn_progname}; ac_word=$2
11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11557 $as_echo_n "checking
for $ac_word...
" >&6; }
11558 if ${ac_cv_prog_LIPO+:} false; then :
11559 $as_echo_n "(cached
) " >&6
11561 if test -n "$LIPO"; then
11562 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11571 ac_cv_prog_LIPO="${ncn_progname}"
11572 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11581 LIPO=$ac_cv_prog_LIPO
11582 if test -n "$LIPO"; then
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11584 $as_echo "$LIPO" >&6; }
11586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11587 $as_echo "no
" >&6; }
11594 for ncn_progname in lipo; do
11595 if test -n "$ncn_tool_prefix"; then
11596 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11597 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11599 $as_echo_n "checking
for $ac_word...
" >&6; }
11600 if ${ac_cv_prog_LIPO+:} false; then :
11601 $as_echo_n "(cached
) " >&6
11603 if test -n "$LIPO"; then
11604 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11607 for as_dir in $PATH
11610 test -z "$as_dir" && as_dir=.
11611 for ac_exec_ext in '' $ac_executable_extensions; do
11612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11613 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11614 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11623 LIPO=$ac_cv_prog_LIPO
11624 if test -n "$LIPO"; then
11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11626 $as_echo "$LIPO" >&6; }
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11629 $as_echo "no
" >&6; }
11634 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11636 set dummy ${ncn_progname}; ac_word=$2
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11638 $as_echo_n "checking
for $ac_word...
" >&6; }
11639 if ${ac_cv_prog_LIPO+:} false; then :
11640 $as_echo_n "(cached
) " >&6
11642 if test -n "$LIPO"; then
11643 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646 for as_dir in $PATH
11649 test -z "$as_dir" && as_dir=.
11650 for ac_exec_ext in '' $ac_executable_extensions; do
11651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11652 ac_cv_prog_LIPO="${ncn_progname}"
11653 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11662 LIPO=$ac_cv_prog_LIPO
11663 if test -n "$LIPO"; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11665 $as_echo "$LIPO" >&6; }
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11668 $as_echo "no
" >&6; }
11673 test -n "$ac_cv_prog_LIPO" && break
11676 if test -z "$ac_cv_prog_LIPO" ; then
11678 if test $build = $host ; then
11681 LIPO="${ncn_tool_prefix}$2"
11687 if test -n "$NM"; then
11689 elif test -n "$ac_cv_prog_NM"; then
11693 if test -n "$ac_cv_prog_NM"; then
11694 for ncn_progname in nm; do
11695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11696 set dummy ${ncn_progname}; ac_word=$2
11697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11698 $as_echo_n "checking
for $ac_word...
" >&6; }
11699 if ${ac_cv_prog_NM+:} false; then :
11700 $as_echo_n "(cached
) " >&6
11702 if test -n "$NM"; then
11703 ac_cv_prog_NM="$NM" # Let the user override the test.
11705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11706 for as_dir in $PATH
11709 test -z "$as_dir" && as_dir=.
11710 for ac_exec_ext in '' $ac_executable_extensions; do
11711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11712 ac_cv_prog_NM="${ncn_progname}"
11713 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11723 if test -n "$NM"; then
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11725 $as_echo "$NM" >&6; }
11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11728 $as_echo "no
" >&6; }
11735 for ncn_progname in nm; do
11736 if test -n "$ncn_tool_prefix"; then
11737 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11738 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11740 $as_echo_n "checking
for $ac_word...
" >&6; }
11741 if ${ac_cv_prog_NM+:} false; then :
11742 $as_echo_n "(cached
) " >&6
11744 if test -n "$NM"; then
11745 ac_cv_prog_NM="$NM" # Let the user override the test.
11747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11748 for as_dir in $PATH
11751 test -z "$as_dir" && as_dir=.
11752 for ac_exec_ext in '' $ac_executable_extensions; do
11753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11754 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11755 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11765 if test -n "$NM"; then
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11767 $as_echo "$NM" >&6; }
11769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11770 $as_echo "no
" >&6; }
11775 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11776 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11777 set dummy ${ncn_progname}; ac_word=$2
11778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11779 $as_echo_n "checking
for $ac_word...
" >&6; }
11780 if ${ac_cv_prog_NM+:} false; then :
11781 $as_echo_n "(cached
) " >&6
11783 if test -n "$NM"; then
11784 ac_cv_prog_NM="$NM" # Let the user override the test.
11786 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11787 for as_dir in $PATH
11790 test -z "$as_dir" && as_dir=.
11791 for ac_exec_ext in '' $ac_executable_extensions; do
11792 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11793 ac_cv_prog_NM="${ncn_progname}"
11794 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11804 if test -n "$NM"; then
11805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11806 $as_echo "$NM" >&6; }
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11809 $as_echo "no
" >&6; }
11814 test -n "$ac_cv_prog_NM" && break
11817 if test -z "$ac_cv_prog_NM" ; then
11819 if test $build = $host ; then
11822 NM="${ncn_tool_prefix}$2"
11828 if test -n "$RANLIB"; then
11829 ac_cv_prog_RANLIB=$RANLIB
11830 elif test -n "$ac_cv_prog_RANLIB"; then
11831 RANLIB=$ac_cv_prog_RANLIB
11834 if test -n "$ac_cv_prog_RANLIB"; then
11835 for ncn_progname in ranlib; do
11836 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11837 set dummy ${ncn_progname}; ac_word=$2
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11839 $as_echo_n "checking
for $ac_word...
" >&6; }
11840 if ${ac_cv_prog_RANLIB+:} false; then :
11841 $as_echo_n "(cached
) " >&6
11843 if test -n "$RANLIB"; then
11844 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11847 for as_dir in $PATH
11850 test -z "$as_dir" && as_dir=.
11851 for ac_exec_ext in '' $ac_executable_extensions; do
11852 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11853 ac_cv_prog_RANLIB="${ncn_progname}"
11854 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11863 RANLIB=$ac_cv_prog_RANLIB
11864 if test -n "$RANLIB"; then
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11866 $as_echo "$RANLIB" >&6; }
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11869 $as_echo "no
" >&6; }
11876 for ncn_progname in ranlib; do
11877 if test -n "$ncn_tool_prefix"; then
11878 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11879 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11881 $as_echo_n "checking
for $ac_word...
" >&6; }
11882 if ${ac_cv_prog_RANLIB+:} false; then :
11883 $as_echo_n "(cached
) " >&6
11885 if test -n "$RANLIB"; then
11886 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11889 for as_dir in $PATH
11892 test -z "$as_dir" && as_dir=.
11893 for ac_exec_ext in '' $ac_executable_extensions; do
11894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11895 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11896 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11905 RANLIB=$ac_cv_prog_RANLIB
11906 if test -n "$RANLIB"; then
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11908 $as_echo "$RANLIB" >&6; }
11910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11911 $as_echo "no
" >&6; }
11916 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11917 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11918 set dummy ${ncn_progname}; ac_word=$2
11919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11920 $as_echo_n "checking
for $ac_word...
" >&6; }
11921 if ${ac_cv_prog_RANLIB+:} false; then :
11922 $as_echo_n "(cached
) " >&6
11924 if test -n "$RANLIB"; then
11925 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11928 for as_dir in $PATH
11931 test -z "$as_dir" && as_dir=.
11932 for ac_exec_ext in '' $ac_executable_extensions; do
11933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11934 ac_cv_prog_RANLIB="${ncn_progname}"
11935 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11944 RANLIB=$ac_cv_prog_RANLIB
11945 if test -n "$RANLIB"; then
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11947 $as_echo "$RANLIB" >&6; }
11949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11950 $as_echo "no
" >&6; }
11955 test -n "$ac_cv_prog_RANLIB" && break
11958 if test -z "$ac_cv_prog_RANLIB" ; then
11964 if test -n "$STRIP"; then
11965 ac_cv_prog_STRIP=$STRIP
11966 elif test -n "$ac_cv_prog_STRIP"; then
11967 STRIP=$ac_cv_prog_STRIP
11970 if test -n "$ac_cv_prog_STRIP"; then
11971 for ncn_progname in strip; do
11972 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11973 set dummy ${ncn_progname}; ac_word=$2
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11975 $as_echo_n "checking
for $ac_word...
" >&6; }
11976 if ${ac_cv_prog_STRIP+:} false; then :
11977 $as_echo_n "(cached
) " >&6
11979 if test -n "$STRIP"; then
11980 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11983 for as_dir in $PATH
11986 test -z "$as_dir" && as_dir=.
11987 for ac_exec_ext in '' $ac_executable_extensions; do
11988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11989 ac_cv_prog_STRIP="${ncn_progname}"
11990 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11999 STRIP=$ac_cv_prog_STRIP
12000 if test -n "$STRIP"; then
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12002 $as_echo "$STRIP" >&6; }
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12005 $as_echo "no
" >&6; }
12012 for ncn_progname in strip; do
12013 if test -n "$ncn_tool_prefix"; then
12014 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12015 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12017 $as_echo_n "checking
for $ac_word...
" >&6; }
12018 if ${ac_cv_prog_STRIP+:} false; then :
12019 $as_echo_n "(cached
) " >&6
12021 if test -n "$STRIP"; then
12022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12024 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12025 for as_dir in $PATH
12028 test -z "$as_dir" && as_dir=.
12029 for ac_exec_ext in '' $ac_executable_extensions; do
12030 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12031 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12032 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12041 STRIP=$ac_cv_prog_STRIP
12042 if test -n "$STRIP"; then
12043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12044 $as_echo "$STRIP" >&6; }
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12047 $as_echo "no
" >&6; }
12052 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12053 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12054 set dummy ${ncn_progname}; ac_word=$2
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12056 $as_echo_n "checking
for $ac_word...
" >&6; }
12057 if ${ac_cv_prog_STRIP+:} false; then :
12058 $as_echo_n "(cached
) " >&6
12060 if test -n "$STRIP"; then
12061 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12064 for as_dir in $PATH
12067 test -z "$as_dir" && as_dir=.
12068 for ac_exec_ext in '' $ac_executable_extensions; do
12069 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12070 ac_cv_prog_STRIP="${ncn_progname}"
12071 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12080 STRIP=$ac_cv_prog_STRIP
12081 if test -n "$STRIP"; then
12082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12083 $as_echo "$STRIP" >&6; }
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12086 $as_echo "no
" >&6; }
12091 test -n "$ac_cv_prog_STRIP" && break
12094 if test -z "$ac_cv_prog_STRIP" ; then
12100 if test -n "$WINDRES"; then
12101 ac_cv_prog_WINDRES=$WINDRES
12102 elif test -n "$ac_cv_prog_WINDRES"; then
12103 WINDRES=$ac_cv_prog_WINDRES
12106 if test -n "$ac_cv_prog_WINDRES"; then
12107 for ncn_progname in windres; do
12108 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12109 set dummy ${ncn_progname}; ac_word=$2
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12111 $as_echo_n "checking
for $ac_word...
" >&6; }
12112 if ${ac_cv_prog_WINDRES+:} false; then :
12113 $as_echo_n "(cached
) " >&6
12115 if test -n "$WINDRES"; then
12116 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12119 for as_dir in $PATH
12122 test -z "$as_dir" && as_dir=.
12123 for ac_exec_ext in '' $ac_executable_extensions; do
12124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12125 ac_cv_prog_WINDRES="${ncn_progname}"
12126 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12135 WINDRES=$ac_cv_prog_WINDRES
12136 if test -n "$WINDRES"; then
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12138 $as_echo "$WINDRES" >&6; }
12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12141 $as_echo "no
" >&6; }
12148 for ncn_progname in windres; do
12149 if test -n "$ncn_tool_prefix"; then
12150 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12151 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12153 $as_echo_n "checking
for $ac_word...
" >&6; }
12154 if ${ac_cv_prog_WINDRES+:} false; then :
12155 $as_echo_n "(cached
) " >&6
12157 if test -n "$WINDRES"; then
12158 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12161 for as_dir in $PATH
12164 test -z "$as_dir" && as_dir=.
12165 for ac_exec_ext in '' $ac_executable_extensions; do
12166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12167 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12168 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12177 WINDRES=$ac_cv_prog_WINDRES
12178 if test -n "$WINDRES"; then
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12180 $as_echo "$WINDRES" >&6; }
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12183 $as_echo "no
" >&6; }
12188 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12190 set dummy ${ncn_progname}; ac_word=$2
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12192 $as_echo_n "checking
for $ac_word...
" >&6; }
12193 if ${ac_cv_prog_WINDRES+:} false; then :
12194 $as_echo_n "(cached
) " >&6
12196 if test -n "$WINDRES"; then
12197 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200 for as_dir in $PATH
12203 test -z "$as_dir" && as_dir=.
12204 for ac_exec_ext in '' $ac_executable_extensions; do
12205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12206 ac_cv_prog_WINDRES="${ncn_progname}"
12207 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12216 WINDRES=$ac_cv_prog_WINDRES
12217 if test -n "$WINDRES"; then
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12219 $as_echo "$WINDRES" >&6; }
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12222 $as_echo "no
" >&6; }
12227 test -n "$ac_cv_prog_WINDRES" && break
12230 if test -z "$ac_cv_prog_WINDRES" ; then
12232 if test $build = $host ; then
12235 WINDRES="${ncn_tool_prefix}$2"
12241 if test -n "$WINDMC"; then
12242 ac_cv_prog_WINDMC=$WINDMC
12243 elif test -n "$ac_cv_prog_WINDMC"; then
12244 WINDMC=$ac_cv_prog_WINDMC
12247 if test -n "$ac_cv_prog_WINDMC"; then
12248 for ncn_progname in windmc; do
12249 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12250 set dummy ${ncn_progname}; ac_word=$2
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12252 $as_echo_n "checking
for $ac_word...
" >&6; }
12253 if ${ac_cv_prog_WINDMC+:} false; then :
12254 $as_echo_n "(cached
) " >&6
12256 if test -n "$WINDMC"; then
12257 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12260 for as_dir in $PATH
12263 test -z "$as_dir" && as_dir=.
12264 for ac_exec_ext in '' $ac_executable_extensions; do
12265 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12266 ac_cv_prog_WINDMC="${ncn_progname}"
12267 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12276 WINDMC=$ac_cv_prog_WINDMC
12277 if test -n "$WINDMC"; then
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12279 $as_echo "$WINDMC" >&6; }
12281 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12282 $as_echo "no
" >&6; }
12289 for ncn_progname in windmc; do
12290 if test -n "$ncn_tool_prefix"; then
12291 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12292 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12294 $as_echo_n "checking
for $ac_word...
" >&6; }
12295 if ${ac_cv_prog_WINDMC+:} false; then :
12296 $as_echo_n "(cached
) " >&6
12298 if test -n "$WINDMC"; then
12299 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12302 for as_dir in $PATH
12305 test -z "$as_dir" && as_dir=.
12306 for ac_exec_ext in '' $ac_executable_extensions; do
12307 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12308 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12309 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12318 WINDMC=$ac_cv_prog_WINDMC
12319 if test -n "$WINDMC"; then
12320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12321 $as_echo "$WINDMC" >&6; }
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12324 $as_echo "no
" >&6; }
12329 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12331 set dummy ${ncn_progname}; ac_word=$2
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12333 $as_echo_n "checking
for $ac_word...
" >&6; }
12334 if ${ac_cv_prog_WINDMC+:} false; then :
12335 $as_echo_n "(cached
) " >&6
12337 if test -n "$WINDMC"; then
12338 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341 for as_dir in $PATH
12344 test -z "$as_dir" && as_dir=.
12345 for ac_exec_ext in '' $ac_executable_extensions; do
12346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12347 ac_cv_prog_WINDMC="${ncn_progname}"
12348 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12357 WINDMC=$ac_cv_prog_WINDMC
12358 if test -n "$WINDMC"; then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12360 $as_echo "$WINDMC" >&6; }
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12363 $as_echo "no
" >&6; }
12368 test -n "$ac_cv_prog_WINDMC" && break
12371 if test -z "$ac_cv_prog_WINDMC" ; then
12373 if test $build = $host ; then
12376 WINDMC="${ncn_tool_prefix}$2"
12382 if test -n "$OBJCOPY"; then
12383 ac_cv_prog_OBJCOPY=$OBJCOPY
12384 elif test -n "$ac_cv_prog_OBJCOPY"; then
12385 OBJCOPY=$ac_cv_prog_OBJCOPY
12388 if test -n "$ac_cv_prog_OBJCOPY"; then
12389 for ncn_progname in objcopy; do
12390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12391 set dummy ${ncn_progname}; ac_word=$2
12392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12393 $as_echo_n "checking
for $ac_word...
" >&6; }
12394 if ${ac_cv_prog_OBJCOPY+:} false; then :
12395 $as_echo_n "(cached
) " >&6
12397 if test -n "$OBJCOPY"; then
12398 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12401 for as_dir in $PATH
12404 test -z "$as_dir" && as_dir=.
12405 for ac_exec_ext in '' $ac_executable_extensions; do
12406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12407 ac_cv_prog_OBJCOPY="${ncn_progname}"
12408 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12417 OBJCOPY=$ac_cv_prog_OBJCOPY
12418 if test -n "$OBJCOPY"; then
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12420 $as_echo "$OBJCOPY" >&6; }
12422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12423 $as_echo "no
" >&6; }
12430 for ncn_progname in objcopy; do
12431 if test -n "$ncn_tool_prefix"; then
12432 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12433 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12435 $as_echo_n "checking
for $ac_word...
" >&6; }
12436 if ${ac_cv_prog_OBJCOPY+:} false; then :
12437 $as_echo_n "(cached
) " >&6
12439 if test -n "$OBJCOPY"; then
12440 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12443 for as_dir in $PATH
12446 test -z "$as_dir" && as_dir=.
12447 for ac_exec_ext in '' $ac_executable_extensions; do
12448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12449 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12450 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12459 OBJCOPY=$ac_cv_prog_OBJCOPY
12460 if test -n "$OBJCOPY"; then
12461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12462 $as_echo "$OBJCOPY" >&6; }
12464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12465 $as_echo "no
" >&6; }
12470 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12472 set dummy ${ncn_progname}; ac_word=$2
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12474 $as_echo_n "checking
for $ac_word...
" >&6; }
12475 if ${ac_cv_prog_OBJCOPY+:} false; then :
12476 $as_echo_n "(cached
) " >&6
12478 if test -n "$OBJCOPY"; then
12479 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482 for as_dir in $PATH
12485 test -z "$as_dir" && as_dir=.
12486 for ac_exec_ext in '' $ac_executable_extensions; do
12487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12488 ac_cv_prog_OBJCOPY="${ncn_progname}"
12489 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12498 OBJCOPY=$ac_cv_prog_OBJCOPY
12499 if test -n "$OBJCOPY"; then
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12501 $as_echo "$OBJCOPY" >&6; }
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12504 $as_echo "no
" >&6; }
12509 test -n "$ac_cv_prog_OBJCOPY" && break
12512 if test -z "$ac_cv_prog_OBJCOPY" ; then
12514 if test $build = $host ; then
12517 OBJCOPY="${ncn_tool_prefix}$2"
12523 if test -n "$OBJDUMP"; then
12524 ac_cv_prog_OBJDUMP=$OBJDUMP
12525 elif test -n "$ac_cv_prog_OBJDUMP"; then
12526 OBJDUMP=$ac_cv_prog_OBJDUMP
12529 if test -n "$ac_cv_prog_OBJDUMP"; then
12530 for ncn_progname in objdump; do
12531 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12532 set dummy ${ncn_progname}; ac_word=$2
12533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12534 $as_echo_n "checking
for $ac_word...
" >&6; }
12535 if ${ac_cv_prog_OBJDUMP+:} false; then :
12536 $as_echo_n "(cached
) " >&6
12538 if test -n "$OBJDUMP"; then
12539 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12542 for as_dir in $PATH
12545 test -z "$as_dir" && as_dir=.
12546 for ac_exec_ext in '' $ac_executable_extensions; do
12547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12548 ac_cv_prog_OBJDUMP="${ncn_progname}"
12549 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12558 OBJDUMP=$ac_cv_prog_OBJDUMP
12559 if test -n "$OBJDUMP"; then
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12561 $as_echo "$OBJDUMP" >&6; }
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12564 $as_echo "no
" >&6; }
12571 for ncn_progname in objdump; do
12572 if test -n "$ncn_tool_prefix"; then
12573 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12574 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12576 $as_echo_n "checking
for $ac_word...
" >&6; }
12577 if ${ac_cv_prog_OBJDUMP+:} false; then :
12578 $as_echo_n "(cached
) " >&6
12580 if test -n "$OBJDUMP"; then
12581 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12584 for as_dir in $PATH
12587 test -z "$as_dir" && as_dir=.
12588 for ac_exec_ext in '' $ac_executable_extensions; do
12589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12590 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12591 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12600 OBJDUMP=$ac_cv_prog_OBJDUMP
12601 if test -n "$OBJDUMP"; then
12602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12603 $as_echo "$OBJDUMP" >&6; }
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12606 $as_echo "no
" >&6; }
12611 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12613 set dummy ${ncn_progname}; ac_word=$2
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12615 $as_echo_n "checking
for $ac_word...
" >&6; }
12616 if ${ac_cv_prog_OBJDUMP+:} false; then :
12617 $as_echo_n "(cached
) " >&6
12619 if test -n "$OBJDUMP"; then
12620 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623 for as_dir in $PATH
12626 test -z "$as_dir" && as_dir=.
12627 for ac_exec_ext in '' $ac_executable_extensions; do
12628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12629 ac_cv_prog_OBJDUMP="${ncn_progname}"
12630 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12639 OBJDUMP=$ac_cv_prog_OBJDUMP
12640 if test -n "$OBJDUMP"; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12642 $as_echo "$OBJDUMP" >&6; }
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12645 $as_echo "no
" >&6; }
12650 test -n "$ac_cv_prog_OBJDUMP" && break
12653 if test -z "$ac_cv_prog_OBJDUMP" ; then
12655 if test $build = $host ; then
12658 OBJDUMP="${ncn_tool_prefix}$2"
12664 if test -n "$OTOOL"; then
12665 ac_cv_prog_OTOOL=$OTOOL
12666 elif test -n "$ac_cv_prog_OTOOL"; then
12667 OTOOL=$ac_cv_prog_OTOOL
12670 if test -n "$ac_cv_prog_OTOOL"; then
12671 for ncn_progname in otool; do
12672 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12673 set dummy ${ncn_progname}; ac_word=$2
12674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12675 $as_echo_n "checking
for $ac_word...
" >&6; }
12676 if ${ac_cv_prog_OTOOL+:} false; then :
12677 $as_echo_n "(cached
) " >&6
12679 if test -n "$OTOOL"; then
12680 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12683 for as_dir in $PATH
12686 test -z "$as_dir" && as_dir=.
12687 for ac_exec_ext in '' $ac_executable_extensions; do
12688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12689 ac_cv_prog_OTOOL="${ncn_progname}"
12690 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12699 OTOOL=$ac_cv_prog_OTOOL
12700 if test -n "$OTOOL"; then
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12702 $as_echo "$OTOOL" >&6; }
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12705 $as_echo "no
" >&6; }
12712 for ncn_progname in otool; do
12713 if test -n "$ncn_tool_prefix"; then
12714 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12715 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12717 $as_echo_n "checking
for $ac_word...
" >&6; }
12718 if ${ac_cv_prog_OTOOL+:} false; then :
12719 $as_echo_n "(cached
) " >&6
12721 if test -n "$OTOOL"; then
12722 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12725 for as_dir in $PATH
12728 test -z "$as_dir" && as_dir=.
12729 for ac_exec_ext in '' $ac_executable_extensions; do
12730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12731 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12732 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12741 OTOOL=$ac_cv_prog_OTOOL
12742 if test -n "$OTOOL"; then
12743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12744 $as_echo "$OTOOL" >&6; }
12746 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12747 $as_echo "no
" >&6; }
12752 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12753 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12754 set dummy ${ncn_progname}; ac_word=$2
12755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12756 $as_echo_n "checking
for $ac_word...
" >&6; }
12757 if ${ac_cv_prog_OTOOL+:} false; then :
12758 $as_echo_n "(cached
) " >&6
12760 if test -n "$OTOOL"; then
12761 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12764 for as_dir in $PATH
12767 test -z "$as_dir" && as_dir=.
12768 for ac_exec_ext in '' $ac_executable_extensions; do
12769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12770 ac_cv_prog_OTOOL="${ncn_progname}"
12771 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12780 OTOOL=$ac_cv_prog_OTOOL
12781 if test -n "$OTOOL"; then
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12783 $as_echo "$OTOOL" >&6; }
12785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12786 $as_echo "no
" >&6; }
12791 test -n "$ac_cv_prog_OTOOL" && break
12794 if test -z "$ac_cv_prog_OTOOL" ; then
12796 if test $build = $host ; then
12799 OTOOL="${ncn_tool_prefix}$2"
12805 if test -n "$READELF"; then
12806 ac_cv_prog_READELF=$READELF
12807 elif test -n "$ac_cv_prog_READELF"; then
12808 READELF=$ac_cv_prog_READELF
12811 if test -n "$ac_cv_prog_READELF"; then
12812 for ncn_progname in readelf; do
12813 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12814 set dummy ${ncn_progname}; ac_word=$2
12815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12816 $as_echo_n "checking
for $ac_word...
" >&6; }
12817 if ${ac_cv_prog_READELF+:} false; then :
12818 $as_echo_n "(cached
) " >&6
12820 if test -n "$READELF"; then
12821 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12824 for as_dir in $PATH
12827 test -z "$as_dir" && as_dir=.
12828 for ac_exec_ext in '' $ac_executable_extensions; do
12829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12830 ac_cv_prog_READELF="${ncn_progname}"
12831 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12840 READELF=$ac_cv_prog_READELF
12841 if test -n "$READELF"; then
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12843 $as_echo "$READELF" >&6; }
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12846 $as_echo "no
" >&6; }
12853 for ncn_progname in readelf; do
12854 if test -n "$ncn_tool_prefix"; then
12855 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12856 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12858 $as_echo_n "checking
for $ac_word...
" >&6; }
12859 if ${ac_cv_prog_READELF+:} false; then :
12860 $as_echo_n "(cached
) " >&6
12862 if test -n "$READELF"; then
12863 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12866 for as_dir in $PATH
12869 test -z "$as_dir" && as_dir=.
12870 for ac_exec_ext in '' $ac_executable_extensions; do
12871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12872 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12873 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12882 READELF=$ac_cv_prog_READELF
12883 if test -n "$READELF"; then
12884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12885 $as_echo "$READELF" >&6; }
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12888 $as_echo "no
" >&6; }
12893 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12894 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12895 set dummy ${ncn_progname}; ac_word=$2
12896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12897 $as_echo_n "checking
for $ac_word...
" >&6; }
12898 if ${ac_cv_prog_READELF+:} false; then :
12899 $as_echo_n "(cached
) " >&6
12901 if test -n "$READELF"; then
12902 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12905 for as_dir in $PATH
12908 test -z "$as_dir" && as_dir=.
12909 for ac_exec_ext in '' $ac_executable_extensions; do
12910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12911 ac_cv_prog_READELF="${ncn_progname}"
12912 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12921 READELF=$ac_cv_prog_READELF
12922 if test -n "$READELF"; then
12923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12924 $as_echo "$READELF" >&6; }
12926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12927 $as_echo "no
" >&6; }
12932 test -n "$ac_cv_prog_READELF" && break
12935 if test -z "$ac_cv_prog_READELF" ; then
12937 if test $build = $host ; then
12940 READELF="${ncn_tool_prefix}$2"
12953 # Check whether --with-build-time-tools was given.
12954 if test "${with_build_time_tools+set}" = set; then :
12955 withval=$with_build_time_tools; case x"$withval" in
12958 with_build_time_tools=
12959 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
12960 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
12964 with_build_time_tools=
12970 if test -n "$CC_FOR_TARGET"; then
12971 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12972 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12973 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12976 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12977 for ncn_progname in cc gcc; do
12978 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12979 set dummy ${ncn_progname}; ac_word=$2
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12981 $as_echo_n "checking
for $ac_word...
" >&6; }
12982 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12983 $as_echo_n "(cached
) " >&6
12985 if test -n "$CC_FOR_TARGET"; then
12986 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12989 for as_dir in $PATH
12992 test -z "$as_dir" && as_dir=.
12993 for ac_exec_ext in '' $ac_executable_extensions; do
12994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12995 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12996 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13005 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13006 if test -n "$CC_FOR_TARGET"; then
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13008 $as_echo "$CC_FOR_TARGET" >&6; }
13010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13011 $as_echo "no
" >&6; }
13018 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13019 for ncn_progname in cc gcc; do
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13021 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13022 if test -x $with_build_time_tools/${ncn_progname}; then
13023 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13025 $as_echo "yes" >&6; }
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13029 $as_echo "no
" >&6; }
13034 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13035 for ncn_progname in cc gcc; do
13036 if test -n "$ncn_target_tool_prefix"; then
13037 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13038 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13040 $as_echo_n "checking
for $ac_word...
" >&6; }
13041 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13042 $as_echo_n "(cached
) " >&6
13044 if test -n "$CC_FOR_TARGET"; then
13045 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13048 for as_dir in $PATH
13051 test -z "$as_dir" && as_dir=.
13052 for ac_exec_ext in '' $ac_executable_extensions; do
13053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13054 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13055 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13064 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13065 if test -n "$CC_FOR_TARGET"; then
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13067 $as_echo "$CC_FOR_TARGET" >&6; }
13069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13070 $as_echo "no
" >&6; }
13075 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13076 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13077 set dummy ${ncn_progname}; ac_word=$2
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13079 $as_echo_n "checking
for $ac_word...
" >&6; }
13080 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13081 $as_echo_n "(cached
) " >&6
13083 if test -n "$CC_FOR_TARGET"; then
13084 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13087 for as_dir in $PATH
13090 test -z "$as_dir" && as_dir=.
13091 for ac_exec_ext in '' $ac_executable_extensions; do
13092 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13093 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13094 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13103 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13104 if test -n "$CC_FOR_TARGET"; then
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13106 $as_echo "$CC_FOR_TARGET" >&6; }
13108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13109 $as_echo "no
" >&6; }
13114 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13118 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13120 if test $build = $target ; then
13123 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13126 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13131 if test -n "$CXX_FOR_TARGET"; then
13132 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13133 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13134 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13137 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13138 for ncn_progname in c++ g++ cxx gxx; do
13139 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13140 set dummy ${ncn_progname}; ac_word=$2
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13142 $as_echo_n "checking
for $ac_word...
" >&6; }
13143 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13144 $as_echo_n "(cached
) " >&6
13146 if test -n "$CXX_FOR_TARGET"; then
13147 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13149 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13150 for as_dir in $PATH
13153 test -z "$as_dir" && as_dir=.
13154 for ac_exec_ext in '' $ac_executable_extensions; do
13155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13156 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13157 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13166 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13167 if test -n "$CXX_FOR_TARGET"; then
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13169 $as_echo "$CXX_FOR_TARGET" >&6; }
13171 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13172 $as_echo "no
" >&6; }
13179 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13180 for ncn_progname in c++ g++ cxx gxx; do
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13182 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13183 if test -x $with_build_time_tools/${ncn_progname}; then
13184 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13186 $as_echo "yes" >&6; }
13189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13190 $as_echo "no
" >&6; }
13195 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13196 for ncn_progname in c++ g++ cxx gxx; do
13197 if test -n "$ncn_target_tool_prefix"; then
13198 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13199 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13201 $as_echo_n "checking
for $ac_word...
" >&6; }
13202 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13203 $as_echo_n "(cached
) " >&6
13205 if test -n "$CXX_FOR_TARGET"; then
13206 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13209 for as_dir in $PATH
13212 test -z "$as_dir" && as_dir=.
13213 for ac_exec_ext in '' $ac_executable_extensions; do
13214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13215 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13216 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13225 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13226 if test -n "$CXX_FOR_TARGET"; then
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13228 $as_echo "$CXX_FOR_TARGET" >&6; }
13230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13231 $as_echo "no
" >&6; }
13236 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13237 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13238 set dummy ${ncn_progname}; ac_word=$2
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13240 $as_echo_n "checking
for $ac_word...
" >&6; }
13241 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13242 $as_echo_n "(cached
) " >&6
13244 if test -n "$CXX_FOR_TARGET"; then
13245 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13248 for as_dir in $PATH
13251 test -z "$as_dir" && as_dir=.
13252 for ac_exec_ext in '' $ac_executable_extensions; do
13253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13254 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13255 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13264 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13265 if test -n "$CXX_FOR_TARGET"; then
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13267 $as_echo "$CXX_FOR_TARGET" >&6; }
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13270 $as_echo "no
" >&6; }
13275 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13279 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13280 set dummy c++ g++ cxx gxx
13281 if test $build = $target ; then
13282 CXX_FOR_TARGET="$2"
13284 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13287 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13292 if test -n "$GCC_FOR_TARGET"; then
13293 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13294 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13295 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13298 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13299 for ncn_progname in gcc; do
13300 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13301 set dummy ${ncn_progname}; ac_word=$2
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13303 $as_echo_n "checking
for $ac_word...
" >&6; }
13304 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13305 $as_echo_n "(cached
) " >&6
13307 if test -n "$GCC_FOR_TARGET"; then
13308 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13311 for as_dir in $PATH
13314 test -z "$as_dir" && as_dir=.
13315 for ac_exec_ext in '' $ac_executable_extensions; do
13316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13317 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13318 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13327 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13328 if test -n "$GCC_FOR_TARGET"; then
13329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13330 $as_echo "$GCC_FOR_TARGET" >&6; }
13332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13333 $as_echo "no
" >&6; }
13340 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13341 for ncn_progname in gcc; do
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13343 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13344 if test -x $with_build_time_tools/${ncn_progname}; then
13345 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13347 $as_echo "yes" >&6; }
13350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13351 $as_echo "no
" >&6; }
13356 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13357 for ncn_progname in gcc; do
13358 if test -n "$ncn_target_tool_prefix"; then
13359 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13360 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13362 $as_echo_n "checking
for $ac_word...
" >&6; }
13363 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13364 $as_echo_n "(cached
) " >&6
13366 if test -n "$GCC_FOR_TARGET"; then
13367 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13369 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13370 for as_dir in $PATH
13373 test -z "$as_dir" && as_dir=.
13374 for ac_exec_ext in '' $ac_executable_extensions; do
13375 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13376 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13377 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13386 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13387 if test -n "$GCC_FOR_TARGET"; then
13388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13389 $as_echo "$GCC_FOR_TARGET" >&6; }
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13392 $as_echo "no
" >&6; }
13397 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13399 set dummy ${ncn_progname}; ac_word=$2
13400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13401 $as_echo_n "checking
for $ac_word...
" >&6; }
13402 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13403 $as_echo_n "(cached
) " >&6
13405 if test -n "$GCC_FOR_TARGET"; then
13406 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13409 for as_dir in $PATH
13412 test -z "$as_dir" && as_dir=.
13413 for ac_exec_ext in '' $ac_executable_extensions; do
13414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13415 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13416 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13425 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13426 if test -n "$GCC_FOR_TARGET"; then
13427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13428 $as_echo "$GCC_FOR_TARGET" >&6; }
13430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13431 $as_echo "no
" >&6; }
13436 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13440 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13441 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13443 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13448 if test -n "$GFORTRAN_FOR_TARGET"; then
13449 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13450 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13451 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13454 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13455 for ncn_progname in gfortran; do
13456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13457 set dummy ${ncn_progname}; ac_word=$2
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13459 $as_echo_n "checking
for $ac_word...
" >&6; }
13460 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13461 $as_echo_n "(cached
) " >&6
13463 if test -n "$GFORTRAN_FOR_TARGET"; then
13464 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13467 for as_dir in $PATH
13470 test -z "$as_dir" && as_dir=.
13471 for ac_exec_ext in '' $ac_executable_extensions; do
13472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13473 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13474 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13483 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13484 if test -n "$GFORTRAN_FOR_TARGET"; then
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13486 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13489 $as_echo "no
" >&6; }
13496 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13497 for ncn_progname in gfortran; do
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13499 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13500 if test -x $with_build_time_tools/${ncn_progname}; then
13501 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13503 $as_echo "yes" >&6; }
13506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13507 $as_echo "no
" >&6; }
13512 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13513 for ncn_progname in gfortran; do
13514 if test -n "$ncn_target_tool_prefix"; then
13515 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13516 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13518 $as_echo_n "checking
for $ac_word...
" >&6; }
13519 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13520 $as_echo_n "(cached
) " >&6
13522 if test -n "$GFORTRAN_FOR_TARGET"; then
13523 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13526 for as_dir in $PATH
13529 test -z "$as_dir" && as_dir=.
13530 for ac_exec_ext in '' $ac_executable_extensions; do
13531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13532 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13533 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13542 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13543 if test -n "$GFORTRAN_FOR_TARGET"; then
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13545 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13548 $as_echo "no
" >&6; }
13553 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13554 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13555 set dummy ${ncn_progname}; ac_word=$2
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13557 $as_echo_n "checking
for $ac_word...
" >&6; }
13558 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13559 $as_echo_n "(cached
) " >&6
13561 if test -n "$GFORTRAN_FOR_TARGET"; then
13562 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13565 for as_dir in $PATH
13568 test -z "$as_dir" && as_dir=.
13569 for ac_exec_ext in '' $ac_executable_extensions; do
13570 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13571 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13572 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13581 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13582 if test -n "$GFORTRAN_FOR_TARGET"; then
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13584 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13587 $as_echo "no
" >&6; }
13592 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13596 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13598 if test $build = $target ; then
13599 GFORTRAN_FOR_TARGET="$2"
13601 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13604 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13609 if test -n "$GOC_FOR_TARGET"; then
13610 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13611 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13612 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13615 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13616 for ncn_progname in gccgo; do
13617 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13618 set dummy ${ncn_progname}; ac_word=$2
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13620 $as_echo_n "checking
for $ac_word...
" >&6; }
13621 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13622 $as_echo_n "(cached
) " >&6
13624 if test -n "$GOC_FOR_TARGET"; then
13625 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $PATH
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
13633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13634 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13635 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13644 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13645 if test -n "$GOC_FOR_TARGET"; then
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13647 $as_echo "$GOC_FOR_TARGET" >&6; }
13649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13650 $as_echo "no
" >&6; }
13657 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13658 for ncn_progname in gccgo; do
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13660 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13661 if test -x $with_build_time_tools/${ncn_progname}; then
13662 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13664 $as_echo "yes" >&6; }
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13668 $as_echo "no
" >&6; }
13673 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13674 for ncn_progname in gccgo; do
13675 if test -n "$ncn_target_tool_prefix"; then
13676 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13677 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13679 $as_echo_n "checking
for $ac_word...
" >&6; }
13680 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13681 $as_echo_n "(cached
) " >&6
13683 if test -n "$GOC_FOR_TARGET"; then
13684 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13687 for as_dir in $PATH
13690 test -z "$as_dir" && as_dir=.
13691 for ac_exec_ext in '' $ac_executable_extensions; do
13692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13693 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13694 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13703 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13704 if test -n "$GOC_FOR_TARGET"; then
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13706 $as_echo "$GOC_FOR_TARGET" >&6; }
13708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13709 $as_echo "no
" >&6; }
13714 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13715 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13716 set dummy ${ncn_progname}; ac_word=$2
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13718 $as_echo_n "checking
for $ac_word...
" >&6; }
13719 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13720 $as_echo_n "(cached
) " >&6
13722 if test -n "$GOC_FOR_TARGET"; then
13723 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13726 for as_dir in $PATH
13729 test -z "$as_dir" && as_dir=.
13730 for ac_exec_ext in '' $ac_executable_extensions; do
13731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13732 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13733 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13742 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13743 if test -n "$GOC_FOR_TARGET"; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13745 $as_echo "$GOC_FOR_TARGET" >&6; }
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13748 $as_echo "no
" >&6; }
13753 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13757 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13759 if test $build = $target ; then
13760 GOC_FOR_TARGET="$2"
13762 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13765 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13770 if test -n "$GDC_FOR_TARGET"; then
13771 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13772 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13773 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13776 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13777 for ncn_progname in gdc; do
13778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13779 set dummy ${ncn_progname}; ac_word=$2
13780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13781 $as_echo_n "checking
for $ac_word...
" >&6; }
13782 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13783 $as_echo_n "(cached
) " >&6
13785 if test -n "$GDC_FOR_TARGET"; then
13786 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13789 for as_dir in $PATH
13792 test -z "$as_dir" && as_dir=.
13793 for ac_exec_ext in '' $ac_executable_extensions; do
13794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13795 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13796 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13805 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13806 if test -n "$GDC_FOR_TARGET"; then
13807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13808 $as_echo "$GDC_FOR_TARGET" >&6; }
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13811 $as_echo "no
" >&6; }
13818 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13819 for ncn_progname in gdc; do
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13821 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13822 if test -x $with_build_time_tools/${ncn_progname}; then
13823 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13825 $as_echo "yes" >&6; }
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13829 $as_echo "no
" >&6; }
13834 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13835 for ncn_progname in gdc; do
13836 if test -n "$ncn_target_tool_prefix"; then
13837 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13838 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13840 $as_echo_n "checking
for $ac_word...
" >&6; }
13841 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13842 $as_echo_n "(cached
) " >&6
13844 if test -n "$GDC_FOR_TARGET"; then
13845 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13848 for as_dir in $PATH
13851 test -z "$as_dir" && as_dir=.
13852 for ac_exec_ext in '' $ac_executable_extensions; do
13853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13854 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13855 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13864 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13865 if test -n "$GDC_FOR_TARGET"; then
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13867 $as_echo "$GDC_FOR_TARGET" >&6; }
13869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13870 $as_echo "no
" >&6; }
13875 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13876 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13877 set dummy ${ncn_progname}; ac_word=$2
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13879 $as_echo_n "checking
for $ac_word...
" >&6; }
13880 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13881 $as_echo_n "(cached
) " >&6
13883 if test -n "$GDC_FOR_TARGET"; then
13884 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13887 for as_dir in $PATH
13890 test -z "$as_dir" && as_dir=.
13891 for ac_exec_ext in '' $ac_executable_extensions; do
13892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13893 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13894 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13903 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13904 if test -n "$GDC_FOR_TARGET"; then
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13906 $as_echo "$GDC_FOR_TARGET" >&6; }
13908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13909 $as_echo "no
" >&6; }
13914 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13918 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13920 if test $build = $target ; then
13921 GDC_FOR_TARGET="$2"
13923 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13926 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13931 if test -n "$GM2_FOR_TARGET"; then
13932 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
13933 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13934 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13937 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13938 for ncn_progname in gm2; do
13939 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13940 set dummy ${ncn_progname}; ac_word=$2
13941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13942 $as_echo_n "checking
for $ac_word...
" >&6; }
13943 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13944 $as_echo_n "(cached
) " >&6
13946 if test -n "$GM2_FOR_TARGET"; then
13947 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13950 for as_dir in $PATH
13953 test -z "$as_dir" && as_dir=.
13954 for ac_exec_ext in '' $ac_executable_extensions; do
13955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13956 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13957 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13966 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13967 if test -n "$GM2_FOR_TARGET"; then
13968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
13969 $as_echo "$GM2_FOR_TARGET" >&6; }
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13972 $as_echo "no
" >&6; }
13979 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
13980 for ncn_progname in gm2; do
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13982 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13983 if test -x $with_build_time_tools/${ncn_progname}; then
13984 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13986 $as_echo "yes" >&6; }
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13990 $as_echo "no
" >&6; }
13995 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
13996 for ncn_progname in gm2; do
13997 if test -n "$ncn_target_tool_prefix"; then
13998 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13999 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14001 $as_echo_n "checking
for $ac_word...
" >&6; }
14002 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14003 $as_echo_n "(cached
) " >&6
14005 if test -n "$GM2_FOR_TARGET"; then
14006 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14009 for as_dir in $PATH
14012 test -z "$as_dir" && as_dir=.
14013 for ac_exec_ext in '' $ac_executable_extensions; do
14014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14015 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14016 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14025 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14026 if test -n "$GM2_FOR_TARGET"; then
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14028 $as_echo "$GM2_FOR_TARGET" >&6; }
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14031 $as_echo "no
" >&6; }
14036 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14038 set dummy ${ncn_progname}; ac_word=$2
14039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14040 $as_echo_n "checking
for $ac_word...
" >&6; }
14041 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14042 $as_echo_n "(cached
) " >&6
14044 if test -n "$GM2_FOR_TARGET"; then
14045 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14048 for as_dir in $PATH
14051 test -z "$as_dir" && as_dir=.
14052 for ac_exec_ext in '' $ac_executable_extensions; do
14053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14054 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14055 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14064 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14065 if test -n "$GM2_FOR_TARGET"; then
14066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14067 $as_echo "$GM2_FOR_TARGET" >&6; }
14069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14070 $as_echo "no
" >&6; }
14075 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14079 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14081 if test $build = $target ; then
14082 GM2_FOR_TARGET="$2"
14084 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14087 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14092 cat > conftest.c << \EOF
14097 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14098 have_gcc_for_target=yes
14100 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14101 have_gcc_for_target=no
14108 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14109 if test -n "$with_build_time_tools"; then
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
14111 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
14112 if test -x $with_build_time_tools/ar; then
14113 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14114 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
14116 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14119 $as_echo "no
" >&6; }
14121 elif test $build != $host && test $have_gcc_for_target = yes; then
14122 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14123 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14124 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14127 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14128 # Extract the first word of "ar", so it can be a program name with args.
14129 set dummy ar; ac_word=$2
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14131 $as_echo_n "checking
for $ac_word...
" >&6; }
14132 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14133 $as_echo_n "(cached
) " >&6
14135 case $AR_FOR_TARGET in
14137 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14141 for as_dir in $gcc_cv_tool_dirs
14144 test -z "$as_dir" && as_dir=.
14145 for ac_exec_ext in '' $ac_executable_extensions; do
14146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14147 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14148 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14158 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14159 if test -n "$AR_FOR_TARGET"; then
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14161 $as_echo "$AR_FOR_TARGET" >&6; }
14163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14164 $as_echo "no
" >&6; }
14169 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14172 if test -n "$AR_FOR_TARGET"; then
14173 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14174 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14175 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14178 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14179 for ncn_progname in ar; do
14180 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14181 set dummy ${ncn_progname}; ac_word=$2
14182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14183 $as_echo_n "checking
for $ac_word...
" >&6; }
14184 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14185 $as_echo_n "(cached
) " >&6
14187 if test -n "$AR_FOR_TARGET"; then
14188 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14191 for as_dir in $PATH
14194 test -z "$as_dir" && as_dir=.
14195 for ac_exec_ext in '' $ac_executable_extensions; do
14196 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14197 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14198 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14207 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14208 if test -n "$AR_FOR_TARGET"; then
14209 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14210 $as_echo "$AR_FOR_TARGET" >&6; }
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14213 $as_echo "no
" >&6; }
14220 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14221 for ncn_progname in ar; do
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14223 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14224 if test -x $with_build_time_tools/${ncn_progname}; then
14225 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14227 $as_echo "yes" >&6; }
14230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14231 $as_echo "no
" >&6; }
14236 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14237 for ncn_progname in ar; do
14238 if test -n "$ncn_target_tool_prefix"; then
14239 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14240 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14242 $as_echo_n "checking
for $ac_word...
" >&6; }
14243 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14244 $as_echo_n "(cached
) " >&6
14246 if test -n "$AR_FOR_TARGET"; then
14247 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14250 for as_dir in $PATH
14253 test -z "$as_dir" && as_dir=.
14254 for ac_exec_ext in '' $ac_executable_extensions; do
14255 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14256 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14257 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14266 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14267 if test -n "$AR_FOR_TARGET"; then
14268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14269 $as_echo "$AR_FOR_TARGET" >&6; }
14271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14272 $as_echo "no
" >&6; }
14277 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14278 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14279 set dummy ${ncn_progname}; ac_word=$2
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14281 $as_echo_n "checking
for $ac_word...
" >&6; }
14282 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14283 $as_echo_n "(cached
) " >&6
14285 if test -n "$AR_FOR_TARGET"; then
14286 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14289 for as_dir in $PATH
14292 test -z "$as_dir" && as_dir=.
14293 for ac_exec_ext in '' $ac_executable_extensions; do
14294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14295 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14296 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14305 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14306 if test -n "$AR_FOR_TARGET"; then
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14308 $as_echo "$AR_FOR_TARGET" >&6; }
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14311 $as_echo "no
" >&6; }
14316 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14320 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14322 if test $build = $target ; then
14325 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14328 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14332 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14338 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14339 if test -n "$with_build_time_tools"; then
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14341 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14342 if test -x $with_build_time_tools/as; then
14343 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14344 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14346 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14349 $as_echo "no
" >&6; }
14351 elif test $build != $host && test $have_gcc_for_target = yes; then
14352 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14353 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14354 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14357 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14358 # Extract the first word of "as
", so it can be a program name with args.
14359 set dummy as; ac_word=$2
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14361 $as_echo_n "checking
for $ac_word...
" >&6; }
14362 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14363 $as_echo_n "(cached
) " >&6
14365 case $AS_FOR_TARGET in
14367 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14371 for as_dir in $gcc_cv_tool_dirs
14374 test -z "$as_dir" && as_dir=.
14375 for ac_exec_ext in '' $ac_executable_extensions; do
14376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14377 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14378 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14388 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14389 if test -n "$AS_FOR_TARGET"; then
14390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14391 $as_echo "$AS_FOR_TARGET" >&6; }
14393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14394 $as_echo "no
" >&6; }
14399 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14402 if test -n "$AS_FOR_TARGET"; then
14403 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14404 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14405 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14408 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14409 for ncn_progname in as; do
14410 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14411 set dummy ${ncn_progname}; ac_word=$2
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14413 $as_echo_n "checking
for $ac_word...
" >&6; }
14414 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14415 $as_echo_n "(cached
) " >&6
14417 if test -n "$AS_FOR_TARGET"; then
14418 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14421 for as_dir in $PATH
14424 test -z "$as_dir" && as_dir=.
14425 for ac_exec_ext in '' $ac_executable_extensions; do
14426 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14427 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14428 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14437 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14438 if test -n "$AS_FOR_TARGET"; then
14439 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14440 $as_echo "$AS_FOR_TARGET" >&6; }
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14443 $as_echo "no
" >&6; }
14450 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14451 for ncn_progname in as; do
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14453 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14454 if test -x $with_build_time_tools/${ncn_progname}; then
14455 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14457 $as_echo "yes" >&6; }
14460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14461 $as_echo "no
" >&6; }
14466 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14467 for ncn_progname in as; do
14468 if test -n "$ncn_target_tool_prefix"; then
14469 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14470 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14472 $as_echo_n "checking
for $ac_word...
" >&6; }
14473 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14474 $as_echo_n "(cached
) " >&6
14476 if test -n "$AS_FOR_TARGET"; then
14477 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14480 for as_dir in $PATH
14483 test -z "$as_dir" && as_dir=.
14484 for ac_exec_ext in '' $ac_executable_extensions; do
14485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14486 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14487 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14496 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14497 if test -n "$AS_FOR_TARGET"; then
14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14499 $as_echo "$AS_FOR_TARGET" >&6; }
14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14502 $as_echo "no
" >&6; }
14507 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14508 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14509 set dummy ${ncn_progname}; ac_word=$2
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14511 $as_echo_n "checking
for $ac_word...
" >&6; }
14512 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14513 $as_echo_n "(cached
) " >&6
14515 if test -n "$AS_FOR_TARGET"; then
14516 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14518 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14519 for as_dir in $PATH
14522 test -z "$as_dir" && as_dir=.
14523 for ac_exec_ext in '' $ac_executable_extensions; do
14524 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14525 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14526 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14535 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14536 if test -n "$AS_FOR_TARGET"; then
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14538 $as_echo "$AS_FOR_TARGET" >&6; }
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14541 $as_echo "no
" >&6; }
14546 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14550 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14552 if test $build = $target ; then
14555 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14558 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14562 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14568 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14569 if test -n "$with_build_time_tools"; then
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14571 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14572 if test -x $with_build_time_tools/dlltool; then
14573 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14574 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14576 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14578 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14579 $as_echo "no
" >&6; }
14581 elif test $build != $host && test $have_gcc_for_target = yes; then
14582 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14583 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14584 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14587 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14588 # Extract the first word of "dlltool
", so it can be a program name with args.
14589 set dummy dlltool; ac_word=$2
14590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14591 $as_echo_n "checking
for $ac_word...
" >&6; }
14592 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14593 $as_echo_n "(cached
) " >&6
14595 case $DLLTOOL_FOR_TARGET in
14597 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14601 for as_dir in $gcc_cv_tool_dirs
14604 test -z "$as_dir" && as_dir=.
14605 for ac_exec_ext in '' $ac_executable_extensions; do
14606 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14607 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14608 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14618 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14619 if test -n "$DLLTOOL_FOR_TARGET"; then
14620 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14621 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14624 $as_echo "no
" >&6; }
14629 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14632 if test -n "$DLLTOOL_FOR_TARGET"; then
14633 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14634 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14635 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14638 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14639 for ncn_progname in dlltool; do
14640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14641 set dummy ${ncn_progname}; ac_word=$2
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14643 $as_echo_n "checking
for $ac_word...
" >&6; }
14644 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14645 $as_echo_n "(cached
) " >&6
14647 if test -n "$DLLTOOL_FOR_TARGET"; then
14648 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14651 for as_dir in $PATH
14654 test -z "$as_dir" && as_dir=.
14655 for ac_exec_ext in '' $ac_executable_extensions; do
14656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14657 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14658 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14667 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14668 if test -n "$DLLTOOL_FOR_TARGET"; then
14669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14670 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14673 $as_echo "no
" >&6; }
14680 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14681 for ncn_progname in dlltool; do
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14683 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14684 if test -x $with_build_time_tools/${ncn_progname}; then
14685 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14687 $as_echo "yes" >&6; }
14690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14691 $as_echo "no
" >&6; }
14696 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14697 for ncn_progname in dlltool; do
14698 if test -n "$ncn_target_tool_prefix"; then
14699 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14700 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14702 $as_echo_n "checking
for $ac_word...
" >&6; }
14703 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14704 $as_echo_n "(cached
) " >&6
14706 if test -n "$DLLTOOL_FOR_TARGET"; then
14707 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14710 for as_dir in $PATH
14713 test -z "$as_dir" && as_dir=.
14714 for ac_exec_ext in '' $ac_executable_extensions; do
14715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14716 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14717 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14726 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14727 if test -n "$DLLTOOL_FOR_TARGET"; then
14728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14729 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14732 $as_echo "no
" >&6; }
14737 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14738 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14739 set dummy ${ncn_progname}; ac_word=$2
14740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14741 $as_echo_n "checking
for $ac_word...
" >&6; }
14742 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14743 $as_echo_n "(cached
) " >&6
14745 if test -n "$DLLTOOL_FOR_TARGET"; then
14746 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14749 for as_dir in $PATH
14752 test -z "$as_dir" && as_dir=.
14753 for ac_exec_ext in '' $ac_executable_extensions; do
14754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14755 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14756 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14765 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14766 if test -n "$DLLTOOL_FOR_TARGET"; then
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14768 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14771 $as_echo "no
" >&6; }
14776 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14780 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14782 if test $build = $target ; then
14783 DLLTOOL_FOR_TARGET="$2"
14785 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14788 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14792 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14798 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14799 if test -n "$with_build_time_tools"; then
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
14801 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
14802 if test -x $with_build_time_tools/dsymutil; then
14803 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14804 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14806 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14808 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14809 $as_echo "no
" >&6; }
14811 elif test $build != $host && test $have_gcc_for_target = yes; then
14812 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14813 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14814 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14817 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14818 # Extract the first word of "dsymutil
", so it can be a program name with args.
14819 set dummy dsymutil; ac_word=$2
14820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14821 $as_echo_n "checking
for $ac_word...
" >&6; }
14822 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14823 $as_echo_n "(cached
) " >&6
14825 case $DSYMUTIL_FOR_TARGET in
14827 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14831 for as_dir in $gcc_cv_tool_dirs
14834 test -z "$as_dir" && as_dir=.
14835 for ac_exec_ext in '' $ac_executable_extensions; do
14836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14837 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14838 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14848 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14849 if test -n "$DSYMUTIL_FOR_TARGET"; then
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14851 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14854 $as_echo "no
" >&6; }
14859 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14862 if test -n "$DSYMUTIL_FOR_TARGET"; then
14863 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14864 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14865 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14868 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14869 for ncn_progname in dsymutil; do
14870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14871 set dummy ${ncn_progname}; ac_word=$2
14872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14873 $as_echo_n "checking
for $ac_word...
" >&6; }
14874 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14875 $as_echo_n "(cached
) " >&6
14877 if test -n "$DSYMUTIL_FOR_TARGET"; then
14878 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14881 for as_dir in $PATH
14884 test -z "$as_dir" && as_dir=.
14885 for ac_exec_ext in '' $ac_executable_extensions; do
14886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14887 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14888 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14897 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14898 if test -n "$DSYMUTIL_FOR_TARGET"; then
14899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14900 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14903 $as_echo "no
" >&6; }
14910 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14911 for ncn_progname in dsymutil; do
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14913 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14914 if test -x $with_build_time_tools/${ncn_progname}; then
14915 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14916 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14917 $as_echo "yes" >&6; }
14920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14921 $as_echo "no
" >&6; }
14926 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14927 for ncn_progname in dsymutil; do
14928 if test -n "$ncn_target_tool_prefix"; then
14929 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14930 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14932 $as_echo_n "checking
for $ac_word...
" >&6; }
14933 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14934 $as_echo_n "(cached
) " >&6
14936 if test -n "$DSYMUTIL_FOR_TARGET"; then
14937 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14940 for as_dir in $PATH
14943 test -z "$as_dir" && as_dir=.
14944 for ac_exec_ext in '' $ac_executable_extensions; do
14945 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14946 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14947 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14956 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14957 if test -n "$DSYMUTIL_FOR_TARGET"; then
14958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14959 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14962 $as_echo "no
" >&6; }
14967 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14968 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14969 set dummy ${ncn_progname}; ac_word=$2
14970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14971 $as_echo_n "checking
for $ac_word...
" >&6; }
14972 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14973 $as_echo_n "(cached
) " >&6
14975 if test -n "$DSYMUTIL_FOR_TARGET"; then
14976 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14979 for as_dir in $PATH
14982 test -z "$as_dir" && as_dir=.
14983 for ac_exec_ext in '' $ac_executable_extensions; do
14984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14985 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14986 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14995 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14996 if test -n "$DSYMUTIL_FOR_TARGET"; then
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14998 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15001 $as_echo "no
" >&6; }
15006 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15010 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15012 if test $build = $target ; then
15013 DSYMUTIL_FOR_TARGET="$2"
15015 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15018 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15022 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15028 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15029 if test -n "$with_build_time_tools"; then
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
15031 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
15032 if test -x $with_build_time_tools/ld; then
15033 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15034 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
15036 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15038 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15039 $as_echo "no
" >&6; }
15041 elif test $build != $host && test $have_gcc_for_target = yes; then
15042 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15043 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15044 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15047 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15048 # Extract the first word of "ld
", so it can be a program name with args.
15049 set dummy ld; ac_word=$2
15050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15051 $as_echo_n "checking
for $ac_word...
" >&6; }
15052 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15053 $as_echo_n "(cached
) " >&6
15055 case $LD_FOR_TARGET in
15057 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15061 for as_dir in $gcc_cv_tool_dirs
15064 test -z "$as_dir" && as_dir=.
15065 for ac_exec_ext in '' $ac_executable_extensions; do
15066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15067 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15068 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15078 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15079 if test -n "$LD_FOR_TARGET"; then
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15081 $as_echo "$LD_FOR_TARGET" >&6; }
15083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15084 $as_echo "no
" >&6; }
15089 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15092 if test -n "$LD_FOR_TARGET"; then
15093 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15094 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15095 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15098 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15099 for ncn_progname in ld; do
15100 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15101 set dummy ${ncn_progname}; ac_word=$2
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15103 $as_echo_n "checking
for $ac_word...
" >&6; }
15104 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15105 $as_echo_n "(cached
) " >&6
15107 if test -n "$LD_FOR_TARGET"; then
15108 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15111 for as_dir in $PATH
15114 test -z "$as_dir" && as_dir=.
15115 for ac_exec_ext in '' $ac_executable_extensions; do
15116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15117 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15118 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15127 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15128 if test -n "$LD_FOR_TARGET"; then
15129 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15130 $as_echo "$LD_FOR_TARGET" >&6; }
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15133 $as_echo "no
" >&6; }
15140 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15141 for ncn_progname in ld; do
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15143 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15144 if test -x $with_build_time_tools/${ncn_progname}; then
15145 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15147 $as_echo "yes" >&6; }
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15151 $as_echo "no
" >&6; }
15156 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15157 for ncn_progname in ld; do
15158 if test -n "$ncn_target_tool_prefix"; then
15159 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15160 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15162 $as_echo_n "checking
for $ac_word...
" >&6; }
15163 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15164 $as_echo_n "(cached
) " >&6
15166 if test -n "$LD_FOR_TARGET"; then
15167 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15170 for as_dir in $PATH
15173 test -z "$as_dir" && as_dir=.
15174 for ac_exec_ext in '' $ac_executable_extensions; do
15175 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15176 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15177 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15186 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15187 if test -n "$LD_FOR_TARGET"; then
15188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15189 $as_echo "$LD_FOR_TARGET" >&6; }
15191 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15192 $as_echo "no
" >&6; }
15197 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15198 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15199 set dummy ${ncn_progname}; ac_word=$2
15200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15201 $as_echo_n "checking
for $ac_word...
" >&6; }
15202 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15203 $as_echo_n "(cached
) " >&6
15205 if test -n "$LD_FOR_TARGET"; then
15206 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15209 for as_dir in $PATH
15212 test -z "$as_dir" && as_dir=.
15213 for ac_exec_ext in '' $ac_executable_extensions; do
15214 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15215 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15216 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15225 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15226 if test -n "$LD_FOR_TARGET"; then
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15228 $as_echo "$LD_FOR_TARGET" >&6; }
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15231 $as_echo "no
" >&6; }
15236 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15240 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15242 if test $build = $target ; then
15245 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15248 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15252 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15258 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15259 if test -n "$with_build_time_tools"; then
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
15261 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
15262 if test -x $with_build_time_tools/lipo; then
15263 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15264 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
15266 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15268 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15269 $as_echo "no
" >&6; }
15271 elif test $build != $host && test $have_gcc_for_target = yes; then
15272 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15273 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15274 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15277 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15278 # Extract the first word of "lipo
", so it can be a program name with args.
15279 set dummy lipo; ac_word=$2
15280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15281 $as_echo_n "checking
for $ac_word...
" >&6; }
15282 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15283 $as_echo_n "(cached
) " >&6
15285 case $LIPO_FOR_TARGET in
15287 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15291 for as_dir in $gcc_cv_tool_dirs
15294 test -z "$as_dir" && as_dir=.
15295 for ac_exec_ext in '' $ac_executable_extensions; do
15296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15297 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15298 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15308 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15309 if test -n "$LIPO_FOR_TARGET"; then
15310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15311 $as_echo "$LIPO_FOR_TARGET" >&6; }
15313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15314 $as_echo "no
" >&6; }
15319 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15322 if test -n "$LIPO_FOR_TARGET"; then
15323 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15324 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15325 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15328 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15329 for ncn_progname in lipo; do
15330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15331 set dummy ${ncn_progname}; ac_word=$2
15332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15333 $as_echo_n "checking
for $ac_word...
" >&6; }
15334 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15335 $as_echo_n "(cached
) " >&6
15337 if test -n "$LIPO_FOR_TARGET"; then
15338 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15341 for as_dir in $PATH
15344 test -z "$as_dir" && as_dir=.
15345 for ac_exec_ext in '' $ac_executable_extensions; do
15346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15347 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15348 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15357 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15358 if test -n "$LIPO_FOR_TARGET"; then
15359 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15360 $as_echo "$LIPO_FOR_TARGET" >&6; }
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15363 $as_echo "no
" >&6; }
15370 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15371 for ncn_progname in lipo; do
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15373 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15374 if test -x $with_build_time_tools/${ncn_progname}; then
15375 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15377 $as_echo "yes" >&6; }
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15381 $as_echo "no
" >&6; }
15386 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15387 for ncn_progname in lipo; do
15388 if test -n "$ncn_target_tool_prefix"; then
15389 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15390 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15392 $as_echo_n "checking
for $ac_word...
" >&6; }
15393 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15394 $as_echo_n "(cached
) " >&6
15396 if test -n "$LIPO_FOR_TARGET"; then
15397 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15400 for as_dir in $PATH
15403 test -z "$as_dir" && as_dir=.
15404 for ac_exec_ext in '' $ac_executable_extensions; do
15405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15406 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15407 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15416 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15417 if test -n "$LIPO_FOR_TARGET"; then
15418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15419 $as_echo "$LIPO_FOR_TARGET" >&6; }
15421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15422 $as_echo "no
" >&6; }
15427 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15428 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15429 set dummy ${ncn_progname}; ac_word=$2
15430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15431 $as_echo_n "checking
for $ac_word...
" >&6; }
15432 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15433 $as_echo_n "(cached
) " >&6
15435 if test -n "$LIPO_FOR_TARGET"; then
15436 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15439 for as_dir in $PATH
15442 test -z "$as_dir" && as_dir=.
15443 for ac_exec_ext in '' $ac_executable_extensions; do
15444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15445 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15446 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15455 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15456 if test -n "$LIPO_FOR_TARGET"; then
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15458 $as_echo "$LIPO_FOR_TARGET" >&6; }
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15461 $as_echo "no
" >&6; }
15466 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15470 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15472 if test $build = $target ; then
15473 LIPO_FOR_TARGET="$2"
15475 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15478 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15482 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15488 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15489 if test -n "$with_build_time_tools"; then
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15491 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15492 if test -x $with_build_time_tools/nm; then
15493 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15494 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15496 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15499 $as_echo "no
" >&6; }
15501 elif test $build != $host && test $have_gcc_for_target = yes; then
15502 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15503 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15504 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15507 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15508 # Extract the first word of "nm
", so it can be a program name with args.
15509 set dummy nm; ac_word=$2
15510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15511 $as_echo_n "checking
for $ac_word...
" >&6; }
15512 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15513 $as_echo_n "(cached
) " >&6
15515 case $NM_FOR_TARGET in
15517 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15521 for as_dir in $gcc_cv_tool_dirs
15524 test -z "$as_dir" && as_dir=.
15525 for ac_exec_ext in '' $ac_executable_extensions; do
15526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15527 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15528 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15538 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15539 if test -n "$NM_FOR_TARGET"; then
15540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15541 $as_echo "$NM_FOR_TARGET" >&6; }
15543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15544 $as_echo "no
" >&6; }
15549 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15552 if test -n "$NM_FOR_TARGET"; then
15553 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15554 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15555 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15558 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15559 for ncn_progname in nm; do
15560 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15561 set dummy ${ncn_progname}; ac_word=$2
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15563 $as_echo_n "checking
for $ac_word...
" >&6; }
15564 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15565 $as_echo_n "(cached
) " >&6
15567 if test -n "$NM_FOR_TARGET"; then
15568 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15571 for as_dir in $PATH
15574 test -z "$as_dir" && as_dir=.
15575 for ac_exec_ext in '' $ac_executable_extensions; do
15576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15577 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15578 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15587 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15588 if test -n "$NM_FOR_TARGET"; then
15589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15590 $as_echo "$NM_FOR_TARGET" >&6; }
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15593 $as_echo "no
" >&6; }
15600 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15601 for ncn_progname in nm; do
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15603 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15604 if test -x $with_build_time_tools/${ncn_progname}; then
15605 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15607 $as_echo "yes" >&6; }
15610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15611 $as_echo "no
" >&6; }
15616 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15617 for ncn_progname in nm; do
15618 if test -n "$ncn_target_tool_prefix"; then
15619 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15620 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15622 $as_echo_n "checking
for $ac_word...
" >&6; }
15623 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15624 $as_echo_n "(cached
) " >&6
15626 if test -n "$NM_FOR_TARGET"; then
15627 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15630 for as_dir in $PATH
15633 test -z "$as_dir" && as_dir=.
15634 for ac_exec_ext in '' $ac_executable_extensions; do
15635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15636 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15637 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15646 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15647 if test -n "$NM_FOR_TARGET"; then
15648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15649 $as_echo "$NM_FOR_TARGET" >&6; }
15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15652 $as_echo "no
" >&6; }
15657 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15658 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15659 set dummy ${ncn_progname}; ac_word=$2
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15661 $as_echo_n "checking
for $ac_word...
" >&6; }
15662 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15663 $as_echo_n "(cached
) " >&6
15665 if test -n "$NM_FOR_TARGET"; then
15666 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15669 for as_dir in $PATH
15672 test -z "$as_dir" && as_dir=.
15673 for ac_exec_ext in '' $ac_executable_extensions; do
15674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15675 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15676 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15685 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15686 if test -n "$NM_FOR_TARGET"; then
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15688 $as_echo "$NM_FOR_TARGET" >&6; }
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15691 $as_echo "no
" >&6; }
15696 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15700 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15702 if test $build = $target ; then
15705 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15708 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15712 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15718 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15719 if test -n "$with_build_time_tools"; then
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15721 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15722 if test -x $with_build_time_tools/objcopy; then
15723 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15724 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15725 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15726 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15729 $as_echo "no
" >&6; }
15731 elif test $build != $host && test $have_gcc_for_target = yes; then
15732 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15733 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15734 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15737 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15738 # Extract the first word of "objcopy
", so it can be a program name with args.
15739 set dummy objcopy; ac_word=$2
15740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15741 $as_echo_n "checking
for $ac_word...
" >&6; }
15742 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15743 $as_echo_n "(cached
) " >&6
15745 case $OBJCOPY_FOR_TARGET in
15747 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15751 for as_dir in $gcc_cv_tool_dirs
15754 test -z "$as_dir" && as_dir=.
15755 for ac_exec_ext in '' $ac_executable_extensions; do
15756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15757 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15758 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15768 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15769 if test -n "$OBJCOPY_FOR_TARGET"; then
15770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15771 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15774 $as_echo "no
" >&6; }
15779 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15782 if test -n "$OBJCOPY_FOR_TARGET"; then
15783 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15784 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15785 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15788 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15789 for ncn_progname in objcopy; do
15790 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15791 set dummy ${ncn_progname}; ac_word=$2
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15793 $as_echo_n "checking
for $ac_word...
" >&6; }
15794 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15795 $as_echo_n "(cached
) " >&6
15797 if test -n "$OBJCOPY_FOR_TARGET"; then
15798 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15801 for as_dir in $PATH
15804 test -z "$as_dir" && as_dir=.
15805 for ac_exec_ext in '' $ac_executable_extensions; do
15806 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15807 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15808 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15817 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15818 if test -n "$OBJCOPY_FOR_TARGET"; then
15819 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15820 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15823 $as_echo "no
" >&6; }
15830 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15831 for ncn_progname in objcopy; do
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15833 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15834 if test -x $with_build_time_tools/${ncn_progname}; then
15835 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15836 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15837 $as_echo "yes" >&6; }
15840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15841 $as_echo "no
" >&6; }
15846 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15847 for ncn_progname in objcopy; do
15848 if test -n "$ncn_target_tool_prefix"; then
15849 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15850 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15852 $as_echo_n "checking
for $ac_word...
" >&6; }
15853 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15854 $as_echo_n "(cached
) " >&6
15856 if test -n "$OBJCOPY_FOR_TARGET"; then
15857 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15859 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15860 for as_dir in $PATH
15863 test -z "$as_dir" && as_dir=.
15864 for ac_exec_ext in '' $ac_executable_extensions; do
15865 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15866 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15867 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15876 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15877 if test -n "$OBJCOPY_FOR_TARGET"; then
15878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15879 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15882 $as_echo "no
" >&6; }
15887 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15888 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15889 set dummy ${ncn_progname}; ac_word=$2
15890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15891 $as_echo_n "checking
for $ac_word...
" >&6; }
15892 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15893 $as_echo_n "(cached
) " >&6
15895 if test -n "$OBJCOPY_FOR_TARGET"; then
15896 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15899 for as_dir in $PATH
15902 test -z "$as_dir" && as_dir=.
15903 for ac_exec_ext in '' $ac_executable_extensions; do
15904 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15905 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15906 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15915 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15916 if test -n "$OBJCOPY_FOR_TARGET"; then
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15918 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15921 $as_echo "no
" >&6; }
15926 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15930 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15932 if test $build = $target ; then
15933 OBJCOPY_FOR_TARGET="$2"
15935 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15938 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15942 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15948 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15949 if test -n "$with_build_time_tools"; then
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
15951 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
15952 if test -x $with_build_time_tools/objdump; then
15953 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15954 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15955 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15956 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15958 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15959 $as_echo "no
" >&6; }
15961 elif test $build != $host && test $have_gcc_for_target = yes; then
15962 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15963 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15964 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15967 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15968 # Extract the first word of "objdump
", so it can be a program name with args.
15969 set dummy objdump; ac_word=$2
15970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15971 $as_echo_n "checking
for $ac_word...
" >&6; }
15972 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15973 $as_echo_n "(cached
) " >&6
15975 case $OBJDUMP_FOR_TARGET in
15977 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15981 for as_dir in $gcc_cv_tool_dirs
15984 test -z "$as_dir" && as_dir=.
15985 for ac_exec_ext in '' $ac_executable_extensions; do
15986 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15987 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15988 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15998 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15999 if test -n "$OBJDUMP_FOR_TARGET"; then
16000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16001 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16004 $as_echo "no
" >&6; }
16009 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16012 if test -n "$OBJDUMP_FOR_TARGET"; then
16013 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16014 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16015 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16018 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16019 for ncn_progname in objdump; do
16020 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16021 set dummy ${ncn_progname}; ac_word=$2
16022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16023 $as_echo_n "checking
for $ac_word...
" >&6; }
16024 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16025 $as_echo_n "(cached
) " >&6
16027 if test -n "$OBJDUMP_FOR_TARGET"; then
16028 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16031 for as_dir in $PATH
16034 test -z "$as_dir" && as_dir=.
16035 for ac_exec_ext in '' $ac_executable_extensions; do
16036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16037 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16038 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16047 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16048 if test -n "$OBJDUMP_FOR_TARGET"; then
16049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16050 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16053 $as_echo "no
" >&6; }
16060 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16061 for ncn_progname in objdump; do
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16063 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16064 if test -x $with_build_time_tools/${ncn_progname}; then
16065 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16067 $as_echo "yes" >&6; }
16070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16071 $as_echo "no
" >&6; }
16076 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16077 for ncn_progname in objdump; do
16078 if test -n "$ncn_target_tool_prefix"; then
16079 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16080 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16082 $as_echo_n "checking
for $ac_word...
" >&6; }
16083 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16084 $as_echo_n "(cached
) " >&6
16086 if test -n "$OBJDUMP_FOR_TARGET"; then
16087 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16090 for as_dir in $PATH
16093 test -z "$as_dir" && as_dir=.
16094 for ac_exec_ext in '' $ac_executable_extensions; do
16095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16096 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16097 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16106 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16107 if test -n "$OBJDUMP_FOR_TARGET"; then
16108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16109 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16112 $as_echo "no
" >&6; }
16117 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16118 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16119 set dummy ${ncn_progname}; ac_word=$2
16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16121 $as_echo_n "checking
for $ac_word...
" >&6; }
16122 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16123 $as_echo_n "(cached
) " >&6
16125 if test -n "$OBJDUMP_FOR_TARGET"; then
16126 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16129 for as_dir in $PATH
16132 test -z "$as_dir" && as_dir=.
16133 for ac_exec_ext in '' $ac_executable_extensions; do
16134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16135 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16136 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16145 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16146 if test -n "$OBJDUMP_FOR_TARGET"; then
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16148 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16151 $as_echo "no
" >&6; }
16156 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16160 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16162 if test $build = $target ; then
16163 OBJDUMP_FOR_TARGET="$2"
16165 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16168 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16172 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16178 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16179 if test -n "$with_build_time_tools"; then
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
16181 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
16182 if test -x $with_build_time_tools/otool; then
16183 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16184 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16186 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16189 $as_echo "no
" >&6; }
16191 elif test $build != $host && test $have_gcc_for_target = yes; then
16192 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16193 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16194 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16197 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16198 # Extract the first word of "otool
", so it can be a program name with args.
16199 set dummy otool; ac_word=$2
16200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16201 $as_echo_n "checking
for $ac_word...
" >&6; }
16202 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16203 $as_echo_n "(cached
) " >&6
16205 case $OTOOL_FOR_TARGET in
16207 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16211 for as_dir in $gcc_cv_tool_dirs
16214 test -z "$as_dir" && as_dir=.
16215 for ac_exec_ext in '' $ac_executable_extensions; do
16216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16217 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16218 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16228 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16229 if test -n "$OTOOL_FOR_TARGET"; then
16230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16231 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16234 $as_echo "no
" >&6; }
16239 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16242 if test -n "$OTOOL_FOR_TARGET"; then
16243 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16244 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16245 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16248 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16249 for ncn_progname in otool; do
16250 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16251 set dummy ${ncn_progname}; ac_word=$2
16252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16253 $as_echo_n "checking
for $ac_word...
" >&6; }
16254 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16255 $as_echo_n "(cached
) " >&6
16257 if test -n "$OTOOL_FOR_TARGET"; then
16258 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16261 for as_dir in $PATH
16264 test -z "$as_dir" && as_dir=.
16265 for ac_exec_ext in '' $ac_executable_extensions; do
16266 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16267 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16268 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16277 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16278 if test -n "$OTOOL_FOR_TARGET"; then
16279 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16280 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16283 $as_echo "no
" >&6; }
16290 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16291 for ncn_progname in otool; do
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16293 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16294 if test -x $with_build_time_tools/${ncn_progname}; then
16295 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16297 $as_echo "yes" >&6; }
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16301 $as_echo "no
" >&6; }
16306 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16307 for ncn_progname in otool; do
16308 if test -n "$ncn_target_tool_prefix"; then
16309 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16310 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16312 $as_echo_n "checking
for $ac_word...
" >&6; }
16313 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16314 $as_echo_n "(cached
) " >&6
16316 if test -n "$OTOOL_FOR_TARGET"; then
16317 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16320 for as_dir in $PATH
16323 test -z "$as_dir" && as_dir=.
16324 for ac_exec_ext in '' $ac_executable_extensions; do
16325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16326 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16327 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16336 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16337 if test -n "$OTOOL_FOR_TARGET"; then
16338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16339 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16342 $as_echo "no
" >&6; }
16347 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16348 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16349 set dummy ${ncn_progname}; ac_word=$2
16350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16351 $as_echo_n "checking
for $ac_word...
" >&6; }
16352 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16353 $as_echo_n "(cached
) " >&6
16355 if test -n "$OTOOL_FOR_TARGET"; then
16356 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16359 for as_dir in $PATH
16362 test -z "$as_dir" && as_dir=.
16363 for ac_exec_ext in '' $ac_executable_extensions; do
16364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16365 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16366 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16375 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16376 if test -n "$OTOOL_FOR_TARGET"; then
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16378 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16381 $as_echo "no
" >&6; }
16386 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16390 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16392 if test $build = $target ; then
16393 OTOOL_FOR_TARGET="$2"
16395 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16398 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16402 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16408 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16409 if test -n "$with_build_time_tools"; then
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16411 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16412 if test -x $with_build_time_tools/ranlib; then
16413 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16414 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16416 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16419 $as_echo "no
" >&6; }
16421 elif test $build != $host && test $have_gcc_for_target = yes; then
16422 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16423 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16424 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16427 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16428 # Extract the first word of "ranlib
", so it can be a program name with args.
16429 set dummy ranlib; ac_word=$2
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16431 $as_echo_n "checking
for $ac_word...
" >&6; }
16432 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16433 $as_echo_n "(cached
) " >&6
16435 case $RANLIB_FOR_TARGET in
16437 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16441 for as_dir in $gcc_cv_tool_dirs
16444 test -z "$as_dir" && as_dir=.
16445 for ac_exec_ext in '' $ac_executable_extensions; do
16446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16447 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16448 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16458 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16459 if test -n "$RANLIB_FOR_TARGET"; then
16460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16461 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16464 $as_echo "no
" >&6; }
16469 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16472 if test -n "$RANLIB_FOR_TARGET"; then
16473 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16474 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16475 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16478 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16479 for ncn_progname in ranlib; do
16480 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16481 set dummy ${ncn_progname}; ac_word=$2
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16483 $as_echo_n "checking
for $ac_word...
" >&6; }
16484 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16485 $as_echo_n "(cached
) " >&6
16487 if test -n "$RANLIB_FOR_TARGET"; then
16488 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16491 for as_dir in $PATH
16494 test -z "$as_dir" && as_dir=.
16495 for ac_exec_ext in '' $ac_executable_extensions; do
16496 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16497 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16498 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16507 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16508 if test -n "$RANLIB_FOR_TARGET"; then
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16510 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16513 $as_echo "no
" >&6; }
16520 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16521 for ncn_progname in ranlib; do
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16523 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16524 if test -x $with_build_time_tools/${ncn_progname}; then
16525 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16526 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16527 $as_echo "yes" >&6; }
16530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16531 $as_echo "no
" >&6; }
16536 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16537 for ncn_progname in ranlib; do
16538 if test -n "$ncn_target_tool_prefix"; then
16539 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16540 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16542 $as_echo_n "checking
for $ac_word...
" >&6; }
16543 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16544 $as_echo_n "(cached
) " >&6
16546 if test -n "$RANLIB_FOR_TARGET"; then
16547 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16550 for as_dir in $PATH
16553 test -z "$as_dir" && as_dir=.
16554 for ac_exec_ext in '' $ac_executable_extensions; do
16555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16556 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16557 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16566 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16567 if test -n "$RANLIB_FOR_TARGET"; then
16568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16569 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16572 $as_echo "no
" >&6; }
16577 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16578 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16579 set dummy ${ncn_progname}; ac_word=$2
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16581 $as_echo_n "checking
for $ac_word...
" >&6; }
16582 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16583 $as_echo_n "(cached
) " >&6
16585 if test -n "$RANLIB_FOR_TARGET"; then
16586 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16589 for as_dir in $PATH
16592 test -z "$as_dir" && as_dir=.
16593 for ac_exec_ext in '' $ac_executable_extensions; do
16594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16595 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16596 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16605 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16606 if test -n "$RANLIB_FOR_TARGET"; then
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16608 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16611 $as_echo "no
" >&6; }
16616 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16620 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16622 if test $build = $target ; then
16623 RANLIB_FOR_TARGET="$2"
16625 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16628 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16632 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16638 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16639 if test -n "$with_build_time_tools"; then
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16641 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16642 if test -x $with_build_time_tools/readelf; then
16643 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16644 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16646 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16649 $as_echo "no
" >&6; }
16651 elif test $build != $host && test $have_gcc_for_target = yes; then
16652 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16653 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16654 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16657 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16658 # Extract the first word of "readelf
", so it can be a program name with args.
16659 set dummy readelf; ac_word=$2
16660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16661 $as_echo_n "checking
for $ac_word...
" >&6; }
16662 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16663 $as_echo_n "(cached
) " >&6
16665 case $READELF_FOR_TARGET in
16667 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16671 for as_dir in $gcc_cv_tool_dirs
16674 test -z "$as_dir" && as_dir=.
16675 for ac_exec_ext in '' $ac_executable_extensions; do
16676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16677 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16678 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16688 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16689 if test -n "$READELF_FOR_TARGET"; then
16690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16691 $as_echo "$READELF_FOR_TARGET" >&6; }
16693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16694 $as_echo "no
" >&6; }
16699 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16702 if test -n "$READELF_FOR_TARGET"; then
16703 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16704 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16705 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16708 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16709 for ncn_progname in readelf; do
16710 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16711 set dummy ${ncn_progname}; ac_word=$2
16712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16713 $as_echo_n "checking
for $ac_word...
" >&6; }
16714 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16715 $as_echo_n "(cached
) " >&6
16717 if test -n "$READELF_FOR_TARGET"; then
16718 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16721 for as_dir in $PATH
16724 test -z "$as_dir" && as_dir=.
16725 for ac_exec_ext in '' $ac_executable_extensions; do
16726 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16727 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16728 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16737 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16738 if test -n "$READELF_FOR_TARGET"; then
16739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16740 $as_echo "$READELF_FOR_TARGET" >&6; }
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16743 $as_echo "no
" >&6; }
16750 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16751 for ncn_progname in readelf; do
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16753 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16754 if test -x $with_build_time_tools/${ncn_progname}; then
16755 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16757 $as_echo "yes" >&6; }
16760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16761 $as_echo "no
" >&6; }
16766 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16767 for ncn_progname in readelf; do
16768 if test -n "$ncn_target_tool_prefix"; then
16769 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16770 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16772 $as_echo_n "checking
for $ac_word...
" >&6; }
16773 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16774 $as_echo_n "(cached
) " >&6
16776 if test -n "$READELF_FOR_TARGET"; then
16777 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16780 for as_dir in $PATH
16783 test -z "$as_dir" && as_dir=.
16784 for ac_exec_ext in '' $ac_executable_extensions; do
16785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16786 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16787 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16796 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16797 if test -n "$READELF_FOR_TARGET"; then
16798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16799 $as_echo "$READELF_FOR_TARGET" >&6; }
16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16802 $as_echo "no
" >&6; }
16807 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16808 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16809 set dummy ${ncn_progname}; ac_word=$2
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16811 $as_echo_n "checking
for $ac_word...
" >&6; }
16812 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16813 $as_echo_n "(cached
) " >&6
16815 if test -n "$READELF_FOR_TARGET"; then
16816 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16818 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16819 for as_dir in $PATH
16822 test -z "$as_dir" && as_dir=.
16823 for ac_exec_ext in '' $ac_executable_extensions; do
16824 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16825 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16826 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16835 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16836 if test -n "$READELF_FOR_TARGET"; then
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16838 $as_echo "$READELF_FOR_TARGET" >&6; }
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16841 $as_echo "no
" >&6; }
16846 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16850 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16852 if test $build = $target ; then
16853 READELF_FOR_TARGET="$2"
16855 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16858 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16862 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16868 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16869 if test -n "$with_build_time_tools"; then
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
16871 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
16872 if test -x $with_build_time_tools/strip; then
16873 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16874 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
16876 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16879 $as_echo "no
" >&6; }
16881 elif test $build != $host && test $have_gcc_for_target = yes; then
16882 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16883 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16884 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16887 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16888 # Extract the first word of "strip
", so it can be a program name with args.
16889 set dummy strip; ac_word=$2
16890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16891 $as_echo_n "checking
for $ac_word...
" >&6; }
16892 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16893 $as_echo_n "(cached
) " >&6
16895 case $STRIP_FOR_TARGET in
16897 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16900 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16901 for as_dir in $gcc_cv_tool_dirs
16904 test -z "$as_dir" && as_dir=.
16905 for ac_exec_ext in '' $ac_executable_extensions; do
16906 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16907 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16908 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16918 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16919 if test -n "$STRIP_FOR_TARGET"; then
16920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16921 $as_echo "$STRIP_FOR_TARGET" >&6; }
16923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16924 $as_echo "no
" >&6; }
16929 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16932 if test -n "$STRIP_FOR_TARGET"; then
16933 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16934 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16935 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16938 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16939 for ncn_progname in strip; do
16940 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16941 set dummy ${ncn_progname}; ac_word=$2
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16943 $as_echo_n "checking
for $ac_word...
" >&6; }
16944 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16945 $as_echo_n "(cached
) " >&6
16947 if test -n "$STRIP_FOR_TARGET"; then
16948 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16951 for as_dir in $PATH
16954 test -z "$as_dir" && as_dir=.
16955 for ac_exec_ext in '' $ac_executable_extensions; do
16956 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16957 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16958 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16967 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16968 if test -n "$STRIP_FOR_TARGET"; then
16969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16970 $as_echo "$STRIP_FOR_TARGET" >&6; }
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16973 $as_echo "no
" >&6; }
16980 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16981 for ncn_progname in strip; do
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16983 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16984 if test -x $with_build_time_tools/${ncn_progname}; then
16985 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16987 $as_echo "yes" >&6; }
16990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16991 $as_echo "no
" >&6; }
16996 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16997 for ncn_progname in strip; do
16998 if test -n "$ncn_target_tool_prefix"; then
16999 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17000 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17002 $as_echo_n "checking
for $ac_word...
" >&6; }
17003 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17004 $as_echo_n "(cached
) " >&6
17006 if test -n "$STRIP_FOR_TARGET"; then
17007 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17010 for as_dir in $PATH
17013 test -z "$as_dir" && as_dir=.
17014 for ac_exec_ext in '' $ac_executable_extensions; do
17015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17016 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17017 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17026 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17027 if test -n "$STRIP_FOR_TARGET"; then
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17029 $as_echo "$STRIP_FOR_TARGET" >&6; }
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17032 $as_echo "no
" >&6; }
17037 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17039 set dummy ${ncn_progname}; ac_word=$2
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17041 $as_echo_n "checking
for $ac_word...
" >&6; }
17042 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17043 $as_echo_n "(cached
) " >&6
17045 if test -n "$STRIP_FOR_TARGET"; then
17046 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17049 for as_dir in $PATH
17052 test -z "$as_dir" && as_dir=.
17053 for ac_exec_ext in '' $ac_executable_extensions; do
17054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17055 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17056 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17065 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17066 if test -n "$STRIP_FOR_TARGET"; then
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17068 $as_echo "$STRIP_FOR_TARGET" >&6; }
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17071 $as_echo "no
" >&6; }
17076 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17080 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17082 if test $build = $target ; then
17083 STRIP_FOR_TARGET="$2"
17085 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17088 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17092 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17098 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17099 if test -n "$with_build_time_tools"; then
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
17101 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
17102 if test -x $with_build_time_tools/windres; then
17103 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17104 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17106 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17109 $as_echo "no
" >&6; }
17111 elif test $build != $host && test $have_gcc_for_target = yes; then
17112 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17113 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17114 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17117 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17118 # Extract the first word of "windres
", so it can be a program name with args.
17119 set dummy windres; ac_word=$2
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17121 $as_echo_n "checking
for $ac_word...
" >&6; }
17122 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17123 $as_echo_n "(cached
) " >&6
17125 case $WINDRES_FOR_TARGET in
17127 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17131 for as_dir in $gcc_cv_tool_dirs
17134 test -z "$as_dir" && as_dir=.
17135 for ac_exec_ext in '' $ac_executable_extensions; do
17136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17137 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17138 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17148 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17149 if test -n "$WINDRES_FOR_TARGET"; then
17150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17151 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17154 $as_echo "no
" >&6; }
17159 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17162 if test -n "$WINDRES_FOR_TARGET"; then
17163 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17164 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17165 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17168 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17169 for ncn_progname in windres; do
17170 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17171 set dummy ${ncn_progname}; ac_word=$2
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17173 $as_echo_n "checking
for $ac_word...
" >&6; }
17174 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17175 $as_echo_n "(cached
) " >&6
17177 if test -n "$WINDRES_FOR_TARGET"; then
17178 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17181 for as_dir in $PATH
17184 test -z "$as_dir" && as_dir=.
17185 for ac_exec_ext in '' $ac_executable_extensions; do
17186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17187 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17188 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17197 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17198 if test -n "$WINDRES_FOR_TARGET"; then
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17200 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17203 $as_echo "no
" >&6; }
17210 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17211 for ncn_progname in windres; do
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17213 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17214 if test -x $with_build_time_tools/${ncn_progname}; then
17215 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17217 $as_echo "yes" >&6; }
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17221 $as_echo "no
" >&6; }
17226 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17227 for ncn_progname in windres; do
17228 if test -n "$ncn_target_tool_prefix"; then
17229 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17230 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17232 $as_echo_n "checking
for $ac_word...
" >&6; }
17233 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17234 $as_echo_n "(cached
) " >&6
17236 if test -n "$WINDRES_FOR_TARGET"; then
17237 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17240 for as_dir in $PATH
17243 test -z "$as_dir" && as_dir=.
17244 for ac_exec_ext in '' $ac_executable_extensions; do
17245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17246 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17247 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17256 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17257 if test -n "$WINDRES_FOR_TARGET"; then
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17259 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17262 $as_echo "no
" >&6; }
17267 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17268 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17269 set dummy ${ncn_progname}; ac_word=$2
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17271 $as_echo_n "checking
for $ac_word...
" >&6; }
17272 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17273 $as_echo_n "(cached
) " >&6
17275 if test -n "$WINDRES_FOR_TARGET"; then
17276 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17279 for as_dir in $PATH
17282 test -z "$as_dir" && as_dir=.
17283 for ac_exec_ext in '' $ac_executable_extensions; do
17284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17285 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17286 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17295 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17296 if test -n "$WINDRES_FOR_TARGET"; then
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17298 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17301 $as_echo "no
" >&6; }
17306 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17310 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17312 if test $build = $target ; then
17313 WINDRES_FOR_TARGET="$2"
17315 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17318 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17322 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17328 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17329 if test -n "$with_build_time_tools"; then
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17331 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17332 if test -x $with_build_time_tools/windmc; then
17333 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17334 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17335 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17336 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17339 $as_echo "no
" >&6; }
17341 elif test $build != $host && test $have_gcc_for_target = yes; then
17342 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17343 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17344 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17347 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17348 # Extract the first word of "windmc
", so it can be a program name with args.
17349 set dummy windmc; ac_word=$2
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17351 $as_echo_n "checking
for $ac_word...
" >&6; }
17352 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17353 $as_echo_n "(cached
) " >&6
17355 case $WINDMC_FOR_TARGET in
17357 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17361 for as_dir in $gcc_cv_tool_dirs
17364 test -z "$as_dir" && as_dir=.
17365 for ac_exec_ext in '' $ac_executable_extensions; do
17366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17367 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17368 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17378 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17379 if test -n "$WINDMC_FOR_TARGET"; then
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17381 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17384 $as_echo "no
" >&6; }
17389 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17392 if test -n "$WINDMC_FOR_TARGET"; then
17393 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17394 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17395 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17398 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17399 for ncn_progname in windmc; do
17400 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17401 set dummy ${ncn_progname}; ac_word=$2
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17403 $as_echo_n "checking
for $ac_word...
" >&6; }
17404 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17405 $as_echo_n "(cached
) " >&6
17407 if test -n "$WINDMC_FOR_TARGET"; then
17408 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17411 for as_dir in $PATH
17414 test -z "$as_dir" && as_dir=.
17415 for ac_exec_ext in '' $ac_executable_extensions; do
17416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17417 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17418 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17427 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17428 if test -n "$WINDMC_FOR_TARGET"; then
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17430 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17433 $as_echo "no
" >&6; }
17440 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17441 for ncn_progname in windmc; do
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17443 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17444 if test -x $with_build_time_tools/${ncn_progname}; then
17445 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17446 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17447 $as_echo "yes" >&6; }
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17451 $as_echo "no
" >&6; }
17456 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17457 for ncn_progname in windmc; do
17458 if test -n "$ncn_target_tool_prefix"; then
17459 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17460 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17462 $as_echo_n "checking
for $ac_word...
" >&6; }
17463 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17464 $as_echo_n "(cached
) " >&6
17466 if test -n "$WINDMC_FOR_TARGET"; then
17467 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17470 for as_dir in $PATH
17473 test -z "$as_dir" && as_dir=.
17474 for ac_exec_ext in '' $ac_executable_extensions; do
17475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17476 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17477 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17486 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17487 if test -n "$WINDMC_FOR_TARGET"; then
17488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17489 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17492 $as_echo "no
" >&6; }
17497 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17498 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17499 set dummy ${ncn_progname}; ac_word=$2
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17501 $as_echo_n "checking
for $ac_word...
" >&6; }
17502 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17503 $as_echo_n "(cached
) " >&6
17505 if test -n "$WINDMC_FOR_TARGET"; then
17506 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17509 for as_dir in $PATH
17512 test -z "$as_dir" && as_dir=.
17513 for ac_exec_ext in '' $ac_executable_extensions; do
17514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17515 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17516 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17525 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17526 if test -n "$WINDMC_FOR_TARGET"; then
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17528 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17531 $as_echo "no
" >&6; }
17536 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17540 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17542 if test $build = $target ; then
17543 WINDMC_FOR_TARGET="$2"
17545 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17548 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17552 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17556 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17559 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17560 if test "x
${build}" != "x
${host}" ; then
17561 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17562 # We already found the complete path
17563 ac_dir=`dirname $AR_FOR_TARGET`
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17565 $as_echo "pre-installed
in $ac_dir" >&6; }
17567 # Canadian cross, just use what we found
17568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17569 $as_echo "pre-installed
" >&6; }
17573 case " ${configdirs} " in
17578 if test $ok = yes; then
17579 # An in-tree tool is available and we can use it
17580 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17582 $as_echo "just compiled
" >&6; }
17583 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17584 # We already found the complete path
17585 ac_dir=`dirname $AR_FOR_TARGET`
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17587 $as_echo "pre-installed
in $ac_dir" >&6; }
17588 elif test "x
$target" = "x
$host"; then
17589 # We can use an host tool
17590 AR_FOR_TARGET='$(AR)'
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17592 $as_echo "host tool
" >&6; }
17594 # We need a cross tool
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17596 $as_echo "pre-installed
" >&6; }
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17601 $as_echo_n "checking where to
find the target as...
" >&6; }
17602 if test "x
${build}" != "x
${host}" ; then
17603 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17604 # We already found the complete path
17605 ac_dir=`dirname $AS_FOR_TARGET`
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17607 $as_echo "pre-installed
in $ac_dir" >&6; }
17609 # Canadian cross, just use what we found
17610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17611 $as_echo "pre-installed
" >&6; }
17615 case " ${configdirs} " in
17620 if test $ok = yes; then
17621 # An in-tree tool is available and we can use it
17622 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17624 $as_echo "just compiled
" >&6; }
17625 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17626 # We already found the complete path
17627 ac_dir=`dirname $AS_FOR_TARGET`
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17629 $as_echo "pre-installed
in $ac_dir" >&6; }
17630 elif test "x
$target" = "x
$host"; then
17631 # We can use an host tool
17632 AS_FOR_TARGET='$(AS)'
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17634 $as_echo "host tool
" >&6; }
17636 # We need a cross tool
17637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17638 $as_echo "pre-installed
" >&6; }
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17643 $as_echo_n "checking where to
find the target cc...
" >&6; }
17644 if test "x
${build}" != "x
${host}" ; then
17645 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17646 # We already found the complete path
17647 ac_dir=`dirname $CC_FOR_TARGET`
17648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17649 $as_echo "pre-installed
in $ac_dir" >&6; }
17651 # Canadian cross, just use what we found
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17653 $as_echo "pre-installed
" >&6; }
17657 case " ${configdirs} " in
17662 if test $ok = yes; then
17663 # An in-tree tool is available and we can use it
17664 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17666 $as_echo "just compiled
" >&6; }
17667 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17668 # We already found the complete path
17669 ac_dir=`dirname $CC_FOR_TARGET`
17670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17671 $as_echo "pre-installed
in $ac_dir" >&6; }
17672 elif test "x
$target" = "x
$host"; then
17673 # We can use an host tool
17674 CC_FOR_TARGET='$(CC)'
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17676 $as_echo "host tool
" >&6; }
17678 # We need a cross tool
17679 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17680 $as_echo "pre-installed
" >&6; }
17684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17685 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17686 if test "x
${build}" != "x
${host}" ; then
17687 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17688 # We already found the complete path
17689 ac_dir=`dirname $CXX_FOR_TARGET`
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17691 $as_echo "pre-installed
in $ac_dir" >&6; }
17693 # Canadian cross, just use what we found
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17695 $as_echo "pre-installed
" >&6; }
17699 case " ${configdirs} " in
17703 case ,${enable_languages}, in
17707 if test $ok = yes; then
17708 # An in-tree tool is available and we can use it
17709 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'
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17711 $as_echo "just compiled
" >&6; }
17712 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17713 # We already found the complete path
17714 ac_dir=`dirname $CXX_FOR_TARGET`
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17716 $as_echo "pre-installed
in $ac_dir" >&6; }
17717 elif test "x
$target" = "x
$host"; then
17718 # We can use an host tool
17719 CXX_FOR_TARGET='$(CXX)'
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17721 $as_echo "host tool
" >&6; }
17723 # We need a cross tool
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17725 $as_echo "pre-installed
" >&6; }
17729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
17730 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17731 if test "x
${build}" != "x
${host}" ; then
17732 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17733 # We already found the complete path
17734 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17736 $as_echo "pre-installed
in $ac_dir" >&6; }
17738 # Canadian cross, just use what we found
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17740 $as_echo "pre-installed
" >&6; }
17744 case " ${configdirs} " in
17748 case ,${enable_languages}, in
17752 if test $ok = yes; then
17753 # An in-tree tool is available and we can use it
17754 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'
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17756 $as_echo "just compiled
" >&6; }
17757 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17758 # We already found the complete path
17759 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17761 $as_echo "pre-installed
in $ac_dir" >&6; }
17762 elif test "x
$target" = "x
$host"; then
17763 # We can use an host tool
17764 RAW_CXX_FOR_TARGET='$(CXX)'
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17766 $as_echo "host tool
" >&6; }
17768 # We need a cross tool
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17770 $as_echo "pre-installed
" >&6; }
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
17775 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17776 if test "x
${build}" != "x
${host}" ; then
17777 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17778 # We already found the complete path
17779 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17781 $as_echo "pre-installed
in $ac_dir" >&6; }
17783 # Canadian cross, just use what we found
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17785 $as_echo "pre-installed
" >&6; }
17789 case " ${configdirs} " in
17794 if test $ok = yes; then
17795 # An in-tree tool is available and we can use it
17796 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17798 $as_echo "just compiled
" >&6; }
17799 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17800 # We already found the complete path
17801 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17803 $as_echo "pre-installed
in $ac_dir" >&6; }
17804 elif test "x
$target" = "x
$host"; then
17805 # We can use an host tool
17806 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17808 $as_echo "host tool
" >&6; }
17810 # We need a cross tool
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17812 $as_echo "pre-installed
" >&6; }
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
17817 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
17818 if test "x
${build}" != "x
${host}" ; then
17819 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17820 # We already found the complete path
17821 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17823 $as_echo "pre-installed
in $ac_dir" >&6; }
17825 # Canadian cross, just use what we found
17826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17827 $as_echo "pre-installed
" >&6; }
17830 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17831 # We already found the complete path
17832 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17834 $as_echo "pre-installed
in $ac_dir" >&6; }
17835 elif test "x
$target" = "x
$host"; then
17836 # We can use an host tool
17837 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17839 $as_echo "host tool
" >&6; }
17841 # We need a cross tool
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17843 $as_echo "pre-installed
" >&6; }
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
17848 $as_echo_n "checking where to
find the target gcc...
" >&6; }
17849 if test "x
${build}" != "x
${host}" ; then
17850 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17851 # We already found the complete path
17852 ac_dir=`dirname $GCC_FOR_TARGET`
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17854 $as_echo "pre-installed
in $ac_dir" >&6; }
17856 # Canadian cross, just use what we found
17857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17858 $as_echo "pre-installed
" >&6; }
17862 case " ${configdirs} " in
17867 if test $ok = yes; then
17868 # An in-tree tool is available and we can use it
17869 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17871 $as_echo "just compiled
" >&6; }
17872 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17873 # We already found the complete path
17874 ac_dir=`dirname $GCC_FOR_TARGET`
17875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17876 $as_echo "pre-installed
in $ac_dir" >&6; }
17877 elif test "x
$target" = "x
$host"; then
17878 # We can use an host tool
17879 GCC_FOR_TARGET='$()'
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17881 $as_echo "host tool
" >&6; }
17883 # We need a cross tool
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17885 $as_echo "pre-installed
" >&6; }
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
17890 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
17891 if test "x
${build}" != "x
${host}" ; then
17892 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17893 # We already found the complete path
17894 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17896 $as_echo "pre-installed
in $ac_dir" >&6; }
17898 # Canadian cross, just use what we found
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17900 $as_echo "pre-installed
" >&6; }
17904 case " ${configdirs} " in
17908 case ,${enable_languages}, in
17912 if test $ok = yes; then
17913 # An in-tree tool is available and we can use it
17914 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17916 $as_echo "just compiled
" >&6; }
17917 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17918 # We already found the complete path
17919 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17921 $as_echo "pre-installed
in $ac_dir" >&6; }
17922 elif test "x
$target" = "x
$host"; then
17923 # We can use an host tool
17924 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17926 $as_echo "host tool
" >&6; }
17928 # We need a cross tool
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17930 $as_echo "pre-installed
" >&6; }
17934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
17935 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
17936 if test "x
${build}" != "x
${host}" ; then
17937 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17938 # We already found the complete path
17939 ac_dir=`dirname $GOC_FOR_TARGET`
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17941 $as_echo "pre-installed
in $ac_dir" >&6; }
17943 # Canadian cross, just use what we found
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17945 $as_echo "pre-installed
" >&6; }
17949 case " ${configdirs} " in
17953 case ,${enable_languages}, in
17957 if test $ok = yes; then
17958 # An in-tree tool is available and we can use it
17959 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17961 $as_echo "just compiled
" >&6; }
17962 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17963 # We already found the complete path
17964 ac_dir=`dirname $GOC_FOR_TARGET`
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17966 $as_echo "pre-installed
in $ac_dir" >&6; }
17967 elif test "x
$target" = "x
$host"; then
17968 # We can use an host tool
17969 GOC_FOR_TARGET='$(GOC)'
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17971 $as_echo "host tool
" >&6; }
17973 # We need a cross tool
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17975 $as_echo "pre-installed
" >&6; }
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
17980 $as_echo_n "checking where to
find the target gdc...
" >&6; }
17981 if test "x
${build}" != "x
${host}" ; then
17982 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17983 # We already found the complete path
17984 ac_dir=`dirname $GDC_FOR_TARGET`
17985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17986 $as_echo "pre-installed
in $ac_dir" >&6; }
17988 # Canadian cross, just use what we found
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17990 $as_echo "pre-installed
" >&6; }
17994 case " ${configdirs} " in
17998 case ,${enable_languages}, in
18002 if test $ok = yes; then
18003 # An in-tree tool is available and we can use it
18004 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18006 $as_echo "just compiled
" >&6; }
18007 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18008 # We already found the complete path
18009 ac_dir=`dirname $GDC_FOR_TARGET`
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18011 $as_echo "pre-installed
in $ac_dir" >&6; }
18012 elif test "x
$target" = "x
$host"; then
18013 # We can use an host tool
18014 GDC_FOR_TARGET='$(GDC)'
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18016 $as_echo "host tool
" >&6; }
18018 # We need a cross tool
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18020 $as_echo "pre-installed
" >&6; }
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gm2
" >&5
18025 $as_echo_n "checking where to
find the target gm2...
" >&6; }
18026 if test "x
${build}" != "x
${host}" ; then
18027 if expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18028 # We already found the complete path
18029 ac_dir=`dirname $GM2_FOR_TARGET`
18030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18031 $as_echo "pre-installed
in $ac_dir" >&6; }
18033 # Canadian cross, just use what we found
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18035 $as_echo "pre-installed
" >&6; }
18039 case " ${configdirs} " in
18043 case ,${enable_languages}, in
18047 if test $ok = yes; then
18048 # An in-tree tool is available and we can use it
18049 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18051 $as_echo "just compiled
" >&6; }
18052 elif expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18053 # We already found the complete path
18054 ac_dir=`dirname $GM2_FOR_TARGET`
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18056 $as_echo "pre-installed
in $ac_dir" >&6; }
18057 elif test "x
$target" = "x
$host"; then
18058 # We can use an host tool
18059 GM2_FOR_TARGET='$(GM2)'
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18061 $as_echo "host tool
" >&6; }
18063 # We need a cross tool
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18065 $as_echo "pre-installed
" >&6; }
18069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
18070 $as_echo_n "checking where to
find the target ld...
" >&6; }
18071 if test "x
${build}" != "x
${host}" ; then
18072 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18073 # We already found the complete path
18074 ac_dir=`dirname $LD_FOR_TARGET`
18075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18076 $as_echo "pre-installed
in $ac_dir" >&6; }
18078 # Canadian cross, just use what we found
18079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18080 $as_echo "pre-installed
" >&6; }
18084 case " ${configdirs} " in
18089 if test $ok = yes; then
18090 # An in-tree tool is available and we can use it
18091 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18093 $as_echo "just compiled
" >&6; }
18094 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18095 # We already found the complete path
18096 ac_dir=`dirname $LD_FOR_TARGET`
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18098 $as_echo "pre-installed
in $ac_dir" >&6; }
18099 elif test "x
$target" = "x
$host"; then
18100 # We can use an host tool
18101 LD_FOR_TARGET='$(LD)'
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18103 $as_echo "host tool
" >&6; }
18105 # We need a cross tool
18106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18107 $as_echo "pre-installed
" >&6; }
18111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
18112 $as_echo_n "checking where to
find the target lipo...
" >&6; }
18113 if test "x
${build}" != "x
${host}" ; then
18114 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18115 # We already found the complete path
18116 ac_dir=`dirname $LIPO_FOR_TARGET`
18117 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18118 $as_echo "pre-installed
in $ac_dir" >&6; }
18120 # Canadian cross, just use what we found
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18122 $as_echo "pre-installed
" >&6; }
18125 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18126 # We already found the complete path
18127 ac_dir=`dirname $LIPO_FOR_TARGET`
18128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18129 $as_echo "pre-installed
in $ac_dir" >&6; }
18130 elif test "x
$target" = "x
$host"; then
18131 # We can use an host tool
18132 LIPO_FOR_TARGET='$(LIPO)'
18133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18134 $as_echo "host tool
" >&6; }
18136 # We need a cross tool
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18138 $as_echo "pre-installed
" >&6; }
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
18143 $as_echo_n "checking where to
find the target nm...
" >&6; }
18144 if test "x
${build}" != "x
${host}" ; then
18145 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18146 # We already found the complete path
18147 ac_dir=`dirname $NM_FOR_TARGET`
18148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18149 $as_echo "pre-installed
in $ac_dir" >&6; }
18151 # Canadian cross, just use what we found
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18153 $as_echo "pre-installed
" >&6; }
18157 case " ${configdirs} " in
18162 if test $ok = yes; then
18163 # An in-tree tool is available and we can use it
18164 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18166 $as_echo "just compiled
" >&6; }
18167 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18168 # We already found the complete path
18169 ac_dir=`dirname $NM_FOR_TARGET`
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18171 $as_echo "pre-installed
in $ac_dir" >&6; }
18172 elif test "x
$target" = "x
$host"; then
18173 # We can use an host tool
18174 NM_FOR_TARGET='$(NM)'
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18176 $as_echo "host tool
" >&6; }
18178 # We need a cross tool
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18180 $as_echo "pre-installed
" >&6; }
18184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
18185 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
18186 if test "x
${build}" != "x
${host}" ; then
18187 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18188 # We already found the complete path
18189 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18191 $as_echo "pre-installed
in $ac_dir" >&6; }
18193 # Canadian cross, just use what we found
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18195 $as_echo "pre-installed
" >&6; }
18199 case " ${configdirs} " in
18204 if test $ok = yes; then
18205 # An in-tree tool is available and we can use it
18206 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18208 $as_echo "just compiled
" >&6; }
18209 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18210 # We already found the complete path
18211 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18213 $as_echo "pre-installed
in $ac_dir" >&6; }
18214 elif test "x
$target" = "x
$host"; then
18215 # We can use an host tool
18216 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18218 $as_echo "host tool
" >&6; }
18220 # We need a cross tool
18221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18222 $as_echo "pre-installed
" >&6; }
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
18227 $as_echo_n "checking where to
find the target objdump...
" >&6; }
18228 if test "x
${build}" != "x
${host}" ; then
18229 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18230 # We already found the complete path
18231 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18233 $as_echo "pre-installed
in $ac_dir" >&6; }
18235 # Canadian cross, just use what we found
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18237 $as_echo "pre-installed
" >&6; }
18241 case " ${configdirs} " in
18246 if test $ok = yes; then
18247 # An in-tree tool is available and we can use it
18248 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18250 $as_echo "just compiled
" >&6; }
18251 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18252 # We already found the complete path
18253 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18255 $as_echo "pre-installed
in $ac_dir" >&6; }
18256 elif test "x
$target" = "x
$host"; then
18257 # We can use an host tool
18258 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18260 $as_echo "host tool
" >&6; }
18262 # We need a cross tool
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18264 $as_echo "pre-installed
" >&6; }
18268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
18269 $as_echo_n "checking where to
find the target otool...
" >&6; }
18270 if test "x
${build}" != "x
${host}" ; then
18271 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18272 # We already found the complete path
18273 ac_dir=`dirname $OTOOL_FOR_TARGET`
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18275 $as_echo "pre-installed
in $ac_dir" >&6; }
18277 # Canadian cross, just use what we found
18278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18279 $as_echo "pre-installed
" >&6; }
18282 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18283 # We already found the complete path
18284 ac_dir=`dirname $OTOOL_FOR_TARGET`
18285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18286 $as_echo "pre-installed
in $ac_dir" >&6; }
18287 elif test "x
$target" = "x
$host"; then
18288 # We can use an host tool
18289 OTOOL_FOR_TARGET='$(OTOOL)'
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18291 $as_echo "host tool
" >&6; }
18293 # We need a cross tool
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18295 $as_echo "pre-installed
" >&6; }
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
18300 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
18301 if test "x
${build}" != "x
${host}" ; then
18302 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18303 # We already found the complete path
18304 ac_dir=`dirname $RANLIB_FOR_TARGET`
18305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18306 $as_echo "pre-installed
in $ac_dir" >&6; }
18308 # Canadian cross, just use what we found
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18310 $as_echo "pre-installed
" >&6; }
18314 case " ${configdirs} " in
18319 if test $ok = yes; then
18320 # An in-tree tool is available and we can use it
18321 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18323 $as_echo "just compiled
" >&6; }
18324 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18325 # We already found the complete path
18326 ac_dir=`dirname $RANLIB_FOR_TARGET`
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18328 $as_echo "pre-installed
in $ac_dir" >&6; }
18329 elif test "x
$target" = "x
$host"; then
18330 # We can use an host tool
18331 RANLIB_FOR_TARGET='$(RANLIB)'
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18333 $as_echo "host tool
" >&6; }
18335 # We need a cross tool
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18337 $as_echo "pre-installed
" >&6; }
18341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18342 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18343 if test "x
${build}" != "x
${host}" ; then
18344 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18345 # We already found the complete path
18346 ac_dir=`dirname $READELF_FOR_TARGET`
18347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18348 $as_echo "pre-installed
in $ac_dir" >&6; }
18350 # Canadian cross, just use what we found
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18352 $as_echo "pre-installed
" >&6; }
18356 case " ${configdirs} " in
18361 if test $ok = yes; then
18362 # An in-tree tool is available and we can use it
18363 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18365 $as_echo "just compiled
" >&6; }
18366 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18367 # We already found the complete path
18368 ac_dir=`dirname $READELF_FOR_TARGET`
18369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18370 $as_echo "pre-installed
in $ac_dir" >&6; }
18371 elif test "x
$target" = "x
$host"; then
18372 # We can use an host tool
18373 READELF_FOR_TARGET='$(READELF)'
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18375 $as_echo "host tool
" >&6; }
18377 # We need a cross tool
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18379 $as_echo "pre-installed
" >&6; }
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18384 $as_echo_n "checking where to
find the target strip...
" >&6; }
18385 if test "x
${build}" != "x
${host}" ; then
18386 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18387 # We already found the complete path
18388 ac_dir=`dirname $STRIP_FOR_TARGET`
18389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18390 $as_echo "pre-installed
in $ac_dir" >&6; }
18392 # Canadian cross, just use what we found
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18394 $as_echo "pre-installed
" >&6; }
18398 case " ${configdirs} " in
18403 if test $ok = yes; then
18404 # An in-tree tool is available and we can use it
18405 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18407 $as_echo "just compiled
" >&6; }
18408 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18409 # We already found the complete path
18410 ac_dir=`dirname $STRIP_FOR_TARGET`
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18412 $as_echo "pre-installed
in $ac_dir" >&6; }
18413 elif test "x
$target" = "x
$host"; then
18414 # We can use an host tool
18415 STRIP_FOR_TARGET='$(STRIP)'
18416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18417 $as_echo "host tool
" >&6; }
18419 # We need a cross tool
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18421 $as_echo "pre-installed
" >&6; }
18425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18426 $as_echo_n "checking where to
find the target windres...
" >&6; }
18427 if test "x
${build}" != "x
${host}" ; then
18428 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18429 # We already found the complete path
18430 ac_dir=`dirname $WINDRES_FOR_TARGET`
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18432 $as_echo "pre-installed
in $ac_dir" >&6; }
18434 # Canadian cross, just use what we found
18435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18436 $as_echo "pre-installed
" >&6; }
18440 case " ${configdirs} " in
18445 if test $ok = yes; then
18446 # An in-tree tool is available and we can use it
18447 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18449 $as_echo "just compiled
" >&6; }
18450 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18451 # We already found the complete path
18452 ac_dir=`dirname $WINDRES_FOR_TARGET`
18453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18454 $as_echo "pre-installed
in $ac_dir" >&6; }
18455 elif test "x
$target" = "x
$host"; then
18456 # We can use an host tool
18457 WINDRES_FOR_TARGET='$(WINDRES)'
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18459 $as_echo "host tool
" >&6; }
18461 # We need a cross tool
18462 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18463 $as_echo "pre-installed
" >&6; }
18467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18468 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18469 if test "x
${build}" != "x
${host}" ; then
18470 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18471 # We already found the complete path
18472 ac_dir=`dirname $WINDMC_FOR_TARGET`
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18474 $as_echo "pre-installed
in $ac_dir" >&6; }
18476 # Canadian cross, just use what we found
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18478 $as_echo "pre-installed
" >&6; }
18482 case " ${configdirs} " in
18487 if test $ok = yes; then
18488 # An in-tree tool is available and we can use it
18489 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18491 $as_echo "just compiled
" >&6; }
18492 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18493 # We already found the complete path
18494 ac_dir=`dirname $WINDMC_FOR_TARGET`
18495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18496 $as_echo "pre-installed
in $ac_dir" >&6; }
18497 elif test "x
$target" = "x
$host"; then
18498 # We can use an host tool
18499 WINDMC_FOR_TARGET='$(WINDMC)'
18500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18501 $as_echo "host tool
" >&6; }
18503 # We need a cross tool
18504 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18505 $as_echo "pre-installed
" >&6; }
18513 # Certain tools may need extra flags.
18514 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18515 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18516 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18518 # When building target libraries, except in a Canadian cross, we use
18519 # the same toolchain as the compiler we just built.
18520 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18521 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18522 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18523 if test $host = $build; then
18524 case " $configdirs " in
18526 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18527 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18528 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18538 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18539 # Check whether --enable-maintainer-mode was given.
18540 if test "${enable_maintainer_mode+set}" = set; then :
18541 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18543 USE_MAINTAINER_MODE=no
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18547 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18550 if test "$USE_MAINTAINER_MODE" = yes; then
18551 MAINTAINER_MODE_TRUE=
18552 MAINTAINER_MODE_FALSE='#'
18554 MAINTAINER_MODE_TRUE='#'
18555 MAINTAINER_MODE_FALSE=
18557 MAINT=$MAINTAINER_MODE_TRUE
18559 # ---------------------
18560 # GCC bootstrap support
18561 # ---------------------
18563 # Stage specific cflags for build.
18568 yes) stage1_cflags="-g -Wa,-J" ;;
18569 *) stage1_cflags="-g -J" ;;
18575 # Enable --enable-checking in stage1 of the compiler.
18576 # Check whether --enable-stage1-checking was given.
18577 if test "${enable_stage1_checking+set}" = set; then :
18578 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18580 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18581 # For --disable-checking or implicit --enable-checking=release, avoid
18582 # setting --enable-checking=gc in the default stage1 checking for LTO
18583 # bootstraps. See PR62077.
18584 case $BUILD_CONFIG in
18586 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18588 stage1_checking=--enable-checking=yes,types;;
18590 if test "x
$enable_checking" = x && \
18591 test -d ${srcdir}/gcc && \
18592 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18593 stage1_checking=--enable-checking=yes,types,extra
18596 stage1_checking=--enable-checking=$enable_checking,types
18602 # Enable -Werror in bootstrap stage2 and later.
18603 # Check whether --enable-werror was given.
18604 if test "${enable_werror+set}" = set; then :
18605 enableval=$enable_werror;
18606 case ${enable_werror} in
18607 yes) stage2_werror_flag="--enable-werror-always" ;;
18608 *) stage2_werror_flag="" ;;
18613 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18614 case $BUILD_CONFIG in
18616 stage2_werror_flag="--enable-werror-always" ;;
18618 stage2_werror_flag="--enable-werror-always" ;;
18627 # Specify what files to not compare during bootstrap.
18629 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18630 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/M2Version
*"
18631 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/SYSTEM
*"
18632 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2version
*"
18634 hppa*64*-*-hpux*) ;;
18635 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18639 ac_config_files="$ac_config_files Makefile
"
18641 cat >confcache <<\_ACEOF
18642 # This file is a shell script that caches the results of configure
18643 # tests run on this system so they can be shared between configure
18644 # scripts and configure runs, see configure's option --config-cache.
18645 # It is not useful on other systems. If it contains results you don't
18646 # want to keep, you may remove or edit it.
18648 # config.status only pays attention to the cache file if you give it
18649 # the --recheck option to rerun configure.
18651 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18652 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18653 # following values.
18657 # The following way of writing the cache mishandles newlines in values,
18658 # but we know of no workaround that is simple, portable, and efficient.
18659 # So, we kill variables containing newlines.
18660 # Ultrix sh set writes to stderr and can't be redirected directly,
18661 # and sets the high bit in the cache file unless we assign to the vars.
18663 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18664 eval ac_val=\$$ac_var
18668 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18669 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18672 _ | IFS | as_nl) ;; #(
18673 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18674 *) { eval $ac_var=; unset $ac_var;} ;;
18680 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18681 *${as_nl}ac_space=\ *)
18682 # `set' does not quote correctly, so add quotes: double-quote
18683 # substitution turns \\\\ into \\, and sed turns \\ into \.
18686 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18689 # `set' quotes correctly as required by POSIX, so do not add quotes.
18690 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18699 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18701 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18703 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18704 if test -w "$cache_file"; then
18705 if test "x
$cache_file" != "x
/dev
/null
"; then
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18707 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18708 if test ! -f "$cache_file" || test -h "$cache_file"; then
18709 cat confcache >"$cache_file"
18711 case $cache_file in #(
18713 mv -f confcache "$cache_file"$$ &&
18714 mv -f "$cache_file"$$ "$cache_file" ;; #(
18716 mv -f confcache "$cache_file" ;;
18721 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18722 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18727 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18728 # Let make expand exec_prefix.
18729 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18731 # Transform confdefs.h into DEFS.
18732 # Protect against shell expansion while executing Makefile rules.
18733 # Protect against Makefile macro expansion.
18735 # If the first sed substitution is executed (which looks for macros that
18736 # take arguments), then branch to the quote section. Otherwise,
18737 # look for a macro that doesn't take arguments.
18747 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18749 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18753 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18766 DEFS=`sed -n "$ac_script" confdefs.h`
18772 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18773 # 1. Remove the extension, and $U if already installed.
18774 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18775 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18776 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18777 # will be set to the directory where LIBOBJS objects are built.
18778 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18779 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
18781 LIBOBJS=$ac_libobjs
18783 LTLIBOBJS=$ac_ltlibobjs
18787 : "${CONFIG_STATUS=./config.status}"
18789 ac_clean_files_save=$ac_clean_files
18790 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18792 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18794 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18796 # Generated by $as_me.
18797 # Run this file to recreate the current configuration.
18798 # Compiler output produced by configure, useful for debugging
18799 # configure, is in config.log if it exists.
18802 ac_cs_recheck=false
18805 SHELL=\${CONFIG_SHELL-$SHELL}
18808 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18809 ## -------------------- ##
18810 ## M4sh Initialization. ##
18811 ## -------------------- ##
18813 # Be more Bourne compatible
18814 DUALCASE=1; export DUALCASE # for MKS sh
18815 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18818 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18819 # is contrary to our usage. Disable this feature.
18820 alias -g '${1+"$@"}'='"$@"'
18821 setopt NO_GLOB_SUBST
18823 case `(set -o) 2>/dev/null` in #(
18835 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18836 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18837 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
18838 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18839 # Prefer a ksh shell builtin over an external printf program on Solaris,
18840 # but without wasting forks for bash or zsh.
18841 if test -z "$BASH_VERSION$ZSH_VERSION" \
18842 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18843 as_echo
='print -r --'
18844 as_echo_n
='print -rn --'
18845 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18846 as_echo
='printf %s\n'
18847 as_echo_n
='printf %s'
18849 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18850 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
18851 as_echo_n
='/usr/ucb/echo -n'
18853 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
18854 as_echo_n_body
='eval
18858 expr "X$arg" : "X\\(.*\\)$as_nl";
18859 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18861 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18863 export as_echo_n_body
18864 as_echo_n
='sh -c $as_echo_n_body as_echo'
18866 export as_echo_body
18867 as_echo
='sh -c $as_echo_body as_echo'
18870 # The user is always right.
18871 if test "${PATH_SEPARATOR+set}" != set; then
18873 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
18874 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
18881 # We need space, tab and new line, in precisely that order. Quoting is
18882 # there to prevent editors from complaining about space-tab.
18883 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18884 # splitting by setting IFS to empty value.)
18887 # Find who we are. Look in the path if we contain no directory separator.
18890 *[\\/]* ) as_myself
=$0 ;;
18891 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18892 for as_dir
in $PATH
18895 test -z "$as_dir" && as_dir
=.
18896 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18902 # We did not find ourselves, most probably we were run as `sh COMMAND'
18903 # in which case we are not to be found in the path.
18904 if test "x$as_myself" = x
; then
18907 if test ! -f "$as_myself"; then
18908 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18912 # Unset variables that we do not need and which cause bugs (e.g. in
18913 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18914 # suppresses any "Segmentation fault" message there. '((' could
18915 # trigger a bug in pdksh 5.2.14.
18916 for as_var
in BASH_ENV ENV MAIL MAILPATH
18917 do eval test x\
${$as_var+set} = xset \
18918 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18931 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18934 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18935 # ----------------------------------------
18936 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18937 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18938 # script with STATUS, using 1 if that was 0.
18941 as_status
=$1; test $as_status -eq 0 && as_status
=1
18943 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18944 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18946 $as_echo "$as_me: error: $2" >&2
18947 as_fn_exit
$as_status
18951 # as_fn_set_status STATUS
18952 # -----------------------
18953 # Set $? to STATUS, without forking.
18954 as_fn_set_status
()
18957 } # as_fn_set_status
18959 # as_fn_exit STATUS
18960 # -----------------
18961 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18965 as_fn_set_status
$1
18971 # Portably unset VAR.
18974 { eval $1=; unset $1;}
18976 as_unset
=as_fn_unset
18977 # as_fn_append VAR VALUE
18978 # ----------------------
18979 # Append the text in VALUE to the end of the definition contained in VAR. Take
18980 # advantage of any shell optimizations that allow amortized linear growth over
18981 # repeated appends, instead of the typical quadratic growth present in naive
18983 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18984 eval 'as_fn_append ()
18995 # as_fn_arith ARG...
18996 # ------------------
18997 # Perform arithmetic evaluation on the ARGs, and store the result in the
18998 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18999 # must be portable across $(()) and expr.
19000 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19001 eval 'as_fn_arith ()
19008 as_val
=`expr "$@" || test $? -eq 1`
19013 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19014 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19020 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19021 as_basename
=basename
19026 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19032 as_me
=`$as_basename -- "$0" ||
19033 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19034 X"$0" : 'X\(//\)$' \| \
19035 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19037 sed '/^.*\/\([^/][^/]*\)\/*$/{
19051 # Avoid depending upon Character Ranges.
19052 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19053 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19054 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19055 as_cr_digits
='0123456789'
19056 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19058 ECHO_C
= ECHO_N
= ECHO_T
=
19059 case `echo -n x` in #(((((
19061 case `echo 'xy\c'` in
19062 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19064 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19071 rm -f conf$$ conf$$.exe conf$$.
file
19072 if test -d conf$$.dir
; then
19073 rm -f conf$$.dir
/conf$$.
file
19076 mkdir conf$$.dir
2>/dev
/null
19078 if (echo >conf$$.
file) 2>/dev
/null
; then
19079 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19081 # ... but there are two gotchas:
19082 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19083 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19084 # In both cases, we have to default to `cp -pR'.
19085 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19087 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19095 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19096 rmdir conf$$.dir
2>/dev
/null
19101 # Create "$as_dir" as a directory, including parents if necessary.
19106 -*) as_dir
=.
/$as_dir;;
19108 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19112 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19113 *) as_qdir
=$as_dir;;
19115 as_dirs
="'$as_qdir' $as_dirs"
19116 as_dir
=`$as_dirname -- "$as_dir" ||
19117 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19118 X"$as_dir" : 'X\(//\)[^/]' \| \
19119 X"$as_dir" : 'X\(//\)$' \| \
19120 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19121 $as_echo X"$as_dir" |
19122 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19126 /^X\(\/\/\)[^/].*/{
19139 test -d "$as_dir" && break
19141 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19142 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19146 if mkdir
-p .
2>/dev
/null
; then
19147 as_mkdir_p
='mkdir -p "$as_dir"'
19149 test -d .
/-p && rmdir .
/-p
19154 # as_fn_executable_p FILE
19155 # -----------------------
19156 # Test if FILE is an executable regular file.
19157 as_fn_executable_p
()
19159 test -f "$1" && test -x "$1"
19160 } # as_fn_executable_p
19161 as_test_x
='test -x'
19162 as_executable_p
=as_fn_executable_p
19164 # Sed expression to map a string onto a valid CPP name.
19165 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19167 # Sed expression to map a string onto a valid variable name.
19168 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19172 ## ----------------------------------- ##
19173 ## Main body of $CONFIG_STATUS script. ##
19174 ## ----------------------------------- ##
19176 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19178 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19179 # Save the log message, to keep $0 and so on meaningful, and to
19180 # report actual input values of CONFIG_FILES etc. instead of their
19181 # values after options handling.
19183 This file was extended by $as_me, which was
19184 generated by GNU Autoconf 2.69. Invocation command line was
19186 CONFIG_FILES = $CONFIG_FILES
19187 CONFIG_HEADERS = $CONFIG_HEADERS
19188 CONFIG_LINKS = $CONFIG_LINKS
19189 CONFIG_COMMANDS = $CONFIG_COMMANDS
19192 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19197 case $ac_config_files in *"
19198 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19203 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19204 # Files that config.status was made for.
19205 config_files="$ac_config_files"
19209 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19211 \`$as_me' instantiates files and other configuration actions
19212 from templates according to the current configuration. Unless the files
19213 and actions are specified as TAGs, all are instantiated by default.
19215 Usage: $0 [OPTION]... [TAG]...
19217 -h, --help print this help, then exit
19218 -V, --version print version number and configuration settings, then exit
19219 --config print configuration, then exit
19220 -q, --quiet, --silent
19221 do not print progress messages
19222 -d, --debug don't remove temporary files
19223 --recheck update $as_me by reconfiguring in the same conditions
19224 --file=FILE[:TEMPLATE]
19225 instantiate the configuration file FILE
19227 Configuration files:
19230 Report bugs to the package provider."
19233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19234 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19237 configured by $0, generated by GNU Autoconf 2.69,
19238 with options \\"\$ac_cs_config\\"
19240 Copyright (C) 2012 Free Software Foundation, Inc.
19241 This config.status script is free software; the Free Software Foundation
19242 gives unlimited permission to copy, distribute and modify it."
19248 test -n "\$AWK" || AWK=awk
19251 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19252 # The default lists apply if the user does not specify any file.
19258 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19259 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19263 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19275 # Handling of the options.
19276 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19278 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19279 $as_echo "$ac_cs_version"; exit ;;
19280 --config |
--confi |
--conf |
--con |
--co |
--c )
19281 $as_echo "$ac_cs_config"; exit ;;
19282 --debug |
--debu |
--deb |
--de |
--d |
-d )
19284 --file |
--fil |
--fi |
--f )
19287 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19288 '') as_fn_error $?
"missing file argument" ;;
19290 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19291 ac_need_defaults
=false
;;
19292 --he |
--h |
--help |
--hel |
-h )
19293 $as_echo "$ac_cs_usage"; exit ;;
19294 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19295 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19298 # This is an error.
19299 -*) as_fn_error $?
"unrecognized option: \`$1'
19300 Try \`$0 --help' for more information." ;;
19302 *) as_fn_append ac_config_targets
" $1"
19303 ac_need_defaults
=false
;;
19309 ac_configure_extra_args
=
19311 if $ac_cs_silent; then
19313 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19317 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19318 if \$ac_cs_recheck; then
19319 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19321 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19322 CONFIG_SHELL='$SHELL'
19323 export CONFIG_SHELL
19328 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19332 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19333 ## Running $as_me. ##
19339 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19343 extrasub_build="$extrasub_build"
19344 extrasub_host="$extrasub_host"
19345 extrasub_target="$extrasub_target"
19349 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19351 # Handling of arguments.
19352 for ac_config_target
in $ac_config_targets
19354 case $ac_config_target in
19355 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19357 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19362 # If the user did not use the arguments to specify the items to instantiate,
19363 # then the envvar interface is used. Set only those that are not.
19364 # We use the long form for the default assignment because of an extremely
19365 # bizarre bug on SunOS 4.1.3.
19366 if $ac_need_defaults; then
19367 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19370 # Have a temporary directory for convenience. Make it in the build tree
19371 # simply because there is no reason against having it here, and in addition,
19372 # creating and moving files from /tmp can sometimes cause problems.
19373 # Hook for its removal unless debugging.
19374 # Note that there is a small window in which the directory will not be cleaned:
19375 # after its creation but before its name has been assigned to `$tmp'.
19379 trap 'exit_status=$?
19380 : "${ac_tmp:=$tmp}"
19381 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19383 trap 'as_fn_exit 1' 1 2 13 15
19385 # Create a (secure) tmp directory for tmp files.
19388 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19392 tmp
=.
/conf$$
-$RANDOM
19393 (umask 077 && mkdir
"$tmp")
19394 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19397 # Set up the scripts for CONFIG_FILES section.
19398 # No need to generate them if there are no CONFIG_FILES.
19399 # This happens for instance with `./config.status config.h'.
19400 if test -n "$CONFIG_FILES"; then
19402 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19403 ac_cs_awk_getline
=:
19404 ac_cs_awk_pipe_init
=
19405 ac_cs_awk_read_file
='
19406 while ((getline aline < (F[key])) > 0)
19409 ac_cs_awk_pipe_fini
=
19411 ac_cs_awk_getline
=false
19412 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19413 ac_cs_awk_read_file
='
19415 print "cat " F[key] " &&"
19416 '$ac_cs_awk_pipe_init
19417 # The final `:' finishes the AND list.
19418 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19420 ac_cr
=`echo X | tr X '\015'`
19421 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19422 # But we know of no other shell where ac_cr would be empty at this
19423 # point, so we can use a bashism as a fallback.
19424 if test "x$ac_cr" = x
; then
19425 eval ac_cr
=\$
\'\\r
\'
19427 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19428 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19431 ac_cs_awk_cr
=$ac_cr
19434 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19437 # Create commands to substitute file output variables.
19439 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19440 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19441 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19444 } >conf$
$files.sh
&&
19445 . .
/conf$
$files.sh ||
19446 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19447 rm -f conf$
$files.sh
19450 echo "cat >conf$$subs.awk <<_ACEOF" &&
19451 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19453 } >conf$$subs.sh ||
19454 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19455 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19457 for ac_last_try in false false false false false :; do
19458 . ./conf$$subs.sh ||
19459 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19461 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19462 if test $ac_delim_n = $ac_delim_num; then
19464 elif $ac_last_try; then
19465 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19467 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19470 rm -f conf$$subs.sh
19472 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19473 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19477 s/^/S["/; s
/!.
*/"]=/
19487 s/\(.\{148\}\)..*/\1/
19489 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19494 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19501 s/\(.\{148\}\)..*/\1/
19503 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19507 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19512 ' <conf$$subs.awk | sed '
19517 ' >>$CONFIG_STATUS || ac_write_fail=1
19518 rm -f conf$$subs.awk
19519 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19521 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19522 for (key in S) S_is_set[key] = 1
19524 \$ac_cs_awk_pipe_init
19528 nfields = split(line, field, "@
")
19530 len = length(field[1])
19531 for (i = 2; i < nfields; i++) {
19533 keylen = length(key)
19534 if (S_is_set[key]) {
19536 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19537 len += length(value) + length(field[++i])
19542 if (nfields == 3 && !substed) {
19544 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19545 \$ac_cs_awk_read_file
19551 \$ac_cs_awk_pipe_fini
19554 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19555 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19556 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19559 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19560 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19563 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19564 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19565 # trailing colons and then remove the whole line if VPATH becomes empty
19566 # (actually we leave an empty line to preserve line numbers).
19567 if test "x
$srcdir" = x.; then
19568 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19587 fi # test -n "$CONFIG_FILES"
19590 eval set X " :F
$CONFIG_FILES "
19595 :[FHLC]) ac_mode=$ac_tag; continue;;
19597 case $ac_mode$ac_tag in
19599 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19600 :[FH]-) ac_tag=-:-;;
19601 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19618 -) ac_f="$ac_tmp/stdin";;
19619 *) # Look for the file first in the build tree, then in the source tree
19620 # (if the path is not absolute). The absolute path cannot be DOS-style,
19621 # because $ac_f cannot contain `:'.
19625 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19627 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19629 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19630 as_fn_append ac_file_inputs " '$ac_f'"
19633 # Let's still pretend it is `configure' which instantiates (i.e., don't
19634 # use $as_me), people would be surprised to read:
19635 # /* config.h. Generated by config.status. */
19636 configure_input='Generated from '`
19637 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19639 if test x"$ac_file" != x-; then
19640 configure_input="$ac_file.
$configure_input"
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19642 $as_echo "$as_me: creating
$ac_file" >&6;}
19644 # Neutralize special characters interpreted by sed in replacement strings.
19645 case $configure_input in #(
19646 *\&* | *\|* | *\\* )
19647 ac_sed_conf_input=`$as_echo "$configure_input" |
19648 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19649 *) ac_sed_conf_input=$configure_input;;
19653 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19654 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19659 ac_dir=`$as_dirname -- "$ac_file" ||
19660 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19661 X"$ac_file" : 'X\(//\)[^/]' \| \
19662 X"$ac_file" : 'X\(//\)$' \| \
19663 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19664 $as_echo X"$ac_file" |
19665 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19669 /^X\(\/\/\)[^/].*/{
19682 as_dir="$ac_dir"; as_fn_mkdir_p
19686 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19688 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19689 # A "..
" for each directory in $ac_dir_suffix.
19690 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19691 case $ac_top_builddir_sub in
19692 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19693 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19696 ac_abs_top_builddir=$ac_pwd
19697 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19698 # for backward compatibility:
19699 ac_top_builddir=$ac_top_build_prefix
19702 .) # We are building in place.
19704 ac_top_srcdir=$ac_top_builddir_sub
19705 ac_abs_top_srcdir=$ac_pwd ;;
19706 [\\/]* | ?:[\\/]* ) # Absolute name.
19707 ac_srcdir=$srcdir$ac_dir_suffix;
19708 ac_top_srcdir=$srcdir
19709 ac_abs_top_srcdir=$srcdir ;;
19710 *) # Relative name.
19711 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19712 ac_top_srcdir=$ac_top_build_prefix$srcdir
19713 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19715 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19725 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19726 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19730 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19731 # If the template does not know about datarootdir, expand it.
19732 # FIXME: This hack should be removed a few years after 2.60.
19733 ac_datarootdir_hack=; ac_datarootdir_seen=
19744 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19745 *datarootdir*) ac_datarootdir_seen=yes;;
19746 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19748 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19750 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19751 ac_datarootdir_hack='
19752 s&@datadir@&$datadir&g
19753 s&@docdir@&$docdir&g
19754 s&@infodir@&$infodir&g
19755 s&@localedir@&$localedir&g
19756 s&@mandir@&$mandir&g
19757 s&\\\${datarootdir}&$datarootdir&g' ;;
19761 # Neutralize VPATH when `$srcdir' = `.'.
19762 # Shell code in configure.ac might set extrasub.
19763 # FIXME: do we really want to maintain this feature?
19764 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19765 ac_sed_extra="$ac_vpsub
19768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19770 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19771 s|@configure_input@|
$ac_sed_conf_input|
;t t
19772 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19773 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19774 s
&@srcdir@
&$ac_srcdir&;t t
19775 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19776 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19777 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19778 s
&@builddir@
&$ac_builddir&;t t
19779 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19780 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19781 s
&@INSTALL@
&$ac_INSTALL&;t t
19782 $ac_datarootdir_hack
19784 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19785 if $ac_cs_awk_getline; then
19786 $AWK -f "$ac_tmp/subs.
awk"
19788 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19790 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19792 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19793 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19794 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19795 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19797 which seems to be undefined. Please make sure it is defined" >&5
19798 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19799 which seems to be undefined. Please make sure it is defined" >&2;}
19801 rm -f "$ac_tmp/stdin"
19803 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19804 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19806 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19814 case $ac_file$ac_mode in
19815 "Makefile":F) sed "$extrasub_build" Makefile |
19816 sed "$extrasub_host" |
19817 sed "$extrasub_target" > mf$$
19818 mv -f mf$$ Makefile ;;
19826 ac_clean_files=$ac_clean_files_save
19828 test $ac_write_fail = 0 ||
19829 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19832 # configure is writing to config.log, and then calls config.status.
19833 # config.status does its own redirection, appending to config.log.
19834 # Unfortunately, on DOS this fails, as config.log is still kept open
19835 # by configure, so config.status won't be able to
write to it
; its
19836 # output is simply discarded. So we exec the FD to /dev/null,
19837 # effectively closing config.log, so it can be properly (re)opened and
19838 # appended to by config.status. When coming back to configure, we
19839 # need to make the FD available again.
19840 if test "$no_create" != yes; then
19842 ac_config_status_args
=
19843 test "$silent" = yes &&
19844 ac_config_status_args
="$ac_config_status_args --quiet"
19846 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19848 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19849 # would make configure fail if this is the last instruction.
19850 $ac_cs_success || as_fn_exit
1
19852 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19854 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}