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
684 DEBUG_PREFIX_CFLAGS_FOR_TARGET
685 SYSROOT_CFLAGS_FOR_TARGET
687 extra_host_zlib_configure_flags
688 extra_host_libiberty_configure_flags
691 extra_linker_plugin_flags
692 extra_linker_plugin_configure_flags
699 extra_isl_gmp_configure_flags
700 extra_mpc_mpfr_configure_flags
701 extra_mpc_gmp_configure_flags
702 extra_mpfr_configure_flags
724 extra_liboffloadmic_configure_flags
751 TOPLEVEL_CONFIGURE_ARGUMENTS
779 program_transform_name
790 ac_subst_files
='serialization_dependencies
796 enable_option_checking
800 enable_as_accelerator_for
801 enable_offload_targets
802 enable_offload_defaulted
806 enable_compressed_debug_sections
807 enable_default_compressed_debug_sections_algorithm
810 enable_libquadmath_support
827 with_static_standard_libraries
834 enable_isl_version_check
836 enable_linker_plugin_configure_flags
837 enable_linker_plugin_flags
839 enable_stage1_languages
842 with_target_bdw_gc_include
843 with_target_bdw_gc_lib
844 with_gcc_major_version_only
846 with_debug_prefix_map
849 enable_serial_configure
850 with_build_time_tools
851 enable_maintainer_mode
852 enable_stage1_checking
855 ac_precious_vars
='build_alias
907 # Initialize some variables set by options.
909 ac_init_version
=false
910 ac_unrecognized_opts
=
912 # The variables have the same names as the options, with
913 # dashes changed to underlines.
921 program_transform_name
=s
,x
,x
,
929 # Installation directory options.
930 # These are left unexpanded so users can "make install exec_prefix=/foo"
931 # and all the variables that are supposed to be based on exec_prefix
932 # by default will actually change.
933 # Use braces instead of parens because sh, perl, etc. also accept them.
934 # (The list follows the same order as the GNU Coding Standards.)
935 bindir
='${exec_prefix}/bin'
936 sbindir
='${exec_prefix}/sbin'
937 libexecdir
='${exec_prefix}/libexec'
938 datarootdir
='${prefix}/share'
939 datadir
='${datarootdir}'
940 sysconfdir
='${prefix}/etc'
941 sharedstatedir
='${prefix}/com'
942 localstatedir
='${prefix}/var'
943 includedir
='${prefix}/include'
944 oldincludedir
='/usr/include'
945 docdir
='${datarootdir}/doc/${PACKAGE}'
946 infodir
='${datarootdir}/info'
951 libdir
='${exec_prefix}/lib'
952 localedir
='${datarootdir}/locale'
953 mandir
='${datarootdir}/man'
959 # If the previous option needs an argument, assign it.
960 if test -n "$ac_prev"; then
961 eval $ac_prev=\
$ac_option
967 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
972 # Accept the important Cygnus configure options, so we can diagnose typos.
974 case $ac_dashdash$ac_option in
978 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
980 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
983 -build |
--build |
--buil |
--bui |
--bu)
984 ac_prev
=build_alias
;;
985 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
986 build_alias
=$ac_optarg ;;
988 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
989 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
990 ac_prev
=cache_file
;;
991 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
992 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
993 cache_file
=$ac_optarg ;;
996 cache_file
=config.cache
;;
998 -datadir |
--datadir |
--datadi |
--datad)
1000 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1001 datadir
=$ac_optarg ;;
1003 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1004 |
--dataroo |
--dataro |
--datar)
1005 ac_prev
=datarootdir
;;
1006 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1007 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1008 datarootdir
=$ac_optarg ;;
1010 -disable-* |
--disable-*)
1011 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1014 as_fn_error $?
"invalid feature name: $ac_useropt"
1015 ac_useropt_orig
=$ac_useropt
1016 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1017 case $ac_user_opts in
1019 "enable_
$ac_useropt"
1021 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1022 ac_unrecognized_sep
=', ';;
1024 eval enable_
$ac_useropt=no
;;
1026 -docdir |
--docdir |
--docdi |
--doc |
--do)
1028 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1029 docdir
=$ac_optarg ;;
1031 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1033 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1034 dvidir
=$ac_optarg ;;
1036 -enable-* |
--enable-*)
1037 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1038 # Reject names that are not valid shell variable names.
1039 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1040 as_fn_error $?
"invalid feature name: $ac_useropt"
1041 ac_useropt_orig
=$ac_useropt
1042 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1043 case $ac_user_opts in
1045 "enable_
$ac_useropt"
1047 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1048 ac_unrecognized_sep
=', ';;
1050 eval enable_
$ac_useropt=\
$ac_optarg ;;
1052 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1053 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1054 |
--exec |
--exe |
--ex)
1055 ac_prev
=exec_prefix
;;
1056 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1057 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1058 |
--exec=* |
--exe=* |
--ex=*)
1059 exec_prefix
=$ac_optarg ;;
1061 -gas |
--gas |
--ga |
--g)
1062 # Obsolete; use --with-gas.
1065 -help |
--help |
--hel |
--he |
-h)
1066 ac_init_help
=long
;;
1067 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1068 ac_init_help
=recursive
;;
1069 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1070 ac_init_help
=short
;;
1072 -host |
--host |
--hos |
--ho)
1073 ac_prev
=host_alias
;;
1074 -host=* |
--host=* |
--hos=* |
--ho=*)
1075 host_alias
=$ac_optarg ;;
1077 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1079 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1081 htmldir
=$ac_optarg ;;
1083 -includedir |
--includedir |
--includedi |
--included |
--include \
1084 |
--includ |
--inclu |
--incl |
--inc)
1085 ac_prev
=includedir
;;
1086 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1087 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1088 includedir
=$ac_optarg ;;
1090 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1092 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1093 infodir
=$ac_optarg ;;
1095 -libdir |
--libdir |
--libdi |
--libd)
1097 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1098 libdir
=$ac_optarg ;;
1100 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1101 |
--libexe |
--libex |
--libe)
1102 ac_prev
=libexecdir
;;
1103 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1104 |
--libexe=* |
--libex=* |
--libe=*)
1105 libexecdir
=$ac_optarg ;;
1107 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1108 ac_prev
=localedir
;;
1109 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1110 localedir
=$ac_optarg ;;
1112 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1113 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1114 ac_prev
=localstatedir
;;
1115 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1116 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1117 localstatedir
=$ac_optarg ;;
1119 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1121 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1122 mandir
=$ac_optarg ;;
1124 -nfp |
--nfp |
--nf)
1125 # Obsolete; use --without-fp.
1128 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1129 |
--no-cr |
--no-c |
-n)
1132 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1133 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1136 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1137 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1138 |
--oldin |
--oldi |
--old |
--ol |
--o)
1139 ac_prev
=oldincludedir
;;
1140 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1141 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1142 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1143 oldincludedir
=$ac_optarg ;;
1145 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1147 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1148 prefix
=$ac_optarg ;;
1150 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1151 |
--program-pre |
--program-pr |
--program-p)
1152 ac_prev
=program_prefix
;;
1153 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1154 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1155 program_prefix
=$ac_optarg ;;
1157 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1158 |
--program-suf |
--program-su |
--program-s)
1159 ac_prev
=program_suffix
;;
1160 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1161 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1162 program_suffix
=$ac_optarg ;;
1164 -program-transform-name |
--program-transform-name \
1165 |
--program-transform-nam |
--program-transform-na \
1166 |
--program-transform-n |
--program-transform- \
1167 |
--program-transform |
--program-transfor \
1168 |
--program-transfo |
--program-transf \
1169 |
--program-trans |
--program-tran \
1170 |
--progr-tra |
--program-tr |
--program-t)
1171 ac_prev
=program_transform_name
;;
1172 -program-transform-name=* |
--program-transform-name=* \
1173 |
--program-transform-nam=* |
--program-transform-na=* \
1174 |
--program-transform-n=* |
--program-transform-=* \
1175 |
--program-transform=* |
--program-transfor=* \
1176 |
--program-transfo=* |
--program-transf=* \
1177 |
--program-trans=* |
--program-tran=* \
1178 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1179 program_transform_name
=$ac_optarg ;;
1181 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1183 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1184 pdfdir
=$ac_optarg ;;
1186 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1188 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1191 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1192 |
-silent |
--silent |
--silen |
--sile |
--sil)
1195 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1197 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1199 sbindir
=$ac_optarg ;;
1201 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1202 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1203 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1205 ac_prev
=sharedstatedir
;;
1206 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1207 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1208 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1210 sharedstatedir
=$ac_optarg ;;
1212 -site |
--site |
--sit)
1214 -site=* |
--site=* |
--sit=*)
1217 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1219 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1220 srcdir
=$ac_optarg ;;
1222 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1223 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1224 ac_prev
=sysconfdir
;;
1225 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1226 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1227 sysconfdir
=$ac_optarg ;;
1229 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1230 ac_prev
=target_alias
;;
1231 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1232 target_alias
=$ac_optarg ;;
1234 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1237 -version |
--version |
--versio |
--versi |
--vers |
-V)
1238 ac_init_version
=: ;;
1241 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1242 # Reject names that are not valid shell variable names.
1243 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1244 as_fn_error $?
"invalid package name: $ac_useropt"
1245 ac_useropt_orig
=$ac_useropt
1246 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1247 case $ac_user_opts in
1251 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1252 ac_unrecognized_sep
=', ';;
1254 eval with_
$ac_useropt=\
$ac_optarg ;;
1256 -without-* |
--without-*)
1257 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1258 # Reject names that are not valid shell variable names.
1259 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1260 as_fn_error $?
"invalid package name: $ac_useropt"
1261 ac_useropt_orig
=$ac_useropt
1262 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1263 case $ac_user_opts in
1267 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1268 ac_unrecognized_sep
=', ';;
1270 eval with_
$ac_useropt=no
;;
1273 # Obsolete; use --with-x.
1276 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1277 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1278 ac_prev
=x_includes
;;
1279 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1280 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1281 x_includes
=$ac_optarg ;;
1283 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1284 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1285 ac_prev
=x_libraries
;;
1286 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1287 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1288 x_libraries
=$ac_optarg ;;
1290 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1291 Try \`$0 --help' for more information"
1295 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1296 # Reject names that are not valid shell variable names.
1297 case $ac_envvar in #(
1298 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1299 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1301 eval $ac_envvar=\
$ac_optarg
1302 export $ac_envvar ;;
1305 # FIXME: should be removed in autoconf 3.0.
1306 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1307 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1308 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1309 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1315 if test -n "$ac_prev"; then
1316 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1317 as_fn_error $?
"missing argument to $ac_option"
1320 if test -n "$ac_unrecognized_opts"; then
1321 case $enable_option_checking in
1323 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1324 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1328 # Check all directory arguments for consistency.
1329 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1330 datadir sysconfdir sharedstatedir localstatedir includedir \
1331 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1332 libdir localedir mandir
1334 eval ac_val
=\$
$ac_var
1335 # Remove trailing slashes.
1338 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1339 eval $ac_var=\
$ac_val;;
1341 # Be sure to have absolute directory names.
1343 [\\/$
]* | ?
:[\\/]* ) continue;;
1344 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1346 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1349 # There might be people who depend on the old broken behavior: `$host'
1350 # used to hold the argument of --host etc.
1351 # FIXME: To remove some day.
1354 target
=$target_alias
1356 # FIXME: To remove some day.
1357 if test "x$host_alias" != x
; then
1358 if test "x$build_alias" = x
; then
1359 cross_compiling
=maybe
1360 elif test "x$build_alias" != "x$host_alias"; then
1366 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1368 test "$silent" = yes && exec 6>/dev
/null
1371 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1372 ac_ls_di
=`ls -di .` &&
1373 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1374 as_fn_error $?
"working directory cannot be determined"
1375 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1376 as_fn_error $?
"pwd does not report name of working directory"
1379 # Find the source files, if location was not specified.
1380 if test -z "$srcdir"; then
1381 ac_srcdir_defaulted
=yes
1382 # Try the directory containing this script, then the parent directory.
1383 ac_confdir
=`$as_dirname -- "$as_myself" ||
1384 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1385 X"$as_myself" : 'X\(//\)[^/]' \| \
1386 X"$as_myself" : 'X\(//\)$' \| \
1387 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1388 $as_echo X"$as_myself" |
1389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1411 ac_srcdir_defaulted
=no
1413 if test ! -r "$srcdir/$ac_unique_file"; then
1414 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1415 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1417 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1419 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1421 # When building in place, set srcdir=.
1422 if test "$ac_abs_confdir" = "$ac_pwd"; then
1425 # Remove unnecessary trailing slashes from srcdir.
1426 # Double slashes in file names in object file debugging info
1427 # mess up M-x gdb in Emacs.
1429 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1433 as_fn_error $?
"path to source, $srcdir, contains spaces"
1436 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1438 for ac_var
in $ac_precious_vars; do
1439 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1440 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1441 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1442 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1446 # Report the --help message.
1448 if test "$ac_init_help" = "long"; then
1449 # Omit some internal or obsolete options to make the list less imposing.
1450 # This message is too long to be a string in the A/UX 3.1 sh.
1452 \`configure' configures this package to adapt to many kinds of systems.
1454 Usage: $0 [OPTION]... [VAR=VALUE]...
1456 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1457 VAR=VALUE. See below for descriptions of some of the useful variables.
1459 Defaults for the options are specified in brackets.
1462 -h, --help display this help and exit
1463 --help=short display options specific to this package
1464 --help=recursive display the short help of all the included packages
1465 -V, --version display version information and exit
1466 -q, --quiet, --silent do not print \`checking ...' messages
1467 --cache-file=FILE cache test results in FILE [disabled]
1468 -C, --config-cache alias for \`--cache-file=config.cache'
1469 -n, --no-create do not create output files
1470 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1472 Installation directories:
1473 --prefix=PREFIX install architecture-independent files in PREFIX
1474 [$ac_default_prefix]
1475 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1478 By default, \`make install' will install all the files in
1479 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1480 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1481 for instance \`--prefix=\$HOME'.
1483 For better control, use the options below.
1485 Fine tuning of the installation directories:
1486 --bindir=DIR user executables [EPREFIX/bin]
1487 --sbindir=DIR system admin executables [EPREFIX/sbin]
1488 --libexecdir=DIR program executables [EPREFIX/libexec]
1489 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1490 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1491 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1492 --libdir=DIR object code libraries [EPREFIX/lib]
1493 --includedir=DIR C header files [PREFIX/include]
1494 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1495 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1496 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1497 --infodir=DIR info documentation [DATAROOTDIR/info]
1498 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1499 --mandir=DIR man documentation [DATAROOTDIR/man]
1500 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1501 --htmldir=DIR html documentation [DOCDIR]
1502 --dvidir=DIR dvi documentation [DOCDIR]
1503 --pdfdir=DIR pdf documentation [DOCDIR]
1504 --psdir=DIR ps documentation [DOCDIR]
1510 --program-prefix=PREFIX prepend PREFIX to installed program names
1511 --program-suffix=SUFFIX append SUFFIX to installed program names
1512 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1515 --build=BUILD configure
for building on BUILD
[guessed
]
1516 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1517 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1521 if test -n "$ac_init_help"; then
1526 --disable-option-checking ignore unrecognized
--enable/--with options
1527 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1528 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1529 --enable-as-accelerator-for=ARG
1530 build as offload target compiler. Specify offload
1532 --enable-offload-targets=LIST
1533 enable offloading to devices from comma-separated
1534 LIST of TARGET
[=DIR
]. Use optional path to
find
1535 offload target compiler during the build
1536 --enable-offload-defaulted
1537 If enabled
, configured but not installed offload compilers and
1538 libgomp plugins are silently ignored. Useful
for distribution
1539 compilers where those are
in separate optional packages.
1541 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1542 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1543 --enable-gprofng[=ARG
] build gprofng
[ARG
={yes,no
}]
1544 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1545 Enable compressed debug sections
for gas
, gold or ld
1547 --enable-default-compressed-debug-sections-algorithm={zlib
,zstd
}
1548 Default compression algorithm
for
1549 --enable-compressed-debug-sections.
1550 --enable-year2038 enable support
for timestamps past the year
2038
1551 --disable-libquadmath do not build libquadmath directory
1552 --disable-libquadmath-support
1553 disable libquadmath support
for Fortran
1554 --enable-libada build libada directory
1555 --enable-libssp build libssp directory
1556 --disable-libstdcxx do not build libstdc
++-v3 directory
1557 --enable-liboffloadmic=ARG
1558 build liboffloadmic
[ARG
={no
,host,target
}]
1559 --enable-bootstrap enable bootstrapping
[yes if native build
]
1560 --enable-pgo-build[=lto
]
1561 enable the PGO build
1562 --disable-isl-version-check
1563 disable check
for isl version
1564 --enable-lto enable link
time optimization support
1565 --enable-linker-plugin-configure-flags=FLAGS
1566 additional flags
for configuring linker plugins
1568 --enable-linker-plugin-flags=FLAGS
1569 additional flags
for configuring and building linker
1571 --enable-host-shared build
host code as shared libraries
1572 --enable-stage1-languages[=all
]
1573 choose additional languages to build during stage1.
1574 Mostly useful
for compiler development
1575 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1577 --enable-vtable-verify Enable vtable verification feature
1578 --enable-serial-[{host,target,build}-]configure
1579 force sequential configuration of sub-packages for
1580 the host, target or build machine, or all
1582 --enable-maintainer-mode
1583 enable make rules and dependencies not useful (and
1584 sometimes confusing) to the casual installer
1585 --enable-stage1-checking[=all]
1586 choose additional checking for stage1 of the
1588 --enable-werror enable -Werror in bootstrap stage2 and later
1591 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1592 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1593 --with-build-libsubdir=DIR Directory where to find libraries for build system
1594 --with-system-zlib use installed libz
1595 --with-zstd Support zstd compressed debug sections
1597 --with-mpc=PATH specify prefix directory for installed MPC package.
1598 Equivalent to --with-mpc-include=PATH/include plus
1599 --with-mpc-lib=PATH/lib
1600 --with-mpc-include=PATH specify directory for installed MPC include files
1601 --with-mpc-lib=PATH specify directory for the installed MPC library
1602 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1603 Equivalent to --with-mpfr-include=PATH/include plus
1604 --with-mpfr-lib=PATH/lib
1605 --with-mpfr-include=PATH
1606 specify directory for installed MPFR include files
1607 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1608 --with-gmp=PATH specify prefix directory for the installed GMP
1609 package. Equivalent to
1610 --with-gmp-include=PATH/include plus
1611 --with-gmp-lib=PATH/lib
1612 --with-gmp-include=PATH specify directory for installed GMP include files
1613 --with-gmp-lib=PATH specify directory for the installed GMP library
1614 --with-stage1-libs=LIBS libraries for stage1
1615 --with-static-standard-libraries
1616 use -static-libstdc++ and -static-libgcc
1618 --with-stage1-ldflags=FLAGS
1619 linker flags for stage1
1620 --with-boot-libs=LIBS libraries for stage2 and later
1621 --with-boot-ldflags=FLAGS
1622 linker flags for stage2 and later
1623 --with-isl=PATH Specify prefix directory for the installed isl
1624 package. Equivalent to
1625 --with-isl-include=PATH/include plus
1626 --with-isl-lib=PATH/lib
1627 --with-isl-include=PATH Specify directory for installed isl include files
1628 --with-isl-lib=PATH Specify the directory for the installed isl library
1629 --with-target-bdw-gc=PATHLIST
1630 specify prefix directory for installed bdw-gc
1631 package. Equivalent to
1632 --with-target-bdw-gc-include=PATH/include plus
1633 --with-target-bdw-gc-lib=PATH/lib
1634 --with-target-bdw-gc-include=PATHLIST
1635 specify directories for installed bdw-gc include
1637 --with-target-bdw-gc-lib=PATHLIST
1638 specify directories for installed bdw-gc library
1639 --with-gcc-major-version-only
1640 use only GCC major number in filesystem paths
1641 --with-build-sysroot=SYSROOT
1642 use sysroot as the system root during the build
1643 --with-debug-prefix-map='A
=B C
=D ...
'
1644 map A to B, C to D ... in debug information
1645 --with-build-config='NAME NAME2...
'
1646 use config/NAME.mk build configuration
1647 --with-build-time-tools=PATH
1648 use given path to find target tools during the build
1650 Some influential environment variables:
1651 CC C compiler command
1652 CFLAGS C compiler flags
1653 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1654 nonstandard directory <lib dir>
1655 LIBS libraries to pass to the linker, e.g. -l<library>
1656 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1657 you have headers in a nonstandard directory <include dir>
1658 CXX C++ compiler command
1659 CXXFLAGS C++ compiler flags
1661 additional configure arguments for build directories
1663 additional configure arguments for host directories
1665 additional configure arguments for target directories
1668 DLLTOOL DLLTOOL for the host
1669 DSYMUTIL DSYMUTIL for the host
1671 LIPO LIPO for the host
1673 RANLIB RANLIB for the host
1674 STRIP STRIP for the host
1675 WINDRES WINDRES for the host
1676 WINDMC WINDMC for the host
1677 OBJCOPY OBJCOPY for the host
1678 OBJDUMP OBJDUMP for the host
1679 OTOOL OTOOL for the host
1680 READELF READELF for the host
1688 GFORTRAN for the target
1698 DLLTOOL for the target
1700 DSYMUTIL for the target
1708 OBJCOPY for the target
1710 OBJDUMP for the target
1712 OTOOL for the target
1714 RANLIB for the target
1716 READELF for the target
1718 STRIP for the target
1720 WINDRES for the target
1722 WINDMC for the target
1724 Use these variables to override the choices made by `configure' or to
help
1725 it to
find libraries and programs with nonstandard names
/locations.
1727 Report bugs to the package provider.
1732 if test "$ac_init_help" = "recursive"; then
1733 # If there are subdirs, report their specific --help.
1734 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1735 test -d "$ac_dir" ||
1736 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1741 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1743 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1744 # A ".." for each directory in $ac_dir_suffix.
1745 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1746 case $ac_top_builddir_sub in
1747 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1748 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1751 ac_abs_top_builddir
=$ac_pwd
1752 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1753 # for backward compatibility:
1754 ac_top_builddir
=$ac_top_build_prefix
1757 .
) # We are building in place.
1759 ac_top_srcdir
=$ac_top_builddir_sub
1760 ac_abs_top_srcdir
=$ac_pwd ;;
1761 [\\/]* | ?
:[\\/]* ) # Absolute name.
1762 ac_srcdir
=$srcdir$ac_dir_suffix;
1763 ac_top_srcdir
=$srcdir
1764 ac_abs_top_srcdir
=$srcdir ;;
1766 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1767 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1768 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1770 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1772 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1773 # Check for guested configure.
1774 if test -f "$ac_srcdir/configure.gnu"; then
1776 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1777 elif test -f "$ac_srcdir/configure"; then
1779 $SHELL "$ac_srcdir/configure" --help=recursive
1781 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1783 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1787 test -n "$ac_init_help" && exit $ac_status
1788 if $ac_init_version; then
1791 generated by GNU Autoconf
2.69
1793 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1794 This configure
script is free software
; the Free Software Foundation
1795 gives unlimited permission to copy
, distribute and modify it.
1800 ## ------------------------ ##
1801 ## Autoconf initialization. ##
1802 ## ------------------------ ##
1804 # ac_fn_c_try_compile LINENO
1805 # --------------------------
1806 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1807 ac_fn_c_try_compile
()
1809 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1810 rm -f conftest.
$ac_objext
1811 if { { ac_try
="$ac_compile"
1813 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1814 *) ac_try_echo=$ac_try;;
1816 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1817 $as_echo "$ac_try_echo"; } >&5
1818 (eval "$ac_compile") 2>conftest.err
1820 if test -s conftest.err; then
1821 grep -v '^ *+' conftest.err >conftest.er1
1822 cat conftest.er1 >&5
1823 mv -f conftest.er1 conftest.err
1825 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1826 test $ac_status = 0; } && {
1827 test -z "$ac_c_werror_flag" ||
1828 test ! -s conftest.err
1829 } && test -s conftest.$ac_objext; then :
1832 $as_echo "$as_me: failed program was:" >&5
1833 sed 's/^/| /' conftest.$ac_ext >&5
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1838 as_fn_set_status $ac_retval
1840 } # ac_fn_c_try_compile
1842 # ac_fn_cxx_try_compile LINENO
1843 # ----------------------------
1844 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1845 ac_fn_cxx_try_compile ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 rm -f conftest.$ac_objext
1849 if { { ac_try="$ac_compile"
1851 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1852 *) ac_try_echo
=$ac_try;;
1854 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1855 $as_echo "$ac_try_echo"; } >&5
1856 (eval "$ac_compile") 2>conftest.err
1858 if test -s conftest.err
; then
1859 grep -v '^ *+' conftest.err
>conftest.er1
1860 cat conftest.er1
>&5
1861 mv -f conftest.er1 conftest.err
1863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1864 test $ac_status = 0; } && {
1865 test -z "$ac_cxx_werror_flag" ||
1866 test ! -s conftest.err
1867 } && test -s conftest.
$ac_objext; then :
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.
$ac_ext >&5
1875 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1876 as_fn_set_status
$ac_retval
1878 } # ac_fn_cxx_try_compile
1880 # ac_fn_cxx_try_link LINENO
1881 # -------------------------
1882 # Try to link conftest.$ac_ext, and return whether this succeeded.
1883 ac_fn_cxx_try_link
()
1885 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1886 rm -f conftest.
$ac_objext conftest
$ac_exeext
1887 if { { ac_try
="$ac_link"
1889 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1890 *) ac_try_echo=$ac_try;;
1892 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1893 $as_echo "$ac_try_echo"; } >&5
1894 (eval "$ac_link") 2>conftest.err
1896 if test -s conftest.err; then
1897 grep -v '^ *+' conftest.err >conftest.er1
1898 cat conftest.er1 >&5
1899 mv -f conftest.er1 conftest.err
1901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1902 test $ac_status = 0; } && {
1903 test -z "$ac_cxx_werror_flag" ||
1904 test ! -s conftest.err
1905 } && test -s conftest$ac_exeext && {
1906 test "$cross_compiling" = yes ||
1907 test -x conftest$ac_exeext
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1916 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1917 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1918 # interfere with the next link command; also delete a directory that is
1919 # left behind by Apple's compiler. We do this before executing the actions.
1920 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1921 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1922 as_fn_set_status $ac_retval
1924 } # ac_fn_cxx_try_link
1926 # ac_fn_c_try_link LINENO
1927 # -----------------------
1928 # Try to link conftest.$ac_ext, and return whether this succeeded.
1931 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932 rm -f conftest.$ac_objext conftest$ac_exeext
1933 if { { ac_try="$ac_link"
1935 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1936 *) ac_try_echo
=$ac_try;;
1938 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939 $as_echo "$ac_try_echo"; } >&5
1940 (eval "$ac_link") 2>conftest.err
1942 if test -s conftest.err
; then
1943 grep -v '^ *+' conftest.err
>conftest.er1
1944 cat conftest.er1
>&5
1945 mv -f conftest.er1 conftest.err
1947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948 test $ac_status = 0; } && {
1949 test -z "$ac_c_werror_flag" ||
1950 test ! -s conftest.err
1951 } && test -s conftest
$ac_exeext && {
1952 test "$cross_compiling" = yes ||
1953 test -x conftest
$ac_exeext
1957 $as_echo "$as_me: failed program was:" >&5
1958 sed 's/^/| /' conftest.
$ac_ext >&5
1962 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1963 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1964 # interfere with the next link command; also delete a directory that is
1965 # left behind by Apple's compiler. We do this before executing the actions.
1966 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968 as_fn_set_status
$ac_retval
1970 } # ac_fn_c_try_link
1971 cat >config.log
<<_ACEOF
1972 This file contains any messages produced by compilers while
1973 running configure, to aid debugging if configure makes a mistake.
1975 It was created by $as_me, which was
1976 generated by GNU Autoconf 2.69. Invocation command line was
1988 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1989 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1990 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1991 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1992 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1994 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1995 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1997 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1998 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1999 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2000 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2001 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2002 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2003 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2007 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2011 test -z "$as_dir" && as_dir
=.
2012 $as_echo "PATH: $as_dir"
2028 # Keep a trace of the command line.
2029 # Strip out --no-create and --no-recursion so they do not pile up.
2030 # Strip out --silent because we don't want to record it for future runs.
2031 # Also quote any args containing shell meta-characters.
2032 # Make two passes to allow for proper duplicate-argument suppression.
2036 ac_must_keep_next
=false
2042 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2043 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2044 |
-silent |
--silent |
--silen |
--sile |
--sil)
2047 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2050 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2052 as_fn_append ac_configure_args1
" '$ac_arg'"
2053 if test $ac_must_keep_next = true
; then
2054 ac_must_keep_next
=false
# Got value, back to normal.
2057 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2058 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2059 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2060 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2061 case "$ac_configure_args0 " in
2062 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2065 -* ) ac_must_keep_next
=true
;;
2068 as_fn_append ac_configure_args
" '$ac_arg'"
2073 { ac_configure_args0
=; unset ac_configure_args0
;}
2074 { ac_configure_args1
=; unset ac_configure_args1
;}
2076 # When interrupted or exit'd, cleanup temporary files, and complete
2077 # config.log. We remove comments because anyway the quotes in there
2078 # would cause problems or look ugly.
2079 # WARNING: Use '\'' to represent an apostrophe within the trap.
2080 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2081 trap 'exit_status=$?
2082 # Save into config.log some information that might help in debugging.
2086 $as_echo "## ---------------- ##
2087 ## Cache variables. ##
2088 ## ---------------- ##"
2090 # The following way of writing the cache mishandles newlines in values,
2092 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2093 eval ac_val=\$$ac_var
2097 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2098 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2101 _ | IFS | as_nl) ;; #(
2102 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2103 *) { eval $ac_var=; unset $ac_var;} ;;
2108 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2109 *${as_nl}ac_space=\ *)
2111 "s/'\''/'\''\\\\'\'''\''/g;
2112 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2115 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2122 $as_echo "## ----------------- ##
2123 ## Output variables. ##
2124 ## ----------------- ##"
2126 for ac_var in $ac_subst_vars
2128 eval ac_val=\$$ac_var
2130 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2132 $as_echo "$ac_var='\''$ac_val'\''"
2136 if test -n "$ac_subst_files"; then
2137 $as_echo "## ------------------- ##
2138 ## File substitutions. ##
2139 ## ------------------- ##"
2141 for ac_var
in $ac_subst_files
2143 eval ac_val
=\$
$ac_var
2145 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2147 $as_echo "$ac_var='\''$ac_val'\''"
2152 if test -s confdefs.h; then
2153 $as_echo "## ----------- ##
2160 test "$ac_signal" != 0 &&
2161 $as_echo "$as_me: caught signal $ac_signal"
2162 $as_echo "$as_me: exit $exit_status"
2164 rm -f core *.core core.conftest.* &&
2165 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2168 for ac_signal
in 1 2 13 15; do
2169 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2173 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2174 rm -f -r conftest
* confdefs.h
2176 $as_echo "/* confdefs.h */" > confdefs.h
2178 # Predefined preprocessor variables.
2180 cat >>confdefs.h
<<_ACEOF
2181 #define PACKAGE_NAME "$PACKAGE_NAME"
2184 cat >>confdefs.h
<<_ACEOF
2185 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2188 cat >>confdefs.h
<<_ACEOF
2189 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2192 cat >>confdefs.h
<<_ACEOF
2193 #define PACKAGE_STRING "$PACKAGE_STRING"
2196 cat >>confdefs.h
<<_ACEOF
2197 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2200 cat >>confdefs.h
<<_ACEOF
2201 #define PACKAGE_URL "$PACKAGE_URL"
2205 # Let the site file select an alternate cache file if it wants to.
2206 # Prefer an explicitly selected file to automatically selected ones.
2209 if test -n "$CONFIG_SITE"; then
2210 # We do not want a PATH search for config.site.
2211 case $CONFIG_SITE in #((
2212 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2213 */*) ac_site_file1
=$CONFIG_SITE;;
2214 *) ac_site_file1
=.
/$CONFIG_SITE;;
2216 elif test "x$prefix" != xNONE
; then
2217 ac_site_file1
=$prefix/share
/config.site
2218 ac_site_file2
=$prefix/etc
/config.site
2220 ac_site_file1
=$ac_default_prefix/share
/config.site
2221 ac_site_file2
=$ac_default_prefix/etc
/config.site
2223 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2225 test "x$ac_site_file" = xNONE
&& continue
2226 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2228 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2229 sed 's/^/| /' "$ac_site_file" >&5
2231 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2233 as_fn_error $?
"failed to load site script $ac_site_file
2234 See \`config.log' for more details" "$LINENO" 5; }
2238 if test -r "$cache_file"; then
2239 # Some versions of bash will fail to source /dev/null (special files
2240 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2241 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2243 $as_echo "$as_me: loading cache $cache_file" >&6;}
2245 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2246 *) .
"./$cache_file";;
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2251 $as_echo "$as_me: creating cache $cache_file" >&6;}
2255 # Check that the precious variables saved in the cache have kept the same
2257 ac_cache_corrupted
=false
2258 for ac_var
in $ac_precious_vars; do
2259 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2260 eval ac_new_set
=\
$ac_env_${ac_var}_set
2261 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2262 eval ac_new_val
=\
$ac_env_${ac_var}_value
2263 case $ac_old_set,$ac_new_set in
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2266 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2267 ac_cache_corrupted
=: ;;
2269 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2270 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2271 ac_cache_corrupted
=: ;;
2274 if test "x$ac_old_val" != "x$ac_new_val"; then
2275 # differences in whitespace do not lead to failure.
2276 ac_old_val_w
=`echo x $ac_old_val`
2277 ac_new_val_w
=`echo x $ac_new_val`
2278 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2280 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2281 ac_cache_corrupted
=:
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2284 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2285 eval $ac_var=\
$ac_old_val
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2288 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2290 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2293 # Pass precious variables to config.status.
2294 if test "$ac_new_set" = set; then
2296 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2297 *) ac_arg
=$ac_var=$ac_new_val ;;
2299 case " $ac_configure_args " in
2300 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2301 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2305 if $ac_cache_corrupted; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2307 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2309 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2310 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2312 ## -------------------- ##
2313 ## Main body of script. ##
2314 ## -------------------- ##
2317 ac_cpp
='$CPP $CPPFLAGS'
2318 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2319 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2320 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2330 # if PWD already has a value, it is probably wrong.
2331 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2333 # Export original configure arguments for use by sub-configures.
2334 # Quote arguments with shell meta charatcers.
2335 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2336 set -- "$progname" "$@"
2340 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2341 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2342 # if the argument is of the form -foo=baz, quote the baz part only
2343 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2346 # Add the quoted argument to the list.
2347 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2349 if test "$silent" = yes; then
2350 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2352 # Remove the initial space we just introduced and, as these will be
2353 # expanded by make, quote '$'.
2354 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2357 # Find the build, host, and target systems.
2359 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2360 if test -f "$ac_dir/install-sh"; then
2362 ac_install_sh
="$ac_aux_dir/install-sh -c"
2364 elif test -f "$ac_dir/install.sh"; then
2366 ac_install_sh
="$ac_aux_dir/install.sh -c"
2368 elif test -f "$ac_dir/shtool"; then
2370 ac_install_sh
="$ac_aux_dir/shtool install -c"
2374 if test -z "$ac_aux_dir"; then
2375 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2378 # These three variables are undocumented and unsupported,
2379 # and are intended to be withdrawn in a future Autoconf release.
2380 # They can cause serious problems if a builder's source tree is in a directory
2381 # whose full name contains unusual characters.
2382 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2383 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2384 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2387 # Make sure we can run config.sub.
2388 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2389 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2392 $as_echo_n "checking build system type... " >&6; }
2393 if ${ac_cv_build+:} false
; then :
2394 $as_echo_n "(cached) " >&6
2396 ac_build_alias
=$build_alias
2397 test "x$ac_build_alias" = x
&&
2398 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2399 test "x$ac_build_alias" = x
&&
2400 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2401 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2402 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2406 $as_echo "$ac_cv_build" >&6; }
2407 case $ac_cv_build in
2409 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2412 ac_save_IFS
=$IFS; IFS
='-'
2418 # Remember, the first character of IFS is used to create $*,
2419 # except with old shells:
2422 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2425 case ${build_alias} in
2426 "") build_noncanonical
=${build} ;;
2427 *) build_noncanonical
=${build_alias} ;;
2432 case ${host_alias} in
2433 "") host_noncanonical
=${build_noncanonical} ;;
2434 *) host_noncanonical
=${host_alias} ;;
2439 case ${target_alias} in
2440 "") target_noncanonical
=${host_noncanonical} ;;
2441 *) target_noncanonical
=${target_alias} ;;
2447 test "$host_noncanonical" = "$target_noncanonical" &&
2448 test "$program_prefix$program_suffix$program_transform_name" = \
2450 program_transform_name
=s
,y
,y
,
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2453 $as_echo_n "checking host system type... " >&6; }
2454 if ${ac_cv_host+:} false
; then :
2455 $as_echo_n "(cached) " >&6
2457 if test "x$host_alias" = x
; then
2458 ac_cv_host
=$ac_cv_build
2460 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2461 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2466 $as_echo "$ac_cv_host" >&6; }
2469 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2472 ac_save_IFS
=$IFS; IFS
='-'
2478 # Remember, the first character of IFS is used to create $*,
2479 # except with old shells:
2482 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2486 $as_echo_n "checking target system type... " >&6; }
2487 if ${ac_cv_target+:} false
; then :
2488 $as_echo_n "(cached) " >&6
2490 if test "x$target_alias" = x
; then
2491 ac_cv_target
=$ac_cv_host
2493 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2494 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2499 $as_echo "$ac_cv_target" >&6; }
2500 case $ac_cv_target in
2502 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2504 target
=$ac_cv_target
2505 ac_save_IFS
=$IFS; IFS
='-'
2511 # Remember, the first character of IFS is used to create $*,
2512 # except with old shells:
2515 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2518 # The aliases save the names the user supplied, while $host etc.
2519 # will get canonicalized.
2520 test -n "$target_alias" &&
2521 test "$program_prefix$program_suffix$program_transform_name" = \
2523 program_prefix
=${target_alias}-
2525 test "$program_prefix" != NONE
&&
2526 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2527 # Use a double $ so make ignores it.
2528 test "$program_suffix" != NONE
&&
2529 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2530 # Double any \ or $.
2531 # By default was `s,x,x', remove it if useless.
2532 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2533 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2537 # Get 'install' or 'install-sh' and its variants.
2538 # Find a good install program. We prefer a C program (faster),
2539 # so one script is as good as another. But avoid the broken or
2540 # incompatible versions:
2541 # SysV /etc/install, /usr/sbin/install
2542 # SunOS /usr/etc/install
2543 # IRIX /sbin/install
2545 # AmigaOS /C/install, which installs bootblocks on floppy discs
2546 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2547 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2548 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2549 # OS/2's system install, which has a completely different semantic
2550 # ./install, which can be erroneously created by make from ./install.sh.
2551 # Reject install programs that cannot install multiple files.
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2553 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2554 if test -z "$INSTALL"; then
2555 if ${ac_cv_path_install+:} false
; then :
2556 $as_echo_n "(cached) " >&6
2558 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2562 test -z "$as_dir" && as_dir
=.
2563 # Account for people who put trailing slashes in PATH elements.
2564 case $as_dir/ in #((
2565 .
/ | .
// |
/[cC
]/* | \
2566 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2567 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2570 # OSF1 and SCO ODT 3.0 have their own names for install.
2571 # Don't use installbsd from OSF since it installs stuff as root
2573 for ac_prog
in ginstall scoinst
install; do
2574 for ac_exec_ext
in '' $ac_executable_extensions; do
2575 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2576 if test $ac_prog = install &&
2577 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2578 # AIX install. It has an incompatible calling convention.
2580 elif test $ac_prog = install &&
2581 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2582 # program-specific install script used by HP pwplus--don't use.
2585 rm -rf conftest.one conftest.two conftest.dir
2586 echo one
> conftest.one
2587 echo two
> conftest.two
2589 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2590 test -s conftest.one
&& test -s conftest.two
&&
2591 test -s conftest.dir
/conftest.one
&&
2592 test -s conftest.dir
/conftest.two
2594 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2607 rm -rf conftest.one conftest.two conftest.dir
2610 if test "${ac_cv_path_install+set}" = set; then
2611 INSTALL
=$ac_cv_path_install
2613 # As a last resort, use the slow shell script. Don't cache a
2614 # value for INSTALL within a source directory, because that will
2615 # break other packages using the cache if that directory is
2616 # removed, or if the value is a relative name.
2617 INSTALL
=$ac_install_sh
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2621 $as_echo "$INSTALL" >&6; }
2623 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2624 # It thinks the first close brace ends the variable substitution.
2625 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2627 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2629 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2632 $as_echo_n "checking whether ln works... " >&6; }
2633 if ${acx_cv_prog_LN+:} false
; then :
2634 $as_echo_n "(cached) " >&6
2636 rm -f conftestdata_t
2637 echo >conftestdata_f
2638 if ln conftestdata_f conftestdata_t
2>/dev
/null
2644 rm -f conftestdata_f conftestdata_t
2647 if test $acx_cv_prog_LN = no
; then
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2650 $as_echo "no, using $LN" >&6; }
2652 LN
="$acx_cv_prog_LN"
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2654 $as_echo "yes" >&6; }
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2658 $as_echo_n "checking whether ln -s works... " >&6; }
2660 if test "$LN_S" = "ln -s"; then
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2662 $as_echo "yes" >&6; }
2664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2665 $as_echo "no, using $LN_S" >&6; }
2668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2669 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2670 if ${ac_cv_path_SED+:} false
; then :
2671 $as_echo_n "(cached) " >&6
2673 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2674 for ac_i
in 1 2 3 4 5 6 7; do
2675 ac_script
="$ac_script$as_nl$ac_script"
2677 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2678 { ac_script
=; unset ac_script
;}
2679 if test -z "$SED"; then
2680 ac_path_SED_found
=false
2681 # Loop through the user's path and test for each of PROGNAME-LIST
2682 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2686 test -z "$as_dir" && as_dir
=.
2687 for ac_prog
in sed gsed
; do
2688 for ac_exec_ext
in '' $ac_executable_extensions; do
2689 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2690 as_fn_executable_p
"$ac_path_SED" ||
continue
2691 # Check for GNU ac_path_SED and select it if it is found.
2692 # Check for GNU $ac_path_SED
2693 case `"$ac_path_SED" --version 2>&1` in
2695 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2698 $as_echo_n 0123456789 >"conftest.in"
2701 cat "conftest.in" "conftest.in" >"conftest.tmp"
2702 mv "conftest.tmp" "conftest.in"
2703 cp "conftest.in" "conftest.nl"
2704 $as_echo '' >> "conftest.nl"
2705 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2706 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2707 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2708 if test $ac_count -gt ${ac_path_SED_max-0}; then
2709 # Best one so far, save it but keep looking for a better one
2710 ac_cv_path_SED
="$ac_path_SED"
2711 ac_path_SED_max
=$ac_count
2713 # 10*(2^10) chars as input seems more than enough
2714 test $ac_count -gt 10 && break
2716 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2719 $ac_path_SED_found && break 3
2724 if test -z "$ac_cv_path_SED"; then
2725 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2733 $as_echo "$ac_cv_path_SED" >&6; }
2734 SED
="$ac_cv_path_SED"
2737 for ac_prog
in gawk mawk nawk
awk
2739 # Extract the first word of "$ac_prog", so it can be a program name with args.
2740 set dummy
$ac_prog; ac_word
=$2
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if ${ac_cv_prog_AWK+:} false
; then :
2744 $as_echo_n "(cached) " >&6
2746 if test -n "$AWK"; then
2747 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2749 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2753 test -z "$as_dir" && as_dir
=.
2754 for ac_exec_ext
in '' $ac_executable_extensions; do
2755 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2756 ac_cv_prog_AWK
="$ac_prog"
2757 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2767 if test -n "$AWK"; then
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2769 $as_echo "$AWK" >&6; }
2771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2772 $as_echo "no" >&6; }
2776 test -n "$AWK" && break
2780 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2782 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2784 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2785 INSTALL
="${srcpwd}/install-sh -c"
2788 # Set srcdir to "." if that's what it is.
2789 # This is important for multilib support.
2791 if test "${pwd}" = "${srcpwd}" ; then
2799 ### To add a new directory to the tree, first choose whether it is a target
2800 ### or a host dependent tool. Then put it into the appropriate list
2801 ### (library or tools, host or target), doing a dependency sort.
2803 # Subdirs will be configured in the order listed in build_configdirs,
2804 # configdirs, or target_configdirs; see the serialization section below.
2806 # Dependency sorting is only needed when *configuration* must be done in
2807 # a particular order. In all cases a dependency should be specified in
2808 # the Makefile, whether or not it's implicitly specified here.
2810 # Double entries in build_configdirs, configdirs, or target_configdirs may
2811 # cause circular dependencies and break everything horribly.
2813 # these library is used by various programs built for the build
2816 build_libs
="build-libiberty build-libcpp"
2818 # these tools are built for the build environment
2819 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2821 # these libraries are used by various programs built for the host environment
2823 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf"
2825 # these tools are built for the host environment
2826 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2827 # know that we are building the simulator.
2828 # binutils, gas and ld appear in that order because it makes sense to run
2829 # "make check" in that particular order.
2830 # If --enable-gold is used, "gold" may replace "ld".
2831 host_tools
="texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gdbserver gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools c++tools"
2833 # these libraries are built for the target environment, and are built after
2834 # the host libraries and the host tools (which may be a cross compiler)
2835 # Note that libiberty is not a target library.
2836 target_libraries
="target-libgcc \
2837 target-libbacktrace \
2841 target-liboffloadmic \
2844 target-libstdc++-v3 \
2845 target-libsanitizer \
2848 target-libquadmath \
2849 target-libgfortran \
2857 # these tools are built using the target libraries, and are intended to
2858 # run only in the target environment
2860 # note: any program that *uses* libraries that are in the "target_libraries"
2861 # list belongs in this list.
2863 target_tools
="target-rda"
2865 ################################################################################
2867 ## All tools belong in one of the four categories, and are assigned above
2868 ## We assign ${configdirs} this way to remove all embedded newlines. This
2869 ## is important because configure will choke if they ever get through.
2870 ## ${configdirs} is directories we build using the host tools.
2871 ## ${target_configdirs} is directories we build using the target tools.
2872 configdirs
=`echo ${host_libs} ${host_tools}`
2873 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2874 build_configdirs
=`echo ${build_libs} ${build_tools}`
2878 ################################################################################
2880 srcname
="gnu development package"
2882 # This gets set non-empty for some net releases of packages.
2885 # Define is_cross_compiler to save on calls to 'test'.
2887 if test x
"${host}" = x
"${target}" ; then
2888 is_cross_compiler
=no
2890 is_cross_compiler
=yes
2893 # Find the build and target subdir names.
2895 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2896 # have matching libraries, they should use host libraries: Makefile.tpl
2897 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2898 # However, they still use the build modules, because the corresponding
2899 # host modules (e.g. bison) are only built for the host when bootstrap
2901 # - build_subdir is where we find build modules, and never changes.
2902 # - build_libsubdir is where we find build libraries, and can be overridden.
2904 # Prefix 'build-' so this never conflicts with target_subdir.
2905 build_subdir
="build-${build_noncanonical}"
2907 # Check whether --with-build-libsubdir was given.
2908 if test "${with_build_libsubdir+set}" = set; then :
2909 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2911 build_libsubdir
="$build_subdir"
2914 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2915 if ( test $srcdir = .
&& test -d gcc
) \
2916 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2917 host_subdir
="host-${host_noncanonical}"
2922 target_subdir
=${target_noncanonical}
2924 # Be sure to cover against remnants of an in-tree build.
2925 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2926 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2927 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2930 # Skipdirs are removed silently.
2932 # Noconfigdirs are removed loudly.
2936 # Make sure we don't let GNU ld be added if we didn't want it.
2937 if test x
$with_gnu_ld = xno
; then
2939 noconfigdirs
="$noconfigdirs ld gold"
2943 # Make sure we don't let GNU as be added if we didn't want it.
2944 if test x
$with_gnu_as = xno
; then
2946 noconfigdirs
="$noconfigdirs gas"
2951 # Check whether --with-system-zlib was given.
2952 if test "${with_system_zlib+set}" = set; then :
2953 withval
=$with_system_zlib;
2956 # Make sure we don't let ZLIB be added if we didn't want it.
2957 if test x
$with_system_zlib = xyes
; then
2958 use_included_zlib
=no
2959 noconfigdirs
="$noconfigdirs zlib"
2963 # Check whether --with-zstd was given.
2964 if test "${with_zstd+set}" = set; then :
2969 # some tools are so dependent upon X11 that if we're not building with X,
2970 # it's not even worth trying to configure, much less build, that tool.
2973 yes |
"") ;; # the default value for this tree is that X11 is available
2975 skipdirs
="${skipdirs} tk itcl libgui"
2976 # We won't be able to build gdbtk without X.
2979 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2982 # Some are only suitable for cross toolchains.
2983 # Remove these if host=target.
2984 cross_only
="target-libgloss target-newlib target-opcodes"
2986 case $is_cross_compiler in
2987 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2990 # If both --with-headers and --with-libs are specified, default to
2992 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2993 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2994 if test x
"${with_newlib}" = x
; then
2999 # Recognize --with-newlib/--without-newlib.
3000 case ${with_newlib} in
3001 no
) skipdirs
="${skipdirs} target-newlib" ;;
3002 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3005 # Check whether --enable-as-accelerator-for was given.
3006 if test "${enable_as_accelerator_for+set}" = set; then :
3007 enableval
=$enable_as_accelerator_for;
3011 # Check whether --enable-offload-targets was given.
3012 if test "${enable_offload_targets+set}" = set; then :
3013 enableval
=$enable_offload_targets;
3014 if test x
"$enable_offload_targets" = x
; then
3015 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3019 enable_offload_targets
=
3023 # Check whether --enable-offload-defaulted was given.
3024 if test "${enable_offload_defaulted+set}" = set; then :
3025 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3027 enable_offload_defaulted
=
3031 # Handle --enable-gold, --enable-ld.
3032 # --disable-gold [--enable-ld]
3033 # Build only ld. Default option.
3034 # --enable-gold [--enable-ld]
3035 # Build both gold and ld. Install gold as "ld.gold", install ld
3036 # as "ld.bfd" and "ld".
3037 # --enable-gold=default [--enable-ld]
3038 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3039 # install ld as "ld.bfd".
3040 # --enable-gold[=default] --disable-ld
3041 # Build only gold, which is then installed as both "ld.gold" and "ld".
3042 # --enable-gold --enable-ld=default
3043 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3045 # In other words, ld is default
3046 # --enable-gold=default --enable-ld=default
3050 # Check whether --enable-gold was given.
3051 if test "${enable_gold+set}" = set; then :
3052 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3057 case "${ENABLE_GOLD}" in
3059 # Check for ELF target.
3062 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3063 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3064 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3065 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3067 *-*-linux*aout
* |
*-*-linux*oldld
*)
3075 if test "$is_elf" = "yes"; then
3076 # Check for target supported by gold.
3078 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3079 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-* | loongarch
*-*-*)
3080 configdirs
="$configdirs gold"
3081 if test x
${ENABLE_GOLD} = xdefault
; then
3092 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3096 # Check whether --enable-ld was given.
3097 if test "${enable_ld+set}" = set; then :
3098 enableval
=$enable_ld; ENABLE_LD
=$enableval
3104 case "${ENABLE_LD}" in
3106 if test x
${default_ld} != x
; then
3107 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3113 if test x
${ENABLE_GOLD} != xyes
; then
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3115 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3117 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3120 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3124 # Check whether --enable-gprofng was given.
3125 if test "${enable_gprofng+set}" = set; then :
3126 enableval
=$enable_gprofng; enable_gprofng
=$enableval
3131 if test "$enable_gprofng" = "yes"; then
3133 x86_64-
*-linux* | i?
86-*-linux* | aarch64-
*-linux*)
3134 configdirs
="$configdirs gprofng"
3141 # Decide the default method for compressing debug sections.
3142 # Provide a configure time option to override our default.
3143 # Check whether --enable-compressed_debug_sections was given.
3144 if test "${enable_compressed_debug_sections+set}" = set; then :
3145 enableval
=$enable_compressed_debug_sections;
3146 if test x
"$enable_compressed_debug_sections" = xyes
; then
3147 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3151 enable_compressed_debug_sections
=
3155 # Select default compression algorithm.
3156 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3157 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3158 enableval
=$enable_default_compressed_debug_sections_algorithm;
3160 default_compressed_debug_sections_algorithm
=
3164 # Configure extra directories which are host specific
3168 configdirs
="$configdirs libtermcap" ;;
3171 # A target can indicate whether a language isn't supported for some reason.
3172 # Only spaces may be used in this macro; not newlines or tabs.
3173 unsupported_languages
=
3175 # Remove more programs from consideration, based on the host or
3176 # target this usually means that a port of the program doesn't
3180 i
[3456789]86-*-msdosdjgpp*)
3181 noconfigdirs
="$noconfigdirs tcl tk itcl"
3185 # Default to --disable-year2038 until we can handle differences between
3186 # projects that use gnulib (which understands year 2038) and projects that
3187 # do not (like BFD).
3188 # Check whether --enable-year2038 was given.
3189 if test "${enable_year2038+set}" = set; then :
3190 enableval
=$enable_year2038; ENABLE_YEAR2038
=$enableval
3196 if test "${ENABLE_YEAR2038}" = "no" ; then
3200 # Check whether --enable-libquadmath was given.
3201 if test "${enable_libquadmath+set}" = set; then :
3202 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3204 ENABLE_LIBQUADMATH
=yes
3207 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3208 noconfigdirs
="$noconfigdirs target-libquadmath"
3212 # Check whether --enable-libquadmath-support was given.
3213 if test "${enable_libquadmath_support+set}" = set; then :
3214 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3216 ENABLE_LIBQUADMATH_SUPPORT
=yes
3219 enable_libquadmath_support
=
3220 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3221 enable_libquadmath_support
=no
3225 # Check whether --enable-libada was given.
3226 if test "${enable_libada+set}" = set; then :
3227 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3232 if test "${ENABLE_LIBADA}" != "yes" ; then
3233 noconfigdirs
="$noconfigdirs gnattools"
3236 # Check whether --enable-libssp was given.
3237 if test "${enable_libssp+set}" = set; then :
3238 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3244 # Check whether --enable-libstdcxx was given.
3245 if test "${enable_libstdcxx+set}" = set; then :
3246 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3248 ENABLE_LIBSTDCXX
=default
3251 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3252 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3255 # If this is accelerator compiler and its target is intelmic we enable
3256 # target liboffloadmic by default. If this is compiler with offloading
3257 # for intelmic we enable host liboffloadmic by default. Otherwise
3258 # liboffloadmic is disabled by default.
3259 # Check whether --enable-liboffloadmic was given.
3260 if test "${enable_liboffloadmic+set}" = set; then :
3261 enableval
=$enable_liboffloadmic; case "$enableval" in
3263 enable_liboffloadmic
=$enableval ;;
3265 as_fn_error $?
"--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3268 if test x
"$enable_as_accelerator_for" != x
; then
3270 *-intelmic-* |
*-intelmicemul-*)
3271 enable_liboffloadmic
=target
3272 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=target"
3275 enable_liboffloadmic
=no
3279 case "${enable_offload_targets}" in
3280 *-intelmic-* |
*-intelmicemul-*)
3281 enable_liboffloadmic
=host
3282 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=host"
3285 enable_liboffloadmic
=no
3293 # Enable libgomp by default on hosted POSIX systems, and a few others.
3294 if test x
$enable_libgomp = x
; then
3296 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3298 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3300 *-*-solaris2* |
*-*-hpux11*)
3302 *-*-darwin* |
*-*-aix*)
3304 nvptx
*-*-* | amdgcn
*-*-*)
3307 noconfigdirs
="$noconfigdirs target-libgomp"
3312 # Disable libatomic on unsupported systems.
3313 if test -d ${srcdir}/libatomic
; then
3314 if test x
$enable_libatomic = x
; then
3315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3316 $as_echo_n "checking for libatomic support... " >&6; }
3317 if (srcdir
=${srcdir}/libatomic
; \
3318 .
${srcdir}/configure.tgt
; \
3319 test -n "$UNSUPPORTED")
3321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3322 $as_echo "no" >&6; }
3323 noconfigdirs
="$noconfigdirs target-libatomic"
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3326 $as_echo "yes" >&6; }
3331 # Disable liboffloadmic on unsupported systems.
3332 if test -d ${srcdir}/liboffloadmic
; then
3333 if test x
$enable_liboffloadmic != xno
; then
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3335 $as_echo_n "checking for liboffloadmic support... " >&6; }
3336 if (srcdir
=${srcdir}/liboffloadmic
; \
3337 .
${srcdir}/configure.tgt
; \
3338 test -n "$UNSUPPORTED")
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 noconfigdirs
="$noconfigdirs target-liboffloadmic"
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3345 $as_echo "yes" >&6; }
3350 # Disable libitm on unsupported systems.
3351 if test -d ${srcdir}/libitm
; then
3352 if test x
$enable_libitm = x
; then
3353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3354 $as_echo_n "checking for libitm support... " >&6; }
3355 if (srcdir
=${srcdir}/libitm
; \
3356 .
${srcdir}/configure.tgt
; \
3357 test -n "$UNSUPPORTED")
3359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3360 $as_echo "no" >&6; }
3361 noconfigdirs
="$noconfigdirs target-libitm"
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3364 $as_echo "yes" >&6; }
3369 # Disable libsanitizer on unsupported systems.
3370 if test -d ${srcdir}/libsanitizer
; then
3371 if test x
$enable_libsanitizer = x
; then
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3373 $as_echo_n "checking for libsanitizer support... " >&6; }
3374 if (srcdir
=${srcdir}/libsanitizer
; \
3375 .
${srcdir}/configure.tgt
; \
3376 test -n "$UNSUPPORTED")
3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3379 $as_echo "no" >&6; }
3380 noconfigdirs
="$noconfigdirs target-libsanitizer"
3382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3383 $as_echo "yes" >&6; }
3388 # Disable libvtv on unsupported systems.
3389 if test -d ${srcdir}/libvtv
; then
3390 if test x
$enable_libvtv = x
; then
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3392 $as_echo_n "checking for libvtv support... " >&6; }
3393 if (srcdir
=${srcdir}/libvtv
; \
3394 .
${srcdir}/configure.tgt
; \
3395 test "$VTV_SUPPORTED" != "yes")
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3398 $as_echo "no" >&6; }
3399 noconfigdirs
="$noconfigdirs target-libvtv"
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3402 $as_echo "yes" >&6; }
3407 # Disable libquadmath for some systems.
3410 noconfigdirs
="$noconfigdirs target-libquadmath"
3412 # libquadmath is unused on AIX and libquadmath build process use of
3413 # LD_LIBRARY_PATH can break AIX bootstrap.
3414 powerpc-
*-aix* | rs6000-
*-aix*)
3415 noconfigdirs
="$noconfigdirs target-libquadmath"
3419 # Disable libssp for some systems.
3422 # No hosted I/O support.
3423 noconfigdirs
="$noconfigdirs target-libssp"
3426 noconfigdirs
="$noconfigdirs target-libssp"
3428 powerpc-
*-aix* | rs6000-
*-aix*)
3429 noconfigdirs
="$noconfigdirs target-libssp"
3432 # No hosted I/O support.
3433 noconfigdirs
="$noconfigdirs target-libssp"
3436 # libssp uses a misaligned load to trigger a fault, but the RL78
3437 # doesn't fault for those - instead, it gives a build-time error
3438 # for explicit misaligned loads.
3439 noconfigdirs
="$noconfigdirs target-libssp"
3442 # No hosted I/O support.
3443 noconfigdirs
="$noconfigdirs target-libssp"
3447 # Disable libstdc++-v3 for some systems.
3448 # Allow user to override this if they pass --enable-libstdcxx
3449 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3452 # VxWorks uses the Dinkumware C++ library.
3453 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3456 # Not ported/fails to build when using newlib.
3457 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3460 # the C++ libraries don't build on top of CE's C libraries
3461 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3464 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3467 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3470 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3475 # Disable C++ on systems where it is known to not work.
3476 # For testing, you can override this with --enable-languages=c++.
3477 case ,${enable_languages}, in
3483 unsupported_languages
="$unsupported_languages c++"
3489 # Disable Objc on systems where it is known to not work.
3490 # For testing, you can override this with --enable-languages=objc.
3491 case ,${enable_languages}, in
3497 unsupported_languages
="$unsupported_languages objc"
3503 # Disable D on systems where it is known to not work.
3504 # For testing, you can override this with --enable-languages=d.
3505 case ,${enable_languages}, in
3511 unsupported_languages
="$unsupported_languages d"
3517 # Disable libphobos on unsupported systems.
3518 # For testing, you can override this with --enable-libphobos.
3519 if test -d ${srcdir}/libphobos
; then
3520 if test x
$enable_libphobos = x
; then
3521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3522 $as_echo_n "checking for libphobos support... " >&6; }
3523 if (srcdir
=${srcdir}/libphobos
; \
3524 .
${srcdir}/configure.tgt
; \
3525 test "$LIBPHOBOS_SUPPORTED" != "yes")
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3528 $as_echo "no" >&6; }
3529 noconfigdirs
="$noconfigdirs target-libphobos"
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3532 $as_echo "yes" >&6; }
3537 # Disable Fortran for some systems.
3540 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3541 unsupported_languages
="$unsupported_languages fortran"
3544 unsupported_languages
="$unsupported_languages fortran"
3548 # Disable libffi for some systems.
3552 i
[3456789]86-*-darwin*)
3554 x86_64-
*-darwin[912]*)
3557 noconfigdirs
="$noconfigdirs target-libffi"
3560 noconfigdirs
="$noconfigdirs target-libffi"
3563 noconfigdirs
="$noconfigdirs target-libffi"
3566 noconfigdirs
="$noconfigdirs target-libffi"
3569 noconfigdirs
="$noconfigdirs target-libffi"
3572 noconfigdirs
="$noconfigdirs target-libffi"
3575 noconfigdirs
="$noconfigdirs target-libffi"
3577 aarch64
*-*-freebsd*)
3578 noconfigdirs
="$noconfigdirs target-libffi"
3581 noconfigdirs
="$noconfigdirs target-libffi"
3584 noconfigdirs
="$noconfigdirs target-libffi"
3587 noconfigdirs
="$noconfigdirs target-libffi"
3590 noconfigdirs
="$noconfigdirs target-libffi"
3593 noconfigdirs
="$noconfigdirs target-libffi"
3595 cris-
*-* | crisv32-
*-*)
3599 *) # See PR46792 regarding target-libffi.
3600 noconfigdirs
="$noconfigdirs target-libffi";;
3604 noconfigdirs
="$noconfigdirs target-libffi"
3609 noconfigdirs
="$noconfigdirs target-libffi"
3612 noconfigdirs
="$noconfigdirs target-libffi"
3614 i
[3456789]86-w64-mingw*)
3615 noconfigdirs
="$noconfigdirs target-libffi"
3617 i
[3456789]86-*-mingw*)
3618 noconfigdirs
="$noconfigdirs target-libffi"
3621 noconfigdirs
="$noconfigdirs target-libffi"
3624 noconfigdirs
="$noconfigdirs target-libffi"
3631 noconfigdirs
="$noconfigdirs target-libffi"
3634 noconfigdirs
="$noconfigdirs target-libffi"
3638 # Disable the go frontend on systems where it is known to not work. Please keep
3639 # this in sync with contrib/config-list.mk.
3641 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3642 unsupported_languages
="$unsupported_languages go"
3646 # Only allow gdbserver on some systems.
3647 if test -d ${srcdir}/gdbserver
; then
3648 if test x
$enable_gdbserver = x
; then
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3650 $as_echo_n "checking for gdbserver support... " >&6; }
3651 if (srcdir
=${srcdir}/gdbserver
; \
3652 .
${srcdir}/configure.srv
; \
3653 test -n "$UNSUPPORTED")
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3656 $as_echo "no" >&6; }
3657 noconfigdirs
="$noconfigdirs gdbserver"
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3660 $as_echo "yes" >&6; }
3665 # Disable libgo for some systems where it is known to not work.
3666 # For testing, you can easily override this with --enable-libgo.
3667 if test x
$enable_libgo = x
; then
3671 noconfigdirs
="$noconfigdirs target-libgo"
3673 *-*-cygwin* |
*-*-mingw*)
3674 noconfigdirs
="$noconfigdirs target-libgo"
3677 noconfigdirs
="$noconfigdirs target-libgo"
3682 # Default libgloss CPU subdirectory.
3683 libgloss_dir
="$target_cpu"
3686 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3690 libgloss_dir
=aarch64
3695 cris-
*-* | crisv32-
*-*)
3705 libgloss_dir
=loongarch
3707 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3708 libgloss_dir
=m68hc11
3710 m68
*-*-* | fido-
*-*)
3727 # Disable newlib and libgloss for various target OSes.
3730 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3732 i
[3456789]86-*-linux*)
3733 # This section makes it possible to build newlib natively on linux.
3734 # If we are using a cross compiler then don't configure newlib.
3735 if test x
${is_cross_compiler} != xno
; then
3736 noconfigdirs
="$noconfigdirs target-newlib"
3738 noconfigdirs
="$noconfigdirs target-libgloss"
3739 # If we are not using a cross compiler, do configure newlib.
3740 # Note however, that newlib will only be configured in this situation
3741 # if the --with-newlib option has been given, because otherwise
3742 # 'target-newlib' will appear in skipdirs.
3744 i
[3456789]86-*-rdos*)
3745 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3747 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3748 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3751 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3754 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3757 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3760 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3763 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3766 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3769 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3771 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3772 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3775 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3778 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3781 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3784 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3787 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3790 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3793 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3801 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3802 noconfigdirs
="$noconfigdirs sim target-rda"
3807 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3808 noconfigdirs
="$noconfigdirs sim target-rda"
3811 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3812 noconfigdirs
="$noconfigdirs sim target-rda"
3814 i
[3456789]86-*-darwin*)
3815 noconfigdirs
="$noconfigdirs ld gprof"
3816 noconfigdirs
="$noconfigdirs sim target-rda"
3818 x86_64-
*-darwin[912]*)
3819 noconfigdirs
="$noconfigdirs ld gas gprof"
3820 noconfigdirs
="$noconfigdirs sim target-rda"
3823 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3824 noconfigdirs
="$noconfigdirs sim target-rda"
3829 if test "x$with_gmp" = x \
3830 && ! test -d ${srcdir}/gmp \
3831 && test -f /usr
/local
/include
/gmp.h
; then
3836 # Remove unsupported stuff on all kaOS configurations.
3837 noconfigdirs
="$noconfigdirs target-libgloss"
3844 noconfigdirs
="$noconfigdirs target-libgloss"
3847 noconfigdirs
="$noconfigdirs target-libgloss"
3849 # The tpf target doesn't support gdb yet.
3851 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3854 noconfigdirs
="$noconfigdirs target-rda"
3859 # ld works, but does not support shared libraries.
3860 # gas doesn't generate exception information.
3861 noconfigdirs
="$noconfigdirs gas ld"
3864 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3867 # newlib is not 64 bit ready
3868 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3871 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3873 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3874 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3877 noconfigdirs
="$noconfigdirs sim"
3880 noconfigdirs
="$noconfigdirs target-libgloss"
3883 noconfigdirs
="$noconfigdirs ld target-libgloss"
3886 if test x
${with_avrlibc} != xno
; then
3887 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3890 c4x-
*-* | tic4x-
*-*)
3891 noconfigdirs
="$noconfigdirs target-libgloss"
3894 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3897 noconfigdirs
="$noconfigdirs target-libgloss"
3900 noconfigdirs
="$noconfigdirs gdb"
3903 noconfigdirs
="$noconfigdirs gdb"
3906 noconfigdirs
="$noconfigdirs target-rda gprof"
3909 noconfigdirs
="$noconfigdirs"
3912 noconfigdirs
="$noconfigdirs target-libgloss"
3915 noconfigdirs
="$noconfigdirs target-libgloss"
3917 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3920 noconfigdirs
="$noconfigdirs gdb"
3923 noconfigdirs
="$noconfigdirs gdb ld"
3931 hppa
*-*-openbsd* | \
3937 noconfigdirs
="$noconfigdirs ld"
3940 noconfigdirs
="$noconfigdirs gdb"
3943 # No gdb support yet.
3944 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3947 # No ld support yet.
3948 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3951 # No ld support yet.
3952 noconfigdirs
="$noconfigdirs libgui itcl ld"
3954 i
[3456789]86-w64-mingw*)
3956 i
[3456789]86-*-mingw*)
3957 target_configdirs
="$target_configdirs target-winsup"
3960 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3961 noconfigdirs
="$noconfigdirs target-libgloss"
3962 # always build newlib if winsup directory is present.
3963 if test -d "$srcdir/winsup/cygwin"; then
3964 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3965 elif test -d "$srcdir/newlib"; then
3966 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3970 noconfigdirs
="$noconfigdirs target-libgloss"
3972 i
[3456789]86-*-sco3.2v5
*)
3973 # The linker does not yet know about weak symbols in COFF,
3974 # and is not configured to handle mixed ELF and COFF.
3975 noconfigdirs
="$noconfigdirs ld target-libgloss"
3977 i
[3456789]86-*-sco*)
3978 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3980 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3981 noconfigdirs
="$noconfigdirs target-libgloss"
3983 i
[3456789]86-*-sysv4*)
3984 noconfigdirs
="$noconfigdirs target-libgloss"
3986 i
[3456789]86-*-beos*)
3987 noconfigdirs
="$noconfigdirs gdb"
3989 i
[3456789]86-*-rdos*)
3990 noconfigdirs
="$noconfigdirs gdb"
3993 noconfigdirs
="$noconfigdirs gdb"
3996 noconfigdirs
="$noconfigdirs sim"
3999 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
4000 noconfigdirs
="$noconfigdirs $target_libraries"
4003 noconfigdirs
="$noconfigdirs gdb gprof"
4006 # copied from rs6000-*-* entry
4007 noconfigdirs
="$noconfigdirs gprof"
4009 powerpc
*-*-winnt* | powerpc
*-*-pe*)
4010 target_configdirs
="$target_configdirs target-winsup"
4011 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
4012 # always build newlib.
4013 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4015 # This is temporary until we can link against shared libraries
4016 powerpcle-
*-solaris*)
4017 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
4020 noconfigdirs
="$noconfigdirs gdb"
4023 noconfigdirs
="$noconfigdirs gprof"
4026 noconfigdirs
="$noconfigdirs gprof"
4029 noconfigdirs
="$noconfigdirs gprof"
4032 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
4035 noconfigdirs
="$noconfigdirs gprof"
4037 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
4038 if test x
$with_newlib = xyes
; then
4039 noconfigdirs
="$noconfigdirs gprof"
4043 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4046 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4049 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
4053 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
4054 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
4055 noconfigdirs
="$noconfigdirs ld gas gprof"
4058 noconfigdirs
="$noconfigdirs gprof"
4061 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4068 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4072 if test x
${is_cross_compiler} = xno
; then
4077 noconfigdirs
="$noconfigdirs sim"
4079 tilepro
*-*-* | tilegx
*-*-*)
4080 noconfigdirs
="$noconfigdirs sim"
4083 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4086 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4089 noconfigdirs
="$noconfigdirs ld"
4091 loongarch
*-*-linux*)
4094 noconfigdirs
="$noconfigdirs gprof"
4098 # If we aren't building newlib, then don't build libgloss, since libgloss
4099 # depends upon some newlib header files.
4100 case "${noconfigdirs}" in
4101 *target-libgloss
*) ;;
4102 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4105 # Work in distributions that contain no compiler tools, like Autoconf.
4106 host_makefile_frag
=/dev
/null
4107 if test -d ${srcdir}/config
; then
4109 i
[3456789]86-*-msdosdjgpp*)
4110 host_makefile_frag
="config/mh-djgpp"
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4115 $as_echo_n "checking to see if cat works as expected... " >&6; }
4116 echo a
>cygwin-cat-check
4117 if test `cat cygwin-cat-check` = a
; then
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4120 $as_echo "yes" >&6; }
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4124 $as_echo "no" >&6; }
4125 as_fn_error $?
"The cat command does not ignore carriage return characters.
4126 Please either mount the build directory in binary mode or run the following
4127 commands before running any configure script:
4133 host_makefile_frag
="config/mh-cygwin"
4136 host_makefile_frag
="config/mh-mingw"
4139 host_makefile_frag
="config/mh-alpha-linux"
4142 host_makefile_frag
="config/mh-pa-hpux10"
4145 host_makefile_frag
="config/mh-pa"
4148 host_makefile_frag
="config/mh-pa"
4150 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4151 host_makefile_frag
="config/mh-darwin"
4154 host_makefile_frag
="config/mh-ppc-aix"
4157 host_makefile_frag
="config/mh-ppc-aix"
4162 if test "${build}" != "${host}" ; then
4163 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4164 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4165 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4166 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4167 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4168 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4169 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4170 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4171 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4172 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4173 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4174 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4175 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4176 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4177 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4179 AR_FOR_BUILD
="\$(AR)"
4180 AS_FOR_BUILD
="\$(AS)"
4181 CC_FOR_BUILD
="\$(CC)"
4182 CXX_FOR_BUILD
="\$(CXX)"
4183 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4184 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4185 GOC_FOR_BUILD
="\$(GOC)"
4186 GDC_FOR_BUILD
="\$(GDC)"
4187 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4188 LD_FOR_BUILD
="\$(LD)"
4189 NM_FOR_BUILD
="\$(NM)"
4190 RANLIB_FOR_BUILD
="\$(RANLIB)"
4191 WINDRES_FOR_BUILD
="\$(WINDRES)"
4192 WINDMC_FOR_BUILD
="\$(WINDMC)"
4196 ac_cpp
='$CPP $CPPFLAGS'
4197 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4198 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4199 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4200 if test -n "$ac_tool_prefix"; then
4201 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4202 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4204 $as_echo_n "checking for $ac_word... " >&6; }
4205 if ${ac_cv_prog_CC+:} false
; then :
4206 $as_echo_n "(cached) " >&6
4208 if test -n "$CC"; then
4209 ac_cv_prog_CC
="$CC" # Let the user override the test.
4211 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4215 test -z "$as_dir" && as_dir
=.
4216 for ac_exec_ext
in '' $ac_executable_extensions; do
4217 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4218 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4219 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4229 if test -n "$CC"; then
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4231 $as_echo "$CC" >&6; }
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4234 $as_echo "no" >&6; }
4239 if test -z "$ac_cv_prog_CC"; then
4241 # Extract the first word of "gcc", so it can be a program name with args.
4242 set dummy gcc
; ac_word
=$2
4243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4244 $as_echo_n "checking for $ac_word... " >&6; }
4245 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4246 $as_echo_n "(cached) " >&6
4248 if test -n "$ac_ct_CC"; then
4249 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4251 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4255 test -z "$as_dir" && as_dir
=.
4256 for ac_exec_ext
in '' $ac_executable_extensions; do
4257 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4258 ac_cv_prog_ac_ct_CC
="gcc"
4259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4268 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4269 if test -n "$ac_ct_CC"; then
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4271 $as_echo "$ac_ct_CC" >&6; }
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4274 $as_echo "no" >&6; }
4277 if test "x$ac_ct_CC" = x
; then
4280 case $cross_compiling:$ac_tool_warned in
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4283 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4284 ac_tool_warned
=yes ;;
4292 if test -z "$CC"; then
4293 if test -n "$ac_tool_prefix"; then
4294 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4295 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if ${ac_cv_prog_CC+:} false
; then :
4299 $as_echo_n "(cached) " >&6
4301 if test -n "$CC"; then
4302 ac_cv_prog_CC
="$CC" # Let the user override the test.
4304 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4308 test -z "$as_dir" && as_dir
=.
4309 for ac_exec_ext
in '' $ac_executable_extensions; do
4310 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4322 if test -n "$CC"; then
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4324 $as_echo "$CC" >&6; }
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4333 if test -z "$CC"; then
4334 # Extract the first word of "cc", so it can be a program name with args.
4335 set dummy cc
; ac_word
=$2
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4337 $as_echo_n "checking for $ac_word... " >&6; }
4338 if ${ac_cv_prog_CC+:} false
; then :
4339 $as_echo_n "(cached) " >&6
4341 if test -n "$CC"; then
4342 ac_cv_prog_CC
="$CC" # Let the user override the test.
4345 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4349 test -z "$as_dir" && as_dir
=.
4350 for ac_exec_ext
in '' $ac_executable_extensions; do
4351 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4352 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4353 ac_prog_rejected
=yes
4357 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4364 if test $ac_prog_rejected = yes; then
4365 # We found a bogon in the path, so make sure we never use it.
4366 set dummy
$ac_cv_prog_CC
4368 if test $# != 0; then
4369 # We chose a different compiler from the bogus one.
4370 # However, it has the same basename, so the bogon will be chosen
4371 # first if we set CC to just the basename; use the full file name.
4373 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4379 if test -n "$CC"; then
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4381 $as_echo "$CC" >&6; }
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4389 if test -z "$CC"; then
4390 if test -n "$ac_tool_prefix"; then
4391 for ac_prog
in cl.exe
4393 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4394 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4396 $as_echo_n "checking for $ac_word... " >&6; }
4397 if ${ac_cv_prog_CC+:} false
; then :
4398 $as_echo_n "(cached) " >&6
4400 if test -n "$CC"; then
4401 ac_cv_prog_CC
="$CC" # Let the user override the test.
4403 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4407 test -z "$as_dir" && as_dir
=.
4408 for ac_exec_ext
in '' $ac_executable_extensions; do
4409 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4410 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4411 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4421 if test -n "$CC"; then
4422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4423 $as_echo "$CC" >&6; }
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4426 $as_echo "no" >&6; }
4430 test -n "$CC" && break
4433 if test -z "$CC"; then
4435 for ac_prog
in cl.exe
4437 # Extract the first word of "$ac_prog", so it can be a program name with args.
4438 set dummy
$ac_prog; ac_word
=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4442 $as_echo_n "(cached) " >&6
4444 if test -n "$ac_ct_CC"; then
4445 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4447 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4451 test -z "$as_dir" && as_dir
=.
4452 for ac_exec_ext
in '' $ac_executable_extensions; do
4453 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4454 ac_cv_prog_ac_ct_CC
="$ac_prog"
4455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4465 if test -n "$ac_ct_CC"; then
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4467 $as_echo "$ac_ct_CC" >&6; }
4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4470 $as_echo "no" >&6; }
4474 test -n "$ac_ct_CC" && break
4477 if test "x$ac_ct_CC" = x
; then
4480 case $cross_compiling:$ac_tool_warned in
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4483 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4484 ac_tool_warned
=yes ;;
4493 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4494 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4495 as_fn_error $?
"no acceptable C compiler found in \$PATH
4496 See \`config.log' for more details" "$LINENO" 5; }
4498 # Provide some information about the compiler.
4499 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4502 for ac_option
in --version -v -V -qversion; do
4503 { { ac_try
="$ac_compiler $ac_option >&5"
4505 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4506 *) ac_try_echo=$ac_try;;
4508 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4509 $as_echo "$ac_try_echo"; } >&5
4510 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4512 if test -s conftest.err; then
4514 ... rest of stderr output deleted ...
4515 10q' conftest.err >conftest.er1
4516 cat conftest.er1 >&5
4518 rm -f conftest.er1 conftest.err
4519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4520 test $ac_status = 0; }
4523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4524 /* end confdefs.h. */
4534 ac_clean_files_save=$ac_clean_files
4535 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4536 # Try to create an executable without -o first, disregard a.out.
4537 # It will help us diagnose broken compilers, and finding out an intuition
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4540 $as_echo_n "checking whether the C compiler works... " >&6; }
4541 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4543 # The possible output files:
4544 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4547 for ac_file in $ac_files
4550 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4551 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4556 if { { ac_try="$ac_link_default"
4558 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4559 *) ac_try_echo
=$ac_try;;
4561 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4562 $as_echo "$ac_try_echo"; } >&5
4563 (eval "$ac_link_default") 2>&5
4565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4566 test $ac_status = 0; }; then :
4567 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4568 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4569 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4570 # so that the user can short-circuit this test for compilers unknown to
4572 for ac_file
in $ac_files ''
4574 test -f "$ac_file" ||
continue
4576 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4579 # We found the default executable, but exeext='' is most
4583 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4585 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4587 # We set ac_cv_exeext here because the later test for it is not
4588 # safe: cross compilers may not add the suffix if given an `-o'
4589 # argument, so we may need to know it at that point already.
4590 # Even if this section looks crufty: it has the advantage of
4597 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4602 if test -z "$ac_file"; then :
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4604 $as_echo "no" >&6; }
4605 $as_echo "$as_me: failed program was:" >&5
4606 sed 's/^/| /' conftest.
$ac_ext >&5
4608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4609 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4610 as_fn_error
77 "C compiler cannot create executables
4611 See \`config.log' for more details" "$LINENO" 5; }
4613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4614 $as_echo "yes" >&6; }
4616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4617 $as_echo_n "checking for C compiler default output file name... " >&6; }
4618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4619 $as_echo "$ac_file" >&6; }
4620 ac_exeext
=$ac_cv_exeext
4622 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4623 ac_clean_files
=$ac_clean_files_save
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4625 $as_echo_n "checking for suffix of executables... " >&6; }
4626 if { { ac_try
="$ac_link"
4628 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4632 $as_echo "$ac_try_echo"; } >&5
4633 (eval "$ac_link") 2>&5
4635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4636 test $ac_status = 0; }; then :
4637 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4638 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4639 # work properly (i.e., refer to `conftest.exe'), while it won't with
4641 for ac_file
in conftest.exe conftest conftest.
*; do
4642 test -f "$ac_file" ||
continue
4644 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4645 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4651 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4653 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4654 See \`config.log' for more details" "$LINENO" 5; }
4656 rm -f conftest conftest
$ac_cv_exeext
4657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4658 $as_echo "$ac_cv_exeext" >&6; }
4660 rm -f conftest.
$ac_ext
4661 EXEEXT
=$ac_cv_exeext
4663 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4669 FILE *f = fopen ("conftest.out", "w");
4670 return ferror (f) || fclose (f) != 0;
4676 ac_clean_files
="$ac_clean_files conftest.out"
4677 # Check that the compiler produces executables we can run. If not, either
4678 # the compiler is broken, or we cross compile.
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4680 $as_echo_n "checking whether we are cross compiling... " >&6; }
4681 if test "$cross_compiling" != yes; then
4682 { { ac_try
="$ac_link"
4684 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4685 *) ac_try_echo=$ac_try;;
4687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4688 $as_echo "$ac_try_echo"; } >&5
4689 (eval "$ac_link") 2>&5
4691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4692 test $ac_status = 0; }
4693 if { ac_try='./conftest$ac_cv_exeext'
4694 { { case "(($ac_try" in
4695 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4696 *) ac_try_echo
=$ac_try;;
4698 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4699 $as_echo "$ac_try_echo"; } >&5
4700 (eval "$ac_try") 2>&5
4702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4703 test $ac_status = 0; }; }; then
4706 if test "$cross_compiling" = maybe
; then
4709 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4710 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4711 as_fn_error $?
"cannot run C compiled programs.
4712 If you meant to cross compile, use \`--host'.
4713 See \`config.log' for more details" "$LINENO" 5; }
4717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4718 $as_echo "$cross_compiling" >&6; }
4720 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4721 ac_clean_files
=$ac_clean_files_save
4722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4723 $as_echo_n "checking for suffix of object files... " >&6; }
4724 if ${ac_cv_objext+:} false
; then :
4725 $as_echo_n "(cached) " >&6
4727 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4728 /* end confdefs.h. */
4738 rm -f conftest.o conftest.obj
4739 if { { ac_try
="$ac_compile"
4741 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4744 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4745 $as_echo "$ac_try_echo"; } >&5
4746 (eval "$ac_compile") 2>&5
4748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4749 test $ac_status = 0; }; then :
4750 for ac_file in conftest.o conftest.obj conftest.*; do
4751 test -f "$ac_file" || continue;
4753 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4754 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4759 $as_echo "$as_me: failed program was:" >&5
4760 sed 's/^/| /' conftest.$ac_ext >&5
4762 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4763 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4764 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4765 See \
`config.log' for more details" "$LINENO" 5; }
4767 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4770 $as_echo "$ac_cv_objext" >&6; }
4771 OBJEXT=$ac_cv_objext
4773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4774 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4775 if ${ac_cv_c_compiler_gnu+:} false; then :
4776 $as_echo_n "(cached) " >&6
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4792 if ac_fn_c_try_compile "$LINENO"; then :
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4798 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4802 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4803 if test $ac_compiler_gnu = yes; then
4808 ac_test_CFLAGS=${CFLAGS+set}
4809 ac_save_CFLAGS=$CFLAGS
4810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4811 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4812 if ${ac_cv_prog_cc_g+:} false; then :
4813 $as_echo_n "(cached) " >&6
4815 ac_save_c_werror_flag=$ac_c_werror_flag
4816 ac_c_werror_flag=yes
4819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4820 /* end confdefs.h. */
4830 if ac_fn_c_try_compile "$LINENO"; then :
4834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4835 /* end confdefs.h. */
4845 if ac_fn_c_try_compile "$LINENO"; then :
4848 ac_c_werror_flag=$ac_save_c_werror_flag
4850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4851 /* end confdefs.h. */
4861 if ac_fn_c_try_compile "$LINENO"; then :
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 ac_c_werror_flag=$ac_save_c_werror_flag
4871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4872 $as_echo "$ac_cv_prog_cc_g" >&6; }
4873 if test "$ac_test_CFLAGS" = set; then
4874 CFLAGS=$ac_save_CFLAGS
4875 elif test $ac_cv_prog_cc_g = yes; then
4876 if test "$GCC" = yes; then
4882 if test "$GCC" = yes; then
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4889 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4890 if ${ac_cv_prog_cc_c89+:} false; then :
4891 $as_echo_n "(cached) " >&6
4893 ac_cv_prog_cc_c89=no
4895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4896 /* end confdefs.h. */
4900 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4901 struct buf { int x; };
4902 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4903 static char *e (p, i)
4909 static char *f (char * (*g) (char **, int), char **p, ...)
4914 s = g (p, va_arg (v,int));
4919 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4920 function prototypes and stuff, but not '\xHH' hex character constants.
4921 These don't provoke an error unfortunately, instead are silently treated
4922 as 'x'. The following induces an error, until -std is added to get
4923 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4924 array size at least. It's necessary to write '\x00'==0 to get something
4925 that's true only with -std. */
4926 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4928 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4929 inside strings and character constants. */
4931 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4933 int test (int i, double x);
4934 struct s1 {int (*f) (int a);};
4935 struct s2 {int (*f) (double a);};
4936 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4942 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4947 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4948 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4950 CC="$ac_save_CC $ac_arg"
4951 if ac_fn_c_try_compile "$LINENO"; then :
4952 ac_cv_prog_cc_c89=$ac_arg
4954 rm -f core conftest.err conftest.$ac_objext
4955 test "x$ac_cv_prog_cc_c89" != "xno" && break
4957 rm -f conftest.$ac_ext
4962 case "x$ac_cv_prog_cc_c89" in
4964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4965 $as_echo "none needed" >&6; } ;;
4967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4968 $as_echo "unsupported" >&6; } ;;
4970 CC="$CC $ac_cv_prog_cc_c89"
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4972 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4974 if test "x$ac_cv_prog_cc_c89" != xno; then :
4979 ac_cpp='$CPP $CPPFLAGS'
4980 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4981 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4982 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4985 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4986 if ${ac_cv_prog_cc_c99+:} false; then :
4987 $as_echo_n "(cached) " >&6
4989 ac_cv_prog_cc_c99=no
4991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4992 /* end confdefs.h. */
4994 #include <stdbool.h>
4999 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5000 #define debug(...) fprintf (stderr, __VA_ARGS__)
5001 #define showlist(...) puts (#__VA_ARGS__)
5002 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5004 test_varargs_macros (void)
5009 debug ("X = %d\n", x);
5010 showlist (The first, second, and third items.);
5011 report (x>y, "x is %d but y is %d", x, y);
5014 // Check long long types.
5015 #define BIG64 18446744073709551615ull
5016 #define BIG32 4294967295ul
5017 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5019 your preprocessor is broken;
5023 your preprocessor is broken;
5025 static long long int bignum = -9223372036854775807LL;
5026 static unsigned long long int ubignum = BIG64;
5028 struct incomplete_array
5036 const wchar_t *name;
5040 typedef const char *ccp;
5043 test_restrict (ccp restrict text)
5045 // See if C++-style comments work.
5046 // Iterate through items via the restricted pointer.
5047 // Also check for declarations in for loops.
5048 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5053 // Check varargs and va_copy.
5055 test_varargs (const char *format, ...)
5058 va_start (args, format);
5060 va_copy (args_copy, args);
5071 str = va_arg (args_copy, const char *);
5074 number = va_arg (args_copy, int);
5077 fnumber = va_arg (args_copy, double);
5092 _Bool success = false;
5095 if (test_restrict ("String literal") == 0)
5097 char *restrict newvar = "Another string";
5100 test_varargs ("s, d' f .", "string", 65, 34.234);
5101 test_varargs_macros ();
5103 // Check flexible array members.
5104 struct incomplete_array *ia =
5105 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5107 for (int i = 0; i < ia->datasize; ++i)
5108 ia->data[i] = i * 1.234;
5110 // Check named initializers.
5111 struct named_init ni = {
5113 .name = L"Test wide string",
5114 .average = 543.34343,
5119 int dynamic_array[ni.number];
5120 dynamic_array[ni.number - 1] = 543;
5122 // work around unused variable warnings
5123 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5124 || dynamic_array[ni.number - 1] != 543);
5130 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5132 CC="$ac_save_CC $ac_arg"
5133 if ac_fn_c_try_compile "$LINENO"; then :
5134 ac_cv_prog_cc_c99=$ac_arg
5136 rm -f core conftest.err conftest.$ac_objext
5137 test "x$ac_cv_prog_cc_c99" != "xno" && break
5139 rm -f conftest.$ac_ext
5144 case "x$ac_cv_prog_cc_c99" in
5146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5147 $as_echo "none needed" >&6; } ;;
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5150 $as_echo "unsupported" >&6; } ;;
5152 CC="$CC $ac_cv_prog_cc_c99"
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5154 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5156 if test "x$ac_cv_prog_cc_c99" != xno; then :
5162 ac_cpp='$CXXCPP $CPPFLAGS'
5163 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5164 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5165 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5166 if test -z "$CXX"; then
5167 if test -n "$CCC"; then
5170 if test -n "$ac_tool_prefix"; then
5171 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; }
5177 if ${ac_cv_prog_CXX+:} false; then :
5178 $as_echo_n "(cached) " >&6
5180 if test -n "$CXX"; then
5181 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5190 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5201 if test -n "$CXX"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5203 $as_echo "$CXX" >&6; }
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5210 test -n "$CXX" && break
5213 if test -z "$CXX"; then
5215 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5217 # Extract the first word of "$ac_prog", so it can be a program name with args.
5218 set dummy $ac_prog; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5222 $as_echo_n "(cached) " >&6
5224 if test -n "$ac_ct_CXX"; then
5225 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5234 ac_cv_prog_ac_ct_CXX="$ac_prog"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5245 if test -n "$ac_ct_CXX"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5247 $as_echo "$ac_ct_CXX" >&6; }
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5254 test -n "$ac_ct_CXX" && break
5257 if test "x$ac_ct_CXX" = x; then
5260 case $cross_compiling:$ac_tool_warned in
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5264 ac_tool_warned=yes ;;
5272 # Provide some information about the compiler.
5273 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5276 for ac_option in --version -v -V -qversion; do
5277 { { ac_try="$ac_compiler $ac_option >&5"
5279 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5280 *) ac_try_echo
=$ac_try;;
5282 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5283 $as_echo "$ac_try_echo"; } >&5
5284 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5286 if test -s conftest.err
; then
5288 ... rest of stderr output deleted ...
5289 10q' conftest.err
>conftest.er1
5290 cat conftest.er1
>&5
5292 rm -f conftest.er1 conftest.err
5293 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5294 test $ac_status = 0; }
5297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5298 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5299 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5300 $as_echo_n "(cached) " >&6
5302 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5316 if ac_fn_cxx_try_compile
"$LINENO"; then :
5321 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5322 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5326 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5327 if test $ac_compiler_gnu = yes; then
5332 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5333 ac_save_CXXFLAGS
=$CXXFLAGS
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5335 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5336 if ${ac_cv_prog_cxx_g+:} false
; then :
5337 $as_echo_n "(cached) " >&6
5339 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5340 ac_cxx_werror_flag
=yes
5343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5344 /* end confdefs.h. */
5354 if ac_fn_cxx_try_compile
"$LINENO"; then :
5355 ac_cv_prog_cxx_g
=yes
5358 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5359 /* end confdefs.h. */
5369 if ac_fn_cxx_try_compile
"$LINENO"; then :
5372 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5374 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5375 /* end confdefs.h. */
5385 if ac_fn_cxx_try_compile
"$LINENO"; then :
5386 ac_cv_prog_cxx_g
=yes
5388 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5390 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5392 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5393 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5396 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5397 if test "$ac_test_CXXFLAGS" = set; then
5398 CXXFLAGS
=$ac_save_CXXFLAGS
5399 elif test $ac_cv_prog_cxx_g = yes; then
5400 if test "$GXX" = yes; then
5406 if test "$GXX" = yes; then
5413 ac_cpp
='$CPP $CPPFLAGS'
5414 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5415 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5416 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5419 # We must set the default linker to the linker used by gcc for the correct
5420 # operation of libtool. If LD is not defined and we are using gcc, try to
5421 # set the LD default to the ld used by gcc.
5422 if test -z "$LD"; then
5423 if test "$GCC" = yes; then
5426 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5428 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5430 case $gcc_prog_ld in
5431 # Accept absolute paths.
5432 [\\/]* |
[A-Za-z
]:[\\/]*)
5433 LD
="$gcc_prog_ld" ;;
5438 # Check whether -static-libstdc++ -static-libgcc is supported.
5440 if test "$GCC" = yes; then
5441 saved_LDFLAGS
="$LDFLAGS"
5443 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5445 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5447 ac_cpp
='$CXXCPP $CPPFLAGS'
5448 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5449 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5450 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5456 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5457 #error -static-libstdc++ not implemented
5461 if ac_fn_cxx_try_link
"$LINENO"; then :
5462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5463 $as_echo "yes" >&6; }; have_static_libs
=yes
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5466 $as_echo "no" >&6; }
5468 rm -f core conftest.err conftest.
$ac_objext \
5469 conftest
$ac_exeext conftest.
$ac_ext
5471 ac_cpp
='$CPP $CPPFLAGS'
5472 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5473 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5474 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5477 LDFLAGS
="$saved_LDFLAGS"
5483 if test -n "$ac_tool_prefix"; then
5484 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5485 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5487 $as_echo_n "checking for $ac_word... " >&6; }
5488 if ${ac_cv_prog_GNATBIND+:} false
; then :
5489 $as_echo_n "(cached) " >&6
5491 if test -n "$GNATBIND"; then
5492 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5494 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5498 test -z "$as_dir" && as_dir
=.
5499 for ac_exec_ext
in '' $ac_executable_extensions; do
5500 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5501 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5511 GNATBIND
=$ac_cv_prog_GNATBIND
5512 if test -n "$GNATBIND"; then
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5514 $as_echo "$GNATBIND" >&6; }
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5517 $as_echo "no" >&6; }
5522 if test -z "$ac_cv_prog_GNATBIND"; then
5523 ac_ct_GNATBIND
=$GNATBIND
5524 # Extract the first word of "gnatbind", so it can be a program name with args.
5525 set dummy gnatbind
; ac_word
=$2
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5527 $as_echo_n "checking for $ac_word... " >&6; }
5528 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5529 $as_echo_n "(cached) " >&6
5531 if test -n "$ac_ct_GNATBIND"; then
5532 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5534 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5538 test -z "$as_dir" && as_dir
=.
5539 for ac_exec_ext
in '' $ac_executable_extensions; do
5540 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5551 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5552 if test -n "$ac_ct_GNATBIND"; then
5553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5554 $as_echo "$ac_ct_GNATBIND" >&6; }
5556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5557 $as_echo "no" >&6; }
5560 if test "x$ac_ct_GNATBIND" = x
; then
5563 case $cross_compiling:$ac_tool_warned in
5565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5566 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5567 ac_tool_warned
=yes ;;
5569 GNATBIND
=$ac_ct_GNATBIND
5572 GNATBIND
="$ac_cv_prog_GNATBIND"
5575 if test -n "$ac_tool_prefix"; then
5576 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5577 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5579 $as_echo_n "checking for $ac_word... " >&6; }
5580 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5581 $as_echo_n "(cached) " >&6
5583 if test -n "$GNATMAKE"; then
5584 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5586 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5590 test -z "$as_dir" && as_dir
=.
5591 for ac_exec_ext
in '' $ac_executable_extensions; do
5592 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5593 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5603 GNATMAKE
=$ac_cv_prog_GNATMAKE
5604 if test -n "$GNATMAKE"; then
5605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5606 $as_echo "$GNATMAKE" >&6; }
5608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5609 $as_echo "no" >&6; }
5614 if test -z "$ac_cv_prog_GNATMAKE"; then
5615 ac_ct_GNATMAKE
=$GNATMAKE
5616 # Extract the first word of "gnatmake", so it can be a program name with args.
5617 set dummy gnatmake
; ac_word
=$2
5618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5619 $as_echo_n "checking for $ac_word... " >&6; }
5620 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5621 $as_echo_n "(cached) " >&6
5623 if test -n "$ac_ct_GNATMAKE"; then
5624 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5626 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5630 test -z "$as_dir" && as_dir
=.
5631 for ac_exec_ext
in '' $ac_executable_extensions; do
5632 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5633 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5643 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5644 if test -n "$ac_ct_GNATMAKE"; then
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5646 $as_echo "$ac_ct_GNATMAKE" >&6; }
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5649 $as_echo "no" >&6; }
5652 if test "x$ac_ct_GNATMAKE" = x
; then
5655 case $cross_compiling:$ac_tool_warned in
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5658 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5659 ac_tool_warned
=yes ;;
5661 GNATMAKE
=$ac_ct_GNATMAKE
5664 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5668 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5669 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5670 $as_echo_n "(cached) " >&6
5672 cat >conftest.adb
<<EOF
5673 pragma Warnings (Off);
5675 pragma Warnings (On);
5676 use type System.CRTL.int64;
5677 procedure conftest is begin null; end conftest;
5679 acx_cv_cc_gcc_supports_ada
=no
5680 # There is a bug in old released versions of GCC which causes the
5681 # driver to exit successfully when the appropriate language module
5682 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5683 # Therefore we must check for the error message as well as an
5684 # unsuccessful exit.
5685 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5686 # given a .adb file, but produce no object file. So we must check
5687 # if an object file was really produced to guard against this.
5688 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5689 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5690 acx_cv_cc_gcc_supports_ada
=yes
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5695 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5697 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5705 if test -n "$ac_tool_prefix"; then
5706 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5707 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5709 $as_echo_n "checking for $ac_word... " >&6; }
5710 if ${ac_cv_prog_GDC+:} false
; then :
5711 $as_echo_n "(cached) " >&6
5713 if test -n "$GDC"; then
5714 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5716 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5720 test -z "$as_dir" && as_dir
=.
5721 for ac_exec_ext
in '' $ac_executable_extensions; do
5722 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5734 if test -n "$GDC"; then
5735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5736 $as_echo "$GDC" >&6; }
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5739 $as_echo "no" >&6; }
5744 if test -z "$ac_cv_prog_GDC"; then
5746 # Extract the first word of "gdc", so it can be a program name with args.
5747 set dummy gdc
; ac_word
=$2
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5749 $as_echo_n "checking for $ac_word... " >&6; }
5750 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5751 $as_echo_n "(cached) " >&6
5753 if test -n "$ac_ct_GDC"; then
5754 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5756 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5760 test -z "$as_dir" && as_dir
=.
5761 for ac_exec_ext
in '' $ac_executable_extensions; do
5762 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5763 ac_cv_prog_ac_ct_GDC
="gdc"
5764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5773 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5774 if test -n "$ac_ct_GDC"; then
5775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5776 $as_echo "$ac_ct_GDC" >&6; }
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5779 $as_echo "no" >&6; }
5782 if test "x$ac_ct_GDC" = x
; then
5785 case $cross_compiling:$ac_tool_warned in
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5788 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5789 ac_tool_warned
=yes ;;
5794 GDC
="$ac_cv_prog_GDC"
5797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5798 $as_echo_n "checking whether the D compiler works... " >&6; }
5799 if ${acx_cv_d_compiler_works+:} false
; then :
5800 $as_echo_n "(cached) " >&6
5802 cat >conftest.d
<<EOF
5803 module conftest; int main() { return 0; }
5805 acx_cv_d_compiler_works
=no
5806 if test "x$GDC" != xno
; then
5807 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5808 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5809 acx_cv_d_compiler_works
=yes
5814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5815 $as_echo "$acx_cv_d_compiler_works" >&6; }
5816 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5823 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5824 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5825 $as_echo_n "(cached) " >&6
5829 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5830 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5831 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5834 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5837 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5838 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5841 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5848 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5849 do_compare
="$gcc_cv_prog_cmp_skip"
5853 # Check whether --enable-bootstrap was given.
5854 if test "${enable_bootstrap+set}" = set; then :
5855 enableval
=$enable_bootstrap;
5857 enable_bootstrap
=default
5861 # Issue errors and warnings for invalid/strange bootstrap combinations.
5862 if test -r $srcdir/gcc
/configure
; then
5868 case "$have_compiler:$host:$target:$enable_bootstrap" in
5871 # Default behavior. Enable bootstrap if we have a compiler
5872 # and we are in a native configuration.
5873 yes:$build:$build:default
)
5874 enable_bootstrap
=yes ;;
5877 enable_bootstrap
=no
;;
5879 # We have a compiler and we are in a native configuration, bootstrap is ok
5880 yes:$build:$build:yes)
5883 # Other configurations, but we have a compiler. Assume the user knows
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5887 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5890 # No compiler: if they passed --enable-bootstrap explicitly, fail
5892 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5894 # Fail if wrong command line
5896 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5900 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5901 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5902 # require C++11 (or higher).
5903 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5904 CXX
="$CXX -std=c++11"
5905 elif test "$have_compiler" = yes; then
5906 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5908 ac_cpp
='$CXXCPP $CPPFLAGS'
5909 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5910 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5911 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5915 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5916 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5917 $as_echo_n "(cached) " >&6
5919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5920 /* end confdefs.h. */
5923 // If the compiler admits that it is not ready for C++11, why torture it?
5924 // Hopefully, this will speed up the test.
5928 #error "This is not a C++ compiler"
5930 #elif __cplusplus < 201103L
5932 #error "This is not a C++11 compiler"
5939 namespace test_static_assert
5942 template <typename T>
5945 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5950 namespace test_final_override
5959 struct Derived : public Base
5961 virtual ~Derived() override {}
5962 virtual void f() override {}
5967 namespace test_double_right_angle_brackets
5970 template < typename T >
5973 typedef check<void> single_type;
5974 typedef check<check<void>> double_type;
5975 typedef check<check<check<void>>> triple_type;
5976 typedef check<check<check<check<void>>>> quadruple_type;
5980 namespace test_decltype
5993 namespace test_type_deduction
5996 template < typename T1, typename T2 >
5999 static const bool value = false;
6002 template < typename T >
6003 struct is_same<T, T>
6005 static const bool value = true;
6008 template < typename T1, typename T2 >
6010 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6016 test(const int c, volatile int v)
6018 static_assert(is_same<int, decltype(0)>::value == true, "");
6019 static_assert(is_same<int, decltype(c)>::value == false, "");
6020 static_assert(is_same<int, decltype(v)>::value == false, "");
6023 auto sumi = ac + av + 'x';
6024 auto sumf = ac + av + 1.0;
6025 static_assert(is_same<int, decltype(ac)>::value == true, "");
6026 static_assert(is_same<int, decltype(av)>::value == true, "");
6027 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6028 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6029 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6030 return (sumf > 0.0) ? sumi : add(c, v);
6035 namespace test_noexcept
6038 int f() { return 0; }
6039 int g() noexcept { return 0; }
6041 static_assert(noexcept(f()) == false, "");
6042 static_assert(noexcept(g()) == true, "");
6046 namespace test_constexpr
6049 template < typename CharT >
6050 unsigned long constexpr
6051 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6053 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6056 template < typename CharT >
6057 unsigned long constexpr
6058 strlen_c(const CharT *const s) noexcept
6060 return strlen_c_r(s, 0UL);
6063 static_assert(strlen_c("") == 0UL, "");
6064 static_assert(strlen_c("1") == 1UL, "");
6065 static_assert(strlen_c("example") == 7UL, "");
6066 static_assert(strlen_c("another\0example") == 7UL, "");
6070 namespace test_rvalue_references
6076 static constexpr int value = N;
6079 answer<1> f(int&) { return answer<1>(); }
6080 answer<2> f(const int&) { return answer<2>(); }
6081 answer<3> f(int&&) { return answer<3>(); }
6088 static_assert(decltype(f(i))::value == 1, "");
6089 static_assert(decltype(f(c))::value == 2, "");
6090 static_assert(decltype(f(0))::value == 3, "");
6095 namespace test_uniform_initialization
6100 static const int zero {};
6101 static const int one {1};
6104 static_assert(test::zero == 0, "");
6105 static_assert(test::one == 1, "");
6109 namespace test_lambdas
6115 auto lambda1 = [](){};
6116 auto lambda2 = lambda1;
6124 auto a = [](int i, int j){ return i + j; }(1, 2);
6125 auto b = []() -> int { return '0'; }();
6126 auto c = [=](){ return a + b; }();
6127 auto d = [&](){ return c; }();
6128 auto e = [a, &b](int x) mutable {
6129 const auto identity = [](int y){ return y; };
6130 for (auto i = 0; i < a; ++i)
6132 return x + identity(a + b);
6134 return a + b + c + d + e;
6140 const auto nullary = [](){ return 0; };
6141 const auto unary = [](int x){ return x; };
6142 using nullary_t = decltype(nullary);
6143 using unary_t = decltype(unary);
6144 const auto higher1st = [](nullary_t f){ return f(); };
6145 const auto higher2nd = [unary](nullary_t f1){
6146 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6148 return higher1st(nullary) + higher2nd(nullary)(unary);
6153 namespace test_variadic_templates
6159 template <int N0, int... N1toN>
6160 struct sum<N0, N1toN...>
6162 static constexpr auto value = N0 + sum<N1toN...>::value;
6168 static constexpr auto value = 0;
6171 static_assert(sum<>::value == 0, "");
6172 static_assert(sum<1>::value == 1, "");
6173 static_assert(sum<23>::value == 23, "");
6174 static_assert(sum<1, 2>::value == 3, "");
6175 static_assert(sum<5, 5, 11>::value == 21, "");
6176 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6180 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6181 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6183 namespace test_template_alias_sfinae
6188 template<typename T>
6189 using member = typename T::member_type;
6191 template<typename T>
6194 template<typename T>
6195 void func(member<T>*) {}
6199 void test() { func<foo>(0); }
6203 } // namespace cxx11
6205 #endif // __cplusplus >= 201103L
6210 if ac_fn_cxx_try_compile
"$LINENO"; then :
6211 ax_cv_cxx_compile_cxx11
=yes
6213 ax_cv_cxx_compile_cxx11
=no
6215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6218 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6219 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6223 if test x
$ac_success = xno
; then
6224 for alternative
in ${ax_cxx_compile_alternatives}; do
6225 switch
="-std=gnu++${alternative}"
6226 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6228 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6229 if eval \
${$cachevar+:} false
; then :
6230 $as_echo_n "(cached) " >&6
6234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6235 /* end confdefs.h. */
6238 // If the compiler admits that it is not ready for C++11, why torture it?
6239 // Hopefully, this will speed up the test.
6243 #error "This is not a C++ compiler"
6245 #elif __cplusplus < 201103L
6247 #error "This is not a C++11 compiler"
6254 namespace test_static_assert
6257 template <typename T>
6260 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6265 namespace test_final_override
6274 struct Derived : public Base
6276 virtual ~Derived() override {}
6277 virtual void f() override {}
6282 namespace test_double_right_angle_brackets
6285 template < typename T >
6288 typedef check<void> single_type;
6289 typedef check<check<void>> double_type;
6290 typedef check<check<check<void>>> triple_type;
6291 typedef check<check<check<check<void>>>> quadruple_type;
6295 namespace test_decltype
6308 namespace test_type_deduction
6311 template < typename T1, typename T2 >
6314 static const bool value = false;
6317 template < typename T >
6318 struct is_same<T, T>
6320 static const bool value = true;
6323 template < typename T1, typename T2 >
6325 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6331 test(const int c, volatile int v)
6333 static_assert(is_same<int, decltype(0)>::value == true, "");
6334 static_assert(is_same<int, decltype(c)>::value == false, "");
6335 static_assert(is_same<int, decltype(v)>::value == false, "");
6338 auto sumi = ac + av + 'x';
6339 auto sumf = ac + av + 1.0;
6340 static_assert(is_same<int, decltype(ac)>::value == true, "");
6341 static_assert(is_same<int, decltype(av)>::value == true, "");
6342 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6343 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6344 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6345 return (sumf > 0.0) ? sumi : add(c, v);
6350 namespace test_noexcept
6353 int f() { return 0; }
6354 int g() noexcept { return 0; }
6356 static_assert(noexcept(f()) == false, "");
6357 static_assert(noexcept(g()) == true, "");
6361 namespace test_constexpr
6364 template < typename CharT >
6365 unsigned long constexpr
6366 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6368 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6371 template < typename CharT >
6372 unsigned long constexpr
6373 strlen_c(const CharT *const s) noexcept
6375 return strlen_c_r(s, 0UL);
6378 static_assert(strlen_c("") == 0UL, "");
6379 static_assert(strlen_c("1") == 1UL, "");
6380 static_assert(strlen_c("example") == 7UL, "");
6381 static_assert(strlen_c("another\0example") == 7UL, "");
6385 namespace test_rvalue_references
6391 static constexpr int value = N;
6394 answer<1> f(int&) { return answer<1>(); }
6395 answer<2> f(const int&) { return answer<2>(); }
6396 answer<3> f(int&&) { return answer<3>(); }
6403 static_assert(decltype(f(i))::value == 1, "");
6404 static_assert(decltype(f(c))::value == 2, "");
6405 static_assert(decltype(f(0))::value == 3, "");
6410 namespace test_uniform_initialization
6415 static const int zero {};
6416 static const int one {1};
6419 static_assert(test::zero == 0, "");
6420 static_assert(test::one == 1, "");
6424 namespace test_lambdas
6430 auto lambda1 = [](){};
6431 auto lambda2 = lambda1;
6439 auto a = [](int i, int j){ return i + j; }(1, 2);
6440 auto b = []() -> int { return '0'; }();
6441 auto c = [=](){ return a + b; }();
6442 auto d = [&](){ return c; }();
6443 auto e = [a, &b](int x) mutable {
6444 const auto identity = [](int y){ return y; };
6445 for (auto i = 0; i < a; ++i)
6447 return x + identity(a + b);
6449 return a + b + c + d + e;
6455 const auto nullary = [](){ return 0; };
6456 const auto unary = [](int x){ return x; };
6457 using nullary_t = decltype(nullary);
6458 using unary_t = decltype(unary);
6459 const auto higher1st = [](nullary_t f){ return f(); };
6460 const auto higher2nd = [unary](nullary_t f1){
6461 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6463 return higher1st(nullary) + higher2nd(nullary)(unary);
6468 namespace test_variadic_templates
6474 template <int N0, int... N1toN>
6475 struct sum<N0, N1toN...>
6477 static constexpr auto value = N0 + sum<N1toN...>::value;
6483 static constexpr auto value = 0;
6486 static_assert(sum<>::value == 0, "");
6487 static_assert(sum<1>::value == 1, "");
6488 static_assert(sum<23>::value == 23, "");
6489 static_assert(sum<1, 2>::value == 3, "");
6490 static_assert(sum<5, 5, 11>::value == 21, "");
6491 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6495 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6496 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6498 namespace test_template_alias_sfinae
6503 template<typename T>
6504 using member = typename T::member_type;
6506 template<typename T>
6509 template<typename T>
6510 void func(member<T>*) {}
6514 void test() { func<foo>(0); }
6518 } // namespace cxx11
6520 #endif // __cplusplus >= 201103L
6525 if ac_fn_cxx_try_compile
"$LINENO"; then :
6530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6533 eval ac_res
=\$
$cachevar
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6535 $as_echo "$ac_res" >&6; }
6536 if eval test x\$
$cachevar = xyes
; then
6538 if test -n "$CXXCPP" ; then
6539 CXXCPP
="$CXXCPP $switch"
6547 if test x
$ac_success = xno
; then
6548 for alternative
in ${ax_cxx_compile_alternatives}; do
6549 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6550 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6552 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6553 if eval \${$cachevar+:} false; then :
6554 $as_echo_n "(cached
) " >&6
6558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6559 /* end confdefs.h. */
6562 // If the compiler admits that it is not ready for C++11, why torture it?
6563 // Hopefully, this will speed up the test.
6567 #error "This is not a C
++ compiler
"
6569 #elif __cplusplus < 201103L
6571 #error "This is not a C
++11 compiler
"
6578 namespace test_static_assert
6581 template <typename T>
6584 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6589 namespace test_final_override
6598 struct Derived : public Base
6600 virtual ~Derived() override {}
6601 virtual void f() override {}
6606 namespace test_double_right_angle_brackets
6609 template < typename T >
6612 typedef check<void> single_type;
6613 typedef check<check<void>> double_type;
6614 typedef check<check<check<void>>> triple_type;
6615 typedef check<check<check<check<void>>>> quadruple_type;
6619 namespace test_decltype
6632 namespace test_type_deduction
6635 template < typename T1, typename T2 >
6638 static const bool value = false;
6641 template < typename T >
6642 struct is_same<T, T>
6644 static const bool value = true;
6647 template < typename T1, typename T2 >
6649 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6655 test(const int c, volatile int v)
6657 static_assert(is_same<int, decltype(0)>::value == true, "");
6658 static_assert(is_same<int, decltype(c)>::value == false, "");
6659 static_assert(is_same<int, decltype(v)>::value == false, "");
6662 auto sumi = ac + av + 'x';
6663 auto sumf = ac + av + 1.0;
6664 static_assert(is_same<int, decltype(ac)>::value == true, "");
6665 static_assert(is_same<int, decltype(av)>::value == true, "");
6666 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6667 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6668 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6669 return (sumf > 0.0) ? sumi : add(c, v);
6674 namespace test_noexcept
6677 int f() { return 0; }
6678 int g() noexcept { return 0; }
6680 static_assert(noexcept(f()) == false, "");
6681 static_assert(noexcept(g()) == true, "");
6685 namespace test_constexpr
6688 template < typename CharT >
6689 unsigned long constexpr
6690 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6692 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6695 template < typename CharT >
6696 unsigned long constexpr
6697 strlen_c(const CharT *const s) noexcept
6699 return strlen_c_r(s, 0UL);
6702 static_assert(strlen_c("") == 0UL, "");
6703 static_assert(strlen_c("1") == 1UL, "");
6704 static_assert(strlen_c("example
") == 7UL, "");
6705 static_assert(strlen_c("another\
0example
") == 7UL, "");
6709 namespace test_rvalue_references
6715 static constexpr int value = N;
6718 answer<1> f(int&) { return answer<1>(); }
6719 answer<2> f(const int&) { return answer<2>(); }
6720 answer<3> f(int&&) { return answer<3>(); }
6727 static_assert(decltype(f(i))::value == 1, "");
6728 static_assert(decltype(f(c))::value == 2, "");
6729 static_assert(decltype(f(0))::value == 3, "");
6734 namespace test_uniform_initialization
6739 static const int zero {};
6740 static const int one {1};
6743 static_assert(test::zero == 0, "");
6744 static_assert(test::one == 1, "");
6748 namespace test_lambdas
6754 auto lambda1 = [](){};
6755 auto lambda2 = lambda1;
6763 auto a = [](int i, int j){ return i + j; }(1, 2);
6764 auto b = []() -> int { return '0'; }();
6765 auto c = [=](){ return a + b; }();
6766 auto d = [&](){ return c; }();
6767 auto e = [a, &b](int x) mutable {
6768 const auto identity = [](int y){ return y; };
6769 for (auto i = 0; i < a; ++i)
6771 return x + identity(a + b);
6773 return a + b + c + d + e;
6779 const auto nullary = [](){ return 0; };
6780 const auto unary = [](int x){ return x; };
6781 using nullary_t = decltype(nullary);
6782 using unary_t = decltype(unary);
6783 const auto higher1st = [](nullary_t f){ return f(); };
6784 const auto higher2nd = [unary](nullary_t f1){
6785 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6787 return higher1st(nullary) + higher2nd(nullary)(unary);
6792 namespace test_variadic_templates
6798 template <int N0, int... N1toN>
6799 struct sum<N0, N1toN...>
6801 static constexpr auto value = N0 + sum<N1toN...>::value;
6807 static constexpr auto value = 0;
6810 static_assert(sum<>::value == 0, "");
6811 static_assert(sum<1>::value == 1, "");
6812 static_assert(sum<23>::value == 23, "");
6813 static_assert(sum<1, 2>::value == 3, "");
6814 static_assert(sum<5, 5, 11>::value == 21, "");
6815 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6819 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6820 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6822 namespace test_template_alias_sfinae
6827 template<typename T>
6828 using member = typename T::member_type;
6830 template<typename T>
6833 template<typename T>
6834 void func(member<T>*) {}
6838 void test() { func<foo>(0); }
6842 } // namespace cxx11
6844 #endif // __cplusplus >= 201103L
6849 if ac_fn_cxx_try_compile "$LINENO"; then :
6854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857 eval ac_res=\$$cachevar
6858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6859 $as_echo "$ac_res" >&6; }
6860 if eval test x\$$cachevar = xyes; then
6862 if test -n "$CXXCPP" ; then
6863 CXXCPP="$CXXCPP $switch"
6869 if test x$ac_success = xyes; then
6876 ac_cpp='$CPP $CPPFLAGS'
6877 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6878 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6879 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6881 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6882 if test x$ac_success = xno; then
6883 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6886 if test x$ac_success = xno; then
6888 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6889 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6893 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6899 if test "${build}" != "${host}"; then
6900 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6902 ac_cpp
='$CXXCPP $CPPFLAGS'
6903 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6904 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6905 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6907 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6908 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6909 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6910 CXX
="$CXX_FOR_BUILD"
6911 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6912 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6914 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6915 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6916 $as_echo_n "(cached) " >&6
6918 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6919 /* end confdefs.h. */
6922 // If the compiler admits that it is not ready for C++11, why torture it?
6923 // Hopefully, this will speed up the test.
6927 #error "This is not a C++ compiler"
6929 #elif __cplusplus < 201103L
6931 #error "This is not a C++11 compiler"
6938 namespace test_static_assert
6941 template <typename T>
6944 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6949 namespace test_final_override
6958 struct Derived : public Base
6960 virtual ~Derived() override {}
6961 virtual void f() override {}
6966 namespace test_double_right_angle_brackets
6969 template < typename T >
6972 typedef check<void> single_type;
6973 typedef check<check<void>> double_type;
6974 typedef check<check<check<void>>> triple_type;
6975 typedef check<check<check<check<void>>>> quadruple_type;
6979 namespace test_decltype
6992 namespace test_type_deduction
6995 template < typename T1, typename T2 >
6998 static const bool value = false;
7001 template < typename T >
7002 struct is_same<T, T>
7004 static const bool value = true;
7007 template < typename T1, typename T2 >
7009 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7015 test(const int c, volatile int v)
7017 static_assert(is_same<int, decltype(0)>::value == true, "");
7018 static_assert(is_same<int, decltype(c)>::value == false, "");
7019 static_assert(is_same<int, decltype(v)>::value == false, "");
7022 auto sumi = ac + av + 'x';
7023 auto sumf = ac + av + 1.0;
7024 static_assert(is_same<int, decltype(ac)>::value == true, "");
7025 static_assert(is_same<int, decltype(av)>::value == true, "");
7026 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7027 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7028 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7029 return (sumf > 0.0) ? sumi : add(c, v);
7034 namespace test_noexcept
7037 int f() { return 0; }
7038 int g() noexcept { return 0; }
7040 static_assert(noexcept(f()) == false, "");
7041 static_assert(noexcept(g()) == true, "");
7045 namespace test_constexpr
7048 template < typename CharT >
7049 unsigned long constexpr
7050 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7052 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7055 template < typename CharT >
7056 unsigned long constexpr
7057 strlen_c(const CharT *const s) noexcept
7059 return strlen_c_r(s, 0UL);
7062 static_assert(strlen_c("") == 0UL, "");
7063 static_assert(strlen_c("1") == 1UL, "");
7064 static_assert(strlen_c("example") == 7UL, "");
7065 static_assert(strlen_c("another\0example") == 7UL, "");
7069 namespace test_rvalue_references
7075 static constexpr int value = N;
7078 answer<1> f(int&) { return answer<1>(); }
7079 answer<2> f(const int&) { return answer<2>(); }
7080 answer<3> f(int&&) { return answer<3>(); }
7087 static_assert(decltype(f(i))::value == 1, "");
7088 static_assert(decltype(f(c))::value == 2, "");
7089 static_assert(decltype(f(0))::value == 3, "");
7094 namespace test_uniform_initialization
7099 static const int zero {};
7100 static const int one {1};
7103 static_assert(test::zero == 0, "");
7104 static_assert(test::one == 1, "");
7108 namespace test_lambdas
7114 auto lambda1 = [](){};
7115 auto lambda2 = lambda1;
7123 auto a = [](int i, int j){ return i + j; }(1, 2);
7124 auto b = []() -> int { return '0'; }();
7125 auto c = [=](){ return a + b; }();
7126 auto d = [&](){ return c; }();
7127 auto e = [a, &b](int x) mutable {
7128 const auto identity = [](int y){ return y; };
7129 for (auto i = 0; i < a; ++i)
7131 return x + identity(a + b);
7133 return a + b + c + d + e;
7139 const auto nullary = [](){ return 0; };
7140 const auto unary = [](int x){ return x; };
7141 using nullary_t = decltype(nullary);
7142 using unary_t = decltype(unary);
7143 const auto higher1st = [](nullary_t f){ return f(); };
7144 const auto higher2nd = [unary](nullary_t f1){
7145 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7147 return higher1st(nullary) + higher2nd(nullary)(unary);
7152 namespace test_variadic_templates
7158 template <int N0, int... N1toN>
7159 struct sum<N0, N1toN...>
7161 static constexpr auto value = N0 + sum<N1toN...>::value;
7167 static constexpr auto value = 0;
7170 static_assert(sum<>::value == 0, "");
7171 static_assert(sum<1>::value == 1, "");
7172 static_assert(sum<23>::value == 23, "");
7173 static_assert(sum<1, 2>::value == 3, "");
7174 static_assert(sum<5, 5, 11>::value == 21, "");
7175 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7179 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7180 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7182 namespace test_template_alias_sfinae
7187 template<typename T>
7188 using member = typename T::member_type;
7190 template<typename T>
7193 template<typename T>
7194 void func(member<T>*) {}
7198 void test() { func<foo>(0); }
7202 } // namespace cxx11
7204 #endif // __cplusplus >= 201103L
7209 if ac_fn_cxx_try_compile
"$LINENO"; then :
7210 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7212 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7214 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7217 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7218 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7222 if test x
$ac_success = xno
; then
7223 for alternative
in ${ax_cxx_compile_alternatives}; do
7224 switch
="-std=gnu++${alternative}"
7225 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7227 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7228 if eval \
${$cachevar+:} false
; then :
7229 $as_echo_n "(cached) " >&6
7233 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7234 /* end confdefs.h. */
7237 // If the compiler admits that it is not ready for C++11, why torture it?
7238 // Hopefully, this will speed up the test.
7242 #error "This is not a C++ compiler"
7244 #elif __cplusplus < 201103L
7246 #error "This is not a C++11 compiler"
7253 namespace test_static_assert
7256 template <typename T>
7259 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7264 namespace test_final_override
7273 struct Derived : public Base
7275 virtual ~Derived() override {}
7276 virtual void f() override {}
7281 namespace test_double_right_angle_brackets
7284 template < typename T >
7287 typedef check<void> single_type;
7288 typedef check<check<void>> double_type;
7289 typedef check<check<check<void>>> triple_type;
7290 typedef check<check<check<check<void>>>> quadruple_type;
7294 namespace test_decltype
7307 namespace test_type_deduction
7310 template < typename T1, typename T2 >
7313 static const bool value = false;
7316 template < typename T >
7317 struct is_same<T, T>
7319 static const bool value = true;
7322 template < typename T1, typename T2 >
7324 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7330 test(const int c, volatile int v)
7332 static_assert(is_same<int, decltype(0)>::value == true, "");
7333 static_assert(is_same<int, decltype(c)>::value == false, "");
7334 static_assert(is_same<int, decltype(v)>::value == false, "");
7337 auto sumi = ac + av + 'x';
7338 auto sumf = ac + av + 1.0;
7339 static_assert(is_same<int, decltype(ac)>::value == true, "");
7340 static_assert(is_same<int, decltype(av)>::value == true, "");
7341 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7342 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7343 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7344 return (sumf > 0.0) ? sumi : add(c, v);
7349 namespace test_noexcept
7352 int f() { return 0; }
7353 int g() noexcept { return 0; }
7355 static_assert(noexcept(f()) == false, "");
7356 static_assert(noexcept(g()) == true, "");
7360 namespace test_constexpr
7363 template < typename CharT >
7364 unsigned long constexpr
7365 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7367 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7370 template < typename CharT >
7371 unsigned long constexpr
7372 strlen_c(const CharT *const s) noexcept
7374 return strlen_c_r(s, 0UL);
7377 static_assert(strlen_c("") == 0UL, "");
7378 static_assert(strlen_c("1") == 1UL, "");
7379 static_assert(strlen_c("example") == 7UL, "");
7380 static_assert(strlen_c("another\0example") == 7UL, "");
7384 namespace test_rvalue_references
7390 static constexpr int value = N;
7393 answer<1> f(int&) { return answer<1>(); }
7394 answer<2> f(const int&) { return answer<2>(); }
7395 answer<3> f(int&&) { return answer<3>(); }
7402 static_assert(decltype(f(i))::value == 1, "");
7403 static_assert(decltype(f(c))::value == 2, "");
7404 static_assert(decltype(f(0))::value == 3, "");
7409 namespace test_uniform_initialization
7414 static const int zero {};
7415 static const int one {1};
7418 static_assert(test::zero == 0, "");
7419 static_assert(test::one == 1, "");
7423 namespace test_lambdas
7429 auto lambda1 = [](){};
7430 auto lambda2 = lambda1;
7438 auto a = [](int i, int j){ return i + j; }(1, 2);
7439 auto b = []() -> int { return '0'; }();
7440 auto c = [=](){ return a + b; }();
7441 auto d = [&](){ return c; }();
7442 auto e = [a, &b](int x) mutable {
7443 const auto identity = [](int y){ return y; };
7444 for (auto i = 0; i < a; ++i)
7446 return x + identity(a + b);
7448 return a + b + c + d + e;
7454 const auto nullary = [](){ return 0; };
7455 const auto unary = [](int x){ return x; };
7456 using nullary_t = decltype(nullary);
7457 using unary_t = decltype(unary);
7458 const auto higher1st = [](nullary_t f){ return f(); };
7459 const auto higher2nd = [unary](nullary_t f1){
7460 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7462 return higher1st(nullary) + higher2nd(nullary)(unary);
7467 namespace test_variadic_templates
7473 template <int N0, int... N1toN>
7474 struct sum<N0, N1toN...>
7476 static constexpr auto value = N0 + sum<N1toN...>::value;
7482 static constexpr auto value = 0;
7485 static_assert(sum<>::value == 0, "");
7486 static_assert(sum<1>::value == 1, "");
7487 static_assert(sum<23>::value == 23, "");
7488 static_assert(sum<1, 2>::value == 3, "");
7489 static_assert(sum<5, 5, 11>::value == 21, "");
7490 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7494 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7495 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7497 namespace test_template_alias_sfinae
7502 template<typename T>
7503 using member = typename T::member_type;
7505 template<typename T>
7508 template<typename T>
7509 void func(member<T>*) {}
7513 void test() { func<foo>(0); }
7517 } // namespace cxx11
7519 #endif // __cplusplus >= 201103L
7524 if ac_fn_cxx_try_compile
"$LINENO"; then :
7529 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7532 eval ac_res
=\$
$cachevar
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7534 $as_echo "$ac_res" >&6; }
7535 if eval test x\$
$cachevar = xyes
; then
7537 if test -n "$CXXCPP" ; then
7538 CXXCPP
="$CXXCPP $switch"
7546 if test x
$ac_success = xno
; then
7547 for alternative
in ${ax_cxx_compile_alternatives}; do
7548 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7549 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7551 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7552 if eval \${$cachevar+:} false; then :
7553 $as_echo_n "(cached
) " >&6
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7561 // If the compiler admits that it is not ready for C++11, why torture it?
7562 // Hopefully, this will speed up the test.
7566 #error "This is not a C
++ compiler
"
7568 #elif __cplusplus < 201103L
7570 #error "This is not a C
++11 compiler
"
7577 namespace test_static_assert
7580 template <typename T>
7583 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7588 namespace test_final_override
7597 struct Derived : public Base
7599 virtual ~Derived() override {}
7600 virtual void f() override {}
7605 namespace test_double_right_angle_brackets
7608 template < typename T >
7611 typedef check<void> single_type;
7612 typedef check<check<void>> double_type;
7613 typedef check<check<check<void>>> triple_type;
7614 typedef check<check<check<check<void>>>> quadruple_type;
7618 namespace test_decltype
7631 namespace test_type_deduction
7634 template < typename T1, typename T2 >
7637 static const bool value = false;
7640 template < typename T >
7641 struct is_same<T, T>
7643 static const bool value = true;
7646 template < typename T1, typename T2 >
7648 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7654 test(const int c, volatile int v)
7656 static_assert(is_same<int, decltype(0)>::value == true, "");
7657 static_assert(is_same<int, decltype(c)>::value == false, "");
7658 static_assert(is_same<int, decltype(v)>::value == false, "");
7661 auto sumi = ac + av + 'x';
7662 auto sumf = ac + av + 1.0;
7663 static_assert(is_same<int, decltype(ac)>::value == true, "");
7664 static_assert(is_same<int, decltype(av)>::value == true, "");
7665 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7666 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7667 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7668 return (sumf > 0.0) ? sumi : add(c, v);
7673 namespace test_noexcept
7676 int f() { return 0; }
7677 int g() noexcept { return 0; }
7679 static_assert(noexcept(f()) == false, "");
7680 static_assert(noexcept(g()) == true, "");
7684 namespace test_constexpr
7687 template < typename CharT >
7688 unsigned long constexpr
7689 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7691 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7694 template < typename CharT >
7695 unsigned long constexpr
7696 strlen_c(const CharT *const s) noexcept
7698 return strlen_c_r(s, 0UL);
7701 static_assert(strlen_c("") == 0UL, "");
7702 static_assert(strlen_c("1") == 1UL, "");
7703 static_assert(strlen_c("example
") == 7UL, "");
7704 static_assert(strlen_c("another\
0example
") == 7UL, "");
7708 namespace test_rvalue_references
7714 static constexpr int value = N;
7717 answer<1> f(int&) { return answer<1>(); }
7718 answer<2> f(const int&) { return answer<2>(); }
7719 answer<3> f(int&&) { return answer<3>(); }
7726 static_assert(decltype(f(i))::value == 1, "");
7727 static_assert(decltype(f(c))::value == 2, "");
7728 static_assert(decltype(f(0))::value == 3, "");
7733 namespace test_uniform_initialization
7738 static const int zero {};
7739 static const int one {1};
7742 static_assert(test::zero == 0, "");
7743 static_assert(test::one == 1, "");
7747 namespace test_lambdas
7753 auto lambda1 = [](){};
7754 auto lambda2 = lambda1;
7762 auto a = [](int i, int j){ return i + j; }(1, 2);
7763 auto b = []() -> int { return '0'; }();
7764 auto c = [=](){ return a + b; }();
7765 auto d = [&](){ return c; }();
7766 auto e = [a, &b](int x) mutable {
7767 const auto identity = [](int y){ return y; };
7768 for (auto i = 0; i < a; ++i)
7770 return x + identity(a + b);
7772 return a + b + c + d + e;
7778 const auto nullary = [](){ return 0; };
7779 const auto unary = [](int x){ return x; };
7780 using nullary_t = decltype(nullary);
7781 using unary_t = decltype(unary);
7782 const auto higher1st = [](nullary_t f){ return f(); };
7783 const auto higher2nd = [unary](nullary_t f1){
7784 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7786 return higher1st(nullary) + higher2nd(nullary)(unary);
7791 namespace test_variadic_templates
7797 template <int N0, int... N1toN>
7798 struct sum<N0, N1toN...>
7800 static constexpr auto value = N0 + sum<N1toN...>::value;
7806 static constexpr auto value = 0;
7809 static_assert(sum<>::value == 0, "");
7810 static_assert(sum<1>::value == 1, "");
7811 static_assert(sum<23>::value == 23, "");
7812 static_assert(sum<1, 2>::value == 3, "");
7813 static_assert(sum<5, 5, 11>::value == 21, "");
7814 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7818 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7819 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7821 namespace test_template_alias_sfinae
7826 template<typename T>
7827 using member = typename T::member_type;
7829 template<typename T>
7832 template<typename T>
7833 void func(member<T>*) {}
7837 void test() { func<foo>(0); }
7841 } // namespace cxx11
7843 #endif // __cplusplus >= 201103L
7848 if ac_fn_cxx_try_compile "$LINENO"; then :
7853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7856 eval ac_res=\$$cachevar
7857 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7858 $as_echo "$ac_res" >&6; }
7859 if eval test x\$$cachevar = xyes; then
7861 if test -n "$CXXCPP" ; then
7862 CXXCPP="$CXXCPP $switch"
7868 if test x$ac_success = xyes; then
7873 CXX_FOR_BUILD="$CXX"
7874 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7875 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7876 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7877 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7878 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7880 ac_cpp='$CPP $CPPFLAGS'
7881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7885 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7886 if test x$ac_success = xno; then
7887 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7890 if test x$ac_success = xno; then
7891 HAVE_CXX11_FOR_BUILD=0
7892 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7893 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7895 HAVE_CXX11_FOR_BUILD=1
7897 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7905 # Check whether --enable-pgo-build was given.
7906 if test "${enable_pgo_build+set}" = set; then :
7907 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7913 # Issue errors and warnings for invalid/strange PGO build combinations.
7914 case "$have_compiler:$host:$target:$enable_pgo_build" in
7917 # Allow the PGO build only if we aren't building a compiler and
7918 # we are in a native configuration.
7919 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7921 # Disallow the PGO bootstrap if we are building a compiler.
7922 yes:*:*:yes |
yes:*:*:lto
)
7923 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7926 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7930 if test "$enable_pgo_build" != "no"; then
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7932 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7933 old_CFLAGS
="$CFLAGS"
7934 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7935 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7937 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7938 /* end confdefs.h. */
7941 if ac_fn_c_try_compile
"$LINENO"; then :
7944 PGO_BUILD_GEN_CFLAGS
=
7946 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7947 CFLAGS
="$old_CFLAGS"
7948 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7950 $as_echo "yes" >&6; }
7951 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7955 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7958 if test "$enable_pgo_build" = "lto"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7960 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7961 old_CFLAGS
="$CFLAGS"
7962 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7963 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7965 /* end confdefs.h. */
7968 if ac_fn_c_try_compile
"$LINENO"; then :
7971 PGO_BUILD_LTO_CFLAGS
=
7973 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7974 CFLAGS
="$old_CFLAGS"
7975 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7977 $as_echo "yes" >&6; }
7979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7980 $as_echo "no" >&6; }
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7982 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7990 # Used for setting $lt_cv_objdir
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7992 $as_echo_n "checking for objdir... " >&6; }
7993 if ${lt_cv_objdir+:} false
; then :
7994 $as_echo_n "(cached) " >&6
7996 rm -f .libs
2>/dev
/null
7997 mkdir .libs
2>/dev
/null
7998 if test -d .libs
; then
8001 # MS-DOS does not allow filenames that begin with a dot.
8004 rmdir .libs
2>/dev
/null
8006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8007 $as_echo "$lt_cv_objdir" >&6; }
8008 objdir
=$lt_cv_objdir
8014 cat >>confdefs.h
<<_ACEOF
8015 #define LT_OBJDIR "$lt_cv_objdir/"
8020 # Check for GMP, MPFR and MPC
8021 gmplibs
="-lmpc -lmpfr -lgmp"
8025 # Specify a location for mpc
8026 # check for this first so it ends up on the link line before mpfr.
8028 # Check whether --with-mpc was given.
8029 if test "${with_mpc+set}" = set; then :
8034 # Check whether --with-mpc-include was given.
8035 if test "${with_mpc_include+set}" = set; then :
8036 withval
=$with_mpc_include;
8040 # Check whether --with-mpc-lib was given.
8041 if test "${with_mpc_lib+set}" = set; then :
8042 withval
=$with_mpc_lib;
8046 if test "x$with_mpc" != x
; then
8047 gmplibs
="-L$with_mpc/lib $gmplibs"
8048 gmpinc
="-I$with_mpc/include $gmpinc"
8050 if test "x$with_mpc_include" != x
; then
8051 gmpinc
="-I$with_mpc_include $gmpinc"
8053 if test "x$with_mpc_lib" != x
; then
8054 gmplibs
="-L$with_mpc_lib $gmplibs"
8056 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
8057 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8058 gmpinc
='-I$$s/mpc/src '"$gmpinc"
8059 # Do not test the mpc 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 # Specify a location for mpfr
8067 # check for this first so it ends up on the link line before gmp.
8069 # Check whether --with-mpfr was given.
8070 if test "${with_mpfr+set}" = set; then :
8075 # Check whether --with-mpfr-include was given.
8076 if test "${with_mpfr_include+set}" = set; then :
8077 withval
=$with_mpfr_include;
8081 # Check whether --with-mpfr-lib was given.
8082 if test "${with_mpfr_lib+set}" = set; then :
8083 withval
=$with_mpfr_lib;
8087 if test "x$with_mpfr" != x
; then
8088 gmplibs
="-L$with_mpfr/lib $gmplibs"
8089 gmpinc
="-I$with_mpfr/include $gmpinc"
8091 if test "x$with_mpfr_include" != x
; then
8092 gmpinc
="-I$with_mpfr_include $gmpinc"
8094 if test "x$with_mpfr_lib" != x
; then
8095 gmplibs
="-L$with_mpfr_lib $gmplibs"
8097 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8098 # MPFR v3.1.0 moved the sources into a src sub-directory.
8099 if ! test -d ${srcdir}/mpfr
/src
; then
8100 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8102 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8103 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8104 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8105 # Do not test the mpfr version. Assume that it is sufficient, since
8106 # it is in the source tree, and the library has not been built yet
8107 # but it would be included on the link line in the version check below
8108 # hence making the test fail.
8112 # Specify a location for gmp
8114 # Check whether --with-gmp was given.
8115 if test "${with_gmp+set}" = set; then :
8120 # Check whether --with-gmp-include was given.
8121 if test "${with_gmp_include+set}" = set; then :
8122 withval
=$with_gmp_include;
8126 # Check whether --with-gmp-lib was given.
8127 if test "${with_gmp_lib+set}" = set; then :
8128 withval
=$with_gmp_lib;
8133 if test "x$with_gmp" != x
; then
8134 gmplibs
="-L$with_gmp/lib $gmplibs"
8135 gmpinc
="-I$with_gmp/include $gmpinc"
8137 if test "x$with_gmp_include" != x
; then
8138 gmpinc
="-I$with_gmp_include $gmpinc"
8140 if test "x$with_gmp_lib" != x
; then
8141 gmplibs
="-L$with_gmp_lib $gmplibs"
8143 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8144 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8145 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8146 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8147 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8148 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8149 # Do not test the gmp version. Assume that it is sufficient, since
8150 # it is in the source tree, and the library has not been built yet
8151 # but it would be included on the link line in the version check below
8152 # hence making the test fail.
8156 if test -d ${srcdir}/gcc
&& test "x$have_gmp" = xno
; then
8158 saved_CFLAGS
="$CFLAGS"
8159 CFLAGS
="$CFLAGS $gmpinc"
8160 # Check for the recommended and required versions of GMP.
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8162 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8163 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8164 /* end confdefs.h. */
8170 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8171 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8172 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8180 if ac_fn_c_try_compile
"$LINENO"; then :
8181 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8182 /* end confdefs.h. */
8188 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8189 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8190 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8198 if ac_fn_c_try_compile
"$LINENO"; then :
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8200 $as_echo "yes" >&6; }
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8203 $as_echo "buggy but acceptable" >&6; }
8205 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }; have_gmp
=no
8210 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8212 # If we have GMP, check the MPFR version.
8213 if test x
"$have_gmp" = xyes
; then
8214 # Check for the recommended and required versions of MPFR.
8215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8216 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8217 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8218 /* end confdefs.h. */
8225 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8233 if ac_fn_c_try_compile
"$LINENO"; then :
8234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8235 /* end confdefs.h. */
8242 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8250 if ac_fn_c_try_compile
"$LINENO"; then :
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8252 $as_echo "yes" >&6; }
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8255 $as_echo "buggy but acceptable" >&6; }
8257 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8260 $as_echo "no" >&6; }; have_gmp
=no
8262 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8265 # Check for the MPC header version.
8266 if test x
"$have_gmp" = xyes
; then
8267 # Check for the recommended and required versions of MPC.
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8269 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8270 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8271 /* end confdefs.h. */
8277 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8285 if ac_fn_c_try_compile
"$LINENO"; then :
8286 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8287 /* end confdefs.h. */
8293 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8301 if ac_fn_c_try_compile
"$LINENO"; then :
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8303 $as_echo "yes" >&6; }
8305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8306 $as_echo "buggy but acceptable" >&6; }
8308 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8311 $as_echo "no" >&6; }; have_gmp
=no
8313 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8316 # Now check the MPFR library.
8317 if test x
"$have_gmp" = xyes
; then
8319 LIBS
="$LIBS $gmplibs"
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8321 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8322 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8323 /* end confdefs.h. */
8335 mpfr_atan2 (n, n, x, MPFR_RNDN);
8336 mpfr_erfc (n, x, MPFR_RNDN);
8337 mpfr_subnormalize (x, t, MPFR_RNDN);
8341 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8342 mpc_cosh (c, c, MPC_RNDNN);
8343 mpc_pow (c, c, c, MPC_RNDNN);
8344 mpc_acosh (c, c, MPC_RNDNN);
8351 if ac_fn_c_try_link
"$LINENO"; then :
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8353 $as_echo "yes" >&6; }
8355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8356 $as_echo "no" >&6; }; have_gmp
=no
8358 rm -f core conftest.err conftest.
$ac_objext \
8359 conftest
$ac_exeext conftest.
$ac_ext
8363 CFLAGS
="$saved_CFLAGS"
8365 # The library versions listed in the error message below should match
8366 # the HARD-minimums enforced above.
8367 if test x
$have_gmp != xyes
; then
8368 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8369 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8370 their locations. Source code for these libraries can be found at
8371 their respective hosting sites as well as at
8372 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8373 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8374 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8375 make sure that you have installed both the libraries and the header
8376 files. They may be located in separate packages." "$LINENO" 5
8380 # Flags needed for both GMP, MPFR and/or MPC.
8388 # Libraries to use for stage1 or when not bootstrapping.
8390 # Check whether --with-stage1-libs was given.
8391 if test "${with_stage1_libs+set}" = set; then :
8392 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8395 stage1_libs
=$withval
8403 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8404 # default is yes if gcc is being built; no otherwise. The reason for
8405 # this default is that gdb is sometimes linked against GNU Source
8406 # Highlight, which is a shared library that uses C++ exceptions. In
8407 # this case, -static-libstdc++ will cause crashes.
8409 # Check whether --with-static-standard-libraries was given.
8410 if test "${with_static_standard_libraries+set}" = set; then :
8411 withval
=$with_static_standard_libraries;
8413 with_static_standard_libraries
=auto
8416 if test "$with_static_standard_libraries" = auto
; then
8417 with_static_standard_libraries
=$have_compiler
8420 # Linker flags to use for stage1 or when not bootstrapping.
8422 # Check whether --with-stage1-ldflags was given.
8423 if test "${with_stage1_ldflags+set}" = set; then :
8424 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8427 stage1_ldflags
=$withval
8431 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8432 # if supported. But if the user explicitly specified the libraries to use,
8433 # trust that they are doing what they want.
8434 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8435 -a "$have_static_libs" = yes; then
8436 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8442 # Libraries to use for stage2 and later builds.
8444 # Check whether --with-boot-libs was given.
8445 if test "${with_boot_libs+set}" = set; then :
8446 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8449 poststage1_libs
=$withval
8457 # Linker flags to use for stage2 and later builds.
8459 # Check whether --with-boot-ldflags was given.
8460 if test "${with_boot_ldflags+set}" = set; then :
8461 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8464 poststage1_ldflags
=$withval
8468 # In stages 2 and 3, default to linking libstdc++ and libgcc
8469 # statically. But if the user explicitly specified the libraries to
8470 # use, trust that they are doing what they want.
8471 if test "$poststage1_libs" = ""; then
8472 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8478 # GCC GRAPHITE dependency isl.
8479 # Basic setup is inlined here, actual checks are in config/isl.m4
8482 # Check whether --with-isl was given.
8483 if test "${with_isl+set}" = set; then :
8488 # Treat --without-isl as a request to disable
8489 # GRAPHITE support and skip all following checks.
8490 if test "x$with_isl" != "xno"; then
8494 # Check whether --with-isl-include was given.
8495 if test "${with_isl_include+set}" = set; then :
8496 withval
=$with_isl_include;
8500 # Check whether --with-isl-lib was given.
8501 if test "${with_isl_lib+set}" = set; then :
8502 withval
=$with_isl_lib;
8506 # Check whether --enable-isl-version-check was given.
8507 if test "${enable_isl_version_check+set}" = set; then :
8508 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8510 ENABLE_ISL_CHECK
=yes
8514 # Initialize isllibs and islinc.
8523 isllibs
="-L$with_isl/lib"
8524 islinc
="-I$with_isl/include"
8527 if test "x${with_isl_include}" != x
; then
8528 islinc
="-I$with_isl_include"
8530 if test "x${with_isl_lib}" != x
; then
8531 isllibs
="-L$with_isl_lib"
8533 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8534 && test -d ${srcdir}/isl
; then
8535 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8536 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8539 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8542 isllibs
="${isllibs} -lisl"
8546 if test "${ENABLE_ISL_CHECK}" = yes ; then
8547 _isl_saved_CFLAGS
=$CFLAGS
8548 _isl_saved_LDFLAGS
=$LDFLAGS
8549 _isl_saved_LIBS
=$LIBS
8551 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8552 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8553 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8556 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8557 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8558 /* end confdefs.h. */
8559 #include <isl/schedule.h>
8563 isl_options_set_schedule_serialize_sccs (NULL, 0);
8568 if ac_fn_c_try_link
"$LINENO"; then :
8573 rm -f core conftest.err conftest.
$ac_objext \
8574 conftest
$ac_exeext conftest.
$ac_ext
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8576 $as_echo "$gcc_cv_isl" >&6; }
8578 if test "${gcc_cv_isl}" = no
; then
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8580 $as_echo "required isl version is 0.15 or later" >&6; }
8583 CFLAGS
=$_isl_saved_CFLAGS
8584 LDFLAGS
=$_isl_saved_LDFLAGS
8585 LIBS
=$_isl_saved_LIBS
8593 if test "x${with_isl}" = xno
; then
8594 graphite_requested
=no
8595 elif test "x${with_isl}" != x \
8596 ||
test "x${with_isl_include}" != x \
8597 ||
test "x${with_isl_lib}" != x
; then
8598 graphite_requested
=yes
8600 graphite_requested
=no
8605 if test "${gcc_cv_isl}" = no
; then
8610 if test "${graphite_requested}" = yes \
8611 && test "x${isllibs}" = x \
8612 && test "x${islinc}" = x
; then
8614 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8620 # If the isl check failed, disable builds of in-tree variant of isl
8621 if test "x$with_isl" = xno ||
8622 test "x$gcc_cv_isl" = xno
; then
8623 noconfigdirs
="$noconfigdirs isl"
8630 # Check for LTO support.
8631 # Check whether --enable-lto was given.
8632 if test "${enable_lto+set}" = set; then :
8633 enableval
=$enable_lto; enable_lto
=$enableval
8635 enable_lto
=yes; default_enable_lto
=yes
8644 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8645 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8646 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8655 if test $target_elf = yes; then :
8656 # ELF platforms build the lto-plugin always.
8657 build_lto_plugin
=yes
8660 if test x
"$default_enable_lto" = x
"yes" ; then
8662 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8663 # On other non-ELF platforms, LTO has yet to be validated.
8667 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8668 # It would also be nice to check the binutils support, but we don't
8669 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8670 # warn during gcc/ subconfigure; unless you're bootstrapping with
8671 # -flto it won't be needed until after installation anyway.
8673 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8674 *) if test x
"$enable_lto" = x
"yes"; then
8675 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8680 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8681 # Build it unless LTO was explicitly disabled.
8683 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8690 # Check whether --enable-linker-plugin-configure-flags was given.
8691 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8692 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8694 extra_linker_plugin_configure_flags
=
8698 # Check whether --enable-linker-plugin-flags was given.
8699 if test "${enable_linker_plugin_flags+set}" = set; then :
8700 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8702 extra_linker_plugin_flags
=
8707 # Enable --enable-host-shared.
8708 # Checked early to determine whether jit is an 'all' language
8709 # Check whether --enable-host-shared was given.
8710 if test "${enable_host_shared+set}" = set; then :
8711 enableval
=$enable_host_shared; host_shared
=$enableval
8713 x86_64-
*-darwin* | aarch64-
*-darwin*)
8714 if test x
$host_shared != xyes
; then
8715 # PIC is the default, and actually cannot be switched off.
8716 echo configure.ac
: warning
: PIC code is required
for the configured target
, host-shared setting ignored.
1>&2
8723 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8724 *) host_shared
=no
;;
8730 # By default, C and C++ are the only stage 1 languages.
8731 stage1_languages
=,c
,
8733 # Target libraries that we bootstrap.
8734 bootstrap_target_libs
=,target-libgcc
,
8736 # Figure out what language subdirectories are present.
8737 # Look if the user specified --enable-languages="..."; if not, use
8738 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8740 # NB: embedded tabs in this IF block -- do not untabify
8741 if test -d ${srcdir}/gcc
; then
8742 if test x
"${enable_languages+set}" != xset
; then
8743 if test x
"${LANGUAGES+set}" = xset
; then
8744 enable_languages
="${LANGUAGES}"
8745 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8747 enable_languages
=default
8750 if test x
"${enable_languages}" = x ||
8751 test x
"${enable_languages}" = xyes
;
8753 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8757 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8759 # 'f95' is the old name for the 'fortran' language. We issue a warning
8760 # and make the substitution.
8761 case ,${enable_languages}, in
8763 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8764 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8768 # If bootstrapping, C++ must be enabled.
8769 case ",$enable_languages,:$enable_bootstrap" in
8772 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8773 enable_languages
="${enable_languages},c++"
8775 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8780 # First scan to see if an enabled language requires some other language.
8781 # We assume that a given config-lang.in will list all the language
8782 # front ends it requires, even if some are required indirectly.
8783 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8784 case ${lang_frag} in
8786 # The odd quoting in the next line works around
8787 # an apparent bug in bash 1.12 on linux.
8788 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8790 # From the config-lang.in, get $language, $lang_requires, and
8791 # $lang_requires_boot_languages.
8794 lang_requires_boot_languages
=
8795 # set srcdir during sourcing lang_frag to the gcc dir.
8796 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8797 # polutes this shell
8798 saved_srcdir
=${srcdir}
8799 srcdir
=${srcdir}/gcc .
${lang_frag}
8800 srcdir
=${saved_srcdir}
8801 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8802 case ,${enable_languages}, in
8807 echo " \`$other' language required by \`$language'; enabling" 1>&2
8808 enable_languages
="${enable_languages},${other}"
8812 for other
in ${lang_requires_boot_languages} ; do
8813 if test "$other" != "c"; then
8814 case ,${enable_stage1_languages}, in
8819 case ,${enable_languages}, in
8821 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8822 enable_stage1_languages
="$enable_stage1_languages,${other}"
8833 new_enable_languages
=,c
,
8835 # If LTO is enabled, add the LTO front end.
8836 if test "$enable_lto" = "yes" ; then
8837 case ,${enable_languages}, in
8839 *) enable_languages
="${enable_languages},lto" ;;
8841 if test "${build_lto_plugin}" = "yes" ; then
8842 configdirs
="$configdirs lto-plugin"
8846 # If we're building an offloading compiler, add the LTO front end.
8847 if test x
"$enable_as_accelerator_for" != x
; then
8848 case ,${enable_languages}, in
8850 *) enable_languages
="${enable_languages},lto" ;;
8854 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8855 potential_languages
=,c
,
8857 enabled_target_libs
=
8858 disabled_target_libs
=
8860 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8861 case ${lang_frag} in
8863 # The odd quoting in the next line works around
8864 # an apparent bug in bash 1.12 on linux.
8865 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8867 # From the config-lang.in, get $language, $target_libs,
8868 # $lang_dirs, $boot_language, and $build_by_default
8874 build_by_default
=yes
8875 # set srcdir during sourcing. See above about save & restore
8876 saved_srcdir
=${srcdir}
8877 srcdir
=${srcdir}/gcc .
${lang_frag}
8878 srcdir
=${saved_srcdir}
8879 if test x
${language} = x
; then
8880 echo "${lang_frag} doesn't set \$language." 1>&2
8884 if test "$language" = "c++"; then
8889 # C is always enabled, so no need to add it again
8890 if test "$language" != "c"; then
8891 case ,${enable_languages}, in
8893 # Language was explicitly selected; include it
8897 # All languages are enabled
8901 # 'default' was selected, select it if it is a default language
8902 add_this_lang
=${build_by_default}
8907 # Disable languages that need other directories if these aren't available.
8908 for i
in $subdir_requires; do
8909 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8910 case ${add_this_lang} in
8912 # Specifically requested language; tell them.
8913 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8916 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8917 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8918 add_this_lang
=unsupported
8922 add_this_lang
=unsupported
8927 # Disable Ada if no preexisting GNAT is available.
8928 case ${add_this_lang}:${language}:${have_gnat} in
8930 # Specifically requested language; tell them.
8931 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8935 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8936 add_this_lang
=unsupported
8940 add_this_lang
=unsupported
8944 # Disable D if no preexisting GDC is available.
8945 case ${add_this_lang}:${language}:${have_gdc} in
8947 # Specifically requested language; tell them.
8948 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8952 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8953 add_this_lang
=unsupported
8957 add_this_lang
=unsupported
8961 # Disable jit if -enable-host-shared not specified
8962 # but not if building for Mingw. All code in Windows
8963 # is position independent code (PIC).
8967 case ${add_this_lang}:${language}:${host_shared} in
8969 # PR jit/64780: explicitly specify --enable-host-shared
8971 Enabling language \"jit\" requires --enable-host-shared.
8973 --enable-host-shared typically slows the rest of the compiler down by
8974 a few %, so you must explicitly enable it.
8976 If you want to build both the jit and the regular compiler, it is often
8977 best to do this via two separate configure/builds, in separate
8978 directories, to avoid imposing the performance cost of
8979 --enable-host-shared on the regular compiler." "$LINENO" 5
8982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8983 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8984 add_this_lang
=unsupported
8988 add_this_lang
=unsupported
8994 # Disable a language that is unsupported by the target.
8995 case "${add_this_lang}: $unsupported_languages " in
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9000 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9001 add_this_lang
=unsupported
9005 case $add_this_lang in
9007 # Remove language-dependent dirs.
9008 disabled_target_libs
="$disabled_target_libs $target_libs"
9009 noconfigdirs
="$noconfigdirs $lang_dirs"
9012 # Remove language-dependent dirs; still show language as supported.
9013 disabled_target_libs
="$disabled_target_libs $target_libs"
9014 noconfigdirs
="$noconfigdirs $lang_dirs"
9015 potential_languages
="${potential_languages}${language},"
9018 new_enable_languages
="${new_enable_languages}${language},"
9019 potential_languages
="${potential_languages}${language},"
9020 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
9021 enabled_target_libs
="$enabled_target_libs $target_libs"
9022 case "${boot_language}:,$enable_stage1_languages," in
9023 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
9024 # Add to (comma-separated) list of stage 1 languages.
9025 case ",$stage1_languages," in
9026 *,$language,* |
,yes, |
,all
,) ;;
9027 *) stage1_languages
="${stage1_languages}${language}," ;;
9029 # We need to bootstrap any supporting libraries.
9030 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9039 # Add target libraries which are only needed for disabled languages
9041 if test -n "$disabled_target_libs"; then
9042 for dir
in $disabled_target_libs; do
9043 case " $enabled_target_libs " in
9045 *) noconfigdirs
="$noconfigdirs $dir" ;;
9050 # Check whether --enable-stage1-languages was given.
9051 if test "${enable_stage1_languages+set}" = set; then :
9052 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9054 # Set it to something that will have no effect in the loop below
9055 enable_stage1_languages
=c
;;
9057 enable_stage1_languages
=`echo $new_enable_languages | \
9058 sed -e "s/^,//" -e "s/,$//" ` ;;
9060 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
9061 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9064 # Add "good" languages from enable_stage1_languages to stage1_languages,
9065 # while "bad" languages go in missing_languages. Leave no duplicates.
9066 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9067 case $potential_languages in
9069 case $stage1_languages in
9071 *) stage1_languages
="$stage1_languages$i," ;;
9074 case $missing_languages in
9076 *) missing_languages
="$missing_languages$i," ;;
9083 # Remove leading/trailing commas that were added for simplicity
9084 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9085 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9086 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9087 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9089 if test "x$missing_languages" != x
; then
9091 The following requested languages could not be built: ${missing_languages}
9092 Supported languages are: ${potential_languages}" "$LINENO" 5
9094 if test "x$new_enable_languages" != "x$enable_languages"; then
9095 echo The following languages will be built
: ${new_enable_languages}
9096 enable_languages
="$new_enable_languages"
9100 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9103 # Handle --disable-<component> generically.
9104 for dir
in $configdirs $build_configdirs $target_configdirs ; do
9105 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9106 varname
=`echo $dirname | sed -e s/+/_/g`
9107 if eval test x\
${enable_${varname}} "=" xno
; then
9108 noconfigdirs
="$noconfigdirs $dir"
9112 # Check for Boehm's garbage collector
9113 # Check whether --enable-objc-gc was given.
9114 if test "${enable_objc_gc+set}" = set; then :
9115 enableval
=$enable_objc_gc;
9119 # Check whether --with-target-bdw-gc was given.
9120 if test "${with_target_bdw_gc+set}" = set; then :
9121 withval
=$with_target_bdw_gc;
9125 # Check whether --with-target-bdw-gc-include was given.
9126 if test "${with_target_bdw_gc_include+set}" = set; then :
9127 withval
=$with_target_bdw_gc_include;
9131 # Check whether --with-target-bdw-gc-lib was given.
9132 if test "${with_target_bdw_gc_lib+set}" = set; then :
9133 withval
=$with_target_bdw_gc_lib;
9137 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9139 $as_echo_n "checking for bdw garbage collector... " >&6; }
9140 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9142 $as_echo "using bdw-gc in default locations" >&6; }
9144 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9145 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9146 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9147 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9150 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9155 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9156 case ,${enable_languages}, in
9158 # Disable libitm, libsanitizer if we're not building libstdc++
9159 case "${noconfigdirs}" in
9160 *target-libstdc
++-v3*)
9161 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9167 noconfigdirs
="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9171 # If gcc/ is not in the source tree then we'll not be building a
9172 # target compiler, assume in that case we don't want to build any
9173 # target libraries or tools.
9175 # This was added primarily for the benefit for binutils-gdb who reuse
9176 # this configure script, but don't always have target tools available.
9177 if test ! -d ${srcdir}/gcc
; then
9178 skipdirs
="${skipdirs} ${target_configdirs}"
9181 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9182 # $build_configdirs and $target_configdirs.
9183 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9186 for dir
in .
$skipdirs $noconfigdirs ; do
9187 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9188 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9189 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9190 if test -r $srcdir/$dirname/configure
; then
9191 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9194 notsupp
="$notsupp $dir"
9198 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9199 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9200 if test -r $srcdir/$dirname/configure
; then
9201 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9204 notsupp
="$notsupp $dir"
9208 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9209 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9210 if test -r $srcdir/$dirname/configure
; then
9211 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9214 notsupp
="$notsupp $dir"
9220 # Quietly strip out all directories which aren't configurable in this tree.
9221 # This relies on all configurable subdirectories being autoconfiscated, which
9223 build_configdirs_all
="$build_configdirs"
9225 for i
in ${build_configdirs_all} ; do
9226 j
=`echo $i | sed -e s/build-//g`
9227 if test -f ${srcdir}/$j/configure
; then
9228 build_configdirs
="${build_configdirs} $i"
9232 configdirs_all
="$configdirs"
9234 for i
in ${configdirs_all} ; do
9235 if test -f ${srcdir}/$i/configure
; then
9236 configdirs
="${configdirs} $i"
9240 target_configdirs_all
="$target_configdirs"
9242 for i
in ${target_configdirs_all} ; do
9243 j
=`echo $i | sed -e s/target-//g`
9244 if test -f ${srcdir}/$j/configure
; then
9245 target_configdirs
="${target_configdirs} $i"
9249 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9250 # so we have to add it after the preceding checks.
9251 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9253 case " $configdirs " in
9255 # If we can build libiberty, we can also build libiberty-linker-plugin.
9256 configdirs
="$configdirs libiberty-linker-plugin"
9257 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9258 --with-libiberty=../libiberty-linker-plugin";;
9260 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9264 # Sometimes we have special requirements for the host libiberty.
9265 extra_host_libiberty_configure_flags
=
9266 case " $configdirs " in
9267 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9268 # When these are to be built as shared libraries, the same applies to
9270 extra_host_libiberty_configure_flags
=--enable-shared
9275 # Sometimes we have special requirements for the host zlib.
9276 extra_host_zlib_configure_flags
=
9277 case " $configdirs " in
9279 # When bfd is to be built as a shared library, the same applies to
9281 if test "$enable_shared" = "yes"; then
9282 extra_host_zlib_configure_flags
=--enable-host-shared
9288 # Produce a warning message for the subdirs we can't configure.
9289 # This isn't especially interesting in the Cygnus tree, but in the individual
9290 # FSF releases, it's important to let people know when their machine isn't
9291 # supported by the one or two programs in a package.
9293 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9294 # If $appdirs is non-empty, at least one of those directories must still
9295 # be configured, or we error out. (E.g., if the gas release supports a
9296 # specified target in some subdirs but not the gas subdir, we shouldn't
9297 # pretend that all is well.)
9298 if test -n "$appdirs" ; then
9299 for dir
in $appdirs ; do
9300 if test -r $dir/Makefile.
in ; then
9301 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9305 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9311 if test -n "$appdirs" ; then
9312 echo "*** This configuration is not supported by this package." 1>&2
9316 # Okay, some application will build, or we don't care to check. Still
9317 # notify of subdirs not getting built.
9318 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9319 echo " ${notsupp}" 1>&2
9320 echo " (Any other directories should still work fine.)" 1>&2
9328 # To find our prefix, in gcc_cv_tool_prefix.
9330 # The user is always right.
9331 if test "${PATH_SEPARATOR+set}" != set; then
9332 echo "#! /bin/sh" >conf$$.sh
9333 echo "exit 0" >>conf$$.sh
9335 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9344 get_gcc_base_ver
="cat"
9346 # Check whether --with-gcc-major-version-only was given.
9347 if test "${with_gcc_major_version_only+set}" = set; then :
9348 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9349 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9359 if test "x$exec_prefix" = xNONE
; then
9360 if test "x$prefix" = xNONE
; then
9361 gcc_cv_tool_prefix
=$ac_default_prefix
9363 gcc_cv_tool_prefix
=$prefix
9366 gcc_cv_tool_prefix
=$exec_prefix
9369 # If there is no compiler in the tree, use the PATH only. In any
9370 # case, if there is no compiler in the tree nobody should use
9371 # AS_FOR_TARGET and LD_FOR_TARGET.
9372 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9373 if test x
$with_gcc_major_version_only = xyes
; then
9374 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9376 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9378 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9379 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9380 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9381 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9382 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9383 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9388 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9389 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9397 # Check whether --with-build-sysroot was given.
9398 if test "${with_build_sysroot+set}" = set; then :
9399 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9400 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9403 SYSROOT_CFLAGS_FOR_TARGET
=
9409 # Check whether --with-debug-prefix-map was given.
9410 if test "${with_debug_prefix_map+set}" = set; then :
9411 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9412 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9413 for debug_map
in $withval; do
9414 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9418 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9423 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9424 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9425 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9426 # We want to ensure that TARGET libraries (which we know are built with
9427 # gcc) are built with "-O2 -g", so include those options when setting
9428 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9429 if test "x$CFLAGS_FOR_TARGET" = x
; then
9430 if test "x${is_cross_compiler}" = xyes
; then
9431 CFLAGS_FOR_TARGET
="-g -O2"
9433 CFLAGS_FOR_TARGET
=$CFLAGS
9436 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9439 *" -g "* |
*" -g3 "*) ;;
9440 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9446 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9447 if test "x${is_cross_compiler}" = xyes
; then
9448 CXXFLAGS_FOR_TARGET
="-g -O2"
9450 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9451 case " $CXXFLAGS " in
9453 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9455 case " $CXXFLAGS " in
9456 *" -g "* |
*" -g3 "*) ;;
9457 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9465 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9466 # the named directory are copied to $(tooldir)/sys-include.
9467 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9468 if test x
${is_cross_compiler} = xno
; then
9469 echo 1>&2 '***' --with-headers is only supported when cross compiling
9472 if test x
"${with_headers}" != xyes
; then
9473 x
=${gcc_cv_tool_prefix}
9474 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9478 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9479 # the name directories are copied to $(tooldir)/lib. Multiple directories
9481 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9482 if test x
${is_cross_compiler} = xno
; then
9483 echo 1>&2 '***' --with-libs is only supported when cross compiling
9486 if test x
"${with_libs}" != xyes
; then
9487 # Copy the libraries in reverse order, so that files in the first named
9488 # library override files in subsequent libraries.
9489 x
=${gcc_cv_tool_prefix}
9490 for l
in ${with_libs}; do
9491 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9496 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9498 # This is done by determining whether or not the appropriate directory
9499 # is available, and by checking whether or not specific configurations
9500 # have requested that this magic not happen.
9502 # The command line options always override the explicit settings in
9503 # configure.ac, and the settings in configure.ac override this magic.
9505 # If the default for a toolchain is to use GNU as and ld, and you don't
9506 # want to do that, then you should use the --without-gnu-as and
9507 # --without-gnu-ld options for the configure script. Similarly, if
9508 # the default is to use the included zlib and you don't want to do that,
9509 # you should use the --with-system-zlib option for the configure script.
9511 if test x
${use_gnu_as} = x
&&
9512 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9514 extra_host_args
="$extra_host_args --with-gnu-as"
9517 if test x
${use_gnu_ld} = x
&&
9518 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9520 extra_host_args
="$extra_host_args --with-gnu-ld"
9523 if test x
${use_included_zlib} = x
&&
9524 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9527 with_system_zlib
=yes
9528 extra_host_args
="$extra_host_args --with-system-zlib"
9531 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9532 # can detect this case.
9534 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9536 extra_host_args
="$extra_host_args --with-newlib"
9539 # Handle ${copy_dirs}
9540 set fnord
${copy_dirs}
9542 while test $# != 0 ; do
9543 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9546 echo Copying
$1 to
$2
9548 # Use the install script to create the directory and all required
9549 # parent directories.
9550 if test -d $2 ; then
9554 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9557 # Copy the directory, assuming we have tar.
9558 # FIXME: Should we use B in the second tar? Not all systems support it.
9559 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9561 # It is the responsibility of the user to correctly adjust all
9562 # symlinks. If somebody can figure out how to handle them correctly
9563 # here, feel free to add the code.
9570 # Determine a target-dependent exec_prefix that the installed
9571 # gcc will search in. Keep this list sorted by triplet, with
9572 # the *-*-osname triplets last.
9575 i
[34567]86-pc-msdosdjgpp*)
9576 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9581 md_exec_prefix
=/usr
/ccs
/bin
9585 extra_arflags_for_target
=
9586 extra_nmflags_for_target
=
9587 extra_ranlibflags_for_target
=
9588 target_makefile_frag
=/dev
/null
9591 target_makefile_frag
="config/mt-spu"
9593 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9594 target_makefile_frag
="config/mt-sde"
9596 mipsisa
*-*-elfoabi*)
9597 target_makefile_frag
="config/mt-mips-elfoabi"
9599 mips
*-*-*linux
* | mips
*-*-gnu*)
9600 target_makefile_frag
="config/mt-mips-gnu"
9603 target_makefile_frag
="config/mt-nios2-elf"
9606 target_makefile_frag
="config/mt-android"
9608 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9609 target_makefile_frag
="config/mt-gnu"
9611 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9612 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9613 # commands to handle both 32-bit and 64-bit objects. These flags are
9614 # harmless if we're using GNU nm or ar.
9615 extra_arflags_for_target
=" -X32_64"
9616 extra_nmflags_for_target
=" -B -X32_64"
9620 alphaieee_frag
=/dev
/null
9623 # This just makes sure to use the -mieee option to build target libs.
9624 # This should probably be set individually by each library.
9625 alphaieee_frag
="config/mt-alphaieee"
9629 # If --enable-target-optspace always use -Os instead of -O2 to build
9630 # the target libraries, similarly if it is not specified, use -Os
9631 # on selected platforms.
9632 ospace_frag
=/dev
/null
9633 case "${enable_target_optspace}:${target}" in
9635 ospace_frag
="config/mt-ospace"
9638 ospace_frag
="config/mt-d30v"
9640 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9641 ospace_frag
="config/mt-ospace"
9646 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9650 # Some systems (e.g., one of the i386-aix systems the gas testers are
9651 # using) don't handle "\$" correctly, so don't use it here.
9652 tooldir
='${exec_prefix}'/${target_noncanonical}
9653 build_tooldir
=${tooldir}
9655 # Create a .gdbinit file which runs the one in srcdir
9656 # and tells GDB to look there for source files.
9658 if test -r ${srcdir}/.gdbinit
; then
9661 *) cat > .
/.gdbinit
<<EOF
9665 source ${srcdir}/.gdbinit
9671 # Make sure that the compiler is able to generate an executable. If it
9672 # can't, we are probably in trouble. We don't care whether we can run the
9673 # executable--we might be using a cross compiler--we only care whether it
9674 # can be created. At this point the main configure script has set CC.
9676 echo "int main () { return 0; }" > conftest.c
9677 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9678 if test $?
= 0 ; then
9679 if test -s conftest ||
test -s conftest.exe
; then
9685 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9686 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9693 # Decide which environment variable is used to find dynamic libraries.
9695 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9696 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9697 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9698 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9701 # On systems where the dynamic library environment variable is PATH,
9702 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9703 # built executables to PATH.
9704 if test "$RPATH_ENVVAR" = PATH
; then
9705 GCC_SHLIB_SUBDIR
=/shlib
9710 # Adjust the toplevel makefile according to whether bootstrap was selected.
9711 case $enable_bootstrap in
9713 bootstrap_suffix
=bootstrap
9714 BUILD_CONFIG
=bootstrap-debug
9717 bootstrap_suffix
=no-bootstrap
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9723 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9726 # Check whether --with-build-config was given.
9727 if test "${with_build_config+set}" = set; then :
9728 withval
=$with_build_config; case $with_build_config in
9729 yes) with_build_config
= ;;
9730 no
) with_build_config
= BUILD_CONFIG
= ;;
9735 if test "x${with_build_config}" != x
; then
9736 BUILD_CONFIG
=$with_build_config
9738 case $BUILD_CONFIG in
9740 if echo "int f (void) { return 0; }" > conftest.c
&&
9741 ${CC} -c conftest.c
&&
9742 mv conftest.o conftest.o.g0
&&
9743 ${CC} -c -g conftest.c
&&
9744 mv conftest.o conftest.o.g
&&
9745 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9750 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9755 $as_echo "$BUILD_CONFIG" >&6; }
9758 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9760 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9761 # Check whether --enable-vtable-verify was given.
9762 if test "${enable_vtable_verify+set}" = set; then :
9763 enableval
=$enable_vtable_verify; case "$enableval" in
9764 yes) enable_vtable_verify
=yes ;;
9765 no
) enable_vtable_verify
=no
;;
9766 *) enable_vtable_verify
=no
;;
9769 enable_vtable_verify
=no
9772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9773 $as_echo "$enable_vtable_verify" >&6; }
9775 # Record target_configdirs and the configure arguments for target and
9776 # build configuration in Makefile.
9777 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9778 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9779 bootstrap_fixincludes
=no
9781 # If we are building libgomp, bootstrap it.
9782 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9783 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9786 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9787 # or bootstrap-ubsan, bootstrap it.
9788 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9789 case "$BUILD_CONFIG" in
9790 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9791 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9792 bootstrap_fixincludes
=yes
9797 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9798 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9799 test "$enable_vtable_verify" != no
; then
9800 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9803 # If we are building libatomic and the list of enabled languages includes the
9804 # D frontend, bootstrap it.
9805 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9806 case ,${enable_languages}, in
9808 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
9813 # Determine whether gdb needs tk/tcl or not.
9814 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9815 # and in that case we want gdb to be built without tk. Ugh!
9816 # In fact I believe gdb is the *only* package directly dependent on tk,
9817 # so we should be able to put the 'maybe's in unconditionally and
9818 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9819 # 100% sure that that's safe though.
9821 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9822 case "$enable_gdbtk" in
9826 GDB_TK
="${gdb_tk}" ;;
9828 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9829 # distro. Eventually someone will fix this and move Insight, nee
9830 # gdbtk to a separate directory.
9831 if test -d ${srcdir}/gdb
/gdbtk
; then
9838 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9839 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9841 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9842 # else does, only include them if one of these is built. The Makefile
9843 # provides the ordering, so it's enough here to add to the list.
9844 case " ${configdirs} " in
9846 configdirs
="${configdirs} gnulib gdbsupport"
9849 configdirs
="${configdirs} gnulib gdbsupport"
9852 configdirs
="${configdirs} gnulib"
9856 # Strip out unwanted targets.
9858 # While at that, we remove Makefiles if we were started for recursive
9859 # configuration, so that the top-level Makefile reconfigures them,
9860 # like we used to do when configure itself was recursive.
9862 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9863 # but now we're fixing up the Makefile ourselves with the additional
9864 # commands passed to AC_CONFIG_FILES. Use separate variables
9865 # extrasub-{build,host,target} not because there is any reason to split
9866 # the substitutions up that way, but only to remain below the limit of
9867 # 99 commands in a script, for HP-UX sed.
9869 # Do not nest @if/@endif or @unless/@endunless pairs, because
9870 # configure will not warn you at all.
9872 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9873 yes:yes:*\ gold\
*:*,c
++,*) ;;
9874 yes:yes:*\ gold\
*:*)
9875 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9880 for module
in ${build_configdirs} ; do
9881 if test -z "${no_recursion}" \
9882 && test -f ${build_subdir}/${module}/Makefile
; then
9883 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9884 rm -f ${build_subdir}/${module}/Makefile
9886 extrasub_build
="$extrasub_build
9887 /^@if build-$module\$/d
9888 /^@endif build-$module\$/d
9889 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9890 /^@if build-$module-$bootstrap_suffix\$/d
9891 /^@endif build-$module-$bootstrap_suffix\$/d
9892 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9895 for module
in ${configdirs} ; do
9896 if test -z "${no_recursion}"; then
9897 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9898 if test -f ${file}; then
9899 echo 1>&2 "*** removing ${file} to force reconfigure"
9904 case ${module},${bootstrap_fixincludes} in
9905 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9906 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9908 extrasub_host
="$extrasub_host
9910 /^@endif $module\$/d
9911 /^@unless $module\$/,/^@endunless $module\$/d
9912 /^@if $module-$host_bootstrap_suffix\$/d
9913 /^@endif $module-$host_bootstrap_suffix\$/d
9914 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9917 for module
in ${target_configdirs} ; do
9918 if test -z "${no_recursion}" \
9919 && test -f ${target_subdir}/${module}/Makefile
; then
9920 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9921 rm -f ${target_subdir}/${module}/Makefile
9924 # We only bootstrap target libraries listed in bootstrap_target_libs.
9925 case $bootstrap_target_libs in
9926 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9927 *) target_bootstrap_suffix
=no-bootstrap
;;
9930 extrasub_target
="$extrasub_target
9931 /^@if target-$module\$/d
9932 /^@endif target-$module\$/d
9933 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9934 /^@if target-$module-$target_bootstrap_suffix\$/d
9935 /^@endif target-$module-$target_bootstrap_suffix\$/d
9936 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9939 # Do the final fixup along with target modules.
9940 extrasub_target
="$extrasub_target
9945 if test "$enable_pgo_build" != "no"; then
9946 extrasub_build
="$extrasub_build
9948 /^@endif pgo-build\$/d"
9951 # Create the serialization dependencies. This uses a temporary file.
9953 # Check whether --enable-serial-configure was given.
9954 if test "${enable_serial_configure+set}" = set; then :
9955 enableval
=$enable_serial_configure;
9959 case ${enable_serial_configure} in
9961 enable_serial_build_configure
=yes
9962 enable_serial_host_configure
=yes
9963 enable_serial_target_configure
=yes
9967 # These force 'configure's to be done one at a time, to avoid problems
9968 # with contention over a shared config.cache.
9970 echo '# serdep.tmp' > serdep.tmp
9972 test "x${enable_serial_build_configure}" = xyes
&&
9973 for item
in ${build_configdirs} ; do
9976 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
9981 test "x${enable_serial_host_configure}" = xyes
&&
9982 for item
in ${configdirs} ; do
9985 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
9990 test "x${enable_serial_target_configure}" = xyes
&&
9991 for item
in ${target_configdirs} ; do
9994 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
9998 serialization_dependencies
=serdep.tmp
10001 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10002 # target, nonopt, and variable assignments. These are the ones we
10003 # might not want to pass down to subconfigures. The exception being
10004 # --cache-file=/dev/null, which is used to turn off the use of cache
10005 # files altogether, and which should be passed on to subconfigures.
10006 # Also strip program-prefix, program-suffix, and program-transform-name,
10007 # so that we can pass down a consistent program-transform-name.
10012 eval "set -- $ac_configure_args"
10015 if test X
"$skip_next" = X
"yes"; then
10019 if test X
"$keep_next" = X
"yes"; then
10022 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10024 baseargs
="$baseargs '$ac_arg'"
10025 tbaseargs
="$tbaseargs '$ac_arg'"
10030 # Handle separated arguments. Based on the logic generated by
10033 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
10034 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
10035 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
10036 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
10050 --with-* |
--without-*)
10051 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10055 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
10058 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
10067 mpc | mpfr | gmp | isl
)
10068 # If we're processing --with-$lib, --with-$lib-include or
10069 # --with-$lib-lib, for one of the libs above, and target is
10070 # different from host, don't pass the current argument to any
10071 # target library's configure.
10072 if test x
$is_cross_compiler = xyes
; then
10081 --cache-file=/dev
/null | \
10082 -cache-file=/dev
/null
)
10083 # Handled here to avoid the test to skip args below.
10084 baseargs
="$baseargs '$ac_arg'"
10085 tbaseargs
="$tbaseargs '$ac_arg'"
10086 # Assert: $separate_arg should always be no.
10087 keep_next
=$separate_arg
10103 -program-prefix* | \
10104 -program-suffix* | \
10105 -program-transform-name* )
10106 skip_next
=$separate_arg
10110 # An option. Add it.
10113 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10115 baseargs
="$baseargs '$ac_arg'"
10116 if test X
"$skip_targ" = Xno
; then
10117 tbaseargs
="$tbaseargs '$ac_arg'"
10119 keep_next
=$separate_arg
10122 # Either a variable assignment, or a nonopt (triplet). Don't
10123 # pass it down; let the Makefile handle this.
10128 # Remove the initial space we just introduced and, as these will be
10129 # expanded by make, quote '$'.
10130 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10132 # Add in --program-transform-name, after --program-prefix and
10133 # --program-suffix have been applied to it. Autoconf has already
10134 # doubled dollar signs and backslashes in program_transform_name; we want
10135 # the backslashes un-doubled, and then the entire thing wrapped in single
10136 # quotes, because this will be expanded first by make and then by the shell.
10137 # Also, because we want to override the logic in subdir configure scripts to
10138 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10139 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10140 ${program_transform_name}
10142 gcc_transform_name
=`cat conftestsed.out`
10143 rm -f conftestsed.out
10144 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
10145 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10146 if test "$silent" = yes; then
10147 baseargs
="$baseargs --silent"
10148 tbaseargs
="$tbaseargs --silent"
10151 baseargs
="$baseargs --disable-option-checking"
10152 tbaseargs
="$tbaseargs --disable-option-checking"
10154 if test "$enable_year2038" = no
; then
10155 baseargs
="$baseargs --disable-year2038"
10156 tbaseargs
="$tbaseargs --disable-year2038"
10159 # Record and document user additions to sub configure arguments.
10164 # For the build-side libraries, we just need to pretend we're native,
10165 # and not use the same cache file. Multilibs are neither needed nor
10166 # desired. We can't even use the same cache file for all build-side
10167 # libraries, as they're compiled differently; some with C, some with
10168 # C++ or with different feature-enabling options.
10169 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
10171 # For host modules, accept cache file option, or specification as blank.
10172 case "${cache_file}" in
10174 cache_file_option
="" ;;
10175 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10176 cache_file_option
="--cache-file=${cache_file}" ;;
10178 cache_file_option
="--cache-file=../${cache_file}" ;;
10181 # Host dirs don't like to share a cache file either, horribly enough.
10182 # This seems to be due to autoconf 2.5x stupidity.
10183 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10185 target_configargs
="$target_configargs ${tbaseargs}"
10187 # Passing a --with-cross-host argument lets the target libraries know
10188 # whether they are being built with a cross-compiler or being built
10189 # native. However, it would be better to use other mechanisms to make the
10190 # sorts of decisions they want to make on this basis. Please consider
10191 # this option to be deprecated. FIXME.
10192 if test x
${is_cross_compiler} = xyes
; then
10193 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10196 # Special user-friendly check for native x86_64-linux build, if
10197 # multilib is not explicitly enabled.
10198 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10199 x86_64-
*linux
*:yes:$build:$build:)
10200 # Make sure we have a development environment that handles 32-bit
10202 echo "int main () { return 0; }" > conftest.c
10203 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10204 if test $?
= 0 ; then
10205 if test -s conftest ||
test -s conftest.exe
; then
10210 if test x
${dev64} != xyes
; then
10211 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
10216 # Default to --enable-multilib.
10217 if test x
${enable_multilib} = x
; then
10218 target_configargs
="--enable-multilib ${target_configargs}"
10221 # Pass --with-newlib if appropriate. Note that target_configdirs has
10222 # changed from the earlier setting of with_newlib.
10223 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10224 target_configargs
="--with-newlib ${target_configargs}"
10227 # Different target subdirs use different values of certain variables
10228 # (notably CXX). Worse, multilibs use *lots* of different values.
10229 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10230 # it doesn't automatically accept command-line overrides of them.
10231 # This means it's not safe for target subdirs to share a cache file,
10232 # which is disgusting, but there you have it. Hopefully this can be
10233 # fixed in future. It's still worthwhile to use a cache file for each
10234 # directory. I think.
10236 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10237 # We need to pass --target, as newer autoconf's requires consistency
10238 # for target_alias and gcc doesn't manage it consistently.
10239 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10242 case " $target_configdirs " in
10244 case " $target_configargs " in
10245 *" --with-newlib "*)
10248 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10252 # If we're not building GCC, don't discard standard headers.
10253 if test -d ${srcdir}/gcc
; then
10254 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10256 if test "${build}" != "${host}"; then
10257 # On Canadian crosses, CC_FOR_TARGET will have already been set
10258 # by `configure', so we won't have an opportunity to add -Bgcc/
10259 # to it. This is right: we don't want to search that directory
10260 # for binaries, but we want the header files in there, so add
10262 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10264 # Someone might think of using the pre-installed headers on
10265 # Canadian crosses, in case the installed compiler is not fully
10266 # compatible with the compiler being built. In this case, it
10267 # would be better to flag an error than risking having
10268 # incompatible object files being constructed. We can't
10269 # guarantee that an error will be flagged, but let's hope the
10270 # compiler will do it, when presented with incompatible header
10275 case "${target}-${is_cross_compiler}" in
10276 i
[3456789]86-*-linux*-no)
10277 # Here host == target, so we don't need to build gcc,
10278 # so we don't want to discard standard headers.
10279 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10282 # If we're building newlib, use its generic headers last, but search
10283 # for any libc-related directories first (so make it the last -B
10285 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10287 # If we're building libgloss, find the startup file, simulator library
10288 # and linker script.
10289 case " $target_configdirs " in
10291 # Look for startup file, simulator library and maybe linker script.
10292 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10293 # Look for libnosys.a in case the target needs it.
10294 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10295 # Most targets have the linker script in the source directory.
10296 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10307 x86_64-
*mingw
* |
*-w64-mingw*)
10308 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10309 # however, use a symlink named 'mingw' in ${prefix} .
10310 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10313 # MinGW can't be handled as Cygwin above since it does not use newlib.
10314 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'
10318 # Allow the user to override the flags for
10319 # our build compiler if desired.
10320 if test x
"${build}" = x
"${host}" ; then
10321 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10322 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10323 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10324 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10327 # On Canadian crosses, we'll be searching the right directories for
10328 # the previously-installed cross compiler, so don't bother to add
10329 # flags for directories within the install tree of the compiler
10330 # being built; programs in there won't even run.
10331 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10332 # Search for pre-installed headers if nothing else fits.
10333 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10336 if test "x
${use_gnu_ld}" = x &&
10337 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10338 # Arrange for us to find uninstalled linker scripts.
10339 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10342 # Search for other target-specific linker scripts and such.
10343 case "${target}" in
10345 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10347 # The VxWorks support for shared libraries is getting in
10348 # incrementally. Make sure it doesn't get activated implicitly:
10350 if test "${enable_shared-unset}" = unset ; then
10352 # So the build of libraries knows ...
10353 target_configargs="${target_configargs} --disable-shared"
10355 host_configargs="${host_configargs} --disable-shared"
10360 # Makefile fragments.
10361 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10363 eval fragval=\$$frag
10364 if test $fragval != /dev/null; then
10365 eval $frag=${srcdir}/$fragval
10373 # Miscellanea: directories, flags, etc.
10382 # Build module lists & subconfigure args.
10386 # Host module lists & subconfigure args.
10391 # Target module lists & subconfigure args.
10416 # Generate default definitions for YACC, M4, LEX and other programs that run
10417 # on the build machine. These are used if the Makefile can't locate these
10418 # programs in objdir.
10419 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10421 for ac_prog in 'bison -y' byacc yacc
10423 # Extract the first word of "$ac_prog", so it can be a program name with args.
10424 set dummy $ac_prog; ac_word=$2
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10426 $as_echo_n "checking
for $ac_word...
" >&6; }
10427 if ${ac_cv_prog_YACC+:} false; then :
10428 $as_echo_n "(cached
) " >&6
10430 if test -n "$YACC"; then
10431 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10434 for as_dir in $PATH
10437 test -z "$as_dir" && as_dir=.
10438 for ac_exec_ext in '' $ac_executable_extensions; do
10439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10440 ac_cv_prog_YACC="$ac_prog"
10441 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10450 YACC=$ac_cv_prog_YACC
10451 if test -n "$YACC"; then
10452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10453 $as_echo "$YACC" >&6; }
10455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10456 $as_echo "no
" >&6; }
10460 test -n "$YACC" && break
10462 test -n "$YACC" || YACC="$MISSING bison
-y"
10464 case " $build_configdirs " in
10465 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10468 for ac_prog in bison
10470 # Extract the first word of "$ac_prog", so it can be a program name with args.
10471 set dummy $ac_prog; ac_word=$2
10472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10473 $as_echo_n "checking
for $ac_word...
" >&6; }
10474 if ${ac_cv_prog_BISON+:} false; then :
10475 $as_echo_n "(cached
) " >&6
10477 if test -n "$BISON"; then
10478 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10481 for as_dir in $PATH
10484 test -z "$as_dir" && as_dir=.
10485 for ac_exec_ext in '' $ac_executable_extensions; do
10486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10487 ac_cv_prog_BISON="$ac_prog"
10488 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10497 BISON=$ac_cv_prog_BISON
10498 if test -n "$BISON"; then
10499 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10500 $as_echo "$BISON" >&6; }
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10503 $as_echo "no
" >&6; }
10507 test -n "$BISON" && break
10509 test -n "$BISON" || BISON="$MISSING bison
"
10511 case " $build_configdirs " in
10512 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10515 for ac_prog in gm4 gnum4 m4
10517 # Extract the first word of "$ac_prog", so it can be a program name with args.
10518 set dummy $ac_prog; ac_word=$2
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10520 $as_echo_n "checking
for $ac_word...
" >&6; }
10521 if ${ac_cv_prog_M4+:} false; then :
10522 $as_echo_n "(cached
) " >&6
10524 if test -n "$M4"; then
10525 ac_cv_prog_M4="$M4" # Let the user override the test.
10527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10528 for as_dir in $PATH
10531 test -z "$as_dir" && as_dir=.
10532 for ac_exec_ext in '' $ac_executable_extensions; do
10533 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10534 ac_cv_prog_M4="$ac_prog"
10535 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10545 if test -n "$M4"; then
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10547 $as_echo "$M4" >&6; }
10549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10550 $as_echo "no
" >&6; }
10554 test -n "$M4" && break
10556 test -n "$M4" || M4="$MISSING m4"
10558 case " $build_configdirs " in
10559 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10562 for ac_prog in flex lex
10564 # Extract the first word of "$ac_prog", so it can be a program name with args.
10565 set dummy $ac_prog; ac_word=$2
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10567 $as_echo_n "checking
for $ac_word...
" >&6; }
10568 if ${ac_cv_prog_LEX+:} false; then :
10569 $as_echo_n "(cached
) " >&6
10571 if test -n "$LEX"; then
10572 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10575 for as_dir in $PATH
10578 test -z "$as_dir" && as_dir=.
10579 for ac_exec_ext in '' $ac_executable_extensions; do
10580 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10581 ac_cv_prog_LEX="$ac_prog"
10582 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10591 LEX=$ac_cv_prog_LEX
10592 if test -n "$LEX"; then
10593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10594 $as_echo "$LEX" >&6; }
10596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10597 $as_echo "no
" >&6; }
10601 test -n "$LEX" && break
10603 test -n "$LEX" || LEX="$MISSING flex
"
10605 case " $build_configdirs " in
10606 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10607 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10610 for ac_prog in flex
10612 # Extract the first word of "$ac_prog", so it can be a program name with args.
10613 set dummy $ac_prog; ac_word=$2
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10615 $as_echo_n "checking
for $ac_word...
" >&6; }
10616 if ${ac_cv_prog_FLEX+:} false; then :
10617 $as_echo_n "(cached
) " >&6
10619 if test -n "$FLEX"; then
10620 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10623 for as_dir in $PATH
10626 test -z "$as_dir" && as_dir=.
10627 for ac_exec_ext in '' $ac_executable_extensions; do
10628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10629 ac_cv_prog_FLEX="$ac_prog"
10630 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10639 FLEX=$ac_cv_prog_FLEX
10640 if test -n "$FLEX"; then
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10642 $as_echo "$FLEX" >&6; }
10644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10645 $as_echo "no
" >&6; }
10649 test -n "$FLEX" && break
10651 test -n "$FLEX" || FLEX="$MISSING flex
"
10653 case " $build_configdirs " in
10654 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10657 for ac_prog in makeinfo
10659 # Extract the first word of "$ac_prog", so it can be a program name with args.
10660 set dummy $ac_prog; ac_word=$2
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10662 $as_echo_n "checking
for $ac_word...
" >&6; }
10663 if ${ac_cv_prog_MAKEINFO+:} false; then :
10664 $as_echo_n "(cached
) " >&6
10666 if test -n "$MAKEINFO"; then
10667 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10670 for as_dir in $PATH
10673 test -z "$as_dir" && as_dir=.
10674 for ac_exec_ext in '' $ac_executable_extensions; do
10675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10676 ac_cv_prog_MAKEINFO="$ac_prog"
10677 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10686 MAKEINFO=$ac_cv_prog_MAKEINFO
10687 if test -n "$MAKEINFO"; then
10688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10689 $as_echo "$MAKEINFO" >&6; }
10691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10692 $as_echo "no
" >&6; }
10696 test -n "$MAKEINFO" && break
10698 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10700 case " $build_configdirs " in
10701 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10704 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10705 # higher, else we use the "missing
" dummy.
10706 if ${MAKEINFO} --version \
10707 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10710 MAKEINFO="$MISSING makeinfo
"
10716 # FIXME: expect and dejagnu may become build tools?
10718 for ac_prog in expect
10720 # Extract the first word of "$ac_prog", so it can be a program name with args.
10721 set dummy $ac_prog; ac_word=$2
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10723 $as_echo_n "checking
for $ac_word...
" >&6; }
10724 if ${ac_cv_prog_EXPECT+:} false; then :
10725 $as_echo_n "(cached
) " >&6
10727 if test -n "$EXPECT"; then
10728 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10731 for as_dir in $PATH
10734 test -z "$as_dir" && as_dir=.
10735 for ac_exec_ext in '' $ac_executable_extensions; do
10736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10737 ac_cv_prog_EXPECT="$ac_prog"
10738 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10747 EXPECT=$ac_cv_prog_EXPECT
10748 if test -n "$EXPECT"; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10750 $as_echo "$EXPECT" >&6; }
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10753 $as_echo "no
" >&6; }
10757 test -n "$EXPECT" && break
10759 test -n "$EXPECT" || EXPECT="expect
"
10761 case " $configdirs " in
10763 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10767 for ac_prog in runtest
10769 # Extract the first word of "$ac_prog", so it can be a program name with args.
10770 set dummy $ac_prog; ac_word=$2
10771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10772 $as_echo_n "checking
for $ac_word...
" >&6; }
10773 if ${ac_cv_prog_RUNTEST+:} false; then :
10774 $as_echo_n "(cached
) " >&6
10776 if test -n "$RUNTEST"; then
10777 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10779 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10780 for as_dir in $PATH
10783 test -z "$as_dir" && as_dir=.
10784 for ac_exec_ext in '' $ac_executable_extensions; do
10785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10786 ac_cv_prog_RUNTEST="$ac_prog"
10787 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10796 RUNTEST=$ac_cv_prog_RUNTEST
10797 if test -n "$RUNTEST"; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10799 $as_echo "$RUNTEST" >&6; }
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10802 $as_echo "no
" >&6; }
10806 test -n "$RUNTEST" && break
10808 test -n "$RUNTEST" || RUNTEST="runtest
"
10810 case " $configdirs " in
10812 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10819 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10820 ncn_target_tool_prefix=
10821 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10825 if test -n "$AR"; then
10827 elif test -n "$ac_cv_prog_AR"; then
10831 if test -n "$ac_cv_prog_AR"; then
10832 for ncn_progname in ar; do
10833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10834 set dummy ${ncn_progname}; ac_word=$2
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10836 $as_echo_n "checking
for $ac_word...
" >&6; }
10837 if ${ac_cv_prog_AR+:} false; then :
10838 $as_echo_n "(cached
) " >&6
10840 if test -n "$AR"; then
10841 ac_cv_prog_AR="$AR" # Let the user override the test.
10843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10844 for as_dir in $PATH
10847 test -z "$as_dir" && as_dir=.
10848 for ac_exec_ext in '' $ac_executable_extensions; do
10849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10850 ac_cv_prog_AR="${ncn_progname}"
10851 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10861 if test -n "$AR"; then
10862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10863 $as_echo "$AR" >&6; }
10865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10866 $as_echo "no
" >&6; }
10873 for ncn_progname in ar; do
10874 if test -n "$ncn_tool_prefix"; then
10875 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10876 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10878 $as_echo_n "checking
for $ac_word...
" >&6; }
10879 if ${ac_cv_prog_AR+:} false; then :
10880 $as_echo_n "(cached
) " >&6
10882 if test -n "$AR"; then
10883 ac_cv_prog_AR="$AR" # Let the user override the test.
10885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10886 for as_dir in $PATH
10889 test -z "$as_dir" && as_dir=.
10890 for ac_exec_ext in '' $ac_executable_extensions; do
10891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10892 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10893 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10903 if test -n "$AR"; then
10904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10905 $as_echo "$AR" >&6; }
10907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10908 $as_echo "no
" >&6; }
10913 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10914 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10915 set dummy ${ncn_progname}; ac_word=$2
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10917 $as_echo_n "checking
for $ac_word...
" >&6; }
10918 if ${ac_cv_prog_AR+:} false; then :
10919 $as_echo_n "(cached
) " >&6
10921 if test -n "$AR"; then
10922 ac_cv_prog_AR="$AR" # Let the user override the test.
10924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10925 for as_dir in $PATH
10928 test -z "$as_dir" && as_dir=.
10929 for ac_exec_ext in '' $ac_executable_extensions; do
10930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10931 ac_cv_prog_AR="${ncn_progname}"
10932 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10942 if test -n "$AR"; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10944 $as_echo "$AR" >&6; }
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10947 $as_echo "no
" >&6; }
10952 test -n "$ac_cv_prog_AR" && break
10955 if test -z "$ac_cv_prog_AR" ; then
10957 if test $build = $host ; then
10960 AR="${ncn_tool_prefix}$2"
10966 if test -n "$AS"; then
10968 elif test -n "$ac_cv_prog_AS"; then
10972 if test -n "$ac_cv_prog_AS"; then
10973 for ncn_progname in as; do
10974 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10975 set dummy ${ncn_progname}; ac_word=$2
10976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10977 $as_echo_n "checking
for $ac_word...
" >&6; }
10978 if ${ac_cv_prog_AS+:} false; then :
10979 $as_echo_n "(cached
) " >&6
10981 if test -n "$AS"; then
10982 ac_cv_prog_AS="$AS" # Let the user override the test.
10984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985 for as_dir in $PATH
10988 test -z "$as_dir" && as_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
10990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10991 ac_cv_prog_AS="${ncn_progname}"
10992 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11002 if test -n "$AS"; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11004 $as_echo "$AS" >&6; }
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11007 $as_echo "no
" >&6; }
11014 for ncn_progname in as; do
11015 if test -n "$ncn_tool_prefix"; then
11016 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11017 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11019 $as_echo_n "checking
for $ac_word...
" >&6; }
11020 if ${ac_cv_prog_AS+:} false; then :
11021 $as_echo_n "(cached
) " >&6
11023 if test -n "$AS"; then
11024 ac_cv_prog_AS="$AS" # Let the user override the test.
11026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11027 for as_dir in $PATH
11030 test -z "$as_dir" && as_dir=.
11031 for ac_exec_ext in '' $ac_executable_extensions; do
11032 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11033 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11034 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11044 if test -n "$AS"; then
11045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11046 $as_echo "$AS" >&6; }
11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11049 $as_echo "no
" >&6; }
11054 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11055 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11056 set dummy ${ncn_progname}; ac_word=$2
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11058 $as_echo_n "checking
for $ac_word...
" >&6; }
11059 if ${ac_cv_prog_AS+:} false; then :
11060 $as_echo_n "(cached
) " >&6
11062 if test -n "$AS"; then
11063 ac_cv_prog_AS="$AS" # Let the user override the test.
11065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11066 for as_dir in $PATH
11069 test -z "$as_dir" && as_dir=.
11070 for ac_exec_ext in '' $ac_executable_extensions; do
11071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11072 ac_cv_prog_AS="${ncn_progname}"
11073 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11083 if test -n "$AS"; then
11084 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11085 $as_echo "$AS" >&6; }
11087 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11088 $as_echo "no
" >&6; }
11093 test -n "$ac_cv_prog_AS" && break
11096 if test -z "$ac_cv_prog_AS" ; then
11098 if test $build = $host ; then
11101 AS="${ncn_tool_prefix}$2"
11107 if test -n "$DLLTOOL"; then
11108 ac_cv_prog_DLLTOOL=$DLLTOOL
11109 elif test -n "$ac_cv_prog_DLLTOOL"; then
11110 DLLTOOL=$ac_cv_prog_DLLTOOL
11113 if test -n "$ac_cv_prog_DLLTOOL"; then
11114 for ncn_progname in dlltool; do
11115 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11116 set dummy ${ncn_progname}; ac_word=$2
11117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11118 $as_echo_n "checking
for $ac_word...
" >&6; }
11119 if ${ac_cv_prog_DLLTOOL+:} false; then :
11120 $as_echo_n "(cached
) " >&6
11122 if test -n "$DLLTOOL"; then
11123 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11126 for as_dir in $PATH
11129 test -z "$as_dir" && as_dir=.
11130 for ac_exec_ext in '' $ac_executable_extensions; do
11131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11132 ac_cv_prog_DLLTOOL="${ncn_progname}"
11133 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11142 DLLTOOL=$ac_cv_prog_DLLTOOL
11143 if test -n "$DLLTOOL"; then
11144 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11145 $as_echo "$DLLTOOL" >&6; }
11147 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11148 $as_echo "no
" >&6; }
11155 for ncn_progname in dlltool; do
11156 if test -n "$ncn_tool_prefix"; then
11157 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11158 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11160 $as_echo_n "checking
for $ac_word...
" >&6; }
11161 if ${ac_cv_prog_DLLTOOL+:} false; then :
11162 $as_echo_n "(cached
) " >&6
11164 if test -n "$DLLTOOL"; then
11165 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11168 for as_dir in $PATH
11171 test -z "$as_dir" && as_dir=.
11172 for ac_exec_ext in '' $ac_executable_extensions; do
11173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11174 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11175 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11184 DLLTOOL=$ac_cv_prog_DLLTOOL
11185 if test -n "$DLLTOOL"; then
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11187 $as_echo "$DLLTOOL" >&6; }
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11190 $as_echo "no
" >&6; }
11195 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11196 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11197 set dummy ${ncn_progname}; ac_word=$2
11198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11199 $as_echo_n "checking
for $ac_word...
" >&6; }
11200 if ${ac_cv_prog_DLLTOOL+:} false; then :
11201 $as_echo_n "(cached
) " >&6
11203 if test -n "$DLLTOOL"; then
11204 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11207 for as_dir in $PATH
11210 test -z "$as_dir" && as_dir=.
11211 for ac_exec_ext in '' $ac_executable_extensions; do
11212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11213 ac_cv_prog_DLLTOOL="${ncn_progname}"
11214 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11223 DLLTOOL=$ac_cv_prog_DLLTOOL
11224 if test -n "$DLLTOOL"; then
11225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11226 $as_echo "$DLLTOOL" >&6; }
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11229 $as_echo "no
" >&6; }
11234 test -n "$ac_cv_prog_DLLTOOL" && break
11237 if test -z "$ac_cv_prog_DLLTOOL" ; then
11239 if test $build = $host ; then
11242 DLLTOOL="${ncn_tool_prefix}$2"
11248 if test -n "$DSYMUTIL"; then
11249 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11250 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11251 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11254 if test -n "$ac_cv_prog_DSYMUTIL"; then
11255 for ncn_progname in dsymutil; do
11256 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11257 set dummy ${ncn_progname}; ac_word=$2
11258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11259 $as_echo_n "checking
for $ac_word...
" >&6; }
11260 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11261 $as_echo_n "(cached
) " >&6
11263 if test -n "$DSYMUTIL"; then
11264 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11267 for as_dir in $PATH
11270 test -z "$as_dir" && as_dir=.
11271 for ac_exec_ext in '' $ac_executable_extensions; do
11272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11273 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11274 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11283 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11284 if test -n "$DSYMUTIL"; then
11285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11286 $as_echo "$DSYMUTIL" >&6; }
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11289 $as_echo "no
" >&6; }
11296 for ncn_progname in dsymutil; do
11297 if test -n "$ncn_tool_prefix"; then
11298 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11299 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11301 $as_echo_n "checking
for $ac_word...
" >&6; }
11302 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11303 $as_echo_n "(cached
) " >&6
11305 if test -n "$DSYMUTIL"; then
11306 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11309 for as_dir in $PATH
11312 test -z "$as_dir" && as_dir=.
11313 for ac_exec_ext in '' $ac_executable_extensions; do
11314 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11315 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11316 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11325 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11326 if test -n "$DSYMUTIL"; then
11327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11328 $as_echo "$DSYMUTIL" >&6; }
11330 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11331 $as_echo "no
" >&6; }
11336 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11337 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11338 set dummy ${ncn_progname}; ac_word=$2
11339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11340 $as_echo_n "checking
for $ac_word...
" >&6; }
11341 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11342 $as_echo_n "(cached
) " >&6
11344 if test -n "$DSYMUTIL"; then
11345 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11348 for as_dir in $PATH
11351 test -z "$as_dir" && as_dir=.
11352 for ac_exec_ext in '' $ac_executable_extensions; do
11353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11354 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11355 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11364 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11365 if test -n "$DSYMUTIL"; then
11366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11367 $as_echo "$DSYMUTIL" >&6; }
11369 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11370 $as_echo "no
" >&6; }
11375 test -n "$ac_cv_prog_DSYMUTIL" && break
11378 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11380 if test $build = $host ; then
11383 DSYMUTIL="${ncn_tool_prefix}$2"
11389 if test -n "$LD"; then
11391 elif test -n "$ac_cv_prog_LD"; then
11395 if test -n "$ac_cv_prog_LD"; then
11396 for ncn_progname in ld; do
11397 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11398 set dummy ${ncn_progname}; ac_word=$2
11399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11400 $as_echo_n "checking
for $ac_word...
" >&6; }
11401 if ${ac_cv_prog_LD+:} false; then :
11402 $as_echo_n "(cached
) " >&6
11404 if test -n "$LD"; then
11405 ac_cv_prog_LD="$LD" # Let the user override the test.
11407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11408 for as_dir in $PATH
11411 test -z "$as_dir" && as_dir=.
11412 for ac_exec_ext in '' $ac_executable_extensions; do
11413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11414 ac_cv_prog_LD="${ncn_progname}"
11415 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11425 if test -n "$LD"; then
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11427 $as_echo "$LD" >&6; }
11429 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11430 $as_echo "no
" >&6; }
11437 for ncn_progname in ld; do
11438 if test -n "$ncn_tool_prefix"; then
11439 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11440 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11442 $as_echo_n "checking
for $ac_word...
" >&6; }
11443 if ${ac_cv_prog_LD+:} false; then :
11444 $as_echo_n "(cached
) " >&6
11446 if test -n "$LD"; then
11447 ac_cv_prog_LD="$LD" # Let the user override the test.
11449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11450 for as_dir in $PATH
11453 test -z "$as_dir" && as_dir=.
11454 for ac_exec_ext in '' $ac_executable_extensions; do
11455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11456 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11457 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11467 if test -n "$LD"; then
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11469 $as_echo "$LD" >&6; }
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11472 $as_echo "no
" >&6; }
11477 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11478 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11479 set dummy ${ncn_progname}; ac_word=$2
11480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11481 $as_echo_n "checking
for $ac_word...
" >&6; }
11482 if ${ac_cv_prog_LD+:} false; then :
11483 $as_echo_n "(cached
) " >&6
11485 if test -n "$LD"; then
11486 ac_cv_prog_LD="$LD" # Let the user override the test.
11488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11489 for as_dir in $PATH
11492 test -z "$as_dir" && as_dir=.
11493 for ac_exec_ext in '' $ac_executable_extensions; do
11494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11495 ac_cv_prog_LD="${ncn_progname}"
11496 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11506 if test -n "$LD"; then
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11508 $as_echo "$LD" >&6; }
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11511 $as_echo "no
" >&6; }
11516 test -n "$ac_cv_prog_LD" && break
11519 if test -z "$ac_cv_prog_LD" ; then
11521 if test $build = $host ; then
11524 LD="${ncn_tool_prefix}$2"
11530 if test -n "$LIPO"; then
11531 ac_cv_prog_LIPO=$LIPO
11532 elif test -n "$ac_cv_prog_LIPO"; then
11533 LIPO=$ac_cv_prog_LIPO
11536 if test -n "$ac_cv_prog_LIPO"; then
11537 for ncn_progname in lipo; do
11538 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11539 set dummy ${ncn_progname}; ac_word=$2
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11541 $as_echo_n "checking
for $ac_word...
" >&6; }
11542 if ${ac_cv_prog_LIPO+:} false; then :
11543 $as_echo_n "(cached
) " >&6
11545 if test -n "$LIPO"; then
11546 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11549 for as_dir in $PATH
11552 test -z "$as_dir" && as_dir=.
11553 for ac_exec_ext in '' $ac_executable_extensions; do
11554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11555 ac_cv_prog_LIPO="${ncn_progname}"
11556 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11565 LIPO=$ac_cv_prog_LIPO
11566 if test -n "$LIPO"; then
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11568 $as_echo "$LIPO" >&6; }
11570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11571 $as_echo "no
" >&6; }
11578 for ncn_progname in lipo; do
11579 if test -n "$ncn_tool_prefix"; then
11580 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11581 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11583 $as_echo_n "checking
for $ac_word...
" >&6; }
11584 if ${ac_cv_prog_LIPO+:} false; then :
11585 $as_echo_n "(cached
) " >&6
11587 if test -n "$LIPO"; then
11588 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11591 for as_dir in $PATH
11594 test -z "$as_dir" && as_dir=.
11595 for ac_exec_ext in '' $ac_executable_extensions; do
11596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11597 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11598 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11607 LIPO=$ac_cv_prog_LIPO
11608 if test -n "$LIPO"; then
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11610 $as_echo "$LIPO" >&6; }
11612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11613 $as_echo "no
" >&6; }
11618 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11619 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11620 set dummy ${ncn_progname}; ac_word=$2
11621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11622 $as_echo_n "checking
for $ac_word...
" >&6; }
11623 if ${ac_cv_prog_LIPO+:} false; then :
11624 $as_echo_n "(cached
) " >&6
11626 if test -n "$LIPO"; then
11627 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11629 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11630 for as_dir in $PATH
11633 test -z "$as_dir" && as_dir=.
11634 for ac_exec_ext in '' $ac_executable_extensions; do
11635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11636 ac_cv_prog_LIPO="${ncn_progname}"
11637 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11646 LIPO=$ac_cv_prog_LIPO
11647 if test -n "$LIPO"; then
11648 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11649 $as_echo "$LIPO" >&6; }
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11652 $as_echo "no
" >&6; }
11657 test -n "$ac_cv_prog_LIPO" && break
11660 if test -z "$ac_cv_prog_LIPO" ; then
11662 if test $build = $host ; then
11665 LIPO="${ncn_tool_prefix}$2"
11671 if test -n "$NM"; then
11673 elif test -n "$ac_cv_prog_NM"; then
11677 if test -n "$ac_cv_prog_NM"; then
11678 for ncn_progname in nm; do
11679 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11680 set dummy ${ncn_progname}; ac_word=$2
11681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11682 $as_echo_n "checking
for $ac_word...
" >&6; }
11683 if ${ac_cv_prog_NM+:} false; then :
11684 $as_echo_n "(cached
) " >&6
11686 if test -n "$NM"; then
11687 ac_cv_prog_NM="$NM" # Let the user override the test.
11689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11690 for as_dir in $PATH
11693 test -z "$as_dir" && as_dir=.
11694 for ac_exec_ext in '' $ac_executable_extensions; do
11695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11696 ac_cv_prog_NM="${ncn_progname}"
11697 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11707 if test -n "$NM"; then
11708 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11709 $as_echo "$NM" >&6; }
11711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11712 $as_echo "no
" >&6; }
11719 for ncn_progname in nm; do
11720 if test -n "$ncn_tool_prefix"; then
11721 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11722 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11724 $as_echo_n "checking
for $ac_word...
" >&6; }
11725 if ${ac_cv_prog_NM+:} false; then :
11726 $as_echo_n "(cached
) " >&6
11728 if test -n "$NM"; then
11729 ac_cv_prog_NM="$NM" # Let the user override the test.
11731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11732 for as_dir in $PATH
11735 test -z "$as_dir" && as_dir=.
11736 for ac_exec_ext in '' $ac_executable_extensions; do
11737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11738 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11739 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11749 if test -n "$NM"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11751 $as_echo "$NM" >&6; }
11753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11754 $as_echo "no
" >&6; }
11759 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11760 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11761 set dummy ${ncn_progname}; ac_word=$2
11762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11763 $as_echo_n "checking
for $ac_word...
" >&6; }
11764 if ${ac_cv_prog_NM+:} false; then :
11765 $as_echo_n "(cached
) " >&6
11767 if test -n "$NM"; then
11768 ac_cv_prog_NM="$NM" # Let the user override the test.
11770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11771 for as_dir in $PATH
11774 test -z "$as_dir" && as_dir=.
11775 for ac_exec_ext in '' $ac_executable_extensions; do
11776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11777 ac_cv_prog_NM="${ncn_progname}"
11778 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11788 if test -n "$NM"; then
11789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11790 $as_echo "$NM" >&6; }
11792 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11793 $as_echo "no
" >&6; }
11798 test -n "$ac_cv_prog_NM" && break
11801 if test -z "$ac_cv_prog_NM" ; then
11803 if test $build = $host ; then
11806 NM="${ncn_tool_prefix}$2"
11812 if test -n "$RANLIB"; then
11813 ac_cv_prog_RANLIB=$RANLIB
11814 elif test -n "$ac_cv_prog_RANLIB"; then
11815 RANLIB=$ac_cv_prog_RANLIB
11818 if test -n "$ac_cv_prog_RANLIB"; then
11819 for ncn_progname in ranlib; do
11820 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11821 set dummy ${ncn_progname}; ac_word=$2
11822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11823 $as_echo_n "checking
for $ac_word...
" >&6; }
11824 if ${ac_cv_prog_RANLIB+:} false; then :
11825 $as_echo_n "(cached
) " >&6
11827 if test -n "$RANLIB"; then
11828 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11831 for as_dir in $PATH
11834 test -z "$as_dir" && as_dir=.
11835 for ac_exec_ext in '' $ac_executable_extensions; do
11836 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11837 ac_cv_prog_RANLIB="${ncn_progname}"
11838 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11847 RANLIB=$ac_cv_prog_RANLIB
11848 if test -n "$RANLIB"; then
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11850 $as_echo "$RANLIB" >&6; }
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11853 $as_echo "no
" >&6; }
11860 for ncn_progname in ranlib; do
11861 if test -n "$ncn_tool_prefix"; then
11862 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11863 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11865 $as_echo_n "checking
for $ac_word...
" >&6; }
11866 if ${ac_cv_prog_RANLIB+:} false; then :
11867 $as_echo_n "(cached
) " >&6
11869 if test -n "$RANLIB"; then
11870 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11873 for as_dir in $PATH
11876 test -z "$as_dir" && as_dir=.
11877 for ac_exec_ext in '' $ac_executable_extensions; do
11878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11879 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11880 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11889 RANLIB=$ac_cv_prog_RANLIB
11890 if test -n "$RANLIB"; then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11892 $as_echo "$RANLIB" >&6; }
11894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11895 $as_echo "no
" >&6; }
11900 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11901 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11902 set dummy ${ncn_progname}; ac_word=$2
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11904 $as_echo_n "checking
for $ac_word...
" >&6; }
11905 if ${ac_cv_prog_RANLIB+:} false; then :
11906 $as_echo_n "(cached
) " >&6
11908 if test -n "$RANLIB"; then
11909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11912 for as_dir in $PATH
11915 test -z "$as_dir" && as_dir=.
11916 for ac_exec_ext in '' $ac_executable_extensions; do
11917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11918 ac_cv_prog_RANLIB="${ncn_progname}"
11919 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11928 RANLIB=$ac_cv_prog_RANLIB
11929 if test -n "$RANLIB"; then
11930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11931 $as_echo "$RANLIB" >&6; }
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11934 $as_echo "no
" >&6; }
11939 test -n "$ac_cv_prog_RANLIB" && break
11942 if test -z "$ac_cv_prog_RANLIB" ; then
11948 if test -n "$STRIP"; then
11949 ac_cv_prog_STRIP=$STRIP
11950 elif test -n "$ac_cv_prog_STRIP"; then
11951 STRIP=$ac_cv_prog_STRIP
11954 if test -n "$ac_cv_prog_STRIP"; then
11955 for ncn_progname in strip; do
11956 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11957 set dummy ${ncn_progname}; ac_word=$2
11958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11959 $as_echo_n "checking
for $ac_word...
" >&6; }
11960 if ${ac_cv_prog_STRIP+:} false; then :
11961 $as_echo_n "(cached
) " >&6
11963 if test -n "$STRIP"; then
11964 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11967 for as_dir in $PATH
11970 test -z "$as_dir" && as_dir=.
11971 for ac_exec_ext in '' $ac_executable_extensions; do
11972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11973 ac_cv_prog_STRIP="${ncn_progname}"
11974 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11983 STRIP=$ac_cv_prog_STRIP
11984 if test -n "$STRIP"; then
11985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11986 $as_echo "$STRIP" >&6; }
11988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11989 $as_echo "no
" >&6; }
11996 for ncn_progname in strip; do
11997 if test -n "$ncn_tool_prefix"; then
11998 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11999 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12001 $as_echo_n "checking
for $ac_word...
" >&6; }
12002 if ${ac_cv_prog_STRIP+:} false; then :
12003 $as_echo_n "(cached
) " >&6
12005 if test -n "$STRIP"; then
12006 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12009 for as_dir in $PATH
12012 test -z "$as_dir" && as_dir=.
12013 for ac_exec_ext in '' $ac_executable_extensions; do
12014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12015 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12016 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12025 STRIP=$ac_cv_prog_STRIP
12026 if test -n "$STRIP"; then
12027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12028 $as_echo "$STRIP" >&6; }
12030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12031 $as_echo "no
" >&6; }
12036 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12037 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12038 set dummy ${ncn_progname}; ac_word=$2
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12040 $as_echo_n "checking
for $ac_word...
" >&6; }
12041 if ${ac_cv_prog_STRIP+:} false; then :
12042 $as_echo_n "(cached
) " >&6
12044 if test -n "$STRIP"; then
12045 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12048 for as_dir in $PATH
12051 test -z "$as_dir" && as_dir=.
12052 for ac_exec_ext in '' $ac_executable_extensions; do
12053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12054 ac_cv_prog_STRIP="${ncn_progname}"
12055 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12064 STRIP=$ac_cv_prog_STRIP
12065 if test -n "$STRIP"; then
12066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12067 $as_echo "$STRIP" >&6; }
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12070 $as_echo "no
" >&6; }
12075 test -n "$ac_cv_prog_STRIP" && break
12078 if test -z "$ac_cv_prog_STRIP" ; then
12084 if test -n "$WINDRES"; then
12085 ac_cv_prog_WINDRES=$WINDRES
12086 elif test -n "$ac_cv_prog_WINDRES"; then
12087 WINDRES=$ac_cv_prog_WINDRES
12090 if test -n "$ac_cv_prog_WINDRES"; then
12091 for ncn_progname in windres; do
12092 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12093 set dummy ${ncn_progname}; ac_word=$2
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12095 $as_echo_n "checking
for $ac_word...
" >&6; }
12096 if ${ac_cv_prog_WINDRES+:} false; then :
12097 $as_echo_n "(cached
) " >&6
12099 if test -n "$WINDRES"; then
12100 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12102 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12103 for as_dir in $PATH
12106 test -z "$as_dir" && as_dir=.
12107 for ac_exec_ext in '' $ac_executable_extensions; do
12108 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12109 ac_cv_prog_WINDRES="${ncn_progname}"
12110 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12119 WINDRES=$ac_cv_prog_WINDRES
12120 if test -n "$WINDRES"; then
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12122 $as_echo "$WINDRES" >&6; }
12124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12125 $as_echo "no
" >&6; }
12132 for ncn_progname in windres; do
12133 if test -n "$ncn_tool_prefix"; then
12134 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12135 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12137 $as_echo_n "checking
for $ac_word...
" >&6; }
12138 if ${ac_cv_prog_WINDRES+:} false; then :
12139 $as_echo_n "(cached
) " >&6
12141 if test -n "$WINDRES"; then
12142 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12145 for as_dir in $PATH
12148 test -z "$as_dir" && as_dir=.
12149 for ac_exec_ext in '' $ac_executable_extensions; do
12150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12151 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12152 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12161 WINDRES=$ac_cv_prog_WINDRES
12162 if test -n "$WINDRES"; then
12163 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12164 $as_echo "$WINDRES" >&6; }
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12167 $as_echo "no
" >&6; }
12172 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12174 set dummy ${ncn_progname}; ac_word=$2
12175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12176 $as_echo_n "checking
for $ac_word...
" >&6; }
12177 if ${ac_cv_prog_WINDRES+:} false; then :
12178 $as_echo_n "(cached
) " >&6
12180 if test -n "$WINDRES"; then
12181 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12184 for as_dir in $PATH
12187 test -z "$as_dir" && as_dir=.
12188 for ac_exec_ext in '' $ac_executable_extensions; do
12189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12190 ac_cv_prog_WINDRES="${ncn_progname}"
12191 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12200 WINDRES=$ac_cv_prog_WINDRES
12201 if test -n "$WINDRES"; then
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12203 $as_echo "$WINDRES" >&6; }
12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12206 $as_echo "no
" >&6; }
12211 test -n "$ac_cv_prog_WINDRES" && break
12214 if test -z "$ac_cv_prog_WINDRES" ; then
12216 if test $build = $host ; then
12219 WINDRES="${ncn_tool_prefix}$2"
12225 if test -n "$WINDMC"; then
12226 ac_cv_prog_WINDMC=$WINDMC
12227 elif test -n "$ac_cv_prog_WINDMC"; then
12228 WINDMC=$ac_cv_prog_WINDMC
12231 if test -n "$ac_cv_prog_WINDMC"; then
12232 for ncn_progname in windmc; do
12233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12234 set dummy ${ncn_progname}; ac_word=$2
12235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12236 $as_echo_n "checking
for $ac_word...
" >&6; }
12237 if ${ac_cv_prog_WINDMC+:} false; then :
12238 $as_echo_n "(cached
) " >&6
12240 if test -n "$WINDMC"; then
12241 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12244 for as_dir in $PATH
12247 test -z "$as_dir" && as_dir=.
12248 for ac_exec_ext in '' $ac_executable_extensions; do
12249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12250 ac_cv_prog_WINDMC="${ncn_progname}"
12251 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12260 WINDMC=$ac_cv_prog_WINDMC
12261 if test -n "$WINDMC"; then
12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12263 $as_echo "$WINDMC" >&6; }
12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12266 $as_echo "no
" >&6; }
12273 for ncn_progname in windmc; do
12274 if test -n "$ncn_tool_prefix"; then
12275 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12276 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12278 $as_echo_n "checking
for $ac_word...
" >&6; }
12279 if ${ac_cv_prog_WINDMC+:} false; then :
12280 $as_echo_n "(cached
) " >&6
12282 if test -n "$WINDMC"; then
12283 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12285 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12286 for as_dir in $PATH
12289 test -z "$as_dir" && as_dir=.
12290 for ac_exec_ext in '' $ac_executable_extensions; do
12291 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12292 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12293 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12302 WINDMC=$ac_cv_prog_WINDMC
12303 if test -n "$WINDMC"; then
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12305 $as_echo "$WINDMC" >&6; }
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12308 $as_echo "no
" >&6; }
12313 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12314 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12315 set dummy ${ncn_progname}; ac_word=$2
12316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12317 $as_echo_n "checking
for $ac_word...
" >&6; }
12318 if ${ac_cv_prog_WINDMC+:} false; then :
12319 $as_echo_n "(cached
) " >&6
12321 if test -n "$WINDMC"; then
12322 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12325 for as_dir in $PATH
12328 test -z "$as_dir" && as_dir=.
12329 for ac_exec_ext in '' $ac_executable_extensions; do
12330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12331 ac_cv_prog_WINDMC="${ncn_progname}"
12332 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12341 WINDMC=$ac_cv_prog_WINDMC
12342 if test -n "$WINDMC"; then
12343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12344 $as_echo "$WINDMC" >&6; }
12346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12347 $as_echo "no
" >&6; }
12352 test -n "$ac_cv_prog_WINDMC" && break
12355 if test -z "$ac_cv_prog_WINDMC" ; then
12357 if test $build = $host ; then
12360 WINDMC="${ncn_tool_prefix}$2"
12366 if test -n "$OBJCOPY"; then
12367 ac_cv_prog_OBJCOPY=$OBJCOPY
12368 elif test -n "$ac_cv_prog_OBJCOPY"; then
12369 OBJCOPY=$ac_cv_prog_OBJCOPY
12372 if test -n "$ac_cv_prog_OBJCOPY"; then
12373 for ncn_progname in objcopy; do
12374 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12375 set dummy ${ncn_progname}; ac_word=$2
12376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12377 $as_echo_n "checking
for $ac_word...
" >&6; }
12378 if ${ac_cv_prog_OBJCOPY+:} false; then :
12379 $as_echo_n "(cached
) " >&6
12381 if test -n "$OBJCOPY"; then
12382 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385 for as_dir in $PATH
12388 test -z "$as_dir" && as_dir=.
12389 for ac_exec_ext in '' $ac_executable_extensions; do
12390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12391 ac_cv_prog_OBJCOPY="${ncn_progname}"
12392 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12401 OBJCOPY=$ac_cv_prog_OBJCOPY
12402 if test -n "$OBJCOPY"; then
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12404 $as_echo "$OBJCOPY" >&6; }
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12407 $as_echo "no
" >&6; }
12414 for ncn_progname in objcopy; do
12415 if test -n "$ncn_tool_prefix"; then
12416 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12417 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12419 $as_echo_n "checking
for $ac_word...
" >&6; }
12420 if ${ac_cv_prog_OBJCOPY+:} false; then :
12421 $as_echo_n "(cached
) " >&6
12423 if test -n "$OBJCOPY"; then
12424 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12427 for as_dir in $PATH
12430 test -z "$as_dir" && as_dir=.
12431 for ac_exec_ext in '' $ac_executable_extensions; do
12432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12433 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12434 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12443 OBJCOPY=$ac_cv_prog_OBJCOPY
12444 if test -n "$OBJCOPY"; then
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12446 $as_echo "$OBJCOPY" >&6; }
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12449 $as_echo "no
" >&6; }
12454 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12456 set dummy ${ncn_progname}; ac_word=$2
12457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12458 $as_echo_n "checking
for $ac_word...
" >&6; }
12459 if ${ac_cv_prog_OBJCOPY+:} false; then :
12460 $as_echo_n "(cached
) " >&6
12462 if test -n "$OBJCOPY"; then
12463 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12466 for as_dir in $PATH
12469 test -z "$as_dir" && as_dir=.
12470 for ac_exec_ext in '' $ac_executable_extensions; do
12471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12472 ac_cv_prog_OBJCOPY="${ncn_progname}"
12473 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12482 OBJCOPY=$ac_cv_prog_OBJCOPY
12483 if test -n "$OBJCOPY"; then
12484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12485 $as_echo "$OBJCOPY" >&6; }
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12488 $as_echo "no
" >&6; }
12493 test -n "$ac_cv_prog_OBJCOPY" && break
12496 if test -z "$ac_cv_prog_OBJCOPY" ; then
12498 if test $build = $host ; then
12501 OBJCOPY="${ncn_tool_prefix}$2"
12507 if test -n "$OBJDUMP"; then
12508 ac_cv_prog_OBJDUMP=$OBJDUMP
12509 elif test -n "$ac_cv_prog_OBJDUMP"; then
12510 OBJDUMP=$ac_cv_prog_OBJDUMP
12513 if test -n "$ac_cv_prog_OBJDUMP"; then
12514 for ncn_progname in objdump; do
12515 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12516 set dummy ${ncn_progname}; ac_word=$2
12517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12518 $as_echo_n "checking
for $ac_word...
" >&6; }
12519 if ${ac_cv_prog_OBJDUMP+:} false; then :
12520 $as_echo_n "(cached
) " >&6
12522 if test -n "$OBJDUMP"; then
12523 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12526 for as_dir in $PATH
12529 test -z "$as_dir" && as_dir=.
12530 for ac_exec_ext in '' $ac_executable_extensions; do
12531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12532 ac_cv_prog_OBJDUMP="${ncn_progname}"
12533 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12542 OBJDUMP=$ac_cv_prog_OBJDUMP
12543 if test -n "$OBJDUMP"; then
12544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12545 $as_echo "$OBJDUMP" >&6; }
12547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12548 $as_echo "no
" >&6; }
12555 for ncn_progname in objdump; do
12556 if test -n "$ncn_tool_prefix"; then
12557 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12558 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12560 $as_echo_n "checking
for $ac_word...
" >&6; }
12561 if ${ac_cv_prog_OBJDUMP+:} false; then :
12562 $as_echo_n "(cached
) " >&6
12564 if test -n "$OBJDUMP"; then
12565 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12568 for as_dir in $PATH
12571 test -z "$as_dir" && as_dir=.
12572 for ac_exec_ext in '' $ac_executable_extensions; do
12573 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12574 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12575 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12584 OBJDUMP=$ac_cv_prog_OBJDUMP
12585 if test -n "$OBJDUMP"; then
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12587 $as_echo "$OBJDUMP" >&6; }
12589 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12590 $as_echo "no
" >&6; }
12595 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12596 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12597 set dummy ${ncn_progname}; ac_word=$2
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12599 $as_echo_n "checking
for $ac_word...
" >&6; }
12600 if ${ac_cv_prog_OBJDUMP+:} false; then :
12601 $as_echo_n "(cached
) " >&6
12603 if test -n "$OBJDUMP"; then
12604 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12607 for as_dir in $PATH
12610 test -z "$as_dir" && as_dir=.
12611 for ac_exec_ext in '' $ac_executable_extensions; do
12612 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12613 ac_cv_prog_OBJDUMP="${ncn_progname}"
12614 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12623 OBJDUMP=$ac_cv_prog_OBJDUMP
12624 if test -n "$OBJDUMP"; then
12625 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12626 $as_echo "$OBJDUMP" >&6; }
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12629 $as_echo "no
" >&6; }
12634 test -n "$ac_cv_prog_OBJDUMP" && break
12637 if test -z "$ac_cv_prog_OBJDUMP" ; then
12639 if test $build = $host ; then
12642 OBJDUMP="${ncn_tool_prefix}$2"
12648 if test -n "$OTOOL"; then
12649 ac_cv_prog_OTOOL=$OTOOL
12650 elif test -n "$ac_cv_prog_OTOOL"; then
12651 OTOOL=$ac_cv_prog_OTOOL
12654 if test -n "$ac_cv_prog_OTOOL"; then
12655 for ncn_progname in otool; do
12656 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12657 set dummy ${ncn_progname}; ac_word=$2
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12659 $as_echo_n "checking
for $ac_word...
" >&6; }
12660 if ${ac_cv_prog_OTOOL+:} false; then :
12661 $as_echo_n "(cached
) " >&6
12663 if test -n "$OTOOL"; then
12664 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12667 for as_dir in $PATH
12670 test -z "$as_dir" && as_dir=.
12671 for ac_exec_ext in '' $ac_executable_extensions; do
12672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12673 ac_cv_prog_OTOOL="${ncn_progname}"
12674 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12683 OTOOL=$ac_cv_prog_OTOOL
12684 if test -n "$OTOOL"; then
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12686 $as_echo "$OTOOL" >&6; }
12688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12689 $as_echo "no
" >&6; }
12696 for ncn_progname in otool; do
12697 if test -n "$ncn_tool_prefix"; then
12698 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12699 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12701 $as_echo_n "checking
for $ac_word...
" >&6; }
12702 if ${ac_cv_prog_OTOOL+:} false; then :
12703 $as_echo_n "(cached
) " >&6
12705 if test -n "$OTOOL"; then
12706 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12709 for as_dir in $PATH
12712 test -z "$as_dir" && as_dir=.
12713 for ac_exec_ext in '' $ac_executable_extensions; do
12714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12715 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12716 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12725 OTOOL=$ac_cv_prog_OTOOL
12726 if test -n "$OTOOL"; then
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12728 $as_echo "$OTOOL" >&6; }
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12731 $as_echo "no
" >&6; }
12736 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12738 set dummy ${ncn_progname}; ac_word=$2
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12740 $as_echo_n "checking
for $ac_word...
" >&6; }
12741 if ${ac_cv_prog_OTOOL+:} false; then :
12742 $as_echo_n "(cached
) " >&6
12744 if test -n "$OTOOL"; then
12745 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12748 for as_dir in $PATH
12751 test -z "$as_dir" && as_dir=.
12752 for ac_exec_ext in '' $ac_executable_extensions; do
12753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12754 ac_cv_prog_OTOOL="${ncn_progname}"
12755 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12764 OTOOL=$ac_cv_prog_OTOOL
12765 if test -n "$OTOOL"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12767 $as_echo "$OTOOL" >&6; }
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12770 $as_echo "no
" >&6; }
12775 test -n "$ac_cv_prog_OTOOL" && break
12778 if test -z "$ac_cv_prog_OTOOL" ; then
12780 if test $build = $host ; then
12783 OTOOL="${ncn_tool_prefix}$2"
12789 if test -n "$READELF"; then
12790 ac_cv_prog_READELF=$READELF
12791 elif test -n "$ac_cv_prog_READELF"; then
12792 READELF=$ac_cv_prog_READELF
12795 if test -n "$ac_cv_prog_READELF"; then
12796 for ncn_progname in readelf; do
12797 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12798 set dummy ${ncn_progname}; ac_word=$2
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12800 $as_echo_n "checking
for $ac_word...
" >&6; }
12801 if ${ac_cv_prog_READELF+:} false; then :
12802 $as_echo_n "(cached
) " >&6
12804 if test -n "$READELF"; then
12805 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12808 for as_dir in $PATH
12811 test -z "$as_dir" && as_dir=.
12812 for ac_exec_ext in '' $ac_executable_extensions; do
12813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12814 ac_cv_prog_READELF="${ncn_progname}"
12815 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12824 READELF=$ac_cv_prog_READELF
12825 if test -n "$READELF"; then
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12827 $as_echo "$READELF" >&6; }
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12830 $as_echo "no
" >&6; }
12837 for ncn_progname in readelf; do
12838 if test -n "$ncn_tool_prefix"; then
12839 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12840 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12842 $as_echo_n "checking
for $ac_word...
" >&6; }
12843 if ${ac_cv_prog_READELF+:} false; then :
12844 $as_echo_n "(cached
) " >&6
12846 if test -n "$READELF"; then
12847 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12850 for as_dir in $PATH
12853 test -z "$as_dir" && as_dir=.
12854 for ac_exec_ext in '' $ac_executable_extensions; do
12855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12856 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12857 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12866 READELF=$ac_cv_prog_READELF
12867 if test -n "$READELF"; then
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12869 $as_echo "$READELF" >&6; }
12871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12872 $as_echo "no
" >&6; }
12877 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12878 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12879 set dummy ${ncn_progname}; ac_word=$2
12880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12881 $as_echo_n "checking
for $ac_word...
" >&6; }
12882 if ${ac_cv_prog_READELF+:} false; then :
12883 $as_echo_n "(cached
) " >&6
12885 if test -n "$READELF"; then
12886 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12889 for as_dir in $PATH
12892 test -z "$as_dir" && as_dir=.
12893 for ac_exec_ext in '' $ac_executable_extensions; do
12894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12895 ac_cv_prog_READELF="${ncn_progname}"
12896 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12905 READELF=$ac_cv_prog_READELF
12906 if test -n "$READELF"; then
12907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12908 $as_echo "$READELF" >&6; }
12910 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12911 $as_echo "no
" >&6; }
12916 test -n "$ac_cv_prog_READELF" && break
12919 if test -z "$ac_cv_prog_READELF" ; then
12921 if test $build = $host ; then
12924 READELF="${ncn_tool_prefix}$2"
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
12936 $as_echo_n "checking
for -plugin option...
" >&6; }
12938 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
12940 for plugin in $plugin_names; do
12941 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
12942 if test x$plugin_so = x$plugin; then
12943 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
12945 if test x$plugin_so != x$plugin; then
12946 plugin_option="--plugin $plugin_so"
12950 if test -n "$ac_tool_prefix"; then
12951 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12952 set dummy ${ac_tool_prefix}ar; ac_word=$2
12953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12954 $as_echo_n "checking
for $ac_word...
" >&6; }
12955 if ${ac_cv_prog_AR+:} false; then :
12956 $as_echo_n "(cached
) " >&6
12958 if test -n "$AR"; then
12959 ac_cv_prog_AR="$AR" # Let the user override the test.
12961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962 for as_dir in $PATH
12965 test -z "$as_dir" && as_dir=.
12966 for ac_exec_ext in '' $ac_executable_extensions; do
12967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12968 ac_cv_prog_AR="${ac_tool_prefix}ar"
12969 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12979 if test -n "$AR"; then
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12981 $as_echo "$AR" >&6; }
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12984 $as_echo "no
" >&6; }
12989 if test -z "$ac_cv_prog_AR"; then
12991 # Extract the first word of "ar", so it can be a program name with args.
12992 set dummy ar; ac_word=$2
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12994 $as_echo_n "checking
for $ac_word...
" >&6; }
12995 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12996 $as_echo_n "(cached
) " >&6
12998 if test -n "$ac_ct_AR"; then
12999 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13002 for as_dir in $PATH
13005 test -z "$as_dir" && as_dir=.
13006 for ac_exec_ext in '' $ac_executable_extensions; do
13007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13008 ac_cv_prog_ac_ct_AR="ar"
13009 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13018 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13019 if test -n "$ac_ct_AR"; then
13020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13021 $as_echo "$ac_ct_AR" >&6; }
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13024 $as_echo "no
" >&6; }
13027 if test "x
$ac_ct_AR" = x; then
13030 case $cross_compiling:$ac_tool_warned in
13032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13033 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13034 ac_tool_warned=yes ;;
13039 AR="$ac_cv_prog_AR"
13042 if test "${AR}" = "" ; then
13043 as_fn_error $? "Required archive tool
'ar' not found on PATH.
" "$LINENO" 5
13046 ${AR} $plugin_option rc conftest.a conftest.c
13047 if test "$?
" != 0; then
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
13049 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
13053 if test -n "$plugin_option"; then
13054 PLUGIN_OPTION="$plugin_option"
13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
13056 $as_echo "$plugin_option" >&6; }
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13059 $as_echo "no
" >&6; }
13063 RANLIB_PLUGIN_OPTION=
13064 if test -n "$PLUGIN_OPTION"; then
13065 if $AR --help 2>&1 | grep -q "\
--plugin"; then
13066 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13068 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
13069 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13077 # Check whether --with-build-time-tools was given.
13078 if test "${with_build_time_tools+set}" = set; then :
13079 withval=$with_build_time_tools; case x"$withval" in
13082 with_build_time_tools=
13083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
13084 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
13088 with_build_time_tools=
13094 if test -n "$CC_FOR_TARGET"; then
13095 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13096 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13097 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13100 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13101 for ncn_progname in cc gcc; do
13102 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13103 set dummy ${ncn_progname}; ac_word=$2
13104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13105 $as_echo_n "checking
for $ac_word...
" >&6; }
13106 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13107 $as_echo_n "(cached
) " >&6
13109 if test -n "$CC_FOR_TARGET"; then
13110 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13113 for as_dir in $PATH
13116 test -z "$as_dir" && as_dir=.
13117 for ac_exec_ext in '' $ac_executable_extensions; do
13118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13119 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13120 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13129 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13130 if test -n "$CC_FOR_TARGET"; then
13131 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13132 $as_echo "$CC_FOR_TARGET" >&6; }
13134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13135 $as_echo "no
" >&6; }
13142 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13143 for ncn_progname in cc gcc; do
13144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13145 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13146 if test -x $with_build_time_tools/${ncn_progname}; then
13147 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13149 $as_echo "yes" >&6; }
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13153 $as_echo "no
" >&6; }
13158 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13159 for ncn_progname in cc gcc; do
13160 if test -n "$ncn_target_tool_prefix"; then
13161 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13162 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13164 $as_echo_n "checking
for $ac_word...
" >&6; }
13165 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13166 $as_echo_n "(cached
) " >&6
13168 if test -n "$CC_FOR_TARGET"; then
13169 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13172 for as_dir in $PATH
13175 test -z "$as_dir" && as_dir=.
13176 for ac_exec_ext in '' $ac_executable_extensions; do
13177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13178 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13179 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13188 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13189 if test -n "$CC_FOR_TARGET"; then
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13191 $as_echo "$CC_FOR_TARGET" >&6; }
13193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13194 $as_echo "no
" >&6; }
13199 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13200 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13201 set dummy ${ncn_progname}; ac_word=$2
13202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13203 $as_echo_n "checking
for $ac_word...
" >&6; }
13204 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13205 $as_echo_n "(cached
) " >&6
13207 if test -n "$CC_FOR_TARGET"; then
13208 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211 for as_dir in $PATH
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
13216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13217 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13218 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13227 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13228 if test -n "$CC_FOR_TARGET"; then
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13230 $as_echo "$CC_FOR_TARGET" >&6; }
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13233 $as_echo "no
" >&6; }
13238 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13242 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13244 if test $build = $target ; then
13247 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13250 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13255 if test -n "$CXX_FOR_TARGET"; then
13256 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13257 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13258 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13261 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13262 for ncn_progname in c++ g++ cxx gxx; do
13263 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13264 set dummy ${ncn_progname}; ac_word=$2
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13266 $as_echo_n "checking
for $ac_word...
" >&6; }
13267 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13268 $as_echo_n "(cached
) " >&6
13270 if test -n "$CXX_FOR_TARGET"; then
13271 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13274 for as_dir in $PATH
13277 test -z "$as_dir" && as_dir=.
13278 for ac_exec_ext in '' $ac_executable_extensions; do
13279 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13280 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13281 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13290 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13291 if test -n "$CXX_FOR_TARGET"; then
13292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13293 $as_echo "$CXX_FOR_TARGET" >&6; }
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13296 $as_echo "no
" >&6; }
13303 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13304 for ncn_progname in c++ g++ cxx gxx; do
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13306 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13307 if test -x $with_build_time_tools/${ncn_progname}; then
13308 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13310 $as_echo "yes" >&6; }
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13314 $as_echo "no
" >&6; }
13319 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13320 for ncn_progname in c++ g++ cxx gxx; do
13321 if test -n "$ncn_target_tool_prefix"; then
13322 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13323 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13325 $as_echo_n "checking
for $ac_word...
" >&6; }
13326 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13327 $as_echo_n "(cached
) " >&6
13329 if test -n "$CXX_FOR_TARGET"; then
13330 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13333 for as_dir in $PATH
13336 test -z "$as_dir" && as_dir=.
13337 for ac_exec_ext in '' $ac_executable_extensions; do
13338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13339 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13340 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13349 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13350 if test -n "$CXX_FOR_TARGET"; then
13351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13352 $as_echo "$CXX_FOR_TARGET" >&6; }
13354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13355 $as_echo "no
" >&6; }
13360 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13361 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13362 set dummy ${ncn_progname}; ac_word=$2
13363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13364 $as_echo_n "checking
for $ac_word...
" >&6; }
13365 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13366 $as_echo_n "(cached
) " >&6
13368 if test -n "$CXX_FOR_TARGET"; then
13369 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13372 for as_dir in $PATH
13375 test -z "$as_dir" && as_dir=.
13376 for ac_exec_ext in '' $ac_executable_extensions; do
13377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13378 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13379 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13388 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13389 if test -n "$CXX_FOR_TARGET"; then
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13391 $as_echo "$CXX_FOR_TARGET" >&6; }
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13394 $as_echo "no
" >&6; }
13399 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13403 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13404 set dummy c++ g++ cxx gxx
13405 if test $build = $target ; then
13406 CXX_FOR_TARGET="$2"
13408 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13411 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13416 if test -n "$GCC_FOR_TARGET"; then
13417 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13418 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13419 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13422 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13423 for ncn_progname in gcc; do
13424 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13425 set dummy ${ncn_progname}; ac_word=$2
13426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13427 $as_echo_n "checking
for $ac_word...
" >&6; }
13428 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13429 $as_echo_n "(cached
) " >&6
13431 if test -n "$GCC_FOR_TARGET"; then
13432 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435 for as_dir in $PATH
13438 test -z "$as_dir" && as_dir=.
13439 for ac_exec_ext in '' $ac_executable_extensions; do
13440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13441 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13442 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13451 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13452 if test -n "$GCC_FOR_TARGET"; then
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13454 $as_echo "$GCC_FOR_TARGET" >&6; }
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13457 $as_echo "no
" >&6; }
13464 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13465 for ncn_progname in gcc; do
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13467 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13468 if test -x $with_build_time_tools/${ncn_progname}; then
13469 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13470 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13471 $as_echo "yes" >&6; }
13474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13475 $as_echo "no
" >&6; }
13480 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13481 for ncn_progname in gcc; do
13482 if test -n "$ncn_target_tool_prefix"; then
13483 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13484 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13486 $as_echo_n "checking
for $ac_word...
" >&6; }
13487 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13488 $as_echo_n "(cached
) " >&6
13490 if test -n "$GCC_FOR_TARGET"; then
13491 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13494 for as_dir in $PATH
13497 test -z "$as_dir" && as_dir=.
13498 for ac_exec_ext in '' $ac_executable_extensions; do
13499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13500 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13501 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13510 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13511 if test -n "$GCC_FOR_TARGET"; then
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13513 $as_echo "$GCC_FOR_TARGET" >&6; }
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13516 $as_echo "no
" >&6; }
13521 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13522 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13523 set dummy ${ncn_progname}; ac_word=$2
13524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13525 $as_echo_n "checking
for $ac_word...
" >&6; }
13526 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13527 $as_echo_n "(cached
) " >&6
13529 if test -n "$GCC_FOR_TARGET"; then
13530 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13533 for as_dir in $PATH
13536 test -z "$as_dir" && as_dir=.
13537 for ac_exec_ext in '' $ac_executable_extensions; do
13538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13539 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13540 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13549 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13550 if test -n "$GCC_FOR_TARGET"; then
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13552 $as_echo "$GCC_FOR_TARGET" >&6; }
13554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13555 $as_echo "no
" >&6; }
13560 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13564 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13565 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13567 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13572 if test -n "$GFORTRAN_FOR_TARGET"; then
13573 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13574 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13575 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13578 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13579 for ncn_progname in gfortran; do
13580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13581 set dummy ${ncn_progname}; ac_word=$2
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13583 $as_echo_n "checking
for $ac_word...
" >&6; }
13584 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13585 $as_echo_n "(cached
) " >&6
13587 if test -n "$GFORTRAN_FOR_TARGET"; then
13588 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13591 for as_dir in $PATH
13594 test -z "$as_dir" && as_dir=.
13595 for ac_exec_ext in '' $ac_executable_extensions; do
13596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13597 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13598 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13607 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13608 if test -n "$GFORTRAN_FOR_TARGET"; then
13609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13610 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13613 $as_echo "no
" >&6; }
13620 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13621 for ncn_progname in gfortran; do
13622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13623 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13624 if test -x $with_build_time_tools/${ncn_progname}; then
13625 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13627 $as_echo "yes" >&6; }
13630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13631 $as_echo "no
" >&6; }
13636 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13637 for ncn_progname in gfortran; do
13638 if test -n "$ncn_target_tool_prefix"; then
13639 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13640 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13642 $as_echo_n "checking
for $ac_word...
" >&6; }
13643 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13644 $as_echo_n "(cached
) " >&6
13646 if test -n "$GFORTRAN_FOR_TARGET"; then
13647 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13650 for as_dir in $PATH
13653 test -z "$as_dir" && as_dir=.
13654 for ac_exec_ext in '' $ac_executable_extensions; do
13655 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13656 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13657 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13666 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13667 if test -n "$GFORTRAN_FOR_TARGET"; then
13668 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13669 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13672 $as_echo "no
" >&6; }
13677 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13678 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13679 set dummy ${ncn_progname}; ac_word=$2
13680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13681 $as_echo_n "checking
for $ac_word...
" >&6; }
13682 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13683 $as_echo_n "(cached
) " >&6
13685 if test -n "$GFORTRAN_FOR_TARGET"; then
13686 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13688 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13689 for as_dir in $PATH
13692 test -z "$as_dir" && as_dir=.
13693 for ac_exec_ext in '' $ac_executable_extensions; do
13694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13695 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13696 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13705 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13706 if test -n "$GFORTRAN_FOR_TARGET"; then
13707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13708 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13711 $as_echo "no
" >&6; }
13716 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13720 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13722 if test $build = $target ; then
13723 GFORTRAN_FOR_TARGET="$2"
13725 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13728 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13733 if test -n "$GOC_FOR_TARGET"; then
13734 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13735 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13736 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13739 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13740 for ncn_progname in gccgo; do
13741 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13742 set dummy ${ncn_progname}; ac_word=$2
13743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13744 $as_echo_n "checking
for $ac_word...
" >&6; }
13745 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13746 $as_echo_n "(cached
) " >&6
13748 if test -n "$GOC_FOR_TARGET"; then
13749 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13752 for as_dir in $PATH
13755 test -z "$as_dir" && as_dir=.
13756 for ac_exec_ext in '' $ac_executable_extensions; do
13757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13758 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13759 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13768 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13769 if test -n "$GOC_FOR_TARGET"; then
13770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13771 $as_echo "$GOC_FOR_TARGET" >&6; }
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13774 $as_echo "no
" >&6; }
13781 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13782 for ncn_progname in gccgo; do
13783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13784 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13785 if test -x $with_build_time_tools/${ncn_progname}; then
13786 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13788 $as_echo "yes" >&6; }
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13792 $as_echo "no
" >&6; }
13797 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13798 for ncn_progname in gccgo; do
13799 if test -n "$ncn_target_tool_prefix"; then
13800 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13801 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13803 $as_echo_n "checking
for $ac_word...
" >&6; }
13804 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13805 $as_echo_n "(cached
) " >&6
13807 if test -n "$GOC_FOR_TARGET"; then
13808 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13811 for as_dir in $PATH
13814 test -z "$as_dir" && as_dir=.
13815 for ac_exec_ext in '' $ac_executable_extensions; do
13816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13817 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13818 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13827 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13828 if test -n "$GOC_FOR_TARGET"; then
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13830 $as_echo "$GOC_FOR_TARGET" >&6; }
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13833 $as_echo "no
" >&6; }
13838 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13840 set dummy ${ncn_progname}; ac_word=$2
13841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13842 $as_echo_n "checking
for $ac_word...
" >&6; }
13843 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13844 $as_echo_n "(cached
) " >&6
13846 if test -n "$GOC_FOR_TARGET"; then
13847 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13850 for as_dir in $PATH
13853 test -z "$as_dir" && as_dir=.
13854 for ac_exec_ext in '' $ac_executable_extensions; do
13855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13856 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13857 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13866 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13867 if test -n "$GOC_FOR_TARGET"; then
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13869 $as_echo "$GOC_FOR_TARGET" >&6; }
13871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13872 $as_echo "no
" >&6; }
13877 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13881 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13883 if test $build = $target ; then
13884 GOC_FOR_TARGET="$2"
13886 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13889 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13894 if test -n "$GDC_FOR_TARGET"; then
13895 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13896 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13897 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13900 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13901 for ncn_progname in gdc; do
13902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13903 set dummy ${ncn_progname}; ac_word=$2
13904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13905 $as_echo_n "checking
for $ac_word...
" >&6; }
13906 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13907 $as_echo_n "(cached
) " >&6
13909 if test -n "$GDC_FOR_TARGET"; then
13910 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13913 for as_dir in $PATH
13916 test -z "$as_dir" && as_dir=.
13917 for ac_exec_ext in '' $ac_executable_extensions; do
13918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13919 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13920 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13929 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13930 if test -n "$GDC_FOR_TARGET"; then
13931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13932 $as_echo "$GDC_FOR_TARGET" >&6; }
13934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13935 $as_echo "no
" >&6; }
13942 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13943 for ncn_progname in gdc; do
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13945 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13946 if test -x $with_build_time_tools/${ncn_progname}; then
13947 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13949 $as_echo "yes" >&6; }
13952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13953 $as_echo "no
" >&6; }
13958 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13959 for ncn_progname in gdc; do
13960 if test -n "$ncn_target_tool_prefix"; then
13961 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13962 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13964 $as_echo_n "checking
for $ac_word...
" >&6; }
13965 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13966 $as_echo_n "(cached
) " >&6
13968 if test -n "$GDC_FOR_TARGET"; then
13969 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13972 for as_dir in $PATH
13975 test -z "$as_dir" && as_dir=.
13976 for ac_exec_ext in '' $ac_executable_extensions; do
13977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13978 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13979 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13988 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13989 if test -n "$GDC_FOR_TARGET"; then
13990 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13991 $as_echo "$GDC_FOR_TARGET" >&6; }
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13994 $as_echo "no
" >&6; }
13999 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14000 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14001 set dummy ${ncn_progname}; ac_word=$2
14002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14003 $as_echo_n "checking
for $ac_word...
" >&6; }
14004 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14005 $as_echo_n "(cached
) " >&6
14007 if test -n "$GDC_FOR_TARGET"; then
14008 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14011 for as_dir in $PATH
14014 test -z "$as_dir" && as_dir=.
14015 for ac_exec_ext in '' $ac_executable_extensions; do
14016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14017 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14018 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14027 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14028 if test -n "$GDC_FOR_TARGET"; then
14029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14030 $as_echo "$GDC_FOR_TARGET" >&6; }
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14033 $as_echo "no
" >&6; }
14038 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14042 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14044 if test $build = $target ; then
14045 GDC_FOR_TARGET="$2"
14047 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14050 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14055 cat > conftest.c << \EOF
14060 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14061 have_gcc_for_target=yes
14063 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14064 have_gcc_for_target=no
14071 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14072 if test -n "$with_build_time_tools"; then
14073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
14074 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
14075 if test -x $with_build_time_tools/ar; then
14076 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14077 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
14079 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14081 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14082 $as_echo "no
" >&6; }
14084 elif test $build != $host && test $have_gcc_for_target = yes; then
14085 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14086 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14087 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14090 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14091 # Extract the first word of "ar", so it can be a program name with args.
14092 set dummy ar; ac_word=$2
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14094 $as_echo_n "checking
for $ac_word...
" >&6; }
14095 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14096 $as_echo_n "(cached
) " >&6
14098 case $AR_FOR_TARGET in
14100 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14104 for as_dir in $gcc_cv_tool_dirs
14107 test -z "$as_dir" && as_dir=.
14108 for ac_exec_ext in '' $ac_executable_extensions; do
14109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14110 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14111 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14121 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14122 if test -n "$AR_FOR_TARGET"; then
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14124 $as_echo "$AR_FOR_TARGET" >&6; }
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14127 $as_echo "no
" >&6; }
14132 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14135 if test -n "$AR_FOR_TARGET"; then
14136 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14137 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14138 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14141 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14142 for ncn_progname in ar; do
14143 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14144 set dummy ${ncn_progname}; ac_word=$2
14145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14146 $as_echo_n "checking
for $ac_word...
" >&6; }
14147 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14148 $as_echo_n "(cached
) " >&6
14150 if test -n "$AR_FOR_TARGET"; then
14151 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14154 for as_dir in $PATH
14157 test -z "$as_dir" && as_dir=.
14158 for ac_exec_ext in '' $ac_executable_extensions; do
14159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14160 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14161 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14170 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14171 if test -n "$AR_FOR_TARGET"; then
14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14173 $as_echo "$AR_FOR_TARGET" >&6; }
14175 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14176 $as_echo "no
" >&6; }
14183 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14184 for ncn_progname in ar; do
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14186 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14187 if test -x $with_build_time_tools/${ncn_progname}; then
14188 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14189 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14190 $as_echo "yes" >&6; }
14193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14194 $as_echo "no
" >&6; }
14199 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14200 for ncn_progname in ar; do
14201 if test -n "$ncn_target_tool_prefix"; then
14202 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14203 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14205 $as_echo_n "checking
for $ac_word...
" >&6; }
14206 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14207 $as_echo_n "(cached
) " >&6
14209 if test -n "$AR_FOR_TARGET"; then
14210 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14213 for as_dir in $PATH
14216 test -z "$as_dir" && as_dir=.
14217 for ac_exec_ext in '' $ac_executable_extensions; do
14218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14219 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14220 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14229 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14230 if test -n "$AR_FOR_TARGET"; then
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14232 $as_echo "$AR_FOR_TARGET" >&6; }
14234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14235 $as_echo "no
" >&6; }
14240 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14241 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14242 set dummy ${ncn_progname}; ac_word=$2
14243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14244 $as_echo_n "checking
for $ac_word...
" >&6; }
14245 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14246 $as_echo_n "(cached
) " >&6
14248 if test -n "$AR_FOR_TARGET"; then
14249 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14252 for as_dir in $PATH
14255 test -z "$as_dir" && as_dir=.
14256 for ac_exec_ext in '' $ac_executable_extensions; do
14257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14258 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14259 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14268 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14269 if test -n "$AR_FOR_TARGET"; then
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14271 $as_echo "$AR_FOR_TARGET" >&6; }
14273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14274 $as_echo "no
" >&6; }
14279 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14283 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14285 if test $build = $target ; then
14288 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14291 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14295 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14301 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14302 if test -n "$with_build_time_tools"; then
14303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14304 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14305 if test -x $with_build_time_tools/as; then
14306 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14307 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14309 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14312 $as_echo "no
" >&6; }
14314 elif test $build != $host && test $have_gcc_for_target = yes; then
14315 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14316 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14317 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14320 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14321 # Extract the first word of "as
", so it can be a program name with args.
14322 set dummy as; ac_word=$2
14323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14324 $as_echo_n "checking
for $ac_word...
" >&6; }
14325 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14326 $as_echo_n "(cached
) " >&6
14328 case $AS_FOR_TARGET in
14330 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14334 for as_dir in $gcc_cv_tool_dirs
14337 test -z "$as_dir" && as_dir=.
14338 for ac_exec_ext in '' $ac_executable_extensions; do
14339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14340 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14341 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14351 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14352 if test -n "$AS_FOR_TARGET"; then
14353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14354 $as_echo "$AS_FOR_TARGET" >&6; }
14356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14357 $as_echo "no
" >&6; }
14362 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14365 if test -n "$AS_FOR_TARGET"; then
14366 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14367 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14368 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14371 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14372 for ncn_progname in as; do
14373 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14374 set dummy ${ncn_progname}; ac_word=$2
14375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14376 $as_echo_n "checking
for $ac_word...
" >&6; }
14377 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14378 $as_echo_n "(cached
) " >&6
14380 if test -n "$AS_FOR_TARGET"; then
14381 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14384 for as_dir in $PATH
14387 test -z "$as_dir" && as_dir=.
14388 for ac_exec_ext in '' $ac_executable_extensions; do
14389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14390 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14391 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14400 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14401 if test -n "$AS_FOR_TARGET"; then
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14403 $as_echo "$AS_FOR_TARGET" >&6; }
14405 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14406 $as_echo "no
" >&6; }
14413 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14414 for ncn_progname in as; do
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14416 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14417 if test -x $with_build_time_tools/${ncn_progname}; then
14418 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14420 $as_echo "yes" >&6; }
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14424 $as_echo "no
" >&6; }
14429 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14430 for ncn_progname in as; do
14431 if test -n "$ncn_target_tool_prefix"; then
14432 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14433 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14435 $as_echo_n "checking
for $ac_word...
" >&6; }
14436 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14437 $as_echo_n "(cached
) " >&6
14439 if test -n "$AS_FOR_TARGET"; then
14440 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14443 for as_dir in $PATH
14446 test -z "$as_dir" && as_dir=.
14447 for ac_exec_ext in '' $ac_executable_extensions; do
14448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14449 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14450 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14459 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14460 if test -n "$AS_FOR_TARGET"; then
14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14462 $as_echo "$AS_FOR_TARGET" >&6; }
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14465 $as_echo "no
" >&6; }
14470 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14472 set dummy ${ncn_progname}; ac_word=$2
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14474 $as_echo_n "checking
for $ac_word...
" >&6; }
14475 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14476 $as_echo_n "(cached
) " >&6
14478 if test -n "$AS_FOR_TARGET"; then
14479 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14482 for as_dir in $PATH
14485 test -z "$as_dir" && as_dir=.
14486 for ac_exec_ext in '' $ac_executable_extensions; do
14487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14488 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14489 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14498 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14499 if test -n "$AS_FOR_TARGET"; then
14500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14501 $as_echo "$AS_FOR_TARGET" >&6; }
14503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14504 $as_echo "no
" >&6; }
14509 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14513 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14515 if test $build = $target ; then
14518 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14521 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14525 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14531 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14532 if test -n "$with_build_time_tools"; then
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14534 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14535 if test -x $with_build_time_tools/dlltool; then
14536 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14537 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14539 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14541 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14542 $as_echo "no
" >&6; }
14544 elif test $build != $host && test $have_gcc_for_target = yes; then
14545 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14546 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14547 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14550 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14551 # Extract the first word of "dlltool
", so it can be a program name with args.
14552 set dummy dlltool; ac_word=$2
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14554 $as_echo_n "checking
for $ac_word...
" >&6; }
14555 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14556 $as_echo_n "(cached
) " >&6
14558 case $DLLTOOL_FOR_TARGET in
14560 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14564 for as_dir in $gcc_cv_tool_dirs
14567 test -z "$as_dir" && as_dir=.
14568 for ac_exec_ext in '' $ac_executable_extensions; do
14569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14570 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14571 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14581 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14582 if test -n "$DLLTOOL_FOR_TARGET"; then
14583 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14584 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14587 $as_echo "no
" >&6; }
14592 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14595 if test -n "$DLLTOOL_FOR_TARGET"; then
14596 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14597 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14598 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14601 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14602 for ncn_progname in dlltool; do
14603 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14604 set dummy ${ncn_progname}; ac_word=$2
14605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14606 $as_echo_n "checking
for $ac_word...
" >&6; }
14607 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14608 $as_echo_n "(cached
) " >&6
14610 if test -n "$DLLTOOL_FOR_TARGET"; then
14611 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14614 for as_dir in $PATH
14617 test -z "$as_dir" && as_dir=.
14618 for ac_exec_ext in '' $ac_executable_extensions; do
14619 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14620 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14621 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14630 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14631 if test -n "$DLLTOOL_FOR_TARGET"; then
14632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14633 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14636 $as_echo "no
" >&6; }
14643 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14644 for ncn_progname in dlltool; do
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14646 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14647 if test -x $with_build_time_tools/${ncn_progname}; then
14648 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14650 $as_echo "yes" >&6; }
14653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14654 $as_echo "no
" >&6; }
14659 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14660 for ncn_progname in dlltool; do
14661 if test -n "$ncn_target_tool_prefix"; then
14662 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14663 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14665 $as_echo_n "checking
for $ac_word...
" >&6; }
14666 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14667 $as_echo_n "(cached
) " >&6
14669 if test -n "$DLLTOOL_FOR_TARGET"; then
14670 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14673 for as_dir in $PATH
14676 test -z "$as_dir" && as_dir=.
14677 for ac_exec_ext in '' $ac_executable_extensions; do
14678 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14679 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14680 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14689 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14690 if test -n "$DLLTOOL_FOR_TARGET"; then
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14692 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14694 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14695 $as_echo "no
" >&6; }
14700 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14701 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14702 set dummy ${ncn_progname}; ac_word=$2
14703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14704 $as_echo_n "checking
for $ac_word...
" >&6; }
14705 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14706 $as_echo_n "(cached
) " >&6
14708 if test -n "$DLLTOOL_FOR_TARGET"; then
14709 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14712 for as_dir in $PATH
14715 test -z "$as_dir" && as_dir=.
14716 for ac_exec_ext in '' $ac_executable_extensions; do
14717 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14718 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14719 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14728 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14729 if test -n "$DLLTOOL_FOR_TARGET"; then
14730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14731 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14734 $as_echo "no
" >&6; }
14739 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14743 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14745 if test $build = $target ; then
14746 DLLTOOL_FOR_TARGET="$2"
14748 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14751 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14755 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14761 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14762 if test -n "$with_build_time_tools"; then
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
14764 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
14765 if test -x $with_build_time_tools/dsymutil; then
14766 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14767 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14769 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14772 $as_echo "no
" >&6; }
14774 elif test $build != $host && test $have_gcc_for_target = yes; then
14775 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14776 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14777 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14780 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14781 # Extract the first word of "dsymutil
", so it can be a program name with args.
14782 set dummy dsymutil; ac_word=$2
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14784 $as_echo_n "checking
for $ac_word...
" >&6; }
14785 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14786 $as_echo_n "(cached
) " >&6
14788 case $DSYMUTIL_FOR_TARGET in
14790 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14794 for as_dir in $gcc_cv_tool_dirs
14797 test -z "$as_dir" && as_dir=.
14798 for ac_exec_ext in '' $ac_executable_extensions; do
14799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14800 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14801 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14811 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14812 if test -n "$DSYMUTIL_FOR_TARGET"; then
14813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14814 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14817 $as_echo "no
" >&6; }
14822 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14825 if test -n "$DSYMUTIL_FOR_TARGET"; then
14826 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14827 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14828 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14831 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14832 for ncn_progname in dsymutil; do
14833 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14834 set dummy ${ncn_progname}; ac_word=$2
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14836 $as_echo_n "checking
for $ac_word...
" >&6; }
14837 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14838 $as_echo_n "(cached
) " >&6
14840 if test -n "$DSYMUTIL_FOR_TARGET"; then
14841 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14844 for as_dir in $PATH
14847 test -z "$as_dir" && as_dir=.
14848 for ac_exec_ext in '' $ac_executable_extensions; do
14849 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14850 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14851 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14860 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14861 if test -n "$DSYMUTIL_FOR_TARGET"; then
14862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14863 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14866 $as_echo "no
" >&6; }
14873 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14874 for ncn_progname in dsymutil; do
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14876 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14877 if test -x $with_build_time_tools/${ncn_progname}; then
14878 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14879 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14880 $as_echo "yes" >&6; }
14883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14884 $as_echo "no
" >&6; }
14889 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14890 for ncn_progname in dsymutil; do
14891 if test -n "$ncn_target_tool_prefix"; then
14892 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14893 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14895 $as_echo_n "checking
for $ac_word...
" >&6; }
14896 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14897 $as_echo_n "(cached
) " >&6
14899 if test -n "$DSYMUTIL_FOR_TARGET"; then
14900 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14903 for as_dir in $PATH
14906 test -z "$as_dir" && as_dir=.
14907 for ac_exec_ext in '' $ac_executable_extensions; do
14908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14909 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14910 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14919 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14920 if test -n "$DSYMUTIL_FOR_TARGET"; then
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14922 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14924 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14925 $as_echo "no
" >&6; }
14930 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14931 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14932 set dummy ${ncn_progname}; ac_word=$2
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14934 $as_echo_n "checking
for $ac_word...
" >&6; }
14935 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14936 $as_echo_n "(cached
) " >&6
14938 if test -n "$DSYMUTIL_FOR_TARGET"; then
14939 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14942 for as_dir in $PATH
14945 test -z "$as_dir" && as_dir=.
14946 for ac_exec_ext in '' $ac_executable_extensions; do
14947 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14948 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14949 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14958 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14959 if test -n "$DSYMUTIL_FOR_TARGET"; then
14960 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14961 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14964 $as_echo "no
" >&6; }
14969 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14973 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14975 if test $build = $target ; then
14976 DSYMUTIL_FOR_TARGET="$2"
14978 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14981 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14985 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14991 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14992 if test -n "$with_build_time_tools"; then
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
14994 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
14995 if test -x $with_build_time_tools/ld; then
14996 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14997 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
14999 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15002 $as_echo "no
" >&6; }
15004 elif test $build != $host && test $have_gcc_for_target = yes; then
15005 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15006 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15007 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15010 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15011 # Extract the first word of "ld
", so it can be a program name with args.
15012 set dummy ld; ac_word=$2
15013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15014 $as_echo_n "checking
for $ac_word...
" >&6; }
15015 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15016 $as_echo_n "(cached
) " >&6
15018 case $LD_FOR_TARGET in
15020 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15024 for as_dir in $gcc_cv_tool_dirs
15027 test -z "$as_dir" && as_dir=.
15028 for ac_exec_ext in '' $ac_executable_extensions; do
15029 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15030 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15031 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15041 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15042 if test -n "$LD_FOR_TARGET"; then
15043 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15044 $as_echo "$LD_FOR_TARGET" >&6; }
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15047 $as_echo "no
" >&6; }
15052 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15055 if test -n "$LD_FOR_TARGET"; then
15056 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15057 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15058 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15061 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15062 for ncn_progname in ld; do
15063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15064 set dummy ${ncn_progname}; ac_word=$2
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15066 $as_echo_n "checking
for $ac_word...
" >&6; }
15067 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15068 $as_echo_n "(cached
) " >&6
15070 if test -n "$LD_FOR_TARGET"; then
15071 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15074 for as_dir in $PATH
15077 test -z "$as_dir" && as_dir=.
15078 for ac_exec_ext in '' $ac_executable_extensions; do
15079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15080 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15081 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15090 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15091 if test -n "$LD_FOR_TARGET"; then
15092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15093 $as_echo "$LD_FOR_TARGET" >&6; }
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15096 $as_echo "no
" >&6; }
15103 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15104 for ncn_progname in ld; do
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15106 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15107 if test -x $with_build_time_tools/${ncn_progname}; then
15108 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15109 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15110 $as_echo "yes" >&6; }
15113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15114 $as_echo "no
" >&6; }
15119 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15120 for ncn_progname in ld; do
15121 if test -n "$ncn_target_tool_prefix"; then
15122 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15123 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15125 $as_echo_n "checking
for $ac_word...
" >&6; }
15126 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15127 $as_echo_n "(cached
) " >&6
15129 if test -n "$LD_FOR_TARGET"; then
15130 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15133 for as_dir in $PATH
15136 test -z "$as_dir" && as_dir=.
15137 for ac_exec_ext in '' $ac_executable_extensions; do
15138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15139 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15140 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15149 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15150 if test -n "$LD_FOR_TARGET"; then
15151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15152 $as_echo "$LD_FOR_TARGET" >&6; }
15154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15155 $as_echo "no
" >&6; }
15160 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15161 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15162 set dummy ${ncn_progname}; ac_word=$2
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15164 $as_echo_n "checking
for $ac_word...
" >&6; }
15165 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15166 $as_echo_n "(cached
) " >&6
15168 if test -n "$LD_FOR_TARGET"; then
15169 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15172 for as_dir in $PATH
15175 test -z "$as_dir" && as_dir=.
15176 for ac_exec_ext in '' $ac_executable_extensions; do
15177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15178 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15179 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15188 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15189 if test -n "$LD_FOR_TARGET"; then
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15191 $as_echo "$LD_FOR_TARGET" >&6; }
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15194 $as_echo "no
" >&6; }
15199 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15203 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15205 if test $build = $target ; then
15208 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15211 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15215 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15221 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15222 if test -n "$with_build_time_tools"; then
15223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
15224 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
15225 if test -x $with_build_time_tools/lipo; then
15226 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15227 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
15229 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15232 $as_echo "no
" >&6; }
15234 elif test $build != $host && test $have_gcc_for_target = yes; then
15235 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15236 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15237 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15240 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15241 # Extract the first word of "lipo
", so it can be a program name with args.
15242 set dummy lipo; ac_word=$2
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15244 $as_echo_n "checking
for $ac_word...
" >&6; }
15245 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15246 $as_echo_n "(cached
) " >&6
15248 case $LIPO_FOR_TARGET in
15250 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15254 for as_dir in $gcc_cv_tool_dirs
15257 test -z "$as_dir" && as_dir=.
15258 for ac_exec_ext in '' $ac_executable_extensions; do
15259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15260 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15261 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15271 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15272 if test -n "$LIPO_FOR_TARGET"; then
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15274 $as_echo "$LIPO_FOR_TARGET" >&6; }
15276 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15277 $as_echo "no
" >&6; }
15282 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15285 if test -n "$LIPO_FOR_TARGET"; then
15286 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15287 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15288 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15291 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15292 for ncn_progname in lipo; do
15293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15294 set dummy ${ncn_progname}; ac_word=$2
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15296 $as_echo_n "checking
for $ac_word...
" >&6; }
15297 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15298 $as_echo_n "(cached
) " >&6
15300 if test -n "$LIPO_FOR_TARGET"; then
15301 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15304 for as_dir in $PATH
15307 test -z "$as_dir" && as_dir=.
15308 for ac_exec_ext in '' $ac_executable_extensions; do
15309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15310 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15311 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15320 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15321 if test -n "$LIPO_FOR_TARGET"; then
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15323 $as_echo "$LIPO_FOR_TARGET" >&6; }
15325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15326 $as_echo "no
" >&6; }
15333 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15334 for ncn_progname in lipo; do
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15336 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15337 if test -x $with_build_time_tools/${ncn_progname}; then
15338 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15340 $as_echo "yes" >&6; }
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15344 $as_echo "no
" >&6; }
15349 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15350 for ncn_progname in lipo; do
15351 if test -n "$ncn_target_tool_prefix"; then
15352 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15353 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15355 $as_echo_n "checking
for $ac_word...
" >&6; }
15356 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15357 $as_echo_n "(cached
) " >&6
15359 if test -n "$LIPO_FOR_TARGET"; then
15360 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15363 for as_dir in $PATH
15366 test -z "$as_dir" && as_dir=.
15367 for ac_exec_ext in '' $ac_executable_extensions; do
15368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15369 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15370 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15379 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15380 if test -n "$LIPO_FOR_TARGET"; then
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15382 $as_echo "$LIPO_FOR_TARGET" >&6; }
15384 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15385 $as_echo "no
" >&6; }
15390 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15391 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15392 set dummy ${ncn_progname}; ac_word=$2
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15394 $as_echo_n "checking
for $ac_word...
" >&6; }
15395 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15396 $as_echo_n "(cached
) " >&6
15398 if test -n "$LIPO_FOR_TARGET"; then
15399 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15402 for as_dir in $PATH
15405 test -z "$as_dir" && as_dir=.
15406 for ac_exec_ext in '' $ac_executable_extensions; do
15407 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15408 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15409 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15418 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15419 if test -n "$LIPO_FOR_TARGET"; then
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15421 $as_echo "$LIPO_FOR_TARGET" >&6; }
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15424 $as_echo "no
" >&6; }
15429 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15433 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15435 if test $build = $target ; then
15436 LIPO_FOR_TARGET="$2"
15438 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15441 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15445 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15451 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15452 if test -n "$with_build_time_tools"; then
15453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15454 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15455 if test -x $with_build_time_tools/nm; then
15456 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15457 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15459 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15462 $as_echo "no
" >&6; }
15464 elif test $build != $host && test $have_gcc_for_target = yes; then
15465 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15466 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15467 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15470 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15471 # Extract the first word of "nm
", so it can be a program name with args.
15472 set dummy nm; ac_word=$2
15473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15474 $as_echo_n "checking
for $ac_word...
" >&6; }
15475 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15476 $as_echo_n "(cached
) " >&6
15478 case $NM_FOR_TARGET in
15480 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15484 for as_dir in $gcc_cv_tool_dirs
15487 test -z "$as_dir" && as_dir=.
15488 for ac_exec_ext in '' $ac_executable_extensions; do
15489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15490 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15491 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15501 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15502 if test -n "$NM_FOR_TARGET"; then
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15504 $as_echo "$NM_FOR_TARGET" >&6; }
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15507 $as_echo "no
" >&6; }
15512 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15515 if test -n "$NM_FOR_TARGET"; then
15516 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15517 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15518 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15521 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15522 for ncn_progname in nm; do
15523 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15524 set dummy ${ncn_progname}; ac_word=$2
15525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15526 $as_echo_n "checking
for $ac_word...
" >&6; }
15527 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15528 $as_echo_n "(cached
) " >&6
15530 if test -n "$NM_FOR_TARGET"; then
15531 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15534 for as_dir in $PATH
15537 test -z "$as_dir" && as_dir=.
15538 for ac_exec_ext in '' $ac_executable_extensions; do
15539 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15540 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15541 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15550 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15551 if test -n "$NM_FOR_TARGET"; then
15552 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15553 $as_echo "$NM_FOR_TARGET" >&6; }
15555 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15556 $as_echo "no
" >&6; }
15563 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15564 for ncn_progname in nm; do
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15566 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15567 if test -x $with_build_time_tools/${ncn_progname}; then
15568 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15570 $as_echo "yes" >&6; }
15573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15574 $as_echo "no
" >&6; }
15579 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15580 for ncn_progname in nm; do
15581 if test -n "$ncn_target_tool_prefix"; then
15582 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15583 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15585 $as_echo_n "checking
for $ac_word...
" >&6; }
15586 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15587 $as_echo_n "(cached
) " >&6
15589 if test -n "$NM_FOR_TARGET"; then
15590 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15593 for as_dir in $PATH
15596 test -z "$as_dir" && as_dir=.
15597 for ac_exec_ext in '' $ac_executable_extensions; do
15598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15599 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15600 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15609 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15610 if test -n "$NM_FOR_TARGET"; then
15611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15612 $as_echo "$NM_FOR_TARGET" >&6; }
15614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15615 $as_echo "no
" >&6; }
15620 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15621 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15622 set dummy ${ncn_progname}; ac_word=$2
15623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15624 $as_echo_n "checking
for $ac_word...
" >&6; }
15625 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15626 $as_echo_n "(cached
) " >&6
15628 if test -n "$NM_FOR_TARGET"; then
15629 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15632 for as_dir in $PATH
15635 test -z "$as_dir" && as_dir=.
15636 for ac_exec_ext in '' $ac_executable_extensions; do
15637 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15638 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15639 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15648 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15649 if test -n "$NM_FOR_TARGET"; then
15650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15651 $as_echo "$NM_FOR_TARGET" >&6; }
15653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15654 $as_echo "no
" >&6; }
15659 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15663 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15665 if test $build = $target ; then
15668 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15671 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15675 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15681 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15682 if test -n "$with_build_time_tools"; then
15683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15684 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15685 if test -x $with_build_time_tools/objcopy; then
15686 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15687 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15688 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15689 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15692 $as_echo "no
" >&6; }
15694 elif test $build != $host && test $have_gcc_for_target = yes; then
15695 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15696 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15697 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15700 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15701 # Extract the first word of "objcopy
", so it can be a program name with args.
15702 set dummy objcopy; ac_word=$2
15703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15704 $as_echo_n "checking
for $ac_word...
" >&6; }
15705 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15706 $as_echo_n "(cached
) " >&6
15708 case $OBJCOPY_FOR_TARGET in
15710 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15714 for as_dir in $gcc_cv_tool_dirs
15717 test -z "$as_dir" && as_dir=.
15718 for ac_exec_ext in '' $ac_executable_extensions; do
15719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15720 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15721 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15731 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15732 if test -n "$OBJCOPY_FOR_TARGET"; then
15733 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15734 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15737 $as_echo "no
" >&6; }
15742 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15745 if test -n "$OBJCOPY_FOR_TARGET"; then
15746 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15747 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15748 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15751 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15752 for ncn_progname in objcopy; do
15753 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15754 set dummy ${ncn_progname}; ac_word=$2
15755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15756 $as_echo_n "checking
for $ac_word...
" >&6; }
15757 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15758 $as_echo_n "(cached
) " >&6
15760 if test -n "$OBJCOPY_FOR_TARGET"; then
15761 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15764 for as_dir in $PATH
15767 test -z "$as_dir" && as_dir=.
15768 for ac_exec_ext in '' $ac_executable_extensions; do
15769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15770 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15771 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15780 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15781 if test -n "$OBJCOPY_FOR_TARGET"; then
15782 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15783 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15786 $as_echo "no
" >&6; }
15793 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15794 for ncn_progname in objcopy; do
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15796 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15797 if test -x $with_build_time_tools/${ncn_progname}; then
15798 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15800 $as_echo "yes" >&6; }
15803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15804 $as_echo "no
" >&6; }
15809 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15810 for ncn_progname in objcopy; do
15811 if test -n "$ncn_target_tool_prefix"; then
15812 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15813 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15815 $as_echo_n "checking
for $ac_word...
" >&6; }
15816 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15817 $as_echo_n "(cached
) " >&6
15819 if test -n "$OBJCOPY_FOR_TARGET"; then
15820 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15823 for as_dir in $PATH
15826 test -z "$as_dir" && as_dir=.
15827 for ac_exec_ext in '' $ac_executable_extensions; do
15828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15829 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15830 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15839 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15840 if test -n "$OBJCOPY_FOR_TARGET"; then
15841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15842 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15844 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15845 $as_echo "no
" >&6; }
15850 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15851 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15852 set dummy ${ncn_progname}; ac_word=$2
15853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15854 $as_echo_n "checking
for $ac_word...
" >&6; }
15855 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15856 $as_echo_n "(cached
) " >&6
15858 if test -n "$OBJCOPY_FOR_TARGET"; then
15859 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15862 for as_dir in $PATH
15865 test -z "$as_dir" && as_dir=.
15866 for ac_exec_ext in '' $ac_executable_extensions; do
15867 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15868 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15869 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15878 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15879 if test -n "$OBJCOPY_FOR_TARGET"; then
15880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15881 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15884 $as_echo "no
" >&6; }
15889 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15893 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15895 if test $build = $target ; then
15896 OBJCOPY_FOR_TARGET="$2"
15898 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15901 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15905 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15911 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15912 if test -n "$with_build_time_tools"; then
15913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
15914 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
15915 if test -x $with_build_time_tools/objdump; then
15916 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15917 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15918 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15919 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15921 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15922 $as_echo "no
" >&6; }
15924 elif test $build != $host && test $have_gcc_for_target = yes; then
15925 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15926 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15927 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15930 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15931 # Extract the first word of "objdump
", so it can be a program name with args.
15932 set dummy objdump; ac_word=$2
15933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15934 $as_echo_n "checking
for $ac_word...
" >&6; }
15935 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15936 $as_echo_n "(cached
) " >&6
15938 case $OBJDUMP_FOR_TARGET in
15940 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15944 for as_dir in $gcc_cv_tool_dirs
15947 test -z "$as_dir" && as_dir=.
15948 for ac_exec_ext in '' $ac_executable_extensions; do
15949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15950 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15951 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15961 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15962 if test -n "$OBJDUMP_FOR_TARGET"; then
15963 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15964 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15966 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15967 $as_echo "no
" >&6; }
15972 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15975 if test -n "$OBJDUMP_FOR_TARGET"; then
15976 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15977 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15978 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15981 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15982 for ncn_progname in objdump; do
15983 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15984 set dummy ${ncn_progname}; ac_word=$2
15985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15986 $as_echo_n "checking
for $ac_word...
" >&6; }
15987 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15988 $as_echo_n "(cached
) " >&6
15990 if test -n "$OBJDUMP_FOR_TARGET"; then
15991 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15994 for as_dir in $PATH
15997 test -z "$as_dir" && as_dir=.
15998 for ac_exec_ext in '' $ac_executable_extensions; do
15999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16000 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16001 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16010 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16011 if test -n "$OBJDUMP_FOR_TARGET"; then
16012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16013 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16016 $as_echo "no
" >&6; }
16023 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16024 for ncn_progname in objdump; do
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16026 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16027 if test -x $with_build_time_tools/${ncn_progname}; then
16028 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16029 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16030 $as_echo "yes" >&6; }
16033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16034 $as_echo "no
" >&6; }
16039 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16040 for ncn_progname in objdump; do
16041 if test -n "$ncn_target_tool_prefix"; then
16042 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16043 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16045 $as_echo_n "checking
for $ac_word...
" >&6; }
16046 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16047 $as_echo_n "(cached
) " >&6
16049 if test -n "$OBJDUMP_FOR_TARGET"; then
16050 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16053 for as_dir in $PATH
16056 test -z "$as_dir" && as_dir=.
16057 for ac_exec_ext in '' $ac_executable_extensions; do
16058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16059 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16060 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16069 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16070 if test -n "$OBJDUMP_FOR_TARGET"; then
16071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16072 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16074 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16075 $as_echo "no
" >&6; }
16080 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16081 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16082 set dummy ${ncn_progname}; ac_word=$2
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16084 $as_echo_n "checking
for $ac_word...
" >&6; }
16085 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16086 $as_echo_n "(cached
) " >&6
16088 if test -n "$OBJDUMP_FOR_TARGET"; then
16089 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16092 for as_dir in $PATH
16095 test -z "$as_dir" && as_dir=.
16096 for ac_exec_ext in '' $ac_executable_extensions; do
16097 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16098 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16099 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16108 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16109 if test -n "$OBJDUMP_FOR_TARGET"; then
16110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16111 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16114 $as_echo "no
" >&6; }
16119 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16123 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16125 if test $build = $target ; then
16126 OBJDUMP_FOR_TARGET="$2"
16128 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16131 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16135 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16141 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16142 if test -n "$with_build_time_tools"; then
16143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
16144 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
16145 if test -x $with_build_time_tools/otool; then
16146 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16147 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16149 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16151 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16152 $as_echo "no
" >&6; }
16154 elif test $build != $host && test $have_gcc_for_target = yes; then
16155 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16156 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16157 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16160 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16161 # Extract the first word of "otool
", so it can be a program name with args.
16162 set dummy otool; ac_word=$2
16163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16164 $as_echo_n "checking
for $ac_word...
" >&6; }
16165 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16166 $as_echo_n "(cached
) " >&6
16168 case $OTOOL_FOR_TARGET in
16170 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16174 for as_dir in $gcc_cv_tool_dirs
16177 test -z "$as_dir" && as_dir=.
16178 for ac_exec_ext in '' $ac_executable_extensions; do
16179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16180 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16181 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16191 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16192 if test -n "$OTOOL_FOR_TARGET"; then
16193 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16194 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16197 $as_echo "no
" >&6; }
16202 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16205 if test -n "$OTOOL_FOR_TARGET"; then
16206 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16207 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16208 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16211 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16212 for ncn_progname in otool; do
16213 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16214 set dummy ${ncn_progname}; ac_word=$2
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16216 $as_echo_n "checking
for $ac_word...
" >&6; }
16217 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16218 $as_echo_n "(cached
) " >&6
16220 if test -n "$OTOOL_FOR_TARGET"; then
16221 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16224 for as_dir in $PATH
16227 test -z "$as_dir" && as_dir=.
16228 for ac_exec_ext in '' $ac_executable_extensions; do
16229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16230 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16231 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16240 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16241 if test -n "$OTOOL_FOR_TARGET"; then
16242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16243 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16246 $as_echo "no
" >&6; }
16253 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16254 for ncn_progname in otool; do
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16256 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16257 if test -x $with_build_time_tools/${ncn_progname}; then
16258 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16260 $as_echo "yes" >&6; }
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16264 $as_echo "no
" >&6; }
16269 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16270 for ncn_progname in otool; do
16271 if test -n "$ncn_target_tool_prefix"; then
16272 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16273 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16275 $as_echo_n "checking
for $ac_word...
" >&6; }
16276 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16277 $as_echo_n "(cached
) " >&6
16279 if test -n "$OTOOL_FOR_TARGET"; then
16280 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16283 for as_dir in $PATH
16286 test -z "$as_dir" && as_dir=.
16287 for ac_exec_ext in '' $ac_executable_extensions; do
16288 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16289 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16290 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16299 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16300 if test -n "$OTOOL_FOR_TARGET"; then
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16302 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16304 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16305 $as_echo "no
" >&6; }
16310 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16311 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16312 set dummy ${ncn_progname}; ac_word=$2
16313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16314 $as_echo_n "checking
for $ac_word...
" >&6; }
16315 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16316 $as_echo_n "(cached
) " >&6
16318 if test -n "$OTOOL_FOR_TARGET"; then
16319 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16322 for as_dir in $PATH
16325 test -z "$as_dir" && as_dir=.
16326 for ac_exec_ext in '' $ac_executable_extensions; do
16327 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16328 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16329 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16338 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16339 if test -n "$OTOOL_FOR_TARGET"; then
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16341 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16344 $as_echo "no
" >&6; }
16349 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16353 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16355 if test $build = $target ; then
16356 OTOOL_FOR_TARGET="$2"
16358 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16361 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16365 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16371 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16372 if test -n "$with_build_time_tools"; then
16373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16374 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16375 if test -x $with_build_time_tools/ranlib; then
16376 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16377 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16379 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16382 $as_echo "no
" >&6; }
16384 elif test $build != $host && test $have_gcc_for_target = yes; then
16385 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16386 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16387 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16390 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16391 # Extract the first word of "ranlib
", so it can be a program name with args.
16392 set dummy ranlib; ac_word=$2
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16394 $as_echo_n "checking
for $ac_word...
" >&6; }
16395 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16396 $as_echo_n "(cached
) " >&6
16398 case $RANLIB_FOR_TARGET in
16400 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16404 for as_dir in $gcc_cv_tool_dirs
16407 test -z "$as_dir" && as_dir=.
16408 for ac_exec_ext in '' $ac_executable_extensions; do
16409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16410 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16411 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16421 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16422 if test -n "$RANLIB_FOR_TARGET"; then
16423 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16424 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16426 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16427 $as_echo "no
" >&6; }
16432 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16435 if test -n "$RANLIB_FOR_TARGET"; then
16436 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16437 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16438 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16441 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16442 for ncn_progname in ranlib; do
16443 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16444 set dummy ${ncn_progname}; ac_word=$2
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16446 $as_echo_n "checking
for $ac_word...
" >&6; }
16447 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16448 $as_echo_n "(cached
) " >&6
16450 if test -n "$RANLIB_FOR_TARGET"; then
16451 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16454 for as_dir in $PATH
16457 test -z "$as_dir" && as_dir=.
16458 for ac_exec_ext in '' $ac_executable_extensions; do
16459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16460 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16461 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16470 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16471 if test -n "$RANLIB_FOR_TARGET"; then
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16473 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16475 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16476 $as_echo "no
" >&6; }
16483 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16484 for ncn_progname in ranlib; do
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16486 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16487 if test -x $with_build_time_tools/${ncn_progname}; then
16488 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16489 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16490 $as_echo "yes" >&6; }
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16494 $as_echo "no
" >&6; }
16499 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16500 for ncn_progname in ranlib; do
16501 if test -n "$ncn_target_tool_prefix"; then
16502 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16503 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16505 $as_echo_n "checking
for $ac_word...
" >&6; }
16506 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16507 $as_echo_n "(cached
) " >&6
16509 if test -n "$RANLIB_FOR_TARGET"; then
16510 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16513 for as_dir in $PATH
16516 test -z "$as_dir" && as_dir=.
16517 for ac_exec_ext in '' $ac_executable_extensions; do
16518 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16519 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16520 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16529 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16530 if test -n "$RANLIB_FOR_TARGET"; then
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16532 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16535 $as_echo "no
" >&6; }
16540 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16541 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16542 set dummy ${ncn_progname}; ac_word=$2
16543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16544 $as_echo_n "checking
for $ac_word...
" >&6; }
16545 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16546 $as_echo_n "(cached
) " >&6
16548 if test -n "$RANLIB_FOR_TARGET"; then
16549 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16552 for as_dir in $PATH
16555 test -z "$as_dir" && as_dir=.
16556 for ac_exec_ext in '' $ac_executable_extensions; do
16557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16558 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16559 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16568 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16569 if test -n "$RANLIB_FOR_TARGET"; then
16570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16571 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16574 $as_echo "no
" >&6; }
16579 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16583 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16585 if test $build = $target ; then
16586 RANLIB_FOR_TARGET="$2"
16588 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16591 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16595 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16601 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16602 if test -n "$with_build_time_tools"; then
16603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16604 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16605 if test -x $with_build_time_tools/readelf; then
16606 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16607 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16608 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16609 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16612 $as_echo "no
" >&6; }
16614 elif test $build != $host && test $have_gcc_for_target = yes; then
16615 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16616 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16617 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16620 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16621 # Extract the first word of "readelf
", so it can be a program name with args.
16622 set dummy readelf; ac_word=$2
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16624 $as_echo_n "checking
for $ac_word...
" >&6; }
16625 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16626 $as_echo_n "(cached
) " >&6
16628 case $READELF_FOR_TARGET in
16630 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16634 for as_dir in $gcc_cv_tool_dirs
16637 test -z "$as_dir" && as_dir=.
16638 for ac_exec_ext in '' $ac_executable_extensions; do
16639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16640 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16641 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16651 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16652 if test -n "$READELF_FOR_TARGET"; then
16653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16654 $as_echo "$READELF_FOR_TARGET" >&6; }
16656 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16657 $as_echo "no
" >&6; }
16662 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16665 if test -n "$READELF_FOR_TARGET"; then
16666 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16667 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16668 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16671 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16672 for ncn_progname in readelf; do
16673 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16674 set dummy ${ncn_progname}; ac_word=$2
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16676 $as_echo_n "checking
for $ac_word...
" >&6; }
16677 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16678 $as_echo_n "(cached
) " >&6
16680 if test -n "$READELF_FOR_TARGET"; then
16681 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16684 for as_dir in $PATH
16687 test -z "$as_dir" && as_dir=.
16688 for ac_exec_ext in '' $ac_executable_extensions; do
16689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16690 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16691 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16700 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16701 if test -n "$READELF_FOR_TARGET"; then
16702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16703 $as_echo "$READELF_FOR_TARGET" >&6; }
16705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16706 $as_echo "no
" >&6; }
16713 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16714 for ncn_progname in readelf; do
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16716 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16717 if test -x $with_build_time_tools/${ncn_progname}; then
16718 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16720 $as_echo "yes" >&6; }
16723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16724 $as_echo "no
" >&6; }
16729 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16730 for ncn_progname in readelf; do
16731 if test -n "$ncn_target_tool_prefix"; then
16732 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16733 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16735 $as_echo_n "checking
for $ac_word...
" >&6; }
16736 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16737 $as_echo_n "(cached
) " >&6
16739 if test -n "$READELF_FOR_TARGET"; then
16740 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16743 for as_dir in $PATH
16746 test -z "$as_dir" && as_dir=.
16747 for ac_exec_ext in '' $ac_executable_extensions; do
16748 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16749 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16750 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16759 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16760 if test -n "$READELF_FOR_TARGET"; then
16761 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16762 $as_echo "$READELF_FOR_TARGET" >&6; }
16764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16765 $as_echo "no
" >&6; }
16770 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16772 set dummy ${ncn_progname}; ac_word=$2
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16774 $as_echo_n "checking
for $ac_word...
" >&6; }
16775 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16776 $as_echo_n "(cached
) " >&6
16778 if test -n "$READELF_FOR_TARGET"; then
16779 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16782 for as_dir in $PATH
16785 test -z "$as_dir" && as_dir=.
16786 for ac_exec_ext in '' $ac_executable_extensions; do
16787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16788 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16789 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16798 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16799 if test -n "$READELF_FOR_TARGET"; then
16800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16801 $as_echo "$READELF_FOR_TARGET" >&6; }
16803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16804 $as_echo "no
" >&6; }
16809 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16813 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16815 if test $build = $target ; then
16816 READELF_FOR_TARGET="$2"
16818 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16821 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16825 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16831 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16832 if test -n "$with_build_time_tools"; then
16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
16834 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
16835 if test -x $with_build_time_tools/strip; then
16836 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16837 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
16839 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16841 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16842 $as_echo "no
" >&6; }
16844 elif test $build != $host && test $have_gcc_for_target = yes; then
16845 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16846 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16847 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16850 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16851 # Extract the first word of "strip
", so it can be a program name with args.
16852 set dummy strip; ac_word=$2
16853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16854 $as_echo_n "checking
for $ac_word...
" >&6; }
16855 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16856 $as_echo_n "(cached
) " >&6
16858 case $STRIP_FOR_TARGET in
16860 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16864 for as_dir in $gcc_cv_tool_dirs
16867 test -z "$as_dir" && as_dir=.
16868 for ac_exec_ext in '' $ac_executable_extensions; do
16869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16870 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16871 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16881 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16882 if test -n "$STRIP_FOR_TARGET"; then
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16884 $as_echo "$STRIP_FOR_TARGET" >&6; }
16886 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16887 $as_echo "no
" >&6; }
16892 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16895 if test -n "$STRIP_FOR_TARGET"; then
16896 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16897 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16898 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16901 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16902 for ncn_progname in strip; do
16903 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16904 set dummy ${ncn_progname}; ac_word=$2
16905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16906 $as_echo_n "checking
for $ac_word...
" >&6; }
16907 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16908 $as_echo_n "(cached
) " >&6
16910 if test -n "$STRIP_FOR_TARGET"; then
16911 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16914 for as_dir in $PATH
16917 test -z "$as_dir" && as_dir=.
16918 for ac_exec_ext in '' $ac_executable_extensions; do
16919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16920 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16921 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16930 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16931 if test -n "$STRIP_FOR_TARGET"; then
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16933 $as_echo "$STRIP_FOR_TARGET" >&6; }
16935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16936 $as_echo "no
" >&6; }
16943 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16944 for ncn_progname in strip; do
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16946 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16947 if test -x $with_build_time_tools/${ncn_progname}; then
16948 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16949 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16950 $as_echo "yes" >&6; }
16953 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16954 $as_echo "no
" >&6; }
16959 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16960 for ncn_progname in strip; do
16961 if test -n "$ncn_target_tool_prefix"; then
16962 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16963 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16965 $as_echo_n "checking
for $ac_word...
" >&6; }
16966 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16967 $as_echo_n "(cached
) " >&6
16969 if test -n "$STRIP_FOR_TARGET"; then
16970 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16973 for as_dir in $PATH
16976 test -z "$as_dir" && as_dir=.
16977 for ac_exec_ext in '' $ac_executable_extensions; do
16978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16979 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16980 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16989 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16990 if test -n "$STRIP_FOR_TARGET"; then
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16992 $as_echo "$STRIP_FOR_TARGET" >&6; }
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16995 $as_echo "no
" >&6; }
17000 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17001 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17002 set dummy ${ncn_progname}; ac_word=$2
17003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17004 $as_echo_n "checking
for $ac_word...
" >&6; }
17005 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17006 $as_echo_n "(cached
) " >&6
17008 if test -n "$STRIP_FOR_TARGET"; then
17009 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17012 for as_dir in $PATH
17015 test -z "$as_dir" && as_dir=.
17016 for ac_exec_ext in '' $ac_executable_extensions; do
17017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17018 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17019 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17028 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17029 if test -n "$STRIP_FOR_TARGET"; then
17030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17031 $as_echo "$STRIP_FOR_TARGET" >&6; }
17033 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17034 $as_echo "no
" >&6; }
17039 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17043 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17045 if test $build = $target ; then
17046 STRIP_FOR_TARGET="$2"
17048 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17051 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17055 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17061 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17062 if test -n "$with_build_time_tools"; then
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
17064 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
17065 if test -x $with_build_time_tools/windres; then
17066 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17067 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17069 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17071 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17072 $as_echo "no
" >&6; }
17074 elif test $build != $host && test $have_gcc_for_target = yes; then
17075 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17076 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17077 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17080 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17081 # Extract the first word of "windres
", so it can be a program name with args.
17082 set dummy windres; ac_word=$2
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17084 $as_echo_n "checking
for $ac_word...
" >&6; }
17085 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17086 $as_echo_n "(cached
) " >&6
17088 case $WINDRES_FOR_TARGET in
17090 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17094 for as_dir in $gcc_cv_tool_dirs
17097 test -z "$as_dir" && as_dir=.
17098 for ac_exec_ext in '' $ac_executable_extensions; do
17099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17100 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17101 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17111 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17112 if test -n "$WINDRES_FOR_TARGET"; then
17113 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17114 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17116 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17117 $as_echo "no
" >&6; }
17122 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17125 if test -n "$WINDRES_FOR_TARGET"; then
17126 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17127 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17128 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17131 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17132 for ncn_progname in windres; do
17133 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17134 set dummy ${ncn_progname}; ac_word=$2
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17136 $as_echo_n "checking
for $ac_word...
" >&6; }
17137 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17138 $as_echo_n "(cached
) " >&6
17140 if test -n "$WINDRES_FOR_TARGET"; then
17141 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17144 for as_dir in $PATH
17147 test -z "$as_dir" && as_dir=.
17148 for ac_exec_ext in '' $ac_executable_extensions; do
17149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17150 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17151 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17160 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17161 if test -n "$WINDRES_FOR_TARGET"; then
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17163 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17166 $as_echo "no
" >&6; }
17173 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17174 for ncn_progname in windres; do
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17176 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17177 if test -x $with_build_time_tools/${ncn_progname}; then
17178 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17180 $as_echo "yes" >&6; }
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17184 $as_echo "no
" >&6; }
17189 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17190 for ncn_progname in windres; do
17191 if test -n "$ncn_target_tool_prefix"; then
17192 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17193 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17195 $as_echo_n "checking
for $ac_word...
" >&6; }
17196 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17197 $as_echo_n "(cached
) " >&6
17199 if test -n "$WINDRES_FOR_TARGET"; then
17200 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17203 for as_dir in $PATH
17206 test -z "$as_dir" && as_dir=.
17207 for ac_exec_ext in '' $ac_executable_extensions; do
17208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17209 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17210 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17219 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17220 if test -n "$WINDRES_FOR_TARGET"; then
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17222 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17225 $as_echo "no
" >&6; }
17230 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17231 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17232 set dummy ${ncn_progname}; ac_word=$2
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17234 $as_echo_n "checking
for $ac_word...
" >&6; }
17235 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17236 $as_echo_n "(cached
) " >&6
17238 if test -n "$WINDRES_FOR_TARGET"; then
17239 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17242 for as_dir in $PATH
17245 test -z "$as_dir" && as_dir=.
17246 for ac_exec_ext in '' $ac_executable_extensions; do
17247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17248 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17249 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17258 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17259 if test -n "$WINDRES_FOR_TARGET"; then
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17261 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17264 $as_echo "no
" >&6; }
17269 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17273 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17275 if test $build = $target ; then
17276 WINDRES_FOR_TARGET="$2"
17278 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17281 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17285 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17291 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17292 if test -n "$with_build_time_tools"; then
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17294 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17295 if test -x $with_build_time_tools/windmc; then
17296 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17297 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17299 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17301 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17302 $as_echo "no
" >&6; }
17304 elif test $build != $host && test $have_gcc_for_target = yes; then
17305 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17306 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17307 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17310 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17311 # Extract the first word of "windmc
", so it can be a program name with args.
17312 set dummy windmc; ac_word=$2
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17314 $as_echo_n "checking
for $ac_word...
" >&6; }
17315 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17316 $as_echo_n "(cached
) " >&6
17318 case $WINDMC_FOR_TARGET in
17320 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17324 for as_dir in $gcc_cv_tool_dirs
17327 test -z "$as_dir" && as_dir=.
17328 for ac_exec_ext in '' $ac_executable_extensions; do
17329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17330 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17331 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17341 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17342 if test -n "$WINDMC_FOR_TARGET"; then
17343 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17344 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17346 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17347 $as_echo "no
" >&6; }
17352 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17355 if test -n "$WINDMC_FOR_TARGET"; then
17356 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17357 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17358 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17361 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17362 for ncn_progname in windmc; do
17363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17364 set dummy ${ncn_progname}; ac_word=$2
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17366 $as_echo_n "checking
for $ac_word...
" >&6; }
17367 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17368 $as_echo_n "(cached
) " >&6
17370 if test -n "$WINDMC_FOR_TARGET"; then
17371 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17374 for as_dir in $PATH
17377 test -z "$as_dir" && as_dir=.
17378 for ac_exec_ext in '' $ac_executable_extensions; do
17379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17380 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17381 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17390 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17391 if test -n "$WINDMC_FOR_TARGET"; then
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17393 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17396 $as_echo "no
" >&6; }
17403 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17404 for ncn_progname in windmc; do
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17406 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17407 if test -x $with_build_time_tools/${ncn_progname}; then
17408 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17410 $as_echo "yes" >&6; }
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17414 $as_echo "no
" >&6; }
17419 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17420 for ncn_progname in windmc; do
17421 if test -n "$ncn_target_tool_prefix"; then
17422 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17423 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17425 $as_echo_n "checking
for $ac_word...
" >&6; }
17426 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17427 $as_echo_n "(cached
) " >&6
17429 if test -n "$WINDMC_FOR_TARGET"; then
17430 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17433 for as_dir in $PATH
17436 test -z "$as_dir" && as_dir=.
17437 for ac_exec_ext in '' $ac_executable_extensions; do
17438 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17439 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17440 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17449 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17450 if test -n "$WINDMC_FOR_TARGET"; then
17451 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17452 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17455 $as_echo "no
" >&6; }
17460 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17461 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17462 set dummy ${ncn_progname}; ac_word=$2
17463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17464 $as_echo_n "checking
for $ac_word...
" >&6; }
17465 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17466 $as_echo_n "(cached
) " >&6
17468 if test -n "$WINDMC_FOR_TARGET"; then
17469 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17472 for as_dir in $PATH
17475 test -z "$as_dir" && as_dir=.
17476 for ac_exec_ext in '' $ac_executable_extensions; do
17477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17478 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17479 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17488 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17489 if test -n "$WINDMC_FOR_TARGET"; then
17490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17491 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17493 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17494 $as_echo "no
" >&6; }
17499 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17503 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17505 if test $build = $target ; then
17506 WINDMC_FOR_TARGET="$2"
17508 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17511 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17515 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17519 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17522 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17523 if test "x
${build}" != "x
${host}" ; then
17524 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17525 # We already found the complete path
17526 ac_dir=`dirname $AR_FOR_TARGET`
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17528 $as_echo "pre-installed
in $ac_dir" >&6; }
17530 # Canadian cross, just use what we found
17531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17532 $as_echo "pre-installed
" >&6; }
17536 case " ${configdirs} " in
17541 if test $ok = yes; then
17542 # An in-tree tool is available and we can use it
17543 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17545 $as_echo "just compiled
" >&6; }
17546 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17547 # We already found the complete path
17548 ac_dir=`dirname $AR_FOR_TARGET`
17549 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17550 $as_echo "pre-installed
in $ac_dir" >&6; }
17551 elif test "x
$target" = "x
$host"; then
17552 # We can use an host tool
17553 AR_FOR_TARGET='$(AR)'
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17555 $as_echo "host tool
" >&6; }
17557 # We need a cross tool
17558 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17559 $as_echo "pre-installed
" >&6; }
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17564 $as_echo_n "checking where to
find the target as...
" >&6; }
17565 if test "x
${build}" != "x
${host}" ; then
17566 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17567 # We already found the complete path
17568 ac_dir=`dirname $AS_FOR_TARGET`
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17570 $as_echo "pre-installed
in $ac_dir" >&6; }
17572 # Canadian cross, just use what we found
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17574 $as_echo "pre-installed
" >&6; }
17578 case " ${configdirs} " in
17583 if test $ok = yes; then
17584 # An in-tree tool is available and we can use it
17585 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17586 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17587 $as_echo "just compiled
" >&6; }
17588 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17589 # We already found the complete path
17590 ac_dir=`dirname $AS_FOR_TARGET`
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17592 $as_echo "pre-installed
in $ac_dir" >&6; }
17593 elif test "x
$target" = "x
$host"; then
17594 # We can use an host tool
17595 AS_FOR_TARGET='$(AS)'
17596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17597 $as_echo "host tool
" >&6; }
17599 # We need a cross tool
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17601 $as_echo "pre-installed
" >&6; }
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17606 $as_echo_n "checking where to
find the target cc...
" >&6; }
17607 if test "x
${build}" != "x
${host}" ; then
17608 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17609 # We already found the complete path
17610 ac_dir=`dirname $CC_FOR_TARGET`
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17612 $as_echo "pre-installed
in $ac_dir" >&6; }
17614 # Canadian cross, just use what we found
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17616 $as_echo "pre-installed
" >&6; }
17620 case " ${configdirs} " in
17625 if test $ok = yes; then
17626 # An in-tree tool is available and we can use it
17627 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17629 $as_echo "just compiled
" >&6; }
17630 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17631 # We already found the complete path
17632 ac_dir=`dirname $CC_FOR_TARGET`
17633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17634 $as_echo "pre-installed
in $ac_dir" >&6; }
17635 elif test "x
$target" = "x
$host"; then
17636 # We can use an host tool
17637 CC_FOR_TARGET='$(CC)'
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17639 $as_echo "host tool
" >&6; }
17641 # We need a cross tool
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17643 $as_echo "pre-installed
" >&6; }
17647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17648 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17649 if test "x
${build}" != "x
${host}" ; then
17650 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17651 # We already found the complete path
17652 ac_dir=`dirname $CXX_FOR_TARGET`
17653 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17654 $as_echo "pre-installed
in $ac_dir" >&6; }
17656 # Canadian cross, just use what we found
17657 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17658 $as_echo "pre-installed
" >&6; }
17662 case " ${configdirs} " in
17666 case ,${enable_languages}, in
17670 if test $ok = yes; then
17671 # An in-tree tool is available and we can use it
17672 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'
17673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17674 $as_echo "just compiled
" >&6; }
17675 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17676 # We already found the complete path
17677 ac_dir=`dirname $CXX_FOR_TARGET`
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17679 $as_echo "pre-installed
in $ac_dir" >&6; }
17680 elif test "x
$target" = "x
$host"; then
17681 # We can use an host tool
17682 CXX_FOR_TARGET='$(CXX)'
17683 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17684 $as_echo "host tool
" >&6; }
17686 # We need a cross tool
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17688 $as_echo "pre-installed
" >&6; }
17692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
17693 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17694 if test "x
${build}" != "x
${host}" ; then
17695 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17696 # We already found the complete path
17697 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17699 $as_echo "pre-installed
in $ac_dir" >&6; }
17701 # Canadian cross, just use what we found
17702 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17703 $as_echo "pre-installed
" >&6; }
17707 case " ${configdirs} " in
17711 case ,${enable_languages}, in
17715 if test $ok = yes; then
17716 # An in-tree tool is available and we can use it
17717 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'
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17719 $as_echo "just compiled
" >&6; }
17720 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17721 # We already found the complete path
17722 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17723 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17724 $as_echo "pre-installed
in $ac_dir" >&6; }
17725 elif test "x
$target" = "x
$host"; then
17726 # We can use an host tool
17727 RAW_CXX_FOR_TARGET='$(CXX)'
17728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17729 $as_echo "host tool
" >&6; }
17731 # We need a cross tool
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17733 $as_echo "pre-installed
" >&6; }
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
17738 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17739 if test "x
${build}" != "x
${host}" ; then
17740 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17741 # We already found the complete path
17742 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17744 $as_echo "pre-installed
in $ac_dir" >&6; }
17746 # Canadian cross, just use what we found
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17748 $as_echo "pre-installed
" >&6; }
17752 case " ${configdirs} " in
17757 if test $ok = yes; then
17758 # An in-tree tool is available and we can use it
17759 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17760 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17761 $as_echo "just compiled
" >&6; }
17762 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17763 # We already found the complete path
17764 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17766 $as_echo "pre-installed
in $ac_dir" >&6; }
17767 elif test "x
$target" = "x
$host"; then
17768 # We can use an host tool
17769 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17771 $as_echo "host tool
" >&6; }
17773 # We need a cross tool
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17775 $as_echo "pre-installed
" >&6; }
17779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
17780 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
17781 if test "x
${build}" != "x
${host}" ; then
17782 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17783 # We already found the complete path
17784 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17785 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17786 $as_echo "pre-installed
in $ac_dir" >&6; }
17788 # Canadian cross, just use what we found
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17790 $as_echo "pre-installed
" >&6; }
17793 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17794 # We already found the complete path
17795 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17797 $as_echo "pre-installed
in $ac_dir" >&6; }
17798 elif test "x
$target" = "x
$host"; then
17799 # We can use an host tool
17800 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17802 $as_echo "host tool
" >&6; }
17804 # We need a cross tool
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17806 $as_echo "pre-installed
" >&6; }
17810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
17811 $as_echo_n "checking where to
find the target gcc...
" >&6; }
17812 if test "x
${build}" != "x
${host}" ; then
17813 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17814 # We already found the complete path
17815 ac_dir=`dirname $GCC_FOR_TARGET`
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17817 $as_echo "pre-installed
in $ac_dir" >&6; }
17819 # Canadian cross, just use what we found
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17821 $as_echo "pre-installed
" >&6; }
17825 case " ${configdirs} " in
17830 if test $ok = yes; then
17831 # An in-tree tool is available and we can use it
17832 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17834 $as_echo "just compiled
" >&6; }
17835 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17836 # We already found the complete path
17837 ac_dir=`dirname $GCC_FOR_TARGET`
17838 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17839 $as_echo "pre-installed
in $ac_dir" >&6; }
17840 elif test "x
$target" = "x
$host"; then
17841 # We can use an host tool
17842 GCC_FOR_TARGET='$()'
17843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17844 $as_echo "host tool
" >&6; }
17846 # We need a cross tool
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17848 $as_echo "pre-installed
" >&6; }
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
17853 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
17854 if test "x
${build}" != "x
${host}" ; then
17855 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17856 # We already found the complete path
17857 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17859 $as_echo "pre-installed
in $ac_dir" >&6; }
17861 # Canadian cross, just use what we found
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17863 $as_echo "pre-installed
" >&6; }
17867 case " ${configdirs} " in
17871 case ,${enable_languages}, in
17875 if test $ok = yes; then
17876 # An in-tree tool is available and we can use it
17877 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17879 $as_echo "just compiled
" >&6; }
17880 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17881 # We already found the complete path
17882 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17883 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17884 $as_echo "pre-installed
in $ac_dir" >&6; }
17885 elif test "x
$target" = "x
$host"; then
17886 # We can use an host tool
17887 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17889 $as_echo "host tool
" >&6; }
17891 # We need a cross tool
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17893 $as_echo "pre-installed
" >&6; }
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
17898 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
17899 if test "x
${build}" != "x
${host}" ; then
17900 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17901 # We already found the complete path
17902 ac_dir=`dirname $GOC_FOR_TARGET`
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17904 $as_echo "pre-installed
in $ac_dir" >&6; }
17906 # Canadian cross, just use what we found
17907 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17908 $as_echo "pre-installed
" >&6; }
17912 case " ${configdirs} " in
17916 case ,${enable_languages}, in
17920 if test $ok = yes; then
17921 # An in-tree tool is available and we can use it
17922 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17924 $as_echo "just compiled
" >&6; }
17925 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17926 # We already found the complete path
17927 ac_dir=`dirname $GOC_FOR_TARGET`
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17929 $as_echo "pre-installed
in $ac_dir" >&6; }
17930 elif test "x
$target" = "x
$host"; then
17931 # We can use an host tool
17932 GOC_FOR_TARGET='$(GOC)'
17933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17934 $as_echo "host tool
" >&6; }
17936 # We need a cross tool
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17938 $as_echo "pre-installed
" >&6; }
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
17943 $as_echo_n "checking where to
find the target gdc...
" >&6; }
17944 if test "x
${build}" != "x
${host}" ; then
17945 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17946 # We already found the complete path
17947 ac_dir=`dirname $GDC_FOR_TARGET`
17948 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17949 $as_echo "pre-installed
in $ac_dir" >&6; }
17951 # Canadian cross, just use what we found
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17953 $as_echo "pre-installed
" >&6; }
17957 case " ${configdirs} " in
17961 case ,${enable_languages}, in
17965 if test $ok = yes; then
17966 # An in-tree tool is available and we can use it
17967 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17969 $as_echo "just compiled
" >&6; }
17970 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17971 # We already found the complete path
17972 ac_dir=`dirname $GDC_FOR_TARGET`
17973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17974 $as_echo "pre-installed
in $ac_dir" >&6; }
17975 elif test "x
$target" = "x
$host"; then
17976 # We can use an host tool
17977 GDC_FOR_TARGET='$(GDC)'
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17979 $as_echo "host tool
" >&6; }
17981 # We need a cross tool
17982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17983 $as_echo "pre-installed
" >&6; }
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
17988 $as_echo_n "checking where to
find the target ld...
" >&6; }
17989 if test "x
${build}" != "x
${host}" ; then
17990 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17991 # We already found the complete path
17992 ac_dir=`dirname $LD_FOR_TARGET`
17993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17994 $as_echo "pre-installed
in $ac_dir" >&6; }
17996 # Canadian cross, just use what we found
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17998 $as_echo "pre-installed
" >&6; }
18002 case " ${configdirs} " in
18007 if test $ok = yes; then
18008 # An in-tree tool is available and we can use it
18009 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18010 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18011 $as_echo "just compiled
" >&6; }
18012 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18013 # We already found the complete path
18014 ac_dir=`dirname $LD_FOR_TARGET`
18015 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18016 $as_echo "pre-installed
in $ac_dir" >&6; }
18017 elif test "x
$target" = "x
$host"; then
18018 # We can use an host tool
18019 LD_FOR_TARGET='$(LD)'
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18021 $as_echo "host tool
" >&6; }
18023 # We need a cross tool
18024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18025 $as_echo "pre-installed
" >&6; }
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
18030 $as_echo_n "checking where to
find the target lipo...
" >&6; }
18031 if test "x
${build}" != "x
${host}" ; then
18032 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18033 # We already found the complete path
18034 ac_dir=`dirname $LIPO_FOR_TARGET`
18035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18036 $as_echo "pre-installed
in $ac_dir" >&6; }
18038 # Canadian cross, just use what we found
18039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18040 $as_echo "pre-installed
" >&6; }
18043 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18044 # We already found the complete path
18045 ac_dir=`dirname $LIPO_FOR_TARGET`
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18047 $as_echo "pre-installed
in $ac_dir" >&6; }
18048 elif test "x
$target" = "x
$host"; then
18049 # We can use an host tool
18050 LIPO_FOR_TARGET='$(LIPO)'
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18052 $as_echo "host tool
" >&6; }
18054 # We need a cross tool
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18056 $as_echo "pre-installed
" >&6; }
18060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
18061 $as_echo_n "checking where to
find the target nm...
" >&6; }
18062 if test "x
${build}" != "x
${host}" ; then
18063 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18064 # We already found the complete path
18065 ac_dir=`dirname $NM_FOR_TARGET`
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18067 $as_echo "pre-installed
in $ac_dir" >&6; }
18069 # Canadian cross, just use what we found
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18071 $as_echo "pre-installed
" >&6; }
18075 case " ${configdirs} " in
18080 if test $ok = yes; then
18081 # An in-tree tool is available and we can use it
18082 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18084 $as_echo "just compiled
" >&6; }
18085 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18086 # We already found the complete path
18087 ac_dir=`dirname $NM_FOR_TARGET`
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18089 $as_echo "pre-installed
in $ac_dir" >&6; }
18090 elif test "x
$target" = "x
$host"; then
18091 # We can use an host tool
18092 NM_FOR_TARGET='$(NM)'
18093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18094 $as_echo "host tool
" >&6; }
18096 # We need a cross tool
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18098 $as_echo "pre-installed
" >&6; }
18102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
18103 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
18104 if test "x
${build}" != "x
${host}" ; then
18105 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18106 # We already found the complete path
18107 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18108 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18109 $as_echo "pre-installed
in $ac_dir" >&6; }
18111 # Canadian cross, just use what we found
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18113 $as_echo "pre-installed
" >&6; }
18117 case " ${configdirs} " in
18122 if test $ok = yes; then
18123 # An in-tree tool is available and we can use it
18124 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18126 $as_echo "just compiled
" >&6; }
18127 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18128 # We already found the complete path
18129 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18131 $as_echo "pre-installed
in $ac_dir" >&6; }
18132 elif test "x
$target" = "x
$host"; then
18133 # We can use an host tool
18134 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18136 $as_echo "host tool
" >&6; }
18138 # We need a cross tool
18139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18140 $as_echo "pre-installed
" >&6; }
18144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
18145 $as_echo_n "checking where to
find the target objdump...
" >&6; }
18146 if test "x
${build}" != "x
${host}" ; then
18147 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18148 # We already found the complete path
18149 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18151 $as_echo "pre-installed
in $ac_dir" >&6; }
18153 # Canadian cross, just use what we found
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18155 $as_echo "pre-installed
" >&6; }
18159 case " ${configdirs} " in
18164 if test $ok = yes; then
18165 # An in-tree tool is available and we can use it
18166 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18168 $as_echo "just compiled
" >&6; }
18169 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18170 # We already found the complete path
18171 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18173 $as_echo "pre-installed
in $ac_dir" >&6; }
18174 elif test "x
$target" = "x
$host"; then
18175 # We can use an host tool
18176 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18178 $as_echo "host tool
" >&6; }
18180 # We need a cross tool
18181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18182 $as_echo "pre-installed
" >&6; }
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
18187 $as_echo_n "checking where to
find the target otool...
" >&6; }
18188 if test "x
${build}" != "x
${host}" ; then
18189 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18190 # We already found the complete path
18191 ac_dir=`dirname $OTOOL_FOR_TARGET`
18192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18193 $as_echo "pre-installed
in $ac_dir" >&6; }
18195 # Canadian cross, just use what we found
18196 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18197 $as_echo "pre-installed
" >&6; }
18200 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18201 # We already found the complete path
18202 ac_dir=`dirname $OTOOL_FOR_TARGET`
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18204 $as_echo "pre-installed
in $ac_dir" >&6; }
18205 elif test "x
$target" = "x
$host"; then
18206 # We can use an host tool
18207 OTOOL_FOR_TARGET='$(OTOOL)'
18208 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18209 $as_echo "host tool
" >&6; }
18211 # We need a cross tool
18212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18213 $as_echo "pre-installed
" >&6; }
18217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
18218 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
18219 if test "x
${build}" != "x
${host}" ; then
18220 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18221 # We already found the complete path
18222 ac_dir=`dirname $RANLIB_FOR_TARGET`
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18224 $as_echo "pre-installed
in $ac_dir" >&6; }
18226 # Canadian cross, just use what we found
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18228 $as_echo "pre-installed
" >&6; }
18232 case " ${configdirs} " in
18237 if test $ok = yes; then
18238 # An in-tree tool is available and we can use it
18239 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18240 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18241 $as_echo "just compiled
" >&6; }
18242 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18243 # We already found the complete path
18244 ac_dir=`dirname $RANLIB_FOR_TARGET`
18245 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18246 $as_echo "pre-installed
in $ac_dir" >&6; }
18247 elif test "x
$target" = "x
$host"; then
18248 # We can use an host tool
18249 RANLIB_FOR_TARGET='$(RANLIB)'
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18251 $as_echo "host tool
" >&6; }
18253 # We need a cross tool
18254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18255 $as_echo "pre-installed
" >&6; }
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18260 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18261 if test "x
${build}" != "x
${host}" ; then
18262 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18263 # We already found the complete path
18264 ac_dir=`dirname $READELF_FOR_TARGET`
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18266 $as_echo "pre-installed
in $ac_dir" >&6; }
18268 # Canadian cross, just use what we found
18269 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18270 $as_echo "pre-installed
" >&6; }
18274 case " ${configdirs} " in
18279 if test $ok = yes; then
18280 # An in-tree tool is available and we can use it
18281 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18282 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18283 $as_echo "just compiled
" >&6; }
18284 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18285 # We already found the complete path
18286 ac_dir=`dirname $READELF_FOR_TARGET`
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18288 $as_echo "pre-installed
in $ac_dir" >&6; }
18289 elif test "x
$target" = "x
$host"; then
18290 # We can use an host tool
18291 READELF_FOR_TARGET='$(READELF)'
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18293 $as_echo "host tool
" >&6; }
18295 # We need a cross tool
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18297 $as_echo "pre-installed
" >&6; }
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18302 $as_echo_n "checking where to
find the target strip...
" >&6; }
18303 if test "x
${build}" != "x
${host}" ; then
18304 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18305 # We already found the complete path
18306 ac_dir=`dirname $STRIP_FOR_TARGET`
18307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18308 $as_echo "pre-installed
in $ac_dir" >&6; }
18310 # Canadian cross, just use what we found
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18312 $as_echo "pre-installed
" >&6; }
18316 case " ${configdirs} " in
18321 if test $ok = yes; then
18322 # An in-tree tool is available and we can use it
18323 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18325 $as_echo "just compiled
" >&6; }
18326 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18327 # We already found the complete path
18328 ac_dir=`dirname $STRIP_FOR_TARGET`
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18330 $as_echo "pre-installed
in $ac_dir" >&6; }
18331 elif test "x
$target" = "x
$host"; then
18332 # We can use an host tool
18333 STRIP_FOR_TARGET='$(STRIP)'
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18335 $as_echo "host tool
" >&6; }
18337 # We need a cross tool
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18339 $as_echo "pre-installed
" >&6; }
18343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18344 $as_echo_n "checking where to
find the target windres...
" >&6; }
18345 if test "x
${build}" != "x
${host}" ; then
18346 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18347 # We already found the complete path
18348 ac_dir=`dirname $WINDRES_FOR_TARGET`
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18350 $as_echo "pre-installed
in $ac_dir" >&6; }
18352 # Canadian cross, just use what we found
18353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18354 $as_echo "pre-installed
" >&6; }
18358 case " ${configdirs} " in
18363 if test $ok = yes; then
18364 # An in-tree tool is available and we can use it
18365 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18366 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18367 $as_echo "just compiled
" >&6; }
18368 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18369 # We already found the complete path
18370 ac_dir=`dirname $WINDRES_FOR_TARGET`
18371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18372 $as_echo "pre-installed
in $ac_dir" >&6; }
18373 elif test "x
$target" = "x
$host"; then
18374 # We can use an host tool
18375 WINDRES_FOR_TARGET='$(WINDRES)'
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18377 $as_echo "host tool
" >&6; }
18379 # We need a cross tool
18380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18381 $as_echo "pre-installed
" >&6; }
18385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18386 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18387 if test "x
${build}" != "x
${host}" ; then
18388 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18389 # We already found the complete path
18390 ac_dir=`dirname $WINDMC_FOR_TARGET`
18391 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18392 $as_echo "pre-installed
in $ac_dir" >&6; }
18394 # Canadian cross, just use what we found
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18396 $as_echo "pre-installed
" >&6; }
18400 case " ${configdirs} " in
18405 if test $ok = yes; then
18406 # An in-tree tool is available and we can use it
18407 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18409 $as_echo "just compiled
" >&6; }
18410 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18411 # We already found the complete path
18412 ac_dir=`dirname $WINDMC_FOR_TARGET`
18413 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18414 $as_echo "pre-installed
in $ac_dir" >&6; }
18415 elif test "x
$target" = "x
$host"; then
18416 # We can use an host tool
18417 WINDMC_FOR_TARGET='$(WINDMC)'
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18419 $as_echo "host tool
" >&6; }
18421 # We need a cross tool
18422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18423 $as_echo "pre-installed
" >&6; }
18431 # Certain tools may need extra flags.
18432 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18433 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18434 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18436 # When building target libraries, except in a Canadian cross, we use
18437 # the same toolchain as the compiler we just built.
18438 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18439 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18440 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18441 if test $host = $build; then
18442 case " $configdirs " in
18444 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18445 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18446 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18456 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18457 # Check whether --enable-maintainer-mode was given.
18458 if test "${enable_maintainer_mode+set}" = set; then :
18459 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18461 USE_MAINTAINER_MODE=no
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18465 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18468 if test "$USE_MAINTAINER_MODE" = yes; then
18469 MAINTAINER_MODE_TRUE=
18470 MAINTAINER_MODE_FALSE='#'
18472 MAINTAINER_MODE_TRUE='#'
18473 MAINTAINER_MODE_FALSE=
18475 MAINT=$MAINTAINER_MODE_TRUE
18477 # ---------------------
18478 # GCC bootstrap support
18479 # ---------------------
18481 # Stage specific cflags for build.
18486 yes) stage1_cflags="-g -Wa,-J" ;;
18487 *) stage1_cflags="-g -J" ;;
18493 # Enable --enable-checking in stage1 of the compiler.
18494 # Check whether --enable-stage1-checking was given.
18495 if test "${enable_stage1_checking+set}" = set; then :
18496 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18498 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18499 # For --disable-checking or implicit --enable-checking=release, avoid
18500 # setting --enable-checking=gc in the default stage1 checking for LTO
18501 # bootstraps. See PR62077.
18502 case $BUILD_CONFIG in
18504 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18506 stage1_checking=--enable-checking=yes,types;;
18508 if test "x
$enable_checking" = x && \
18509 test -d ${srcdir}/gcc && \
18510 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18511 stage1_checking=--enable-checking=yes,types,extra
18514 stage1_checking=--enable-checking=$enable_checking,types
18520 # Enable -Werror in bootstrap stage2 and later.
18521 # Check whether --enable-werror was given.
18522 if test "${enable_werror+set}" = set; then :
18523 enableval=$enable_werror;
18524 case ${enable_werror} in
18525 yes) stage2_werror_flag="--enable-werror-always" ;;
18526 *) stage2_werror_flag="" ;;
18531 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18532 case $BUILD_CONFIG in
18534 stage2_werror_flag="--enable-werror-always" ;;
18536 stage2_werror_flag="--enable-werror-always" ;;
18545 # Specify what files to not compare during bootstrap.
18547 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18549 hppa*64*-*-hpux*) ;;
18550 hppa*-*-hpux*) compare_exclusions="$compare_exclusions |
*/libgcc
/lib2funcs
* | gcc
/function-tests.o
" ;;
18551 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18555 ac_config_files="$ac_config_files Makefile
"
18557 cat >confcache <<\_ACEOF
18558 # This file is a shell script that caches the results of configure
18559 # tests run on this system so they can be shared between configure
18560 # scripts and configure runs, see configure's option --config-cache.
18561 # It is not useful on other systems. If it contains results you don't
18562 # want to keep, you may remove or edit it.
18564 # config.status only pays attention to the cache file if you give it
18565 # the --recheck option to rerun configure.
18567 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18568 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18569 # following values.
18573 # The following way of writing the cache mishandles newlines in values,
18574 # but we know of no workaround that is simple, portable, and efficient.
18575 # So, we kill variables containing newlines.
18576 # Ultrix sh set writes to stderr and can't be redirected directly,
18577 # and sets the high bit in the cache file unless we assign to the vars.
18579 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18580 eval ac_val=\$$ac_var
18584 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18585 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18588 _ | IFS | as_nl) ;; #(
18589 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18590 *) { eval $ac_var=; unset $ac_var;} ;;
18596 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18597 *${as_nl}ac_space=\ *)
18598 # `set' does not quote correctly, so add quotes: double-quote
18599 # substitution turns \\\\ into \\, and sed turns \\ into \.
18602 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18605 # `set' quotes correctly as required by POSIX, so do not add quotes.
18606 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18615 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18617 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18619 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18620 if test -w "$cache_file"; then
18621 if test "x
$cache_file" != "x
/dev
/null
"; then
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18623 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18624 if test ! -f "$cache_file" || test -h "$cache_file"; then
18625 cat confcache >"$cache_file"
18627 case $cache_file in #(
18629 mv -f confcache "$cache_file"$$ &&
18630 mv -f "$cache_file"$$ "$cache_file" ;; #(
18632 mv -f confcache "$cache_file" ;;
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18638 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18643 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18644 # Let make expand exec_prefix.
18645 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18647 # Transform confdefs.h into DEFS.
18648 # Protect against shell expansion while executing Makefile rules.
18649 # Protect against Makefile macro expansion.
18651 # If the first sed substitution is executed (which looks for macros that
18652 # take arguments), then branch to the quote section. Otherwise,
18653 # look for a macro that doesn't take arguments.
18663 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18665 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18669 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18682 DEFS=`sed -n "$ac_script" confdefs.h`
18688 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18689 # 1. Remove the extension, and $U if already installed.
18690 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18691 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18692 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18693 # will be set to the directory where LIBOBJS objects are built.
18694 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18695 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
18697 LIBOBJS=$ac_libobjs
18699 LTLIBOBJS=$ac_ltlibobjs
18703 : "${CONFIG_STATUS=./config.status}"
18705 ac_clean_files_save=$ac_clean_files
18706 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18707 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18708 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18710 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18712 # Generated by $as_me.
18713 # Run this file to recreate the current configuration.
18714 # Compiler output produced by configure, useful for debugging
18715 # configure, is in config.log if it exists.
18718 ac_cs_recheck=false
18721 SHELL=\${CONFIG_SHELL-$SHELL}
18724 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18725 ## -------------------- ##
18726 ## M4sh Initialization. ##
18727 ## -------------------- ##
18729 # Be more Bourne compatible
18730 DUALCASE=1; export DUALCASE # for MKS sh
18731 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18734 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18735 # is contrary to our usage. Disable this feature.
18736 alias -g '${1+"$@"}'='"$@"'
18737 setopt NO_GLOB_SUBST
18739 case `(set -o) 2>/dev/null` in #(
18751 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18752 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18753 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
18754 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18755 # Prefer a ksh shell builtin over an external printf program on Solaris,
18756 # but without wasting forks for bash or zsh.
18757 if test -z "$BASH_VERSION$ZSH_VERSION" \
18758 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18759 as_echo
='print -r --'
18760 as_echo_n
='print -rn --'
18761 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18762 as_echo
='printf %s\n'
18763 as_echo_n
='printf %s'
18765 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18766 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
18767 as_echo_n
='/usr/ucb/echo -n'
18769 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
18770 as_echo_n_body
='eval
18774 expr "X$arg" : "X\\(.*\\)$as_nl";
18775 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18777 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18779 export as_echo_n_body
18780 as_echo_n
='sh -c $as_echo_n_body as_echo'
18782 export as_echo_body
18783 as_echo
='sh -c $as_echo_body as_echo'
18786 # The user is always right.
18787 if test "${PATH_SEPARATOR+set}" != set; then
18789 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
18790 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
18797 # We need space, tab and new line, in precisely that order. Quoting is
18798 # there to prevent editors from complaining about space-tab.
18799 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18800 # splitting by setting IFS to empty value.)
18803 # Find who we are. Look in the path if we contain no directory separator.
18806 *[\\/]* ) as_myself
=$0 ;;
18807 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18808 for as_dir
in $PATH
18811 test -z "$as_dir" && as_dir
=.
18812 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18818 # We did not find ourselves, most probably we were run as `sh COMMAND'
18819 # in which case we are not to be found in the path.
18820 if test "x$as_myself" = x
; then
18823 if test ! -f "$as_myself"; then
18824 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18828 # Unset variables that we do not need and which cause bugs (e.g. in
18829 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18830 # suppresses any "Segmentation fault" message there. '((' could
18831 # trigger a bug in pdksh 5.2.14.
18832 for as_var
in BASH_ENV ENV MAIL MAILPATH
18833 do eval test x\
${$as_var+set} = xset \
18834 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18847 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18850 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18851 # ----------------------------------------
18852 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18853 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18854 # script with STATUS, using 1 if that was 0.
18857 as_status
=$1; test $as_status -eq 0 && as_status
=1
18859 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18860 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18862 $as_echo "$as_me: error: $2" >&2
18863 as_fn_exit
$as_status
18867 # as_fn_set_status STATUS
18868 # -----------------------
18869 # Set $? to STATUS, without forking.
18870 as_fn_set_status
()
18873 } # as_fn_set_status
18875 # as_fn_exit STATUS
18876 # -----------------
18877 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18881 as_fn_set_status
$1
18887 # Portably unset VAR.
18890 { eval $1=; unset $1;}
18892 as_unset
=as_fn_unset
18893 # as_fn_append VAR VALUE
18894 # ----------------------
18895 # Append the text in VALUE to the end of the definition contained in VAR. Take
18896 # advantage of any shell optimizations that allow amortized linear growth over
18897 # repeated appends, instead of the typical quadratic growth present in naive
18899 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18900 eval 'as_fn_append ()
18911 # as_fn_arith ARG...
18912 # ------------------
18913 # Perform arithmetic evaluation on the ARGs, and store the result in the
18914 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18915 # must be portable across $(()) and expr.
18916 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18917 eval 'as_fn_arith ()
18924 as_val
=`expr "$@" || test $? -eq 1`
18929 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18930 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18936 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18937 as_basename
=basename
18942 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18948 as_me
=`$as_basename -- "$0" ||
18949 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18950 X"$0" : 'X\(//\)$' \| \
18951 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18953 sed '/^.*\/\([^/][^/]*\)\/*$/{
18967 # Avoid depending upon Character Ranges.
18968 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18969 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18970 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18971 as_cr_digits
='0123456789'
18972 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18974 ECHO_C
= ECHO_N
= ECHO_T
=
18975 case `echo -n x` in #(((((
18977 case `echo 'xy\c'` in
18978 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18980 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18987 rm -f conf$$ conf$$.exe conf$$.
file
18988 if test -d conf$$.dir
; then
18989 rm -f conf$$.dir
/conf$$.
file
18992 mkdir conf$$.dir
2>/dev
/null
18994 if (echo >conf$$.
file) 2>/dev
/null
; then
18995 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18997 # ... but there are two gotchas:
18998 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18999 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19000 # In both cases, we have to default to `cp -pR'.
19001 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19003 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19011 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19012 rmdir conf$$.dir
2>/dev
/null
19017 # Create "$as_dir" as a directory, including parents if necessary.
19022 -*) as_dir
=.
/$as_dir;;
19024 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19028 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19029 *) as_qdir
=$as_dir;;
19031 as_dirs
="'$as_qdir' $as_dirs"
19032 as_dir
=`$as_dirname -- "$as_dir" ||
19033 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19034 X"$as_dir" : 'X\(//\)[^/]' \| \
19035 X"$as_dir" : 'X\(//\)$' \| \
19036 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19037 $as_echo X"$as_dir" |
19038 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19042 /^X\(\/\/\)[^/].*/{
19055 test -d "$as_dir" && break
19057 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19058 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19062 if mkdir
-p .
2>/dev
/null
; then
19063 as_mkdir_p
='mkdir -p "$as_dir"'
19065 test -d .
/-p && rmdir .
/-p
19070 # as_fn_executable_p FILE
19071 # -----------------------
19072 # Test if FILE is an executable regular file.
19073 as_fn_executable_p
()
19075 test -f "$1" && test -x "$1"
19076 } # as_fn_executable_p
19077 as_test_x
='test -x'
19078 as_executable_p
=as_fn_executable_p
19080 # Sed expression to map a string onto a valid CPP name.
19081 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19083 # Sed expression to map a string onto a valid variable name.
19084 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19088 ## ----------------------------------- ##
19089 ## Main body of $CONFIG_STATUS script. ##
19090 ## ----------------------------------- ##
19092 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19094 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19095 # Save the log message, to keep $0 and so on meaningful, and to
19096 # report actual input values of CONFIG_FILES etc. instead of their
19097 # values after options handling.
19099 This file was extended by $as_me, which was
19100 generated by GNU Autoconf 2.69. Invocation command line was
19102 CONFIG_FILES = $CONFIG_FILES
19103 CONFIG_HEADERS = $CONFIG_HEADERS
19104 CONFIG_LINKS = $CONFIG_LINKS
19105 CONFIG_COMMANDS = $CONFIG_COMMANDS
19108 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19113 case $ac_config_files in *"
19114 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19119 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19120 # Files that config.status was made for.
19121 config_files="$ac_config_files"
19125 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19127 \`$as_me' instantiates files and other configuration actions
19128 from templates according to the current configuration. Unless the files
19129 and actions are specified as TAGs, all are instantiated by default.
19131 Usage: $0 [OPTION]... [TAG]...
19133 -h, --help print this help, then exit
19134 -V, --version print version number and configuration settings, then exit
19135 --config print configuration, then exit
19136 -q, --quiet, --silent
19137 do not print progress messages
19138 -d, --debug don't remove temporary files
19139 --recheck update $as_me by reconfiguring in the same conditions
19140 --file=FILE[:TEMPLATE]
19141 instantiate the configuration file FILE
19143 Configuration files:
19146 Report bugs to the package provider."
19149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19150 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19153 configured by $0, generated by GNU Autoconf 2.69,
19154 with options \\"\$ac_cs_config\\"
19156 Copyright (C) 2012 Free Software Foundation, Inc.
19157 This config.status script is free software; the Free Software Foundation
19158 gives unlimited permission to copy, distribute and modify it."
19164 test -n "\$AWK" || AWK=awk
19167 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19168 # The default lists apply if the user does not specify any file.
19174 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19175 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19179 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19191 # Handling of the options.
19192 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19194 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19195 $as_echo "$ac_cs_version"; exit ;;
19196 --config |
--confi |
--conf |
--con |
--co |
--c )
19197 $as_echo "$ac_cs_config"; exit ;;
19198 --debug |
--debu |
--deb |
--de |
--d |
-d )
19200 --file |
--fil |
--fi |
--f )
19203 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19204 '') as_fn_error $?
"missing file argument" ;;
19206 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19207 ac_need_defaults
=false
;;
19208 --he |
--h |
--help |
--hel |
-h )
19209 $as_echo "$ac_cs_usage"; exit ;;
19210 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19211 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19214 # This is an error.
19215 -*) as_fn_error $?
"unrecognized option: \`$1'
19216 Try \`$0 --help' for more information." ;;
19218 *) as_fn_append ac_config_targets
" $1"
19219 ac_need_defaults
=false
;;
19225 ac_configure_extra_args
=
19227 if $ac_cs_silent; then
19229 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19233 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19234 if \$ac_cs_recheck; then
19235 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19237 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19238 CONFIG_SHELL='$SHELL'
19239 export CONFIG_SHELL
19244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19248 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19249 ## Running $as_me. ##
19255 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19259 extrasub_build="$extrasub_build"
19260 extrasub_host="$extrasub_host"
19261 extrasub_target="$extrasub_target"
19265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19267 # Handling of arguments.
19268 for ac_config_target
in $ac_config_targets
19270 case $ac_config_target in
19271 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19273 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19278 # If the user did not use the arguments to specify the items to instantiate,
19279 # then the envvar interface is used. Set only those that are not.
19280 # We use the long form for the default assignment because of an extremely
19281 # bizarre bug on SunOS 4.1.3.
19282 if $ac_need_defaults; then
19283 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19286 # Have a temporary directory for convenience. Make it in the build tree
19287 # simply because there is no reason against having it here, and in addition,
19288 # creating and moving files from /tmp can sometimes cause problems.
19289 # Hook for its removal unless debugging.
19290 # Note that there is a small window in which the directory will not be cleaned:
19291 # after its creation but before its name has been assigned to `$tmp'.
19295 trap 'exit_status=$?
19296 : "${ac_tmp:=$tmp}"
19297 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19299 trap 'as_fn_exit 1' 1 2 13 15
19301 # Create a (secure) tmp directory for tmp files.
19304 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19308 tmp
=.
/conf$$
-$RANDOM
19309 (umask 077 && mkdir
"$tmp")
19310 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19313 # Set up the scripts for CONFIG_FILES section.
19314 # No need to generate them if there are no CONFIG_FILES.
19315 # This happens for instance with `./config.status config.h'.
19316 if test -n "$CONFIG_FILES"; then
19318 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19319 ac_cs_awk_getline
=:
19320 ac_cs_awk_pipe_init
=
19321 ac_cs_awk_read_file
='
19322 while ((getline aline < (F[key])) > 0)
19325 ac_cs_awk_pipe_fini
=
19327 ac_cs_awk_getline
=false
19328 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19329 ac_cs_awk_read_file
='
19331 print "cat " F[key] " &&"
19332 '$ac_cs_awk_pipe_init
19333 # The final `:' finishes the AND list.
19334 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19336 ac_cr
=`echo X | tr X '\015'`
19337 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19338 # But we know of no other shell where ac_cr would be empty at this
19339 # point, so we can use a bashism as a fallback.
19340 if test "x$ac_cr" = x
; then
19341 eval ac_cr
=\$
\'\\r
\'
19343 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19344 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19347 ac_cs_awk_cr
=$ac_cr
19350 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19353 # Create commands to substitute file output variables.
19355 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19356 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19357 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19360 } >conf$
$files.sh
&&
19361 . .
/conf$
$files.sh ||
19362 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19363 rm -f conf$
$files.sh
19366 echo "cat >conf$$subs.awk <<_ACEOF" &&
19367 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19369 } >conf$$subs.sh ||
19370 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19371 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19373 for ac_last_try in false false false false false :; do
19374 . ./conf$$subs.sh ||
19375 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19377 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19378 if test $ac_delim_n = $ac_delim_num; then
19380 elif $ac_last_try; then
19381 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19383 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19386 rm -f conf$$subs.sh
19388 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19389 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19393 s/^/S["/; s
/!.
*/"]=/
19403 s/\(.\{148\}\)..*/\1/
19405 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19410 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19417 s/\(.\{148\}\)..*/\1/
19419 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19423 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19428 ' <conf$$subs.awk | sed '
19433 ' >>$CONFIG_STATUS || ac_write_fail=1
19434 rm -f conf$$subs.awk
19435 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19437 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19438 for (key in S) S_is_set[key] = 1
19440 \$ac_cs_awk_pipe_init
19444 nfields = split(line, field, "@
")
19446 len = length(field[1])
19447 for (i = 2; i < nfields; i++) {
19449 keylen = length(key)
19450 if (S_is_set[key]) {
19452 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19453 len += length(value) + length(field[++i])
19458 if (nfields == 3 && !substed) {
19460 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19461 \$ac_cs_awk_read_file
19467 \$ac_cs_awk_pipe_fini
19470 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19471 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19472 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19475 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19476 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19479 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19480 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19481 # trailing colons and then remove the whole line if VPATH becomes empty
19482 # (actually we leave an empty line to preserve line numbers).
19483 if test "x
$srcdir" = x.; then
19484 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19503 fi # test -n "$CONFIG_FILES"
19506 eval set X " :F
$CONFIG_FILES "
19511 :[FHLC]) ac_mode=$ac_tag; continue;;
19513 case $ac_mode$ac_tag in
19515 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19516 :[FH]-) ac_tag=-:-;;
19517 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19534 -) ac_f="$ac_tmp/stdin";;
19535 *) # Look for the file first in the build tree, then in the source tree
19536 # (if the path is not absolute). The absolute path cannot be DOS-style,
19537 # because $ac_f cannot contain `:'.
19541 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19543 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19545 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19546 as_fn_append ac_file_inputs " '$ac_f'"
19549 # Let's still pretend it is `configure' which instantiates (i.e., don't
19550 # use $as_me), people would be surprised to read:
19551 # /* config.h. Generated by config.status. */
19552 configure_input='Generated from '`
19553 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19555 if test x"$ac_file" != x-; then
19556 configure_input="$ac_file.
$configure_input"
19557 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19558 $as_echo "$as_me: creating
$ac_file" >&6;}
19560 # Neutralize special characters interpreted by sed in replacement strings.
19561 case $configure_input in #(
19562 *\&* | *\|* | *\\* )
19563 ac_sed_conf_input=`$as_echo "$configure_input" |
19564 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19565 *) ac_sed_conf_input=$configure_input;;
19569 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19570 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19575 ac_dir=`$as_dirname -- "$ac_file" ||
19576 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19577 X"$ac_file" : 'X\(//\)[^/]' \| \
19578 X"$ac_file" : 'X\(//\)$' \| \
19579 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19580 $as_echo X"$ac_file" |
19581 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19585 /^X\(\/\/\)[^/].*/{
19598 as_dir="$ac_dir"; as_fn_mkdir_p
19602 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19604 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19605 # A "..
" for each directory in $ac_dir_suffix.
19606 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19607 case $ac_top_builddir_sub in
19608 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19609 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19612 ac_abs_top_builddir=$ac_pwd
19613 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19614 # for backward compatibility:
19615 ac_top_builddir=$ac_top_build_prefix
19618 .) # We are building in place.
19620 ac_top_srcdir=$ac_top_builddir_sub
19621 ac_abs_top_srcdir=$ac_pwd ;;
19622 [\\/]* | ?:[\\/]* ) # Absolute name.
19623 ac_srcdir=$srcdir$ac_dir_suffix;
19624 ac_top_srcdir=$srcdir
19625 ac_abs_top_srcdir=$srcdir ;;
19626 *) # Relative name.
19627 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19628 ac_top_srcdir=$ac_top_build_prefix$srcdir
19629 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19631 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19641 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19642 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19646 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19647 # If the template does not know about datarootdir, expand it.
19648 # FIXME: This hack should be removed a few years after 2.60.
19649 ac_datarootdir_hack=; ac_datarootdir_seen=
19660 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19661 *datarootdir*) ac_datarootdir_seen=yes;;
19662 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19664 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19666 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19667 ac_datarootdir_hack='
19668 s&@datadir@&$datadir&g
19669 s&@docdir@&$docdir&g
19670 s&@infodir@&$infodir&g
19671 s&@localedir@&$localedir&g
19672 s&@mandir@&$mandir&g
19673 s&\\\${datarootdir}&$datarootdir&g' ;;
19677 # Neutralize VPATH when `$srcdir' = `.'.
19678 # Shell code in configure.ac might set extrasub.
19679 # FIXME: do we really want to maintain this feature?
19680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19681 ac_sed_extra="$ac_vpsub
19684 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19686 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19687 s|@configure_input@|
$ac_sed_conf_input|
;t t
19688 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19689 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19690 s
&@srcdir@
&$ac_srcdir&;t t
19691 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19692 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19693 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19694 s
&@builddir@
&$ac_builddir&;t t
19695 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19696 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19697 s
&@INSTALL@
&$ac_INSTALL&;t t
19698 $ac_datarootdir_hack
19700 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19701 if $ac_cs_awk_getline; then
19702 $AWK -f "$ac_tmp/subs.
awk"
19704 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19706 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19708 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19709 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19710 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19711 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19713 which seems to be undefined. Please make sure it is defined" >&5
19714 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19715 which seems to be undefined. Please make sure it is defined" >&2;}
19717 rm -f "$ac_tmp/stdin"
19719 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19720 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19722 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19730 case $ac_file$ac_mode in
19731 "Makefile":F) sed "$extrasub_build" Makefile |
19732 sed "$extrasub_host" |
19733 sed "$extrasub_target" > mf$$
19734 mv -f mf$$ Makefile ;;
19742 ac_clean_files=$ac_clean_files_save
19744 test $ac_write_fail = 0 ||
19745 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19748 # configure is writing to config.log, and then calls config.status.
19749 # config.status does its own redirection, appending to config.log.
19750 # Unfortunately, on DOS this fails, as config.log is still kept open
19751 # by configure, so config.status won't be able to
write to it
; its
19752 # output is simply discarded. So we exec the FD to /dev/null,
19753 # effectively closing config.log, so it can be properly (re)opened and
19754 # appended to by config.status. When coming back to configure, we
19755 # need to make the FD available again.
19756 if test "$no_create" != yes; then
19758 ac_config_status_args
=
19759 test "$silent" = yes &&
19760 ac_config_status_args
="$ac_config_status_args --quiet"
19762 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19764 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19765 # would make configure fail if this is the last instruction.
19766 $ac_cs_success || as_fn_exit
1
19768 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19770 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}