2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="move-if-change"
586 enable_option_checking
=no
587 ac_subst_vars
='LTLIBOBJS
594 MAINTAINER_MODE_FALSE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
685 DEBUG_PREFIX_CFLAGS_FOR_TARGET
686 SYSROOT_CFLAGS_FOR_TARGET
688 extra_host_zlib_configure_flags
689 extra_host_libiberty_configure_flags
696 extra_linker_plugin_flags
697 extra_linker_plugin_configure_flags
704 extra_isl_gmp_configure_flags
705 extra_mpc_mpfr_configure_flags
706 extra_mpc_gmp_configure_flags
707 extra_mpfr_configure_flags
755 TOPLEVEL_CONFIGURE_ARGUMENTS
783 program_transform_name
794 ac_subst_files
='serialization_dependencies
800 enable_option_checking
803 enable_as_accelerator_for
804 enable_offload_targets
805 enable_offload_defaulted
808 enable_compressed_debug_sections
810 enable_libquadmath_support
827 with_static_standard_libraries
834 enable_isl_version_check
836 enable_linker_plugin_configure_flags
837 enable_linker_plugin_flags
840 enable_stage1_languages
843 with_target_bdw_gc_include
844 with_target_bdw_gc_lib
845 with_gcc_major_version_only
847 with_debug_prefix_map
850 enable_serial_configure
851 with_build_time_tools
852 enable_maintainer_mode
853 enable_stage1_checking
856 ac_precious_vars
='build_alias
909 # Initialize some variables set by options.
911 ac_init_version
=false
912 ac_unrecognized_opts
=
914 # The variables have the same names as the options, with
915 # dashes changed to underlines.
923 program_transform_name
=s
,x
,x
,
931 # Installation directory options.
932 # These are left unexpanded so users can "make install exec_prefix=/foo"
933 # and all the variables that are supposed to be based on exec_prefix
934 # by default will actually change.
935 # Use braces instead of parens because sh, perl, etc. also accept them.
936 # (The list follows the same order as the GNU Coding Standards.)
937 bindir
='${exec_prefix}/bin'
938 sbindir
='${exec_prefix}/sbin'
939 libexecdir
='${exec_prefix}/libexec'
940 datarootdir
='${prefix}/share'
941 datadir
='${datarootdir}'
942 sysconfdir
='${prefix}/etc'
943 sharedstatedir
='${prefix}/com'
944 localstatedir
='${prefix}/var'
945 includedir
='${prefix}/include'
946 oldincludedir
='/usr/include'
947 docdir
='${datarootdir}/doc/${PACKAGE}'
948 infodir
='${datarootdir}/info'
953 libdir
='${exec_prefix}/lib'
954 localedir
='${datarootdir}/locale'
955 mandir
='${datarootdir}/man'
961 # If the previous option needs an argument, assign it.
962 if test -n "$ac_prev"; then
963 eval $ac_prev=\
$ac_option
969 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
974 # Accept the important Cygnus configure options, so we can diagnose typos.
976 case $ac_dashdash$ac_option in
980 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
982 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
985 -build |
--build |
--buil |
--bui |
--bu)
986 ac_prev
=build_alias
;;
987 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
988 build_alias
=$ac_optarg ;;
990 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
991 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
992 ac_prev
=cache_file
;;
993 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
994 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
995 cache_file
=$ac_optarg ;;
998 cache_file
=config.cache
;;
1000 -datadir |
--datadir |
--datadi |
--datad)
1002 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1003 datadir
=$ac_optarg ;;
1005 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1006 |
--dataroo |
--dataro |
--datar)
1007 ac_prev
=datarootdir
;;
1008 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1009 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1010 datarootdir
=$ac_optarg ;;
1012 -disable-* |
--disable-*)
1013 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1014 # Reject names that are not valid shell variable names.
1015 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1016 as_fn_error $?
"invalid feature name: $ac_useropt"
1017 ac_useropt_orig
=$ac_useropt
1018 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1019 case $ac_user_opts in
1021 "enable_
$ac_useropt"
1023 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1024 ac_unrecognized_sep
=', ';;
1026 eval enable_
$ac_useropt=no
;;
1028 -docdir |
--docdir |
--docdi |
--doc |
--do)
1030 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1031 docdir
=$ac_optarg ;;
1033 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1035 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1036 dvidir
=$ac_optarg ;;
1038 -enable-* |
--enable-*)
1039 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1042 as_fn_error $?
"invalid feature name: $ac_useropt"
1043 ac_useropt_orig
=$ac_useropt
1044 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1045 case $ac_user_opts in
1047 "enable_
$ac_useropt"
1049 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1050 ac_unrecognized_sep
=', ';;
1052 eval enable_
$ac_useropt=\
$ac_optarg ;;
1054 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1055 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1056 |
--exec |
--exe |
--ex)
1057 ac_prev
=exec_prefix
;;
1058 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1059 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1060 |
--exec=* |
--exe=* |
--ex=*)
1061 exec_prefix
=$ac_optarg ;;
1063 -gas |
--gas |
--ga |
--g)
1064 # Obsolete; use --with-gas.
1067 -help |
--help |
--hel |
--he |
-h)
1068 ac_init_help
=long
;;
1069 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1070 ac_init_help
=recursive
;;
1071 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1072 ac_init_help
=short
;;
1074 -host |
--host |
--hos |
--ho)
1075 ac_prev
=host_alias
;;
1076 -host=* |
--host=* |
--hos=* |
--ho=*)
1077 host_alias
=$ac_optarg ;;
1079 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1081 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1083 htmldir
=$ac_optarg ;;
1085 -includedir |
--includedir |
--includedi |
--included |
--include \
1086 |
--includ |
--inclu |
--incl |
--inc)
1087 ac_prev
=includedir
;;
1088 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1089 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1090 includedir
=$ac_optarg ;;
1092 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1094 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1095 infodir
=$ac_optarg ;;
1097 -libdir |
--libdir |
--libdi |
--libd)
1099 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1100 libdir
=$ac_optarg ;;
1102 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1103 |
--libexe |
--libex |
--libe)
1104 ac_prev
=libexecdir
;;
1105 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1106 |
--libexe=* |
--libex=* |
--libe=*)
1107 libexecdir
=$ac_optarg ;;
1109 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1110 ac_prev
=localedir
;;
1111 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1112 localedir
=$ac_optarg ;;
1114 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1115 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1116 ac_prev
=localstatedir
;;
1117 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1118 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1119 localstatedir
=$ac_optarg ;;
1121 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1123 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1124 mandir
=$ac_optarg ;;
1126 -nfp |
--nfp |
--nf)
1127 # Obsolete; use --without-fp.
1130 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1131 |
--no-cr |
--no-c |
-n)
1134 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1135 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1138 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1139 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1140 |
--oldin |
--oldi |
--old |
--ol |
--o)
1141 ac_prev
=oldincludedir
;;
1142 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1143 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1144 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1145 oldincludedir
=$ac_optarg ;;
1147 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1149 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1150 prefix
=$ac_optarg ;;
1152 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1153 |
--program-pre |
--program-pr |
--program-p)
1154 ac_prev
=program_prefix
;;
1155 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1156 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1157 program_prefix
=$ac_optarg ;;
1159 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1160 |
--program-suf |
--program-su |
--program-s)
1161 ac_prev
=program_suffix
;;
1162 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1163 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1164 program_suffix
=$ac_optarg ;;
1166 -program-transform-name |
--program-transform-name \
1167 |
--program-transform-nam |
--program-transform-na \
1168 |
--program-transform-n |
--program-transform- \
1169 |
--program-transform |
--program-transfor \
1170 |
--program-transfo |
--program-transf \
1171 |
--program-trans |
--program-tran \
1172 |
--progr-tra |
--program-tr |
--program-t)
1173 ac_prev
=program_transform_name
;;
1174 -program-transform-name=* |
--program-transform-name=* \
1175 |
--program-transform-nam=* |
--program-transform-na=* \
1176 |
--program-transform-n=* |
--program-transform-=* \
1177 |
--program-transform=* |
--program-transfor=* \
1178 |
--program-transfo=* |
--program-transf=* \
1179 |
--program-trans=* |
--program-tran=* \
1180 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1181 program_transform_name
=$ac_optarg ;;
1183 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1185 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1186 pdfdir
=$ac_optarg ;;
1188 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1190 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1193 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1194 |
-silent |
--silent |
--silen |
--sile |
--sil)
1197 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1199 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1201 sbindir
=$ac_optarg ;;
1203 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1204 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1205 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1207 ac_prev
=sharedstatedir
;;
1208 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1209 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1210 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1212 sharedstatedir
=$ac_optarg ;;
1214 -site |
--site |
--sit)
1216 -site=* |
--site=* |
--sit=*)
1219 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1221 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1222 srcdir
=$ac_optarg ;;
1224 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1225 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1226 ac_prev
=sysconfdir
;;
1227 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1228 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1229 sysconfdir
=$ac_optarg ;;
1231 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1232 ac_prev
=target_alias
;;
1233 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1234 target_alias
=$ac_optarg ;;
1236 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1239 -version |
--version |
--versio |
--versi |
--vers |
-V)
1240 ac_init_version
=: ;;
1243 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1244 # Reject names that are not valid shell variable names.
1245 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1246 as_fn_error $?
"invalid package name: $ac_useropt"
1247 ac_useropt_orig
=$ac_useropt
1248 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1249 case $ac_user_opts in
1253 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1254 ac_unrecognized_sep
=', ';;
1256 eval with_
$ac_useropt=\
$ac_optarg ;;
1258 -without-* |
--without-*)
1259 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1260 # Reject names that are not valid shell variable names.
1261 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1262 as_fn_error $?
"invalid package name: $ac_useropt"
1263 ac_useropt_orig
=$ac_useropt
1264 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1265 case $ac_user_opts in
1269 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1270 ac_unrecognized_sep
=', ';;
1272 eval with_
$ac_useropt=no
;;
1275 # Obsolete; use --with-x.
1278 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1279 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1280 ac_prev
=x_includes
;;
1281 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1282 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1283 x_includes
=$ac_optarg ;;
1285 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1286 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1287 ac_prev
=x_libraries
;;
1288 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1289 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1290 x_libraries
=$ac_optarg ;;
1292 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1293 Try \`$0 --help' for more information"
1297 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1298 # Reject names that are not valid shell variable names.
1299 case $ac_envvar in #(
1300 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1301 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1303 eval $ac_envvar=\
$ac_optarg
1304 export $ac_envvar ;;
1307 # FIXME: should be removed in autoconf 3.0.
1308 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1309 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1310 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1311 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1317 if test -n "$ac_prev"; then
1318 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1319 as_fn_error $?
"missing argument to $ac_option"
1322 if test -n "$ac_unrecognized_opts"; then
1323 case $enable_option_checking in
1325 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1326 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1330 # Check all directory arguments for consistency.
1331 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1332 datadir sysconfdir sharedstatedir localstatedir includedir \
1333 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1334 libdir localedir mandir
1336 eval ac_val
=\$
$ac_var
1337 # Remove trailing slashes.
1340 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1341 eval $ac_var=\
$ac_val;;
1343 # Be sure to have absolute directory names.
1345 [\\/$
]* | ?
:[\\/]* ) continue;;
1346 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1348 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1351 # There might be people who depend on the old broken behavior: `$host'
1352 # used to hold the argument of --host etc.
1353 # FIXME: To remove some day.
1356 target
=$target_alias
1358 # FIXME: To remove some day.
1359 if test "x$host_alias" != x
; then
1360 if test "x$build_alias" = x
; then
1361 cross_compiling
=maybe
1362 elif test "x$build_alias" != "x$host_alias"; then
1368 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1370 test "$silent" = yes && exec 6>/dev
/null
1373 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1374 ac_ls_di
=`ls -di .` &&
1375 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1376 as_fn_error $?
"working directory cannot be determined"
1377 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1378 as_fn_error $?
"pwd does not report name of working directory"
1381 # Find the source files, if location was not specified.
1382 if test -z "$srcdir"; then
1383 ac_srcdir_defaulted
=yes
1384 # Try the directory containing this script, then the parent directory.
1385 ac_confdir
=`$as_dirname -- "$as_myself" ||
1386 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1387 X"$as_myself" : 'X\(//\)[^/]' \| \
1388 X"$as_myself" : 'X\(//\)$' \| \
1389 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1390 $as_echo X"$as_myself" |
1391 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1409 if test ! -r "$srcdir/$ac_unique_file"; then
1413 ac_srcdir_defaulted
=no
1415 if test ! -r "$srcdir/$ac_unique_file"; then
1416 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1417 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1419 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1421 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1423 # When building in place, set srcdir=.
1424 if test "$ac_abs_confdir" = "$ac_pwd"; then
1427 # Remove unnecessary trailing slashes from srcdir.
1428 # Double slashes in file names in object file debugging info
1429 # mess up M-x gdb in Emacs.
1431 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1435 as_fn_error $?
"path to source, $srcdir, contains spaces"
1438 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1440 for ac_var
in $ac_precious_vars; do
1441 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1442 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1443 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1444 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1448 # Report the --help message.
1450 if test "$ac_init_help" = "long"; then
1451 # Omit some internal or obsolete options to make the list less imposing.
1452 # This message is too long to be a string in the A/UX 3.1 sh.
1454 \`configure' configures this package to adapt to many kinds of systems.
1456 Usage: $0 [OPTION]... [VAR=VALUE]...
1458 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1459 VAR=VALUE. See below for descriptions of some of the useful variables.
1461 Defaults for the options are specified in brackets.
1464 -h, --help display this help and exit
1465 --help=short display options specific to this package
1466 --help=recursive display the short help of all the included packages
1467 -V, --version display version information and exit
1468 -q, --quiet, --silent do not print \`checking ...' messages
1469 --cache-file=FILE cache test results in FILE [disabled]
1470 -C, --config-cache alias for \`--cache-file=config.cache'
1471 -n, --no-create do not create output files
1472 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1474 Installation directories:
1475 --prefix=PREFIX install architecture-independent files in PREFIX
1476 [$ac_default_prefix]
1477 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1480 By default, \`make install' will install all the files in
1481 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1482 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1483 for instance \`--prefix=\$HOME'.
1485 For better control, use the options below.
1487 Fine tuning of the installation directories:
1488 --bindir=DIR user executables [EPREFIX/bin]
1489 --sbindir=DIR system admin executables [EPREFIX/sbin]
1490 --libexecdir=DIR program executables [EPREFIX/libexec]
1491 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1492 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1493 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1494 --libdir=DIR object code libraries [EPREFIX/lib]
1495 --includedir=DIR C header files [PREFIX/include]
1496 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1497 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1498 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1499 --infodir=DIR info documentation [DATAROOTDIR/info]
1500 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1501 --mandir=DIR man documentation [DATAROOTDIR/man]
1502 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1503 --htmldir=DIR html documentation [DOCDIR]
1504 --dvidir=DIR dvi documentation [DOCDIR]
1505 --pdfdir=DIR pdf documentation [DOCDIR]
1506 --psdir=DIR ps documentation [DOCDIR]
1512 --program-prefix=PREFIX prepend PREFIX to installed program names
1513 --program-suffix=SUFFIX append SUFFIX to installed program names
1514 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1517 --build=BUILD configure
for building on BUILD
[guessed
]
1518 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1519 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1523 if test -n "$ac_init_help"; then
1528 --disable-option-checking ignore unrecognized
--enable/--with options
1529 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1530 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1531 --enable-as-accelerator-for=ARG
1532 build as offload target compiler. Specify offload
1534 --enable-offload-targets=LIST
1535 enable offloading to devices from comma-separated
1536 LIST of TARGET
[=DIR
]. Use optional path to
find
1537 offload target compiler during the build
1538 --enable-offload-defaulted
1539 If enabled
, configured but not installed offload compilers and
1540 libgomp plugins are silently ignored. Useful
for distribution
1541 compilers where those are
in separate optional packages.
1543 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1544 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1545 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1546 Enable compressed debug sections
for gas
, gold or ld
1548 --disable-libquadmath do not build libquadmath directory
1549 --disable-libquadmath-support
1550 disable libquadmath support
for Fortran
1551 --enable-libada build libada directory
1552 --enable-libgm2 build libgm2 directory
1553 --enable-libssp build libssp directory
1554 --disable-libstdcxx do not build libstdc
++-v3 directory
1555 --enable-bootstrap enable bootstrapping
[yes if native build
]
1556 --enable-pgo-build[=lto
]
1557 enable the PGO build
1558 --disable-isl-version-check
1559 disable check
for isl version
1560 --enable-lto enable link
time optimization support
1561 --enable-linker-plugin-configure-flags=FLAGS
1562 additional flags
for configuring linker plugins
1564 --enable-linker-plugin-flags=FLAGS
1565 additional flags
for configuring and building linker
1567 --enable-host-pie build position independent
host executables
1568 --enable-host-shared build
host code as shared libraries
1569 --enable-stage1-languages[=all
]
1570 choose additional languages to build during stage1.
1571 Mostly useful
for compiler development
1572 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1574 --enable-vtable-verify Enable vtable verification feature
1575 --enable-serial-[{host,target,build}-]configure
1576 force sequential configuration of sub-packages for
1577 the host, target or build machine, or all
1579 --enable-maintainer-mode
1580 enable make rules and dependencies not useful (and
1581 sometimes confusing) to the casual installer
1582 --enable-stage1-checking[=all]
1583 choose additional checking for stage1 of the
1585 --enable-werror enable -Werror in bootstrap stage2 and later
1588 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1589 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1590 --with-build-libsubdir=DIR Directory where to find libraries for build system
1591 --with-system-zlib use installed libz
1592 --with-mpc=PATH specify prefix directory for installed MPC package.
1593 Equivalent to --with-mpc-include=PATH/include plus
1594 --with-mpc-lib=PATH/lib
1595 --with-mpc-include=PATH specify directory for installed MPC include files
1596 --with-mpc-lib=PATH specify directory for the installed MPC library
1597 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1598 Equivalent to --with-mpfr-include=PATH/include plus
1599 --with-mpfr-lib=PATH/lib
1600 --with-mpfr-include=PATH
1601 specify directory for installed MPFR include files
1602 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1603 --with-gmp=PATH specify prefix directory for the installed GMP
1604 package. Equivalent to
1605 --with-gmp-include=PATH/include plus
1606 --with-gmp-lib=PATH/lib
1607 --with-gmp-include=PATH specify directory for installed GMP include files
1608 --with-gmp-lib=PATH specify directory for the installed GMP library
1609 --with-stage1-libs=LIBS libraries for stage1
1610 --with-static-standard-libraries
1611 use -static-libstdc++ and -static-libgcc
1613 --with-stage1-ldflags=FLAGS
1614 linker flags for stage1
1615 --with-boot-libs=LIBS libraries for stage2 and later
1616 --with-boot-ldflags=FLAGS
1617 linker flags for stage2 and later
1618 --with-isl=PATH Specify prefix directory for the installed isl
1619 package. Equivalent to
1620 --with-isl-include=PATH/include plus
1621 --with-isl-lib=PATH/lib
1622 --with-isl-include=PATH Specify directory for installed isl include files
1623 --with-isl-lib=PATH Specify the directory for the installed isl library
1624 --with-target-bdw-gc=PATHLIST
1625 specify prefix directory for installed bdw-gc
1626 package. Equivalent to
1627 --with-target-bdw-gc-include=PATH/include plus
1628 --with-target-bdw-gc-lib=PATH/lib
1629 --with-target-bdw-gc-include=PATHLIST
1630 specify directories for installed bdw-gc include
1632 --with-target-bdw-gc-lib=PATHLIST
1633 specify directories for installed bdw-gc library
1634 --with-gcc-major-version-only
1635 use only GCC major number in filesystem paths
1636 --with-build-sysroot=SYSROOT
1637 use sysroot as the system root during the build
1638 --with-debug-prefix-map='A
=B C
=D ...
'
1639 map A to B, C to D ... in debug information
1640 --with-build-config='NAME NAME2...
'
1641 use config/NAME.mk build configuration
1642 --with-build-time-tools=PATH
1643 use given path to find target tools during the build
1645 Some influential environment variables:
1646 CC C compiler command
1647 CFLAGS C compiler flags
1648 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1649 nonstandard directory <lib dir>
1650 LIBS libraries to pass to the linker, e.g. -l<library>
1651 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1652 you have headers in a nonstandard directory <include dir>
1653 CXX C++ compiler command
1654 CXXFLAGS C++ compiler flags
1656 additional configure arguments for build directories
1658 additional configure arguments for host directories
1660 additional configure arguments for target directories
1663 DLLTOOL DLLTOOL for the host
1664 DSYMUTIL DSYMUTIL for the host
1666 LIPO LIPO for the host
1668 RANLIB RANLIB for the host
1669 STRIP STRIP for the host
1670 WINDRES WINDRES for the host
1671 WINDMC WINDMC for the host
1672 OBJCOPY OBJCOPY for the host
1673 OBJDUMP OBJDUMP for the host
1674 OTOOL OTOOL for the host
1675 READELF READELF for the host
1683 GFORTRAN for the target
1695 DLLTOOL for the target
1697 DSYMUTIL for the target
1705 OBJCOPY for the target
1707 OBJDUMP for the target
1709 OTOOL for the target
1711 RANLIB for the target
1713 READELF for the target
1715 STRIP for the target
1717 WINDRES for the target
1719 WINDMC for the target
1721 Use these variables to override the choices made by `configure' or to
help
1722 it to
find libraries and programs with nonstandard names
/locations.
1724 Report bugs to the package provider.
1729 if test "$ac_init_help" = "recursive"; then
1730 # If there are subdirs, report their specific --help.
1731 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1732 test -d "$ac_dir" ||
1733 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1738 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1740 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1741 # A ".." for each directory in $ac_dir_suffix.
1742 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1743 case $ac_top_builddir_sub in
1744 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1745 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1748 ac_abs_top_builddir
=$ac_pwd
1749 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1750 # for backward compatibility:
1751 ac_top_builddir
=$ac_top_build_prefix
1754 .
) # We are building in place.
1756 ac_top_srcdir
=$ac_top_builddir_sub
1757 ac_abs_top_srcdir
=$ac_pwd ;;
1758 [\\/]* | ?
:[\\/]* ) # Absolute name.
1759 ac_srcdir
=$srcdir$ac_dir_suffix;
1760 ac_top_srcdir
=$srcdir
1761 ac_abs_top_srcdir
=$srcdir ;;
1763 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1764 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1765 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1767 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1769 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1770 # Check for guested configure.
1771 if test -f "$ac_srcdir/configure.gnu"; then
1773 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1774 elif test -f "$ac_srcdir/configure"; then
1776 $SHELL "$ac_srcdir/configure" --help=recursive
1778 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1780 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1784 test -n "$ac_init_help" && exit $ac_status
1785 if $ac_init_version; then
1788 generated by GNU Autoconf
2.69
1790 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1791 This configure
script is free software
; the Free Software Foundation
1792 gives unlimited permission to copy
, distribute and modify it.
1797 ## ------------------------ ##
1798 ## Autoconf initialization. ##
1799 ## ------------------------ ##
1801 # ac_fn_c_try_compile LINENO
1802 # --------------------------
1803 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1804 ac_fn_c_try_compile
()
1806 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1807 rm -f conftest.
$ac_objext
1808 if { { ac_try
="$ac_compile"
1810 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_compile") 2>conftest.err
1817 if test -s conftest.err; then
1818 grep -v '^ *+' conftest.err >conftest.er1
1819 cat conftest.er1 >&5
1820 mv -f conftest.er1 conftest.err
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } && {
1824 test -z "$ac_c_werror_flag" ||
1825 test ! -s conftest.err
1826 } && test -s conftest.$ac_objext; then :
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1837 } # ac_fn_c_try_compile
1839 # ac_fn_cxx_try_compile LINENO
1840 # ----------------------------
1841 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_cxx_try_compile ()
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext
1846 if { { ac_try="$ac_compile"
1848 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1849 *) ac_try_echo
=$ac_try;;
1851 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_compile") 2>conftest.err
1855 if test -s conftest.err
; then
1856 grep -v '^ *+' conftest.err
>conftest.er1
1857 cat conftest.er1
>&5
1858 mv -f conftest.er1 conftest.err
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_cxx_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest.
$ac_objext; then :
1867 $as_echo "$as_me: failed program was:" >&5
1868 sed 's/^/| /' conftest.
$ac_ext >&5
1872 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1873 as_fn_set_status
$ac_retval
1875 } # ac_fn_cxx_try_compile
1877 # ac_fn_cxx_try_link LINENO
1878 # -------------------------
1879 # Try to link conftest.$ac_ext, and return whether this succeeded.
1880 ac_fn_cxx_try_link
()
1882 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1883 rm -f conftest.
$ac_objext conftest
$ac_exeext
1884 if { { ac_try
="$ac_link"
1886 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1887 *) ac_try_echo=$ac_try;;
1889 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1890 $as_echo "$ac_try_echo"; } >&5
1891 (eval "$ac_link") 2>conftest.err
1893 if test -s conftest.err; then
1894 grep -v '^ *+' conftest.err >conftest.er1
1895 cat conftest.er1 >&5
1896 mv -f conftest.er1 conftest.err
1898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1899 test $ac_status = 0; } && {
1900 test -z "$ac_cxx_werror_flag" ||
1901 test ! -s conftest.err
1902 } && test -s conftest$ac_exeext && {
1903 test "$cross_compiling" = yes ||
1904 test -x conftest$ac_exeext
1908 $as_echo "$as_me: failed program was:" >&5
1909 sed 's/^/| /' conftest.$ac_ext >&5
1913 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1914 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1915 # interfere with the next link command; also delete a directory that is
1916 # left behind by Apple's compiler. We do this before executing the actions.
1917 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1918 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1919 as_fn_set_status $ac_retval
1921 } # ac_fn_cxx_try_link
1923 # ac_fn_c_try_link LINENO
1924 # -----------------------
1925 # Try to link conftest.$ac_ext, and return whether this succeeded.
1928 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1929 rm -f conftest.$ac_objext conftest$ac_exeext
1930 if { { ac_try="$ac_link"
1932 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1933 *) ac_try_echo
=$ac_try;;
1935 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1936 $as_echo "$ac_try_echo"; } >&5
1937 (eval "$ac_link") 2>conftest.err
1939 if test -s conftest.err
; then
1940 grep -v '^ *+' conftest.err
>conftest.er1
1941 cat conftest.er1
>&5
1942 mv -f conftest.er1 conftest.err
1944 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1945 test $ac_status = 0; } && {
1946 test -z "$ac_c_werror_flag" ||
1947 test ! -s conftest.err
1948 } && test -s conftest
$ac_exeext && {
1949 test "$cross_compiling" = yes ||
1950 test -x conftest
$ac_exeext
1954 $as_echo "$as_me: failed program was:" >&5
1955 sed 's/^/| /' conftest.
$ac_ext >&5
1959 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1960 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1961 # interfere with the next link command; also delete a directory that is
1962 # left behind by Apple's compiler. We do this before executing the actions.
1963 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1964 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1965 as_fn_set_status
$ac_retval
1967 } # ac_fn_c_try_link
1968 cat >config.log
<<_ACEOF
1969 This file contains any messages produced by compilers while
1970 running configure, to aid debugging if configure makes a mistake.
1972 It was created by $as_me, which was
1973 generated by GNU Autoconf 2.69. Invocation command line was
1985 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1986 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1987 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1988 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1989 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1991 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1992 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1994 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1995 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1996 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1997 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1998 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1999 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2000 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2004 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2008 test -z "$as_dir" && as_dir
=.
2009 $as_echo "PATH: $as_dir"
2025 # Keep a trace of the command line.
2026 # Strip out --no-create and --no-recursion so they do not pile up.
2027 # Strip out --silent because we don't want to record it for future runs.
2028 # Also quote any args containing shell meta-characters.
2029 # Make two passes to allow for proper duplicate-argument suppression.
2033 ac_must_keep_next
=false
2039 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2040 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2041 |
-silent |
--silent |
--silen |
--sile |
--sil)
2044 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2047 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2049 as_fn_append ac_configure_args1
" '$ac_arg'"
2050 if test $ac_must_keep_next = true
; then
2051 ac_must_keep_next
=false
# Got value, back to normal.
2054 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2055 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2056 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2057 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2058 case "$ac_configure_args0 " in
2059 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2062 -* ) ac_must_keep_next
=true
;;
2065 as_fn_append ac_configure_args
" '$ac_arg'"
2070 { ac_configure_args0
=; unset ac_configure_args0
;}
2071 { ac_configure_args1
=; unset ac_configure_args1
;}
2073 # When interrupted or exit'd, cleanup temporary files, and complete
2074 # config.log. We remove comments because anyway the quotes in there
2075 # would cause problems or look ugly.
2076 # WARNING: Use '\'' to represent an apostrophe within the trap.
2077 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2078 trap 'exit_status=$?
2079 # Save into config.log some information that might help in debugging.
2083 $as_echo "## ---------------- ##
2084 ## Cache variables. ##
2085 ## ---------------- ##"
2087 # The following way of writing the cache mishandles newlines in values,
2089 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2090 eval ac_val=\$$ac_var
2094 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2095 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2098 _ | IFS | as_nl) ;; #(
2099 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2100 *) { eval $ac_var=; unset $ac_var;} ;;
2105 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2106 *${as_nl}ac_space=\ *)
2108 "s/'\''/'\''\\\\'\'''\''/g;
2109 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2112 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2119 $as_echo "## ----------------- ##
2120 ## Output variables. ##
2121 ## ----------------- ##"
2123 for ac_var in $ac_subst_vars
2125 eval ac_val=\$$ac_var
2127 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2129 $as_echo "$ac_var='\''$ac_val'\''"
2133 if test -n "$ac_subst_files"; then
2134 $as_echo "## ------------------- ##
2135 ## File substitutions. ##
2136 ## ------------------- ##"
2138 for ac_var
in $ac_subst_files
2140 eval ac_val
=\$
$ac_var
2142 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2144 $as_echo "$ac_var='\''$ac_val'\''"
2149 if test -s confdefs.h; then
2150 $as_echo "## ----------- ##
2157 test "$ac_signal" != 0 &&
2158 $as_echo "$as_me: caught signal $ac_signal"
2159 $as_echo "$as_me: exit $exit_status"
2161 rm -f core *.core core.conftest.* &&
2162 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2165 for ac_signal
in 1 2 13 15; do
2166 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2170 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2171 rm -f -r conftest
* confdefs.h
2173 $as_echo "/* confdefs.h */" > confdefs.h
2175 # Predefined preprocessor variables.
2177 cat >>confdefs.h
<<_ACEOF
2178 #define PACKAGE_NAME "$PACKAGE_NAME"
2181 cat >>confdefs.h
<<_ACEOF
2182 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2185 cat >>confdefs.h
<<_ACEOF
2186 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2189 cat >>confdefs.h
<<_ACEOF
2190 #define PACKAGE_STRING "$PACKAGE_STRING"
2193 cat >>confdefs.h
<<_ACEOF
2194 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2197 cat >>confdefs.h
<<_ACEOF
2198 #define PACKAGE_URL "$PACKAGE_URL"
2202 # Let the site file select an alternate cache file if it wants to.
2203 # Prefer an explicitly selected file to automatically selected ones.
2206 if test -n "$CONFIG_SITE"; then
2207 # We do not want a PATH search for config.site.
2208 case $CONFIG_SITE in #((
2209 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2210 */*) ac_site_file1
=$CONFIG_SITE;;
2211 *) ac_site_file1
=.
/$CONFIG_SITE;;
2213 elif test "x$prefix" != xNONE
; then
2214 ac_site_file1
=$prefix/share
/config.site
2215 ac_site_file2
=$prefix/etc
/config.site
2217 ac_site_file1
=$ac_default_prefix/share
/config.site
2218 ac_site_file2
=$ac_default_prefix/etc
/config.site
2220 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2222 test "x$ac_site_file" = xNONE
&& continue
2223 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2224 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2225 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2226 sed 's/^/| /' "$ac_site_file" >&5
2228 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2230 as_fn_error $?
"failed to load site script $ac_site_file
2231 See \`config.log' for more details" "$LINENO" 5; }
2235 if test -r "$cache_file"; then
2236 # Some versions of bash will fail to source /dev/null (special files
2237 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2238 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2240 $as_echo "$as_me: loading cache $cache_file" >&6;}
2242 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2243 *) .
"./$cache_file";;
2247 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2248 $as_echo "$as_me: creating cache $cache_file" >&6;}
2252 # Check that the precious variables saved in the cache have kept the same
2254 ac_cache_corrupted
=false
2255 for ac_var
in $ac_precious_vars; do
2256 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2257 eval ac_new_set
=\
$ac_env_${ac_var}_set
2258 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2259 eval ac_new_val
=\
$ac_env_${ac_var}_value
2260 case $ac_old_set,$ac_new_set in
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2263 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2264 ac_cache_corrupted
=: ;;
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2267 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2268 ac_cache_corrupted
=: ;;
2271 if test "x$ac_old_val" != "x$ac_new_val"; then
2272 # differences in whitespace do not lead to failure.
2273 ac_old_val_w
=`echo x $ac_old_val`
2274 ac_new_val_w
=`echo x $ac_new_val`
2275 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2277 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2278 ac_cache_corrupted
=:
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2281 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2282 eval $ac_var=\
$ac_old_val
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2285 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2286 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2287 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2290 # Pass precious variables to config.status.
2291 if test "$ac_new_set" = set; then
2293 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2294 *) ac_arg
=$ac_var=$ac_new_val ;;
2296 case " $ac_configure_args " in
2297 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2298 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2302 if $ac_cache_corrupted; then
2303 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2305 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2306 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2307 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2309 ## -------------------- ##
2310 ## Main body of script. ##
2311 ## -------------------- ##
2314 ac_cpp
='$CPP $CPPFLAGS'
2315 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2316 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2317 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2327 # if PWD already has a value, it is probably wrong.
2328 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2330 # Export original configure arguments for use by sub-configures.
2331 # Quote arguments with shell meta charatcers.
2332 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2333 set -- "$progname" "$@"
2337 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2338 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2339 # if the argument is of the form -foo=baz, quote the baz part only
2340 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2343 # Add the quoted argument to the list.
2344 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2346 if test "$silent" = yes; then
2347 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2349 # Remove the initial space we just introduced and, as these will be
2350 # expanded by make, quote '$'.
2351 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2354 # Find the build, host, and target systems.
2356 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2357 if test -f "$ac_dir/install-sh"; then
2359 ac_install_sh
="$ac_aux_dir/install-sh -c"
2361 elif test -f "$ac_dir/install.sh"; then
2363 ac_install_sh
="$ac_aux_dir/install.sh -c"
2365 elif test -f "$ac_dir/shtool"; then
2367 ac_install_sh
="$ac_aux_dir/shtool install -c"
2371 if test -z "$ac_aux_dir"; then
2372 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2375 # These three variables are undocumented and unsupported,
2376 # and are intended to be withdrawn in a future Autoconf release.
2377 # They can cause serious problems if a builder's source tree is in a directory
2378 # whose full name contains unusual characters.
2379 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2380 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2381 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2384 # Make sure we can run config.sub.
2385 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2386 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2389 $as_echo_n "checking build system type... " >&6; }
2390 if ${ac_cv_build+:} false
; then :
2391 $as_echo_n "(cached) " >&6
2393 ac_build_alias
=$build_alias
2394 test "x$ac_build_alias" = x
&&
2395 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2396 test "x$ac_build_alias" = x
&&
2397 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2398 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2399 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2403 $as_echo "$ac_cv_build" >&6; }
2404 case $ac_cv_build in
2406 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2409 ac_save_IFS
=$IFS; IFS
='-'
2415 # Remember, the first character of IFS is used to create $*,
2416 # except with old shells:
2419 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2422 case ${build_alias} in
2423 "") build_noncanonical
=${build} ;;
2424 *) build_noncanonical
=${build_alias} ;;
2429 case ${host_alias} in
2430 "") host_noncanonical
=${build_noncanonical} ;;
2431 *) host_noncanonical
=${host_alias} ;;
2436 case ${target_alias} in
2437 "") target_noncanonical
=${host_noncanonical} ;;
2438 *) target_noncanonical
=${target_alias} ;;
2444 test "$host_noncanonical" = "$target_noncanonical" &&
2445 test "$program_prefix$program_suffix$program_transform_name" = \
2447 program_transform_name
=s
,y
,y
,
2449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2450 $as_echo_n "checking host system type... " >&6; }
2451 if ${ac_cv_host+:} false
; then :
2452 $as_echo_n "(cached) " >&6
2454 if test "x$host_alias" = x
; then
2455 ac_cv_host
=$ac_cv_build
2457 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2458 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2463 $as_echo "$ac_cv_host" >&6; }
2466 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2469 ac_save_IFS
=$IFS; IFS
='-'
2475 # Remember, the first character of IFS is used to create $*,
2476 # except with old shells:
2479 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2483 $as_echo_n "checking target system type... " >&6; }
2484 if ${ac_cv_target+:} false
; then :
2485 $as_echo_n "(cached) " >&6
2487 if test "x$target_alias" = x
; then
2488 ac_cv_target
=$ac_cv_host
2490 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2491 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2496 $as_echo "$ac_cv_target" >&6; }
2497 case $ac_cv_target in
2499 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2501 target
=$ac_cv_target
2502 ac_save_IFS
=$IFS; IFS
='-'
2508 # Remember, the first character of IFS is used to create $*,
2509 # except with old shells:
2512 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2515 # The aliases save the names the user supplied, while $host etc.
2516 # will get canonicalized.
2517 test -n "$target_alias" &&
2518 test "$program_prefix$program_suffix$program_transform_name" = \
2520 program_prefix
=${target_alias}-
2522 test "$program_prefix" != NONE
&&
2523 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2524 # Use a double $ so make ignores it.
2525 test "$program_suffix" != NONE
&&
2526 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2527 # Double any \ or $.
2528 # By default was `s,x,x', remove it if useless.
2529 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2530 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2534 # Get 'install' or 'install-sh' and its variants.
2535 # Find a good install program. We prefer a C program (faster),
2536 # so one script is as good as another. But avoid the broken or
2537 # incompatible versions:
2538 # SysV /etc/install, /usr/sbin/install
2539 # SunOS /usr/etc/install
2540 # IRIX /sbin/install
2542 # AmigaOS /C/install, which installs bootblocks on floppy discs
2543 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2544 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2545 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2546 # OS/2's system install, which has a completely different semantic
2547 # ./install, which can be erroneously created by make from ./install.sh.
2548 # Reject install programs that cannot install multiple files.
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2550 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2551 if test -z "$INSTALL"; then
2552 if ${ac_cv_path_install+:} false
; then :
2553 $as_echo_n "(cached) " >&6
2555 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2559 test -z "$as_dir" && as_dir
=.
2560 # Account for people who put trailing slashes in PATH elements.
2561 case $as_dir/ in #((
2562 .
/ | .
// |
/[cC
]/* | \
2563 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2564 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2567 # OSF1 and SCO ODT 3.0 have their own names for install.
2568 # Don't use installbsd from OSF since it installs stuff as root
2570 for ac_prog
in ginstall scoinst
install; do
2571 for ac_exec_ext
in '' $ac_executable_extensions; do
2572 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2573 if test $ac_prog = install &&
2574 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2575 # AIX install. It has an incompatible calling convention.
2577 elif test $ac_prog = install &&
2578 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2579 # program-specific install script used by HP pwplus--don't use.
2582 rm -rf conftest.one conftest.two conftest.dir
2583 echo one
> conftest.one
2584 echo two
> conftest.two
2586 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2587 test -s conftest.one
&& test -s conftest.two
&&
2588 test -s conftest.dir
/conftest.one
&&
2589 test -s conftest.dir
/conftest.two
2591 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2604 rm -rf conftest.one conftest.two conftest.dir
2607 if test "${ac_cv_path_install+set}" = set; then
2608 INSTALL
=$ac_cv_path_install
2610 # As a last resort, use the slow shell script. Don't cache a
2611 # value for INSTALL within a source directory, because that will
2612 # break other packages using the cache if that directory is
2613 # removed, or if the value is a relative name.
2614 INSTALL
=$ac_install_sh
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2618 $as_echo "$INSTALL" >&6; }
2620 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2621 # It thinks the first close brace ends the variable substitution.
2622 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2624 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2626 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2629 $as_echo_n "checking whether ln works... " >&6; }
2630 if ${acx_cv_prog_LN+:} false
; then :
2631 $as_echo_n "(cached) " >&6
2633 rm -f conftestdata_t
2634 echo >conftestdata_f
2635 if ln conftestdata_f conftestdata_t
2>/dev
/null
2641 rm -f conftestdata_f conftestdata_t
2644 if test $acx_cv_prog_LN = no
; then
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2647 $as_echo "no, using $LN" >&6; }
2649 LN
="$acx_cv_prog_LN"
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2651 $as_echo "yes" >&6; }
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2655 $as_echo_n "checking whether ln -s works... " >&6; }
2657 if test "$LN_S" = "ln -s"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2659 $as_echo "yes" >&6; }
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2662 $as_echo "no, using $LN_S" >&6; }
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2666 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2667 if ${ac_cv_path_SED+:} false
; then :
2668 $as_echo_n "(cached) " >&6
2670 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2671 for ac_i
in 1 2 3 4 5 6 7; do
2672 ac_script
="$ac_script$as_nl$ac_script"
2674 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2675 { ac_script
=; unset ac_script
;}
2676 if test -z "$SED"; then
2677 ac_path_SED_found
=false
2678 # Loop through the user's path and test for each of PROGNAME-LIST
2679 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2683 test -z "$as_dir" && as_dir
=.
2684 for ac_prog
in sed gsed
; do
2685 for ac_exec_ext
in '' $ac_executable_extensions; do
2686 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2687 as_fn_executable_p
"$ac_path_SED" ||
continue
2688 # Check for GNU ac_path_SED and select it if it is found.
2689 # Check for GNU $ac_path_SED
2690 case `"$ac_path_SED" --version 2>&1` in
2692 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2695 $as_echo_n 0123456789 >"conftest.in"
2698 cat "conftest.in" "conftest.in" >"conftest.tmp"
2699 mv "conftest.tmp" "conftest.in"
2700 cp "conftest.in" "conftest.nl"
2701 $as_echo '' >> "conftest.nl"
2702 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2703 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2704 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2705 if test $ac_count -gt ${ac_path_SED_max-0}; then
2706 # Best one so far, save it but keep looking for a better one
2707 ac_cv_path_SED
="$ac_path_SED"
2708 ac_path_SED_max
=$ac_count
2710 # 10*(2^10) chars as input seems more than enough
2711 test $ac_count -gt 10 && break
2713 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2716 $ac_path_SED_found && break 3
2721 if test -z "$ac_cv_path_SED"; then
2722 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2730 $as_echo "$ac_cv_path_SED" >&6; }
2731 SED
="$ac_cv_path_SED"
2734 for ac_prog
in gawk mawk nawk
awk
2736 # Extract the first word of "$ac_prog", so it can be a program name with args.
2737 set dummy
$ac_prog; ac_word
=$2
2738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2739 $as_echo_n "checking for $ac_word... " >&6; }
2740 if ${ac_cv_prog_AWK+:} false
; then :
2741 $as_echo_n "(cached) " >&6
2743 if test -n "$AWK"; then
2744 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2746 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2750 test -z "$as_dir" && as_dir
=.
2751 for ac_exec_ext
in '' $ac_executable_extensions; do
2752 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2753 ac_cv_prog_AWK
="$ac_prog"
2754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2764 if test -n "$AWK"; then
2765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2766 $as_echo "$AWK" >&6; }
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2769 $as_echo "no" >&6; }
2773 test -n "$AWK" && break
2777 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2779 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2781 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2782 INSTALL
="${srcpwd}/install-sh -c"
2785 # Set srcdir to "." if that's what it is.
2786 # This is important for multilib support.
2788 if test "${pwd}" = "${srcpwd}" ; then
2796 ### To add a new directory to the tree, first choose whether it is a target
2797 ### or a host dependent tool. Then put it into the appropriate list
2798 ### (library or tools, host or target), doing a dependency sort.
2800 # Subdirs will be configured in the order listed in build_configdirs,
2801 # configdirs, or target_configdirs; see the serialization section below.
2803 # Dependency sorting is only needed when *configuration* must be done in
2804 # a particular order. In all cases a dependency should be specified in
2805 # the Makefile, whether or not it's implicitly specified here.
2807 # Double entries in build_configdirs, configdirs, or target_configdirs may
2808 # cause circular dependencies and break everything horribly.
2810 # these library is used by various programs built for the build
2813 build_libs
="build-libiberty build-libcpp"
2815 # these tools are built for the build environment
2816 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2818 # these libraries are used by various programs built for the host environment
2820 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf libsframe"
2822 # these tools are built for the host environment
2823 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2824 # know that we are building the simulator.
2825 # binutils, gas and ld appear in that order because it makes sense to run
2826 # "make check" in that particular order.
2827 # If --enable-gold is used, "gold" may replace "ld".
2828 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"
2830 # these libraries are built for the target environment, and are built after
2831 # the host libraries and the host tools (which may be a cross compiler)
2832 # Note that libiberty is not a target library.
2833 target_libraries
="target-libgcc \
2834 target-libbacktrace \
2840 target-libstdc++-v3 \
2841 target-libsanitizer \
2844 target-libquadmath \
2845 target-libgfortran \
2854 # these tools are built using the target libraries, and are intended to
2855 # run only in the target environment
2857 # note: any program that *uses* libraries that are in the "target_libraries"
2858 # list belongs in this list.
2860 target_tools
="target-rda"
2862 ################################################################################
2864 ## All tools belong in one of the four categories, and are assigned above
2865 ## We assign ${configdirs} this way to remove all embedded newlines. This
2866 ## is important because configure will choke if they ever get through.
2867 ## ${configdirs} is directories we build using the host tools.
2868 ## ${target_configdirs} is directories we build using the target tools.
2869 configdirs
=`echo ${host_libs} ${host_tools}`
2870 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2871 build_configdirs
=`echo ${build_libs} ${build_tools}`
2875 ################################################################################
2877 srcname
="gnu development package"
2879 # This gets set non-empty for some net releases of packages.
2882 # Define is_cross_compiler to save on calls to 'test'.
2884 if test x
"${host}" = x
"${target}" ; then
2885 is_cross_compiler
=no
2887 is_cross_compiler
=yes
2890 # Find the build and target subdir names.
2892 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2893 # have matching libraries, they should use host libraries: Makefile.tpl
2894 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2895 # However, they still use the build modules, because the corresponding
2896 # host modules (e.g. bison) are only built for the host when bootstrap
2898 # - build_subdir is where we find build modules, and never changes.
2899 # - build_libsubdir is where we find build libraries, and can be overridden.
2901 # Prefix 'build-' so this never conflicts with target_subdir.
2902 build_subdir
="build-${build_noncanonical}"
2904 # Check whether --with-build-libsubdir was given.
2905 if test "${with_build_libsubdir+set}" = set; then :
2906 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2908 build_libsubdir
="$build_subdir"
2911 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2912 if ( test $srcdir = .
&& test -d gcc
) \
2913 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2914 host_subdir
="host-${host_noncanonical}"
2919 target_subdir
=${target_noncanonical}
2921 # Be sure to cover against remnants of an in-tree build.
2922 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2923 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2924 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2927 # Skipdirs are removed silently.
2929 # Noconfigdirs are removed loudly.
2933 # Make sure we don't let GNU ld be added if we didn't want it.
2934 if test x
$with_gnu_ld = xno
; then
2936 noconfigdirs
="$noconfigdirs ld gold"
2940 # Make sure we don't let GNU as be added if we didn't want it.
2941 if test x
$with_gnu_as = xno
; then
2943 noconfigdirs
="$noconfigdirs gas"
2948 # Check whether --with-system-zlib was given.
2949 if test "${with_system_zlib+set}" = set; then :
2950 withval
=$with_system_zlib;
2953 # Make sure we don't let ZLIB be added if we didn't want it.
2954 if test x
$with_system_zlib = xyes
; then
2955 use_included_zlib
=no
2956 noconfigdirs
="$noconfigdirs zlib"
2959 # Don't compile the bundled readline/libreadline.a if --with-system-readline
2961 if test x
$with_system_readline = xyes
; then
2962 noconfigdirs
="$noconfigdirs readline"
2965 # some tools are so dependent upon X11 that if we're not building with X,
2966 # it's not even worth trying to configure, much less build, that tool.
2969 yes |
"") ;; # the default value for this tree is that X11 is available
2971 skipdirs
="${skipdirs} tk itcl libgui"
2972 # We won't be able to build gdbtk without X.
2975 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2978 # Some are only suitable for cross toolchains.
2979 # Remove these if host=target.
2980 cross_only
="target-libgloss target-newlib target-opcodes"
2982 case $is_cross_compiler in
2983 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2986 # If both --with-headers and --with-libs are specified, default to
2988 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2989 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2990 if test x
"${with_newlib}" = x
; then
2995 # Recognize --with-newlib/--without-newlib.
2996 case ${with_newlib} in
2997 no
) skipdirs
="${skipdirs} target-newlib" ;;
2998 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3001 # Check whether --enable-as-accelerator-for was given.
3002 if test "${enable_as_accelerator_for+set}" = set; then :
3003 enableval
=$enable_as_accelerator_for;
3007 # Check whether --enable-offload-targets was given.
3008 if test "${enable_offload_targets+set}" = set; then :
3009 enableval
=$enable_offload_targets;
3010 if test x
"$enable_offload_targets" = x
; then
3011 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3015 enable_offload_targets
=
3019 # Check whether --enable-offload-defaulted was given.
3020 if test "${enable_offload_defaulted+set}" = set; then :
3021 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3023 enable_offload_defaulted
=
3027 # Handle --enable-gold, --enable-ld.
3028 # --disable-gold [--enable-ld]
3029 # Build only ld. Default option.
3030 # --enable-gold [--enable-ld]
3031 # Build both gold and ld. Install gold as "ld.gold", install ld
3032 # as "ld.bfd" and "ld".
3033 # --enable-gold=default [--enable-ld]
3034 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3035 # install ld as "ld.bfd".
3036 # --enable-gold[=default] --disable-ld
3037 # Build only gold, which is then installed as both "ld.gold" and "ld".
3038 # --enable-gold --enable-ld=default
3039 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3041 # In other words, ld is default
3042 # --enable-gold=default --enable-ld=default
3046 # Check whether --enable-gold was given.
3047 if test "${enable_gold+set}" = set; then :
3048 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3053 case "${ENABLE_GOLD}" in
3055 # Check for ELF target.
3058 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3059 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3060 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3061 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3063 *-*-linux*aout
* |
*-*-linux*oldld
*)
3071 if test "$is_elf" = "yes"; then
3072 # Check for target supported by gold.
3074 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3075 | aarch64
*-*-* | mips
*-*-* | s390
*-*-* | loongarch
*-*-*)
3076 configdirs
="$configdirs gold"
3077 if test x
${ENABLE_GOLD} = xdefault
; then
3088 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3092 # Check whether --enable-ld was given.
3093 if test "${enable_ld+set}" = set; then :
3094 enableval
=$enable_ld; ENABLE_LD
=$enableval
3100 case "${ENABLE_LD}" in
3102 if test x
${default_ld} != x
; then
3103 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3109 if test x
${ENABLE_GOLD} != xyes
; then
3110 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3111 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3113 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3116 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3121 # Decide the default method for compressing debug sections.
3122 # Provide a configure time option to override our default.
3123 # Check whether --enable-compressed_debug_sections was given.
3124 if test "${enable_compressed_debug_sections+set}" = set; then :
3125 enableval
=$enable_compressed_debug_sections;
3126 if test x
"$enable_compressed_debug_sections" = xyes
; then
3127 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3131 enable_compressed_debug_sections
=
3135 # Configure extra directories which are host specific
3139 configdirs
="$configdirs libtermcap" ;;
3142 # A target can indicate whether a language isn't supported for some reason.
3143 # Only spaces may be used in this macro; not newlines or tabs.
3144 unsupported_languages
=
3146 # Remove more programs from consideration, based on the host or
3147 # target this usually means that a port of the program doesn't
3151 i
[3456789]86-*-msdosdjgpp*)
3152 noconfigdirs
="$noconfigdirs tcl tk itcl"
3157 # Check whether --enable-libquadmath was given.
3158 if test "${enable_libquadmath+set}" = set; then :
3159 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3161 ENABLE_LIBQUADMATH
=yes
3164 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3165 noconfigdirs
="$noconfigdirs target-libquadmath"
3169 # Check whether --enable-libquadmath-support was given.
3170 if test "${enable_libquadmath_support+set}" = set; then :
3171 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3173 ENABLE_LIBQUADMATH_SUPPORT
=yes
3176 enable_libquadmath_support
=
3177 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3178 enable_libquadmath_support
=no
3182 # Check whether --enable-libada was given.
3183 if test "${enable_libada+set}" = set; then :
3184 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3189 if test "${ENABLE_LIBADA}" != "yes" ; then
3190 noconfigdirs
="$noconfigdirs gnattools"
3193 # Check whether --enable-libgm2 was given.
3194 if test "${enable_libgm2+set}" = set; then :
3195 enableval
=$enable_libgm2; ENABLE_LIBGM2
=$enableval
3200 if test "${ENABLE_LIBGM2}" != "yes" ; then
3201 noconfigdirs
="$noconfigdirs gm2tools"
3204 # Check whether --enable-libssp was given.
3205 if test "${enable_libssp+set}" = set; then :
3206 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3212 # Check whether --enable-libstdcxx was given.
3213 if test "${enable_libstdcxx+set}" = set; then :
3214 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3216 ENABLE_LIBSTDCXX
=default
3219 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3220 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3223 # Enable libgomp by default on hosted POSIX systems, and a few others.
3224 if test x
$enable_libgomp = x
; then
3226 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3228 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3230 *-*-solaris2* |
*-*-hpux11*)
3232 *-*-darwin* |
*-*-aix*)
3234 nvptx
*-*-* | amdgcn
*-*-*)
3237 noconfigdirs
="$noconfigdirs target-libgomp"
3242 # Disable libatomic on unsupported systems.
3243 if test -d ${srcdir}/libatomic
; then
3244 if test x
$enable_libatomic = x
; then
3245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3246 $as_echo_n "checking for libatomic support... " >&6; }
3247 if (srcdir
=${srcdir}/libatomic
; \
3248 .
${srcdir}/configure.tgt
; \
3249 test -n "$UNSUPPORTED")
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3252 $as_echo "no" >&6; }
3253 noconfigdirs
="$noconfigdirs target-libatomic"
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3256 $as_echo "yes" >&6; }
3261 # Disable libitm on unsupported systems.
3262 if test -d ${srcdir}/libitm
; then
3263 if test x
$enable_libitm = x
; then
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3265 $as_echo_n "checking for libitm support... " >&6; }
3266 if (srcdir
=${srcdir}/libitm
; \
3267 .
${srcdir}/configure.tgt
; \
3268 test -n "$UNSUPPORTED")
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3272 noconfigdirs
="$noconfigdirs target-libitm"
3274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3275 $as_echo "yes" >&6; }
3280 # Disable libsanitizer on unsupported systems.
3281 if test -d ${srcdir}/libsanitizer
; then
3282 if test x
$enable_libsanitizer = x
; then
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3284 $as_echo_n "checking for libsanitizer support... " >&6; }
3285 if (srcdir
=${srcdir}/libsanitizer
; \
3286 .
${srcdir}/configure.tgt
; \
3287 test -n "$UNSUPPORTED")
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3290 $as_echo "no" >&6; }
3291 noconfigdirs
="$noconfigdirs target-libsanitizer"
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3294 $as_echo "yes" >&6; }
3299 # Disable libvtv on unsupported systems.
3300 if test -d ${srcdir}/libvtv
; then
3301 if test x
$enable_libvtv = x
; then
3302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3303 $as_echo_n "checking for libvtv support... " >&6; }
3304 if (srcdir
=${srcdir}/libvtv
; \
3305 .
${srcdir}/configure.tgt
; \
3306 test "$VTV_SUPPORTED" != "yes")
3308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3309 $as_echo "no" >&6; }
3310 noconfigdirs
="$noconfigdirs target-libvtv"
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3313 $as_echo "yes" >&6; }
3318 # Disable libquadmath for some systems.
3321 noconfigdirs
="$noconfigdirs target-libquadmath"
3323 # libquadmath is unused on AIX and libquadmath build process use of
3324 # LD_LIBRARY_PATH can break AIX bootstrap.
3325 powerpc-
*-aix* | rs6000-
*-aix*)
3326 noconfigdirs
="$noconfigdirs target-libquadmath"
3330 # Disable libssp for some systems.
3333 # No hosted I/O support.
3334 noconfigdirs
="$noconfigdirs target-libssp"
3337 noconfigdirs
="$noconfigdirs target-libssp"
3339 powerpc-
*-aix* | rs6000-
*-aix*)
3340 noconfigdirs
="$noconfigdirs target-libssp"
3343 # No hosted I/O support.
3344 noconfigdirs
="$noconfigdirs target-libssp"
3347 # libssp uses a misaligned load to trigger a fault, but the RL78
3348 # doesn't fault for those - instead, it gives a build-time error
3349 # for explicit misaligned loads.
3350 noconfigdirs
="$noconfigdirs target-libssp"
3353 # No hosted I/O support.
3354 noconfigdirs
="$noconfigdirs target-libssp"
3358 # Disable libstdc++-v3 for some systems.
3359 # Allow user to override this if they pass --enable-libstdcxx
3360 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3363 # VxWorks uses the Dinkumware C++ library.
3364 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3367 # Not ported/fails to build when using newlib.
3368 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3371 # the C++ libraries don't build on top of CE's C libraries
3372 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3375 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3378 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3381 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3386 # Disable C++ on systems where it is known to not work.
3387 # For testing, you can override this with --enable-languages=c++.
3388 case ,${enable_languages}, in
3394 unsupported_languages
="$unsupported_languages c++"
3400 # Disable Objc on systems where it is known to not work.
3401 # For testing, you can override this with --enable-languages=objc.
3402 case ,${enable_languages}, in
3408 unsupported_languages
="$unsupported_languages objc"
3414 # Disable D on systems where it is known to not work.
3415 # For testing, you can override this with --enable-languages=d.
3416 case ,${enable_languages}, in
3422 unsupported_languages
="$unsupported_languages d"
3428 # Disable libphobos on unsupported systems.
3429 # For testing, you can override this with --enable-libphobos.
3430 if test -d ${srcdir}/libphobos
; then
3431 if test x
$enable_libphobos = x
; then
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3433 $as_echo_n "checking for libphobos support... " >&6; }
3434 if (srcdir
=${srcdir}/libphobos
; \
3435 .
${srcdir}/configure.tgt
; \
3436 test "$LIBPHOBOS_SUPPORTED" != "yes")
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3439 $as_echo "no" >&6; }
3440 noconfigdirs
="$noconfigdirs target-libphobos"
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3443 $as_echo "yes" >&6; }
3448 # Disable Fortran for some systems.
3451 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3452 unsupported_languages
="$unsupported_languages fortran"
3455 unsupported_languages
="$unsupported_languages fortran"
3459 # Disable libffi for some systems.
3463 i
[3456789]86-*-darwin*)
3465 x86_64-
*-darwin[912]*)
3468 noconfigdirs
="$noconfigdirs target-libffi"
3471 noconfigdirs
="$noconfigdirs target-libffi"
3474 noconfigdirs
="$noconfigdirs target-libffi"
3477 noconfigdirs
="$noconfigdirs target-libffi"
3480 noconfigdirs
="$noconfigdirs target-libffi"
3483 noconfigdirs
="$noconfigdirs target-libffi"
3486 noconfigdirs
="$noconfigdirs target-libffi"
3488 aarch64
*-*-freebsd*)
3489 noconfigdirs
="$noconfigdirs target-libffi"
3492 noconfigdirs
="$noconfigdirs target-libffi"
3495 noconfigdirs
="$noconfigdirs target-libffi"
3498 noconfigdirs
="$noconfigdirs target-libffi"
3501 noconfigdirs
="$noconfigdirs target-libffi"
3504 noconfigdirs
="$noconfigdirs target-libffi"
3506 cris-
*-* | crisv32-
*-*)
3510 *) # See PR46792 regarding target-libffi.
3511 noconfigdirs
="$noconfigdirs target-libffi";;
3515 noconfigdirs
="$noconfigdirs target-libffi"
3518 noconfigdirs
="$noconfigdirs target-libffi"
3520 i
[3456789]86-w64-mingw*)
3521 noconfigdirs
="$noconfigdirs target-libffi"
3523 i
[3456789]86-*-mingw*)
3524 noconfigdirs
="$noconfigdirs target-libffi"
3527 noconfigdirs
="$noconfigdirs target-libffi"
3530 noconfigdirs
="$noconfigdirs target-libffi"
3537 noconfigdirs
="$noconfigdirs target-libffi"
3540 noconfigdirs
="$noconfigdirs target-libffi"
3544 # Disable the go frontend on systems where it is known to not work. Please keep
3545 # this in sync with contrib/config-list.mk.
3547 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3548 unsupported_languages
="$unsupported_languages go"
3552 # Only allow gdbserver on some systems.
3553 if test -d ${srcdir}/gdbserver
; then
3554 if test x
$enable_gdbserver = x
; then
3555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3556 $as_echo_n "checking for gdbserver support... " >&6; }
3557 if (srcdir
=${srcdir}/gdbserver
; \
3558 .
${srcdir}/configure.srv
; \
3559 test -n "$UNSUPPORTED")
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3562 $as_echo "no" >&6; }
3563 noconfigdirs
="$noconfigdirs gdbserver"
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3566 $as_echo "yes" >&6; }
3571 # Disable libgo for some systems where it is known to not work.
3572 # For testing, you can easily override this with --enable-libgo.
3573 if test x
$enable_libgo = x
; then
3577 noconfigdirs
="$noconfigdirs target-libgo"
3579 *-*-cygwin* |
*-*-mingw*)
3580 noconfigdirs
="$noconfigdirs target-libgo"
3583 noconfigdirs
="$noconfigdirs target-libgo"
3588 # Default libgloss CPU subdirectory.
3589 libgloss_dir
="$target_cpu"
3592 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3596 libgloss_dir
=aarch64
3601 cris-
*-* | crisv32-
*-*)
3611 libgloss_dir
=loongarch
3613 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3614 libgloss_dir
=m68hc11
3616 m68
*-*-* | fido-
*-*)
3633 # Disable newlib and libgloss for various target OSes.
3636 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3638 i
[3456789]86-*-linux*)
3639 # This section makes it possible to build newlib natively on linux.
3640 # If we are using a cross compiler then don't configure newlib.
3641 if test x
${is_cross_compiler} != xno
; then
3642 noconfigdirs
="$noconfigdirs target-newlib"
3644 noconfigdirs
="$noconfigdirs target-libgloss"
3645 # If we are not using a cross compiler, do configure newlib.
3646 # Note however, that newlib will only be configured in this situation
3647 # if the --with-newlib option has been given, because otherwise
3648 # 'target-newlib' will appear in skipdirs.
3650 i
[3456789]86-*-rdos*)
3651 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3653 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3654 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3657 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3660 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3663 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3666 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3669 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3672 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3675 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3677 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3678 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3681 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3684 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3687 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3690 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3693 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3696 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3699 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3707 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3708 noconfigdirs
="$noconfigdirs sim target-rda"
3713 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3714 noconfigdirs
="$noconfigdirs sim target-rda"
3717 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3718 noconfigdirs
="$noconfigdirs sim target-rda"
3720 i
[3456789]86-*-darwin*)
3721 noconfigdirs
="$noconfigdirs ld gprof"
3722 noconfigdirs
="$noconfigdirs sim target-rda"
3724 x86_64-
*-darwin[912]*)
3725 noconfigdirs
="$noconfigdirs ld gas gprof"
3726 noconfigdirs
="$noconfigdirs sim target-rda"
3729 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3730 noconfigdirs
="$noconfigdirs sim target-rda"
3735 if test "x$with_gmp" = x \
3736 && ! test -d ${srcdir}/gmp \
3737 && test -f /usr
/local
/include
/gmp.h
; then
3742 # Remove unsupported stuff on all kaOS configurations.
3743 noconfigdirs
="$noconfigdirs target-libgloss"
3750 noconfigdirs
="$noconfigdirs target-libgloss"
3753 noconfigdirs
="$noconfigdirs target-libgloss"
3755 # The tpf target doesn't support gdb yet.
3757 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3760 noconfigdirs
="$noconfigdirs target-rda"
3765 # ld works, but does not support shared libraries.
3766 # gas doesn't generate exception information.
3767 noconfigdirs
="$noconfigdirs gas ld"
3770 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3773 # newlib is not 64 bit ready
3774 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3777 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3779 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3780 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3783 noconfigdirs
="$noconfigdirs sim"
3786 noconfigdirs
="$noconfigdirs target-libgloss"
3789 noconfigdirs
="$noconfigdirs ld target-libgloss"
3792 if test x
${with_avrlibc} != xno
; then
3793 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3796 c4x-
*-* | tic4x-
*-*)
3797 noconfigdirs
="$noconfigdirs target-libgloss"
3800 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3803 noconfigdirs
="$noconfigdirs target-libgloss"
3806 noconfigdirs
="$noconfigdirs gdb"
3809 noconfigdirs
="$noconfigdirs gdb"
3812 noconfigdirs
="$noconfigdirs target-rda gprof"
3815 noconfigdirs
="$noconfigdirs"
3818 noconfigdirs
="$noconfigdirs target-libgloss"
3821 noconfigdirs
="$noconfigdirs target-libgloss"
3824 noconfigdirs
="$noconfigdirs gdb"
3832 hppa
*-*-openbsd* | \
3838 noconfigdirs
="$noconfigdirs ld"
3841 noconfigdirs
="$noconfigdirs gdb"
3844 # No gdb support yet.
3845 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3848 # No ld support yet.
3849 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3852 # No ld support yet.
3853 noconfigdirs
="$noconfigdirs libgui itcl ld"
3855 i
[3456789]86-w64-mingw*)
3857 i
[3456789]86-*-mingw*)
3858 target_configdirs
="$target_configdirs target-winsup"
3861 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3862 noconfigdirs
="$noconfigdirs target-libgloss"
3863 # always build newlib if winsup directory is present.
3864 if test -d "$srcdir/winsup/cygwin"; then
3865 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3866 elif test -d "$srcdir/newlib"; then
3867 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3871 noconfigdirs
="$noconfigdirs target-libgloss"
3873 i
[3456789]86-*-sco3.2v5
*)
3874 # The linker does not yet know about weak symbols in COFF,
3875 # and is not configured to handle mixed ELF and COFF.
3876 noconfigdirs
="$noconfigdirs ld target-libgloss"
3878 i
[3456789]86-*-sco*)
3879 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3881 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3882 noconfigdirs
="$noconfigdirs target-libgloss"
3884 i
[3456789]86-*-sysv4*)
3885 noconfigdirs
="$noconfigdirs target-libgloss"
3887 i
[3456789]86-*-beos*)
3888 noconfigdirs
="$noconfigdirs gdb"
3890 i
[3456789]86-*-rdos*)
3891 noconfigdirs
="$noconfigdirs gdb"
3894 noconfigdirs
="$noconfigdirs gdb"
3897 noconfigdirs
="$noconfigdirs sim"
3900 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3901 noconfigdirs
="$noconfigdirs $target_libraries"
3904 noconfigdirs
="$noconfigdirs gdb gprof"
3907 # copied from rs6000-*-* entry
3908 noconfigdirs
="$noconfigdirs gprof"
3910 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3911 target_configdirs
="$target_configdirs target-winsup"
3912 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3913 # always build newlib.
3914 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3916 # This is temporary until we can link against shared libraries
3917 powerpcle-
*-solaris*)
3918 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3921 noconfigdirs
="$noconfigdirs gdb"
3924 noconfigdirs
="$noconfigdirs gprof"
3927 noconfigdirs
="$noconfigdirs gprof"
3930 noconfigdirs
="$noconfigdirs gprof"
3933 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
3936 noconfigdirs
="$noconfigdirs gprof"
3938 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
3939 if test x
$with_newlib = xyes
; then
3940 noconfigdirs
="$noconfigdirs gprof"
3944 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3947 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3950 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
3954 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
3955 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
3956 noconfigdirs
="$noconfigdirs ld gas gprof"
3959 noconfigdirs
="$noconfigdirs gprof"
3962 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
3969 noconfigdirs
="$noconfigdirs target-libgloss" ;;
3973 if test x
${is_cross_compiler} = xno
; then
3978 noconfigdirs
="$noconfigdirs sim"
3981 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
3984 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3987 noconfigdirs
="$noconfigdirs ld"
3989 loongarch
*-*-linux*)
3992 noconfigdirs
="$noconfigdirs gprof"
3996 # If we aren't building newlib, then don't build libgloss, since libgloss
3997 # depends upon some newlib header files.
3998 case "${noconfigdirs}" in
3999 *target-libgloss
*) ;;
4000 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4003 # Work in distributions that contain no compiler tools, like Autoconf.
4004 host_makefile_frag
=/dev
/null
4005 if test -d ${srcdir}/config
; then
4007 i
[3456789]86-*-msdosdjgpp*)
4008 host_makefile_frag
="config/mh-djgpp"
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4013 $as_echo_n "checking to see if cat works as expected... " >&6; }
4014 echo a
>cygwin-cat-check
4015 if test `cat cygwin-cat-check` = a
; then
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4018 $as_echo "yes" >&6; }
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4022 $as_echo "no" >&6; }
4023 as_fn_error $?
"The cat command does not ignore carriage return characters.
4024 Please either mount the build directory in binary mode or run the following
4025 commands before running any configure script:
4031 host_makefile_frag
="config/mh-cygwin"
4034 host_makefile_frag
="config/mh-mingw"
4037 host_makefile_frag
="config/mh-alpha-linux"
4040 host_makefile_frag
="config/mh-pa"
4043 host_makefile_frag
="config/mh-pa"
4045 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4046 host_makefile_frag
="config/mh-darwin"
4049 host_makefile_frag
="config/mh-ppc-aix"
4052 host_makefile_frag
="config/mh-ppc-aix"
4057 if test "${build}" != "${host}" ; then
4058 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4059 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4060 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4061 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4062 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4063 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4064 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4065 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4066 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4067 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4068 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4069 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4070 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4071 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4072 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4074 AR_FOR_BUILD
="\$(AR)"
4075 AS_FOR_BUILD
="\$(AS)"
4076 CC_FOR_BUILD
="\$(CC)"
4077 CXX_FOR_BUILD
="\$(CXX)"
4078 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4079 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4080 GOC_FOR_BUILD
="\$(GOC)"
4081 GDC_FOR_BUILD
="\$(GDC)"
4082 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4083 LD_FOR_BUILD
="\$(LD)"
4084 NM_FOR_BUILD
="\$(NM)"
4085 RANLIB_FOR_BUILD
="\$(RANLIB)"
4086 WINDRES_FOR_BUILD
="\$(WINDRES)"
4087 WINDMC_FOR_BUILD
="\$(WINDMC)"
4091 ac_cpp
='$CPP $CPPFLAGS'
4092 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4093 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4094 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4095 if test -n "$ac_tool_prefix"; then
4096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4097 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4099 $as_echo_n "checking for $ac_word... " >&6; }
4100 if ${ac_cv_prog_CC+:} false
; then :
4101 $as_echo_n "(cached) " >&6
4103 if test -n "$CC"; then
4104 ac_cv_prog_CC
="$CC" # Let the user override the test.
4106 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4110 test -z "$as_dir" && as_dir
=.
4111 for ac_exec_ext
in '' $ac_executable_extensions; do
4112 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4113 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4124 if test -n "$CC"; then
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4126 $as_echo "$CC" >&6; }
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4129 $as_echo "no" >&6; }
4134 if test -z "$ac_cv_prog_CC"; then
4136 # Extract the first word of "gcc", so it can be a program name with args.
4137 set dummy gcc
; ac_word
=$2
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4139 $as_echo_n "checking for $ac_word... " >&6; }
4140 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4141 $as_echo_n "(cached) " >&6
4143 if test -n "$ac_ct_CC"; then
4144 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4146 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4150 test -z "$as_dir" && as_dir
=.
4151 for ac_exec_ext
in '' $ac_executable_extensions; do
4152 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4153 ac_cv_prog_ac_ct_CC
="gcc"
4154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4163 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4164 if test -n "$ac_ct_CC"; then
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4166 $as_echo "$ac_ct_CC" >&6; }
4168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4169 $as_echo "no" >&6; }
4172 if test "x$ac_ct_CC" = x
; then
4175 case $cross_compiling:$ac_tool_warned in
4177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4179 ac_tool_warned
=yes ;;
4187 if test -z "$CC"; then
4188 if test -n "$ac_tool_prefix"; then
4189 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4190 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4192 $as_echo_n "checking for $ac_word... " >&6; }
4193 if ${ac_cv_prog_CC+:} false
; then :
4194 $as_echo_n "(cached) " >&6
4196 if test -n "$CC"; then
4197 ac_cv_prog_CC
="$CC" # Let the user override the test.
4199 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4203 test -z "$as_dir" && as_dir
=.
4204 for ac_exec_ext
in '' $ac_executable_extensions; do
4205 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4206 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4217 if test -n "$CC"; then
4218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4219 $as_echo "$CC" >&6; }
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222 $as_echo "no" >&6; }
4228 if test -z "$CC"; then
4229 # Extract the first word of "cc", so it can be a program name with args.
4230 set dummy cc
; ac_word
=$2
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4232 $as_echo_n "checking for $ac_word... " >&6; }
4233 if ${ac_cv_prog_CC+:} false
; then :
4234 $as_echo_n "(cached) " >&6
4236 if test -n "$CC"; then
4237 ac_cv_prog_CC
="$CC" # Let the user override the test.
4240 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4244 test -z "$as_dir" && as_dir
=.
4245 for ac_exec_ext
in '' $ac_executable_extensions; do
4246 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4247 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4248 ac_prog_rejected
=yes
4252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4259 if test $ac_prog_rejected = yes; then
4260 # We found a bogon in the path, so make sure we never use it.
4261 set dummy
$ac_cv_prog_CC
4263 if test $# != 0; then
4264 # We chose a different compiler from the bogus one.
4265 # However, it has the same basename, so the bogon will be chosen
4266 # first if we set CC to just the basename; use the full file name.
4268 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4274 if test -n "$CC"; then
4275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4276 $as_echo "$CC" >&6; }
4278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4279 $as_echo "no" >&6; }
4284 if test -z "$CC"; then
4285 if test -n "$ac_tool_prefix"; then
4286 for ac_prog
in cl.exe
4288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4289 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if ${ac_cv_prog_CC+:} false
; then :
4293 $as_echo_n "(cached) " >&6
4295 if test -n "$CC"; then
4296 ac_cv_prog_CC
="$CC" # Let the user override the test.
4298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4302 test -z "$as_dir" && as_dir
=.
4303 for ac_exec_ext
in '' $ac_executable_extensions; do
4304 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4305 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4316 if test -n "$CC"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4318 $as_echo "$CC" >&6; }
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4325 test -n "$CC" && break
4328 if test -z "$CC"; then
4330 for ac_prog
in cl.exe
4332 # Extract the first word of "$ac_prog", so it can be a program name with args.
4333 set dummy
$ac_prog; ac_word
=$2
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4335 $as_echo_n "checking for $ac_word... " >&6; }
4336 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4337 $as_echo_n "(cached) " >&6
4339 if test -n "$ac_ct_CC"; then
4340 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4346 test -z "$as_dir" && as_dir
=.
4347 for ac_exec_ext
in '' $ac_executable_extensions; do
4348 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4349 ac_cv_prog_ac_ct_CC
="$ac_prog"
4350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4360 if test -n "$ac_ct_CC"; then
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4362 $as_echo "$ac_ct_CC" >&6; }
4364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4365 $as_echo "no" >&6; }
4369 test -n "$ac_ct_CC" && break
4372 if test "x$ac_ct_CC" = x
; then
4375 case $cross_compiling:$ac_tool_warned in
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4379 ac_tool_warned
=yes ;;
4388 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4390 as_fn_error $?
"no acceptable C compiler found in \$PATH
4391 See \`config.log' for more details" "$LINENO" 5; }
4393 # Provide some information about the compiler.
4394 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4397 for ac_option
in --version -v -V -qversion; do
4398 { { ac_try
="$ac_compiler $ac_option >&5"
4400 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4401 *) ac_try_echo=$ac_try;;
4403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4404 $as_echo "$ac_try_echo"; } >&5
4405 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4407 if test -s conftest.err; then
4409 ... rest of stderr output deleted ...
4410 10q' conftest.err >conftest.er1
4411 cat conftest.er1 >&5
4413 rm -f conftest.er1 conftest.err
4414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4415 test $ac_status = 0; }
4418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4419 /* end confdefs.h. */
4429 ac_clean_files_save=$ac_clean_files
4430 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4431 # Try to create an executable without -o first, disregard a.out.
4432 # It will help us diagnose broken compilers, and finding out an intuition
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4435 $as_echo_n "checking whether the C compiler works... " >&6; }
4436 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4438 # The possible output files:
4439 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4442 for ac_file in $ac_files
4445 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4446 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4451 if { { ac_try="$ac_link_default"
4453 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4454 *) ac_try_echo
=$ac_try;;
4456 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4457 $as_echo "$ac_try_echo"; } >&5
4458 (eval "$ac_link_default") 2>&5
4460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4461 test $ac_status = 0; }; then :
4462 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4463 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4464 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4465 # so that the user can short-circuit this test for compilers unknown to
4467 for ac_file
in $ac_files ''
4469 test -f "$ac_file" ||
continue
4471 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4474 # We found the default executable, but exeext='' is most
4478 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4480 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4482 # We set ac_cv_exeext here because the later test for it is not
4483 # safe: cross compilers may not add the suffix if given an `-o'
4484 # argument, so we may need to know it at that point already.
4485 # Even if this section looks crufty: it has the advantage of
4492 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4497 if test -z "$ac_file"; then :
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499 $as_echo "no" >&6; }
4500 $as_echo "$as_me: failed program was:" >&5
4501 sed 's/^/| /' conftest.
$ac_ext >&5
4503 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4505 as_fn_error
77 "C compiler cannot create executables
4506 See \`config.log' for more details" "$LINENO" 5; }
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4509 $as_echo "yes" >&6; }
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4512 $as_echo_n "checking for C compiler default output file name... " >&6; }
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4514 $as_echo "$ac_file" >&6; }
4515 ac_exeext
=$ac_cv_exeext
4517 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4518 ac_clean_files
=$ac_clean_files_save
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4520 $as_echo_n "checking for suffix of executables... " >&6; }
4521 if { { ac_try
="$ac_link"
4523 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4524 *) ac_try_echo=$ac_try;;
4526 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4527 $as_echo "$ac_try_echo"; } >&5
4528 (eval "$ac_link") 2>&5
4530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4531 test $ac_status = 0; }; then :
4532 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4533 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4534 # work properly (i.e., refer to `conftest.exe'), while it won't with
4536 for ac_file
in conftest.exe conftest conftest.
*; do
4537 test -f "$ac_file" ||
continue
4539 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4540 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4546 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4547 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4548 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4549 See \`config.log' for more details" "$LINENO" 5; }
4551 rm -f conftest conftest
$ac_cv_exeext
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4553 $as_echo "$ac_cv_exeext" >&6; }
4555 rm -f conftest.
$ac_ext
4556 EXEEXT
=$ac_cv_exeext
4558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4559 /* end confdefs.h. */
4564 FILE *f = fopen ("conftest.out", "w");
4565 return ferror (f) || fclose (f) != 0;
4571 ac_clean_files
="$ac_clean_files conftest.out"
4572 # Check that the compiler produces executables we can run. If not, either
4573 # the compiler is broken, or we cross compile.
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4575 $as_echo_n "checking whether we are cross compiling... " >&6; }
4576 if test "$cross_compiling" != yes; then
4577 { { ac_try
="$ac_link"
4579 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4580 *) ac_try_echo=$ac_try;;
4582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4583 $as_echo "$ac_try_echo"; } >&5
4584 (eval "$ac_link") 2>&5
4586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4587 test $ac_status = 0; }
4588 if { ac_try='./conftest$ac_cv_exeext'
4589 { { case "(($ac_try" in
4590 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4591 *) ac_try_echo
=$ac_try;;
4593 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4594 $as_echo "$ac_try_echo"; } >&5
4595 (eval "$ac_try") 2>&5
4597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4598 test $ac_status = 0; }; }; then
4601 if test "$cross_compiling" = maybe
; then
4604 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4605 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4606 as_fn_error $?
"cannot run C compiled programs.
4607 If you meant to cross compile, use \`--host'.
4608 See \`config.log' for more details" "$LINENO" 5; }
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4613 $as_echo "$cross_compiling" >&6; }
4615 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4616 ac_clean_files
=$ac_clean_files_save
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4618 $as_echo_n "checking for suffix of object files... " >&6; }
4619 if ${ac_cv_objext+:} false
; then :
4620 $as_echo_n "(cached) " >&6
4622 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4623 /* end confdefs.h. */
4633 rm -f conftest.o conftest.obj
4634 if { { ac_try
="$ac_compile"
4636 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4637 *) ac_try_echo=$ac_try;;
4639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4640 $as_echo "$ac_try_echo"; } >&5
4641 (eval "$ac_compile") 2>&5
4643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4644 test $ac_status = 0; }; then :
4645 for ac_file in conftest.o conftest.obj conftest.*; do
4646 test -f "$ac_file" || continue;
4648 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4649 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4654 $as_echo "$as_me: failed program was:" >&5
4655 sed 's/^/| /' conftest.$ac_ext >&5
4657 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4658 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4659 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4660 See \
`config.log' for more details" "$LINENO" 5; }
4662 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4665 $as_echo "$ac_cv_objext" >&6; }
4666 OBJEXT=$ac_cv_objext
4668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4669 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4670 if ${ac_cv_c_compiler_gnu+:} false; then :
4671 $as_echo_n "(cached) " >&6
4673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4674 /* end confdefs.h. */
4687 if ac_fn_c_try_compile "$LINENO"; then :
4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4697 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4698 if test $ac_compiler_gnu = yes; then
4703 ac_test_CFLAGS=${CFLAGS+set}
4704 ac_save_CFLAGS=$CFLAGS
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4706 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4707 if ${ac_cv_prog_cc_g+:} false; then :
4708 $as_echo_n "(cached) " >&6
4710 ac_save_c_werror_flag=$ac_c_werror_flag
4711 ac_c_werror_flag=yes
4714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4715 /* end confdefs.h. */
4725 if ac_fn_c_try_compile "$LINENO"; then :
4729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4730 /* end confdefs.h. */
4740 if ac_fn_c_try_compile "$LINENO"; then :
4743 ac_c_werror_flag=$ac_save_c_werror_flag
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4756 if ac_fn_c_try_compile "$LINENO"; then :
4759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 ac_c_werror_flag=$ac_save_c_werror_flag
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4767 $as_echo "$ac_cv_prog_cc_g" >&6; }
4768 if test "$ac_test_CFLAGS" = set; then
4769 CFLAGS=$ac_save_CFLAGS
4770 elif test $ac_cv_prog_cc_g = yes; then
4771 if test "$GCC" = yes; then
4777 if test "$GCC" = yes; then
4783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4784 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4785 if ${ac_cv_prog_cc_c89+:} false; then :
4786 $as_echo_n "(cached) " >&6
4788 ac_cv_prog_cc_c89=no
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4795 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4796 struct buf { int x; };
4797 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4798 static char *e (p, i)
4804 static char *f (char * (*g) (char **, int), char **p, ...)
4809 s = g (p, va_arg (v,int));
4814 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4815 function prototypes and stuff, but not '\xHH' hex character constants.
4816 These don't provoke an error unfortunately, instead are silently treated
4817 as 'x'. The following induces an error, until -std is added to get
4818 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4819 array size at least. It's necessary to write '\x00'==0 to get something
4820 that's true only with -std. */
4821 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4823 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4824 inside strings and character constants. */
4826 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4828 int test (int i, double x);
4829 struct s1 {int (*f) (int a);};
4830 struct s2 {int (*f) (double a);};
4831 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4837 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4842 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4843 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4845 CC="$ac_save_CC $ac_arg"
4846 if ac_fn_c_try_compile "$LINENO"; then :
4847 ac_cv_prog_cc_c89=$ac_arg
4849 rm -f core conftest.err conftest.$ac_objext
4850 test "x$ac_cv_prog_cc_c89" != "xno" && break
4852 rm -f conftest.$ac_ext
4857 case "x$ac_cv_prog_cc_c89" in
4859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4860 $as_echo "none needed" >&6; } ;;
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4863 $as_echo "unsupported" >&6; } ;;
4865 CC="$CC $ac_cv_prog_cc_c89"
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4867 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4869 if test "x$ac_cv_prog_cc_c89" != xno; then :
4874 ac_cpp='$CPP $CPPFLAGS'
4875 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4876 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4877 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4880 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4881 if ${ac_cv_prog_cc_c99+:} false; then :
4882 $as_echo_n "(cached) " >&6
4884 ac_cv_prog_cc_c99=no
4886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4887 /* end confdefs.h. */
4889 #include <stdbool.h>
4894 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4895 #define debug(...) fprintf (stderr, __VA_ARGS__)
4896 #define showlist(...) puts (#__VA_ARGS__)
4897 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4899 test_varargs_macros (void)
4904 debug ("X = %d\n", x);
4905 showlist (The first, second, and third items.);
4906 report (x>y, "x is %d but y is %d", x, y);
4909 // Check long long types.
4910 #define BIG64 18446744073709551615ull
4911 #define BIG32 4294967295ul
4912 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4914 your preprocessor is broken;
4918 your preprocessor is broken;
4920 static long long int bignum = -9223372036854775807LL;
4921 static unsigned long long int ubignum = BIG64;
4923 struct incomplete_array
4931 const wchar_t *name;
4935 typedef const char *ccp;
4938 test_restrict (ccp restrict text)
4940 // See if C++-style comments work.
4941 // Iterate through items via the restricted pointer.
4942 // Also check for declarations in for loops.
4943 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4948 // Check varargs and va_copy.
4950 test_varargs (const char *format, ...)
4953 va_start (args, format);
4955 va_copy (args_copy, args);
4966 str = va_arg (args_copy, const char *);
4969 number = va_arg (args_copy, int);
4972 fnumber = va_arg (args_copy, double);
4987 _Bool success = false;
4990 if (test_restrict ("String literal") == 0)
4992 char *restrict newvar = "Another string";
4995 test_varargs ("s, d' f .", "string", 65, 34.234);
4996 test_varargs_macros ();
4998 // Check flexible array members.
4999 struct incomplete_array *ia =
5000 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5002 for (int i = 0; i < ia->datasize; ++i)
5003 ia->data[i] = i * 1.234;
5005 // Check named initializers.
5006 struct named_init ni = {
5008 .name = L"Test wide string",
5009 .average = 543.34343,
5014 int dynamic_array[ni.number];
5015 dynamic_array[ni.number - 1] = 543;
5017 // work around unused variable warnings
5018 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5019 || dynamic_array[ni.number - 1] != 543);
5025 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5027 CC="$ac_save_CC $ac_arg"
5028 if ac_fn_c_try_compile "$LINENO"; then :
5029 ac_cv_prog_cc_c99=$ac_arg
5031 rm -f core conftest.err conftest.$ac_objext
5032 test "x$ac_cv_prog_cc_c99" != "xno" && break
5034 rm -f conftest.$ac_ext
5039 case "x$ac_cv_prog_cc_c99" in
5041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5042 $as_echo "none needed" >&6; } ;;
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5045 $as_echo "unsupported" >&6; } ;;
5047 CC="$CC $ac_cv_prog_cc_c99"
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5049 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5051 if test "x$ac_cv_prog_cc_c99" != xno; then :
5057 ac_cpp='$CXXCPP $CPPFLAGS'
5058 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5059 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5060 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5061 if test -z "$CXX"; then
5062 if test -n "$CCC"; then
5065 if test -n "$ac_tool_prefix"; then
5066 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5068 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5069 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5071 $as_echo_n "checking for $ac_word... " >&6; }
5072 if ${ac_cv_prog_CXX+:} false; then :
5073 $as_echo_n "(cached) " >&6
5075 if test -n "$CXX"; then
5076 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 test -z "$as_dir" && as_dir=.
5083 for ac_exec_ext in '' $ac_executable_extensions; do
5084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5085 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5096 if test -n "$CXX"; then
5097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5098 $as_echo "$CXX" >&6; }
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5101 $as_echo "no" >&6; }
5105 test -n "$CXX" && break
5108 if test -z "$CXX"; then
5110 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5112 # Extract the first word of "$ac_prog", so it can be a program name with args.
5113 set dummy $ac_prog; ac_word=$2
5114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5115 $as_echo_n "checking for $ac_word... " >&6; }
5116 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5117 $as_echo_n "(cached) " >&6
5119 if test -n "$ac_ct_CXX"; then
5120 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 test -z "$as_dir" && as_dir=.
5127 for ac_exec_ext in '' $ac_executable_extensions; do
5128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5129 ac_cv_prog_ac_ct_CXX="$ac_prog"
5130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5139 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5140 if test -n "$ac_ct_CXX"; then
5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5142 $as_echo "$ac_ct_CXX" >&6; }
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5145 $as_echo "no" >&6; }
5149 test -n "$ac_ct_CXX" && break
5152 if test "x$ac_ct_CXX" = x; then
5155 case $cross_compiling:$ac_tool_warned in
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5158 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5159 ac_tool_warned=yes ;;
5167 # Provide some information about the compiler.
5168 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5171 for ac_option in --version -v -V -qversion; do
5172 { { ac_try="$ac_compiler $ac_option >&5"
5174 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5175 *) ac_try_echo
=$ac_try;;
5177 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5178 $as_echo "$ac_try_echo"; } >&5
5179 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5181 if test -s conftest.err
; then
5183 ... rest of stderr output deleted ...
5184 10q' conftest.err
>conftest.er1
5185 cat conftest.er1
>&5
5187 rm -f conftest.er1 conftest.err
5188 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5189 test $ac_status = 0; }
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5193 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5194 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5195 $as_echo_n "(cached) " >&6
5197 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5211 if ac_fn_cxx_try_compile
"$LINENO"; then :
5216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5217 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5221 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5222 if test $ac_compiler_gnu = yes; then
5227 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5228 ac_save_CXXFLAGS
=$CXXFLAGS
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5230 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5231 if ${ac_cv_prog_cxx_g+:} false
; then :
5232 $as_echo_n "(cached) " >&6
5234 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5235 ac_cxx_werror_flag
=yes
5238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5239 /* end confdefs.h. */
5249 if ac_fn_cxx_try_compile
"$LINENO"; then :
5250 ac_cv_prog_cxx_g
=yes
5253 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5254 /* end confdefs.h. */
5264 if ac_fn_cxx_try_compile
"$LINENO"; then :
5267 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5280 if ac_fn_cxx_try_compile
"$LINENO"; then :
5281 ac_cv_prog_cxx_g
=yes
5283 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5285 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5287 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5288 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5291 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5292 if test "$ac_test_CXXFLAGS" = set; then
5293 CXXFLAGS
=$ac_save_CXXFLAGS
5294 elif test $ac_cv_prog_cxx_g = yes; then
5295 if test "$GXX" = yes; then
5301 if test "$GXX" = yes; then
5308 ac_cpp
='$CPP $CPPFLAGS'
5309 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5310 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5311 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5314 # We must set the default linker to the linker used by gcc for the correct
5315 # operation of libtool. If LD is not defined and we are using gcc, try to
5316 # set the LD default to the ld used by gcc.
5317 if test -z "$LD"; then
5318 if test "$GCC" = yes; then
5321 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5323 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5325 case $gcc_prog_ld in
5326 # Accept absolute paths.
5327 [\\/]* |
[A-Za-z
]:[\\/]*)
5328 LD
="$gcc_prog_ld" ;;
5333 # Check whether -static-libstdc++ -static-libgcc is supported.
5335 if test "$GCC" = yes; then
5336 saved_LDFLAGS
="$LDFLAGS"
5338 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5340 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5342 ac_cpp
='$CXXCPP $CPPFLAGS'
5343 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5344 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5345 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5348 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5351 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5352 #error -static-libstdc++ not implemented
5356 if ac_fn_cxx_try_link
"$LINENO"; then :
5357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5358 $as_echo "yes" >&6; }; have_static_libs
=yes
5360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5361 $as_echo "no" >&6; }
5363 rm -f core conftest.err conftest.
$ac_objext \
5364 conftest
$ac_exeext conftest.
$ac_ext
5366 ac_cpp
='$CPP $CPPFLAGS'
5367 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5368 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5369 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5372 LDFLAGS
="$saved_LDFLAGS"
5378 if test -n "$ac_tool_prefix"; then
5379 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5380 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_prog_GNATBIND+:} false
; then :
5384 $as_echo_n "(cached) " >&6
5386 if test -n "$GNATBIND"; then
5387 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5389 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5393 test -z "$as_dir" && as_dir
=.
5394 for ac_exec_ext
in '' $ac_executable_extensions; do
5395 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5406 GNATBIND
=$ac_cv_prog_GNATBIND
5407 if test -n "$GNATBIND"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5409 $as_echo "$GNATBIND" >&6; }
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5417 if test -z "$ac_cv_prog_GNATBIND"; then
5418 ac_ct_GNATBIND
=$GNATBIND
5419 # Extract the first word of "gnatbind", so it can be a program name with args.
5420 set dummy gnatbind
; ac_word
=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5424 $as_echo_n "(cached) " >&6
5426 if test -n "$ac_ct_GNATBIND"; then
5427 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5433 test -z "$as_dir" && as_dir
=.
5434 for ac_exec_ext
in '' $ac_executable_extensions; do
5435 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5446 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5447 if test -n "$ac_ct_GNATBIND"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5449 $as_echo "$ac_ct_GNATBIND" >&6; }
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5455 if test "x$ac_ct_GNATBIND" = x
; then
5458 case $cross_compiling:$ac_tool_warned in
5460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5462 ac_tool_warned
=yes ;;
5464 GNATBIND
=$ac_ct_GNATBIND
5467 GNATBIND
="$ac_cv_prog_GNATBIND"
5470 if test -n "$ac_tool_prefix"; then
5471 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5472 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5474 $as_echo_n "checking for $ac_word... " >&6; }
5475 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5476 $as_echo_n "(cached) " >&6
5478 if test -n "$GNATMAKE"; then
5479 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5481 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5485 test -z "$as_dir" && as_dir
=.
5486 for ac_exec_ext
in '' $ac_executable_extensions; do
5487 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5488 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5498 GNATMAKE
=$ac_cv_prog_GNATMAKE
5499 if test -n "$GNATMAKE"; then
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5501 $as_echo "$GNATMAKE" >&6; }
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5509 if test -z "$ac_cv_prog_GNATMAKE"; then
5510 ac_ct_GNATMAKE
=$GNATMAKE
5511 # Extract the first word of "gnatmake", so it can be a program name with args.
5512 set dummy gnatmake
; ac_word
=$2
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5514 $as_echo_n "checking for $ac_word... " >&6; }
5515 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5516 $as_echo_n "(cached) " >&6
5518 if test -n "$ac_ct_GNATMAKE"; then
5519 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5521 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5525 test -z "$as_dir" && as_dir
=.
5526 for ac_exec_ext
in '' $ac_executable_extensions; do
5527 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5528 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5529 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5538 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5539 if test -n "$ac_ct_GNATMAKE"; then
5540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5541 $as_echo "$ac_ct_GNATMAKE" >&6; }
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5544 $as_echo "no" >&6; }
5547 if test "x$ac_ct_GNATMAKE" = x
; then
5550 case $cross_compiling:$ac_tool_warned in
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5553 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5554 ac_tool_warned
=yes ;;
5556 GNATMAKE
=$ac_ct_GNATMAKE
5559 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5563 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5564 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5565 $as_echo_n "(cached) " >&6
5567 cat >conftest.adb
<<EOF
5568 pragma Warnings (Off);
5570 pragma Warnings (On);
5571 use type System.CRTL.int64;
5572 procedure conftest is begin null; end conftest;
5574 acx_cv_cc_gcc_supports_ada
=no
5575 # There is a bug in old released versions of GCC which causes the
5576 # driver to exit successfully when the appropriate language module
5577 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5578 # Therefore we must check for the error message as well as an
5579 # unsuccessful exit.
5580 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5581 # given a .adb file, but produce no object file. So we must check
5582 # if an object file was really produced to guard against this.
5583 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5584 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5585 acx_cv_cc_gcc_supports_ada
=yes
5589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5590 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5592 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5600 if test -n "$ac_tool_prefix"; then
5601 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5602 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5604 $as_echo_n "checking for $ac_word... " >&6; }
5605 if ${ac_cv_prog_GDC+:} false
; then :
5606 $as_echo_n "(cached) " >&6
5608 if test -n "$GDC"; then
5609 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5611 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5615 test -z "$as_dir" && as_dir
=.
5616 for ac_exec_ext
in '' $ac_executable_extensions; do
5617 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5618 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5629 if test -n "$GDC"; then
5630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5631 $as_echo "$GDC" >&6; }
5633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5634 $as_echo "no" >&6; }
5639 if test -z "$ac_cv_prog_GDC"; then
5641 # Extract the first word of "gdc", so it can be a program name with args.
5642 set dummy gdc
; ac_word
=$2
5643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5644 $as_echo_n "checking for $ac_word... " >&6; }
5645 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5646 $as_echo_n "(cached) " >&6
5648 if test -n "$ac_ct_GDC"; then
5649 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5651 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5655 test -z "$as_dir" && as_dir
=.
5656 for ac_exec_ext
in '' $ac_executable_extensions; do
5657 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5658 ac_cv_prog_ac_ct_GDC
="gdc"
5659 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5668 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5669 if test -n "$ac_ct_GDC"; then
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5671 $as_echo "$ac_ct_GDC" >&6; }
5673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5674 $as_echo "no" >&6; }
5677 if test "x$ac_ct_GDC" = x
; then
5680 case $cross_compiling:$ac_tool_warned in
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5683 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5684 ac_tool_warned
=yes ;;
5689 GDC
="$ac_cv_prog_GDC"
5692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5693 $as_echo_n "checking whether the D compiler works... " >&6; }
5694 if ${acx_cv_d_compiler_works+:} false
; then :
5695 $as_echo_n "(cached) " >&6
5697 cat >conftest.d
<<EOF
5698 module conftest; int main() { return 0; }
5700 acx_cv_d_compiler_works
=no
5701 if test "x$GDC" != xno
; then
5702 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5703 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5704 acx_cv_d_compiler_works
=yes
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5710 $as_echo "$acx_cv_d_compiler_works" >&6; }
5711 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5718 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5719 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5720 $as_echo_n "(cached) " >&6
5724 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5725 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5726 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5729 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5732 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5733 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5736 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5743 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5744 do_compare
="$gcc_cv_prog_cmp_skip"
5748 # Check whether --enable-bootstrap was given.
5749 if test "${enable_bootstrap+set}" = set; then :
5750 enableval
=$enable_bootstrap;
5752 enable_bootstrap
=default
5756 # Issue errors and warnings for invalid/strange bootstrap combinations.
5757 if test -r $srcdir/gcc
/configure
; then
5763 case "$have_compiler:$host:$target:$enable_bootstrap" in
5766 # Default behavior. Enable bootstrap if we have a compiler
5767 # and we are in a native configuration.
5768 yes:$build:$build:default
)
5769 enable_bootstrap
=yes ;;
5772 enable_bootstrap
=no
;;
5774 # We have a compiler and we are in a native configuration, bootstrap is ok
5775 yes:$build:$build:yes)
5778 # Other configurations, but we have a compiler. Assume the user knows
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5782 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5785 # No compiler: if they passed --enable-bootstrap explicitly, fail
5787 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5789 # Fail if wrong command line
5791 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5795 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5796 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5797 # require C++11 (or higher).
5798 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5799 CXX
="$CXX -std=c++11"
5800 elif test "$have_compiler" = yes; then
5801 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5803 ac_cpp
='$CXXCPP $CPPFLAGS'
5804 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5805 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5806 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5810 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5811 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5812 $as_echo_n "(cached) " >&6
5814 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5815 /* end confdefs.h. */
5818 // If the compiler admits that it is not ready for C++11, why torture it?
5819 // Hopefully, this will speed up the test.
5823 #error "This is not a C++ compiler"
5825 #elif __cplusplus < 201103L
5827 #error "This is not a C++11 compiler"
5834 namespace test_static_assert
5837 template <typename T>
5840 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5845 namespace test_final_override
5854 struct Derived : public Base
5856 virtual ~Derived() override {}
5857 virtual void f() override {}
5862 namespace test_double_right_angle_brackets
5865 template < typename T >
5868 typedef check<void> single_type;
5869 typedef check<check<void>> double_type;
5870 typedef check<check<check<void>>> triple_type;
5871 typedef check<check<check<check<void>>>> quadruple_type;
5875 namespace test_decltype
5888 namespace test_type_deduction
5891 template < typename T1, typename T2 >
5894 static const bool value = false;
5897 template < typename T >
5898 struct is_same<T, T>
5900 static const bool value = true;
5903 template < typename T1, typename T2 >
5905 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5911 test(const int c, volatile int v)
5913 static_assert(is_same<int, decltype(0)>::value == true, "");
5914 static_assert(is_same<int, decltype(c)>::value == false, "");
5915 static_assert(is_same<int, decltype(v)>::value == false, "");
5918 auto sumi = ac + av + 'x';
5919 auto sumf = ac + av + 1.0;
5920 static_assert(is_same<int, decltype(ac)>::value == true, "");
5921 static_assert(is_same<int, decltype(av)>::value == true, "");
5922 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5923 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5924 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5925 return (sumf > 0.0) ? sumi : add(c, v);
5930 namespace test_noexcept
5933 int f() { return 0; }
5934 int g() noexcept { return 0; }
5936 static_assert(noexcept(f()) == false, "");
5937 static_assert(noexcept(g()) == true, "");
5941 namespace test_constexpr
5944 template < typename CharT >
5945 unsigned long constexpr
5946 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5948 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5951 template < typename CharT >
5952 unsigned long constexpr
5953 strlen_c(const CharT *const s) noexcept
5955 return strlen_c_r(s, 0UL);
5958 static_assert(strlen_c("") == 0UL, "");
5959 static_assert(strlen_c("1") == 1UL, "");
5960 static_assert(strlen_c("example") == 7UL, "");
5961 static_assert(strlen_c("another\0example") == 7UL, "");
5965 namespace test_rvalue_references
5971 static constexpr int value = N;
5974 answer<1> f(int&) { return answer<1>(); }
5975 answer<2> f(const int&) { return answer<2>(); }
5976 answer<3> f(int&&) { return answer<3>(); }
5983 static_assert(decltype(f(i))::value == 1, "");
5984 static_assert(decltype(f(c))::value == 2, "");
5985 static_assert(decltype(f(0))::value == 3, "");
5990 namespace test_uniform_initialization
5995 static const int zero {};
5996 static const int one {1};
5999 static_assert(test::zero == 0, "");
6000 static_assert(test::one == 1, "");
6004 namespace test_lambdas
6010 auto lambda1 = [](){};
6011 auto lambda2 = lambda1;
6019 auto a = [](int i, int j){ return i + j; }(1, 2);
6020 auto b = []() -> int { return '0'; }();
6021 auto c = [=](){ return a + b; }();
6022 auto d = [&](){ return c; }();
6023 auto e = [a, &b](int x) mutable {
6024 const auto identity = [](int y){ return y; };
6025 for (auto i = 0; i < a; ++i)
6027 return x + identity(a + b);
6029 return a + b + c + d + e;
6035 const auto nullary = [](){ return 0; };
6036 const auto unary = [](int x){ return x; };
6037 using nullary_t = decltype(nullary);
6038 using unary_t = decltype(unary);
6039 const auto higher1st = [](nullary_t f){ return f(); };
6040 const auto higher2nd = [unary](nullary_t f1){
6041 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6043 return higher1st(nullary) + higher2nd(nullary)(unary);
6048 namespace test_variadic_templates
6054 template <int N0, int... N1toN>
6055 struct sum<N0, N1toN...>
6057 static constexpr auto value = N0 + sum<N1toN...>::value;
6063 static constexpr auto value = 0;
6066 static_assert(sum<>::value == 0, "");
6067 static_assert(sum<1>::value == 1, "");
6068 static_assert(sum<23>::value == 23, "");
6069 static_assert(sum<1, 2>::value == 3, "");
6070 static_assert(sum<5, 5, 11>::value == 21, "");
6071 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6075 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6076 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6078 namespace test_template_alias_sfinae
6083 template<typename T>
6084 using member = typename T::member_type;
6086 template<typename T>
6089 template<typename T>
6090 void func(member<T>*) {}
6094 void test() { func<foo>(0); }
6098 } // namespace cxx11
6100 #endif // __cplusplus >= 201103L
6105 if ac_fn_cxx_try_compile
"$LINENO"; then :
6106 ax_cv_cxx_compile_cxx11
=yes
6108 ax_cv_cxx_compile_cxx11
=no
6110 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6113 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6114 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6118 if test x
$ac_success = xno
; then
6119 for alternative
in ${ax_cxx_compile_alternatives}; do
6120 switch
="-std=gnu++${alternative}"
6121 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6123 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6124 if eval \
${$cachevar+:} false
; then :
6125 $as_echo_n "(cached) " >&6
6129 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6130 /* end confdefs.h. */
6133 // If the compiler admits that it is not ready for C++11, why torture it?
6134 // Hopefully, this will speed up the test.
6138 #error "This is not a C++ compiler"
6140 #elif __cplusplus < 201103L
6142 #error "This is not a C++11 compiler"
6149 namespace test_static_assert
6152 template <typename T>
6155 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6160 namespace test_final_override
6169 struct Derived : public Base
6171 virtual ~Derived() override {}
6172 virtual void f() override {}
6177 namespace test_double_right_angle_brackets
6180 template < typename T >
6183 typedef check<void> single_type;
6184 typedef check<check<void>> double_type;
6185 typedef check<check<check<void>>> triple_type;
6186 typedef check<check<check<check<void>>>> quadruple_type;
6190 namespace test_decltype
6203 namespace test_type_deduction
6206 template < typename T1, typename T2 >
6209 static const bool value = false;
6212 template < typename T >
6213 struct is_same<T, T>
6215 static const bool value = true;
6218 template < typename T1, typename T2 >
6220 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6226 test(const int c, volatile int v)
6228 static_assert(is_same<int, decltype(0)>::value == true, "");
6229 static_assert(is_same<int, decltype(c)>::value == false, "");
6230 static_assert(is_same<int, decltype(v)>::value == false, "");
6233 auto sumi = ac + av + 'x';
6234 auto sumf = ac + av + 1.0;
6235 static_assert(is_same<int, decltype(ac)>::value == true, "");
6236 static_assert(is_same<int, decltype(av)>::value == true, "");
6237 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6238 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6239 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6240 return (sumf > 0.0) ? sumi : add(c, v);
6245 namespace test_noexcept
6248 int f() { return 0; }
6249 int g() noexcept { return 0; }
6251 static_assert(noexcept(f()) == false, "");
6252 static_assert(noexcept(g()) == true, "");
6256 namespace test_constexpr
6259 template < typename CharT >
6260 unsigned long constexpr
6261 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6263 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6266 template < typename CharT >
6267 unsigned long constexpr
6268 strlen_c(const CharT *const s) noexcept
6270 return strlen_c_r(s, 0UL);
6273 static_assert(strlen_c("") == 0UL, "");
6274 static_assert(strlen_c("1") == 1UL, "");
6275 static_assert(strlen_c("example") == 7UL, "");
6276 static_assert(strlen_c("another\0example") == 7UL, "");
6280 namespace test_rvalue_references
6286 static constexpr int value = N;
6289 answer<1> f(int&) { return answer<1>(); }
6290 answer<2> f(const int&) { return answer<2>(); }
6291 answer<3> f(int&&) { return answer<3>(); }
6298 static_assert(decltype(f(i))::value == 1, "");
6299 static_assert(decltype(f(c))::value == 2, "");
6300 static_assert(decltype(f(0))::value == 3, "");
6305 namespace test_uniform_initialization
6310 static const int zero {};
6311 static const int one {1};
6314 static_assert(test::zero == 0, "");
6315 static_assert(test::one == 1, "");
6319 namespace test_lambdas
6325 auto lambda1 = [](){};
6326 auto lambda2 = lambda1;
6334 auto a = [](int i, int j){ return i + j; }(1, 2);
6335 auto b = []() -> int { return '0'; }();
6336 auto c = [=](){ return a + b; }();
6337 auto d = [&](){ return c; }();
6338 auto e = [a, &b](int x) mutable {
6339 const auto identity = [](int y){ return y; };
6340 for (auto i = 0; i < a; ++i)
6342 return x + identity(a + b);
6344 return a + b + c + d + e;
6350 const auto nullary = [](){ return 0; };
6351 const auto unary = [](int x){ return x; };
6352 using nullary_t = decltype(nullary);
6353 using unary_t = decltype(unary);
6354 const auto higher1st = [](nullary_t f){ return f(); };
6355 const auto higher2nd = [unary](nullary_t f1){
6356 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6358 return higher1st(nullary) + higher2nd(nullary)(unary);
6363 namespace test_variadic_templates
6369 template <int N0, int... N1toN>
6370 struct sum<N0, N1toN...>
6372 static constexpr auto value = N0 + sum<N1toN...>::value;
6378 static constexpr auto value = 0;
6381 static_assert(sum<>::value == 0, "");
6382 static_assert(sum<1>::value == 1, "");
6383 static_assert(sum<23>::value == 23, "");
6384 static_assert(sum<1, 2>::value == 3, "");
6385 static_assert(sum<5, 5, 11>::value == 21, "");
6386 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6390 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6391 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6393 namespace test_template_alias_sfinae
6398 template<typename T>
6399 using member = typename T::member_type;
6401 template<typename T>
6404 template<typename T>
6405 void func(member<T>*) {}
6409 void test() { func<foo>(0); }
6413 } // namespace cxx11
6415 #endif // __cplusplus >= 201103L
6420 if ac_fn_cxx_try_compile
"$LINENO"; then :
6425 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6428 eval ac_res
=\$
$cachevar
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6430 $as_echo "$ac_res" >&6; }
6431 if eval test x\$
$cachevar = xyes
; then
6433 if test -n "$CXXCPP" ; then
6434 CXXCPP
="$CXXCPP $switch"
6442 if test x
$ac_success = xno
; then
6443 for alternative
in ${ax_cxx_compile_alternatives}; do
6444 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6445 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6447 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6448 if eval \${$cachevar+:} false; then :
6449 $as_echo_n "(cached
) " >&6
6453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6454 /* end confdefs.h. */
6457 // If the compiler admits that it is not ready for C++11, why torture it?
6458 // Hopefully, this will speed up the test.
6462 #error "This is not a C
++ compiler
"
6464 #elif __cplusplus < 201103L
6466 #error "This is not a C
++11 compiler
"
6473 namespace test_static_assert
6476 template <typename T>
6479 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6484 namespace test_final_override
6493 struct Derived : public Base
6495 virtual ~Derived() override {}
6496 virtual void f() override {}
6501 namespace test_double_right_angle_brackets
6504 template < typename T >
6507 typedef check<void> single_type;
6508 typedef check<check<void>> double_type;
6509 typedef check<check<check<void>>> triple_type;
6510 typedef check<check<check<check<void>>>> quadruple_type;
6514 namespace test_decltype
6527 namespace test_type_deduction
6530 template < typename T1, typename T2 >
6533 static const bool value = false;
6536 template < typename T >
6537 struct is_same<T, T>
6539 static const bool value = true;
6542 template < typename T1, typename T2 >
6544 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6550 test(const int c, volatile int v)
6552 static_assert(is_same<int, decltype(0)>::value == true, "");
6553 static_assert(is_same<int, decltype(c)>::value == false, "");
6554 static_assert(is_same<int, decltype(v)>::value == false, "");
6557 auto sumi = ac + av + 'x';
6558 auto sumf = ac + av + 1.0;
6559 static_assert(is_same<int, decltype(ac)>::value == true, "");
6560 static_assert(is_same<int, decltype(av)>::value == true, "");
6561 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6562 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6563 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6564 return (sumf > 0.0) ? sumi : add(c, v);
6569 namespace test_noexcept
6572 int f() { return 0; }
6573 int g() noexcept { return 0; }
6575 static_assert(noexcept(f()) == false, "");
6576 static_assert(noexcept(g()) == true, "");
6580 namespace test_constexpr
6583 template < typename CharT >
6584 unsigned long constexpr
6585 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6587 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6590 template < typename CharT >
6591 unsigned long constexpr
6592 strlen_c(const CharT *const s) noexcept
6594 return strlen_c_r(s, 0UL);
6597 static_assert(strlen_c("") == 0UL, "");
6598 static_assert(strlen_c("1") == 1UL, "");
6599 static_assert(strlen_c("example
") == 7UL, "");
6600 static_assert(strlen_c("another\
0example
") == 7UL, "");
6604 namespace test_rvalue_references
6610 static constexpr int value = N;
6613 answer<1> f(int&) { return answer<1>(); }
6614 answer<2> f(const int&) { return answer<2>(); }
6615 answer<3> f(int&&) { return answer<3>(); }
6622 static_assert(decltype(f(i))::value == 1, "");
6623 static_assert(decltype(f(c))::value == 2, "");
6624 static_assert(decltype(f(0))::value == 3, "");
6629 namespace test_uniform_initialization
6634 static const int zero {};
6635 static const int one {1};
6638 static_assert(test::zero == 0, "");
6639 static_assert(test::one == 1, "");
6643 namespace test_lambdas
6649 auto lambda1 = [](){};
6650 auto lambda2 = lambda1;
6658 auto a = [](int i, int j){ return i + j; }(1, 2);
6659 auto b = []() -> int { return '0'; }();
6660 auto c = [=](){ return a + b; }();
6661 auto d = [&](){ return c; }();
6662 auto e = [a, &b](int x) mutable {
6663 const auto identity = [](int y){ return y; };
6664 for (auto i = 0; i < a; ++i)
6666 return x + identity(a + b);
6668 return a + b + c + d + e;
6674 const auto nullary = [](){ return 0; };
6675 const auto unary = [](int x){ return x; };
6676 using nullary_t = decltype(nullary);
6677 using unary_t = decltype(unary);
6678 const auto higher1st = [](nullary_t f){ return f(); };
6679 const auto higher2nd = [unary](nullary_t f1){
6680 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6682 return higher1st(nullary) + higher2nd(nullary)(unary);
6687 namespace test_variadic_templates
6693 template <int N0, int... N1toN>
6694 struct sum<N0, N1toN...>
6696 static constexpr auto value = N0 + sum<N1toN...>::value;
6702 static constexpr auto value = 0;
6705 static_assert(sum<>::value == 0, "");
6706 static_assert(sum<1>::value == 1, "");
6707 static_assert(sum<23>::value == 23, "");
6708 static_assert(sum<1, 2>::value == 3, "");
6709 static_assert(sum<5, 5, 11>::value == 21, "");
6710 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6714 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6715 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6717 namespace test_template_alias_sfinae
6722 template<typename T>
6723 using member = typename T::member_type;
6725 template<typename T>
6728 template<typename T>
6729 void func(member<T>*) {}
6733 void test() { func<foo>(0); }
6737 } // namespace cxx11
6739 #endif // __cplusplus >= 201103L
6744 if ac_fn_cxx_try_compile "$LINENO"; then :
6749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6752 eval ac_res=\$$cachevar
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6754 $as_echo "$ac_res" >&6; }
6755 if eval test x\$$cachevar = xyes; then
6757 if test -n "$CXXCPP" ; then
6758 CXXCPP="$CXXCPP $switch"
6764 if test x$ac_success = xyes; then
6771 ac_cpp='$CPP $CPPFLAGS'
6772 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6773 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6774 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6776 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6777 if test x$ac_success = xno; then
6778 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6781 if test x$ac_success = xno; then
6783 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6784 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6788 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6794 if test "${build}" != "${host}"; then
6795 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6797 ac_cpp
='$CXXCPP $CPPFLAGS'
6798 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6799 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6800 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6802 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6803 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6804 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6805 CXX
="$CXX_FOR_BUILD"
6806 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6807 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6809 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6810 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6811 $as_echo_n "(cached) " >&6
6813 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6814 /* end confdefs.h. */
6817 // If the compiler admits that it is not ready for C++11, why torture it?
6818 // Hopefully, this will speed up the test.
6822 #error "This is not a C++ compiler"
6824 #elif __cplusplus < 201103L
6826 #error "This is not a C++11 compiler"
6833 namespace test_static_assert
6836 template <typename T>
6839 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6844 namespace test_final_override
6853 struct Derived : public Base
6855 virtual ~Derived() override {}
6856 virtual void f() override {}
6861 namespace test_double_right_angle_brackets
6864 template < typename T >
6867 typedef check<void> single_type;
6868 typedef check<check<void>> double_type;
6869 typedef check<check<check<void>>> triple_type;
6870 typedef check<check<check<check<void>>>> quadruple_type;
6874 namespace test_decltype
6887 namespace test_type_deduction
6890 template < typename T1, typename T2 >
6893 static const bool value = false;
6896 template < typename T >
6897 struct is_same<T, T>
6899 static const bool value = true;
6902 template < typename T1, typename T2 >
6904 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6910 test(const int c, volatile int v)
6912 static_assert(is_same<int, decltype(0)>::value == true, "");
6913 static_assert(is_same<int, decltype(c)>::value == false, "");
6914 static_assert(is_same<int, decltype(v)>::value == false, "");
6917 auto sumi = ac + av + 'x';
6918 auto sumf = ac + av + 1.0;
6919 static_assert(is_same<int, decltype(ac)>::value == true, "");
6920 static_assert(is_same<int, decltype(av)>::value == true, "");
6921 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6922 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6923 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6924 return (sumf > 0.0) ? sumi : add(c, v);
6929 namespace test_noexcept
6932 int f() { return 0; }
6933 int g() noexcept { return 0; }
6935 static_assert(noexcept(f()) == false, "");
6936 static_assert(noexcept(g()) == true, "");
6940 namespace test_constexpr
6943 template < typename CharT >
6944 unsigned long constexpr
6945 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6947 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6950 template < typename CharT >
6951 unsigned long constexpr
6952 strlen_c(const CharT *const s) noexcept
6954 return strlen_c_r(s, 0UL);
6957 static_assert(strlen_c("") == 0UL, "");
6958 static_assert(strlen_c("1") == 1UL, "");
6959 static_assert(strlen_c("example") == 7UL, "");
6960 static_assert(strlen_c("another\0example") == 7UL, "");
6964 namespace test_rvalue_references
6970 static constexpr int value = N;
6973 answer<1> f(int&) { return answer<1>(); }
6974 answer<2> f(const int&) { return answer<2>(); }
6975 answer<3> f(int&&) { return answer<3>(); }
6982 static_assert(decltype(f(i))::value == 1, "");
6983 static_assert(decltype(f(c))::value == 2, "");
6984 static_assert(decltype(f(0))::value == 3, "");
6989 namespace test_uniform_initialization
6994 static const int zero {};
6995 static const int one {1};
6998 static_assert(test::zero == 0, "");
6999 static_assert(test::one == 1, "");
7003 namespace test_lambdas
7009 auto lambda1 = [](){};
7010 auto lambda2 = lambda1;
7018 auto a = [](int i, int j){ return i + j; }(1, 2);
7019 auto b = []() -> int { return '0'; }();
7020 auto c = [=](){ return a + b; }();
7021 auto d = [&](){ return c; }();
7022 auto e = [a, &b](int x) mutable {
7023 const auto identity = [](int y){ return y; };
7024 for (auto i = 0; i < a; ++i)
7026 return x + identity(a + b);
7028 return a + b + c + d + e;
7034 const auto nullary = [](){ return 0; };
7035 const auto unary = [](int x){ return x; };
7036 using nullary_t = decltype(nullary);
7037 using unary_t = decltype(unary);
7038 const auto higher1st = [](nullary_t f){ return f(); };
7039 const auto higher2nd = [unary](nullary_t f1){
7040 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7042 return higher1st(nullary) + higher2nd(nullary)(unary);
7047 namespace test_variadic_templates
7053 template <int N0, int... N1toN>
7054 struct sum<N0, N1toN...>
7056 static constexpr auto value = N0 + sum<N1toN...>::value;
7062 static constexpr auto value = 0;
7065 static_assert(sum<>::value == 0, "");
7066 static_assert(sum<1>::value == 1, "");
7067 static_assert(sum<23>::value == 23, "");
7068 static_assert(sum<1, 2>::value == 3, "");
7069 static_assert(sum<5, 5, 11>::value == 21, "");
7070 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7074 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7075 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7077 namespace test_template_alias_sfinae
7082 template<typename T>
7083 using member = typename T::member_type;
7085 template<typename T>
7088 template<typename T>
7089 void func(member<T>*) {}
7093 void test() { func<foo>(0); }
7097 } // namespace cxx11
7099 #endif // __cplusplus >= 201103L
7104 if ac_fn_cxx_try_compile
"$LINENO"; then :
7105 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7107 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7109 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7112 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7113 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7117 if test x
$ac_success = xno
; then
7118 for alternative
in ${ax_cxx_compile_alternatives}; do
7119 switch
="-std=gnu++${alternative}"
7120 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7122 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7123 if eval \
${$cachevar+:} false
; then :
7124 $as_echo_n "(cached) " >&6
7128 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7129 /* end confdefs.h. */
7132 // If the compiler admits that it is not ready for C++11, why torture it?
7133 // Hopefully, this will speed up the test.
7137 #error "This is not a C++ compiler"
7139 #elif __cplusplus < 201103L
7141 #error "This is not a C++11 compiler"
7148 namespace test_static_assert
7151 template <typename T>
7154 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7159 namespace test_final_override
7168 struct Derived : public Base
7170 virtual ~Derived() override {}
7171 virtual void f() override {}
7176 namespace test_double_right_angle_brackets
7179 template < typename T >
7182 typedef check<void> single_type;
7183 typedef check<check<void>> double_type;
7184 typedef check<check<check<void>>> triple_type;
7185 typedef check<check<check<check<void>>>> quadruple_type;
7189 namespace test_decltype
7202 namespace test_type_deduction
7205 template < typename T1, typename T2 >
7208 static const bool value = false;
7211 template < typename T >
7212 struct is_same<T, T>
7214 static const bool value = true;
7217 template < typename T1, typename T2 >
7219 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7225 test(const int c, volatile int v)
7227 static_assert(is_same<int, decltype(0)>::value == true, "");
7228 static_assert(is_same<int, decltype(c)>::value == false, "");
7229 static_assert(is_same<int, decltype(v)>::value == false, "");
7232 auto sumi = ac + av + 'x';
7233 auto sumf = ac + av + 1.0;
7234 static_assert(is_same<int, decltype(ac)>::value == true, "");
7235 static_assert(is_same<int, decltype(av)>::value == true, "");
7236 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7237 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7238 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7239 return (sumf > 0.0) ? sumi : add(c, v);
7244 namespace test_noexcept
7247 int f() { return 0; }
7248 int g() noexcept { return 0; }
7250 static_assert(noexcept(f()) == false, "");
7251 static_assert(noexcept(g()) == true, "");
7255 namespace test_constexpr
7258 template < typename CharT >
7259 unsigned long constexpr
7260 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7262 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7265 template < typename CharT >
7266 unsigned long constexpr
7267 strlen_c(const CharT *const s) noexcept
7269 return strlen_c_r(s, 0UL);
7272 static_assert(strlen_c("") == 0UL, "");
7273 static_assert(strlen_c("1") == 1UL, "");
7274 static_assert(strlen_c("example") == 7UL, "");
7275 static_assert(strlen_c("another\0example") == 7UL, "");
7279 namespace test_rvalue_references
7285 static constexpr int value = N;
7288 answer<1> f(int&) { return answer<1>(); }
7289 answer<2> f(const int&) { return answer<2>(); }
7290 answer<3> f(int&&) { return answer<3>(); }
7297 static_assert(decltype(f(i))::value == 1, "");
7298 static_assert(decltype(f(c))::value == 2, "");
7299 static_assert(decltype(f(0))::value == 3, "");
7304 namespace test_uniform_initialization
7309 static const int zero {};
7310 static const int one {1};
7313 static_assert(test::zero == 0, "");
7314 static_assert(test::one == 1, "");
7318 namespace test_lambdas
7324 auto lambda1 = [](){};
7325 auto lambda2 = lambda1;
7333 auto a = [](int i, int j){ return i + j; }(1, 2);
7334 auto b = []() -> int { return '0'; }();
7335 auto c = [=](){ return a + b; }();
7336 auto d = [&](){ return c; }();
7337 auto e = [a, &b](int x) mutable {
7338 const auto identity = [](int y){ return y; };
7339 for (auto i = 0; i < a; ++i)
7341 return x + identity(a + b);
7343 return a + b + c + d + e;
7349 const auto nullary = [](){ return 0; };
7350 const auto unary = [](int x){ return x; };
7351 using nullary_t = decltype(nullary);
7352 using unary_t = decltype(unary);
7353 const auto higher1st = [](nullary_t f){ return f(); };
7354 const auto higher2nd = [unary](nullary_t f1){
7355 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7357 return higher1st(nullary) + higher2nd(nullary)(unary);
7362 namespace test_variadic_templates
7368 template <int N0, int... N1toN>
7369 struct sum<N0, N1toN...>
7371 static constexpr auto value = N0 + sum<N1toN...>::value;
7377 static constexpr auto value = 0;
7380 static_assert(sum<>::value == 0, "");
7381 static_assert(sum<1>::value == 1, "");
7382 static_assert(sum<23>::value == 23, "");
7383 static_assert(sum<1, 2>::value == 3, "");
7384 static_assert(sum<5, 5, 11>::value == 21, "");
7385 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7389 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7390 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7392 namespace test_template_alias_sfinae
7397 template<typename T>
7398 using member = typename T::member_type;
7400 template<typename T>
7403 template<typename T>
7404 void func(member<T>*) {}
7408 void test() { func<foo>(0); }
7412 } // namespace cxx11
7414 #endif // __cplusplus >= 201103L
7419 if ac_fn_cxx_try_compile
"$LINENO"; then :
7424 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7427 eval ac_res
=\$
$cachevar
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7429 $as_echo "$ac_res" >&6; }
7430 if eval test x\$
$cachevar = xyes
; then
7432 if test -n "$CXXCPP" ; then
7433 CXXCPP
="$CXXCPP $switch"
7441 if test x
$ac_success = xno
; then
7442 for alternative
in ${ax_cxx_compile_alternatives}; do
7443 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7444 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7446 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7447 if eval \${$cachevar+:} false; then :
7448 $as_echo_n "(cached
) " >&6
7452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7453 /* end confdefs.h. */
7456 // If the compiler admits that it is not ready for C++11, why torture it?
7457 // Hopefully, this will speed up the test.
7461 #error "This is not a C
++ compiler
"
7463 #elif __cplusplus < 201103L
7465 #error "This is not a C
++11 compiler
"
7472 namespace test_static_assert
7475 template <typename T>
7478 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7483 namespace test_final_override
7492 struct Derived : public Base
7494 virtual ~Derived() override {}
7495 virtual void f() override {}
7500 namespace test_double_right_angle_brackets
7503 template < typename T >
7506 typedef check<void> single_type;
7507 typedef check<check<void>> double_type;
7508 typedef check<check<check<void>>> triple_type;
7509 typedef check<check<check<check<void>>>> quadruple_type;
7513 namespace test_decltype
7526 namespace test_type_deduction
7529 template < typename T1, typename T2 >
7532 static const bool value = false;
7535 template < typename T >
7536 struct is_same<T, T>
7538 static const bool value = true;
7541 template < typename T1, typename T2 >
7543 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7549 test(const int c, volatile int v)
7551 static_assert(is_same<int, decltype(0)>::value == true, "");
7552 static_assert(is_same<int, decltype(c)>::value == false, "");
7553 static_assert(is_same<int, decltype(v)>::value == false, "");
7556 auto sumi = ac + av + 'x';
7557 auto sumf = ac + av + 1.0;
7558 static_assert(is_same<int, decltype(ac)>::value == true, "");
7559 static_assert(is_same<int, decltype(av)>::value == true, "");
7560 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7561 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7562 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7563 return (sumf > 0.0) ? sumi : add(c, v);
7568 namespace test_noexcept
7571 int f() { return 0; }
7572 int g() noexcept { return 0; }
7574 static_assert(noexcept(f()) == false, "");
7575 static_assert(noexcept(g()) == true, "");
7579 namespace test_constexpr
7582 template < typename CharT >
7583 unsigned long constexpr
7584 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7586 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7589 template < typename CharT >
7590 unsigned long constexpr
7591 strlen_c(const CharT *const s) noexcept
7593 return strlen_c_r(s, 0UL);
7596 static_assert(strlen_c("") == 0UL, "");
7597 static_assert(strlen_c("1") == 1UL, "");
7598 static_assert(strlen_c("example
") == 7UL, "");
7599 static_assert(strlen_c("another\
0example
") == 7UL, "");
7603 namespace test_rvalue_references
7609 static constexpr int value = N;
7612 answer<1> f(int&) { return answer<1>(); }
7613 answer<2> f(const int&) { return answer<2>(); }
7614 answer<3> f(int&&) { return answer<3>(); }
7621 static_assert(decltype(f(i))::value == 1, "");
7622 static_assert(decltype(f(c))::value == 2, "");
7623 static_assert(decltype(f(0))::value == 3, "");
7628 namespace test_uniform_initialization
7633 static const int zero {};
7634 static const int one {1};
7637 static_assert(test::zero == 0, "");
7638 static_assert(test::one == 1, "");
7642 namespace test_lambdas
7648 auto lambda1 = [](){};
7649 auto lambda2 = lambda1;
7657 auto a = [](int i, int j){ return i + j; }(1, 2);
7658 auto b = []() -> int { return '0'; }();
7659 auto c = [=](){ return a + b; }();
7660 auto d = [&](){ return c; }();
7661 auto e = [a, &b](int x) mutable {
7662 const auto identity = [](int y){ return y; };
7663 for (auto i = 0; i < a; ++i)
7665 return x + identity(a + b);
7667 return a + b + c + d + e;
7673 const auto nullary = [](){ return 0; };
7674 const auto unary = [](int x){ return x; };
7675 using nullary_t = decltype(nullary);
7676 using unary_t = decltype(unary);
7677 const auto higher1st = [](nullary_t f){ return f(); };
7678 const auto higher2nd = [unary](nullary_t f1){
7679 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7681 return higher1st(nullary) + higher2nd(nullary)(unary);
7686 namespace test_variadic_templates
7692 template <int N0, int... N1toN>
7693 struct sum<N0, N1toN...>
7695 static constexpr auto value = N0 + sum<N1toN...>::value;
7701 static constexpr auto value = 0;
7704 static_assert(sum<>::value == 0, "");
7705 static_assert(sum<1>::value == 1, "");
7706 static_assert(sum<23>::value == 23, "");
7707 static_assert(sum<1, 2>::value == 3, "");
7708 static_assert(sum<5, 5, 11>::value == 21, "");
7709 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7713 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7714 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7716 namespace test_template_alias_sfinae
7721 template<typename T>
7722 using member = typename T::member_type;
7724 template<typename T>
7727 template<typename T>
7728 void func(member<T>*) {}
7732 void test() { func<foo>(0); }
7736 } // namespace cxx11
7738 #endif // __cplusplus >= 201103L
7743 if ac_fn_cxx_try_compile "$LINENO"; then :
7748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 eval ac_res=\$$cachevar
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7753 $as_echo "$ac_res" >&6; }
7754 if eval test x\$$cachevar = xyes; then
7756 if test -n "$CXXCPP" ; then
7757 CXXCPP="$CXXCPP $switch"
7763 if test x$ac_success = xyes; then
7768 CXX_FOR_BUILD="$CXX"
7769 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7770 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7771 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7772 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7773 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7775 ac_cpp='$CPP $CPPFLAGS'
7776 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7777 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7778 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7780 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7781 if test x$ac_success = xno; then
7782 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7785 if test x$ac_success = xno; then
7786 HAVE_CXX11_FOR_BUILD=0
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7788 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7790 HAVE_CXX11_FOR_BUILD=1
7792 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7800 # Check whether --enable-pgo-build was given.
7801 if test "${enable_pgo_build+set}" = set; then :
7802 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7808 # Issue errors and warnings for invalid/strange PGO build combinations.
7809 case "$have_compiler:$host:$target:$enable_pgo_build" in
7812 # Allow the PGO build only if we aren't building a compiler and
7813 # we are in a native configuration.
7814 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7816 # Disallow the PGO bootstrap if we are building a compiler.
7817 yes:*:*:yes |
yes:*:*:lto
)
7818 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7821 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7825 if test "$enable_pgo_build" != "no"; then
7826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7827 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7828 old_CFLAGS
="$CFLAGS"
7829 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7830 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7832 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7836 if ac_fn_c_try_compile
"$LINENO"; then :
7839 PGO_BUILD_GEN_CFLAGS
=
7841 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7842 CFLAGS
="$old_CFLAGS"
7843 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7845 $as_echo "yes" >&6; }
7846 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7849 $as_echo "no" >&6; }
7850 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7853 if test "$enable_pgo_build" = "lto"; then
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7855 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7856 old_CFLAGS
="$CFLAGS"
7857 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7858 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7859 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7860 /* end confdefs.h. */
7863 if ac_fn_c_try_compile
"$LINENO"; then :
7866 PGO_BUILD_LTO_CFLAGS
=
7868 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7869 CFLAGS
="$old_CFLAGS"
7870 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7872 $as_echo "yes" >&6; }
7874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7875 $as_echo "no" >&6; }
7876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7877 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7885 # Used for setting $lt_cv_objdir
7886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7887 $as_echo_n "checking for objdir... " >&6; }
7888 if ${lt_cv_objdir+:} false
; then :
7889 $as_echo_n "(cached) " >&6
7891 rm -f .libs
2>/dev
/null
7892 mkdir .libs
2>/dev
/null
7893 if test -d .libs
; then
7896 # MS-DOS does not allow filenames that begin with a dot.
7899 rmdir .libs
2>/dev
/null
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7902 $as_echo "$lt_cv_objdir" >&6; }
7903 objdir
=$lt_cv_objdir
7909 cat >>confdefs.h
<<_ACEOF
7910 #define LT_OBJDIR "$lt_cv_objdir/"
7915 # Check for GMP, MPFR and MPC
7918 if test -d ${srcdir}/gcc
; then
7922 if test -d ${srcdir}/gdb
; then
7923 if test "x$enable_gdb" != xno
; then
7928 gmplibs
="-lmpfr -lgmp"
7929 if test x
"$require_mpc" = "xyes" ; then
7930 gmplibs
="-lmpc $gmplibs"
7935 # Specify a location for mpc
7936 # check for this first so it ends up on the link line before mpfr.
7938 # Check whether --with-mpc was given.
7939 if test "${with_mpc+set}" = set; then :
7944 # Check whether --with-mpc-include was given.
7945 if test "${with_mpc_include+set}" = set; then :
7946 withval
=$with_mpc_include;
7950 # Check whether --with-mpc-lib was given.
7951 if test "${with_mpc_lib+set}" = set; then :
7952 withval
=$with_mpc_lib;
7956 if test "x$with_mpc" != x
; then
7957 gmplibs
="-L$with_mpc/lib $gmplibs"
7958 gmpinc
="-I$with_mpc/include $gmpinc"
7960 if test "x$with_mpc_include" != x
; then
7961 gmpinc
="-I$with_mpc_include $gmpinc"
7963 if test "x$with_mpc_lib" != x
; then
7964 gmplibs
="-L$with_mpc_lib $gmplibs"
7966 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
7967 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7968 gmpinc
='-I$$s/mpc/src '"$gmpinc"
7969 # Do not test the mpc version. Assume that it is sufficient, since
7970 # it is in the source tree, and the library has not been built yet
7971 # but it would be included on the link line in the version check below
7972 # hence making the test fail.
7976 # Specify a location for mpfr
7977 # check for this first so it ends up on the link line before gmp.
7979 # Check whether --with-mpfr was given.
7980 if test "${with_mpfr+set}" = set; then :
7985 # Check whether --with-mpfr-include was given.
7986 if test "${with_mpfr_include+set}" = set; then :
7987 withval
=$with_mpfr_include;
7991 # Check whether --with-mpfr-lib was given.
7992 if test "${with_mpfr_lib+set}" = set; then :
7993 withval
=$with_mpfr_lib;
7997 if test "x$with_mpfr" != x
; then
7998 gmplibs
="-L$with_mpfr/lib $gmplibs"
7999 gmpinc
="-I$with_mpfr/include $gmpinc"
8001 if test "x$with_mpfr_include" != x
; then
8002 gmpinc
="-I$with_mpfr_include $gmpinc"
8004 if test "x$with_mpfr_lib" != x
; then
8005 gmplibs
="-L$with_mpfr_lib $gmplibs"
8007 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8008 # MPFR v3.1.0 moved the sources into a src sub-directory.
8009 if ! test -d ${srcdir}/mpfr
/src
; then
8010 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8012 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8013 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8014 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8015 # Do not test the mpfr version. Assume that it is sufficient, since
8016 # it is in the source tree, and the library has not been built yet
8017 # but it would be included on the link line in the version check below
8018 # hence making the test fail.
8022 # Specify a location for gmp
8024 # Check whether --with-gmp was given.
8025 if test "${with_gmp+set}" = set; then :
8030 # Check whether --with-gmp-include was given.
8031 if test "${with_gmp_include+set}" = set; then :
8032 withval
=$with_gmp_include;
8036 # Check whether --with-gmp-lib was given.
8037 if test "${with_gmp_lib+set}" = set; then :
8038 withval
=$with_gmp_lib;
8043 if test "x$with_gmp" != x
; then
8044 gmplibs
="-L$with_gmp/lib $gmplibs"
8045 gmpinc
="-I$with_gmp/include $gmpinc"
8047 if test "x$with_gmp_include" != x
; then
8048 gmpinc
="-I$with_gmp_include $gmpinc"
8050 if test "x$with_gmp_lib" != x
; then
8051 gmplibs
="-L$with_gmp_lib $gmplibs"
8053 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8054 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8055 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8056 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8057 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8058 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8059 # Do not test the gmp version. Assume that it is sufficient, since
8060 # it is in the source tree, and the library has not been built yet
8061 # but it would be included on the link line in the version check below
8062 # hence making the test fail.
8066 if test "x$require_gmp" = xyes
&& test "x$have_gmp" = xno
; then
8068 saved_CFLAGS
="$CFLAGS"
8069 CFLAGS
="$CFLAGS $gmpinc"
8070 # Check for the recommended and required versions of GMP.
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8072 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8073 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8074 /* end confdefs.h. */
8080 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8081 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8082 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8090 if ac_fn_c_try_compile
"$LINENO"; then :
8091 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8092 /* end confdefs.h. */
8098 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8099 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8100 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8108 if ac_fn_c_try_compile
"$LINENO"; then :
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8110 $as_echo "yes" >&6; }
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8113 $as_echo "buggy but acceptable" >&6; }
8115 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118 $as_echo "no" >&6; }; have_gmp
=no
8120 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8122 # If we have GMP, check the MPFR version.
8123 if test x
"$have_gmp" = xyes
; then
8124 # Check for the recommended and required versions of MPFR.
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8126 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8127 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8128 /* end confdefs.h. */
8135 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8143 if ac_fn_c_try_compile
"$LINENO"; then :
8144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8145 /* end confdefs.h. */
8152 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8160 if ac_fn_c_try_compile
"$LINENO"; then :
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8162 $as_echo "yes" >&6; }
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8165 $as_echo "buggy but acceptable" >&6; }
8167 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8170 $as_echo "no" >&6; }; have_gmp
=no
8172 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8175 # Check for the MPC header version.
8176 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8177 # Check for the recommended and required versions of MPC.
8178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8179 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8180 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8181 /* end confdefs.h. */
8187 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8195 if ac_fn_c_try_compile
"$LINENO"; then :
8196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8197 /* end confdefs.h. */
8203 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8211 if ac_fn_c_try_compile
"$LINENO"; then :
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8213 $as_echo "yes" >&6; }
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8216 $as_echo "buggy but acceptable" >&6; }
8218 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }; have_gmp
=no
8223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8226 # Now check the MPFR library.
8227 if test x
"$have_gmp" = xyes
; then
8229 LIBS
="$LIBS $gmplibs"
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr libraries" >&5
8231 $as_echo_n "checking for the correct version of the gmp/mpfr libraries... " >&6; }
8232 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8233 /* end confdefs.h. */
8244 mpfr_atan2 (n, n, x, MPFR_RNDN);
8245 mpfr_erfc (n, x, MPFR_RNDN);
8246 mpfr_subnormalize (x, t, MPFR_RNDN);
8254 if ac_fn_c_try_link
"$LINENO"; then :
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8256 $as_echo "yes" >&6; }
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8259 $as_echo "no" >&6; }; have_gmp
=no
8261 rm -f core conftest.err conftest.
$ac_objext \
8262 conftest
$ac_exeext conftest.
$ac_ext
8266 # Now check the MPC library
8267 if test "x$require_mpc" = xyes
&& test x
"$have_gmp" = xyes
; then
8269 LIBS
="$LIBS $gmplibs"
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the mpc libraries" >&5
8271 $as_echo_n "checking for the correct version of the mpc libraries... " >&6; }
8272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8273 /* end confdefs.h. */
8281 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8282 mpc_cosh (c, c, MPC_RNDNN);
8283 mpc_pow (c, c, c, MPC_RNDNN);
8284 mpc_acosh (c, c, MPC_RNDNN);
8291 if ac_fn_c_try_link
"$LINENO"; then :
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8293 $as_echo "yes" >&6; }
8295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8296 $as_echo "no" >&6; }; have_gmp
=no
8298 rm -f core conftest.err conftest.
$ac_objext \
8299 conftest
$ac_exeext conftest.
$ac_ext
8303 CFLAGS
="$saved_CFLAGS"
8305 # The library versions listed in the error message below should match
8306 # the HARD-minimums enforced above.
8307 if test x
$have_gmp != xyes
; then
8308 if test -d ${srcdir}/gcc
; then
8309 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8310 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8311 their locations. Source code for these libraries can be found at
8312 their respective hosting sites as well as at
8313 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8314 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8315 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8316 make sure that you have installed both the libraries and the header
8317 files. They may be located in separate packages." "$LINENO" 5
8319 as_fn_error $?
"Building GDB requires GMP 4.2+, and MPFR 3.1.0+.
8320 Try the --with-gmp and/or --with-mpfr options to specify
8321 their locations. If you obtained GMP and/or MPFR from a vendor
8322 distribution package, make sure that you have installed both the libraries
8323 and the header files. They may be located in separate packages." "$LINENO" 5
8328 # Flags needed for both GMP, MPFR and/or MPC.
8336 # Libraries to use for stage1 or when not bootstrapping.
8338 # Check whether --with-stage1-libs was given.
8339 if test "${with_stage1_libs+set}" = set; then :
8340 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8343 stage1_libs
=$withval
8351 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8352 # default is yes if gcc is being built; no otherwise. The reason for
8353 # this default is that gdb is sometimes linked against GNU Source
8354 # Highlight, which is a shared library that uses C++ exceptions. In
8355 # this case, -static-libstdc++ will cause crashes.
8357 # Check whether --with-static-standard-libraries was given.
8358 if test "${with_static_standard_libraries+set}" = set; then :
8359 withval
=$with_static_standard_libraries;
8361 with_static_standard_libraries
=auto
8364 if test "$with_static_standard_libraries" = auto
; then
8365 with_static_standard_libraries
=$have_compiler
8368 # Linker flags to use for stage1 or when not bootstrapping.
8370 # Check whether --with-stage1-ldflags was given.
8371 if test "${with_stage1_ldflags+set}" = set; then :
8372 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8375 stage1_ldflags
=$withval
8379 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8380 # if supported. But if the user explicitly specified the libraries to use,
8381 # trust that they are doing what they want.
8382 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8383 -a "$have_static_libs" = yes; then
8384 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8390 # Libraries to use for stage2 and later builds.
8392 # Check whether --with-boot-libs was given.
8393 if test "${with_boot_libs+set}" = set; then :
8394 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8397 poststage1_libs
=$withval
8405 # Linker flags to use for stage2 and later builds.
8407 # Check whether --with-boot-ldflags was given.
8408 if test "${with_boot_ldflags+set}" = set; then :
8409 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8412 poststage1_ldflags
=$withval
8416 # In stages 2 and 3, default to linking libstdc++ and libgcc
8417 # statically. But if the user explicitly specified the libraries to
8418 # use, trust that they are doing what they want.
8419 if test "$poststage1_libs" = ""; then
8420 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8426 # GCC GRAPHITE dependency isl.
8427 # Basic setup is inlined here, actual checks are in config/isl.m4
8430 # Check whether --with-isl was given.
8431 if test "${with_isl+set}" = set; then :
8436 # Treat --without-isl as a request to disable
8437 # GRAPHITE support and skip all following checks.
8438 if test "x$with_isl" != "xno"; then
8442 # Check whether --with-isl-include was given.
8443 if test "${with_isl_include+set}" = set; then :
8444 withval
=$with_isl_include;
8448 # Check whether --with-isl-lib was given.
8449 if test "${with_isl_lib+set}" = set; then :
8450 withval
=$with_isl_lib;
8454 # Check whether --enable-isl-version-check was given.
8455 if test "${enable_isl_version_check+set}" = set; then :
8456 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8458 ENABLE_ISL_CHECK
=yes
8462 # Initialize isllibs and islinc.
8471 isllibs
="-L$with_isl/lib"
8472 islinc
="-I$with_isl/include"
8475 if test "x${with_isl_include}" != x
; then
8476 islinc
="-I$with_isl_include"
8478 if test "x${with_isl_lib}" != x
; then
8479 isllibs
="-L$with_isl_lib"
8481 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8482 && test -d ${srcdir}/isl
; then
8483 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8484 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8487 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8490 isllibs
="${isllibs} -lisl"
8494 if test "${ENABLE_ISL_CHECK}" = yes ; then
8495 _isl_saved_CFLAGS
=$CFLAGS
8496 _isl_saved_LDFLAGS
=$LDFLAGS
8497 _isl_saved_LIBS
=$LIBS
8499 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8500 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8501 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8504 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8505 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8506 /* end confdefs.h. */
8507 #include <isl/schedule.h>
8511 isl_options_set_schedule_serialize_sccs (NULL, 0);
8516 if ac_fn_c_try_link
"$LINENO"; then :
8521 rm -f core conftest.err conftest.
$ac_objext \
8522 conftest
$ac_exeext conftest.
$ac_ext
8523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8524 $as_echo "$gcc_cv_isl" >&6; }
8526 if test "${gcc_cv_isl}" = no
; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8528 $as_echo "required isl version is 0.15 or later" >&6; }
8531 CFLAGS
=$_isl_saved_CFLAGS
8532 LDFLAGS
=$_isl_saved_LDFLAGS
8533 LIBS
=$_isl_saved_LIBS
8541 if test "x${with_isl}" = xno
; then
8542 graphite_requested
=no
8543 elif test "x${with_isl}" != x \
8544 ||
test "x${with_isl_include}" != x \
8545 ||
test "x${with_isl_lib}" != x
; then
8546 graphite_requested
=yes
8548 graphite_requested
=no
8553 if test "${gcc_cv_isl}" = no
; then
8558 if test "${graphite_requested}" = yes \
8559 && test "x${isllibs}" = x \
8560 && test "x${islinc}" = x
; then
8562 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8568 # If the isl check failed, disable builds of in-tree variant of isl
8569 if test "x$with_isl" = xno ||
8570 test "x$gcc_cv_isl" = xno
; then
8571 noconfigdirs
="$noconfigdirs isl"
8578 # Check for LTO support.
8579 # Check whether --enable-lto was given.
8580 if test "${enable_lto+set}" = set; then :
8581 enableval
=$enable_lto; enable_lto
=$enableval
8583 enable_lto
=yes; default_enable_lto
=yes
8592 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8593 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8594 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8603 if test $target_elf = yes; then :
8604 # ELF platforms build the lto-plugin always.
8605 build_lto_plugin
=yes
8608 if test x
"$default_enable_lto" = x
"yes" ; then
8610 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8611 # On other non-ELF platforms, LTO has yet to be validated.
8615 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8616 # It would also be nice to check the binutils support, but we don't
8617 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8618 # warn during gcc/ subconfigure; unless you're bootstrapping with
8619 # -flto it won't be needed until after installation anyway.
8621 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8622 *) if test x
"$enable_lto" = x
"yes"; then
8623 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8628 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8629 # Build it unless LTO was explicitly disabled.
8631 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8638 # Check whether --enable-linker-plugin-configure-flags was given.
8639 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8640 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8642 extra_linker_plugin_configure_flags
=
8646 # Check whether --enable-linker-plugin-flags was given.
8647 if test "${enable_linker_plugin_flags+set}" = set; then :
8648 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8650 extra_linker_plugin_flags
=
8655 # Handle --enable-host-pie
8656 # If host PIE executables are the default (or must be forced on) for some host,
8657 # we must pass that configuration to the gcc directory.
8659 # Check whether --enable-host-pie was given.
8660 if test "${enable_host_pie+set}" = set; then :
8661 enableval
=$enable_host_pie; host_pie
=$enableval
8664 if test x
$host_pie != xyes
; then
8665 # for Darwin20+ this is required.
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&5
8667 $as_echo "$as_me: WARNING: PIE executables are required for the configured host, host-pie setting ignored." >&2;}
8669 gcc_host_pie
=--enable-host-pie
8676 # Default to PIE (mandatory for aarch64).
8678 gcc_host_pie
=--enable-host-pie
8688 # Enable --enable-host-shared.
8689 # Checked early to determine whether jit is an 'all' language
8690 # Check whether --enable-host-shared was given.
8691 if test "${enable_host_shared+set}" = set; then :
8692 enableval
=$enable_host_shared; host_shared
=$enableval
8694 x86_64-
*-darwin* | aarch64-
*-darwin*)
8695 if test x
$host_shared != xyes
; then
8696 # PIC is the default, and actually cannot be switched off.
8697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&5
8698 $as_echo "$as_me: WARNING: PIC code is required for the configured host; host-shared setting ignored." >&2;}
8702 if test x
$host_pie = xyes
-a x
$host_shared != xyes
; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&5
8704 $as_echo "$as_me: WARNING: PIC code is required for PIE host executables host-shared setting ignored." >&2;}
8711 # 64B x86_64 and Aarch64 Darwin default to PIC.
8712 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8713 # 32B and powerpc64 Darwin must use PIC to link PIE exes.
8714 *-*-darwin*) host_shared
=$host_pie ;;
8722 if test x
$host_shared = xyes
; then
8725 # Since host shared is the default for 64b Darwin, and also enabled for
8726 # host_pie, ensure that we present the PIE flag when host_pie is active.
8727 if test x
$host_pie = xyes
; then
8735 elif test x
$host_pie = xyes
; then
8743 # If we are building PIC/PIE host executables, and we are building dependent
8744 # libs (e.g. GMP) in-tree those libs need to be configured to generate PIC
8747 if test "$host_shared" = "yes" -o "$host_pie" = "yes"; then
8748 host_libs_picflag
='--with-pic'
8752 # By default, C and C++ are the only stage 1 languages.
8753 stage1_languages
=,c
,
8755 # Target libraries that we bootstrap.
8756 bootstrap_target_libs
=,target-libgcc
,
8758 # Figure out what language subdirectories are present.
8759 # Look if the user specified --enable-languages="..."; if not, use
8760 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8762 # NB: embedded tabs in this IF block -- do not untabify
8763 if test -d ${srcdir}/gcc
; then
8764 if test x
"${enable_languages+set}" != xset
; then
8765 if test x
"${LANGUAGES+set}" = xset
; then
8766 enable_languages
="${LANGUAGES}"
8767 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8769 enable_languages
=default
8772 if test x
"${enable_languages}" = x ||
8773 test x
"${enable_languages}" = xyes
;
8775 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8779 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8781 # 'f95' is the old name for the 'fortran' language. We issue a warning
8782 # and make the substitution.
8783 case ,${enable_languages}, in
8785 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8786 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8790 # If bootstrapping, C++ must be enabled.
8791 case ",$enable_languages,:$enable_bootstrap" in
8794 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8795 enable_languages
="${enable_languages},c++"
8797 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8802 # First scan to see if an enabled language requires some other language.
8803 # We assume that a given config-lang.in will list all the language
8804 # front ends it requires, even if some are required indirectly.
8805 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8806 case ${lang_frag} in
8808 # The odd quoting in the next line works around
8809 # an apparent bug in bash 1.12 on linux.
8810 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8812 # From the config-lang.in, get $language, $lang_requires, and
8813 # $lang_requires_boot_languages.
8816 lang_requires_boot_languages
=
8817 # set srcdir during sourcing lang_frag to the gcc dir.
8818 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8819 # polutes this shell
8820 saved_srcdir
=${srcdir}
8821 srcdir
=${srcdir}/gcc .
${lang_frag}
8822 srcdir
=${saved_srcdir}
8823 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8824 case ,${enable_languages}, in
8829 echo " \`$other' language required by \`$language'; enabling" 1>&2
8830 enable_languages
="${enable_languages},${other}"
8834 for other
in ${lang_requires_boot_languages} ; do
8835 if test "$other" != "c"; then
8836 case ,${enable_stage1_languages}, in
8841 case ,${enable_languages}, in
8843 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8844 enable_stage1_languages
="$enable_stage1_languages,${other}"
8855 new_enable_languages
=,c
,
8857 # If LTO is enabled, add the LTO front end.
8858 if test "$enable_lto" = "yes" ; then
8859 case ,${enable_languages}, in
8861 *) enable_languages
="${enable_languages},lto" ;;
8863 if test "${build_lto_plugin}" = "yes" ; then
8864 configdirs
="$configdirs lto-plugin"
8868 # If we're building an offloading compiler, add the LTO front end.
8869 if test x
"$enable_as_accelerator_for" != x
; then
8870 case ,${enable_languages}, in
8872 *) enable_languages
="${enable_languages},lto" ;;
8876 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8877 potential_languages
=,c
,
8879 enabled_target_libs
=
8880 disabled_target_libs
=
8882 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8883 case ${lang_frag} in
8885 # The odd quoting in the next line works around
8886 # an apparent bug in bash 1.12 on linux.
8887 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8889 # From the config-lang.in, get $language, $target_libs,
8890 # $lang_dirs, $boot_language, and $build_by_default
8896 build_by_default
=yes
8897 # set srcdir during sourcing. See above about save & restore
8898 saved_srcdir
=${srcdir}
8899 srcdir
=${srcdir}/gcc .
${lang_frag}
8900 srcdir
=${saved_srcdir}
8901 if test x
${language} = x
; then
8902 echo "${lang_frag} doesn't set \$language." 1>&2
8906 if test "$language" = "c++"; then
8911 # C is always enabled, so no need to add it again
8912 if test "$language" != "c"; then
8913 case ,${enable_languages}, in
8915 # Language was explicitly selected; include it
8919 # All languages are enabled
8923 # 'default' was selected, select it if it is a default language
8924 add_this_lang
=${build_by_default}
8929 # Disable languages that need other directories if these aren't available.
8930 for i
in $subdir_requires; do
8931 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8932 case ${add_this_lang} in
8934 # Specifically requested language; tell them.
8935 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8939 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8940 add_this_lang
=unsupported
8944 add_this_lang
=unsupported
8949 # Disable Ada if no preexisting GNAT is available.
8950 case ${add_this_lang}:${language}:${have_gnat} in
8952 # Specifically requested language; tell them.
8953 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8957 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8958 add_this_lang
=unsupported
8962 add_this_lang
=unsupported
8966 # Disable D if no preexisting GDC is available.
8967 case ${add_this_lang}:${language}:${have_gdc} in
8969 # Specifically requested language; tell them.
8970 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
8973 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8974 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8975 add_this_lang
=unsupported
8979 add_this_lang
=unsupported
8983 # Disable jit if -enable-host-shared not specified
8984 # but not if building for Mingw. All code in Windows
8985 # is position independent code (PIC).
8989 case ${add_this_lang}:${language}:${host_shared} in
8991 # PR jit/64780: explicitly specify --enable-host-shared
8993 Enabling language \"jit\" requires --enable-host-shared.
8995 --enable-host-shared typically slows the rest of the compiler down by
8996 a few %, so you must explicitly enable it.
8998 If you want to build both the jit and the regular compiler, it is often
8999 best to do this via two separate configure/builds, in separate
9000 directories, to avoid imposing the performance cost of
9001 --enable-host-shared on the regular compiler." "$LINENO" 5
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
9005 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
9006 add_this_lang
=unsupported
9010 add_this_lang
=unsupported
9016 # Disable a language that is unsupported by the target.
9017 case "${add_this_lang}: $unsupported_languages " in
9021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9022 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9023 add_this_lang
=unsupported
9027 case $add_this_lang in
9029 # Remove language-dependent dirs.
9030 disabled_target_libs
="$disabled_target_libs $target_libs"
9031 noconfigdirs
="$noconfigdirs $lang_dirs"
9034 # Remove language-dependent dirs; still show language as supported.
9035 disabled_target_libs
="$disabled_target_libs $target_libs"
9036 noconfigdirs
="$noconfigdirs $lang_dirs"
9037 potential_languages
="${potential_languages}${language},"
9040 new_enable_languages
="${new_enable_languages}${language},"
9041 potential_languages
="${potential_languages}${language},"
9042 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
9043 enabled_target_libs
="$enabled_target_libs $target_libs"
9044 case "${boot_language}:,$enable_stage1_languages," in
9045 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
9046 # Add to (comma-separated) list of stage 1 languages.
9047 case ",$stage1_languages," in
9048 *,$language,* |
,yes, |
,all
,) ;;
9049 *) stage1_languages
="${stage1_languages}${language}," ;;
9051 # We need to bootstrap any supporting libraries.
9052 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9061 # Add target libraries which are only needed for disabled languages
9063 if test -n "$disabled_target_libs"; then
9064 for dir
in $disabled_target_libs; do
9065 case " $enabled_target_libs " in
9067 *) noconfigdirs
="$noconfigdirs $dir" ;;
9072 # Check whether --enable-stage1-languages was given.
9073 if test "${enable_stage1_languages+set}" = set; then :
9074 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9076 # Set it to something that will have no effect in the loop below
9077 enable_stage1_languages
=c
;;
9079 enable_stage1_languages
=`echo $new_enable_languages | \
9080 sed -e "s/^,//" -e "s/,$//" ` ;;
9082 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
9083 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9086 # Add "good" languages from enable_stage1_languages to stage1_languages,
9087 # while "bad" languages go in missing_languages. Leave no duplicates.
9088 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9089 case $potential_languages in
9091 case $stage1_languages in
9093 *) stage1_languages
="$stage1_languages$i," ;;
9096 case $missing_languages in
9098 *) missing_languages
="$missing_languages$i," ;;
9105 # Remove leading/trailing commas that were added for simplicity
9106 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9107 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9108 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9109 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9111 if test "x$missing_languages" != x
; then
9113 The following requested languages could not be built: ${missing_languages}
9114 Supported languages are: ${potential_languages}" "$LINENO" 5
9116 if test "x$new_enable_languages" != "x$enable_languages"; then
9117 echo The following languages will be built
: ${new_enable_languages}
9118 enable_languages
="$new_enable_languages"
9122 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9125 # Handle --disable-<component> generically.
9126 for dir
in $configdirs $build_configdirs $target_configdirs ; do
9127 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9128 varname
=`echo $dirname | sed -e s/+/_/g`
9129 if eval test x\
${enable_${varname}} "=" xno
; then
9130 noconfigdirs
="$noconfigdirs $dir"
9134 # Check for Boehm's garbage collector
9135 # Check whether --enable-objc-gc was given.
9136 if test "${enable_objc_gc+set}" = set; then :
9137 enableval
=$enable_objc_gc;
9141 # Check whether --with-target-bdw-gc was given.
9142 if test "${with_target_bdw_gc+set}" = set; then :
9143 withval
=$with_target_bdw_gc;
9147 # Check whether --with-target-bdw-gc-include was given.
9148 if test "${with_target_bdw_gc_include+set}" = set; then :
9149 withval
=$with_target_bdw_gc_include;
9153 # Check whether --with-target-bdw-gc-lib was given.
9154 if test "${with_target_bdw_gc_lib+set}" = set; then :
9155 withval
=$with_target_bdw_gc_lib;
9159 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9161 $as_echo_n "checking for bdw garbage collector... " >&6; }
9162 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9164 $as_echo "using bdw-gc in default locations" >&6; }
9166 if 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-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9168 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9169 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9172 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9177 # Disable libitm, libsanitizer, libvtv if we're not building C++
9178 case ,${enable_languages}, in
9180 # Disable libitm, libsanitizer if we're not building libstdc++
9181 case "${noconfigdirs}" in
9182 *target-libstdc
++-v3*)
9183 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9189 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer target-libvtv"
9193 # If gcc/ is not in the source tree then we'll not be building a
9194 # target compiler, assume in that case we don't want to build any
9195 # target libraries or tools.
9197 # This was added primarily for the benefit for binutils-gdb who reuse
9198 # this configure script, but don't always have target tools available.
9199 if test ! -d ${srcdir}/gcc
; then
9200 skipdirs
="${skipdirs} ${target_configdirs}"
9203 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9204 # $build_configdirs and $target_configdirs.
9205 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9208 for dir
in .
$skipdirs $noconfigdirs ; do
9209 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9210 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9211 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9212 if test -r $srcdir/$dirname/configure
; then
9213 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9216 notsupp
="$notsupp $dir"
9220 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9221 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9222 if test -r $srcdir/$dirname/configure
; then
9223 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9226 notsupp
="$notsupp $dir"
9230 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9231 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9232 if test -r $srcdir/$dirname/configure
; then
9233 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9236 notsupp
="$notsupp $dir"
9242 # Quietly strip out all directories which aren't configurable in this tree.
9243 # This relies on all configurable subdirectories being autoconfiscated, which
9245 build_configdirs_all
="$build_configdirs"
9247 for i
in ${build_configdirs_all} ; do
9248 j
=`echo $i | sed -e s/build-//g`
9249 if test -f ${srcdir}/$j/configure
; then
9250 build_configdirs
="${build_configdirs} $i"
9254 configdirs_all
="$configdirs"
9256 for i
in ${configdirs_all} ; do
9257 if test -f ${srcdir}/$i/configure
; then
9258 configdirs
="${configdirs} $i"
9262 target_configdirs_all
="$target_configdirs"
9264 for i
in ${target_configdirs_all} ; do
9265 j
=`echo $i | sed -e s/target-//g`
9266 if test -f ${srcdir}/$j/configure
; then
9267 target_configdirs
="${target_configdirs} $i"
9271 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9272 # so we have to add it after the preceding checks.
9273 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9275 case " $configdirs " in
9277 # If we can build libiberty, we can also build libiberty-linker-plugin.
9278 configdirs
="$configdirs libiberty-linker-plugin"
9279 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9280 --with-libiberty=../libiberty-linker-plugin";;
9282 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9286 # Sometimes we have special requirements for the host libiberty.
9287 extra_host_libiberty_configure_flags
=
9288 case " $configdirs " in
9289 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9290 # When these are to be built as shared libraries, the same applies to
9292 extra_host_libiberty_configure_flags
=--enable-shared
9297 # Sometimes we have special requirements for the host zlib.
9298 extra_host_zlib_configure_flags
=
9299 case " $configdirs " in
9301 # When bfd is to be built as a shared library, the same applies to
9303 if test "$enable_shared" = "yes"; then
9304 extra_host_zlib_configure_flags
=--enable-host-shared
9310 # Produce a warning message for the subdirs we can't configure.
9311 # This isn't especially interesting in the Cygnus tree, but in the individual
9312 # FSF releases, it's important to let people know when their machine isn't
9313 # supported by the one or two programs in a package.
9315 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9316 # If $appdirs is non-empty, at least one of those directories must still
9317 # be configured, or we error out. (E.g., if the gas release supports a
9318 # specified target in some subdirs but not the gas subdir, we shouldn't
9319 # pretend that all is well.)
9320 if test -n "$appdirs" ; then
9321 for dir
in $appdirs ; do
9322 if test -r $dir/Makefile.
in ; then
9323 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9327 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9333 if test -n "$appdirs" ; then
9334 echo "*** This configuration is not supported by this package." 1>&2
9338 # Okay, some application will build, or we don't care to check. Still
9339 # notify of subdirs not getting built.
9340 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9341 echo " ${notsupp}" 1>&2
9342 echo " (Any other directories should still work fine.)" 1>&2
9350 # To find our prefix, in gcc_cv_tool_prefix.
9352 # The user is always right.
9353 if test "${PATH_SEPARATOR+set}" != set; then
9354 echo "#! /bin/sh" >conf$$.sh
9355 echo "exit 0" >>conf$$.sh
9357 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9366 get_gcc_base_ver
="cat"
9368 # Check whether --with-gcc-major-version-only was given.
9369 if test "${with_gcc_major_version_only+set}" = set; then :
9370 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9371 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9381 if test "x$exec_prefix" = xNONE
; then
9382 if test "x$prefix" = xNONE
; then
9383 gcc_cv_tool_prefix
=$ac_default_prefix
9385 gcc_cv_tool_prefix
=$prefix
9388 gcc_cv_tool_prefix
=$exec_prefix
9391 # If there is no compiler in the tree, use the PATH only. In any
9392 # case, if there is no compiler in the tree nobody should use
9393 # AS_FOR_TARGET and LD_FOR_TARGET.
9394 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9395 if test x
$with_gcc_major_version_only = xyes
; then
9396 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9398 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9400 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9401 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9402 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9403 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9404 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9405 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9410 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9411 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9419 # Check whether --with-build-sysroot was given.
9420 if test "${with_build_sysroot+set}" = set; then :
9421 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9422 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9425 SYSROOT_CFLAGS_FOR_TARGET
=
9431 # Check whether --with-debug-prefix-map was given.
9432 if test "${with_debug_prefix_map+set}" = set; then :
9433 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9434 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9435 for debug_map
in $withval; do
9436 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9440 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9445 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9446 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9447 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9448 # We want to ensure that TARGET libraries (which we know are built with
9449 # gcc) are built with "-O2 -g", so include those options when setting
9450 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9451 if test "x$CFLAGS_FOR_TARGET" = x
; then
9452 if test "x${is_cross_compiler}" = xyes
; then
9453 CFLAGS_FOR_TARGET
="-g -O2"
9455 CFLAGS_FOR_TARGET
=$CFLAGS
9458 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9461 *" -g "* |
*" -g3 "*) ;;
9462 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9468 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9469 if test "x${is_cross_compiler}" = xyes
; then
9470 CXXFLAGS_FOR_TARGET
="-g -O2"
9472 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9473 case " $CXXFLAGS " in
9475 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9477 case " $CXXFLAGS " in
9478 *" -g "* |
*" -g3 "*) ;;
9479 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9487 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9488 # the named directory are copied to $(tooldir)/sys-include.
9489 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9490 if test x
${is_cross_compiler} = xno
; then
9491 echo 1>&2 '***' --with-headers is only supported when cross compiling
9494 if test x
"${with_headers}" != xyes
; then
9495 x
=${gcc_cv_tool_prefix}
9496 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9500 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9501 # the name directories are copied to $(tooldir)/lib. Multiple directories
9503 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9504 if test x
${is_cross_compiler} = xno
; then
9505 echo 1>&2 '***' --with-libs is only supported when cross compiling
9508 if test x
"${with_libs}" != xyes
; then
9509 # Copy the libraries in reverse order, so that files in the first named
9510 # library override files in subsequent libraries.
9511 x
=${gcc_cv_tool_prefix}
9512 for l
in ${with_libs}; do
9513 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9518 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9520 # This is done by determining whether or not the appropriate directory
9521 # is available, and by checking whether or not specific configurations
9522 # have requested that this magic not happen.
9524 # The command line options always override the explicit settings in
9525 # configure.ac, and the settings in configure.ac override this magic.
9527 # If the default for a toolchain is to use GNU as and ld, and you don't
9528 # want to do that, then you should use the --without-gnu-as and
9529 # --without-gnu-ld options for the configure script. Similarly, if
9530 # the default is to use the included zlib and you don't want to do that,
9531 # you should use the --with-system-zlib option for the configure script.
9533 if test x
${use_gnu_as} = x
&&
9534 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9536 extra_host_args
="$extra_host_args --with-gnu-as"
9539 if test x
${use_gnu_ld} = x
&&
9540 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9542 extra_host_args
="$extra_host_args --with-gnu-ld"
9545 if test x
${use_included_zlib} = x
&&
9546 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9549 with_system_zlib
=yes
9550 extra_host_args
="$extra_host_args --with-system-zlib"
9553 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9554 # can detect this case.
9556 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9558 extra_host_args
="$extra_host_args --with-newlib"
9561 # Handle ${copy_dirs}
9562 set fnord
${copy_dirs}
9564 while test $# != 0 ; do
9565 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9568 echo Copying
$1 to
$2
9570 # Use the install script to create the directory and all required
9571 # parent directories.
9572 if test -d $2 ; then
9576 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9579 # Copy the directory, assuming we have tar.
9580 # FIXME: Should we use B in the second tar? Not all systems support it.
9581 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9583 # It is the responsibility of the user to correctly adjust all
9584 # symlinks. If somebody can figure out how to handle them correctly
9585 # here, feel free to add the code.
9592 # Determine a target-dependent exec_prefix that the installed
9593 # gcc will search in. Keep this list sorted by triplet, with
9594 # the *-*-osname triplets last.
9597 i
[34567]86-pc-msdosdjgpp*)
9598 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9603 md_exec_prefix
=/usr
/ccs
/bin
9607 extra_arflags_for_target
=
9608 extra_nmflags_for_target
=
9609 extra_ranlibflags_for_target
=
9610 target_makefile_frag
=/dev
/null
9613 target_makefile_frag
="config/mt-spu"
9615 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9616 target_makefile_frag
="config/mt-sde"
9618 mipsisa
*-*-elfoabi*)
9619 target_makefile_frag
="config/mt-mips-elfoabi"
9621 mips
*-*-*linux
* | mips
*-*-gnu*)
9622 target_makefile_frag
="config/mt-mips-gnu"
9625 target_makefile_frag
="config/mt-nios2-elf"
9628 target_makefile_frag
="config/mt-android"
9630 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9631 target_makefile_frag
="config/mt-gnu"
9633 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9634 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9635 # commands to handle both 32-bit and 64-bit objects. These flags are
9636 # harmless if we're using GNU nm or ar.
9637 extra_arflags_for_target
=" -X32_64"
9638 extra_nmflags_for_target
=" -B -X32_64"
9642 alphaieee_frag
=/dev
/null
9645 # This just makes sure to use the -mieee option to build target libs.
9646 # This should probably be set individually by each library.
9647 alphaieee_frag
="config/mt-alphaieee"
9651 # If --enable-target-optspace always use -Os instead of -O2 to build
9652 # the target libraries, similarly if it is not specified, use -Os
9653 # on selected platforms.
9654 ospace_frag
=/dev
/null
9655 case "${enable_target_optspace}:${target}" in
9657 ospace_frag
="config/mt-ospace"
9660 ospace_frag
="config/mt-d30v"
9662 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9663 ospace_frag
="config/mt-ospace"
9668 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9672 # Some systems (e.g., one of the i386-aix systems the gas testers are
9673 # using) don't handle "\$" correctly, so don't use it here.
9674 tooldir
='${exec_prefix}'/${target_noncanonical}
9675 build_tooldir
=${tooldir}
9677 # Create a .gdbinit file which runs the one in srcdir
9678 # and tells GDB to look there for source files.
9680 if test -r ${srcdir}/.gdbinit
; then
9683 *) cat > .
/.gdbinit
<<EOF
9687 source ${srcdir}/.gdbinit
9693 # Make sure that the compiler is able to generate an executable. If it
9694 # can't, we are probably in trouble. We don't care whether we can run the
9695 # executable--we might be using a cross compiler--we only care whether it
9696 # can be created. At this point the main configure script has set CC.
9698 echo "int main () { return 0; }" > conftest.c
9699 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9700 if test $?
= 0 ; then
9701 if test -s conftest ||
test -s conftest.exe
; then
9707 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9708 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9715 # Decide which environment variable is used to find dynamic libraries.
9717 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9718 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9719 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9720 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9723 # On systems where the dynamic library environment variable is PATH,
9724 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9725 # built executables to PATH.
9726 if test "$RPATH_ENVVAR" = PATH
; then
9727 GCC_SHLIB_SUBDIR
=/shlib
9732 # Adjust the toplevel makefile according to whether bootstrap was selected.
9733 case $enable_bootstrap in
9735 bootstrap_suffix
=bootstrap
9736 BUILD_CONFIG
=bootstrap-debug
9739 bootstrap_suffix
=no-bootstrap
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9745 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9748 # Check whether --with-build-config was given.
9749 if test "${with_build_config+set}" = set; then :
9750 withval
=$with_build_config; case $with_build_config in
9751 yes) with_build_config
= ;;
9752 no
) with_build_config
= BUILD_CONFIG
= ;;
9757 if test "x${with_build_config}" != x
; then
9758 BUILD_CONFIG
=$with_build_config
9760 case $BUILD_CONFIG in
9762 if echo "int f (void) { return 0; }" > conftest.c
&&
9763 ${CC} -c conftest.c
&&
9764 mv conftest.o conftest.o.g0
&&
9765 ${CC} -c -g conftest.c
&&
9766 mv conftest.o conftest.o.g
&&
9767 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9772 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9777 $as_echo "$BUILD_CONFIG" >&6; }
9780 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9782 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9783 # Check whether --enable-vtable-verify was given.
9784 if test "${enable_vtable_verify+set}" = set; then :
9785 enableval
=$enable_vtable_verify; case "$enableval" in
9786 yes) enable_vtable_verify
=yes ;;
9787 no
) enable_vtable_verify
=no
;;
9788 *) enable_vtable_verify
=no
;;
9791 enable_vtable_verify
=no
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9795 $as_echo "$enable_vtable_verify" >&6; }
9797 # Record target_configdirs and the configure arguments for target and
9798 # build configuration in Makefile.
9799 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9800 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9801 bootstrap_fixincludes
=no
9803 # If we are building libgomp, bootstrap it.
9804 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9805 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9808 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9809 # or bootstrap-ubsan, bootstrap it.
9810 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9811 case "$BUILD_CONFIG" in
9812 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9813 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9814 bootstrap_fixincludes
=yes
9819 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9820 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9821 test "$enable_vtable_verify" != no
; then
9822 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9825 # If we are building libatomic and the list of enabled languages includes the
9826 # D frontend, bootstrap it.
9827 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9828 case ,${enable_languages}, in
9830 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
9835 # Determine whether gdb needs tk/tcl or not.
9836 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9837 # and in that case we want gdb to be built without tk. Ugh!
9838 # In fact I believe gdb is the *only* package directly dependent on tk,
9839 # so we should be able to put the 'maybe's in unconditionally and
9840 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9841 # 100% sure that that's safe though.
9843 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9844 case "$enable_gdbtk" in
9848 GDB_TK
="${gdb_tk}" ;;
9850 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9851 # distro. Eventually someone will fix this and move Insight, nee
9852 # gdbtk to a separate directory.
9853 if test -d ${srcdir}/gdb
/gdbtk
; then
9860 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9861 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9863 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9864 # else does, only include them if one of these is built. The Makefile
9865 # provides the ordering, so it's enough here to add to the list.
9866 case " ${configdirs} " in
9868 configdirs
="${configdirs} gnulib gdbsupport"
9871 configdirs
="${configdirs} gnulib gdbsupport"
9874 configdirs
="${configdirs} gnulib"
9878 # Strip out unwanted targets.
9880 # While at that, we remove Makefiles if we were started for recursive
9881 # configuration, so that the top-level Makefile reconfigures them,
9882 # like we used to do when configure itself was recursive.
9884 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9885 # but now we're fixing up the Makefile ourselves with the additional
9886 # commands passed to AC_CONFIG_FILES. Use separate variables
9887 # extrasub-{build,host,target} not because there is any reason to split
9888 # the substitutions up that way, but only to remain below the limit of
9889 # 99 commands in a script, for HP-UX sed.
9891 # Do not nest @if/@endif or @unless/@endunless pairs, because
9892 # configure will not warn you at all.
9894 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9895 yes:yes:*\ gold\
*:*,c
++,*) ;;
9896 yes:yes:*\ gold\
*:*)
9897 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9902 for module
in ${build_configdirs} ; do
9903 if test -z "${no_recursion}" \
9904 && test -f ${build_subdir}/${module}/Makefile
; then
9905 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9906 rm -f ${build_subdir}/${module}/Makefile
9908 extrasub_build
="$extrasub_build
9909 /^@if build-$module\$/d
9910 /^@endif build-$module\$/d
9911 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9912 /^@if build-$module-$bootstrap_suffix\$/d
9913 /^@endif build-$module-$bootstrap_suffix\$/d
9914 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9917 for module
in ${configdirs} ; do
9918 if test -z "${no_recursion}"; then
9919 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9920 if test -f ${file}; then
9921 echo 1>&2 "*** removing ${file} to force reconfigure"
9926 case ${module},${bootstrap_fixincludes} in
9927 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9928 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9930 extrasub_host
="$extrasub_host
9932 /^@endif $module\$/d
9933 /^@unless $module\$/,/^@endunless $module\$/d
9934 /^@if $module-$host_bootstrap_suffix\$/d
9935 /^@endif $module-$host_bootstrap_suffix\$/d
9936 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9939 for module
in ${target_configdirs} ; do
9940 if test -z "${no_recursion}" \
9941 && test -f ${target_subdir}/${module}/Makefile
; then
9942 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9943 rm -f ${target_subdir}/${module}/Makefile
9946 # We only bootstrap target libraries listed in bootstrap_target_libs.
9947 case $bootstrap_target_libs in
9948 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9949 *) target_bootstrap_suffix
=no-bootstrap
;;
9952 extrasub_target
="$extrasub_target
9953 /^@if target-$module\$/d
9954 /^@endif target-$module\$/d
9955 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9956 /^@if target-$module-$target_bootstrap_suffix\$/d
9957 /^@endif target-$module-$target_bootstrap_suffix\$/d
9958 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9961 # Do the final fixup along with target modules.
9962 extrasub_target
="$extrasub_target
9967 if test "$enable_pgo_build" != "no"; then
9968 extrasub_build
="$extrasub_build
9970 /^@endif pgo-build\$/d"
9973 # Create the serialization dependencies. This uses a temporary file.
9975 # Check whether --enable-serial-configure was given.
9976 if test "${enable_serial_configure+set}" = set; then :
9977 enableval
=$enable_serial_configure;
9981 case ${enable_serial_configure} in
9983 enable_serial_build_configure
=yes
9984 enable_serial_host_configure
=yes
9985 enable_serial_target_configure
=yes
9989 # These force 'configure's to be done one at a time, to avoid problems
9990 # with contention over a shared config.cache.
9992 if test "x${enable_serial_build_configure}" = xyes || test "x${enable_serial_host_configure}" = xyes || test "x${enable_serial_target_configure}" = xyes
; then
9993 echo '# serdep.tmp' > serdep.tmp
9996 test "x${enable_serial_build_configure}" = xyes
&&
9997 for item
in ${build_configdirs} ; do
10000 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
10005 test "x${enable_serial_host_configure}" = xyes
&&
10006 for item
in ${configdirs} ; do
10009 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
10014 test "x${enable_serial_target_configure}" = xyes
&&
10015 for item
in ${target_configdirs} ; do
10018 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
10022 serialization_dependencies
=serdep.tmp
10025 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10026 # target, nonopt, and variable assignments. These are the ones we
10027 # might not want to pass down to subconfigures. The exception being
10028 # --cache-file=/dev/null, which is used to turn off the use of cache
10029 # files altogether, and which should be passed on to subconfigures.
10030 # Also strip program-prefix, program-suffix, and program-transform-name,
10031 # so that we can pass down a consistent program-transform-name.
10036 eval "set -- $ac_configure_args"
10039 if test X
"$skip_next" = X
"yes"; then
10043 if test X
"$keep_next" = X
"yes"; then
10046 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10048 baseargs
="$baseargs '$ac_arg'"
10049 tbaseargs
="$tbaseargs '$ac_arg'"
10054 # Handle separated arguments. Based on the logic generated by
10057 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
10058 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
10059 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
10060 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
10074 --with-* |
--without-*)
10075 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10079 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
10082 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
10091 mpc | mpfr | gmp | isl
)
10092 # If we're processing --with-$lib, --with-$lib-include or
10093 # --with-$lib-lib, for one of the libs above, and target is
10094 # different from host, don't pass the current argument to any
10095 # target library's configure.
10096 if test x
$is_cross_compiler = xyes
; then
10105 --cache-file=/dev
/null | \
10106 -cache-file=/dev
/null
)
10107 # Handled here to avoid the test to skip args below.
10108 baseargs
="$baseargs '$ac_arg'"
10109 tbaseargs
="$tbaseargs '$ac_arg'"
10110 # Assert: $separate_arg should always be no.
10111 keep_next
=$separate_arg
10127 -program-prefix* | \
10128 -program-suffix* | \
10129 -program-transform-name* )
10130 skip_next
=$separate_arg
10134 # An option. Add it.
10137 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10139 baseargs
="$baseargs '$ac_arg'"
10140 if test X
"$skip_targ" = Xno
; then
10141 tbaseargs
="$tbaseargs '$ac_arg'"
10143 keep_next
=$separate_arg
10146 # Either a variable assignment, or a nonopt (triplet). Don't
10147 # pass it down; let the Makefile handle this.
10152 # Remove the initial space we just introduced and, as these will be
10153 # expanded by make, quote '$'.
10154 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10156 # Add in --program-transform-name, after --program-prefix and
10157 # --program-suffix have been applied to it. Autoconf has already
10158 # doubled dollar signs and backslashes in program_transform_name; we want
10159 # the backslashes un-doubled, and then the entire thing wrapped in single
10160 # quotes, because this will be expanded first by make and then by the shell.
10161 # Also, because we want to override the logic in subdir configure scripts to
10162 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10163 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10164 ${program_transform_name}
10166 gcc_transform_name
=`cat conftestsed.out`
10167 rm -f conftestsed.out
10168 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
10169 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10170 if test "$silent" = yes; then
10171 baseargs
="$baseargs --silent"
10172 tbaseargs
="$tbaseargs --silent"
10174 baseargs
="$baseargs --disable-option-checking"
10175 tbaseargs
="$tbaseargs --disable-option-checking"
10177 # Record and document user additions to sub configure arguments.
10182 # For the build-side libraries, we just need to pretend we're native,
10183 # and not use the same cache file. Multilibs are neither needed nor
10184 # desired. We can't even use the same cache file for all build-side
10185 # libraries, as they're compiled differently; some with C, some with
10186 # C++ or with different feature-enabling options.
10187 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
10189 # For host modules, accept cache file option, or specification as blank.
10190 case "${cache_file}" in
10192 cache_file_option
="" ;;
10193 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10194 cache_file_option
="--cache-file=${cache_file}" ;;
10196 cache_file_option
="--cache-file=../${cache_file}" ;;
10199 # Host dirs don't like to share a cache file either, horribly enough.
10200 # This seems to be due to autoconf 2.5x stupidity.
10201 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10203 target_configargs
="$target_configargs ${tbaseargs}"
10205 # Passing a --with-cross-host argument lets the target libraries know
10206 # whether they are being built with a cross-compiler or being built
10207 # native. However, it would be better to use other mechanisms to make the
10208 # sorts of decisions they want to make on this basis. Please consider
10209 # this option to be deprecated. FIXME.
10210 if test x
${is_cross_compiler} = xyes
; then
10211 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10214 # Special user-friendly check for native x86_64-linux build, if
10215 # multilib is not explicitly enabled.
10216 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10217 x86_64-
*linux
*:yes:$build:$build:)
10218 # Make sure we have a development environment that handles 32-bit
10220 echo "int main () { return 0; }" > conftest.c
10221 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10222 if test $?
= 0 ; then
10223 if test -s conftest ||
test -s conftest.exe
; then
10228 if test x
${dev64} != xyes
; then
10229 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
10234 # Default to --enable-multilib.
10235 if test x
${enable_multilib} = x
; then
10236 target_configargs
="--enable-multilib ${target_configargs}"
10239 # Pass --with-newlib if appropriate. Note that target_configdirs has
10240 # changed from the earlier setting of with_newlib.
10241 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10242 target_configargs
="--with-newlib ${target_configargs}"
10245 # Different target subdirs use different values of certain variables
10246 # (notably CXX). Worse, multilibs use *lots* of different values.
10247 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10248 # it doesn't automatically accept command-line overrides of them.
10249 # This means it's not safe for target subdirs to share a cache file,
10250 # which is disgusting, but there you have it. Hopefully this can be
10251 # fixed in future. It's still worthwhile to use a cache file for each
10252 # directory. I think.
10254 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10255 # We need to pass --target, as newer autoconf's requires consistency
10256 # for target_alias and gcc doesn't manage it consistently.
10257 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10260 case " $target_configdirs " in
10262 case " $target_configargs " in
10263 *" --with-newlib "*)
10266 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10270 # If we're not building GCC, don't discard standard headers.
10271 if test -d ${srcdir}/gcc
; then
10272 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10274 if test "${build}" != "${host}"; then
10275 # On Canadian crosses, CC_FOR_TARGET will have already been set
10276 # by `configure', so we won't have an opportunity to add -Bgcc/
10277 # to it. This is right: we don't want to search that directory
10278 # for binaries, but we want the header files in there, so add
10280 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10282 # Someone might think of using the pre-installed headers on
10283 # Canadian crosses, in case the installed compiler is not fully
10284 # compatible with the compiler being built. In this case, it
10285 # would be better to flag an error than risking having
10286 # incompatible object files being constructed. We can't
10287 # guarantee that an error will be flagged, but let's hope the
10288 # compiler will do it, when presented with incompatible header
10293 case "${target}-${is_cross_compiler}" in
10294 i
[3456789]86-*-linux*-no)
10295 # Here host == target, so we don't need to build gcc,
10296 # so we don't want to discard standard headers.
10297 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10300 # If we're building newlib, use its generic headers last, but search
10301 # for any libc-related directories first (so make it the last -B
10303 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10305 # If we're building libgloss, find the startup file, simulator library
10306 # and linker script.
10307 case " $target_configdirs " in
10309 # Look for startup file, simulator library and maybe linker script.
10310 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10311 # Look for libnosys.a in case the target needs it.
10312 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10313 # Most targets have the linker script in the source directory.
10314 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10325 x86_64-
*mingw
* |
*-w64-mingw*)
10326 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10327 # however, use a symlink named 'mingw' in ${prefix} .
10328 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10331 # MinGW can't be handled as Cygwin above since it does not use newlib.
10332 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'
10336 # Allow the user to override the flags for
10337 # our build compiler if desired.
10338 if test x
"${build}" = x
"${host}" ; then
10339 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10340 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10341 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10342 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10345 # On Canadian crosses, we'll be searching the right directories for
10346 # the previously-installed cross compiler, so don't bother to add
10347 # flags for directories within the install tree of the compiler
10348 # being built; programs in there won't even run.
10349 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10350 # Search for pre-installed headers if nothing else fits.
10351 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10354 if test "x
${use_gnu_ld}" = x &&
10355 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10356 # Arrange for us to find uninstalled linker scripts.
10357 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10360 # Search for other target-specific linker scripts and such.
10361 case "${target}" in
10363 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10365 # The VxWorks support for shared libraries is getting in
10366 # incrementally. Make sure it doesn't get activated implicitly:
10368 if test "${enable_shared-unset}" = unset ; then
10370 # So the build of libraries knows ...
10371 target_configargs="${target_configargs} --disable-shared"
10373 host_configargs="${host_configargs} --disable-shared"
10378 # Makefile fragments.
10379 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10381 eval fragval=\$$frag
10382 if test $fragval != /dev/null; then
10383 eval $frag=${srcdir}/$fragval
10391 # Miscellanea: directories, flags, etc.
10400 # Build module lists & subconfigure args.
10404 # Host module lists & subconfigure args.
10409 # Target module lists & subconfigure args.
10434 # Generate default definitions for YACC, M4, LEX and other programs that run
10435 # on the build machine. These are used if the Makefile can't locate these
10436 # programs in objdir.
10437 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10439 for ac_prog in 'bison -y' byacc yacc
10441 # Extract the first word of "$ac_prog", so it can be a program name with args.
10442 set dummy $ac_prog; ac_word=$2
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10444 $as_echo_n "checking
for $ac_word...
" >&6; }
10445 if ${ac_cv_prog_YACC+:} false; then :
10446 $as_echo_n "(cached
) " >&6
10448 if test -n "$YACC"; then
10449 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10452 for as_dir in $PATH
10455 test -z "$as_dir" && as_dir=.
10456 for ac_exec_ext in '' $ac_executable_extensions; do
10457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10458 ac_cv_prog_YACC="$ac_prog"
10459 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10468 YACC=$ac_cv_prog_YACC
10469 if test -n "$YACC"; then
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10471 $as_echo "$YACC" >&6; }
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10474 $as_echo "no
" >&6; }
10478 test -n "$YACC" && break
10480 test -n "$YACC" || YACC="$MISSING bison
-y"
10482 case " $build_configdirs " in
10483 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10486 for ac_prog in bison
10488 # Extract the first word of "$ac_prog", so it can be a program name with args.
10489 set dummy $ac_prog; ac_word=$2
10490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10491 $as_echo_n "checking
for $ac_word...
" >&6; }
10492 if ${ac_cv_prog_BISON+:} false; then :
10493 $as_echo_n "(cached
) " >&6
10495 if test -n "$BISON"; then
10496 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10499 for as_dir in $PATH
10502 test -z "$as_dir" && as_dir=.
10503 for ac_exec_ext in '' $ac_executable_extensions; do
10504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10505 ac_cv_prog_BISON="$ac_prog"
10506 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10515 BISON=$ac_cv_prog_BISON
10516 if test -n "$BISON"; then
10517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10518 $as_echo "$BISON" >&6; }
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10521 $as_echo "no
" >&6; }
10525 test -n "$BISON" && break
10527 test -n "$BISON" || BISON="$MISSING bison
"
10529 case " $build_configdirs " in
10530 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10533 for ac_prog in gm4 gnum4 m4
10535 # Extract the first word of "$ac_prog", so it can be a program name with args.
10536 set dummy $ac_prog; ac_word=$2
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10538 $as_echo_n "checking
for $ac_word...
" >&6; }
10539 if ${ac_cv_prog_M4+:} false; then :
10540 $as_echo_n "(cached
) " >&6
10542 if test -n "$M4"; then
10543 ac_cv_prog_M4="$M4" # Let the user override the test.
10545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10546 for as_dir in $PATH
10549 test -z "$as_dir" && as_dir=.
10550 for ac_exec_ext in '' $ac_executable_extensions; do
10551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10552 ac_cv_prog_M4="$ac_prog"
10553 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10563 if test -n "$M4"; then
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10565 $as_echo "$M4" >&6; }
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10568 $as_echo "no
" >&6; }
10572 test -n "$M4" && break
10574 test -n "$M4" || M4="$MISSING m4"
10576 case " $build_configdirs " in
10577 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10580 for ac_prog in flex lex
10582 # Extract the first word of "$ac_prog", so it can be a program name with args.
10583 set dummy $ac_prog; ac_word=$2
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10585 $as_echo_n "checking
for $ac_word...
" >&6; }
10586 if ${ac_cv_prog_LEX+:} false; then :
10587 $as_echo_n "(cached
) " >&6
10589 if test -n "$LEX"; then
10590 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in $PATH
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10599 ac_cv_prog_LEX="$ac_prog"
10600 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10609 LEX=$ac_cv_prog_LEX
10610 if test -n "$LEX"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10612 $as_echo "$LEX" >&6; }
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10615 $as_echo "no
" >&6; }
10619 test -n "$LEX" && break
10621 test -n "$LEX" || LEX="$MISSING flex
"
10623 case " $build_configdirs " in
10624 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10625 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10628 for ac_prog in flex
10630 # Extract the first word of "$ac_prog", so it can be a program name with args.
10631 set dummy $ac_prog; ac_word=$2
10632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10633 $as_echo_n "checking
for $ac_word...
" >&6; }
10634 if ${ac_cv_prog_FLEX+:} false; then :
10635 $as_echo_n "(cached
) " >&6
10637 if test -n "$FLEX"; then
10638 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10641 for as_dir in $PATH
10644 test -z "$as_dir" && as_dir=.
10645 for ac_exec_ext in '' $ac_executable_extensions; do
10646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10647 ac_cv_prog_FLEX="$ac_prog"
10648 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10657 FLEX=$ac_cv_prog_FLEX
10658 if test -n "$FLEX"; then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10660 $as_echo "$FLEX" >&6; }
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10663 $as_echo "no
" >&6; }
10667 test -n "$FLEX" && break
10669 test -n "$FLEX" || FLEX="$MISSING flex
"
10671 case " $build_configdirs " in
10672 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10675 for ac_prog in makeinfo
10677 # Extract the first word of "$ac_prog", so it can be a program name with args.
10678 set dummy $ac_prog; ac_word=$2
10679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10680 $as_echo_n "checking
for $ac_word...
" >&6; }
10681 if ${ac_cv_prog_MAKEINFO+:} false; then :
10682 $as_echo_n "(cached
) " >&6
10684 if test -n "$MAKEINFO"; then
10685 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10688 for as_dir in $PATH
10691 test -z "$as_dir" && as_dir=.
10692 for ac_exec_ext in '' $ac_executable_extensions; do
10693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10694 ac_cv_prog_MAKEINFO="$ac_prog"
10695 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10704 MAKEINFO=$ac_cv_prog_MAKEINFO
10705 if test -n "$MAKEINFO"; then
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10707 $as_echo "$MAKEINFO" >&6; }
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10710 $as_echo "no
" >&6; }
10714 test -n "$MAKEINFO" && break
10716 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10718 case " $build_configdirs " in
10719 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10722 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10723 # higher, else we use the "missing
" dummy.
10724 if ${MAKEINFO} --version \
10725 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10728 MAKEINFO="$MISSING makeinfo
"
10734 # FIXME: expect and dejagnu may become build tools?
10736 for ac_prog in expect
10738 # Extract the first word of "$ac_prog", so it can be a program name with args.
10739 set dummy $ac_prog; ac_word=$2
10740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10741 $as_echo_n "checking
for $ac_word...
" >&6; }
10742 if ${ac_cv_prog_EXPECT+:} false; then :
10743 $as_echo_n "(cached
) " >&6
10745 if test -n "$EXPECT"; then
10746 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10749 for as_dir in $PATH
10752 test -z "$as_dir" && as_dir=.
10753 for ac_exec_ext in '' $ac_executable_extensions; do
10754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10755 ac_cv_prog_EXPECT="$ac_prog"
10756 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10765 EXPECT=$ac_cv_prog_EXPECT
10766 if test -n "$EXPECT"; then
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10768 $as_echo "$EXPECT" >&6; }
10770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10771 $as_echo "no
" >&6; }
10775 test -n "$EXPECT" && break
10777 test -n "$EXPECT" || EXPECT="expect
"
10779 case " $configdirs " in
10781 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10785 for ac_prog in runtest
10787 # Extract the first word of "$ac_prog", so it can be a program name with args.
10788 set dummy $ac_prog; ac_word=$2
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10790 $as_echo_n "checking
for $ac_word...
" >&6; }
10791 if ${ac_cv_prog_RUNTEST+:} false; then :
10792 $as_echo_n "(cached
) " >&6
10794 if test -n "$RUNTEST"; then
10795 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10798 for as_dir in $PATH
10801 test -z "$as_dir" && as_dir=.
10802 for ac_exec_ext in '' $ac_executable_extensions; do
10803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10804 ac_cv_prog_RUNTEST="$ac_prog"
10805 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10814 RUNTEST=$ac_cv_prog_RUNTEST
10815 if test -n "$RUNTEST"; then
10816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10817 $as_echo "$RUNTEST" >&6; }
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10820 $as_echo "no
" >&6; }
10824 test -n "$RUNTEST" && break
10826 test -n "$RUNTEST" || RUNTEST="runtest
"
10828 case " $configdirs " in
10830 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10837 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10838 ncn_target_tool_prefix=
10839 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10843 if test -n "$AR"; then
10845 elif test -n "$ac_cv_prog_AR"; then
10849 if test -n "$ac_cv_prog_AR"; then
10850 for ncn_progname in ar; do
10851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10852 set dummy ${ncn_progname}; ac_word=$2
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10854 $as_echo_n "checking
for $ac_word...
" >&6; }
10855 if ${ac_cv_prog_AR+:} false; then :
10856 $as_echo_n "(cached
) " >&6
10858 if test -n "$AR"; then
10859 ac_cv_prog_AR="$AR" # Let the user override the test.
10861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10862 for as_dir in $PATH
10865 test -z "$as_dir" && as_dir=.
10866 for ac_exec_ext in '' $ac_executable_extensions; do
10867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10868 ac_cv_prog_AR="${ncn_progname}"
10869 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10879 if test -n "$AR"; then
10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10881 $as_echo "$AR" >&6; }
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10884 $as_echo "no
" >&6; }
10891 for ncn_progname in ar; do
10892 if test -n "$ncn_tool_prefix"; then
10893 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10894 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10896 $as_echo_n "checking
for $ac_word...
" >&6; }
10897 if ${ac_cv_prog_AR+:} false; then :
10898 $as_echo_n "(cached
) " >&6
10900 if test -n "$AR"; then
10901 ac_cv_prog_AR="$AR" # Let the user override the test.
10903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10904 for as_dir in $PATH
10907 test -z "$as_dir" && as_dir=.
10908 for ac_exec_ext in '' $ac_executable_extensions; do
10909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10910 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10911 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10921 if test -n "$AR"; then
10922 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10923 $as_echo "$AR" >&6; }
10925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10926 $as_echo "no
" >&6; }
10931 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10932 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10933 set dummy ${ncn_progname}; ac_word=$2
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10935 $as_echo_n "checking
for $ac_word...
" >&6; }
10936 if ${ac_cv_prog_AR+:} false; then :
10937 $as_echo_n "(cached
) " >&6
10939 if test -n "$AR"; then
10940 ac_cv_prog_AR="$AR" # Let the user override the test.
10942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10943 for as_dir in $PATH
10946 test -z "$as_dir" && as_dir=.
10947 for ac_exec_ext in '' $ac_executable_extensions; do
10948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10949 ac_cv_prog_AR="${ncn_progname}"
10950 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10960 if test -n "$AR"; then
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10962 $as_echo "$AR" >&6; }
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10965 $as_echo "no
" >&6; }
10970 test -n "$ac_cv_prog_AR" && break
10973 if test -z "$ac_cv_prog_AR" ; then
10975 if test $build = $host ; then
10978 AR="${ncn_tool_prefix}$2"
10984 if test -n "$AS"; then
10986 elif test -n "$ac_cv_prog_AS"; then
10990 if test -n "$ac_cv_prog_AS"; then
10991 for ncn_progname in as; do
10992 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10993 set dummy ${ncn_progname}; ac_word=$2
10994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10995 $as_echo_n "checking
for $ac_word...
" >&6; }
10996 if ${ac_cv_prog_AS+:} false; then :
10997 $as_echo_n "(cached
) " >&6
10999 if test -n "$AS"; then
11000 ac_cv_prog_AS="$AS" # Let the user override the test.
11002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11003 for as_dir in $PATH
11006 test -z "$as_dir" && as_dir=.
11007 for ac_exec_ext in '' $ac_executable_extensions; do
11008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11009 ac_cv_prog_AS="${ncn_progname}"
11010 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11020 if test -n "$AS"; then
11021 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11022 $as_echo "$AS" >&6; }
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11025 $as_echo "no
" >&6; }
11032 for ncn_progname in as; do
11033 if test -n "$ncn_tool_prefix"; then
11034 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11035 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11037 $as_echo_n "checking
for $ac_word...
" >&6; }
11038 if ${ac_cv_prog_AS+:} false; then :
11039 $as_echo_n "(cached
) " >&6
11041 if test -n "$AS"; then
11042 ac_cv_prog_AS="$AS" # Let the user override the test.
11044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11045 for as_dir in $PATH
11048 test -z "$as_dir" && as_dir=.
11049 for ac_exec_ext in '' $ac_executable_extensions; do
11050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11051 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11052 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11062 if test -n "$AS"; then
11063 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11064 $as_echo "$AS" >&6; }
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11067 $as_echo "no
" >&6; }
11072 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11074 set dummy ${ncn_progname}; ac_word=$2
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11076 $as_echo_n "checking
for $ac_word...
" >&6; }
11077 if ${ac_cv_prog_AS+:} false; then :
11078 $as_echo_n "(cached
) " >&6
11080 if test -n "$AS"; then
11081 ac_cv_prog_AS="$AS" # Let the user override the test.
11083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11084 for as_dir in $PATH
11087 test -z "$as_dir" && as_dir=.
11088 for ac_exec_ext in '' $ac_executable_extensions; do
11089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11090 ac_cv_prog_AS="${ncn_progname}"
11091 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11101 if test -n "$AS"; then
11102 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11103 $as_echo "$AS" >&6; }
11105 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11106 $as_echo "no
" >&6; }
11111 test -n "$ac_cv_prog_AS" && break
11114 if test -z "$ac_cv_prog_AS" ; then
11116 if test $build = $host ; then
11119 AS="${ncn_tool_prefix}$2"
11125 if test -n "$DLLTOOL"; then
11126 ac_cv_prog_DLLTOOL=$DLLTOOL
11127 elif test -n "$ac_cv_prog_DLLTOOL"; then
11128 DLLTOOL=$ac_cv_prog_DLLTOOL
11131 if test -n "$ac_cv_prog_DLLTOOL"; then
11132 for ncn_progname in dlltool; do
11133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11134 set dummy ${ncn_progname}; ac_word=$2
11135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11136 $as_echo_n "checking
for $ac_word...
" >&6; }
11137 if ${ac_cv_prog_DLLTOOL+:} false; then :
11138 $as_echo_n "(cached
) " >&6
11140 if test -n "$DLLTOOL"; then
11141 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11144 for as_dir in $PATH
11147 test -z "$as_dir" && as_dir=.
11148 for ac_exec_ext in '' $ac_executable_extensions; do
11149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11150 ac_cv_prog_DLLTOOL="${ncn_progname}"
11151 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11160 DLLTOOL=$ac_cv_prog_DLLTOOL
11161 if test -n "$DLLTOOL"; then
11162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11163 $as_echo "$DLLTOOL" >&6; }
11165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11166 $as_echo "no
" >&6; }
11173 for ncn_progname in dlltool; do
11174 if test -n "$ncn_tool_prefix"; then
11175 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11176 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11178 $as_echo_n "checking
for $ac_word...
" >&6; }
11179 if ${ac_cv_prog_DLLTOOL+:} false; then :
11180 $as_echo_n "(cached
) " >&6
11182 if test -n "$DLLTOOL"; then
11183 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11186 for as_dir in $PATH
11189 test -z "$as_dir" && as_dir=.
11190 for ac_exec_ext in '' $ac_executable_extensions; do
11191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11192 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11193 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11202 DLLTOOL=$ac_cv_prog_DLLTOOL
11203 if test -n "$DLLTOOL"; then
11204 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11205 $as_echo "$DLLTOOL" >&6; }
11207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11208 $as_echo "no
" >&6; }
11213 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11214 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11215 set dummy ${ncn_progname}; ac_word=$2
11216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11217 $as_echo_n "checking
for $ac_word...
" >&6; }
11218 if ${ac_cv_prog_DLLTOOL+:} false; then :
11219 $as_echo_n "(cached
) " >&6
11221 if test -n "$DLLTOOL"; then
11222 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11225 for as_dir in $PATH
11228 test -z "$as_dir" && as_dir=.
11229 for ac_exec_ext in '' $ac_executable_extensions; do
11230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11231 ac_cv_prog_DLLTOOL="${ncn_progname}"
11232 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11241 DLLTOOL=$ac_cv_prog_DLLTOOL
11242 if test -n "$DLLTOOL"; then
11243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11244 $as_echo "$DLLTOOL" >&6; }
11246 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11247 $as_echo "no
" >&6; }
11252 test -n "$ac_cv_prog_DLLTOOL" && break
11255 if test -z "$ac_cv_prog_DLLTOOL" ; then
11257 if test $build = $host ; then
11260 DLLTOOL="${ncn_tool_prefix}$2"
11266 if test -n "$DSYMUTIL"; then
11267 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11268 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11269 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11272 if test -n "$ac_cv_prog_DSYMUTIL"; then
11273 for ncn_progname in dsymutil; do
11274 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11275 set dummy ${ncn_progname}; ac_word=$2
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11277 $as_echo_n "checking
for $ac_word...
" >&6; }
11278 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11279 $as_echo_n "(cached
) " >&6
11281 if test -n "$DSYMUTIL"; then
11282 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11285 for as_dir in $PATH
11288 test -z "$as_dir" && as_dir=.
11289 for ac_exec_ext in '' $ac_executable_extensions; do
11290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11291 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11292 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11301 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11302 if test -n "$DSYMUTIL"; then
11303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11304 $as_echo "$DSYMUTIL" >&6; }
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11307 $as_echo "no
" >&6; }
11314 for ncn_progname in dsymutil; do
11315 if test -n "$ncn_tool_prefix"; then
11316 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11317 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11319 $as_echo_n "checking
for $ac_word...
" >&6; }
11320 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11321 $as_echo_n "(cached
) " >&6
11323 if test -n "$DSYMUTIL"; then
11324 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11327 for as_dir in $PATH
11330 test -z "$as_dir" && as_dir=.
11331 for ac_exec_ext in '' $ac_executable_extensions; do
11332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11333 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11334 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11343 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11344 if test -n "$DSYMUTIL"; then
11345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11346 $as_echo "$DSYMUTIL" >&6; }
11348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11349 $as_echo "no
" >&6; }
11354 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11355 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11356 set dummy ${ncn_progname}; ac_word=$2
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11358 $as_echo_n "checking
for $ac_word...
" >&6; }
11359 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11360 $as_echo_n "(cached
) " >&6
11362 if test -n "$DSYMUTIL"; then
11363 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11366 for as_dir in $PATH
11369 test -z "$as_dir" && as_dir=.
11370 for ac_exec_ext in '' $ac_executable_extensions; do
11371 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11372 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11373 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11382 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11383 if test -n "$DSYMUTIL"; then
11384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11385 $as_echo "$DSYMUTIL" >&6; }
11387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11388 $as_echo "no
" >&6; }
11393 test -n "$ac_cv_prog_DSYMUTIL" && break
11396 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11398 if test $build = $host ; then
11401 DSYMUTIL="${ncn_tool_prefix}$2"
11407 if test -n "$LD"; then
11409 elif test -n "$ac_cv_prog_LD"; then
11413 if test -n "$ac_cv_prog_LD"; then
11414 for ncn_progname in ld; do
11415 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11416 set dummy ${ncn_progname}; ac_word=$2
11417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11418 $as_echo_n "checking
for $ac_word...
" >&6; }
11419 if ${ac_cv_prog_LD+:} false; then :
11420 $as_echo_n "(cached
) " >&6
11422 if test -n "$LD"; then
11423 ac_cv_prog_LD="$LD" # Let the user override the test.
11425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11426 for as_dir in $PATH
11429 test -z "$as_dir" && as_dir=.
11430 for ac_exec_ext in '' $ac_executable_extensions; do
11431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11432 ac_cv_prog_LD="${ncn_progname}"
11433 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11443 if test -n "$LD"; then
11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11445 $as_echo "$LD" >&6; }
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11448 $as_echo "no
" >&6; }
11455 for ncn_progname in ld; do
11456 if test -n "$ncn_tool_prefix"; then
11457 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11458 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11460 $as_echo_n "checking
for $ac_word...
" >&6; }
11461 if ${ac_cv_prog_LD+:} false; then :
11462 $as_echo_n "(cached
) " >&6
11464 if test -n "$LD"; then
11465 ac_cv_prog_LD="$LD" # Let the user override the test.
11467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11468 for as_dir in $PATH
11471 test -z "$as_dir" && as_dir=.
11472 for ac_exec_ext in '' $ac_executable_extensions; do
11473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11474 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11475 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11485 if test -n "$LD"; then
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11487 $as_echo "$LD" >&6; }
11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11490 $as_echo "no
" >&6; }
11495 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11497 set dummy ${ncn_progname}; ac_word=$2
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11499 $as_echo_n "checking
for $ac_word...
" >&6; }
11500 if ${ac_cv_prog_LD+:} false; then :
11501 $as_echo_n "(cached
) " >&6
11503 if test -n "$LD"; then
11504 ac_cv_prog_LD="$LD" # Let the user override the test.
11506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11507 for as_dir in $PATH
11510 test -z "$as_dir" && as_dir=.
11511 for ac_exec_ext in '' $ac_executable_extensions; do
11512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11513 ac_cv_prog_LD="${ncn_progname}"
11514 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11524 if test -n "$LD"; then
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11526 $as_echo "$LD" >&6; }
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11529 $as_echo "no
" >&6; }
11534 test -n "$ac_cv_prog_LD" && break
11537 if test -z "$ac_cv_prog_LD" ; then
11539 if test $build = $host ; then
11542 LD="${ncn_tool_prefix}$2"
11548 if test -n "$LIPO"; then
11549 ac_cv_prog_LIPO=$LIPO
11550 elif test -n "$ac_cv_prog_LIPO"; then
11551 LIPO=$ac_cv_prog_LIPO
11554 if test -n "$ac_cv_prog_LIPO"; then
11555 for ncn_progname in lipo; do
11556 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11557 set dummy ${ncn_progname}; ac_word=$2
11558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11559 $as_echo_n "checking
for $ac_word...
" >&6; }
11560 if ${ac_cv_prog_LIPO+:} false; then :
11561 $as_echo_n "(cached
) " >&6
11563 if test -n "$LIPO"; then
11564 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11566 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11567 for as_dir in $PATH
11570 test -z "$as_dir" && as_dir=.
11571 for ac_exec_ext in '' $ac_executable_extensions; do
11572 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11573 ac_cv_prog_LIPO="${ncn_progname}"
11574 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11583 LIPO=$ac_cv_prog_LIPO
11584 if test -n "$LIPO"; then
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11586 $as_echo "$LIPO" >&6; }
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11589 $as_echo "no
" >&6; }
11596 for ncn_progname in lipo; do
11597 if test -n "$ncn_tool_prefix"; then
11598 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11599 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11601 $as_echo_n "checking
for $ac_word...
" >&6; }
11602 if ${ac_cv_prog_LIPO+:} false; then :
11603 $as_echo_n "(cached
) " >&6
11605 if test -n "$LIPO"; then
11606 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11609 for as_dir in $PATH
11612 test -z "$as_dir" && as_dir=.
11613 for ac_exec_ext in '' $ac_executable_extensions; do
11614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11615 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11616 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11625 LIPO=$ac_cv_prog_LIPO
11626 if test -n "$LIPO"; then
11627 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11628 $as_echo "$LIPO" >&6; }
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11631 $as_echo "no
" >&6; }
11636 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11637 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11638 set dummy ${ncn_progname}; ac_word=$2
11639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11640 $as_echo_n "checking
for $ac_word...
" >&6; }
11641 if ${ac_cv_prog_LIPO+:} false; then :
11642 $as_echo_n "(cached
) " >&6
11644 if test -n "$LIPO"; then
11645 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11648 for as_dir in $PATH
11651 test -z "$as_dir" && as_dir=.
11652 for ac_exec_ext in '' $ac_executable_extensions; do
11653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11654 ac_cv_prog_LIPO="${ncn_progname}"
11655 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11664 LIPO=$ac_cv_prog_LIPO
11665 if test -n "$LIPO"; then
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11667 $as_echo "$LIPO" >&6; }
11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11670 $as_echo "no
" >&6; }
11675 test -n "$ac_cv_prog_LIPO" && break
11678 if test -z "$ac_cv_prog_LIPO" ; then
11680 if test $build = $host ; then
11683 LIPO="${ncn_tool_prefix}$2"
11689 if test -n "$NM"; then
11691 elif test -n "$ac_cv_prog_NM"; then
11695 if test -n "$ac_cv_prog_NM"; then
11696 for ncn_progname in nm; do
11697 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11698 set dummy ${ncn_progname}; ac_word=$2
11699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11700 $as_echo_n "checking
for $ac_word...
" >&6; }
11701 if ${ac_cv_prog_NM+:} false; then :
11702 $as_echo_n "(cached
) " >&6
11704 if test -n "$NM"; then
11705 ac_cv_prog_NM="$NM" # Let the user override the test.
11707 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11708 for as_dir in $PATH
11711 test -z "$as_dir" && as_dir=.
11712 for ac_exec_ext in '' $ac_executable_extensions; do
11713 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11714 ac_cv_prog_NM="${ncn_progname}"
11715 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11725 if test -n "$NM"; then
11726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11727 $as_echo "$NM" >&6; }
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11730 $as_echo "no
" >&6; }
11737 for ncn_progname in nm; do
11738 if test -n "$ncn_tool_prefix"; then
11739 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11740 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11742 $as_echo_n "checking
for $ac_word...
" >&6; }
11743 if ${ac_cv_prog_NM+:} false; then :
11744 $as_echo_n "(cached
) " >&6
11746 if test -n "$NM"; then
11747 ac_cv_prog_NM="$NM" # Let the user override the test.
11749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11750 for as_dir in $PATH
11753 test -z "$as_dir" && as_dir=.
11754 for ac_exec_ext in '' $ac_executable_extensions; do
11755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11756 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11757 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11767 if test -n "$NM"; then
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11769 $as_echo "$NM" >&6; }
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11772 $as_echo "no
" >&6; }
11777 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11779 set dummy ${ncn_progname}; ac_word=$2
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11781 $as_echo_n "checking
for $ac_word...
" >&6; }
11782 if ${ac_cv_prog_NM+:} false; then :
11783 $as_echo_n "(cached
) " >&6
11785 if test -n "$NM"; then
11786 ac_cv_prog_NM="$NM" # Let the user override the test.
11788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11789 for as_dir in $PATH
11792 test -z "$as_dir" && as_dir=.
11793 for ac_exec_ext in '' $ac_executable_extensions; do
11794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11795 ac_cv_prog_NM="${ncn_progname}"
11796 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11806 if test -n "$NM"; then
11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11808 $as_echo "$NM" >&6; }
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11811 $as_echo "no
" >&6; }
11816 test -n "$ac_cv_prog_NM" && break
11819 if test -z "$ac_cv_prog_NM" ; then
11821 if test $build = $host ; then
11824 NM="${ncn_tool_prefix}$2"
11830 if test -n "$RANLIB"; then
11831 ac_cv_prog_RANLIB=$RANLIB
11832 elif test -n "$ac_cv_prog_RANLIB"; then
11833 RANLIB=$ac_cv_prog_RANLIB
11836 if test -n "$ac_cv_prog_RANLIB"; then
11837 for ncn_progname in ranlib; do
11838 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11839 set dummy ${ncn_progname}; ac_word=$2
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11841 $as_echo_n "checking
for $ac_word...
" >&6; }
11842 if ${ac_cv_prog_RANLIB+:} false; then :
11843 $as_echo_n "(cached
) " >&6
11845 if test -n "$RANLIB"; then
11846 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11849 for as_dir in $PATH
11852 test -z "$as_dir" && as_dir=.
11853 for ac_exec_ext in '' $ac_executable_extensions; do
11854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11855 ac_cv_prog_RANLIB="${ncn_progname}"
11856 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11865 RANLIB=$ac_cv_prog_RANLIB
11866 if test -n "$RANLIB"; then
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11868 $as_echo "$RANLIB" >&6; }
11870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11871 $as_echo "no
" >&6; }
11878 for ncn_progname in ranlib; do
11879 if test -n "$ncn_tool_prefix"; then
11880 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11881 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11883 $as_echo_n "checking
for $ac_word...
" >&6; }
11884 if ${ac_cv_prog_RANLIB+:} false; then :
11885 $as_echo_n "(cached
) " >&6
11887 if test -n "$RANLIB"; then
11888 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891 for as_dir in $PATH
11894 test -z "$as_dir" && as_dir=.
11895 for ac_exec_ext in '' $ac_executable_extensions; do
11896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11897 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11898 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11907 RANLIB=$ac_cv_prog_RANLIB
11908 if test -n "$RANLIB"; then
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11910 $as_echo "$RANLIB" >&6; }
11912 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11913 $as_echo "no
" >&6; }
11918 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11919 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11920 set dummy ${ncn_progname}; ac_word=$2
11921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11922 $as_echo_n "checking
for $ac_word...
" >&6; }
11923 if ${ac_cv_prog_RANLIB+:} false; then :
11924 $as_echo_n "(cached
) " >&6
11926 if test -n "$RANLIB"; then
11927 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11930 for as_dir in $PATH
11933 test -z "$as_dir" && as_dir=.
11934 for ac_exec_ext in '' $ac_executable_extensions; do
11935 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11936 ac_cv_prog_RANLIB="${ncn_progname}"
11937 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11946 RANLIB=$ac_cv_prog_RANLIB
11947 if test -n "$RANLIB"; then
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11949 $as_echo "$RANLIB" >&6; }
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11952 $as_echo "no
" >&6; }
11957 test -n "$ac_cv_prog_RANLIB" && break
11960 if test -z "$ac_cv_prog_RANLIB" ; then
11966 if test -n "$STRIP"; then
11967 ac_cv_prog_STRIP=$STRIP
11968 elif test -n "$ac_cv_prog_STRIP"; then
11969 STRIP=$ac_cv_prog_STRIP
11972 if test -n "$ac_cv_prog_STRIP"; then
11973 for ncn_progname in strip; do
11974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11975 set dummy ${ncn_progname}; ac_word=$2
11976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11977 $as_echo_n "checking
for $ac_word...
" >&6; }
11978 if ${ac_cv_prog_STRIP+:} false; then :
11979 $as_echo_n "(cached
) " >&6
11981 if test -n "$STRIP"; then
11982 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11985 for as_dir in $PATH
11988 test -z "$as_dir" && as_dir=.
11989 for ac_exec_ext in '' $ac_executable_extensions; do
11990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11991 ac_cv_prog_STRIP="${ncn_progname}"
11992 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12001 STRIP=$ac_cv_prog_STRIP
12002 if test -n "$STRIP"; then
12003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12004 $as_echo "$STRIP" >&6; }
12006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12007 $as_echo "no
" >&6; }
12014 for ncn_progname in strip; do
12015 if test -n "$ncn_tool_prefix"; then
12016 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12017 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12019 $as_echo_n "checking
for $ac_word...
" >&6; }
12020 if ${ac_cv_prog_STRIP+:} false; then :
12021 $as_echo_n "(cached
) " >&6
12023 if test -n "$STRIP"; then
12024 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12027 for as_dir in $PATH
12030 test -z "$as_dir" && as_dir=.
12031 for ac_exec_ext in '' $ac_executable_extensions; do
12032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12033 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12034 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12043 STRIP=$ac_cv_prog_STRIP
12044 if test -n "$STRIP"; then
12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12046 $as_echo "$STRIP" >&6; }
12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12049 $as_echo "no
" >&6; }
12054 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12056 set dummy ${ncn_progname}; ac_word=$2
12057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12058 $as_echo_n "checking
for $ac_word...
" >&6; }
12059 if ${ac_cv_prog_STRIP+:} false; then :
12060 $as_echo_n "(cached
) " >&6
12062 if test -n "$STRIP"; then
12063 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12066 for as_dir in $PATH
12069 test -z "$as_dir" && as_dir=.
12070 for ac_exec_ext in '' $ac_executable_extensions; do
12071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12072 ac_cv_prog_STRIP="${ncn_progname}"
12073 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12082 STRIP=$ac_cv_prog_STRIP
12083 if test -n "$STRIP"; then
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12085 $as_echo "$STRIP" >&6; }
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12088 $as_echo "no
" >&6; }
12093 test -n "$ac_cv_prog_STRIP" && break
12096 if test -z "$ac_cv_prog_STRIP" ; then
12102 if test -n "$WINDRES"; then
12103 ac_cv_prog_WINDRES=$WINDRES
12104 elif test -n "$ac_cv_prog_WINDRES"; then
12105 WINDRES=$ac_cv_prog_WINDRES
12108 if test -n "$ac_cv_prog_WINDRES"; then
12109 for ncn_progname in windres; do
12110 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12111 set dummy ${ncn_progname}; ac_word=$2
12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12113 $as_echo_n "checking
for $ac_word...
" >&6; }
12114 if ${ac_cv_prog_WINDRES+:} false; then :
12115 $as_echo_n "(cached
) " >&6
12117 if test -n "$WINDRES"; then
12118 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12121 for as_dir in $PATH
12124 test -z "$as_dir" && as_dir=.
12125 for ac_exec_ext in '' $ac_executable_extensions; do
12126 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12127 ac_cv_prog_WINDRES="${ncn_progname}"
12128 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12137 WINDRES=$ac_cv_prog_WINDRES
12138 if test -n "$WINDRES"; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12140 $as_echo "$WINDRES" >&6; }
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12143 $as_echo "no
" >&6; }
12150 for ncn_progname in windres; do
12151 if test -n "$ncn_tool_prefix"; then
12152 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12153 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12155 $as_echo_n "checking
for $ac_word...
" >&6; }
12156 if ${ac_cv_prog_WINDRES+:} false; then :
12157 $as_echo_n "(cached
) " >&6
12159 if test -n "$WINDRES"; then
12160 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12163 for as_dir in $PATH
12166 test -z "$as_dir" && as_dir=.
12167 for ac_exec_ext in '' $ac_executable_extensions; do
12168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12169 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12170 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12179 WINDRES=$ac_cv_prog_WINDRES
12180 if test -n "$WINDRES"; then
12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12182 $as_echo "$WINDRES" >&6; }
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12185 $as_echo "no
" >&6; }
12190 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12191 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12192 set dummy ${ncn_progname}; ac_word=$2
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12194 $as_echo_n "checking
for $ac_word...
" >&6; }
12195 if ${ac_cv_prog_WINDRES+:} false; then :
12196 $as_echo_n "(cached
) " >&6
12198 if test -n "$WINDRES"; then
12199 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12202 for as_dir in $PATH
12205 test -z "$as_dir" && as_dir=.
12206 for ac_exec_ext in '' $ac_executable_extensions; do
12207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12208 ac_cv_prog_WINDRES="${ncn_progname}"
12209 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12218 WINDRES=$ac_cv_prog_WINDRES
12219 if test -n "$WINDRES"; then
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12221 $as_echo "$WINDRES" >&6; }
12223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12224 $as_echo "no
" >&6; }
12229 test -n "$ac_cv_prog_WINDRES" && break
12232 if test -z "$ac_cv_prog_WINDRES" ; then
12234 if test $build = $host ; then
12237 WINDRES="${ncn_tool_prefix}$2"
12243 if test -n "$WINDMC"; then
12244 ac_cv_prog_WINDMC=$WINDMC
12245 elif test -n "$ac_cv_prog_WINDMC"; then
12246 WINDMC=$ac_cv_prog_WINDMC
12249 if test -n "$ac_cv_prog_WINDMC"; then
12250 for ncn_progname in windmc; do
12251 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12252 set dummy ${ncn_progname}; ac_word=$2
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12254 $as_echo_n "checking
for $ac_word...
" >&6; }
12255 if ${ac_cv_prog_WINDMC+:} false; then :
12256 $as_echo_n "(cached
) " >&6
12258 if test -n "$WINDMC"; then
12259 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12262 for as_dir in $PATH
12265 test -z "$as_dir" && as_dir=.
12266 for ac_exec_ext in '' $ac_executable_extensions; do
12267 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12268 ac_cv_prog_WINDMC="${ncn_progname}"
12269 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12278 WINDMC=$ac_cv_prog_WINDMC
12279 if test -n "$WINDMC"; then
12280 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12281 $as_echo "$WINDMC" >&6; }
12283 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12284 $as_echo "no
" >&6; }
12291 for ncn_progname in windmc; do
12292 if test -n "$ncn_tool_prefix"; then
12293 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12294 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12296 $as_echo_n "checking
for $ac_word...
" >&6; }
12297 if ${ac_cv_prog_WINDMC+:} false; then :
12298 $as_echo_n "(cached
) " >&6
12300 if test -n "$WINDMC"; then
12301 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12304 for as_dir in $PATH
12307 test -z "$as_dir" && as_dir=.
12308 for ac_exec_ext in '' $ac_executable_extensions; do
12309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12310 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12311 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12320 WINDMC=$ac_cv_prog_WINDMC
12321 if test -n "$WINDMC"; then
12322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12323 $as_echo "$WINDMC" >&6; }
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12326 $as_echo "no
" >&6; }
12331 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12332 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12333 set dummy ${ncn_progname}; ac_word=$2
12334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12335 $as_echo_n "checking
for $ac_word...
" >&6; }
12336 if ${ac_cv_prog_WINDMC+:} false; then :
12337 $as_echo_n "(cached
) " >&6
12339 if test -n "$WINDMC"; then
12340 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12343 for as_dir in $PATH
12346 test -z "$as_dir" && as_dir=.
12347 for ac_exec_ext in '' $ac_executable_extensions; do
12348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12349 ac_cv_prog_WINDMC="${ncn_progname}"
12350 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12359 WINDMC=$ac_cv_prog_WINDMC
12360 if test -n "$WINDMC"; then
12361 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12362 $as_echo "$WINDMC" >&6; }
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12365 $as_echo "no
" >&6; }
12370 test -n "$ac_cv_prog_WINDMC" && break
12373 if test -z "$ac_cv_prog_WINDMC" ; then
12375 if test $build = $host ; then
12378 WINDMC="${ncn_tool_prefix}$2"
12384 if test -n "$OBJCOPY"; then
12385 ac_cv_prog_OBJCOPY=$OBJCOPY
12386 elif test -n "$ac_cv_prog_OBJCOPY"; then
12387 OBJCOPY=$ac_cv_prog_OBJCOPY
12390 if test -n "$ac_cv_prog_OBJCOPY"; then
12391 for ncn_progname in objcopy; do
12392 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12393 set dummy ${ncn_progname}; ac_word=$2
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12395 $as_echo_n "checking
for $ac_word...
" >&6; }
12396 if ${ac_cv_prog_OBJCOPY+:} false; then :
12397 $as_echo_n "(cached
) " >&6
12399 if test -n "$OBJCOPY"; then
12400 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12403 for as_dir in $PATH
12406 test -z "$as_dir" && as_dir=.
12407 for ac_exec_ext in '' $ac_executable_extensions; do
12408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12409 ac_cv_prog_OBJCOPY="${ncn_progname}"
12410 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12419 OBJCOPY=$ac_cv_prog_OBJCOPY
12420 if test -n "$OBJCOPY"; then
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12422 $as_echo "$OBJCOPY" >&6; }
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12425 $as_echo "no
" >&6; }
12432 for ncn_progname in objcopy; do
12433 if test -n "$ncn_tool_prefix"; then
12434 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12435 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12437 $as_echo_n "checking
for $ac_word...
" >&6; }
12438 if ${ac_cv_prog_OBJCOPY+:} false; then :
12439 $as_echo_n "(cached
) " >&6
12441 if test -n "$OBJCOPY"; then
12442 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12445 for as_dir in $PATH
12448 test -z "$as_dir" && as_dir=.
12449 for ac_exec_ext in '' $ac_executable_extensions; do
12450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12451 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12452 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12461 OBJCOPY=$ac_cv_prog_OBJCOPY
12462 if test -n "$OBJCOPY"; then
12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12464 $as_echo "$OBJCOPY" >&6; }
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12467 $as_echo "no
" >&6; }
12472 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12473 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12474 set dummy ${ncn_progname}; ac_word=$2
12475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12476 $as_echo_n "checking
for $ac_word...
" >&6; }
12477 if ${ac_cv_prog_OBJCOPY+:} false; then :
12478 $as_echo_n "(cached
) " >&6
12480 if test -n "$OBJCOPY"; then
12481 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12484 for as_dir in $PATH
12487 test -z "$as_dir" && as_dir=.
12488 for ac_exec_ext in '' $ac_executable_extensions; do
12489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12490 ac_cv_prog_OBJCOPY="${ncn_progname}"
12491 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12500 OBJCOPY=$ac_cv_prog_OBJCOPY
12501 if test -n "$OBJCOPY"; then
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12503 $as_echo "$OBJCOPY" >&6; }
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12506 $as_echo "no
" >&6; }
12511 test -n "$ac_cv_prog_OBJCOPY" && break
12514 if test -z "$ac_cv_prog_OBJCOPY" ; then
12516 if test $build = $host ; then
12519 OBJCOPY="${ncn_tool_prefix}$2"
12525 if test -n "$OBJDUMP"; then
12526 ac_cv_prog_OBJDUMP=$OBJDUMP
12527 elif test -n "$ac_cv_prog_OBJDUMP"; then
12528 OBJDUMP=$ac_cv_prog_OBJDUMP
12531 if test -n "$ac_cv_prog_OBJDUMP"; then
12532 for ncn_progname in objdump; do
12533 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12534 set dummy ${ncn_progname}; ac_word=$2
12535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12536 $as_echo_n "checking
for $ac_word...
" >&6; }
12537 if ${ac_cv_prog_OBJDUMP+:} false; then :
12538 $as_echo_n "(cached
) " >&6
12540 if test -n "$OBJDUMP"; then
12541 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12544 for as_dir in $PATH
12547 test -z "$as_dir" && as_dir=.
12548 for ac_exec_ext in '' $ac_executable_extensions; do
12549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12550 ac_cv_prog_OBJDUMP="${ncn_progname}"
12551 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12560 OBJDUMP=$ac_cv_prog_OBJDUMP
12561 if test -n "$OBJDUMP"; then
12562 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12563 $as_echo "$OBJDUMP" >&6; }
12565 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12566 $as_echo "no
" >&6; }
12573 for ncn_progname in objdump; do
12574 if test -n "$ncn_tool_prefix"; then
12575 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12576 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12578 $as_echo_n "checking
for $ac_word...
" >&6; }
12579 if ${ac_cv_prog_OBJDUMP+:} false; then :
12580 $as_echo_n "(cached
) " >&6
12582 if test -n "$OBJDUMP"; then
12583 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12586 for as_dir in $PATH
12589 test -z "$as_dir" && as_dir=.
12590 for ac_exec_ext in '' $ac_executable_extensions; do
12591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12592 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12593 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12602 OBJDUMP=$ac_cv_prog_OBJDUMP
12603 if test -n "$OBJDUMP"; then
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12605 $as_echo "$OBJDUMP" >&6; }
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12608 $as_echo "no
" >&6; }
12613 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12615 set dummy ${ncn_progname}; ac_word=$2
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12617 $as_echo_n "checking
for $ac_word...
" >&6; }
12618 if ${ac_cv_prog_OBJDUMP+:} false; then :
12619 $as_echo_n "(cached
) " >&6
12621 if test -n "$OBJDUMP"; then
12622 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12625 for as_dir in $PATH
12628 test -z "$as_dir" && as_dir=.
12629 for ac_exec_ext in '' $ac_executable_extensions; do
12630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12631 ac_cv_prog_OBJDUMP="${ncn_progname}"
12632 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12641 OBJDUMP=$ac_cv_prog_OBJDUMP
12642 if test -n "$OBJDUMP"; then
12643 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12644 $as_echo "$OBJDUMP" >&6; }
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12647 $as_echo "no
" >&6; }
12652 test -n "$ac_cv_prog_OBJDUMP" && break
12655 if test -z "$ac_cv_prog_OBJDUMP" ; then
12657 if test $build = $host ; then
12660 OBJDUMP="${ncn_tool_prefix}$2"
12666 if test -n "$OTOOL"; then
12667 ac_cv_prog_OTOOL=$OTOOL
12668 elif test -n "$ac_cv_prog_OTOOL"; then
12669 OTOOL=$ac_cv_prog_OTOOL
12672 if test -n "$ac_cv_prog_OTOOL"; then
12673 for ncn_progname in otool; do
12674 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12675 set dummy ${ncn_progname}; ac_word=$2
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12677 $as_echo_n "checking
for $ac_word...
" >&6; }
12678 if ${ac_cv_prog_OTOOL+:} false; then :
12679 $as_echo_n "(cached
) " >&6
12681 if test -n "$OTOOL"; then
12682 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12685 for as_dir in $PATH
12688 test -z "$as_dir" && as_dir=.
12689 for ac_exec_ext in '' $ac_executable_extensions; do
12690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12691 ac_cv_prog_OTOOL="${ncn_progname}"
12692 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12701 OTOOL=$ac_cv_prog_OTOOL
12702 if test -n "$OTOOL"; then
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12704 $as_echo "$OTOOL" >&6; }
12706 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12707 $as_echo "no
" >&6; }
12714 for ncn_progname in otool; do
12715 if test -n "$ncn_tool_prefix"; then
12716 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12717 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12719 $as_echo_n "checking
for $ac_word...
" >&6; }
12720 if ${ac_cv_prog_OTOOL+:} false; then :
12721 $as_echo_n "(cached
) " >&6
12723 if test -n "$OTOOL"; then
12724 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12727 for as_dir in $PATH
12730 test -z "$as_dir" && as_dir=.
12731 for ac_exec_ext in '' $ac_executable_extensions; do
12732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12733 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12734 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12743 OTOOL=$ac_cv_prog_OTOOL
12744 if test -n "$OTOOL"; then
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12746 $as_echo "$OTOOL" >&6; }
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12749 $as_echo "no
" >&6; }
12754 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12756 set dummy ${ncn_progname}; ac_word=$2
12757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12758 $as_echo_n "checking
for $ac_word...
" >&6; }
12759 if ${ac_cv_prog_OTOOL+:} false; then :
12760 $as_echo_n "(cached
) " >&6
12762 if test -n "$OTOOL"; then
12763 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12766 for as_dir in $PATH
12769 test -z "$as_dir" && as_dir=.
12770 for ac_exec_ext in '' $ac_executable_extensions; do
12771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12772 ac_cv_prog_OTOOL="${ncn_progname}"
12773 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12782 OTOOL=$ac_cv_prog_OTOOL
12783 if test -n "$OTOOL"; then
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12785 $as_echo "$OTOOL" >&6; }
12787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12788 $as_echo "no
" >&6; }
12793 test -n "$ac_cv_prog_OTOOL" && break
12796 if test -z "$ac_cv_prog_OTOOL" ; then
12798 if test $build = $host ; then
12801 OTOOL="${ncn_tool_prefix}$2"
12807 if test -n "$READELF"; then
12808 ac_cv_prog_READELF=$READELF
12809 elif test -n "$ac_cv_prog_READELF"; then
12810 READELF=$ac_cv_prog_READELF
12813 if test -n "$ac_cv_prog_READELF"; then
12814 for ncn_progname in readelf; do
12815 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12816 set dummy ${ncn_progname}; ac_word=$2
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12818 $as_echo_n "checking
for $ac_word...
" >&6; }
12819 if ${ac_cv_prog_READELF+:} false; then :
12820 $as_echo_n "(cached
) " >&6
12822 if test -n "$READELF"; then
12823 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12825 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12826 for as_dir in $PATH
12829 test -z "$as_dir" && as_dir=.
12830 for ac_exec_ext in '' $ac_executable_extensions; do
12831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12832 ac_cv_prog_READELF="${ncn_progname}"
12833 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12842 READELF=$ac_cv_prog_READELF
12843 if test -n "$READELF"; then
12844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12845 $as_echo "$READELF" >&6; }
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12848 $as_echo "no
" >&6; }
12855 for ncn_progname in readelf; do
12856 if test -n "$ncn_tool_prefix"; then
12857 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12858 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12860 $as_echo_n "checking
for $ac_word...
" >&6; }
12861 if ${ac_cv_prog_READELF+:} false; then :
12862 $as_echo_n "(cached
) " >&6
12864 if test -n "$READELF"; then
12865 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12871 test -z "$as_dir" && as_dir=.
12872 for ac_exec_ext in '' $ac_executable_extensions; do
12873 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12874 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12875 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12884 READELF=$ac_cv_prog_READELF
12885 if test -n "$READELF"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12887 $as_echo "$READELF" >&6; }
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12890 $as_echo "no
" >&6; }
12895 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12896 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12897 set dummy ${ncn_progname}; ac_word=$2
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12899 $as_echo_n "checking
for $ac_word...
" >&6; }
12900 if ${ac_cv_prog_READELF+:} false; then :
12901 $as_echo_n "(cached
) " >&6
12903 if test -n "$READELF"; then
12904 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12907 for as_dir in $PATH
12910 test -z "$as_dir" && as_dir=.
12911 for ac_exec_ext in '' $ac_executable_extensions; do
12912 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12913 ac_cv_prog_READELF="${ncn_progname}"
12914 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12923 READELF=$ac_cv_prog_READELF
12924 if test -n "$READELF"; then
12925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12926 $as_echo "$READELF" >&6; }
12928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12929 $as_echo "no
" >&6; }
12934 test -n "$ac_cv_prog_READELF" && break
12937 if test -z "$ac_cv_prog_READELF" ; then
12939 if test $build = $host ; then
12942 READELF="${ncn_tool_prefix}$2"
12952 GDCFLAGS=${GDCFLAGS-${CFLAGS}}
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
12955 $as_echo_n "checking
for -plugin option...
" >&6; }
12957 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
12959 for plugin in $plugin_names; do
12960 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
12961 if test x$plugin_so = x$plugin; then
12962 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
12964 if test x$plugin_so != x$plugin; then
12965 plugin_option="--plugin $plugin_so"
12969 if test -n "$plugin_option"; then
12970 PLUGIN_OPTION="$plugin_option"
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
12972 $as_echo "$plugin_option" >&6; }
12974 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12975 $as_echo "no
" >&6; }
12979 RANLIB_PLUGIN_OPTION=
12980 if test -n "$PLUGIN_OPTION"; then
12981 if $AR --help 2>&1 | grep -q "\
--plugin"; then
12982 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
12984 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
12985 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
12993 # Check whether --with-build-time-tools was given.
12994 if test "${with_build_time_tools+set}" = set; then :
12995 withval=$with_build_time_tools; case x"$withval" in
12998 with_build_time_tools=
12999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
13000 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
13004 with_build_time_tools=
13010 if test -n "$CC_FOR_TARGET"; then
13011 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13012 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13013 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13016 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13017 for ncn_progname in cc gcc; do
13018 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13019 set dummy ${ncn_progname}; ac_word=$2
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13021 $as_echo_n "checking
for $ac_word...
" >&6; }
13022 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13023 $as_echo_n "(cached
) " >&6
13025 if test -n "$CC_FOR_TARGET"; then
13026 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13029 for as_dir in $PATH
13032 test -z "$as_dir" && as_dir=.
13033 for ac_exec_ext in '' $ac_executable_extensions; do
13034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13035 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13036 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13045 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13046 if test -n "$CC_FOR_TARGET"; then
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13048 $as_echo "$CC_FOR_TARGET" >&6; }
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13051 $as_echo "no
" >&6; }
13058 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13059 for ncn_progname in cc gcc; do
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13061 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13062 if test -x $with_build_time_tools/${ncn_progname}; then
13063 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13065 $as_echo "yes" >&6; }
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13069 $as_echo "no
" >&6; }
13074 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13075 for ncn_progname in cc gcc; do
13076 if test -n "$ncn_target_tool_prefix"; then
13077 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13078 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13080 $as_echo_n "checking
for $ac_word...
" >&6; }
13081 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13082 $as_echo_n "(cached
) " >&6
13084 if test -n "$CC_FOR_TARGET"; then
13085 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13088 for as_dir in $PATH
13091 test -z "$as_dir" && as_dir=.
13092 for ac_exec_ext in '' $ac_executable_extensions; do
13093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13094 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13095 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13104 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13105 if test -n "$CC_FOR_TARGET"; then
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13107 $as_echo "$CC_FOR_TARGET" >&6; }
13109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13110 $as_echo "no
" >&6; }
13115 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13117 set dummy ${ncn_progname}; ac_word=$2
13118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13119 $as_echo_n "checking
for $ac_word...
" >&6; }
13120 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13121 $as_echo_n "(cached
) " >&6
13123 if test -n "$CC_FOR_TARGET"; then
13124 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13127 for as_dir in $PATH
13130 test -z "$as_dir" && as_dir=.
13131 for ac_exec_ext in '' $ac_executable_extensions; do
13132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13133 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13134 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13143 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13144 if test -n "$CC_FOR_TARGET"; then
13145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13146 $as_echo "$CC_FOR_TARGET" >&6; }
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13149 $as_echo "no
" >&6; }
13154 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13158 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13160 if test $build = $target ; then
13163 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13166 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13171 if test -n "$CXX_FOR_TARGET"; then
13172 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13173 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13174 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13177 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13178 for ncn_progname in c++ g++ cxx gxx; do
13179 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13180 set dummy ${ncn_progname}; ac_word=$2
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13182 $as_echo_n "checking
for $ac_word...
" >&6; }
13183 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13184 $as_echo_n "(cached
) " >&6
13186 if test -n "$CXX_FOR_TARGET"; then
13187 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13190 for as_dir in $PATH
13193 test -z "$as_dir" && as_dir=.
13194 for ac_exec_ext in '' $ac_executable_extensions; do
13195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13196 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13197 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13206 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13207 if test -n "$CXX_FOR_TARGET"; then
13208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13209 $as_echo "$CXX_FOR_TARGET" >&6; }
13211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13212 $as_echo "no
" >&6; }
13219 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13220 for ncn_progname in c++ g++ cxx gxx; do
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13222 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13223 if test -x $with_build_time_tools/${ncn_progname}; then
13224 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13226 $as_echo "yes" >&6; }
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13230 $as_echo "no
" >&6; }
13235 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13236 for ncn_progname in c++ g++ cxx gxx; do
13237 if test -n "$ncn_target_tool_prefix"; then
13238 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13239 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13241 $as_echo_n "checking
for $ac_word...
" >&6; }
13242 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13243 $as_echo_n "(cached
) " >&6
13245 if test -n "$CXX_FOR_TARGET"; then
13246 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13249 for as_dir in $PATH
13252 test -z "$as_dir" && as_dir=.
13253 for ac_exec_ext in '' $ac_executable_extensions; do
13254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13255 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13256 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13265 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13266 if test -n "$CXX_FOR_TARGET"; then
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13268 $as_echo "$CXX_FOR_TARGET" >&6; }
13270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13271 $as_echo "no
" >&6; }
13276 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13278 set dummy ${ncn_progname}; ac_word=$2
13279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13280 $as_echo_n "checking
for $ac_word...
" >&6; }
13281 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13282 $as_echo_n "(cached
) " >&6
13284 if test -n "$CXX_FOR_TARGET"; then
13285 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13288 for as_dir in $PATH
13291 test -z "$as_dir" && as_dir=.
13292 for ac_exec_ext in '' $ac_executable_extensions; do
13293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13294 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13295 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13304 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13305 if test -n "$CXX_FOR_TARGET"; then
13306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13307 $as_echo "$CXX_FOR_TARGET" >&6; }
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13310 $as_echo "no
" >&6; }
13315 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13319 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13320 set dummy c++ g++ cxx gxx
13321 if test $build = $target ; then
13322 CXX_FOR_TARGET="$2"
13324 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13327 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13332 if test -n "$GCC_FOR_TARGET"; then
13333 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13334 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13335 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13338 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13339 for ncn_progname in gcc; do
13340 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13341 set dummy ${ncn_progname}; ac_word=$2
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13343 $as_echo_n "checking
for $ac_word...
" >&6; }
13344 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13345 $as_echo_n "(cached
) " >&6
13347 if test -n "$GCC_FOR_TARGET"; then
13348 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13351 for as_dir in $PATH
13354 test -z "$as_dir" && as_dir=.
13355 for ac_exec_ext in '' $ac_executable_extensions; do
13356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13357 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13358 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13367 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13368 if test -n "$GCC_FOR_TARGET"; then
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13370 $as_echo "$GCC_FOR_TARGET" >&6; }
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13373 $as_echo "no
" >&6; }
13380 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13381 for ncn_progname in gcc; do
13382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13383 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13384 if test -x $with_build_time_tools/${ncn_progname}; then
13385 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13387 $as_echo "yes" >&6; }
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13391 $as_echo "no
" >&6; }
13396 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13397 for ncn_progname in gcc; do
13398 if test -n "$ncn_target_tool_prefix"; then
13399 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13400 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13402 $as_echo_n "checking
for $ac_word...
" >&6; }
13403 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13404 $as_echo_n "(cached
) " >&6
13406 if test -n "$GCC_FOR_TARGET"; then
13407 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13410 for as_dir in $PATH
13413 test -z "$as_dir" && as_dir=.
13414 for ac_exec_ext in '' $ac_executable_extensions; do
13415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13416 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13417 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13426 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13427 if test -n "$GCC_FOR_TARGET"; then
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13429 $as_echo "$GCC_FOR_TARGET" >&6; }
13431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13432 $as_echo "no
" >&6; }
13437 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13438 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13439 set dummy ${ncn_progname}; ac_word=$2
13440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13441 $as_echo_n "checking
for $ac_word...
" >&6; }
13442 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13443 $as_echo_n "(cached
) " >&6
13445 if test -n "$GCC_FOR_TARGET"; then
13446 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13449 for as_dir in $PATH
13452 test -z "$as_dir" && as_dir=.
13453 for ac_exec_ext in '' $ac_executable_extensions; do
13454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13455 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13456 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13465 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13466 if test -n "$GCC_FOR_TARGET"; then
13467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13468 $as_echo "$GCC_FOR_TARGET" >&6; }
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13471 $as_echo "no
" >&6; }
13476 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13480 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13481 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13483 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13488 if test -n "$GFORTRAN_FOR_TARGET"; then
13489 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13490 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13491 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13494 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13495 for ncn_progname in gfortran; do
13496 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13497 set dummy ${ncn_progname}; ac_word=$2
13498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13499 $as_echo_n "checking
for $ac_word...
" >&6; }
13500 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13501 $as_echo_n "(cached
) " >&6
13503 if test -n "$GFORTRAN_FOR_TARGET"; then
13504 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13507 for as_dir in $PATH
13510 test -z "$as_dir" && as_dir=.
13511 for ac_exec_ext in '' $ac_executable_extensions; do
13512 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13513 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13514 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13523 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13524 if test -n "$GFORTRAN_FOR_TARGET"; then
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13526 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13529 $as_echo "no
" >&6; }
13536 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13537 for ncn_progname in gfortran; do
13538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13539 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13540 if test -x $with_build_time_tools/${ncn_progname}; then
13541 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13542 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13543 $as_echo "yes" >&6; }
13546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13547 $as_echo "no
" >&6; }
13552 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13553 for ncn_progname in gfortran; do
13554 if test -n "$ncn_target_tool_prefix"; then
13555 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13556 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13558 $as_echo_n "checking
for $ac_word...
" >&6; }
13559 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13560 $as_echo_n "(cached
) " >&6
13562 if test -n "$GFORTRAN_FOR_TARGET"; then
13563 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13566 for as_dir in $PATH
13569 test -z "$as_dir" && as_dir=.
13570 for ac_exec_ext in '' $ac_executable_extensions; do
13571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13572 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13573 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13582 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13583 if test -n "$GFORTRAN_FOR_TARGET"; then
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13585 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13588 $as_echo "no
" >&6; }
13593 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13594 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13595 set dummy ${ncn_progname}; ac_word=$2
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13597 $as_echo_n "checking
for $ac_word...
" >&6; }
13598 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13599 $as_echo_n "(cached
) " >&6
13601 if test -n "$GFORTRAN_FOR_TARGET"; then
13602 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13605 for as_dir in $PATH
13608 test -z "$as_dir" && as_dir=.
13609 for ac_exec_ext in '' $ac_executable_extensions; do
13610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13611 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13612 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13621 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13622 if test -n "$GFORTRAN_FOR_TARGET"; then
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13624 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13627 $as_echo "no
" >&6; }
13632 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13636 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13638 if test $build = $target ; then
13639 GFORTRAN_FOR_TARGET="$2"
13641 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13644 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13649 if test -n "$GOC_FOR_TARGET"; then
13650 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13651 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13652 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13655 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13656 for ncn_progname in gccgo; do
13657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13658 set dummy ${ncn_progname}; ac_word=$2
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13660 $as_echo_n "checking
for $ac_word...
" >&6; }
13661 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13662 $as_echo_n "(cached
) " >&6
13664 if test -n "$GOC_FOR_TARGET"; then
13665 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13668 for as_dir in $PATH
13671 test -z "$as_dir" && as_dir=.
13672 for ac_exec_ext in '' $ac_executable_extensions; do
13673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13674 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13675 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13684 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13685 if test -n "$GOC_FOR_TARGET"; then
13686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13687 $as_echo "$GOC_FOR_TARGET" >&6; }
13689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13690 $as_echo "no
" >&6; }
13697 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13698 for ncn_progname in gccgo; do
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13700 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13701 if test -x $with_build_time_tools/${ncn_progname}; then
13702 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13704 $as_echo "yes" >&6; }
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13708 $as_echo "no
" >&6; }
13713 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13714 for ncn_progname in gccgo; do
13715 if test -n "$ncn_target_tool_prefix"; then
13716 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13717 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13719 $as_echo_n "checking
for $ac_word...
" >&6; }
13720 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13721 $as_echo_n "(cached
) " >&6
13723 if test -n "$GOC_FOR_TARGET"; then
13724 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13727 for as_dir in $PATH
13730 test -z "$as_dir" && as_dir=.
13731 for ac_exec_ext in '' $ac_executable_extensions; do
13732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13733 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13734 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13743 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13744 if test -n "$GOC_FOR_TARGET"; then
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13746 $as_echo "$GOC_FOR_TARGET" >&6; }
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13749 $as_echo "no
" >&6; }
13754 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13756 set dummy ${ncn_progname}; ac_word=$2
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13758 $as_echo_n "checking
for $ac_word...
" >&6; }
13759 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13760 $as_echo_n "(cached
) " >&6
13762 if test -n "$GOC_FOR_TARGET"; then
13763 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13766 for as_dir in $PATH
13769 test -z "$as_dir" && as_dir=.
13770 for ac_exec_ext in '' $ac_executable_extensions; do
13771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13772 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13773 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13782 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13783 if test -n "$GOC_FOR_TARGET"; then
13784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13785 $as_echo "$GOC_FOR_TARGET" >&6; }
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13788 $as_echo "no
" >&6; }
13793 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13797 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13799 if test $build = $target ; then
13800 GOC_FOR_TARGET="$2"
13802 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13805 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13810 if test -n "$GDC_FOR_TARGET"; then
13811 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13812 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13813 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13816 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13817 for ncn_progname in gdc; do
13818 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13819 set dummy ${ncn_progname}; ac_word=$2
13820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13821 $as_echo_n "checking
for $ac_word...
" >&6; }
13822 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13823 $as_echo_n "(cached
) " >&6
13825 if test -n "$GDC_FOR_TARGET"; then
13826 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13829 for as_dir in $PATH
13832 test -z "$as_dir" && as_dir=.
13833 for ac_exec_ext in '' $ac_executable_extensions; do
13834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13835 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13836 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13845 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13846 if test -n "$GDC_FOR_TARGET"; then
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13848 $as_echo "$GDC_FOR_TARGET" >&6; }
13850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13851 $as_echo "no
" >&6; }
13858 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13859 for ncn_progname in gdc; do
13860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13861 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13862 if test -x $with_build_time_tools/${ncn_progname}; then
13863 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13865 $as_echo "yes" >&6; }
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13869 $as_echo "no
" >&6; }
13874 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13875 for ncn_progname in gdc; do
13876 if test -n "$ncn_target_tool_prefix"; then
13877 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13878 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13880 $as_echo_n "checking
for $ac_word...
" >&6; }
13881 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13882 $as_echo_n "(cached
) " >&6
13884 if test -n "$GDC_FOR_TARGET"; then
13885 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13888 for as_dir in $PATH
13891 test -z "$as_dir" && as_dir=.
13892 for ac_exec_ext in '' $ac_executable_extensions; do
13893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13894 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13895 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13904 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13905 if test -n "$GDC_FOR_TARGET"; then
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13907 $as_echo "$GDC_FOR_TARGET" >&6; }
13909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13910 $as_echo "no
" >&6; }
13915 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13916 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13917 set dummy ${ncn_progname}; ac_word=$2
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13919 $as_echo_n "checking
for $ac_word...
" >&6; }
13920 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13921 $as_echo_n "(cached
) " >&6
13923 if test -n "$GDC_FOR_TARGET"; then
13924 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13927 for as_dir in $PATH
13930 test -z "$as_dir" && as_dir=.
13931 for ac_exec_ext in '' $ac_executable_extensions; do
13932 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13933 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13934 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13943 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13944 if test -n "$GDC_FOR_TARGET"; then
13945 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13946 $as_echo "$GDC_FOR_TARGET" >&6; }
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13949 $as_echo "no
" >&6; }
13954 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13958 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13960 if test $build = $target ; then
13961 GDC_FOR_TARGET="$2"
13963 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13966 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13971 if test -n "$GM2_FOR_TARGET"; then
13972 ac_cv_prog_GM2_FOR_TARGET=$GM2_FOR_TARGET
13973 elif test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13974 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
13977 if test -n "$ac_cv_prog_GM2_FOR_TARGET"; then
13978 for ncn_progname in gm2; do
13979 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13980 set dummy ${ncn_progname}; ac_word=$2
13981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13982 $as_echo_n "checking
for $ac_word...
" >&6; }
13983 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
13984 $as_echo_n "(cached
) " >&6
13986 if test -n "$GM2_FOR_TARGET"; then
13987 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
13989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13990 for as_dir in $PATH
13993 test -z "$as_dir" && as_dir=.
13994 for ac_exec_ext in '' $ac_executable_extensions; do
13995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13996 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
13997 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14006 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14007 if test -n "$GM2_FOR_TARGET"; then
14008 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14009 $as_echo "$GM2_FOR_TARGET" >&6; }
14011 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14012 $as_echo "no
" >&6; }
14019 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test -n "$with_build_time_tools"; then
14020 for ncn_progname in gm2; do
14021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14022 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14023 if test -x $with_build_time_tools/${ncn_progname}; then
14024 ac_cv_prog_GM2_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14026 $as_echo "yes" >&6; }
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14030 $as_echo "no
" >&6; }
14035 if test -z "$ac_cv_prog_GM2_FOR_TARGET"; then
14036 for ncn_progname in gm2; do
14037 if test -n "$ncn_target_tool_prefix"; then
14038 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14039 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14041 $as_echo_n "checking
for $ac_word...
" >&6; }
14042 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14043 $as_echo_n "(cached
) " >&6
14045 if test -n "$GM2_FOR_TARGET"; then
14046 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14049 for as_dir in $PATH
14052 test -z "$as_dir" && as_dir=.
14053 for ac_exec_ext in '' $ac_executable_extensions; do
14054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14055 ac_cv_prog_GM2_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14056 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14065 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14066 if test -n "$GM2_FOR_TARGET"; then
14067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14068 $as_echo "$GM2_FOR_TARGET" >&6; }
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14071 $as_echo "no
" >&6; }
14076 if test -z "$ac_cv_prog_GM2_FOR_TARGET" && test $build = $target ; then
14077 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14078 set dummy ${ncn_progname}; ac_word=$2
14079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14080 $as_echo_n "checking
for $ac_word...
" >&6; }
14081 if ${ac_cv_prog_GM2_FOR_TARGET+:} false; then :
14082 $as_echo_n "(cached
) " >&6
14084 if test -n "$GM2_FOR_TARGET"; then
14085 ac_cv_prog_GM2_FOR_TARGET="$GM2_FOR_TARGET" # Let the user override the test.
14087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088 for as_dir in $PATH
14091 test -z "$as_dir" && as_dir=.
14092 for ac_exec_ext in '' $ac_executable_extensions; do
14093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14094 ac_cv_prog_GM2_FOR_TARGET="${ncn_progname}"
14095 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14104 GM2_FOR_TARGET=$ac_cv_prog_GM2_FOR_TARGET
14105 if test -n "$GM2_FOR_TARGET"; then
14106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GM2_FOR_TARGET" >&5
14107 $as_echo "$GM2_FOR_TARGET" >&6; }
14109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14110 $as_echo "no
" >&6; }
14115 test -n "$ac_cv_prog_GM2_FOR_TARGET" && break
14119 if test -z "$ac_cv_prog_GM2_FOR_TARGET" ; then
14121 if test $build = $target ; then
14122 GM2_FOR_TARGET="$2"
14124 GM2_FOR_TARGET="${ncn_target_tool_prefix}$2"
14127 GM2_FOR_TARGET="$ac_cv_prog_GM2_FOR_TARGET"
14132 cat > conftest.c << \EOF
14137 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14138 have_gcc_for_target=yes
14140 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14141 have_gcc_for_target=no
14148 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14149 if test -n "$with_build_time_tools"; then
14150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
14151 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
14152 if test -x $with_build_time_tools/ar; then
14153 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14154 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
14156 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14158 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14159 $as_echo "no
" >&6; }
14161 elif test $build != $host && test $have_gcc_for_target = yes; then
14162 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14163 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14164 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14167 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14168 # Extract the first word of "ar", so it can be a program name with args.
14169 set dummy ar; ac_word=$2
14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14171 $as_echo_n "checking
for $ac_word...
" >&6; }
14172 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14173 $as_echo_n "(cached
) " >&6
14175 case $AR_FOR_TARGET in
14177 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14181 for as_dir in $gcc_cv_tool_dirs
14184 test -z "$as_dir" && as_dir=.
14185 for ac_exec_ext in '' $ac_executable_extensions; do
14186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14187 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14188 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14198 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14199 if test -n "$AR_FOR_TARGET"; then
14200 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14201 $as_echo "$AR_FOR_TARGET" >&6; }
14203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14204 $as_echo "no
" >&6; }
14209 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14212 if test -n "$AR_FOR_TARGET"; then
14213 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14214 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14215 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14218 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14219 for ncn_progname in ar; do
14220 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14221 set dummy ${ncn_progname}; ac_word=$2
14222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14223 $as_echo_n "checking
for $ac_word...
" >&6; }
14224 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14225 $as_echo_n "(cached
) " >&6
14227 if test -n "$AR_FOR_TARGET"; then
14228 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14231 for as_dir in $PATH
14234 test -z "$as_dir" && as_dir=.
14235 for ac_exec_ext in '' $ac_executable_extensions; do
14236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14237 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14238 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14247 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14248 if test -n "$AR_FOR_TARGET"; then
14249 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14250 $as_echo "$AR_FOR_TARGET" >&6; }
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14253 $as_echo "no
" >&6; }
14260 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14261 for ncn_progname in ar; do
14262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14263 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14264 if test -x $with_build_time_tools/${ncn_progname}; then
14265 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14267 $as_echo "yes" >&6; }
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14271 $as_echo "no
" >&6; }
14276 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14277 for ncn_progname in ar; do
14278 if test -n "$ncn_target_tool_prefix"; then
14279 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14280 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14282 $as_echo_n "checking
for $ac_word...
" >&6; }
14283 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14284 $as_echo_n "(cached
) " >&6
14286 if test -n "$AR_FOR_TARGET"; then
14287 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14290 for as_dir in $PATH
14293 test -z "$as_dir" && as_dir=.
14294 for ac_exec_ext in '' $ac_executable_extensions; do
14295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14296 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14297 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14306 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14307 if test -n "$AR_FOR_TARGET"; then
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14309 $as_echo "$AR_FOR_TARGET" >&6; }
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14312 $as_echo "no
" >&6; }
14317 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14318 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14319 set dummy ${ncn_progname}; ac_word=$2
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14321 $as_echo_n "checking
for $ac_word...
" >&6; }
14322 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14323 $as_echo_n "(cached
) " >&6
14325 if test -n "$AR_FOR_TARGET"; then
14326 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14329 for as_dir in $PATH
14332 test -z "$as_dir" && as_dir=.
14333 for ac_exec_ext in '' $ac_executable_extensions; do
14334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14335 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14336 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14345 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14346 if test -n "$AR_FOR_TARGET"; then
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14348 $as_echo "$AR_FOR_TARGET" >&6; }
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14351 $as_echo "no
" >&6; }
14356 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14360 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14362 if test $build = $target ; then
14365 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14368 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14372 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14378 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14379 if test -n "$with_build_time_tools"; then
14380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14381 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14382 if test -x $with_build_time_tools/as; then
14383 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14384 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14385 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14386 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14388 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14389 $as_echo "no
" >&6; }
14391 elif test $build != $host && test $have_gcc_for_target = yes; then
14392 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14393 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14394 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14397 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14398 # Extract the first word of "as
", so it can be a program name with args.
14399 set dummy as; ac_word=$2
14400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14401 $as_echo_n "checking
for $ac_word...
" >&6; }
14402 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14403 $as_echo_n "(cached
) " >&6
14405 case $AS_FOR_TARGET in
14407 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14411 for as_dir in $gcc_cv_tool_dirs
14414 test -z "$as_dir" && as_dir=.
14415 for ac_exec_ext in '' $ac_executable_extensions; do
14416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14417 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14418 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14428 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14429 if test -n "$AS_FOR_TARGET"; then
14430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14431 $as_echo "$AS_FOR_TARGET" >&6; }
14433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14434 $as_echo "no
" >&6; }
14439 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14442 if test -n "$AS_FOR_TARGET"; then
14443 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14444 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14445 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14448 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14449 for ncn_progname in as; do
14450 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14451 set dummy ${ncn_progname}; ac_word=$2
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14453 $as_echo_n "checking
for $ac_word...
" >&6; }
14454 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14455 $as_echo_n "(cached
) " >&6
14457 if test -n "$AS_FOR_TARGET"; then
14458 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14461 for as_dir in $PATH
14464 test -z "$as_dir" && as_dir=.
14465 for ac_exec_ext in '' $ac_executable_extensions; do
14466 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14467 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14468 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14477 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14478 if test -n "$AS_FOR_TARGET"; then
14479 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14480 $as_echo "$AS_FOR_TARGET" >&6; }
14482 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14483 $as_echo "no
" >&6; }
14490 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14491 for ncn_progname in as; do
14492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14493 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14494 if test -x $with_build_time_tools/${ncn_progname}; then
14495 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14496 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14497 $as_echo "yes" >&6; }
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14501 $as_echo "no
" >&6; }
14506 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14507 for ncn_progname in as; do
14508 if test -n "$ncn_target_tool_prefix"; then
14509 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14510 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14512 $as_echo_n "checking
for $ac_word...
" >&6; }
14513 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14514 $as_echo_n "(cached
) " >&6
14516 if test -n "$AS_FOR_TARGET"; then
14517 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14520 for as_dir in $PATH
14523 test -z "$as_dir" && as_dir=.
14524 for ac_exec_ext in '' $ac_executable_extensions; do
14525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14526 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14527 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14536 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14537 if test -n "$AS_FOR_TARGET"; then
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14539 $as_echo "$AS_FOR_TARGET" >&6; }
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14542 $as_echo "no
" >&6; }
14547 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14548 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14549 set dummy ${ncn_progname}; ac_word=$2
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14551 $as_echo_n "checking
for $ac_word...
" >&6; }
14552 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14553 $as_echo_n "(cached
) " >&6
14555 if test -n "$AS_FOR_TARGET"; then
14556 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14559 for as_dir in $PATH
14562 test -z "$as_dir" && as_dir=.
14563 for ac_exec_ext in '' $ac_executable_extensions; do
14564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14565 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14566 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14575 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14576 if test -n "$AS_FOR_TARGET"; then
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14578 $as_echo "$AS_FOR_TARGET" >&6; }
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14581 $as_echo "no
" >&6; }
14586 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14590 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14592 if test $build = $target ; then
14595 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14598 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14602 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14608 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14609 if test -n "$with_build_time_tools"; then
14610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14611 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14612 if test -x $with_build_time_tools/dlltool; then
14613 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14614 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14616 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14619 $as_echo "no
" >&6; }
14621 elif test $build != $host && test $have_gcc_for_target = yes; then
14622 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14623 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14624 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14627 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14628 # Extract the first word of "dlltool
", so it can be a program name with args.
14629 set dummy dlltool; ac_word=$2
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14631 $as_echo_n "checking
for $ac_word...
" >&6; }
14632 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14633 $as_echo_n "(cached
) " >&6
14635 case $DLLTOOL_FOR_TARGET in
14637 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14641 for as_dir in $gcc_cv_tool_dirs
14644 test -z "$as_dir" && as_dir=.
14645 for ac_exec_ext in '' $ac_executable_extensions; do
14646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14647 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14648 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14658 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14659 if test -n "$DLLTOOL_FOR_TARGET"; then
14660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14661 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14664 $as_echo "no
" >&6; }
14669 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14672 if test -n "$DLLTOOL_FOR_TARGET"; then
14673 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14674 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14675 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14678 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14679 for ncn_progname in dlltool; do
14680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14681 set dummy ${ncn_progname}; ac_word=$2
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14683 $as_echo_n "checking
for $ac_word...
" >&6; }
14684 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14685 $as_echo_n "(cached
) " >&6
14687 if test -n "$DLLTOOL_FOR_TARGET"; then
14688 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14691 for as_dir in $PATH
14694 test -z "$as_dir" && as_dir=.
14695 for ac_exec_ext in '' $ac_executable_extensions; do
14696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14697 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14698 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14707 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14708 if test -n "$DLLTOOL_FOR_TARGET"; then
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14710 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14713 $as_echo "no
" >&6; }
14720 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14721 for ncn_progname in dlltool; do
14722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14723 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14724 if test -x $with_build_time_tools/${ncn_progname}; then
14725 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14727 $as_echo "yes" >&6; }
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14731 $as_echo "no
" >&6; }
14736 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14737 for ncn_progname in dlltool; do
14738 if test -n "$ncn_target_tool_prefix"; then
14739 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14740 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14742 $as_echo_n "checking
for $ac_word...
" >&6; }
14743 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14744 $as_echo_n "(cached
) " >&6
14746 if test -n "$DLLTOOL_FOR_TARGET"; then
14747 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14750 for as_dir in $PATH
14753 test -z "$as_dir" && as_dir=.
14754 for ac_exec_ext in '' $ac_executable_extensions; do
14755 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14756 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14757 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14766 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14767 if test -n "$DLLTOOL_FOR_TARGET"; then
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14769 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14772 $as_echo "no
" >&6; }
14777 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14778 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14779 set dummy ${ncn_progname}; ac_word=$2
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14781 $as_echo_n "checking
for $ac_word...
" >&6; }
14782 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14783 $as_echo_n "(cached
) " >&6
14785 if test -n "$DLLTOOL_FOR_TARGET"; then
14786 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14789 for as_dir in $PATH
14792 test -z "$as_dir" && as_dir=.
14793 for ac_exec_ext in '' $ac_executable_extensions; do
14794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14795 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14796 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14805 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14806 if test -n "$DLLTOOL_FOR_TARGET"; then
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14808 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14811 $as_echo "no
" >&6; }
14816 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14820 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14822 if test $build = $target ; then
14823 DLLTOOL_FOR_TARGET="$2"
14825 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14828 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14832 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14838 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14839 if test -n "$with_build_time_tools"; then
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
14841 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
14842 if test -x $with_build_time_tools/dsymutil; then
14843 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14844 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14846 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14849 $as_echo "no
" >&6; }
14851 elif test $build != $host && test $have_gcc_for_target = yes; then
14852 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14853 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14854 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14857 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14858 # Extract the first word of "dsymutil
", so it can be a program name with args.
14859 set dummy dsymutil; ac_word=$2
14860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14861 $as_echo_n "checking
for $ac_word...
" >&6; }
14862 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14863 $as_echo_n "(cached
) " >&6
14865 case $DSYMUTIL_FOR_TARGET in
14867 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14871 for as_dir in $gcc_cv_tool_dirs
14874 test -z "$as_dir" && as_dir=.
14875 for ac_exec_ext in '' $ac_executable_extensions; do
14876 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14877 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14878 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14888 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14889 if test -n "$DSYMUTIL_FOR_TARGET"; then
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14891 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14894 $as_echo "no
" >&6; }
14899 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14902 if test -n "$DSYMUTIL_FOR_TARGET"; then
14903 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14904 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14905 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14908 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14909 for ncn_progname in dsymutil; do
14910 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14911 set dummy ${ncn_progname}; ac_word=$2
14912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14913 $as_echo_n "checking
for $ac_word...
" >&6; }
14914 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14915 $as_echo_n "(cached
) " >&6
14917 if test -n "$DSYMUTIL_FOR_TARGET"; then
14918 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14921 for as_dir in $PATH
14924 test -z "$as_dir" && as_dir=.
14925 for ac_exec_ext in '' $ac_executable_extensions; do
14926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14927 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14928 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14937 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14938 if test -n "$DSYMUTIL_FOR_TARGET"; then
14939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14940 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14943 $as_echo "no
" >&6; }
14950 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14951 for ncn_progname in dsymutil; do
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14953 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14954 if test -x $with_build_time_tools/${ncn_progname}; then
14955 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14956 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14957 $as_echo "yes" >&6; }
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14961 $as_echo "no
" >&6; }
14966 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14967 for ncn_progname in dsymutil; do
14968 if test -n "$ncn_target_tool_prefix"; then
14969 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14970 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14972 $as_echo_n "checking
for $ac_word...
" >&6; }
14973 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14974 $as_echo_n "(cached
) " >&6
14976 if test -n "$DSYMUTIL_FOR_TARGET"; then
14977 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14980 for as_dir in $PATH
14983 test -z "$as_dir" && as_dir=.
14984 for ac_exec_ext in '' $ac_executable_extensions; do
14985 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14986 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14987 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14996 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14997 if test -n "$DSYMUTIL_FOR_TARGET"; then
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14999 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15002 $as_echo "no
" >&6; }
15007 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
15008 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15009 set dummy ${ncn_progname}; ac_word=$2
15010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15011 $as_echo_n "checking
for $ac_word...
" >&6; }
15012 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
15013 $as_echo_n "(cached
) " >&6
15015 if test -n "$DSYMUTIL_FOR_TARGET"; then
15016 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
15018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15019 for as_dir in $PATH
15022 test -z "$as_dir" && as_dir=.
15023 for ac_exec_ext in '' $ac_executable_extensions; do
15024 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15025 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
15026 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15035 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
15036 if test -n "$DSYMUTIL_FOR_TARGET"; then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
15038 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
15040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15041 $as_echo "no
" >&6; }
15046 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
15050 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
15052 if test $build = $target ; then
15053 DSYMUTIL_FOR_TARGET="$2"
15055 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15058 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
15062 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
15068 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15069 if test -n "$with_build_time_tools"; then
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
15071 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
15072 if test -x $with_build_time_tools/ld; then
15073 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
15074 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
15076 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15079 $as_echo "no
" >&6; }
15081 elif test $build != $host && test $have_gcc_for_target = yes; then
15082 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15083 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15084 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15087 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15088 # Extract the first word of "ld
", so it can be a program name with args.
15089 set dummy ld; ac_word=$2
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15091 $as_echo_n "checking
for $ac_word...
" >&6; }
15092 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15093 $as_echo_n "(cached
) " >&6
15095 case $LD_FOR_TARGET in
15097 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15101 for as_dir in $gcc_cv_tool_dirs
15104 test -z "$as_dir" && as_dir=.
15105 for ac_exec_ext in '' $ac_executable_extensions; do
15106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15107 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15108 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15118 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15119 if test -n "$LD_FOR_TARGET"; then
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15121 $as_echo "$LD_FOR_TARGET" >&6; }
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15124 $as_echo "no
" >&6; }
15129 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15132 if test -n "$LD_FOR_TARGET"; then
15133 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15134 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15135 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15138 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15139 for ncn_progname in ld; do
15140 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15141 set dummy ${ncn_progname}; ac_word=$2
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15143 $as_echo_n "checking
for $ac_word...
" >&6; }
15144 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15145 $as_echo_n "(cached
) " >&6
15147 if test -n "$LD_FOR_TARGET"; then
15148 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15151 for as_dir in $PATH
15154 test -z "$as_dir" && as_dir=.
15155 for ac_exec_ext in '' $ac_executable_extensions; do
15156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15157 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15158 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15167 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15168 if test -n "$LD_FOR_TARGET"; then
15169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15170 $as_echo "$LD_FOR_TARGET" >&6; }
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15173 $as_echo "no
" >&6; }
15180 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15181 for ncn_progname in ld; do
15182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15183 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15184 if test -x $with_build_time_tools/${ncn_progname}; then
15185 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15187 $as_echo "yes" >&6; }
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15191 $as_echo "no
" >&6; }
15196 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15197 for ncn_progname in ld; do
15198 if test -n "$ncn_target_tool_prefix"; then
15199 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15200 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15202 $as_echo_n "checking
for $ac_word...
" >&6; }
15203 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15204 $as_echo_n "(cached
) " >&6
15206 if test -n "$LD_FOR_TARGET"; then
15207 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15210 for as_dir in $PATH
15213 test -z "$as_dir" && as_dir=.
15214 for ac_exec_ext in '' $ac_executable_extensions; do
15215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15216 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15217 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15226 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15227 if test -n "$LD_FOR_TARGET"; then
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15229 $as_echo "$LD_FOR_TARGET" >&6; }
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15232 $as_echo "no
" >&6; }
15237 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15238 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15239 set dummy ${ncn_progname}; ac_word=$2
15240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15241 $as_echo_n "checking
for $ac_word...
" >&6; }
15242 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15243 $as_echo_n "(cached
) " >&6
15245 if test -n "$LD_FOR_TARGET"; then
15246 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15249 for as_dir in $PATH
15252 test -z "$as_dir" && as_dir=.
15253 for ac_exec_ext in '' $ac_executable_extensions; do
15254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15255 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15256 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15265 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15266 if test -n "$LD_FOR_TARGET"; then
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15268 $as_echo "$LD_FOR_TARGET" >&6; }
15270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15271 $as_echo "no
" >&6; }
15276 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15280 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15282 if test $build = $target ; then
15285 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15288 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15292 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15298 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15299 if test -n "$with_build_time_tools"; then
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
15301 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
15302 if test -x $with_build_time_tools/lipo; then
15303 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15304 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
15306 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15309 $as_echo "no
" >&6; }
15311 elif test $build != $host && test $have_gcc_for_target = yes; then
15312 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15313 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15314 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15317 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15318 # Extract the first word of "lipo
", so it can be a program name with args.
15319 set dummy lipo; ac_word=$2
15320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15321 $as_echo_n "checking
for $ac_word...
" >&6; }
15322 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15323 $as_echo_n "(cached
) " >&6
15325 case $LIPO_FOR_TARGET in
15327 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15331 for as_dir in $gcc_cv_tool_dirs
15334 test -z "$as_dir" && as_dir=.
15335 for ac_exec_ext in '' $ac_executable_extensions; do
15336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15337 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15338 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15348 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15349 if test -n "$LIPO_FOR_TARGET"; then
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15351 $as_echo "$LIPO_FOR_TARGET" >&6; }
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15354 $as_echo "no
" >&6; }
15359 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15362 if test -n "$LIPO_FOR_TARGET"; then
15363 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15364 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15365 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15368 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15369 for ncn_progname in lipo; do
15370 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15371 set dummy ${ncn_progname}; ac_word=$2
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15373 $as_echo_n "checking
for $ac_word...
" >&6; }
15374 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15375 $as_echo_n "(cached
) " >&6
15377 if test -n "$LIPO_FOR_TARGET"; then
15378 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15381 for as_dir in $PATH
15384 test -z "$as_dir" && as_dir=.
15385 for ac_exec_ext in '' $ac_executable_extensions; do
15386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15387 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15388 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15397 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15398 if test -n "$LIPO_FOR_TARGET"; then
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15400 $as_echo "$LIPO_FOR_TARGET" >&6; }
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15403 $as_echo "no
" >&6; }
15410 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15411 for ncn_progname in lipo; do
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15413 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15414 if test -x $with_build_time_tools/${ncn_progname}; then
15415 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15417 $as_echo "yes" >&6; }
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15421 $as_echo "no
" >&6; }
15426 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15427 for ncn_progname in lipo; do
15428 if test -n "$ncn_target_tool_prefix"; then
15429 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15430 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15432 $as_echo_n "checking
for $ac_word...
" >&6; }
15433 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15434 $as_echo_n "(cached
) " >&6
15436 if test -n "$LIPO_FOR_TARGET"; then
15437 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15440 for as_dir in $PATH
15443 test -z "$as_dir" && as_dir=.
15444 for ac_exec_ext in '' $ac_executable_extensions; do
15445 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15446 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15447 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15456 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15457 if test -n "$LIPO_FOR_TARGET"; then
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15459 $as_echo "$LIPO_FOR_TARGET" >&6; }
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15462 $as_echo "no
" >&6; }
15467 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15468 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15469 set dummy ${ncn_progname}; ac_word=$2
15470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15471 $as_echo_n "checking
for $ac_word...
" >&6; }
15472 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15473 $as_echo_n "(cached
) " >&6
15475 if test -n "$LIPO_FOR_TARGET"; then
15476 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15479 for as_dir in $PATH
15482 test -z "$as_dir" && as_dir=.
15483 for ac_exec_ext in '' $ac_executable_extensions; do
15484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15485 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15486 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15495 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15496 if test -n "$LIPO_FOR_TARGET"; then
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15498 $as_echo "$LIPO_FOR_TARGET" >&6; }
15500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15501 $as_echo "no
" >&6; }
15506 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15510 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15512 if test $build = $target ; then
15513 LIPO_FOR_TARGET="$2"
15515 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15518 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15522 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15528 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15529 if test -n "$with_build_time_tools"; then
15530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15531 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15532 if test -x $with_build_time_tools/nm; then
15533 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15534 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15536 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15539 $as_echo "no
" >&6; }
15541 elif test $build != $host && test $have_gcc_for_target = yes; then
15542 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15543 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15544 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15547 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15548 # Extract the first word of "nm
", so it can be a program name with args.
15549 set dummy nm; ac_word=$2
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15551 $as_echo_n "checking
for $ac_word...
" >&6; }
15552 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15553 $as_echo_n "(cached
) " >&6
15555 case $NM_FOR_TARGET in
15557 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15561 for as_dir in $gcc_cv_tool_dirs
15564 test -z "$as_dir" && as_dir=.
15565 for ac_exec_ext in '' $ac_executable_extensions; do
15566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15567 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15568 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15578 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15579 if test -n "$NM_FOR_TARGET"; then
15580 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15581 $as_echo "$NM_FOR_TARGET" >&6; }
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15584 $as_echo "no
" >&6; }
15589 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15592 if test -n "$NM_FOR_TARGET"; then
15593 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15594 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15595 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15598 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15599 for ncn_progname in nm; do
15600 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15601 set dummy ${ncn_progname}; ac_word=$2
15602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15603 $as_echo_n "checking
for $ac_word...
" >&6; }
15604 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15605 $as_echo_n "(cached
) " >&6
15607 if test -n "$NM_FOR_TARGET"; then
15608 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15611 for as_dir in $PATH
15614 test -z "$as_dir" && as_dir=.
15615 for ac_exec_ext in '' $ac_executable_extensions; do
15616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15617 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15618 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15627 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15628 if test -n "$NM_FOR_TARGET"; then
15629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15630 $as_echo "$NM_FOR_TARGET" >&6; }
15632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15633 $as_echo "no
" >&6; }
15640 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15641 for ncn_progname in nm; do
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15643 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15644 if test -x $with_build_time_tools/${ncn_progname}; then
15645 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15647 $as_echo "yes" >&6; }
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15651 $as_echo "no
" >&6; }
15656 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15657 for ncn_progname in nm; do
15658 if test -n "$ncn_target_tool_prefix"; then
15659 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15660 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15662 $as_echo_n "checking
for $ac_word...
" >&6; }
15663 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15664 $as_echo_n "(cached
) " >&6
15666 if test -n "$NM_FOR_TARGET"; then
15667 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15670 for as_dir in $PATH
15673 test -z "$as_dir" && as_dir=.
15674 for ac_exec_ext in '' $ac_executable_extensions; do
15675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15676 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15677 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15686 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15687 if test -n "$NM_FOR_TARGET"; then
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15689 $as_echo "$NM_FOR_TARGET" >&6; }
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15692 $as_echo "no
" >&6; }
15697 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15698 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15699 set dummy ${ncn_progname}; ac_word=$2
15700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15701 $as_echo_n "checking
for $ac_word...
" >&6; }
15702 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15703 $as_echo_n "(cached
) " >&6
15705 if test -n "$NM_FOR_TARGET"; then
15706 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15709 for as_dir in $PATH
15712 test -z "$as_dir" && as_dir=.
15713 for ac_exec_ext in '' $ac_executable_extensions; do
15714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15715 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15716 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15725 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15726 if test -n "$NM_FOR_TARGET"; then
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15728 $as_echo "$NM_FOR_TARGET" >&6; }
15730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15731 $as_echo "no
" >&6; }
15736 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15740 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15742 if test $build = $target ; then
15745 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15748 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15752 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15758 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15759 if test -n "$with_build_time_tools"; then
15760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15761 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15762 if test -x $with_build_time_tools/objcopy; then
15763 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15764 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15766 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15769 $as_echo "no
" >&6; }
15771 elif test $build != $host && test $have_gcc_for_target = yes; then
15772 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15773 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15774 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15777 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15778 # Extract the first word of "objcopy
", so it can be a program name with args.
15779 set dummy objcopy; ac_word=$2
15780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15781 $as_echo_n "checking
for $ac_word...
" >&6; }
15782 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15783 $as_echo_n "(cached
) " >&6
15785 case $OBJCOPY_FOR_TARGET in
15787 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15791 for as_dir in $gcc_cv_tool_dirs
15794 test -z "$as_dir" && as_dir=.
15795 for ac_exec_ext in '' $ac_executable_extensions; do
15796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15797 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15798 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15808 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15809 if test -n "$OBJCOPY_FOR_TARGET"; then
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15811 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15814 $as_echo "no
" >&6; }
15819 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15822 if test -n "$OBJCOPY_FOR_TARGET"; then
15823 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15824 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15825 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15828 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15829 for ncn_progname in objcopy; do
15830 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15831 set dummy ${ncn_progname}; ac_word=$2
15832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15833 $as_echo_n "checking
for $ac_word...
" >&6; }
15834 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15835 $as_echo_n "(cached
) " >&6
15837 if test -n "$OBJCOPY_FOR_TARGET"; then
15838 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15840 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15841 for as_dir in $PATH
15844 test -z "$as_dir" && as_dir=.
15845 for ac_exec_ext in '' $ac_executable_extensions; do
15846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15847 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15848 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15857 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15858 if test -n "$OBJCOPY_FOR_TARGET"; then
15859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15860 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15863 $as_echo "no
" >&6; }
15870 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15871 for ncn_progname in objcopy; do
15872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15873 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15874 if test -x $with_build_time_tools/${ncn_progname}; then
15875 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15876 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15877 $as_echo "yes" >&6; }
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15881 $as_echo "no
" >&6; }
15886 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15887 for ncn_progname in objcopy; do
15888 if test -n "$ncn_target_tool_prefix"; then
15889 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15890 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15892 $as_echo_n "checking
for $ac_word...
" >&6; }
15893 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15894 $as_echo_n "(cached
) " >&6
15896 if test -n "$OBJCOPY_FOR_TARGET"; then
15897 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15900 for as_dir in $PATH
15903 test -z "$as_dir" && as_dir=.
15904 for ac_exec_ext in '' $ac_executable_extensions; do
15905 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15906 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15907 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15916 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15917 if test -n "$OBJCOPY_FOR_TARGET"; then
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15919 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15922 $as_echo "no
" >&6; }
15927 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15928 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15929 set dummy ${ncn_progname}; ac_word=$2
15930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15931 $as_echo_n "checking
for $ac_word...
" >&6; }
15932 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15933 $as_echo_n "(cached
) " >&6
15935 if test -n "$OBJCOPY_FOR_TARGET"; then
15936 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15939 for as_dir in $PATH
15942 test -z "$as_dir" && as_dir=.
15943 for ac_exec_ext in '' $ac_executable_extensions; do
15944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15945 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15946 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15955 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15956 if test -n "$OBJCOPY_FOR_TARGET"; then
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15958 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15961 $as_echo "no
" >&6; }
15966 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15970 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15972 if test $build = $target ; then
15973 OBJCOPY_FOR_TARGET="$2"
15975 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15978 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15982 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15988 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15989 if test -n "$with_build_time_tools"; then
15990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
15991 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
15992 if test -x $with_build_time_tools/objdump; then
15993 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15994 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15996 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15999 $as_echo "no
" >&6; }
16001 elif test $build != $host && test $have_gcc_for_target = yes; then
16002 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
16003 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
16004 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16007 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16008 # Extract the first word of "objdump
", so it can be a program name with args.
16009 set dummy objdump; ac_word=$2
16010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16011 $as_echo_n "checking
for $ac_word...
" >&6; }
16012 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
16013 $as_echo_n "(cached
) " >&6
16015 case $OBJDUMP_FOR_TARGET in
16017 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
16020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16021 for as_dir in $gcc_cv_tool_dirs
16024 test -z "$as_dir" && as_dir=.
16025 for ac_exec_ext in '' $ac_executable_extensions; do
16026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16027 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16028 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16038 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16039 if test -n "$OBJDUMP_FOR_TARGET"; then
16040 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16041 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16044 $as_echo "no
" >&6; }
16049 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
16052 if test -n "$OBJDUMP_FOR_TARGET"; then
16053 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
16054 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16055 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16058 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16059 for ncn_progname in objdump; do
16060 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16061 set dummy ${ncn_progname}; ac_word=$2
16062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16063 $as_echo_n "checking
for $ac_word...
" >&6; }
16064 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16065 $as_echo_n "(cached
) " >&6
16067 if test -n "$OBJDUMP_FOR_TARGET"; then
16068 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16071 for as_dir in $PATH
16074 test -z "$as_dir" && as_dir=.
16075 for ac_exec_ext in '' $ac_executable_extensions; do
16076 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16077 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16078 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16087 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16088 if test -n "$OBJDUMP_FOR_TARGET"; then
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16090 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16093 $as_echo "no
" >&6; }
16100 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16101 for ncn_progname in objdump; do
16102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16103 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16104 if test -x $with_build_time_tools/${ncn_progname}; then
16105 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16106 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16107 $as_echo "yes" >&6; }
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16111 $as_echo "no
" >&6; }
16116 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16117 for ncn_progname in objdump; do
16118 if test -n "$ncn_target_tool_prefix"; then
16119 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16120 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16122 $as_echo_n "checking
for $ac_word...
" >&6; }
16123 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16124 $as_echo_n "(cached
) " >&6
16126 if test -n "$OBJDUMP_FOR_TARGET"; then
16127 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16129 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16130 for as_dir in $PATH
16133 test -z "$as_dir" && as_dir=.
16134 for ac_exec_ext in '' $ac_executable_extensions; do
16135 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16136 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16137 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16146 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16147 if test -n "$OBJDUMP_FOR_TARGET"; then
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16149 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16152 $as_echo "no
" >&6; }
16157 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16158 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16159 set dummy ${ncn_progname}; ac_word=$2
16160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16161 $as_echo_n "checking
for $ac_word...
" >&6; }
16162 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16163 $as_echo_n "(cached
) " >&6
16165 if test -n "$OBJDUMP_FOR_TARGET"; then
16166 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16169 for as_dir in $PATH
16172 test -z "$as_dir" && as_dir=.
16173 for ac_exec_ext in '' $ac_executable_extensions; do
16174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16175 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16176 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16185 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16186 if test -n "$OBJDUMP_FOR_TARGET"; then
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16188 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16191 $as_echo "no
" >&6; }
16196 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16200 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16202 if test $build = $target ; then
16203 OBJDUMP_FOR_TARGET="$2"
16205 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16208 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16212 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16218 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16219 if test -n "$with_build_time_tools"; then
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
16221 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
16222 if test -x $with_build_time_tools/otool; then
16223 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16224 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16226 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16229 $as_echo "no
" >&6; }
16231 elif test $build != $host && test $have_gcc_for_target = yes; then
16232 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16233 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16234 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16237 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16238 # Extract the first word of "otool
", so it can be a program name with args.
16239 set dummy otool; ac_word=$2
16240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16241 $as_echo_n "checking
for $ac_word...
" >&6; }
16242 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16243 $as_echo_n "(cached
) " >&6
16245 case $OTOOL_FOR_TARGET in
16247 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16251 for as_dir in $gcc_cv_tool_dirs
16254 test -z "$as_dir" && as_dir=.
16255 for ac_exec_ext in '' $ac_executable_extensions; do
16256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16257 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16258 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16268 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16269 if test -n "$OTOOL_FOR_TARGET"; then
16270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16271 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16274 $as_echo "no
" >&6; }
16279 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16282 if test -n "$OTOOL_FOR_TARGET"; then
16283 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16284 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16285 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16288 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16289 for ncn_progname in otool; do
16290 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16291 set dummy ${ncn_progname}; ac_word=$2
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16293 $as_echo_n "checking
for $ac_word...
" >&6; }
16294 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16295 $as_echo_n "(cached
) " >&6
16297 if test -n "$OTOOL_FOR_TARGET"; then
16298 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16301 for as_dir in $PATH
16304 test -z "$as_dir" && as_dir=.
16305 for ac_exec_ext in '' $ac_executable_extensions; do
16306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16307 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16308 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16317 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16318 if test -n "$OTOOL_FOR_TARGET"; then
16319 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16320 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16323 $as_echo "no
" >&6; }
16330 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16331 for ncn_progname in otool; do
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16333 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16334 if test -x $with_build_time_tools/${ncn_progname}; then
16335 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16337 $as_echo "yes" >&6; }
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16341 $as_echo "no
" >&6; }
16346 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16347 for ncn_progname in otool; do
16348 if test -n "$ncn_target_tool_prefix"; then
16349 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16350 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16352 $as_echo_n "checking
for $ac_word...
" >&6; }
16353 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16354 $as_echo_n "(cached
) " >&6
16356 if test -n "$OTOOL_FOR_TARGET"; then
16357 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16360 for as_dir in $PATH
16363 test -z "$as_dir" && as_dir=.
16364 for ac_exec_ext in '' $ac_executable_extensions; do
16365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16366 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16367 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16376 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16377 if test -n "$OTOOL_FOR_TARGET"; then
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16379 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16382 $as_echo "no
" >&6; }
16387 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16388 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16389 set dummy ${ncn_progname}; ac_word=$2
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16391 $as_echo_n "checking
for $ac_word...
" >&6; }
16392 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16393 $as_echo_n "(cached
) " >&6
16395 if test -n "$OTOOL_FOR_TARGET"; then
16396 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16399 for as_dir in $PATH
16402 test -z "$as_dir" && as_dir=.
16403 for ac_exec_ext in '' $ac_executable_extensions; do
16404 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16405 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16406 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16415 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16416 if test -n "$OTOOL_FOR_TARGET"; then
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16418 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16421 $as_echo "no
" >&6; }
16426 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16430 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16432 if test $build = $target ; then
16433 OTOOL_FOR_TARGET="$2"
16435 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16438 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16442 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16448 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16449 if test -n "$with_build_time_tools"; then
16450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16451 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16452 if test -x $with_build_time_tools/ranlib; then
16453 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16454 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16456 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16459 $as_echo "no
" >&6; }
16461 elif test $build != $host && test $have_gcc_for_target = yes; then
16462 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16463 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16464 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16467 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16468 # Extract the first word of "ranlib
", so it can be a program name with args.
16469 set dummy ranlib; ac_word=$2
16470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16471 $as_echo_n "checking
for $ac_word...
" >&6; }
16472 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16473 $as_echo_n "(cached
) " >&6
16475 case $RANLIB_FOR_TARGET in
16477 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16481 for as_dir in $gcc_cv_tool_dirs
16484 test -z "$as_dir" && as_dir=.
16485 for ac_exec_ext in '' $ac_executable_extensions; do
16486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16487 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16488 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16498 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16499 if test -n "$RANLIB_FOR_TARGET"; then
16500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16501 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16504 $as_echo "no
" >&6; }
16509 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16512 if test -n "$RANLIB_FOR_TARGET"; then
16513 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16514 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16515 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16518 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16519 for ncn_progname in ranlib; do
16520 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16521 set dummy ${ncn_progname}; ac_word=$2
16522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16523 $as_echo_n "checking
for $ac_word...
" >&6; }
16524 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16525 $as_echo_n "(cached
) " >&6
16527 if test -n "$RANLIB_FOR_TARGET"; then
16528 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16531 for as_dir in $PATH
16534 test -z "$as_dir" && as_dir=.
16535 for ac_exec_ext in '' $ac_executable_extensions; do
16536 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16537 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16538 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16547 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16548 if test -n "$RANLIB_FOR_TARGET"; then
16549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16550 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16553 $as_echo "no
" >&6; }
16560 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16561 for ncn_progname in ranlib; do
16562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16563 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16564 if test -x $with_build_time_tools/${ncn_progname}; then
16565 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16566 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16567 $as_echo "yes" >&6; }
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16571 $as_echo "no
" >&6; }
16576 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16577 for ncn_progname in ranlib; do
16578 if test -n "$ncn_target_tool_prefix"; then
16579 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16580 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16582 $as_echo_n "checking
for $ac_word...
" >&6; }
16583 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16584 $as_echo_n "(cached
) " >&6
16586 if test -n "$RANLIB_FOR_TARGET"; then
16587 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16590 for as_dir in $PATH
16593 test -z "$as_dir" && as_dir=.
16594 for ac_exec_ext in '' $ac_executable_extensions; do
16595 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16596 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16597 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16606 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16607 if test -n "$RANLIB_FOR_TARGET"; then
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16609 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16612 $as_echo "no
" >&6; }
16617 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16618 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16619 set dummy ${ncn_progname}; ac_word=$2
16620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16621 $as_echo_n "checking
for $ac_word...
" >&6; }
16622 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16623 $as_echo_n "(cached
) " >&6
16625 if test -n "$RANLIB_FOR_TARGET"; then
16626 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16629 for as_dir in $PATH
16632 test -z "$as_dir" && as_dir=.
16633 for ac_exec_ext in '' $ac_executable_extensions; do
16634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16635 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16636 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16645 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16646 if test -n "$RANLIB_FOR_TARGET"; then
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16648 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16651 $as_echo "no
" >&6; }
16656 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16660 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16662 if test $build = $target ; then
16663 RANLIB_FOR_TARGET="$2"
16665 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16668 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16672 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16678 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16679 if test -n "$with_build_time_tools"; then
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16681 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16682 if test -x $with_build_time_tools/readelf; then
16683 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16684 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16686 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16689 $as_echo "no
" >&6; }
16691 elif test $build != $host && test $have_gcc_for_target = yes; then
16692 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16693 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16694 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16697 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16698 # Extract the first word of "readelf
", so it can be a program name with args.
16699 set dummy readelf; ac_word=$2
16700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16701 $as_echo_n "checking
for $ac_word...
" >&6; }
16702 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16703 $as_echo_n "(cached
) " >&6
16705 case $READELF_FOR_TARGET in
16707 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16711 for as_dir in $gcc_cv_tool_dirs
16714 test -z "$as_dir" && as_dir=.
16715 for ac_exec_ext in '' $ac_executable_extensions; do
16716 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16717 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16718 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16728 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16729 if test -n "$READELF_FOR_TARGET"; then
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16731 $as_echo "$READELF_FOR_TARGET" >&6; }
16733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16734 $as_echo "no
" >&6; }
16739 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16742 if test -n "$READELF_FOR_TARGET"; then
16743 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16744 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16745 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16748 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16749 for ncn_progname in readelf; do
16750 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16751 set dummy ${ncn_progname}; ac_word=$2
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16753 $as_echo_n "checking
for $ac_word...
" >&6; }
16754 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16755 $as_echo_n "(cached
) " >&6
16757 if test -n "$READELF_FOR_TARGET"; then
16758 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16761 for as_dir in $PATH
16764 test -z "$as_dir" && as_dir=.
16765 for ac_exec_ext in '' $ac_executable_extensions; do
16766 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16767 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16768 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16777 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16778 if test -n "$READELF_FOR_TARGET"; then
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16780 $as_echo "$READELF_FOR_TARGET" >&6; }
16782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16783 $as_echo "no
" >&6; }
16790 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16791 for ncn_progname in readelf; do
16792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16793 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16794 if test -x $with_build_time_tools/${ncn_progname}; then
16795 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16797 $as_echo "yes" >&6; }
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16801 $as_echo "no
" >&6; }
16806 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16807 for ncn_progname in readelf; do
16808 if test -n "$ncn_target_tool_prefix"; then
16809 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16810 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16812 $as_echo_n "checking
for $ac_word...
" >&6; }
16813 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16814 $as_echo_n "(cached
) " >&6
16816 if test -n "$READELF_FOR_TARGET"; then
16817 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16820 for as_dir in $PATH
16823 test -z "$as_dir" && as_dir=.
16824 for ac_exec_ext in '' $ac_executable_extensions; do
16825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16826 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16827 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16836 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16837 if test -n "$READELF_FOR_TARGET"; then
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16839 $as_echo "$READELF_FOR_TARGET" >&6; }
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16842 $as_echo "no
" >&6; }
16847 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16848 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16849 set dummy ${ncn_progname}; ac_word=$2
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16851 $as_echo_n "checking
for $ac_word...
" >&6; }
16852 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16853 $as_echo_n "(cached
) " >&6
16855 if test -n "$READELF_FOR_TARGET"; then
16856 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16859 for as_dir in $PATH
16862 test -z "$as_dir" && as_dir=.
16863 for ac_exec_ext in '' $ac_executable_extensions; do
16864 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16865 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16866 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16875 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16876 if test -n "$READELF_FOR_TARGET"; then
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16878 $as_echo "$READELF_FOR_TARGET" >&6; }
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16881 $as_echo "no
" >&6; }
16886 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16890 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16892 if test $build = $target ; then
16893 READELF_FOR_TARGET="$2"
16895 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16898 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16902 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16908 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16909 if test -n "$with_build_time_tools"; then
16910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
16911 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
16912 if test -x $with_build_time_tools/strip; then
16913 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16914 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
16916 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16919 $as_echo "no
" >&6; }
16921 elif test $build != $host && test $have_gcc_for_target = yes; then
16922 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16923 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16924 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16927 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16928 # Extract the first word of "strip
", so it can be a program name with args.
16929 set dummy strip; ac_word=$2
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16931 $as_echo_n "checking
for $ac_word...
" >&6; }
16932 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16933 $as_echo_n "(cached
) " >&6
16935 case $STRIP_FOR_TARGET in
16937 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16941 for as_dir in $gcc_cv_tool_dirs
16944 test -z "$as_dir" && as_dir=.
16945 for ac_exec_ext in '' $ac_executable_extensions; do
16946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16947 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16948 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16958 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16959 if test -n "$STRIP_FOR_TARGET"; then
16960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16961 $as_echo "$STRIP_FOR_TARGET" >&6; }
16963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16964 $as_echo "no
" >&6; }
16969 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16972 if test -n "$STRIP_FOR_TARGET"; then
16973 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16974 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16975 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16978 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16979 for ncn_progname in strip; do
16980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16981 set dummy ${ncn_progname}; ac_word=$2
16982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16983 $as_echo_n "checking
for $ac_word...
" >&6; }
16984 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16985 $as_echo_n "(cached
) " >&6
16987 if test -n "$STRIP_FOR_TARGET"; then
16988 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16991 for as_dir in $PATH
16994 test -z "$as_dir" && as_dir=.
16995 for ac_exec_ext in '' $ac_executable_extensions; do
16996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16997 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16998 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17007 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17008 if test -n "$STRIP_FOR_TARGET"; then
17009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17010 $as_echo "$STRIP_FOR_TARGET" >&6; }
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17013 $as_echo "no
" >&6; }
17020 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
17021 for ncn_progname in strip; do
17022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17023 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17024 if test -x $with_build_time_tools/${ncn_progname}; then
17025 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17027 $as_echo "yes" >&6; }
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17031 $as_echo "no
" >&6; }
17036 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
17037 for ncn_progname in strip; do
17038 if test -n "$ncn_target_tool_prefix"; then
17039 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17040 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17042 $as_echo_n "checking
for $ac_word...
" >&6; }
17043 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17044 $as_echo_n "(cached
) " >&6
17046 if test -n "$STRIP_FOR_TARGET"; then
17047 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17050 for as_dir in $PATH
17053 test -z "$as_dir" && as_dir=.
17054 for ac_exec_ext in '' $ac_executable_extensions; do
17055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17056 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17057 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17066 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17067 if test -n "$STRIP_FOR_TARGET"; then
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17069 $as_echo "$STRIP_FOR_TARGET" >&6; }
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17072 $as_echo "no
" >&6; }
17077 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17078 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17079 set dummy ${ncn_progname}; ac_word=$2
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17081 $as_echo_n "checking
for $ac_word...
" >&6; }
17082 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17083 $as_echo_n "(cached
) " >&6
17085 if test -n "$STRIP_FOR_TARGET"; then
17086 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17089 for as_dir in $PATH
17092 test -z "$as_dir" && as_dir=.
17093 for ac_exec_ext in '' $ac_executable_extensions; do
17094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17095 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17096 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17105 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17106 if test -n "$STRIP_FOR_TARGET"; then
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17108 $as_echo "$STRIP_FOR_TARGET" >&6; }
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17111 $as_echo "no
" >&6; }
17116 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17120 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17122 if test $build = $target ; then
17123 STRIP_FOR_TARGET="$2"
17125 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17128 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17132 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17138 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17139 if test -n "$with_build_time_tools"; then
17140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
17141 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
17142 if test -x $with_build_time_tools/windres; then
17143 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17144 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17146 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17149 $as_echo "no
" >&6; }
17151 elif test $build != $host && test $have_gcc_for_target = yes; then
17152 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17153 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17154 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17157 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17158 # Extract the first word of "windres
", so it can be a program name with args.
17159 set dummy windres; ac_word=$2
17160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17161 $as_echo_n "checking
for $ac_word...
" >&6; }
17162 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17163 $as_echo_n "(cached
) " >&6
17165 case $WINDRES_FOR_TARGET in
17167 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17171 for as_dir in $gcc_cv_tool_dirs
17174 test -z "$as_dir" && as_dir=.
17175 for ac_exec_ext in '' $ac_executable_extensions; do
17176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17177 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17178 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17188 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17189 if test -n "$WINDRES_FOR_TARGET"; then
17190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17191 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17194 $as_echo "no
" >&6; }
17199 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17202 if test -n "$WINDRES_FOR_TARGET"; then
17203 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17204 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17205 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17208 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17209 for ncn_progname in windres; do
17210 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17211 set dummy ${ncn_progname}; ac_word=$2
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17213 $as_echo_n "checking
for $ac_word...
" >&6; }
17214 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17215 $as_echo_n "(cached
) " >&6
17217 if test -n "$WINDRES_FOR_TARGET"; then
17218 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17221 for as_dir in $PATH
17224 test -z "$as_dir" && as_dir=.
17225 for ac_exec_ext in '' $ac_executable_extensions; do
17226 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17227 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17228 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17237 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17238 if test -n "$WINDRES_FOR_TARGET"; then
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17240 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17243 $as_echo "no
" >&6; }
17250 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17251 for ncn_progname in windres; do
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17253 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17254 if test -x $with_build_time_tools/${ncn_progname}; then
17255 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17257 $as_echo "yes" >&6; }
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17261 $as_echo "no
" >&6; }
17266 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17267 for ncn_progname in windres; do
17268 if test -n "$ncn_target_tool_prefix"; then
17269 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17270 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17272 $as_echo_n "checking
for $ac_word...
" >&6; }
17273 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17274 $as_echo_n "(cached
) " >&6
17276 if test -n "$WINDRES_FOR_TARGET"; then
17277 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17280 for as_dir in $PATH
17283 test -z "$as_dir" && as_dir=.
17284 for ac_exec_ext in '' $ac_executable_extensions; do
17285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17286 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17287 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17296 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17297 if test -n "$WINDRES_FOR_TARGET"; then
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17299 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17302 $as_echo "no
" >&6; }
17307 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17308 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17309 set dummy ${ncn_progname}; ac_word=$2
17310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17311 $as_echo_n "checking
for $ac_word...
" >&6; }
17312 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17313 $as_echo_n "(cached
) " >&6
17315 if test -n "$WINDRES_FOR_TARGET"; then
17316 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17319 for as_dir in $PATH
17322 test -z "$as_dir" && as_dir=.
17323 for ac_exec_ext in '' $ac_executable_extensions; do
17324 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17325 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17326 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17335 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17336 if test -n "$WINDRES_FOR_TARGET"; then
17337 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17338 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17341 $as_echo "no
" >&6; }
17346 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17350 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17352 if test $build = $target ; then
17353 WINDRES_FOR_TARGET="$2"
17355 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17358 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17362 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17368 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17369 if test -n "$with_build_time_tools"; then
17370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17371 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17372 if test -x $with_build_time_tools/windmc; then
17373 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17374 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17376 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17379 $as_echo "no
" >&6; }
17381 elif test $build != $host && test $have_gcc_for_target = yes; then
17382 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17383 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17384 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17387 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17388 # Extract the first word of "windmc
", so it can be a program name with args.
17389 set dummy windmc; ac_word=$2
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17391 $as_echo_n "checking
for $ac_word...
" >&6; }
17392 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17393 $as_echo_n "(cached
) " >&6
17395 case $WINDMC_FOR_TARGET in
17397 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17401 for as_dir in $gcc_cv_tool_dirs
17404 test -z "$as_dir" && as_dir=.
17405 for ac_exec_ext in '' $ac_executable_extensions; do
17406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17407 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17408 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17418 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17419 if test -n "$WINDMC_FOR_TARGET"; then
17420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17421 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17424 $as_echo "no
" >&6; }
17429 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17432 if test -n "$WINDMC_FOR_TARGET"; then
17433 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17434 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17435 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17438 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17439 for ncn_progname in windmc; do
17440 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17441 set dummy ${ncn_progname}; ac_word=$2
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17443 $as_echo_n "checking
for $ac_word...
" >&6; }
17444 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17445 $as_echo_n "(cached
) " >&6
17447 if test -n "$WINDMC_FOR_TARGET"; then
17448 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17451 for as_dir in $PATH
17454 test -z "$as_dir" && as_dir=.
17455 for ac_exec_ext in '' $ac_executable_extensions; do
17456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17457 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17458 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17467 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17468 if test -n "$WINDMC_FOR_TARGET"; then
17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17470 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17473 $as_echo "no
" >&6; }
17480 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17481 for ncn_progname in windmc; do
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17483 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17484 if test -x $with_build_time_tools/${ncn_progname}; then
17485 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17487 $as_echo "yes" >&6; }
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17491 $as_echo "no
" >&6; }
17496 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17497 for ncn_progname in windmc; do
17498 if test -n "$ncn_target_tool_prefix"; then
17499 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17500 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17502 $as_echo_n "checking
for $ac_word...
" >&6; }
17503 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17504 $as_echo_n "(cached
) " >&6
17506 if test -n "$WINDMC_FOR_TARGET"; then
17507 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17510 for as_dir in $PATH
17513 test -z "$as_dir" && as_dir=.
17514 for ac_exec_ext in '' $ac_executable_extensions; do
17515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17516 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17517 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17526 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17527 if test -n "$WINDMC_FOR_TARGET"; then
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17529 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17532 $as_echo "no
" >&6; }
17537 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17539 set dummy ${ncn_progname}; ac_word=$2
17540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17541 $as_echo_n "checking
for $ac_word...
" >&6; }
17542 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17543 $as_echo_n "(cached
) " >&6
17545 if test -n "$WINDMC_FOR_TARGET"; then
17546 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17549 for as_dir in $PATH
17552 test -z "$as_dir" && as_dir=.
17553 for ac_exec_ext in '' $ac_executable_extensions; do
17554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17555 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17556 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17565 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17566 if test -n "$WINDMC_FOR_TARGET"; then
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17568 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17571 $as_echo "no
" >&6; }
17576 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17580 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17582 if test $build = $target ; then
17583 WINDMC_FOR_TARGET="$2"
17585 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17588 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17592 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17596 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17599 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17600 if test "x
${build}" != "x
${host}" ; then
17601 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17602 # We already found the complete path
17603 ac_dir=`dirname $AR_FOR_TARGET`
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17605 $as_echo "pre-installed
in $ac_dir" >&6; }
17607 # Canadian cross, just use what we found
17608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17609 $as_echo "pre-installed
" >&6; }
17613 case " ${configdirs} " in
17618 if test $ok = yes; then
17619 # An in-tree tool is available and we can use it
17620 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17622 $as_echo "just compiled
" >&6; }
17623 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17624 # We already found the complete path
17625 ac_dir=`dirname $AR_FOR_TARGET`
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17627 $as_echo "pre-installed
in $ac_dir" >&6; }
17628 elif test "x
$target" = "x
$host"; then
17629 # We can use an host tool
17630 AR_FOR_TARGET='$(AR)'
17631 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17632 $as_echo "host tool
" >&6; }
17634 # We need a cross tool
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17636 $as_echo "pre-installed
" >&6; }
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17641 $as_echo_n "checking where to
find the target as...
" >&6; }
17642 if test "x
${build}" != "x
${host}" ; then
17643 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17644 # We already found the complete path
17645 ac_dir=`dirname $AS_FOR_TARGET`
17646 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17647 $as_echo "pre-installed
in $ac_dir" >&6; }
17649 # Canadian cross, just use what we found
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17651 $as_echo "pre-installed
" >&6; }
17655 case " ${configdirs} " in
17660 if test $ok = yes; then
17661 # An in-tree tool is available and we can use it
17662 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17664 $as_echo "just compiled
" >&6; }
17665 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17666 # We already found the complete path
17667 ac_dir=`dirname $AS_FOR_TARGET`
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17669 $as_echo "pre-installed
in $ac_dir" >&6; }
17670 elif test "x
$target" = "x
$host"; then
17671 # We can use an host tool
17672 AS_FOR_TARGET='$(AS)'
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17674 $as_echo "host tool
" >&6; }
17676 # We need a cross tool
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17678 $as_echo "pre-installed
" >&6; }
17682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17683 $as_echo_n "checking where to
find the target cc...
" >&6; }
17684 if test "x
${build}" != "x
${host}" ; then
17685 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17686 # We already found the complete path
17687 ac_dir=`dirname $CC_FOR_TARGET`
17688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17689 $as_echo "pre-installed
in $ac_dir" >&6; }
17691 # Canadian cross, just use what we found
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17693 $as_echo "pre-installed
" >&6; }
17697 case " ${configdirs} " in
17702 if test $ok = yes; then
17703 # An in-tree tool is available and we can use it
17704 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17706 $as_echo "just compiled
" >&6; }
17707 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17708 # We already found the complete path
17709 ac_dir=`dirname $CC_FOR_TARGET`
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17711 $as_echo "pre-installed
in $ac_dir" >&6; }
17712 elif test "x
$target" = "x
$host"; then
17713 # We can use an host tool
17714 CC_FOR_TARGET='$(CC)'
17715 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17716 $as_echo "host tool
" >&6; }
17718 # We need a cross tool
17719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17720 $as_echo "pre-installed
" >&6; }
17724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17725 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17726 if test "x
${build}" != "x
${host}" ; then
17727 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17728 # We already found the complete path
17729 ac_dir=`dirname $CXX_FOR_TARGET`
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17731 $as_echo "pre-installed
in $ac_dir" >&6; }
17733 # Canadian cross, just use what we found
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17735 $as_echo "pre-installed
" >&6; }
17739 case " ${configdirs} " in
17743 case ,${enable_languages}, in
17747 if test $ok = yes; then
17748 # An in-tree tool is available and we can use it
17749 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'
17750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17751 $as_echo "just compiled
" >&6; }
17752 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17753 # We already found the complete path
17754 ac_dir=`dirname $CXX_FOR_TARGET`
17755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17756 $as_echo "pre-installed
in $ac_dir" >&6; }
17757 elif test "x
$target" = "x
$host"; then
17758 # We can use an host tool
17759 CXX_FOR_TARGET='$(CXX)'
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17761 $as_echo "host tool
" >&6; }
17763 # We need a cross tool
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17765 $as_echo "pre-installed
" >&6; }
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
17770 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17771 if test "x
${build}" != "x
${host}" ; then
17772 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17773 # We already found the complete path
17774 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17776 $as_echo "pre-installed
in $ac_dir" >&6; }
17778 # Canadian cross, just use what we found
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17780 $as_echo "pre-installed
" >&6; }
17784 case " ${configdirs} " in
17788 case ,${enable_languages}, in
17792 if test $ok = yes; then
17793 # An in-tree tool is available and we can use it
17794 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'
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17796 $as_echo "just compiled
" >&6; }
17797 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17798 # We already found the complete path
17799 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17801 $as_echo "pre-installed
in $ac_dir" >&6; }
17802 elif test "x
$target" = "x
$host"; then
17803 # We can use an host tool
17804 RAW_CXX_FOR_TARGET='$(CXX)'
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17806 $as_echo "host tool
" >&6; }
17808 # We need a cross tool
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17810 $as_echo "pre-installed
" >&6; }
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
17815 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17816 if test "x
${build}" != "x
${host}" ; then
17817 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17818 # We already found the complete path
17819 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17821 $as_echo "pre-installed
in $ac_dir" >&6; }
17823 # Canadian cross, just use what we found
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17825 $as_echo "pre-installed
" >&6; }
17829 case " ${configdirs} " in
17834 if test $ok = yes; then
17835 # An in-tree tool is available and we can use it
17836 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17838 $as_echo "just compiled
" >&6; }
17839 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17840 # We already found the complete path
17841 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17843 $as_echo "pre-installed
in $ac_dir" >&6; }
17844 elif test "x
$target" = "x
$host"; then
17845 # We can use an host tool
17846 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17848 $as_echo "host tool
" >&6; }
17850 # We need a cross tool
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17852 $as_echo "pre-installed
" >&6; }
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
17857 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
17858 if test "x
${build}" != "x
${host}" ; then
17859 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17860 # We already found the complete path
17861 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17863 $as_echo "pre-installed
in $ac_dir" >&6; }
17865 # Canadian cross, just use what we found
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17867 $as_echo "pre-installed
" >&6; }
17870 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17871 # We already found the complete path
17872 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17874 $as_echo "pre-installed
in $ac_dir" >&6; }
17875 elif test "x
$target" = "x
$host"; then
17876 # We can use an host tool
17877 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17879 $as_echo "host tool
" >&6; }
17881 # We need a cross tool
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17883 $as_echo "pre-installed
" >&6; }
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
17888 $as_echo_n "checking where to
find the target gcc...
" >&6; }
17889 if test "x
${build}" != "x
${host}" ; then
17890 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17891 # We already found the complete path
17892 ac_dir=`dirname $GCC_FOR_TARGET`
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17894 $as_echo "pre-installed
in $ac_dir" >&6; }
17896 # Canadian cross, just use what we found
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17898 $as_echo "pre-installed
" >&6; }
17902 case " ${configdirs} " in
17907 if test $ok = yes; then
17908 # An in-tree tool is available and we can use it
17909 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17911 $as_echo "just compiled
" >&6; }
17912 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17913 # We already found the complete path
17914 ac_dir=`dirname $GCC_FOR_TARGET`
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17916 $as_echo "pre-installed
in $ac_dir" >&6; }
17917 elif test "x
$target" = "x
$host"; then
17918 # We can use an host tool
17919 GCC_FOR_TARGET='$()'
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17921 $as_echo "host tool
" >&6; }
17923 # We need a cross tool
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17925 $as_echo "pre-installed
" >&6; }
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
17930 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
17931 if test "x
${build}" != "x
${host}" ; then
17932 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17933 # We already found the complete path
17934 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17936 $as_echo "pre-installed
in $ac_dir" >&6; }
17938 # Canadian cross, just use what we found
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17940 $as_echo "pre-installed
" >&6; }
17944 case " ${configdirs} " in
17948 case ,${enable_languages}, in
17952 if test $ok = yes; then
17953 # An in-tree tool is available and we can use it
17954 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17955 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17956 $as_echo "just compiled
" >&6; }
17957 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17958 # We already found the complete path
17959 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17961 $as_echo "pre-installed
in $ac_dir" >&6; }
17962 elif test "x
$target" = "x
$host"; then
17963 # We can use an host tool
17964 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17966 $as_echo "host tool
" >&6; }
17968 # We need a cross tool
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17970 $as_echo "pre-installed
" >&6; }
17974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
17975 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
17976 if test "x
${build}" != "x
${host}" ; then
17977 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17978 # We already found the complete path
17979 ac_dir=`dirname $GOC_FOR_TARGET`
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17981 $as_echo "pre-installed
in $ac_dir" >&6; }
17983 # Canadian cross, just use what we found
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17985 $as_echo "pre-installed
" >&6; }
17989 case " ${configdirs} " in
17993 case ,${enable_languages}, in
17997 if test $ok = yes; then
17998 # An in-tree tool is available and we can use it
17999 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
18000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18001 $as_echo "just compiled
" >&6; }
18002 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
18003 # We already found the complete path
18004 ac_dir=`dirname $GOC_FOR_TARGET`
18005 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18006 $as_echo "pre-installed
in $ac_dir" >&6; }
18007 elif test "x
$target" = "x
$host"; then
18008 # We can use an host tool
18009 GOC_FOR_TARGET='$(GOC)'
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18011 $as_echo "host tool
" >&6; }
18013 # We need a cross tool
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18015 $as_echo "pre-installed
" >&6; }
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
18020 $as_echo_n "checking where to
find the target gdc...
" >&6; }
18021 if test "x
${build}" != "x
${host}" ; then
18022 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18023 # We already found the complete path
18024 ac_dir=`dirname $GDC_FOR_TARGET`
18025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18026 $as_echo "pre-installed
in $ac_dir" >&6; }
18028 # Canadian cross, just use what we found
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18030 $as_echo "pre-installed
" >&6; }
18034 case " ${configdirs} " in
18038 case ,${enable_languages}, in
18042 if test $ok = yes; then
18043 # An in-tree tool is available and we can use it
18044 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
18045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18046 $as_echo "just compiled
" >&6; }
18047 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
18048 # We already found the complete path
18049 ac_dir=`dirname $GDC_FOR_TARGET`
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18051 $as_echo "pre-installed
in $ac_dir" >&6; }
18052 elif test "x
$target" = "x
$host"; then
18053 # We can use an host tool
18054 GDC_FOR_TARGET='$(GDC)'
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18056 $as_echo "host tool
" >&6; }
18058 # We need a cross tool
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18060 $as_echo "pre-installed
" >&6; }
18064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gm2
" >&5
18065 $as_echo_n "checking where to
find the target gm2...
" >&6; }
18066 if test "x
${build}" != "x
${host}" ; then
18067 if expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18068 # We already found the complete path
18069 ac_dir=`dirname $GM2_FOR_TARGET`
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18071 $as_echo "pre-installed
in $ac_dir" >&6; }
18073 # Canadian cross, just use what we found
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18075 $as_echo "pre-installed
" >&6; }
18079 case " ${configdirs} " in
18083 case ,${enable_languages}, in
18087 if test $ok = yes; then
18088 # An in-tree tool is available and we can use it
18089 GM2_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gm2 -B$$r/$(HOST_SUBDIR)/gcc/'
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18091 $as_echo "just compiled
" >&6; }
18092 elif expr "x
$GM2_FOR_TARGET" : "x
/" > /dev/null; then
18093 # We already found the complete path
18094 ac_dir=`dirname $GM2_FOR_TARGET`
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18096 $as_echo "pre-installed
in $ac_dir" >&6; }
18097 elif test "x
$target" = "x
$host"; then
18098 # We can use an host tool
18099 GM2_FOR_TARGET='$(GM2)'
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18101 $as_echo "host tool
" >&6; }
18103 # We need a cross tool
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18105 $as_echo "pre-installed
" >&6; }
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
18110 $as_echo_n "checking where to
find the target ld...
" >&6; }
18111 if test "x
${build}" != "x
${host}" ; then
18112 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18113 # We already found the complete path
18114 ac_dir=`dirname $LD_FOR_TARGET`
18115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18116 $as_echo "pre-installed
in $ac_dir" >&6; }
18118 # Canadian cross, just use what we found
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18120 $as_echo "pre-installed
" >&6; }
18124 case " ${configdirs} " in
18129 if test $ok = yes; then
18130 # An in-tree tool is available and we can use it
18131 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18133 $as_echo "just compiled
" >&6; }
18134 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18135 # We already found the complete path
18136 ac_dir=`dirname $LD_FOR_TARGET`
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18138 $as_echo "pre-installed
in $ac_dir" >&6; }
18139 elif test "x
$target" = "x
$host"; then
18140 # We can use an host tool
18141 LD_FOR_TARGET='$(LD)'
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18143 $as_echo "host tool
" >&6; }
18145 # We need a cross tool
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18147 $as_echo "pre-installed
" >&6; }
18151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
18152 $as_echo_n "checking where to
find the target lipo...
" >&6; }
18153 if test "x
${build}" != "x
${host}" ; then
18154 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18155 # We already found the complete path
18156 ac_dir=`dirname $LIPO_FOR_TARGET`
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18158 $as_echo "pre-installed
in $ac_dir" >&6; }
18160 # Canadian cross, just use what we found
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18162 $as_echo "pre-installed
" >&6; }
18165 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18166 # We already found the complete path
18167 ac_dir=`dirname $LIPO_FOR_TARGET`
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18169 $as_echo "pre-installed
in $ac_dir" >&6; }
18170 elif test "x
$target" = "x
$host"; then
18171 # We can use an host tool
18172 LIPO_FOR_TARGET='$(LIPO)'
18173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18174 $as_echo "host tool
" >&6; }
18176 # We need a cross tool
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18178 $as_echo "pre-installed
" >&6; }
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
18183 $as_echo_n "checking where to
find the target nm...
" >&6; }
18184 if test "x
${build}" != "x
${host}" ; then
18185 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18186 # We already found the complete path
18187 ac_dir=`dirname $NM_FOR_TARGET`
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18189 $as_echo "pre-installed
in $ac_dir" >&6; }
18191 # Canadian cross, just use what we found
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18193 $as_echo "pre-installed
" >&6; }
18197 case " ${configdirs} " in
18202 if test $ok = yes; then
18203 # An in-tree tool is available and we can use it
18204 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18206 $as_echo "just compiled
" >&6; }
18207 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18208 # We already found the complete path
18209 ac_dir=`dirname $NM_FOR_TARGET`
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18211 $as_echo "pre-installed
in $ac_dir" >&6; }
18212 elif test "x
$target" = "x
$host"; then
18213 # We can use an host tool
18214 NM_FOR_TARGET='$(NM)'
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18216 $as_echo "host tool
" >&6; }
18218 # We need a cross tool
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18220 $as_echo "pre-installed
" >&6; }
18224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
18225 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
18226 if test "x
${build}" != "x
${host}" ; then
18227 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18228 # We already found the complete path
18229 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18231 $as_echo "pre-installed
in $ac_dir" >&6; }
18233 # Canadian cross, just use what we found
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18235 $as_echo "pre-installed
" >&6; }
18239 case " ${configdirs} " in
18244 if test $ok = yes; then
18245 # An in-tree tool is available and we can use it
18246 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18248 $as_echo "just compiled
" >&6; }
18249 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18250 # We already found the complete path
18251 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18253 $as_echo "pre-installed
in $ac_dir" >&6; }
18254 elif test "x
$target" = "x
$host"; then
18255 # We can use an host tool
18256 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18258 $as_echo "host tool
" >&6; }
18260 # We need a cross tool
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18262 $as_echo "pre-installed
" >&6; }
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
18267 $as_echo_n "checking where to
find the target objdump...
" >&6; }
18268 if test "x
${build}" != "x
${host}" ; then
18269 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18270 # We already found the complete path
18271 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18273 $as_echo "pre-installed
in $ac_dir" >&6; }
18275 # Canadian cross, just use what we found
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18277 $as_echo "pre-installed
" >&6; }
18281 case " ${configdirs} " in
18286 if test $ok = yes; then
18287 # An in-tree tool is available and we can use it
18288 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18290 $as_echo "just compiled
" >&6; }
18291 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18292 # We already found the complete path
18293 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18295 $as_echo "pre-installed
in $ac_dir" >&6; }
18296 elif test "x
$target" = "x
$host"; then
18297 # We can use an host tool
18298 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18299 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18300 $as_echo "host tool
" >&6; }
18302 # We need a cross tool
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18304 $as_echo "pre-installed
" >&6; }
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
18309 $as_echo_n "checking where to
find the target otool...
" >&6; }
18310 if test "x
${build}" != "x
${host}" ; then
18311 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18312 # We already found the complete path
18313 ac_dir=`dirname $OTOOL_FOR_TARGET`
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18315 $as_echo "pre-installed
in $ac_dir" >&6; }
18317 # Canadian cross, just use what we found
18318 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18319 $as_echo "pre-installed
" >&6; }
18322 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18323 # We already found the complete path
18324 ac_dir=`dirname $OTOOL_FOR_TARGET`
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18326 $as_echo "pre-installed
in $ac_dir" >&6; }
18327 elif test "x
$target" = "x
$host"; then
18328 # We can use an host tool
18329 OTOOL_FOR_TARGET='$(OTOOL)'
18330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18331 $as_echo "host tool
" >&6; }
18333 # We need a cross tool
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18335 $as_echo "pre-installed
" >&6; }
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
18340 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
18341 if test "x
${build}" != "x
${host}" ; then
18342 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18343 # We already found the complete path
18344 ac_dir=`dirname $RANLIB_FOR_TARGET`
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18346 $as_echo "pre-installed
in $ac_dir" >&6; }
18348 # Canadian cross, just use what we found
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18350 $as_echo "pre-installed
" >&6; }
18354 case " ${configdirs} " in
18359 if test $ok = yes; then
18360 # An in-tree tool is available and we can use it
18361 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18363 $as_echo "just compiled
" >&6; }
18364 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18365 # We already found the complete path
18366 ac_dir=`dirname $RANLIB_FOR_TARGET`
18367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18368 $as_echo "pre-installed
in $ac_dir" >&6; }
18369 elif test "x
$target" = "x
$host"; then
18370 # We can use an host tool
18371 RANLIB_FOR_TARGET='$(RANLIB)'
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18373 $as_echo "host tool
" >&6; }
18375 # We need a cross tool
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18377 $as_echo "pre-installed
" >&6; }
18381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18382 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18383 if test "x
${build}" != "x
${host}" ; then
18384 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18385 # We already found the complete path
18386 ac_dir=`dirname $READELF_FOR_TARGET`
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18388 $as_echo "pre-installed
in $ac_dir" >&6; }
18390 # Canadian cross, just use what we found
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18392 $as_echo "pre-installed
" >&6; }
18396 case " ${configdirs} " in
18401 if test $ok = yes; then
18402 # An in-tree tool is available and we can use it
18403 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18405 $as_echo "just compiled
" >&6; }
18406 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18407 # We already found the complete path
18408 ac_dir=`dirname $READELF_FOR_TARGET`
18409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18410 $as_echo "pre-installed
in $ac_dir" >&6; }
18411 elif test "x
$target" = "x
$host"; then
18412 # We can use an host tool
18413 READELF_FOR_TARGET='$(READELF)'
18414 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18415 $as_echo "host tool
" >&6; }
18417 # We need a cross tool
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18419 $as_echo "pre-installed
" >&6; }
18423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18424 $as_echo_n "checking where to
find the target strip...
" >&6; }
18425 if test "x
${build}" != "x
${host}" ; then
18426 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18427 # We already found the complete path
18428 ac_dir=`dirname $STRIP_FOR_TARGET`
18429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18430 $as_echo "pre-installed
in $ac_dir" >&6; }
18432 # Canadian cross, just use what we found
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18434 $as_echo "pre-installed
" >&6; }
18438 case " ${configdirs} " in
18443 if test $ok = yes; then
18444 # An in-tree tool is available and we can use it
18445 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18446 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18447 $as_echo "just compiled
" >&6; }
18448 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18449 # We already found the complete path
18450 ac_dir=`dirname $STRIP_FOR_TARGET`
18451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18452 $as_echo "pre-installed
in $ac_dir" >&6; }
18453 elif test "x
$target" = "x
$host"; then
18454 # We can use an host tool
18455 STRIP_FOR_TARGET='$(STRIP)'
18456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18457 $as_echo "host tool
" >&6; }
18459 # We need a cross tool
18460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18461 $as_echo "pre-installed
" >&6; }
18465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18466 $as_echo_n "checking where to
find the target windres...
" >&6; }
18467 if test "x
${build}" != "x
${host}" ; then
18468 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18469 # We already found the complete path
18470 ac_dir=`dirname $WINDRES_FOR_TARGET`
18471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18472 $as_echo "pre-installed
in $ac_dir" >&6; }
18474 # Canadian cross, just use what we found
18475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18476 $as_echo "pre-installed
" >&6; }
18480 case " ${configdirs} " in
18485 if test $ok = yes; then
18486 # An in-tree tool is available and we can use it
18487 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18489 $as_echo "just compiled
" >&6; }
18490 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18491 # We already found the complete path
18492 ac_dir=`dirname $WINDRES_FOR_TARGET`
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18494 $as_echo "pre-installed
in $ac_dir" >&6; }
18495 elif test "x
$target" = "x
$host"; then
18496 # We can use an host tool
18497 WINDRES_FOR_TARGET='$(WINDRES)'
18498 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18499 $as_echo "host tool
" >&6; }
18501 # We need a cross tool
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18503 $as_echo "pre-installed
" >&6; }
18507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18508 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18509 if test "x
${build}" != "x
${host}" ; then
18510 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18511 # We already found the complete path
18512 ac_dir=`dirname $WINDMC_FOR_TARGET`
18513 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18514 $as_echo "pre-installed
in $ac_dir" >&6; }
18516 # Canadian cross, just use what we found
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18518 $as_echo "pre-installed
" >&6; }
18522 case " ${configdirs} " in
18527 if test $ok = yes; then
18528 # An in-tree tool is available and we can use it
18529 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18530 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18531 $as_echo "just compiled
" >&6; }
18532 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18533 # We already found the complete path
18534 ac_dir=`dirname $WINDMC_FOR_TARGET`
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18536 $as_echo "pre-installed
in $ac_dir" >&6; }
18537 elif test "x
$target" = "x
$host"; then
18538 # We can use an host tool
18539 WINDMC_FOR_TARGET='$(WINDMC)'
18540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18541 $as_echo "host tool
" >&6; }
18543 # We need a cross tool
18544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18545 $as_echo "pre-installed
" >&6; }
18553 # Certain tools may need extra flags.
18554 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18555 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18556 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18558 # When building target libraries, except in a Canadian cross, we use
18559 # the same toolchain as the compiler we just built.
18560 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18561 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18562 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18563 if test $host = $build; then
18564 case " $configdirs " in
18566 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18567 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18568 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18578 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18579 # Check whether --enable-maintainer-mode was given.
18580 if test "${enable_maintainer_mode+set}" = set; then :
18581 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18583 USE_MAINTAINER_MODE=no
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18587 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18590 if test "$USE_MAINTAINER_MODE" = yes; then
18591 MAINTAINER_MODE_TRUE=
18592 MAINTAINER_MODE_FALSE='#'
18594 MAINTAINER_MODE_TRUE='#'
18595 MAINTAINER_MODE_FALSE=
18597 MAINT=$MAINTAINER_MODE_TRUE
18599 # ---------------------
18600 # GCC bootstrap support
18601 # ---------------------
18603 # Stage specific cflags for build.
18608 yes) stage1_cflags="-g -Wa,-J" ;;
18609 *) stage1_cflags="-g -J" ;;
18615 # Enable --enable-checking in stage1 of the compiler.
18616 # Check whether --enable-stage1-checking was given.
18617 if test "${enable_stage1_checking+set}" = set; then :
18618 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18620 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18621 # For --disable-checking or implicit --enable-checking=release, avoid
18622 # setting --enable-checking=gc in the default stage1 checking for LTO
18623 # bootstraps. See PR62077.
18624 case $BUILD_CONFIG in
18626 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18628 stage1_checking=--enable-checking=yes,types;;
18630 if test "x
$enable_checking" = x && \
18631 test -d ${srcdir}/gcc && \
18632 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18633 stage1_checking=--enable-checking=yes,types,extra
18636 stage1_checking=--enable-checking=$enable_checking,types
18642 # Enable -Werror in bootstrap stage2 and later.
18643 # Check whether --enable-werror was given.
18644 if test "${enable_werror+set}" = set; then :
18645 enableval=$enable_werror;
18646 case ${enable_werror} in
18647 yes) stage2_werror_flag="--enable-werror-always" ;;
18648 *) stage2_werror_flag="" ;;
18653 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18654 case $BUILD_CONFIG in
18656 stage2_werror_flag="--enable-werror-always" ;;
18658 stage2_werror_flag="--enable-werror-always" ;;
18667 # Specify what files to not compare during bootstrap.
18669 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18670 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/M2Version
*"
18671 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2-compiler-boot
/SYSTEM
*"
18672 compare_exclusions="$compare_exclusions | gcc
/m
2/gm2version
*"
18674 hppa*64*-*-hpux*) ;;
18675 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18679 ac_config_files="$ac_config_files Makefile
"
18681 cat >confcache <<\_ACEOF
18682 # This file is a shell script that caches the results of configure
18683 # tests run on this system so they can be shared between configure
18684 # scripts and configure runs, see configure's option --config-cache.
18685 # It is not useful on other systems. If it contains results you don't
18686 # want to keep, you may remove or edit it.
18688 # config.status only pays attention to the cache file if you give it
18689 # the --recheck option to rerun configure.
18691 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18692 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18693 # following values.
18697 # The following way of writing the cache mishandles newlines in values,
18698 # but we know of no workaround that is simple, portable, and efficient.
18699 # So, we kill variables containing newlines.
18700 # Ultrix sh set writes to stderr and can't be redirected directly,
18701 # and sets the high bit in the cache file unless we assign to the vars.
18703 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18704 eval ac_val=\$$ac_var
18708 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18709 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18712 _ | IFS | as_nl) ;; #(
18713 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18714 *) { eval $ac_var=; unset $ac_var;} ;;
18720 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18721 *${as_nl}ac_space=\ *)
18722 # `set' does not quote correctly, so add quotes: double-quote
18723 # substitution turns \\\\ into \\, and sed turns \\ into \.
18726 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18729 # `set' quotes correctly as required by POSIX, so do not add quotes.
18730 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18739 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18741 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18743 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18744 if test -w "$cache_file"; then
18745 if test "x
$cache_file" != "x
/dev
/null
"; then
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18747 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18748 if test ! -f "$cache_file" || test -h "$cache_file"; then
18749 cat confcache >"$cache_file"
18751 case $cache_file in #(
18753 mv -f confcache "$cache_file"$$ &&
18754 mv -f "$cache_file"$$ "$cache_file" ;; #(
18756 mv -f confcache "$cache_file" ;;
18761 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18762 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18767 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18768 # Let make expand exec_prefix.
18769 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18771 # Transform confdefs.h into DEFS.
18772 # Protect against shell expansion while executing Makefile rules.
18773 # Protect against Makefile macro expansion.
18775 # If the first sed substitution is executed (which looks for macros that
18776 # take arguments), then branch to the quote section. Otherwise,
18777 # look for a macro that doesn't take arguments.
18787 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18789 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18793 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18806 DEFS=`sed -n "$ac_script" confdefs.h`
18812 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18813 # 1. Remove the extension, and $U if already installed.
18814 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18815 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18816 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18817 # will be set to the directory where LIBOBJS objects are built.
18818 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18819 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
18821 LIBOBJS=$ac_libobjs
18823 LTLIBOBJS=$ac_ltlibobjs
18827 : "${CONFIG_STATUS=./config.status}"
18829 ac_clean_files_save=$ac_clean_files
18830 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18831 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18832 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18834 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18836 # Generated by $as_me.
18837 # Run this file to recreate the current configuration.
18838 # Compiler output produced by configure, useful for debugging
18839 # configure, is in config.log if it exists.
18842 ac_cs_recheck=false
18845 SHELL=\${CONFIG_SHELL-$SHELL}
18848 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18849 ## -------------------- ##
18850 ## M4sh Initialization. ##
18851 ## -------------------- ##
18853 # Be more Bourne compatible
18854 DUALCASE=1; export DUALCASE # for MKS sh
18855 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18858 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18859 # is contrary to our usage. Disable this feature.
18860 alias -g '${1+"$@"}'='"$@"'
18861 setopt NO_GLOB_SUBST
18863 case `(set -o) 2>/dev/null` in #(
18875 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18876 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18877 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
18878 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18879 # Prefer a ksh shell builtin over an external printf program on Solaris,
18880 # but without wasting forks for bash or zsh.
18881 if test -z "$BASH_VERSION$ZSH_VERSION" \
18882 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18883 as_echo
='print -r --'
18884 as_echo_n
='print -rn --'
18885 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18886 as_echo
='printf %s\n'
18887 as_echo_n
='printf %s'
18889 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18890 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
18891 as_echo_n
='/usr/ucb/echo -n'
18893 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
18894 as_echo_n_body
='eval
18898 expr "X$arg" : "X\\(.*\\)$as_nl";
18899 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18901 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18903 export as_echo_n_body
18904 as_echo_n
='sh -c $as_echo_n_body as_echo'
18906 export as_echo_body
18907 as_echo
='sh -c $as_echo_body as_echo'
18910 # The user is always right.
18911 if test "${PATH_SEPARATOR+set}" != set; then
18913 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
18914 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
18921 # We need space, tab and new line, in precisely that order. Quoting is
18922 # there to prevent editors from complaining about space-tab.
18923 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18924 # splitting by setting IFS to empty value.)
18927 # Find who we are. Look in the path if we contain no directory separator.
18930 *[\\/]* ) as_myself
=$0 ;;
18931 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18932 for as_dir
in $PATH
18935 test -z "$as_dir" && as_dir
=.
18936 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18942 # We did not find ourselves, most probably we were run as `sh COMMAND'
18943 # in which case we are not to be found in the path.
18944 if test "x$as_myself" = x
; then
18947 if test ! -f "$as_myself"; then
18948 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18952 # Unset variables that we do not need and which cause bugs (e.g. in
18953 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18954 # suppresses any "Segmentation fault" message there. '((' could
18955 # trigger a bug in pdksh 5.2.14.
18956 for as_var
in BASH_ENV ENV MAIL MAILPATH
18957 do eval test x\
${$as_var+set} = xset \
18958 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18971 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18974 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18975 # ----------------------------------------
18976 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18977 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18978 # script with STATUS, using 1 if that was 0.
18981 as_status
=$1; test $as_status -eq 0 && as_status
=1
18983 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18984 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18986 $as_echo "$as_me: error: $2" >&2
18987 as_fn_exit
$as_status
18991 # as_fn_set_status STATUS
18992 # -----------------------
18993 # Set $? to STATUS, without forking.
18994 as_fn_set_status
()
18997 } # as_fn_set_status
18999 # as_fn_exit STATUS
19000 # -----------------
19001 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
19005 as_fn_set_status
$1
19011 # Portably unset VAR.
19014 { eval $1=; unset $1;}
19016 as_unset
=as_fn_unset
19017 # as_fn_append VAR VALUE
19018 # ----------------------
19019 # Append the text in VALUE to the end of the definition contained in VAR. Take
19020 # advantage of any shell optimizations that allow amortized linear growth over
19021 # repeated appends, instead of the typical quadratic growth present in naive
19023 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
19024 eval 'as_fn_append ()
19035 # as_fn_arith ARG...
19036 # ------------------
19037 # Perform arithmetic evaluation on the ARGs, and store the result in the
19038 # global $as_val. Take advantage of shells that can avoid forks. The arguments
19039 # must be portable across $(()) and expr.
19040 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
19041 eval 'as_fn_arith ()
19048 as_val
=`expr "$@" || test $? -eq 1`
19053 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
19054 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
19060 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
19061 as_basename
=basename
19066 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
19072 as_me
=`$as_basename -- "$0" ||
19073 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
19074 X"$0" : 'X\(//\)$' \| \
19075 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
19077 sed '/^.*\/\([^/][^/]*\)\/*$/{
19091 # Avoid depending upon Character Ranges.
19092 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
19093 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
19094 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
19095 as_cr_digits
='0123456789'
19096 as_cr_alnum
=$as_cr_Letters$as_cr_digits
19098 ECHO_C
= ECHO_N
= ECHO_T
=
19099 case `echo -n x` in #(((((
19101 case `echo 'xy\c'` in
19102 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
19104 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
19111 rm -f conf$$ conf$$.exe conf$$.
file
19112 if test -d conf$$.dir
; then
19113 rm -f conf$$.dir
/conf$$.
file
19116 mkdir conf$$.dir
2>/dev
/null
19118 if (echo >conf$$.
file) 2>/dev
/null
; then
19119 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
19121 # ... but there are two gotchas:
19122 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19123 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19124 # In both cases, we have to default to `cp -pR'.
19125 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19127 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19135 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19136 rmdir conf$$.dir
2>/dev
/null
19141 # Create "$as_dir" as a directory, including parents if necessary.
19146 -*) as_dir
=.
/$as_dir;;
19148 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19152 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19153 *) as_qdir
=$as_dir;;
19155 as_dirs
="'$as_qdir' $as_dirs"
19156 as_dir
=`$as_dirname -- "$as_dir" ||
19157 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19158 X"$as_dir" : 'X\(//\)[^/]' \| \
19159 X"$as_dir" : 'X\(//\)$' \| \
19160 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19161 $as_echo X"$as_dir" |
19162 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19166 /^X\(\/\/\)[^/].*/{
19179 test -d "$as_dir" && break
19181 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19182 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19186 if mkdir
-p .
2>/dev
/null
; then
19187 as_mkdir_p
='mkdir -p "$as_dir"'
19189 test -d .
/-p && rmdir .
/-p
19194 # as_fn_executable_p FILE
19195 # -----------------------
19196 # Test if FILE is an executable regular file.
19197 as_fn_executable_p
()
19199 test -f "$1" && test -x "$1"
19200 } # as_fn_executable_p
19201 as_test_x
='test -x'
19202 as_executable_p
=as_fn_executable_p
19204 # Sed expression to map a string onto a valid CPP name.
19205 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19207 # Sed expression to map a string onto a valid variable name.
19208 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19212 ## ----------------------------------- ##
19213 ## Main body of $CONFIG_STATUS script. ##
19214 ## ----------------------------------- ##
19216 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19219 # Save the log message, to keep $0 and so on meaningful, and to
19220 # report actual input values of CONFIG_FILES etc. instead of their
19221 # values after options handling.
19223 This file was extended by $as_me, which was
19224 generated by GNU Autoconf 2.69. Invocation command line was
19226 CONFIG_FILES = $CONFIG_FILES
19227 CONFIG_HEADERS = $CONFIG_HEADERS
19228 CONFIG_LINKS = $CONFIG_LINKS
19229 CONFIG_COMMANDS = $CONFIG_COMMANDS
19232 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19237 case $ac_config_files in *"
19238 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19244 # Files that config.status was made for.
19245 config_files="$ac_config_files"
19249 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19251 \`$as_me' instantiates files and other configuration actions
19252 from templates according to the current configuration. Unless the files
19253 and actions are specified as TAGs, all are instantiated by default.
19255 Usage: $0 [OPTION]... [TAG]...
19257 -h, --help print this help, then exit
19258 -V, --version print version number and configuration settings, then exit
19259 --config print configuration, then exit
19260 -q, --quiet, --silent
19261 do not print progress messages
19262 -d, --debug don't remove temporary files
19263 --recheck update $as_me by reconfiguring in the same conditions
19264 --file=FILE[:TEMPLATE]
19265 instantiate the configuration file FILE
19267 Configuration files:
19270 Report bugs to the package provider."
19273 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19274 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19277 configured by $0, generated by GNU Autoconf 2.69,
19278 with options \\"\$ac_cs_config\\"
19280 Copyright (C) 2012 Free Software Foundation, Inc.
19281 This config.status script is free software; the Free Software Foundation
19282 gives unlimited permission to copy, distribute and modify it."
19288 test -n "\$AWK" || AWK=awk
19291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19292 # The default lists apply if the user does not specify any file.
19298 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19299 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19303 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19315 # Handling of the options.
19316 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19318 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19319 $as_echo "$ac_cs_version"; exit ;;
19320 --config |
--confi |
--conf |
--con |
--co |
--c )
19321 $as_echo "$ac_cs_config"; exit ;;
19322 --debug |
--debu |
--deb |
--de |
--d |
-d )
19324 --file |
--fil |
--fi |
--f )
19327 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19328 '') as_fn_error $?
"missing file argument" ;;
19330 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19331 ac_need_defaults
=false
;;
19332 --he |
--h |
--help |
--hel |
-h )
19333 $as_echo "$ac_cs_usage"; exit ;;
19334 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19335 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19338 # This is an error.
19339 -*) as_fn_error $?
"unrecognized option: \`$1'
19340 Try \`$0 --help' for more information." ;;
19342 *) as_fn_append ac_config_targets
" $1"
19343 ac_need_defaults
=false
;;
19349 ac_configure_extra_args
=
19351 if $ac_cs_silent; then
19353 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19357 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19358 if \$ac_cs_recheck; then
19359 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19361 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19362 CONFIG_SHELL='$SHELL'
19363 export CONFIG_SHELL
19368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19372 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19373 ## Running $as_me. ##
19379 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19383 extrasub_build="$extrasub_build"
19384 extrasub_host="$extrasub_host"
19385 extrasub_target="$extrasub_target"
19389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19391 # Handling of arguments.
19392 for ac_config_target
in $ac_config_targets
19394 case $ac_config_target in
19395 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19397 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19402 # If the user did not use the arguments to specify the items to instantiate,
19403 # then the envvar interface is used. Set only those that are not.
19404 # We use the long form for the default assignment because of an extremely
19405 # bizarre bug on SunOS 4.1.3.
19406 if $ac_need_defaults; then
19407 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19410 # Have a temporary directory for convenience. Make it in the build tree
19411 # simply because there is no reason against having it here, and in addition,
19412 # creating and moving files from /tmp can sometimes cause problems.
19413 # Hook for its removal unless debugging.
19414 # Note that there is a small window in which the directory will not be cleaned:
19415 # after its creation but before its name has been assigned to `$tmp'.
19419 trap 'exit_status=$?
19420 : "${ac_tmp:=$tmp}"
19421 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19423 trap 'as_fn_exit 1' 1 2 13 15
19425 # Create a (secure) tmp directory for tmp files.
19428 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19432 tmp
=.
/conf$$
-$RANDOM
19433 (umask 077 && mkdir
"$tmp")
19434 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19437 # Set up the scripts for CONFIG_FILES section.
19438 # No need to generate them if there are no CONFIG_FILES.
19439 # This happens for instance with `./config.status config.h'.
19440 if test -n "$CONFIG_FILES"; then
19442 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19443 ac_cs_awk_getline
=:
19444 ac_cs_awk_pipe_init
=
19445 ac_cs_awk_read_file
='
19446 while ((getline aline < (F[key])) > 0)
19449 ac_cs_awk_pipe_fini
=
19451 ac_cs_awk_getline
=false
19452 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19453 ac_cs_awk_read_file
='
19455 print "cat " F[key] " &&"
19456 '$ac_cs_awk_pipe_init
19457 # The final `:' finishes the AND list.
19458 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19460 ac_cr
=`echo X | tr X '\015'`
19461 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19462 # But we know of no other shell where ac_cr would be empty at this
19463 # point, so we can use a bashism as a fallback.
19464 if test "x$ac_cr" = x
; then
19465 eval ac_cr
=\$
\'\\r
\'
19467 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19468 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19471 ac_cs_awk_cr
=$ac_cr
19474 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19477 # Create commands to substitute file output variables.
19479 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19480 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19481 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19484 } >conf$
$files.sh
&&
19485 . .
/conf$
$files.sh ||
19486 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19487 rm -f conf$
$files.sh
19490 echo "cat >conf$$subs.awk <<_ACEOF" &&
19491 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19493 } >conf$$subs.sh ||
19494 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19495 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19497 for ac_last_try in false false false false false :; do
19498 . ./conf$$subs.sh ||
19499 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19501 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19502 if test $ac_delim_n = $ac_delim_num; then
19504 elif $ac_last_try; then
19505 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19507 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19510 rm -f conf$$subs.sh
19512 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19513 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19517 s/^/S["/; s
/!.
*/"]=/
19527 s/\(.\{148\}\)..*/\1/
19529 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19534 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19541 s/\(.\{148\}\)..*/\1/
19543 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19547 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19552 ' <conf$$subs.awk | sed '
19557 ' >>$CONFIG_STATUS || ac_write_fail=1
19558 rm -f conf$$subs.awk
19559 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19561 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19562 for (key in S) S_is_set[key] = 1
19564 \$ac_cs_awk_pipe_init
19568 nfields = split(line, field, "@
")
19570 len = length(field[1])
19571 for (i = 2; i < nfields; i++) {
19573 keylen = length(key)
19574 if (S_is_set[key]) {
19576 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19577 len += length(value) + length(field[++i])
19582 if (nfields == 3 && !substed) {
19584 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19585 \$ac_cs_awk_read_file
19591 \$ac_cs_awk_pipe_fini
19594 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19595 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19596 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19599 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19600 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19603 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19604 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19605 # trailing colons and then remove the whole line if VPATH becomes empty
19606 # (actually we leave an empty line to preserve line numbers).
19607 if test "x
$srcdir" = x.; then
19608 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19626 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19627 fi # test -n "$CONFIG_FILES"
19630 eval set X " :F
$CONFIG_FILES "
19635 :[FHLC]) ac_mode=$ac_tag; continue;;
19637 case $ac_mode$ac_tag in
19639 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19640 :[FH]-) ac_tag=-:-;;
19641 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19658 -) ac_f="$ac_tmp/stdin";;
19659 *) # Look for the file first in the build tree, then in the source tree
19660 # (if the path is not absolute). The absolute path cannot be DOS-style,
19661 # because $ac_f cannot contain `:'.
19665 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19667 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19669 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19670 as_fn_append ac_file_inputs " '$ac_f'"
19673 # Let's still pretend it is `configure' which instantiates (i.e., don't
19674 # use $as_me), people would be surprised to read:
19675 # /* config.h. Generated by config.status. */
19676 configure_input='Generated from '`
19677 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19679 if test x"$ac_file" != x-; then
19680 configure_input="$ac_file.
$configure_input"
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19682 $as_echo "$as_me: creating
$ac_file" >&6;}
19684 # Neutralize special characters interpreted by sed in replacement strings.
19685 case $configure_input in #(
19686 *\&* | *\|* | *\\* )
19687 ac_sed_conf_input=`$as_echo "$configure_input" |
19688 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19689 *) ac_sed_conf_input=$configure_input;;
19693 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19694 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19699 ac_dir=`$as_dirname -- "$ac_file" ||
19700 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19701 X"$ac_file" : 'X\(//\)[^/]' \| \
19702 X"$ac_file" : 'X\(//\)$' \| \
19703 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19704 $as_echo X"$ac_file" |
19705 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19709 /^X\(\/\/\)[^/].*/{
19722 as_dir="$ac_dir"; as_fn_mkdir_p
19726 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19728 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19729 # A "..
" for each directory in $ac_dir_suffix.
19730 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19731 case $ac_top_builddir_sub in
19732 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19733 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19736 ac_abs_top_builddir=$ac_pwd
19737 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19738 # for backward compatibility:
19739 ac_top_builddir=$ac_top_build_prefix
19742 .) # We are building in place.
19744 ac_top_srcdir=$ac_top_builddir_sub
19745 ac_abs_top_srcdir=$ac_pwd ;;
19746 [\\/]* | ?:[\\/]* ) # Absolute name.
19747 ac_srcdir=$srcdir$ac_dir_suffix;
19748 ac_top_srcdir=$srcdir
19749 ac_abs_top_srcdir=$srcdir ;;
19750 *) # Relative name.
19751 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19752 ac_top_srcdir=$ac_top_build_prefix$srcdir
19753 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19755 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19765 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19766 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19770 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19771 # If the template does not know about datarootdir, expand it.
19772 # FIXME: This hack should be removed a few years after 2.60.
19773 ac_datarootdir_hack=; ac_datarootdir_seen=
19784 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19785 *datarootdir*) ac_datarootdir_seen=yes;;
19786 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19788 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19790 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19791 ac_datarootdir_hack='
19792 s&@datadir@&$datadir&g
19793 s&@docdir@&$docdir&g
19794 s&@infodir@&$infodir&g
19795 s&@localedir@&$localedir&g
19796 s&@mandir@&$mandir&g
19797 s&\\\${datarootdir}&$datarootdir&g' ;;
19801 # Neutralize VPATH when `$srcdir' = `.'.
19802 # Shell code in configure.ac might set extrasub.
19803 # FIXME: do we really want to maintain this feature?
19804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19805 ac_sed_extra="$ac_vpsub
19808 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19810 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19811 s|@configure_input@|
$ac_sed_conf_input|
;t t
19812 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19813 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19814 s
&@srcdir@
&$ac_srcdir&;t t
19815 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19816 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19817 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19818 s
&@builddir@
&$ac_builddir&;t t
19819 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19820 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19821 s
&@INSTALL@
&$ac_INSTALL&;t t
19822 $ac_datarootdir_hack
19824 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19825 if $ac_cs_awk_getline; then
19826 $AWK -f "$ac_tmp/subs.
awk"
19828 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19830 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19832 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19833 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19834 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19835 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19837 which seems to be undefined. Please make sure it is defined" >&5
19838 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19839 which seems to be undefined. Please make sure it is defined" >&2;}
19841 rm -f "$ac_tmp/stdin"
19843 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19844 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19846 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19854 case $ac_file$ac_mode in
19855 "Makefile":F) sed "$extrasub_build" Makefile |
19856 sed "$extrasub_host" |
19857 sed "$extrasub_target" > mf$$
19858 mv -f mf$$ Makefile ;;
19866 ac_clean_files=$ac_clean_files_save
19868 test $ac_write_fail = 0 ||
19869 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19872 # configure is writing to config.log, and then calls config.status.
19873 # config.status does its own redirection, appending to config.log.
19874 # Unfortunately, on DOS this fails, as config.log is still kept open
19875 # by configure, so config.status won't be able to
write to it
; its
19876 # output is simply discarded. So we exec the FD to /dev/null,
19877 # effectively closing config.log, so it can be properly (re)opened and
19878 # appended to by config.status. When coming back to configure, we
19879 # need to make the FD available again.
19880 if test "$no_create" != yes; then
19882 ac_config_status_args
=
19883 test "$silent" = yes &&
19884 ac_config_status_args
="$ac_config_status_args --quiet"
19886 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19888 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19889 # would make configure fail if this is the last instruction.
19890 $ac_cs_success || as_fn_exit
1
19892 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19893 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19894 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}