2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE
=1; export DUALCASE
# for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="move-if-change"
586 enable_option_checking
=no
587 ac_subst_vars
='LTLIBOBJS
594 MAINTAINER_MODE_FALSE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
685 DEBUG_PREFIX_CFLAGS_FOR_TARGET
686 SYSROOT_CFLAGS_FOR_TARGET
688 extra_host_zlib_configure_flags
689 extra_host_libiberty_configure_flags
692 extra_linker_plugin_flags
693 extra_linker_plugin_configure_flags
700 extra_isl_gmp_configure_flags
701 extra_mpc_mpfr_configure_flags
702 extra_mpc_gmp_configure_flags
703 extra_mpfr_configure_flags
725 extra_liboffloadmic_configure_flags
752 TOPLEVEL_CONFIGURE_ARGUMENTS
780 program_transform_name
791 ac_subst_files
='serialization_dependencies
797 enable_option_checking
801 enable_as_accelerator_for
802 enable_offload_targets
803 enable_offload_defaulted
807 enable_compressed_debug_sections
808 enable_default_compressed_debug_sections_algorithm
811 enable_libquadmath_support
828 with_static_standard_libraries
835 enable_isl_version_check
837 enable_linker_plugin_configure_flags
838 enable_linker_plugin_flags
840 enable_stage1_languages
843 with_target_bdw_gc_include
844 with_target_bdw_gc_lib
845 with_gcc_major_version_only
847 with_debug_prefix_map
850 enable_serial_configure
851 with_build_time_tools
852 enable_maintainer_mode
853 enable_stage1_checking
856 ac_precious_vars
='build_alias
908 # Initialize some variables set by options.
910 ac_init_version
=false
911 ac_unrecognized_opts
=
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
922 program_transform_name
=s
,x
,x
,
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir
='${exec_prefix}/bin'
937 sbindir
='${exec_prefix}/sbin'
938 libexecdir
='${exec_prefix}/libexec'
939 datarootdir
='${prefix}/share'
940 datadir
='${datarootdir}'
941 sysconfdir
='${prefix}/etc'
942 sharedstatedir
='${prefix}/com'
943 localstatedir
='${prefix}/var'
944 includedir
='${prefix}/include'
945 oldincludedir
='/usr/include'
946 docdir
='${datarootdir}/doc/${PACKAGE}'
947 infodir
='${datarootdir}/info'
952 libdir
='${exec_prefix}/lib'
953 localedir
='${datarootdir}/locale'
954 mandir
='${datarootdir}/man'
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\
$ac_option
968 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
973 # Accept the important Cygnus configure options, so we can diagnose typos.
975 case $ac_dashdash$ac_option in
979 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
981 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
984 -build |
--build |
--buil |
--bui |
--bu)
985 ac_prev
=build_alias
;;
986 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
987 build_alias
=$ac_optarg ;;
989 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
990 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
991 ac_prev
=cache_file
;;
992 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
993 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
994 cache_file
=$ac_optarg ;;
997 cache_file
=config.cache
;;
999 -datadir |
--datadir |
--datadi |
--datad)
1001 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1002 datadir
=$ac_optarg ;;
1004 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1005 |
--dataroo |
--dataro |
--datar)
1006 ac_prev
=datarootdir
;;
1007 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1008 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1009 datarootdir
=$ac_optarg ;;
1011 -disable-* |
--disable-*)
1012 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1013 # Reject names that are not valid shell variable names.
1014 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1015 as_fn_error $?
"invalid feature name: $ac_useropt"
1016 ac_useropt_orig
=$ac_useropt
1017 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1018 case $ac_user_opts in
1020 "enable_
$ac_useropt"
1022 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1023 ac_unrecognized_sep
=', ';;
1025 eval enable_
$ac_useropt=no
;;
1027 -docdir |
--docdir |
--docdi |
--doc |
--do)
1029 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1030 docdir
=$ac_optarg ;;
1032 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1034 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1035 dvidir
=$ac_optarg ;;
1037 -enable-* |
--enable-*)
1038 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1039 # Reject names that are not valid shell variable names.
1040 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1041 as_fn_error $?
"invalid feature name: $ac_useropt"
1042 ac_useropt_orig
=$ac_useropt
1043 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1044 case $ac_user_opts in
1046 "enable_
$ac_useropt"
1048 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1049 ac_unrecognized_sep
=', ';;
1051 eval enable_
$ac_useropt=\
$ac_optarg ;;
1053 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1054 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1055 |
--exec |
--exe |
--ex)
1056 ac_prev
=exec_prefix
;;
1057 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1058 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1059 |
--exec=* |
--exe=* |
--ex=*)
1060 exec_prefix
=$ac_optarg ;;
1062 -gas |
--gas |
--ga |
--g)
1063 # Obsolete; use --with-gas.
1066 -help |
--help |
--hel |
--he |
-h)
1067 ac_init_help
=long
;;
1068 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1069 ac_init_help
=recursive
;;
1070 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1071 ac_init_help
=short
;;
1073 -host |
--host |
--hos |
--ho)
1074 ac_prev
=host_alias
;;
1075 -host=* |
--host=* |
--hos=* |
--ho=*)
1076 host_alias
=$ac_optarg ;;
1078 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1080 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1082 htmldir
=$ac_optarg ;;
1084 -includedir |
--includedir |
--includedi |
--included |
--include \
1085 |
--includ |
--inclu |
--incl |
--inc)
1086 ac_prev
=includedir
;;
1087 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1088 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1089 includedir
=$ac_optarg ;;
1091 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1093 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1094 infodir
=$ac_optarg ;;
1096 -libdir |
--libdir |
--libdi |
--libd)
1098 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1099 libdir
=$ac_optarg ;;
1101 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1102 |
--libexe |
--libex |
--libe)
1103 ac_prev
=libexecdir
;;
1104 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1105 |
--libexe=* |
--libex=* |
--libe=*)
1106 libexecdir
=$ac_optarg ;;
1108 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1109 ac_prev
=localedir
;;
1110 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1111 localedir
=$ac_optarg ;;
1113 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1114 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1115 ac_prev
=localstatedir
;;
1116 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1117 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1118 localstatedir
=$ac_optarg ;;
1120 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1122 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1123 mandir
=$ac_optarg ;;
1125 -nfp |
--nfp |
--nf)
1126 # Obsolete; use --without-fp.
1129 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1130 |
--no-cr |
--no-c |
-n)
1133 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1134 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1137 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1138 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1139 |
--oldin |
--oldi |
--old |
--ol |
--o)
1140 ac_prev
=oldincludedir
;;
1141 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1142 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1143 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1144 oldincludedir
=$ac_optarg ;;
1146 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1148 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1149 prefix
=$ac_optarg ;;
1151 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1152 |
--program-pre |
--program-pr |
--program-p)
1153 ac_prev
=program_prefix
;;
1154 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1155 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1156 program_prefix
=$ac_optarg ;;
1158 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1159 |
--program-suf |
--program-su |
--program-s)
1160 ac_prev
=program_suffix
;;
1161 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1162 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1163 program_suffix
=$ac_optarg ;;
1165 -program-transform-name |
--program-transform-name \
1166 |
--program-transform-nam |
--program-transform-na \
1167 |
--program-transform-n |
--program-transform- \
1168 |
--program-transform |
--program-transfor \
1169 |
--program-transfo |
--program-transf \
1170 |
--program-trans |
--program-tran \
1171 |
--progr-tra |
--program-tr |
--program-t)
1172 ac_prev
=program_transform_name
;;
1173 -program-transform-name=* |
--program-transform-name=* \
1174 |
--program-transform-nam=* |
--program-transform-na=* \
1175 |
--program-transform-n=* |
--program-transform-=* \
1176 |
--program-transform=* |
--program-transfor=* \
1177 |
--program-transfo=* |
--program-transf=* \
1178 |
--program-trans=* |
--program-tran=* \
1179 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1180 program_transform_name
=$ac_optarg ;;
1182 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1184 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1185 pdfdir
=$ac_optarg ;;
1187 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1189 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1192 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1193 |
-silent |
--silent |
--silen |
--sile |
--sil)
1196 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1198 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1200 sbindir
=$ac_optarg ;;
1202 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1203 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1204 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1206 ac_prev
=sharedstatedir
;;
1207 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1208 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1209 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1211 sharedstatedir
=$ac_optarg ;;
1213 -site |
--site |
--sit)
1215 -site=* |
--site=* |
--sit=*)
1218 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1220 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1221 srcdir
=$ac_optarg ;;
1223 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1224 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1225 ac_prev
=sysconfdir
;;
1226 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1227 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1228 sysconfdir
=$ac_optarg ;;
1230 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1231 ac_prev
=target_alias
;;
1232 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1233 target_alias
=$ac_optarg ;;
1235 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1238 -version |
--version |
--versio |
--versi |
--vers |
-V)
1239 ac_init_version
=: ;;
1242 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1243 # Reject names that are not valid shell variable names.
1244 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1245 as_fn_error $?
"invalid package name: $ac_useropt"
1246 ac_useropt_orig
=$ac_useropt
1247 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1248 case $ac_user_opts in
1252 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1253 ac_unrecognized_sep
=', ';;
1255 eval with_
$ac_useropt=\
$ac_optarg ;;
1257 -without-* |
--without-*)
1258 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1259 # Reject names that are not valid shell variable names.
1260 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1261 as_fn_error $?
"invalid package name: $ac_useropt"
1262 ac_useropt_orig
=$ac_useropt
1263 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1264 case $ac_user_opts in
1268 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1269 ac_unrecognized_sep
=', ';;
1271 eval with_
$ac_useropt=no
;;
1274 # Obsolete; use --with-x.
1277 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1278 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1279 ac_prev
=x_includes
;;
1280 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1281 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1282 x_includes
=$ac_optarg ;;
1284 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1285 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1286 ac_prev
=x_libraries
;;
1287 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1288 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1289 x_libraries
=$ac_optarg ;;
1291 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1292 Try \`$0 --help' for more information"
1296 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1297 # Reject names that are not valid shell variable names.
1298 case $ac_envvar in #(
1299 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1300 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1302 eval $ac_envvar=\
$ac_optarg
1303 export $ac_envvar ;;
1306 # FIXME: should be removed in autoconf 3.0.
1307 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1308 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1309 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1310 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1316 if test -n "$ac_prev"; then
1317 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1318 as_fn_error $?
"missing argument to $ac_option"
1321 if test -n "$ac_unrecognized_opts"; then
1322 case $enable_option_checking in
1324 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1325 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1329 # Check all directory arguments for consistency.
1330 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1331 datadir sysconfdir sharedstatedir localstatedir includedir \
1332 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1333 libdir localedir mandir
1335 eval ac_val
=\$
$ac_var
1336 # Remove trailing slashes.
1339 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1340 eval $ac_var=\
$ac_val;;
1342 # Be sure to have absolute directory names.
1344 [\\/$
]* | ?
:[\\/]* ) continue;;
1345 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1347 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1350 # There might be people who depend on the old broken behavior: `$host'
1351 # used to hold the argument of --host etc.
1352 # FIXME: To remove some day.
1355 target
=$target_alias
1357 # FIXME: To remove some day.
1358 if test "x$host_alias" != x
; then
1359 if test "x$build_alias" = x
; then
1360 cross_compiling
=maybe
1361 elif test "x$build_alias" != "x$host_alias"; then
1367 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1369 test "$silent" = yes && exec 6>/dev
/null
1372 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1373 ac_ls_di
=`ls -di .` &&
1374 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1375 as_fn_error $?
"working directory cannot be determined"
1376 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1377 as_fn_error $?
"pwd does not report name of working directory"
1380 # Find the source files, if location was not specified.
1381 if test -z "$srcdir"; then
1382 ac_srcdir_defaulted
=yes
1383 # Try the directory containing this script, then the parent directory.
1384 ac_confdir
=`$as_dirname -- "$as_myself" ||
1385 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1386 X"$as_myself" : 'X\(//\)[^/]' \| \
1387 X"$as_myself" : 'X\(//\)$' \| \
1388 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1389 $as_echo X"$as_myself" |
1390 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1408 if test ! -r "$srcdir/$ac_unique_file"; then
1412 ac_srcdir_defaulted
=no
1414 if test ! -r "$srcdir/$ac_unique_file"; then
1415 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1416 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1418 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1420 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1422 # When building in place, set srcdir=.
1423 if test "$ac_abs_confdir" = "$ac_pwd"; then
1426 # Remove unnecessary trailing slashes from srcdir.
1427 # Double slashes in file names in object file debugging info
1428 # mess up M-x gdb in Emacs.
1430 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1434 as_fn_error $?
"path to source, $srcdir, contains spaces"
1437 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1439 for ac_var
in $ac_precious_vars; do
1440 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1441 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1442 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1443 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1447 # Report the --help message.
1449 if test "$ac_init_help" = "long"; then
1450 # Omit some internal or obsolete options to make the list less imposing.
1451 # This message is too long to be a string in the A/UX 3.1 sh.
1453 \`configure' configures this package to adapt to many kinds of systems.
1455 Usage: $0 [OPTION]... [VAR=VALUE]...
1457 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1458 VAR=VALUE. See below for descriptions of some of the useful variables.
1460 Defaults for the options are specified in brackets.
1463 -h, --help display this help and exit
1464 --help=short display options specific to this package
1465 --help=recursive display the short help of all the included packages
1466 -V, --version display version information and exit
1467 -q, --quiet, --silent do not print \`checking ...' messages
1468 --cache-file=FILE cache test results in FILE [disabled]
1469 -C, --config-cache alias for \`--cache-file=config.cache'
1470 -n, --no-create do not create output files
1471 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1473 Installation directories:
1474 --prefix=PREFIX install architecture-independent files in PREFIX
1475 [$ac_default_prefix]
1476 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1479 By default, \`make install' will install all the files in
1480 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1481 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1482 for instance \`--prefix=\$HOME'.
1484 For better control, use the options below.
1486 Fine tuning of the installation directories:
1487 --bindir=DIR user executables [EPREFIX/bin]
1488 --sbindir=DIR system admin executables [EPREFIX/sbin]
1489 --libexecdir=DIR program executables [EPREFIX/libexec]
1490 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1491 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1492 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1493 --libdir=DIR object code libraries [EPREFIX/lib]
1494 --includedir=DIR C header files [PREFIX/include]
1495 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1496 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1497 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1498 --infodir=DIR info documentation [DATAROOTDIR/info]
1499 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1500 --mandir=DIR man documentation [DATAROOTDIR/man]
1501 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1502 --htmldir=DIR html documentation [DOCDIR]
1503 --dvidir=DIR dvi documentation [DOCDIR]
1504 --pdfdir=DIR pdf documentation [DOCDIR]
1505 --psdir=DIR ps documentation [DOCDIR]
1511 --program-prefix=PREFIX prepend PREFIX to installed program names
1512 --program-suffix=SUFFIX append SUFFIX to installed program names
1513 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1516 --build=BUILD configure
for building on BUILD
[guessed
]
1517 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1518 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1522 if test -n "$ac_init_help"; then
1527 --disable-option-checking ignore unrecognized
--enable/--with options
1528 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1529 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1530 --enable-as-accelerator-for=ARG
1531 build as offload target compiler. Specify offload
1533 --enable-offload-targets=LIST
1534 enable offloading to devices from comma-separated
1535 LIST of TARGET
[=DIR
]. Use optional path to
find
1536 offload target compiler during the build
1537 --enable-offload-defaulted
1538 If enabled
, configured but not installed offload compilers and
1539 libgomp plugins are silently ignored. Useful
for distribution
1540 compilers where those are
in separate optional packages.
1542 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1543 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1544 --enable-gprofng[=ARG
] build gprofng
[ARG
={yes,no
}]
1545 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1546 Enable compressed debug sections
for gas
, gold or ld
1548 --enable-default-compressed-debug-sections-algorithm={zlib
,zstd
}
1549 Default compression algorithm
for
1550 --enable-compressed-debug-sections.
1551 --enable-year2038 enable support
for timestamps past the year
2038
1552 --disable-libquadmath do not build libquadmath directory
1553 --disable-libquadmath-support
1554 disable libquadmath support
for Fortran
1555 --enable-libada build libada directory
1556 --enable-libssp build libssp directory
1557 --disable-libstdcxx do not build libstdc
++-v3 directory
1558 --enable-liboffloadmic=ARG
1559 build liboffloadmic
[ARG
={no
,host,target
}]
1560 --enable-bootstrap enable bootstrapping
[yes if native build
]
1561 --enable-pgo-build[=lto
]
1562 enable the PGO build
1563 --disable-isl-version-check
1564 disable check
for isl version
1565 --enable-lto enable link
time optimization support
1566 --enable-linker-plugin-configure-flags=FLAGS
1567 additional flags
for configuring linker plugins
1569 --enable-linker-plugin-flags=FLAGS
1570 additional flags
for configuring and building linker
1572 --enable-host-shared build
host code as shared libraries
1573 --enable-stage1-languages[=all
]
1574 choose additional languages to build during stage1.
1575 Mostly useful
for compiler development
1576 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1578 --enable-vtable-verify Enable vtable verification feature
1579 --enable-serial-[{host,target,build}-]configure
1580 force sequential configuration of sub-packages for
1581 the host, target or build machine, or all
1583 --enable-maintainer-mode
1584 enable make rules and dependencies not useful (and
1585 sometimes confusing) to the casual installer
1586 --enable-stage1-checking[=all]
1587 choose additional checking for stage1 of the
1589 --enable-werror enable -Werror in bootstrap stage2 and later
1592 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1593 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1594 --with-build-libsubdir=DIR Directory where to find libraries for build system
1595 --with-system-zlib use installed libz
1596 --with-zstd Support zstd compressed debug sections
1598 --with-mpc=PATH specify prefix directory for installed MPC package.
1599 Equivalent to --with-mpc-include=PATH/include plus
1600 --with-mpc-lib=PATH/lib
1601 --with-mpc-include=PATH specify directory for installed MPC include files
1602 --with-mpc-lib=PATH specify directory for the installed MPC library
1603 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1604 Equivalent to --with-mpfr-include=PATH/include plus
1605 --with-mpfr-lib=PATH/lib
1606 --with-mpfr-include=PATH
1607 specify directory for installed MPFR include files
1608 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1609 --with-gmp=PATH specify prefix directory for the installed GMP
1610 package. Equivalent to
1611 --with-gmp-include=PATH/include plus
1612 --with-gmp-lib=PATH/lib
1613 --with-gmp-include=PATH specify directory for installed GMP include files
1614 --with-gmp-lib=PATH specify directory for the installed GMP library
1615 --with-stage1-libs=LIBS libraries for stage1
1616 --with-static-standard-libraries
1617 use -static-libstdc++ and -static-libgcc
1619 --with-stage1-ldflags=FLAGS
1620 linker flags for stage1
1621 --with-boot-libs=LIBS libraries for stage2 and later
1622 --with-boot-ldflags=FLAGS
1623 linker flags for stage2 and later
1624 --with-isl=PATH Specify prefix directory for the installed isl
1625 package. Equivalent to
1626 --with-isl-include=PATH/include plus
1627 --with-isl-lib=PATH/lib
1628 --with-isl-include=PATH Specify directory for installed isl include files
1629 --with-isl-lib=PATH Specify the directory for the installed isl library
1630 --with-target-bdw-gc=PATHLIST
1631 specify prefix directory for installed bdw-gc
1632 package. Equivalent to
1633 --with-target-bdw-gc-include=PATH/include plus
1634 --with-target-bdw-gc-lib=PATH/lib
1635 --with-target-bdw-gc-include=PATHLIST
1636 specify directories for installed bdw-gc include
1638 --with-target-bdw-gc-lib=PATHLIST
1639 specify directories for installed bdw-gc library
1640 --with-gcc-major-version-only
1641 use only GCC major number in filesystem paths
1642 --with-build-sysroot=SYSROOT
1643 use sysroot as the system root during the build
1644 --with-debug-prefix-map='A
=B C
=D ...
'
1645 map A to B, C to D ... in debug information
1646 --with-build-config='NAME NAME2...
'
1647 use config/NAME.mk build configuration
1648 --with-build-time-tools=PATH
1649 use given path to find target tools during the build
1651 Some influential environment variables:
1652 CC C compiler command
1653 CFLAGS C compiler flags
1654 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1655 nonstandard directory <lib dir>
1656 LIBS libraries to pass to the linker, e.g. -l<library>
1657 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1658 you have headers in a nonstandard directory <include dir>
1659 CXX C++ compiler command
1660 CXXFLAGS C++ compiler flags
1662 additional configure arguments for build directories
1664 additional configure arguments for host directories
1666 additional configure arguments for target directories
1669 DLLTOOL DLLTOOL for the host
1670 DSYMUTIL DSYMUTIL for the host
1672 LIPO LIPO for the host
1674 RANLIB RANLIB for the host
1675 STRIP STRIP for the host
1676 WINDRES WINDRES for the host
1677 WINDMC WINDMC for the host
1678 OBJCOPY OBJCOPY for the host
1679 OBJDUMP OBJDUMP for the host
1680 OTOOL OTOOL for the host
1681 READELF READELF for the host
1689 GFORTRAN for the target
1699 DLLTOOL for the target
1701 DSYMUTIL for the target
1709 OBJCOPY for the target
1711 OBJDUMP for the target
1713 OTOOL for the target
1715 RANLIB for the target
1717 READELF for the target
1719 STRIP for the target
1721 WINDRES for the target
1723 WINDMC for the target
1725 Use these variables to override the choices made by `configure' or to
help
1726 it to
find libraries and programs with nonstandard names
/locations.
1728 Report bugs to the package provider.
1733 if test "$ac_init_help" = "recursive"; then
1734 # If there are subdirs, report their specific --help.
1735 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1736 test -d "$ac_dir" ||
1737 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1742 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1744 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1745 # A ".." for each directory in $ac_dir_suffix.
1746 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1747 case $ac_top_builddir_sub in
1748 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1749 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1752 ac_abs_top_builddir
=$ac_pwd
1753 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1754 # for backward compatibility:
1755 ac_top_builddir
=$ac_top_build_prefix
1758 .
) # We are building in place.
1760 ac_top_srcdir
=$ac_top_builddir_sub
1761 ac_abs_top_srcdir
=$ac_pwd ;;
1762 [\\/]* | ?
:[\\/]* ) # Absolute name.
1763 ac_srcdir
=$srcdir$ac_dir_suffix;
1764 ac_top_srcdir
=$srcdir
1765 ac_abs_top_srcdir
=$srcdir ;;
1767 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1768 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1769 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1771 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1773 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1774 # Check for guested configure.
1775 if test -f "$ac_srcdir/configure.gnu"; then
1777 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1778 elif test -f "$ac_srcdir/configure"; then
1780 $SHELL "$ac_srcdir/configure" --help=recursive
1782 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1784 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1788 test -n "$ac_init_help" && exit $ac_status
1789 if $ac_init_version; then
1792 generated by GNU Autoconf
2.69
1794 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1795 This configure
script is free software
; the Free Software Foundation
1796 gives unlimited permission to copy
, distribute and modify it.
1801 ## ------------------------ ##
1802 ## Autoconf initialization. ##
1803 ## ------------------------ ##
1805 # ac_fn_c_try_compile LINENO
1806 # --------------------------
1807 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1808 ac_fn_c_try_compile
()
1810 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1811 rm -f conftest.
$ac_objext
1812 if { { ac_try
="$ac_compile"
1814 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1815 *) ac_try_echo=$ac_try;;
1817 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1818 $as_echo "$ac_try_echo"; } >&5
1819 (eval "$ac_compile") 2>conftest.err
1821 if test -s conftest.err; then
1822 grep -v '^ *+' conftest.err >conftest.er1
1823 cat conftest.er1 >&5
1824 mv -f conftest.er1 conftest.err
1826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1827 test $ac_status = 0; } && {
1828 test -z "$ac_c_werror_flag" ||
1829 test ! -s conftest.err
1830 } && test -s conftest.$ac_objext; then :
1833 $as_echo "$as_me: failed program was:" >&5
1834 sed 's/^/| /' conftest.$ac_ext >&5
1838 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 as_fn_set_status $ac_retval
1841 } # ac_fn_c_try_compile
1843 # ac_fn_cxx_try_compile LINENO
1844 # ----------------------------
1845 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1846 ac_fn_cxx_try_compile ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 rm -f conftest.$ac_objext
1850 if { { ac_try="$ac_compile"
1852 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1853 *) ac_try_echo
=$ac_try;;
1855 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1856 $as_echo "$ac_try_echo"; } >&5
1857 (eval "$ac_compile") 2>conftest.err
1859 if test -s conftest.err
; then
1860 grep -v '^ *+' conftest.err
>conftest.er1
1861 cat conftest.er1
>&5
1862 mv -f conftest.er1 conftest.err
1864 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1865 test $ac_status = 0; } && {
1866 test -z "$ac_cxx_werror_flag" ||
1867 test ! -s conftest.err
1868 } && test -s conftest.
$ac_objext; then :
1871 $as_echo "$as_me: failed program was:" >&5
1872 sed 's/^/| /' conftest.
$ac_ext >&5
1876 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1877 as_fn_set_status
$ac_retval
1879 } # ac_fn_cxx_try_compile
1881 # ac_fn_cxx_try_link LINENO
1882 # -------------------------
1883 # Try to link conftest.$ac_ext, and return whether this succeeded.
1884 ac_fn_cxx_try_link
()
1886 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1887 rm -f conftest.
$ac_objext conftest
$ac_exeext
1888 if { { ac_try
="$ac_link"
1890 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1891 *) ac_try_echo=$ac_try;;
1893 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1894 $as_echo "$ac_try_echo"; } >&5
1895 (eval "$ac_link") 2>conftest.err
1897 if test -s conftest.err; then
1898 grep -v '^ *+' conftest.err >conftest.er1
1899 cat conftest.er1 >&5
1900 mv -f conftest.er1 conftest.err
1902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1903 test $ac_status = 0; } && {
1904 test -z "$ac_cxx_werror_flag" ||
1905 test ! -s conftest.err
1906 } && test -s conftest$ac_exeext && {
1907 test "$cross_compiling" = yes ||
1908 test -x conftest$ac_exeext
1912 $as_echo "$as_me: failed program was:" >&5
1913 sed 's/^/| /' conftest.$ac_ext >&5
1917 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1918 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1919 # interfere with the next link command; also delete a directory that is
1920 # left behind by Apple's compiler. We do this before executing the actions.
1921 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1922 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1923 as_fn_set_status $ac_retval
1925 } # ac_fn_cxx_try_link
1927 # ac_fn_c_try_link LINENO
1928 # -----------------------
1929 # Try to link conftest.$ac_ext, and return whether this succeeded.
1932 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933 rm -f conftest.$ac_objext conftest$ac_exeext
1934 if { { ac_try="$ac_link"
1936 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1937 *) ac_try_echo
=$ac_try;;
1939 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940 $as_echo "$ac_try_echo"; } >&5
1941 (eval "$ac_link") 2>conftest.err
1943 if test -s conftest.err
; then
1944 grep -v '^ *+' conftest.err
>conftest.er1
1945 cat conftest.er1
>&5
1946 mv -f conftest.er1 conftest.err
1948 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949 test $ac_status = 0; } && {
1950 test -z "$ac_c_werror_flag" ||
1951 test ! -s conftest.err
1952 } && test -s conftest
$ac_exeext && {
1953 test "$cross_compiling" = yes ||
1954 test -x conftest
$ac_exeext
1958 $as_echo "$as_me: failed program was:" >&5
1959 sed 's/^/| /' conftest.
$ac_ext >&5
1963 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1964 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1965 # interfere with the next link command; also delete a directory that is
1966 # left behind by Apple's compiler. We do this before executing the actions.
1967 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1968 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1969 as_fn_set_status
$ac_retval
1971 } # ac_fn_c_try_link
1972 cat >config.log
<<_ACEOF
1973 This file contains any messages produced by compilers while
1974 running configure, to aid debugging if configure makes a mistake.
1976 It was created by $as_me, which was
1977 generated by GNU Autoconf 2.69. Invocation command line was
1989 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1990 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1991 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1992 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1993 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1995 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1996 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1998 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1999 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2000 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2001 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2002 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2003 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2004 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2008 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2012 test -z "$as_dir" && as_dir
=.
2013 $as_echo "PATH: $as_dir"
2029 # Keep a trace of the command line.
2030 # Strip out --no-create and --no-recursion so they do not pile up.
2031 # Strip out --silent because we don't want to record it for future runs.
2032 # Also quote any args containing shell meta-characters.
2033 # Make two passes to allow for proper duplicate-argument suppression.
2037 ac_must_keep_next
=false
2043 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2044 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2045 |
-silent |
--silent |
--silen |
--sile |
--sil)
2048 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2051 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2053 as_fn_append ac_configure_args1
" '$ac_arg'"
2054 if test $ac_must_keep_next = true
; then
2055 ac_must_keep_next
=false
# Got value, back to normal.
2058 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2059 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2060 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2061 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2062 case "$ac_configure_args0 " in
2063 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2066 -* ) ac_must_keep_next
=true
;;
2069 as_fn_append ac_configure_args
" '$ac_arg'"
2074 { ac_configure_args0
=; unset ac_configure_args0
;}
2075 { ac_configure_args1
=; unset ac_configure_args1
;}
2077 # When interrupted or exit'd, cleanup temporary files, and complete
2078 # config.log. We remove comments because anyway the quotes in there
2079 # would cause problems or look ugly.
2080 # WARNING: Use '\'' to represent an apostrophe within the trap.
2081 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2082 trap 'exit_status=$?
2083 # Save into config.log some information that might help in debugging.
2087 $as_echo "## ---------------- ##
2088 ## Cache variables. ##
2089 ## ---------------- ##"
2091 # The following way of writing the cache mishandles newlines in values,
2093 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2094 eval ac_val=\$$ac_var
2098 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2099 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2102 _ | IFS | as_nl) ;; #(
2103 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2104 *) { eval $ac_var=; unset $ac_var;} ;;
2109 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2110 *${as_nl}ac_space=\ *)
2112 "s/'\''/'\''\\\\'\'''\''/g;
2113 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2116 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2123 $as_echo "## ----------------- ##
2124 ## Output variables. ##
2125 ## ----------------- ##"
2127 for ac_var in $ac_subst_vars
2129 eval ac_val=\$$ac_var
2131 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2133 $as_echo "$ac_var='\''$ac_val'\''"
2137 if test -n "$ac_subst_files"; then
2138 $as_echo "## ------------------- ##
2139 ## File substitutions. ##
2140 ## ------------------- ##"
2142 for ac_var
in $ac_subst_files
2144 eval ac_val
=\$
$ac_var
2146 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2148 $as_echo "$ac_var='\''$ac_val'\''"
2153 if test -s confdefs.h; then
2154 $as_echo "## ----------- ##
2161 test "$ac_signal" != 0 &&
2162 $as_echo "$as_me: caught signal $ac_signal"
2163 $as_echo "$as_me: exit $exit_status"
2165 rm -f core *.core core.conftest.* &&
2166 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2169 for ac_signal
in 1 2 13 15; do
2170 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2174 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2175 rm -f -r conftest
* confdefs.h
2177 $as_echo "/* confdefs.h */" > confdefs.h
2179 # Predefined preprocessor variables.
2181 cat >>confdefs.h
<<_ACEOF
2182 #define PACKAGE_NAME "$PACKAGE_NAME"
2185 cat >>confdefs.h
<<_ACEOF
2186 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2189 cat >>confdefs.h
<<_ACEOF
2190 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2193 cat >>confdefs.h
<<_ACEOF
2194 #define PACKAGE_STRING "$PACKAGE_STRING"
2197 cat >>confdefs.h
<<_ACEOF
2198 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2201 cat >>confdefs.h
<<_ACEOF
2202 #define PACKAGE_URL "$PACKAGE_URL"
2206 # Let the site file select an alternate cache file if it wants to.
2207 # Prefer an explicitly selected file to automatically selected ones.
2210 if test -n "$CONFIG_SITE"; then
2211 # We do not want a PATH search for config.site.
2212 case $CONFIG_SITE in #((
2213 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2214 */*) ac_site_file1
=$CONFIG_SITE;;
2215 *) ac_site_file1
=.
/$CONFIG_SITE;;
2217 elif test "x$prefix" != xNONE
; then
2218 ac_site_file1
=$prefix/share
/config.site
2219 ac_site_file2
=$prefix/etc
/config.site
2221 ac_site_file1
=$ac_default_prefix/share
/config.site
2222 ac_site_file2
=$ac_default_prefix/etc
/config.site
2224 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2226 test "x$ac_site_file" = xNONE
&& continue
2227 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2228 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2229 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2230 sed 's/^/| /' "$ac_site_file" >&5
2232 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2233 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2234 as_fn_error $?
"failed to load site script $ac_site_file
2235 See \`config.log' for more details" "$LINENO" 5; }
2239 if test -r "$cache_file"; then
2240 # Some versions of bash will fail to source /dev/null (special files
2241 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2242 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2244 $as_echo "$as_me: loading cache $cache_file" >&6;}
2246 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2247 *) .
"./$cache_file";;
2251 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2252 $as_echo "$as_me: creating cache $cache_file" >&6;}
2256 # Check that the precious variables saved in the cache have kept the same
2258 ac_cache_corrupted
=false
2259 for ac_var
in $ac_precious_vars; do
2260 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2261 eval ac_new_set
=\
$ac_env_${ac_var}_set
2262 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2263 eval ac_new_val
=\
$ac_env_${ac_var}_value
2264 case $ac_old_set,$ac_new_set in
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2267 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2268 ac_cache_corrupted
=: ;;
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2271 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2272 ac_cache_corrupted
=: ;;
2275 if test "x$ac_old_val" != "x$ac_new_val"; then
2276 # differences in whitespace do not lead to failure.
2277 ac_old_val_w
=`echo x $ac_old_val`
2278 ac_new_val_w
=`echo x $ac_new_val`
2279 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2281 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2282 ac_cache_corrupted
=:
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2285 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2286 eval $ac_var=\
$ac_old_val
2288 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2289 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2290 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2291 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2294 # Pass precious variables to config.status.
2295 if test "$ac_new_set" = set; then
2297 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2298 *) ac_arg
=$ac_var=$ac_new_val ;;
2300 case " $ac_configure_args " in
2301 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2302 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2306 if $ac_cache_corrupted; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2310 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2311 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2313 ## -------------------- ##
2314 ## Main body of script. ##
2315 ## -------------------- ##
2318 ac_cpp
='$CPP $CPPFLAGS'
2319 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2320 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2321 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2331 # if PWD already has a value, it is probably wrong.
2332 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2334 # Export original configure arguments for use by sub-configures.
2335 # Quote arguments with shell meta charatcers.
2336 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2337 set -- "$progname" "$@"
2341 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2342 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2343 # if the argument is of the form -foo=baz, quote the baz part only
2344 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2347 # Add the quoted argument to the list.
2348 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2350 if test "$silent" = yes; then
2351 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2353 # Remove the initial space we just introduced and, as these will be
2354 # expanded by make, quote '$'.
2355 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2358 # Find the build, host, and target systems.
2360 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2361 if test -f "$ac_dir/install-sh"; then
2363 ac_install_sh
="$ac_aux_dir/install-sh -c"
2365 elif test -f "$ac_dir/install.sh"; then
2367 ac_install_sh
="$ac_aux_dir/install.sh -c"
2369 elif test -f "$ac_dir/shtool"; then
2371 ac_install_sh
="$ac_aux_dir/shtool install -c"
2375 if test -z "$ac_aux_dir"; then
2376 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2379 # These three variables are undocumented and unsupported,
2380 # and are intended to be withdrawn in a future Autoconf release.
2381 # They can cause serious problems if a builder's source tree is in a directory
2382 # whose full name contains unusual characters.
2383 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2384 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2385 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2388 # Make sure we can run config.sub.
2389 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2390 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2393 $as_echo_n "checking build system type... " >&6; }
2394 if ${ac_cv_build+:} false
; then :
2395 $as_echo_n "(cached) " >&6
2397 ac_build_alias
=$build_alias
2398 test "x$ac_build_alias" = x
&&
2399 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2400 test "x$ac_build_alias" = x
&&
2401 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2402 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2403 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2407 $as_echo "$ac_cv_build" >&6; }
2408 case $ac_cv_build in
2410 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2413 ac_save_IFS
=$IFS; IFS
='-'
2419 # Remember, the first character of IFS is used to create $*,
2420 # except with old shells:
2423 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2426 case ${build_alias} in
2427 "") build_noncanonical
=${build} ;;
2428 *) build_noncanonical
=${build_alias} ;;
2433 case ${host_alias} in
2434 "") host_noncanonical
=${build_noncanonical} ;;
2435 *) host_noncanonical
=${host_alias} ;;
2440 case ${target_alias} in
2441 "") target_noncanonical
=${host_noncanonical} ;;
2442 *) target_noncanonical
=${target_alias} ;;
2448 test "$host_noncanonical" = "$target_noncanonical" &&
2449 test "$program_prefix$program_suffix$program_transform_name" = \
2451 program_transform_name
=s
,y
,y
,
2453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2454 $as_echo_n "checking host system type... " >&6; }
2455 if ${ac_cv_host+:} false
; then :
2456 $as_echo_n "(cached) " >&6
2458 if test "x$host_alias" = x
; then
2459 ac_cv_host
=$ac_cv_build
2461 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2462 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2467 $as_echo "$ac_cv_host" >&6; }
2470 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2473 ac_save_IFS
=$IFS; IFS
='-'
2479 # Remember, the first character of IFS is used to create $*,
2480 # except with old shells:
2483 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2487 $as_echo_n "checking target system type... " >&6; }
2488 if ${ac_cv_target+:} false
; then :
2489 $as_echo_n "(cached) " >&6
2491 if test "x$target_alias" = x
; then
2492 ac_cv_target
=$ac_cv_host
2494 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2495 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2500 $as_echo "$ac_cv_target" >&6; }
2501 case $ac_cv_target in
2503 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2505 target
=$ac_cv_target
2506 ac_save_IFS
=$IFS; IFS
='-'
2512 # Remember, the first character of IFS is used to create $*,
2513 # except with old shells:
2516 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2519 # The aliases save the names the user supplied, while $host etc.
2520 # will get canonicalized.
2521 test -n "$target_alias" &&
2522 test "$program_prefix$program_suffix$program_transform_name" = \
2524 program_prefix
=${target_alias}-
2526 test "$program_prefix" != NONE
&&
2527 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2528 # Use a double $ so make ignores it.
2529 test "$program_suffix" != NONE
&&
2530 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2531 # Double any \ or $.
2532 # By default was `s,x,x', remove it if useless.
2533 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2534 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2538 # Get 'install' or 'install-sh' and its variants.
2539 # Find a good install program. We prefer a C program (faster),
2540 # so one script is as good as another. But avoid the broken or
2541 # incompatible versions:
2542 # SysV /etc/install, /usr/sbin/install
2543 # SunOS /usr/etc/install
2544 # IRIX /sbin/install
2546 # AmigaOS /C/install, which installs bootblocks on floppy discs
2547 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2548 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2549 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2550 # OS/2's system install, which has a completely different semantic
2551 # ./install, which can be erroneously created by make from ./install.sh.
2552 # Reject install programs that cannot install multiple files.
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2554 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2555 if test -z "$INSTALL"; then
2556 if ${ac_cv_path_install+:} false
; then :
2557 $as_echo_n "(cached) " >&6
2559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2563 test -z "$as_dir" && as_dir
=.
2564 # Account for people who put trailing slashes in PATH elements.
2565 case $as_dir/ in #((
2566 .
/ | .
// |
/[cC
]/* | \
2567 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2568 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2571 # OSF1 and SCO ODT 3.0 have their own names for install.
2572 # Don't use installbsd from OSF since it installs stuff as root
2574 for ac_prog
in ginstall scoinst
install; do
2575 for ac_exec_ext
in '' $ac_executable_extensions; do
2576 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2577 if test $ac_prog = install &&
2578 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2579 # AIX install. It has an incompatible calling convention.
2581 elif test $ac_prog = install &&
2582 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2583 # program-specific install script used by HP pwplus--don't use.
2586 rm -rf conftest.one conftest.two conftest.dir
2587 echo one
> conftest.one
2588 echo two
> conftest.two
2590 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2591 test -s conftest.one
&& test -s conftest.two
&&
2592 test -s conftest.dir
/conftest.one
&&
2593 test -s conftest.dir
/conftest.two
2595 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2608 rm -rf conftest.one conftest.two conftest.dir
2611 if test "${ac_cv_path_install+set}" = set; then
2612 INSTALL
=$ac_cv_path_install
2614 # As a last resort, use the slow shell script. Don't cache a
2615 # value for INSTALL within a source directory, because that will
2616 # break other packages using the cache if that directory is
2617 # removed, or if the value is a relative name.
2618 INSTALL
=$ac_install_sh
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2622 $as_echo "$INSTALL" >&6; }
2624 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2625 # It thinks the first close brace ends the variable substitution.
2626 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2628 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2630 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2633 $as_echo_n "checking whether ln works... " >&6; }
2634 if ${acx_cv_prog_LN+:} false
; then :
2635 $as_echo_n "(cached) " >&6
2637 rm -f conftestdata_t
2638 echo >conftestdata_f
2639 if ln conftestdata_f conftestdata_t
2>/dev
/null
2645 rm -f conftestdata_f conftestdata_t
2648 if test $acx_cv_prog_LN = no
; then
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2651 $as_echo "no, using $LN" >&6; }
2653 LN
="$acx_cv_prog_LN"
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2655 $as_echo "yes" >&6; }
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2659 $as_echo_n "checking whether ln -s works... " >&6; }
2661 if test "$LN_S" = "ln -s"; then
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2663 $as_echo "yes" >&6; }
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2666 $as_echo "no, using $LN_S" >&6; }
2669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2670 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2671 if ${ac_cv_path_SED+:} false
; then :
2672 $as_echo_n "(cached) " >&6
2674 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2675 for ac_i
in 1 2 3 4 5 6 7; do
2676 ac_script
="$ac_script$as_nl$ac_script"
2678 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2679 { ac_script
=; unset ac_script
;}
2680 if test -z "$SED"; then
2681 ac_path_SED_found
=false
2682 # Loop through the user's path and test for each of PROGNAME-LIST
2683 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2687 test -z "$as_dir" && as_dir
=.
2688 for ac_prog
in sed gsed
; do
2689 for ac_exec_ext
in '' $ac_executable_extensions; do
2690 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2691 as_fn_executable_p
"$ac_path_SED" ||
continue
2692 # Check for GNU ac_path_SED and select it if it is found.
2693 # Check for GNU $ac_path_SED
2694 case `"$ac_path_SED" --version 2>&1` in
2696 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2699 $as_echo_n 0123456789 >"conftest.in"
2702 cat "conftest.in" "conftest.in" >"conftest.tmp"
2703 mv "conftest.tmp" "conftest.in"
2704 cp "conftest.in" "conftest.nl"
2705 $as_echo '' >> "conftest.nl"
2706 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2707 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2708 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2709 if test $ac_count -gt ${ac_path_SED_max-0}; then
2710 # Best one so far, save it but keep looking for a better one
2711 ac_cv_path_SED
="$ac_path_SED"
2712 ac_path_SED_max
=$ac_count
2714 # 10*(2^10) chars as input seems more than enough
2715 test $ac_count -gt 10 && break
2717 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2720 $ac_path_SED_found && break 3
2725 if test -z "$ac_cv_path_SED"; then
2726 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2734 $as_echo "$ac_cv_path_SED" >&6; }
2735 SED
="$ac_cv_path_SED"
2738 for ac_prog
in gawk mawk nawk
awk
2740 # Extract the first word of "$ac_prog", so it can be a program name with args.
2741 set dummy
$ac_prog; ac_word
=$2
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2743 $as_echo_n "checking for $ac_word... " >&6; }
2744 if ${ac_cv_prog_AWK+:} false
; then :
2745 $as_echo_n "(cached) " >&6
2747 if test -n "$AWK"; then
2748 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2750 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2754 test -z "$as_dir" && as_dir
=.
2755 for ac_exec_ext
in '' $ac_executable_extensions; do
2756 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2757 ac_cv_prog_AWK
="$ac_prog"
2758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 if test -n "$AWK"; then
2769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2770 $as_echo "$AWK" >&6; }
2772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2773 $as_echo "no" >&6; }
2777 test -n "$AWK" && break
2781 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2783 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2785 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2786 INSTALL
="${srcpwd}/install-sh -c"
2789 # Set srcdir to "." if that's what it is.
2790 # This is important for multilib support.
2792 if test "${pwd}" = "${srcpwd}" ; then
2800 ### To add a new directory to the tree, first choose whether it is a target
2801 ### or a host dependent tool. Then put it into the appropriate list
2802 ### (library or tools, host or target), doing a dependency sort.
2804 # Subdirs will be configured in the order listed in build_configdirs,
2805 # configdirs, or target_configdirs; see the serialization section below.
2807 # Dependency sorting is only needed when *configuration* must be done in
2808 # a particular order. In all cases a dependency should be specified in
2809 # the Makefile, whether or not it's implicitly specified here.
2811 # Double entries in build_configdirs, configdirs, or target_configdirs may
2812 # cause circular dependencies and break everything horribly.
2814 # these library is used by various programs built for the build
2817 build_libs
="build-libiberty build-libcpp"
2819 # these tools are built for the build environment
2820 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2822 # these libraries are used by various programs built for the host environment
2824 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libiconv libctf"
2826 # these tools are built for the host environment
2827 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2828 # know that we are building the simulator.
2829 # binutils, gas and ld appear in that order because it makes sense to run
2830 # "make check" in that particular order.
2831 # If --enable-gold is used, "gold" may replace "ld".
2832 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"
2834 # these libraries are built for the target environment, and are built after
2835 # the host libraries and the host tools (which may be a cross compiler)
2836 # Note that libiberty is not a target library.
2837 target_libraries
="target-libgcc \
2838 target-libbacktrace \
2842 target-liboffloadmic \
2845 target-libstdc++-v3 \
2846 target-libsanitizer \
2849 target-libquadmath \
2850 target-libgfortran \
2858 # these tools are built using the target libraries, and are intended to
2859 # run only in the target environment
2861 # note: any program that *uses* libraries that are in the "target_libraries"
2862 # list belongs in this list.
2864 target_tools
="target-rda"
2866 ################################################################################
2868 ## All tools belong in one of the four categories, and are assigned above
2869 ## We assign ${configdirs} this way to remove all embedded newlines. This
2870 ## is important because configure will choke if they ever get through.
2871 ## ${configdirs} is directories we build using the host tools.
2872 ## ${target_configdirs} is directories we build using the target tools.
2873 configdirs
=`echo ${host_libs} ${host_tools}`
2874 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2875 build_configdirs
=`echo ${build_libs} ${build_tools}`
2879 ################################################################################
2881 srcname
="gnu development package"
2883 # This gets set non-empty for some net releases of packages.
2886 # Define is_cross_compiler to save on calls to 'test'.
2888 if test x
"${host}" = x
"${target}" ; then
2889 is_cross_compiler
=no
2891 is_cross_compiler
=yes
2894 # Find the build and target subdir names.
2896 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2897 # have matching libraries, they should use host libraries: Makefile.tpl
2898 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2899 # However, they still use the build modules, because the corresponding
2900 # host modules (e.g. bison) are only built for the host when bootstrap
2902 # - build_subdir is where we find build modules, and never changes.
2903 # - build_libsubdir is where we find build libraries, and can be overridden.
2905 # Prefix 'build-' so this never conflicts with target_subdir.
2906 build_subdir
="build-${build_noncanonical}"
2908 # Check whether --with-build-libsubdir was given.
2909 if test "${with_build_libsubdir+set}" = set; then :
2910 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2912 build_libsubdir
="$build_subdir"
2915 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2916 if ( test $srcdir = .
&& test -d gcc
) \
2917 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2918 host_subdir
="host-${host_noncanonical}"
2923 target_subdir
=${target_noncanonical}
2925 # Be sure to cover against remnants of an in-tree build.
2926 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2927 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2928 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2931 # Skipdirs are removed silently.
2933 # Noconfigdirs are removed loudly.
2937 # Make sure we don't let GNU ld be added if we didn't want it.
2938 if test x
$with_gnu_ld = xno
; then
2940 noconfigdirs
="$noconfigdirs ld gold"
2944 # Make sure we don't let GNU as be added if we didn't want it.
2945 if test x
$with_gnu_as = xno
; then
2947 noconfigdirs
="$noconfigdirs gas"
2952 # Check whether --with-system-zlib was given.
2953 if test "${with_system_zlib+set}" = set; then :
2954 withval
=$with_system_zlib;
2957 # Make sure we don't let ZLIB be added if we didn't want it.
2958 if test x
$with_system_zlib = xyes
; then
2959 use_included_zlib
=no
2960 noconfigdirs
="$noconfigdirs zlib"
2964 # Check whether --with-zstd was given.
2965 if test "${with_zstd+set}" = set; then :
2970 # some tools are so dependent upon X11 that if we're not building with X,
2971 # it's not even worth trying to configure, much less build, that tool.
2974 yes |
"") ;; # the default value for this tree is that X11 is available
2976 skipdirs
="${skipdirs} tk itcl libgui"
2977 # We won't be able to build gdbtk without X.
2980 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2983 # Some are only suitable for cross toolchains.
2984 # Remove these if host=target.
2985 cross_only
="target-libgloss target-newlib target-opcodes"
2987 case $is_cross_compiler in
2988 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2991 # If both --with-headers and --with-libs are specified, default to
2993 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2994 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2995 if test x
"${with_newlib}" = x
; then
3000 # Recognize --with-newlib/--without-newlib.
3001 case ${with_newlib} in
3002 no
) skipdirs
="${skipdirs} target-newlib" ;;
3003 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
3006 # Check whether --enable-as-accelerator-for was given.
3007 if test "${enable_as_accelerator_for+set}" = set; then :
3008 enableval
=$enable_as_accelerator_for;
3012 # Check whether --enable-offload-targets was given.
3013 if test "${enable_offload_targets+set}" = set; then :
3014 enableval
=$enable_offload_targets;
3015 if test x
"$enable_offload_targets" = x
; then
3016 as_fn_error $?
"no offload targets specified" "$LINENO" 5
3020 enable_offload_targets
=
3024 # Check whether --enable-offload-defaulted was given.
3025 if test "${enable_offload_defaulted+set}" = set; then :
3026 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3028 enable_offload_defaulted
=
3032 # Handle --enable-gold, --enable-ld.
3033 # --disable-gold [--enable-ld]
3034 # Build only ld. Default option.
3035 # --enable-gold [--enable-ld]
3036 # Build both gold and ld. Install gold as "ld.gold", install ld
3037 # as "ld.bfd" and "ld".
3038 # --enable-gold=default [--enable-ld]
3039 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3040 # install ld as "ld.bfd".
3041 # --enable-gold[=default] --disable-ld
3042 # Build only gold, which is then installed as both "ld.gold" and "ld".
3043 # --enable-gold --enable-ld=default
3044 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3046 # In other words, ld is default
3047 # --enable-gold=default --enable-ld=default
3051 # Check whether --enable-gold was given.
3052 if test "${enable_gold+set}" = set; then :
3053 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3058 case "${ENABLE_GOLD}" in
3060 # Check for ELF target.
3063 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3064 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3065 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3066 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3068 *-*-linux*aout
* |
*-*-linux*oldld
*)
3076 if test "$is_elf" = "yes"; then
3077 # Check for target supported by gold.
3079 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3080 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-* | loongarch
*-*-*)
3081 configdirs
="$configdirs gold"
3082 if test x
${ENABLE_GOLD} = xdefault
; then
3093 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3097 # Check whether --enable-ld was given.
3098 if test "${enable_ld+set}" = set; then :
3099 enableval
=$enable_ld; ENABLE_LD
=$enableval
3105 case "${ENABLE_LD}" in
3107 if test x
${default_ld} != x
; then
3108 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3114 if test x
${ENABLE_GOLD} != xyes
; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3116 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3118 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3121 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3125 # Check whether --enable-gprofng was given.
3126 if test "${enable_gprofng+set}" = set; then :
3127 enableval
=$enable_gprofng; enable_gprofng
=$enableval
3132 if test "$enable_gprofng" = "yes"; then
3134 x86_64-
*-linux* | i?
86-*-linux* | aarch64-
*-linux*)
3135 configdirs
="$configdirs gprofng"
3142 # Decide the default method for compressing debug sections.
3143 # Provide a configure time option to override our default.
3144 # Check whether --enable-compressed_debug_sections was given.
3145 if test "${enable_compressed_debug_sections+set}" = set; then :
3146 enableval
=$enable_compressed_debug_sections;
3147 if test x
"$enable_compressed_debug_sections" = xyes
; then
3148 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3152 enable_compressed_debug_sections
=
3156 # Select default compression algorithm.
3157 # Check whether --enable-default_compressed_debug_sections_algorithm was given.
3158 if test "${enable_default_compressed_debug_sections_algorithm+set}" = set; then :
3159 enableval
=$enable_default_compressed_debug_sections_algorithm;
3161 default_compressed_debug_sections_algorithm
=
3165 # Configure extra directories which are host specific
3169 configdirs
="$configdirs libtermcap" ;;
3172 # A target can indicate whether a language isn't supported for some reason.
3173 # Only spaces may be used in this macro; not newlines or tabs.
3174 unsupported_languages
=
3176 # Remove more programs from consideration, based on the host or
3177 # target this usually means that a port of the program doesn't
3181 i
[3456789]86-*-msdosdjgpp*)
3182 noconfigdirs
="$noconfigdirs tcl tk itcl"
3186 # Default to --disable-year2038 until we can handle differences between
3187 # projects that use gnulib (which understands year 2038) and projects that
3188 # do not (like BFD).
3189 # Check whether --enable-year2038 was given.
3190 if test "${enable_year2038+set}" = set; then :
3191 enableval
=$enable_year2038; ENABLE_YEAR2038
=$enableval
3197 if test "${ENABLE_YEAR2038}" = "no" ; then
3201 # Check whether --enable-libquadmath was given.
3202 if test "${enable_libquadmath+set}" = set; then :
3203 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3205 ENABLE_LIBQUADMATH
=yes
3208 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3209 noconfigdirs
="$noconfigdirs target-libquadmath"
3213 # Check whether --enable-libquadmath-support was given.
3214 if test "${enable_libquadmath_support+set}" = set; then :
3215 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3217 ENABLE_LIBQUADMATH_SUPPORT
=yes
3220 enable_libquadmath_support
=
3221 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3222 enable_libquadmath_support
=no
3226 # Check whether --enable-libada was given.
3227 if test "${enable_libada+set}" = set; then :
3228 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3233 if test "${ENABLE_LIBADA}" != "yes" ; then
3234 noconfigdirs
="$noconfigdirs gnattools"
3237 # Check whether --enable-libssp was given.
3238 if test "${enable_libssp+set}" = set; then :
3239 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3245 # Check whether --enable-libstdcxx was given.
3246 if test "${enable_libstdcxx+set}" = set; then :
3247 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3249 ENABLE_LIBSTDCXX
=default
3252 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3253 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3256 # If this is accelerator compiler and its target is intelmic we enable
3257 # target liboffloadmic by default. If this is compiler with offloading
3258 # for intelmic we enable host liboffloadmic by default. Otherwise
3259 # liboffloadmic is disabled by default.
3260 # Check whether --enable-liboffloadmic was given.
3261 if test "${enable_liboffloadmic+set}" = set; then :
3262 enableval
=$enable_liboffloadmic; case "$enableval" in
3264 enable_liboffloadmic
=$enableval ;;
3266 as_fn_error $?
"--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3269 if test x
"$enable_as_accelerator_for" != x
; then
3271 *-intelmic-* |
*-intelmicemul-*)
3272 enable_liboffloadmic
=target
3273 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=target"
3276 enable_liboffloadmic
=no
3280 case "${enable_offload_targets}" in
3281 *-intelmic-* |
*-intelmicemul-*)
3282 enable_liboffloadmic
=host
3283 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=host"
3286 enable_liboffloadmic
=no
3294 # Enable libgomp by default on hosted POSIX systems, and a few others.
3295 if test x
$enable_libgomp = x
; then
3297 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3299 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3301 *-*-solaris2* |
*-*-hpux11*)
3303 *-*-darwin* |
*-*-aix*)
3305 nvptx
*-*-* | amdgcn
*-*-*)
3308 noconfigdirs
="$noconfigdirs target-libgomp"
3313 # Disable libatomic on unsupported systems.
3314 if test -d ${srcdir}/libatomic
; then
3315 if test x
$enable_libatomic = x
; then
3316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3317 $as_echo_n "checking for libatomic support... " >&6; }
3318 if (srcdir
=${srcdir}/libatomic
; \
3319 .
${srcdir}/configure.tgt
; \
3320 test -n "$UNSUPPORTED")
3322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3323 $as_echo "no" >&6; }
3324 noconfigdirs
="$noconfigdirs target-libatomic"
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3327 $as_echo "yes" >&6; }
3332 # Disable liboffloadmic on unsupported systems.
3333 if test -d ${srcdir}/liboffloadmic
; then
3334 if test x
$enable_liboffloadmic != xno
; then
3335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3336 $as_echo_n "checking for liboffloadmic support... " >&6; }
3337 if (srcdir
=${srcdir}/liboffloadmic
; \
3338 .
${srcdir}/configure.tgt
; \
3339 test -n "$UNSUPPORTED")
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3342 $as_echo "no" >&6; }
3343 noconfigdirs
="$noconfigdirs target-liboffloadmic"
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3346 $as_echo "yes" >&6; }
3351 # Disable libitm on unsupported systems.
3352 if test -d ${srcdir}/libitm
; then
3353 if test x
$enable_libitm = x
; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3355 $as_echo_n "checking for libitm support... " >&6; }
3356 if (srcdir
=${srcdir}/libitm
; \
3357 .
${srcdir}/configure.tgt
; \
3358 test -n "$UNSUPPORTED")
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361 $as_echo "no" >&6; }
3362 noconfigdirs
="$noconfigdirs target-libitm"
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3365 $as_echo "yes" >&6; }
3370 # Disable libsanitizer on unsupported systems.
3371 if test -d ${srcdir}/libsanitizer
; then
3372 if test x
$enable_libsanitizer = x
; then
3373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3374 $as_echo_n "checking for libsanitizer support... " >&6; }
3375 if (srcdir
=${srcdir}/libsanitizer
; \
3376 .
${srcdir}/configure.tgt
; \
3377 test -n "$UNSUPPORTED")
3379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3380 $as_echo "no" >&6; }
3381 noconfigdirs
="$noconfigdirs target-libsanitizer"
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3384 $as_echo "yes" >&6; }
3389 # Disable libvtv on unsupported systems.
3390 if test -d ${srcdir}/libvtv
; then
3391 if test x
$enable_libvtv = x
; then
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3393 $as_echo_n "checking for libvtv support... " >&6; }
3394 if (srcdir
=${srcdir}/libvtv
; \
3395 .
${srcdir}/configure.tgt
; \
3396 test "$VTV_SUPPORTED" != "yes")
3398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3399 $as_echo "no" >&6; }
3400 noconfigdirs
="$noconfigdirs target-libvtv"
3402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3403 $as_echo "yes" >&6; }
3408 # Disable libquadmath for some systems.
3411 noconfigdirs
="$noconfigdirs target-libquadmath"
3413 # libquadmath is unused on AIX and libquadmath build process use of
3414 # LD_LIBRARY_PATH can break AIX bootstrap.
3415 powerpc-
*-aix* | rs6000-
*-aix*)
3416 noconfigdirs
="$noconfigdirs target-libquadmath"
3420 # Disable libssp for some systems.
3423 # No hosted I/O support.
3424 noconfigdirs
="$noconfigdirs target-libssp"
3427 noconfigdirs
="$noconfigdirs target-libssp"
3429 powerpc-
*-aix* | rs6000-
*-aix*)
3430 noconfigdirs
="$noconfigdirs target-libssp"
3433 # No hosted I/O support.
3434 noconfigdirs
="$noconfigdirs target-libssp"
3437 # libssp uses a misaligned load to trigger a fault, but the RL78
3438 # doesn't fault for those - instead, it gives a build-time error
3439 # for explicit misaligned loads.
3440 noconfigdirs
="$noconfigdirs target-libssp"
3443 # No hosted I/O support.
3444 noconfigdirs
="$noconfigdirs target-libssp"
3448 # Disable libstdc++-v3 for some systems.
3449 # Allow user to override this if they pass --enable-libstdcxx
3450 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3453 # VxWorks uses the Dinkumware C++ library.
3454 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3457 # Not ported/fails to build when using newlib.
3458 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3461 # the C++ libraries don't build on top of CE's C libraries
3462 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3465 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3468 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3471 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3476 # Disable C++ on systems where it is known to not work.
3477 # For testing, you can override this with --enable-languages=c++.
3478 case ,${enable_languages}, in
3484 unsupported_languages
="$unsupported_languages c++"
3490 # Disable Objc on systems where it is known to not work.
3491 # For testing, you can override this with --enable-languages=objc.
3492 case ,${enable_languages}, in
3498 unsupported_languages
="$unsupported_languages objc"
3504 # Disable D on systems where it is known to not work.
3505 # For testing, you can override this with --enable-languages=d.
3506 case ,${enable_languages}, in
3512 unsupported_languages
="$unsupported_languages d"
3518 # Disable libphobos on unsupported systems.
3519 # For testing, you can override this with --enable-libphobos.
3520 if test -d ${srcdir}/libphobos
; then
3521 if test x
$enable_libphobos = x
; then
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3523 $as_echo_n "checking for libphobos support... " >&6; }
3524 if (srcdir
=${srcdir}/libphobos
; \
3525 .
${srcdir}/configure.tgt
; \
3526 test "$LIBPHOBOS_SUPPORTED" != "yes")
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3530 noconfigdirs
="$noconfigdirs target-libphobos"
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3533 $as_echo "yes" >&6; }
3538 # Disable Fortran for some systems.
3541 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3542 unsupported_languages
="$unsupported_languages fortran"
3545 unsupported_languages
="$unsupported_languages fortran"
3549 # Disable libffi for some systems.
3553 i
[3456789]86-*-darwin*)
3555 x86_64-
*-darwin[912]*)
3558 noconfigdirs
="$noconfigdirs target-libffi"
3561 noconfigdirs
="$noconfigdirs target-libffi"
3564 noconfigdirs
="$noconfigdirs target-libffi"
3567 noconfigdirs
="$noconfigdirs target-libffi"
3570 noconfigdirs
="$noconfigdirs target-libffi"
3573 noconfigdirs
="$noconfigdirs target-libffi"
3576 noconfigdirs
="$noconfigdirs target-libffi"
3578 aarch64
*-*-freebsd*)
3579 noconfigdirs
="$noconfigdirs target-libffi"
3582 noconfigdirs
="$noconfigdirs target-libffi"
3585 noconfigdirs
="$noconfigdirs target-libffi"
3588 noconfigdirs
="$noconfigdirs target-libffi"
3591 noconfigdirs
="$noconfigdirs target-libffi"
3594 noconfigdirs
="$noconfigdirs target-libffi"
3596 cris-
*-* | crisv32-
*-*)
3600 *) # See PR46792 regarding target-libffi.
3601 noconfigdirs
="$noconfigdirs target-libffi";;
3605 noconfigdirs
="$noconfigdirs target-libffi"
3610 noconfigdirs
="$noconfigdirs target-libffi"
3613 noconfigdirs
="$noconfigdirs target-libffi"
3615 i
[3456789]86-w64-mingw*)
3616 noconfigdirs
="$noconfigdirs target-libffi"
3618 i
[3456789]86-*-mingw*)
3619 noconfigdirs
="$noconfigdirs target-libffi"
3622 noconfigdirs
="$noconfigdirs target-libffi"
3625 noconfigdirs
="$noconfigdirs target-libffi"
3632 noconfigdirs
="$noconfigdirs target-libffi"
3635 noconfigdirs
="$noconfigdirs target-libffi"
3639 # Disable the go frontend on systems where it is known to not work. Please keep
3640 # this in sync with contrib/config-list.mk.
3642 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3643 unsupported_languages
="$unsupported_languages go"
3647 # Only allow gdbserver on some systems.
3648 if test -d ${srcdir}/gdbserver
; then
3649 if test x
$enable_gdbserver = x
; then
3650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3651 $as_echo_n "checking for gdbserver support... " >&6; }
3652 if (srcdir
=${srcdir}/gdbserver
; \
3653 .
${srcdir}/configure.srv
; \
3654 test -n "$UNSUPPORTED")
3656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657 $as_echo "no" >&6; }
3658 noconfigdirs
="$noconfigdirs gdbserver"
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3661 $as_echo "yes" >&6; }
3666 # Disable libgo for some systems where it is known to not work.
3667 # For testing, you can easily override this with --enable-libgo.
3668 if test x
$enable_libgo = x
; then
3672 noconfigdirs
="$noconfigdirs target-libgo"
3674 *-*-cygwin* |
*-*-mingw*)
3675 noconfigdirs
="$noconfigdirs target-libgo"
3678 noconfigdirs
="$noconfigdirs target-libgo"
3683 # Default libgloss CPU subdirectory.
3684 libgloss_dir
="$target_cpu"
3687 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3691 libgloss_dir
=aarch64
3696 cris-
*-* | crisv32-
*-*)
3706 libgloss_dir
=loongarch
3708 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3709 libgloss_dir
=m68hc11
3711 m68
*-*-* | fido-
*-*)
3728 # Disable newlib and libgloss for various target OSes.
3731 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3733 i
[3456789]86-*-linux*)
3734 # This section makes it possible to build newlib natively on linux.
3735 # If we are using a cross compiler then don't configure newlib.
3736 if test x
${is_cross_compiler} != xno
; then
3737 noconfigdirs
="$noconfigdirs target-newlib"
3739 noconfigdirs
="$noconfigdirs target-libgloss"
3740 # If we are not using a cross compiler, do configure newlib.
3741 # Note however, that newlib will only be configured in this situation
3742 # if the --with-newlib option has been given, because otherwise
3743 # 'target-newlib' will appear in skipdirs.
3745 i
[3456789]86-*-rdos*)
3746 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3748 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3749 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3752 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3755 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3758 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3761 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3764 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3767 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3770 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3772 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3773 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3776 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3779 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3782 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3785 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3788 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3791 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3794 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3802 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3803 noconfigdirs
="$noconfigdirs sim target-rda"
3808 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3809 noconfigdirs
="$noconfigdirs sim target-rda"
3812 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3813 noconfigdirs
="$noconfigdirs sim target-rda"
3815 i
[3456789]86-*-darwin*)
3816 noconfigdirs
="$noconfigdirs ld gprof"
3817 noconfigdirs
="$noconfigdirs sim target-rda"
3819 x86_64-
*-darwin[912]*)
3820 noconfigdirs
="$noconfigdirs ld gas gprof"
3821 noconfigdirs
="$noconfigdirs sim target-rda"
3824 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3825 noconfigdirs
="$noconfigdirs sim target-rda"
3830 if test "x$with_gmp" = x \
3831 && ! test -d ${srcdir}/gmp \
3832 && test -f /usr
/local
/include
/gmp.h
; then
3837 # Remove unsupported stuff on all kaOS configurations.
3838 noconfigdirs
="$noconfigdirs target-libgloss"
3845 noconfigdirs
="$noconfigdirs target-libgloss"
3848 noconfigdirs
="$noconfigdirs target-libgloss"
3850 # The tpf target doesn't support gdb yet.
3852 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3855 noconfigdirs
="$noconfigdirs target-rda"
3860 # ld works, but does not support shared libraries.
3861 # gas doesn't generate exception information.
3862 noconfigdirs
="$noconfigdirs gas ld"
3865 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3868 # newlib is not 64 bit ready
3869 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3872 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3874 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3875 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3878 noconfigdirs
="$noconfigdirs sim"
3881 noconfigdirs
="$noconfigdirs target-libgloss"
3884 noconfigdirs
="$noconfigdirs ld target-libgloss"
3887 if test x
${with_avrlibc} != xno
; then
3888 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3891 c4x-
*-* | tic4x-
*-*)
3892 noconfigdirs
="$noconfigdirs target-libgloss"
3895 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3898 noconfigdirs
="$noconfigdirs target-libgloss"
3901 noconfigdirs
="$noconfigdirs gdb"
3904 noconfigdirs
="$noconfigdirs gdb"
3907 noconfigdirs
="$noconfigdirs target-rda gprof"
3910 noconfigdirs
="$noconfigdirs"
3913 noconfigdirs
="$noconfigdirs target-libgloss"
3916 noconfigdirs
="$noconfigdirs target-libgloss"
3918 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3921 noconfigdirs
="$noconfigdirs gdb"
3924 noconfigdirs
="$noconfigdirs gdb ld"
3932 hppa
*-*-openbsd* | \
3938 noconfigdirs
="$noconfigdirs ld"
3941 noconfigdirs
="$noconfigdirs gdb"
3944 # No gdb support yet.
3945 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3948 # No ld support yet.
3949 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3952 # No ld support yet.
3953 noconfigdirs
="$noconfigdirs libgui itcl ld"
3955 i
[3456789]86-w64-mingw*)
3957 i
[3456789]86-*-mingw*)
3958 target_configdirs
="$target_configdirs target-winsup"
3961 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3962 noconfigdirs
="$noconfigdirs target-libgloss"
3963 # always build newlib if winsup directory is present.
3964 if test -d "$srcdir/winsup/cygwin"; then
3965 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3966 elif test -d "$srcdir/newlib"; then
3967 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3971 noconfigdirs
="$noconfigdirs target-libgloss"
3973 i
[3456789]86-*-sco3.2v5
*)
3974 # The linker does not yet know about weak symbols in COFF,
3975 # and is not configured to handle mixed ELF and COFF.
3976 noconfigdirs
="$noconfigdirs ld target-libgloss"
3978 i
[3456789]86-*-sco*)
3979 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3981 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3982 noconfigdirs
="$noconfigdirs target-libgloss"
3984 i
[3456789]86-*-sysv4*)
3985 noconfigdirs
="$noconfigdirs target-libgloss"
3987 i
[3456789]86-*-beos*)
3988 noconfigdirs
="$noconfigdirs gdb"
3990 i
[3456789]86-*-rdos*)
3991 noconfigdirs
="$noconfigdirs gdb"
3994 noconfigdirs
="$noconfigdirs gdb"
3997 noconfigdirs
="$noconfigdirs sim"
4000 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
4001 noconfigdirs
="$noconfigdirs $target_libraries"
4004 noconfigdirs
="$noconfigdirs gdb gprof"
4007 # copied from rs6000-*-* entry
4008 noconfigdirs
="$noconfigdirs gprof"
4010 powerpc
*-*-winnt* | powerpc
*-*-pe*)
4011 target_configdirs
="$target_configdirs target-winsup"
4012 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
4013 # always build newlib.
4014 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
4016 # This is temporary until we can link against shared libraries
4017 powerpcle-
*-solaris*)
4018 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
4021 noconfigdirs
="$noconfigdirs gdb"
4024 noconfigdirs
="$noconfigdirs gprof"
4027 noconfigdirs
="$noconfigdirs gprof"
4030 noconfigdirs
="$noconfigdirs gprof"
4033 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
4036 noconfigdirs
="$noconfigdirs gprof"
4038 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
4039 if test x
$with_newlib = xyes
; then
4040 noconfigdirs
="$noconfigdirs gprof"
4044 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4047 noconfigdirs
="$noconfigdirs gprof target-libgloss"
4050 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
4054 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
4055 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
4056 noconfigdirs
="$noconfigdirs ld gas gprof"
4059 noconfigdirs
="$noconfigdirs gprof"
4062 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4069 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4073 if test x
${is_cross_compiler} = xno
; then
4078 noconfigdirs
="$noconfigdirs sim"
4080 tilepro
*-*-* | tilegx
*-*-*)
4081 noconfigdirs
="$noconfigdirs sim"
4084 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4087 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4090 noconfigdirs
="$noconfigdirs ld"
4092 loongarch
*-*-linux*)
4095 noconfigdirs
="$noconfigdirs gprof"
4099 # If we aren't building newlib, then don't build libgloss, since libgloss
4100 # depends upon some newlib header files.
4101 case "${noconfigdirs}" in
4102 *target-libgloss
*) ;;
4103 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4106 # Work in distributions that contain no compiler tools, like Autoconf.
4107 host_makefile_frag
=/dev
/null
4108 if test -d ${srcdir}/config
; then
4110 i
[3456789]86-*-msdosdjgpp*)
4111 host_makefile_frag
="config/mh-djgpp"
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4116 $as_echo_n "checking to see if cat works as expected... " >&6; }
4117 echo a
>cygwin-cat-check
4118 if test `cat cygwin-cat-check` = a
; then
4120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4121 $as_echo "yes" >&6; }
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4125 $as_echo "no" >&6; }
4126 as_fn_error $?
"The cat command does not ignore carriage return characters.
4127 Please either mount the build directory in binary mode or run the following
4128 commands before running any configure script:
4134 host_makefile_frag
="config/mh-cygwin"
4137 host_makefile_frag
="config/mh-mingw"
4140 host_makefile_frag
="config/mh-alpha-linux"
4143 host_makefile_frag
="config/mh-pa-hpux10"
4146 host_makefile_frag
="config/mh-pa"
4149 host_makefile_frag
="config/mh-pa"
4151 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4152 host_makefile_frag
="config/mh-darwin"
4155 host_makefile_frag
="config/mh-ppc-aix"
4158 host_makefile_frag
="config/mh-ppc-aix"
4163 if test "${build}" != "${host}" ; then
4164 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4165 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4166 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4167 CPP_FOR_BUILD
="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4168 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4169 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4170 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4171 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4172 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4173 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4174 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4175 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4176 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4177 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4178 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4180 AR_FOR_BUILD
="\$(AR)"
4181 AS_FOR_BUILD
="\$(AS)"
4182 CC_FOR_BUILD
="\$(CC)"
4183 CXX_FOR_BUILD
="\$(CXX)"
4184 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4185 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4186 GOC_FOR_BUILD
="\$(GOC)"
4187 GDC_FOR_BUILD
="\$(GDC)"
4188 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4189 LD_FOR_BUILD
="\$(LD)"
4190 NM_FOR_BUILD
="\$(NM)"
4191 RANLIB_FOR_BUILD
="\$(RANLIB)"
4192 WINDRES_FOR_BUILD
="\$(WINDRES)"
4193 WINDMC_FOR_BUILD
="\$(WINDMC)"
4197 ac_cpp
='$CPP $CPPFLAGS'
4198 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4199 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4200 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4201 if test -n "$ac_tool_prefix"; then
4202 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4203 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4205 $as_echo_n "checking for $ac_word... " >&6; }
4206 if ${ac_cv_prog_CC+:} false
; then :
4207 $as_echo_n "(cached) " >&6
4209 if test -n "$CC"; then
4210 ac_cv_prog_CC
="$CC" # Let the user override the test.
4212 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4216 test -z "$as_dir" && as_dir
=.
4217 for ac_exec_ext
in '' $ac_executable_extensions; do
4218 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4219 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4230 if test -n "$CC"; then
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4232 $as_echo "$CC" >&6; }
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4235 $as_echo "no" >&6; }
4240 if test -z "$ac_cv_prog_CC"; then
4242 # Extract the first word of "gcc", so it can be a program name with args.
4243 set dummy gcc
; ac_word
=$2
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4245 $as_echo_n "checking for $ac_word... " >&6; }
4246 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4247 $as_echo_n "(cached) " >&6
4249 if test -n "$ac_ct_CC"; then
4250 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4252 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4256 test -z "$as_dir" && as_dir
=.
4257 for ac_exec_ext
in '' $ac_executable_extensions; do
4258 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4259 ac_cv_prog_ac_ct_CC
="gcc"
4260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4269 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4270 if test -n "$ac_ct_CC"; then
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4272 $as_echo "$ac_ct_CC" >&6; }
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4275 $as_echo "no" >&6; }
4278 if test "x$ac_ct_CC" = x
; then
4281 case $cross_compiling:$ac_tool_warned in
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4284 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4285 ac_tool_warned
=yes ;;
4293 if test -z "$CC"; then
4294 if test -n "$ac_tool_prefix"; then
4295 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4296 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4298 $as_echo_n "checking for $ac_word... " >&6; }
4299 if ${ac_cv_prog_CC+:} false
; then :
4300 $as_echo_n "(cached) " >&6
4302 if test -n "$CC"; then
4303 ac_cv_prog_CC
="$CC" # Let the user override the test.
4305 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4309 test -z "$as_dir" && as_dir
=.
4310 for ac_exec_ext
in '' $ac_executable_extensions; do
4311 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4312 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4323 if test -n "$CC"; then
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4325 $as_echo "$CC" >&6; }
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4328 $as_echo "no" >&6; }
4334 if test -z "$CC"; then
4335 # Extract the first word of "cc", so it can be a program name with args.
4336 set dummy cc
; ac_word
=$2
4337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4338 $as_echo_n "checking for $ac_word... " >&6; }
4339 if ${ac_cv_prog_CC+:} false
; then :
4340 $as_echo_n "(cached) " >&6
4342 if test -n "$CC"; then
4343 ac_cv_prog_CC
="$CC" # Let the user override the test.
4346 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4350 test -z "$as_dir" && as_dir
=.
4351 for ac_exec_ext
in '' $ac_executable_extensions; do
4352 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4353 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4354 ac_prog_rejected
=yes
4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4365 if test $ac_prog_rejected = yes; then
4366 # We found a bogon in the path, so make sure we never use it.
4367 set dummy
$ac_cv_prog_CC
4369 if test $# != 0; then
4370 # We chose a different compiler from the bogus one.
4371 # However, it has the same basename, so the bogon will be chosen
4372 # first if we set CC to just the basename; use the full file name.
4374 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4380 if test -n "$CC"; then
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4382 $as_echo "$CC" >&6; }
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4390 if test -z "$CC"; then
4391 if test -n "$ac_tool_prefix"; then
4392 for ac_prog
in cl.exe
4394 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4395 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4397 $as_echo_n "checking for $ac_word... " >&6; }
4398 if ${ac_cv_prog_CC+:} false
; then :
4399 $as_echo_n "(cached) " >&6
4401 if test -n "$CC"; then
4402 ac_cv_prog_CC
="$CC" # Let the user override the test.
4404 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4408 test -z "$as_dir" && as_dir
=.
4409 for ac_exec_ext
in '' $ac_executable_extensions; do
4410 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4411 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4422 if test -n "$CC"; then
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4424 $as_echo "$CC" >&6; }
4426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4427 $as_echo "no" >&6; }
4431 test -n "$CC" && break
4434 if test -z "$CC"; then
4436 for ac_prog
in cl.exe
4438 # Extract the first word of "$ac_prog", so it can be a program name with args.
4439 set dummy
$ac_prog; ac_word
=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4443 $as_echo_n "(cached) " >&6
4445 if test -n "$ac_ct_CC"; then
4446 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4448 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4452 test -z "$as_dir" && as_dir
=.
4453 for ac_exec_ext
in '' $ac_executable_extensions; do
4454 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4455 ac_cv_prog_ac_ct_CC
="$ac_prog"
4456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4465 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4466 if test -n "$ac_ct_CC"; then
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4468 $as_echo "$ac_ct_CC" >&6; }
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4471 $as_echo "no" >&6; }
4475 test -n "$ac_ct_CC" && break
4478 if test "x$ac_ct_CC" = x
; then
4481 case $cross_compiling:$ac_tool_warned in
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4485 ac_tool_warned
=yes ;;
4494 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4496 as_fn_error $?
"no acceptable C compiler found in \$PATH
4497 See \`config.log' for more details" "$LINENO" 5; }
4499 # Provide some information about the compiler.
4500 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4503 for ac_option
in --version -v -V -qversion; do
4504 { { ac_try
="$ac_compiler $ac_option >&5"
4506 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4507 *) ac_try_echo=$ac_try;;
4509 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4510 $as_echo "$ac_try_echo"; } >&5
4511 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4513 if test -s conftest.err; then
4515 ... rest of stderr output deleted ...
4516 10q' conftest.err >conftest.er1
4517 cat conftest.er1 >&5
4519 rm -f conftest.er1 conftest.err
4520 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4521 test $ac_status = 0; }
4524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4525 /* end confdefs.h. */
4535 ac_clean_files_save=$ac_clean_files
4536 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4537 # Try to create an executable without -o first, disregard a.out.
4538 # It will help us diagnose broken compilers, and finding out an intuition
4540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4541 $as_echo_n "checking whether the C compiler works... " >&6; }
4542 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4544 # The possible output files:
4545 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4548 for ac_file in $ac_files
4551 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4552 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4557 if { { ac_try="$ac_link_default"
4559 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4560 *) ac_try_echo
=$ac_try;;
4562 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4563 $as_echo "$ac_try_echo"; } >&5
4564 (eval "$ac_link_default") 2>&5
4566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4567 test $ac_status = 0; }; then :
4568 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4569 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4570 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4571 # so that the user can short-circuit this test for compilers unknown to
4573 for ac_file
in $ac_files ''
4575 test -f "$ac_file" ||
continue
4577 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4580 # We found the default executable, but exeext='' is most
4584 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4586 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4588 # We set ac_cv_exeext here because the later test for it is not
4589 # safe: cross compilers may not add the suffix if given an `-o'
4590 # argument, so we may need to know it at that point already.
4591 # Even if this section looks crufty: it has the advantage of
4598 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4603 if test -z "$ac_file"; then :
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4605 $as_echo "no" >&6; }
4606 $as_echo "$as_me: failed program was:" >&5
4607 sed 's/^/| /' conftest.
$ac_ext >&5
4609 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4610 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4611 as_fn_error
77 "C compiler cannot create executables
4612 See \`config.log' for more details" "$LINENO" 5; }
4614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4615 $as_echo "yes" >&6; }
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4618 $as_echo_n "checking for C compiler default output file name... " >&6; }
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4620 $as_echo "$ac_file" >&6; }
4621 ac_exeext
=$ac_cv_exeext
4623 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4624 ac_clean_files
=$ac_clean_files_save
4625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4626 $as_echo_n "checking for suffix of executables... " >&6; }
4627 if { { ac_try
="$ac_link"
4629 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4630 *) ac_try_echo=$ac_try;;
4632 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4633 $as_echo "$ac_try_echo"; } >&5
4634 (eval "$ac_link") 2>&5
4636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4637 test $ac_status = 0; }; then :
4638 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4639 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4640 # work properly (i.e., refer to `conftest.exe'), while it won't with
4642 for ac_file
in conftest.exe conftest conftest.
*; do
4643 test -f "$ac_file" ||
continue
4645 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4646 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4652 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4653 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4654 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4655 See \`config.log' for more details" "$LINENO" 5; }
4657 rm -f conftest conftest
$ac_cv_exeext
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4659 $as_echo "$ac_cv_exeext" >&6; }
4661 rm -f conftest.
$ac_ext
4662 EXEEXT
=$ac_cv_exeext
4664 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4670 FILE *f = fopen ("conftest.out", "w");
4671 return ferror (f) || fclose (f) != 0;
4677 ac_clean_files
="$ac_clean_files conftest.out"
4678 # Check that the compiler produces executables we can run. If not, either
4679 # the compiler is broken, or we cross compile.
4680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4681 $as_echo_n "checking whether we are cross compiling... " >&6; }
4682 if test "$cross_compiling" != yes; then
4683 { { ac_try
="$ac_link"
4685 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4686 *) ac_try_echo=$ac_try;;
4688 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4689 $as_echo "$ac_try_echo"; } >&5
4690 (eval "$ac_link") 2>&5
4692 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4693 test $ac_status = 0; }
4694 if { ac_try='./conftest$ac_cv_exeext'
4695 { { case "(($ac_try" in
4696 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4697 *) ac_try_echo
=$ac_try;;
4699 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4700 $as_echo "$ac_try_echo"; } >&5
4701 (eval "$ac_try") 2>&5
4703 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4704 test $ac_status = 0; }; }; then
4707 if test "$cross_compiling" = maybe
; then
4710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4712 as_fn_error $?
"cannot run C compiled programs.
4713 If you meant to cross compile, use \`--host'.
4714 See \`config.log' for more details" "$LINENO" 5; }
4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4719 $as_echo "$cross_compiling" >&6; }
4721 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4722 ac_clean_files
=$ac_clean_files_save
4723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4724 $as_echo_n "checking for suffix of object files... " >&6; }
4725 if ${ac_cv_objext+:} false
; then :
4726 $as_echo_n "(cached) " >&6
4728 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4729 /* end confdefs.h. */
4739 rm -f conftest.o conftest.obj
4740 if { { ac_try
="$ac_compile"
4742 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4743 *) ac_try_echo=$ac_try;;
4745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4746 $as_echo "$ac_try_echo"; } >&5
4747 (eval "$ac_compile") 2>&5
4749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4750 test $ac_status = 0; }; then :
4751 for ac_file in conftest.o conftest.obj conftest.*; do
4752 test -f "$ac_file" || continue;
4754 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4755 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4760 $as_echo "$as_me: failed program was:" >&5
4761 sed 's/^/| /' conftest.$ac_ext >&5
4763 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4764 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4765 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4766 See \
`config.log' for more details" "$LINENO" 5; }
4768 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4771 $as_echo "$ac_cv_objext" >&6; }
4772 OBJEXT=$ac_cv_objext
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4775 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4776 if ${ac_cv_c_compiler_gnu+:} false; then :
4777 $as_echo_n "(cached) " >&6
4779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4780 /* end confdefs.h. */
4793 if ac_fn_c_try_compile "$LINENO"; then :
4798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4803 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4804 if test $ac_compiler_gnu = yes; then
4809 ac_test_CFLAGS=${CFLAGS+set}
4810 ac_save_CFLAGS=$CFLAGS
4811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4812 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4813 if ${ac_cv_prog_cc_g+:} false; then :
4814 $as_echo_n "(cached) " >&6
4816 ac_save_c_werror_flag=$ac_c_werror_flag
4817 ac_c_werror_flag=yes
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4831 if ac_fn_c_try_compile "$LINENO"; then :
4835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4836 /* end confdefs.h. */
4846 if ac_fn_c_try_compile "$LINENO"; then :
4849 ac_c_werror_flag=$ac_save_c_werror_flag
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4862 if ac_fn_c_try_compile "$LINENO"; then :
4865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4870 ac_c_werror_flag=$ac_save_c_werror_flag
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4873 $as_echo "$ac_cv_prog_cc_g" >&6; }
4874 if test "$ac_test_CFLAGS" = set; then
4875 CFLAGS=$ac_save_CFLAGS
4876 elif test $ac_cv_prog_cc_g = yes; then
4877 if test "$GCC" = yes; then
4883 if test "$GCC" = yes; then
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4890 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4891 if ${ac_cv_prog_cc_c89+:} false; then :
4892 $as_echo_n "(cached) " >&6
4894 ac_cv_prog_cc_c89=no
4896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4897 /* end confdefs.h. */
4901 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4902 struct buf { int x; };
4903 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4904 static char *e (p, i)
4910 static char *f (char * (*g) (char **, int), char **p, ...)
4915 s = g (p, va_arg (v,int));
4920 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4921 function prototypes and stuff, but not '\xHH' hex character constants.
4922 These don't provoke an error unfortunately, instead are silently treated
4923 as 'x'. The following induces an error, until -std is added to get
4924 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4925 array size at least. It's necessary to write '\x00'==0 to get something
4926 that's true only with -std. */
4927 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4929 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4930 inside strings and character constants. */
4932 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4934 int test (int i, double x);
4935 struct s1 {int (*f) (int a);};
4936 struct s2 {int (*f) (double a);};
4937 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4943 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4948 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4949 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4951 CC="$ac_save_CC $ac_arg"
4952 if ac_fn_c_try_compile "$LINENO"; then :
4953 ac_cv_prog_cc_c89=$ac_arg
4955 rm -f core conftest.err conftest.$ac_objext
4956 test "x$ac_cv_prog_cc_c89" != "xno" && break
4958 rm -f conftest.$ac_ext
4963 case "x$ac_cv_prog_cc_c89" in
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4966 $as_echo "none needed" >&6; } ;;
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4969 $as_echo "unsupported" >&6; } ;;
4971 CC="$CC $ac_cv_prog_cc_c89"
4972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4973 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4975 if test "x$ac_cv_prog_cc_c89" != xno; then :
4980 ac_cpp='$CPP $CPPFLAGS'
4981 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4982 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4983 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4986 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4987 if ${ac_cv_prog_cc_c99+:} false; then :
4988 $as_echo_n "(cached) " >&6
4990 ac_cv_prog_cc_c99=no
4992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h. */
4995 #include <stdbool.h>
5000 // Check varargs macros. These examples are taken from C99 6.10.3.5.
5001 #define debug(...) fprintf (stderr, __VA_ARGS__)
5002 #define showlist(...) puts (#__VA_ARGS__)
5003 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
5005 test_varargs_macros (void)
5010 debug ("X = %d\n", x);
5011 showlist (The first, second, and third items.);
5012 report (x>y, "x is %d but y is %d", x, y);
5015 // Check long long types.
5016 #define BIG64 18446744073709551615ull
5017 #define BIG32 4294967295ul
5018 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
5020 your preprocessor is broken;
5024 your preprocessor is broken;
5026 static long long int bignum = -9223372036854775807LL;
5027 static unsigned long long int ubignum = BIG64;
5029 struct incomplete_array
5037 const wchar_t *name;
5041 typedef const char *ccp;
5044 test_restrict (ccp restrict text)
5046 // See if C++-style comments work.
5047 // Iterate through items via the restricted pointer.
5048 // Also check for declarations in for loops.
5049 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
5054 // Check varargs and va_copy.
5056 test_varargs (const char *format, ...)
5059 va_start (args, format);
5061 va_copy (args_copy, args);
5072 str = va_arg (args_copy, const char *);
5075 number = va_arg (args_copy, int);
5078 fnumber = va_arg (args_copy, double);
5093 _Bool success = false;
5096 if (test_restrict ("String literal") == 0)
5098 char *restrict newvar = "Another string";
5101 test_varargs ("s, d' f .", "string", 65, 34.234);
5102 test_varargs_macros ();
5104 // Check flexible array members.
5105 struct incomplete_array *ia =
5106 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5108 for (int i = 0; i < ia->datasize; ++i)
5109 ia->data[i] = i * 1.234;
5111 // Check named initializers.
5112 struct named_init ni = {
5114 .name = L"Test wide string",
5115 .average = 543.34343,
5120 int dynamic_array[ni.number];
5121 dynamic_array[ni.number - 1] = 543;
5123 // work around unused variable warnings
5124 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5125 || dynamic_array[ni.number - 1] != 543);
5131 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5133 CC="$ac_save_CC $ac_arg"
5134 if ac_fn_c_try_compile "$LINENO"; then :
5135 ac_cv_prog_cc_c99=$ac_arg
5137 rm -f core conftest.err conftest.$ac_objext
5138 test "x$ac_cv_prog_cc_c99" != "xno" && break
5140 rm -f conftest.$ac_ext
5145 case "x$ac_cv_prog_cc_c99" in
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5148 $as_echo "none needed" >&6; } ;;
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5151 $as_echo "unsupported" >&6; } ;;
5153 CC="$CC $ac_cv_prog_cc_c99"
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5155 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5157 if test "x$ac_cv_prog_cc_c99" != xno; then :
5163 ac_cpp='$CXXCPP $CPPFLAGS'
5164 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5165 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5166 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5167 if test -z "$CXX"; then
5168 if test -n "$CCC"; then
5171 if test -n "$ac_tool_prefix"; then
5172 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5174 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5175 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5177 $as_echo_n "checking for $ac_word... " >&6; }
5178 if ${ac_cv_prog_CXX+:} false; then :
5179 $as_echo_n "(cached) " >&6
5181 if test -n "$CXX"; then
5182 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5188 test -z "$as_dir" && as_dir=.
5189 for ac_exec_ext in '' $ac_executable_extensions; do
5190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5191 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 if test -n "$CXX"; then
5203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5204 $as_echo "$CXX" >&6; }
5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5207 $as_echo "no" >&6; }
5211 test -n "$CXX" && break
5214 if test -z "$CXX"; then
5216 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5218 # Extract the first word of "$ac_prog", so it can be a program name with args.
5219 set dummy $ac_prog; ac_word=$2
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5221 $as_echo_n "checking for $ac_word... " >&6; }
5222 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5223 $as_echo_n "(cached) " >&6
5225 if test -n "$ac_ct_CXX"; then
5226 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5232 test -z "$as_dir" && as_dir=.
5233 for ac_exec_ext in '' $ac_executable_extensions; do
5234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5235 ac_cv_prog_ac_ct_CXX="$ac_prog"
5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5245 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5246 if test -n "$ac_ct_CXX"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5248 $as_echo "$ac_ct_CXX" >&6; }
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5255 test -n "$ac_ct_CXX" && break
5258 if test "x$ac_ct_CXX" = x; then
5261 case $cross_compiling:$ac_tool_warned in
5263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5264 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5265 ac_tool_warned=yes ;;
5273 # Provide some information about the compiler.
5274 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5277 for ac_option in --version -v -V -qversion; do
5278 { { ac_try="$ac_compiler $ac_option >&5"
5280 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5281 *) ac_try_echo
=$ac_try;;
5283 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5284 $as_echo "$ac_try_echo"; } >&5
5285 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5287 if test -s conftest.err
; then
5289 ... rest of stderr output deleted ...
5290 10q' conftest.err
>conftest.er1
5291 cat conftest.er1
>&5
5293 rm -f conftest.er1 conftest.err
5294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5295 test $ac_status = 0; }
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5299 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5300 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5301 $as_echo_n "(cached) " >&6
5303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5304 /* end confdefs.h. */
5317 if ac_fn_cxx_try_compile
"$LINENO"; then :
5322 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5323 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5327 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5328 if test $ac_compiler_gnu = yes; then
5333 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5334 ac_save_CXXFLAGS
=$CXXFLAGS
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5336 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5337 if ${ac_cv_prog_cxx_g+:} false
; then :
5338 $as_echo_n "(cached) " >&6
5340 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5341 ac_cxx_werror_flag
=yes
5344 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5345 /* end confdefs.h. */
5355 if ac_fn_cxx_try_compile
"$LINENO"; then :
5356 ac_cv_prog_cxx_g
=yes
5359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5360 /* end confdefs.h. */
5370 if ac_fn_cxx_try_compile
"$LINENO"; then :
5373 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5375 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5376 /* end confdefs.h. */
5386 if ac_fn_cxx_try_compile
"$LINENO"; then :
5387 ac_cv_prog_cxx_g
=yes
5389 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5391 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5393 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5394 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5397 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5398 if test "$ac_test_CXXFLAGS" = set; then
5399 CXXFLAGS
=$ac_save_CXXFLAGS
5400 elif test $ac_cv_prog_cxx_g = yes; then
5401 if test "$GXX" = yes; then
5407 if test "$GXX" = yes; then
5414 ac_cpp
='$CPP $CPPFLAGS'
5415 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5416 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5417 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5420 # We must set the default linker to the linker used by gcc for the correct
5421 # operation of libtool. If LD is not defined and we are using gcc, try to
5422 # set the LD default to the ld used by gcc.
5423 if test -z "$LD"; then
5424 if test "$GCC" = yes; then
5427 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5429 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5431 case $gcc_prog_ld in
5432 # Accept absolute paths.
5433 [\\/]* |
[A-Za-z
]:[\\/]*)
5434 LD
="$gcc_prog_ld" ;;
5439 # Check whether -static-libstdc++ -static-libgcc is supported.
5441 if test "$GCC" = yes; then
5442 saved_LDFLAGS
="$LDFLAGS"
5444 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5446 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5448 ac_cpp
='$CXXCPP $CPPFLAGS'
5449 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5450 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5451 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5454 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5455 /* end confdefs.h. */
5457 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5458 #error -static-libstdc++ not implemented
5462 if ac_fn_cxx_try_link
"$LINENO"; then :
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5464 $as_echo "yes" >&6; }; have_static_libs
=yes
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5467 $as_echo "no" >&6; }
5469 rm -f core conftest.err conftest.
$ac_objext \
5470 conftest
$ac_exeext conftest.
$ac_ext
5472 ac_cpp
='$CPP $CPPFLAGS'
5473 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5474 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5475 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5478 LDFLAGS
="$saved_LDFLAGS"
5484 if test -n "$ac_tool_prefix"; then
5485 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5486 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5488 $as_echo_n "checking for $ac_word... " >&6; }
5489 if ${ac_cv_prog_GNATBIND+:} false
; then :
5490 $as_echo_n "(cached) " >&6
5492 if test -n "$GNATBIND"; then
5493 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5495 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5499 test -z "$as_dir" && as_dir
=.
5500 for ac_exec_ext
in '' $ac_executable_extensions; do
5501 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5502 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5503 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5512 GNATBIND
=$ac_cv_prog_GNATBIND
5513 if test -n "$GNATBIND"; then
5514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5515 $as_echo "$GNATBIND" >&6; }
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5518 $as_echo "no" >&6; }
5523 if test -z "$ac_cv_prog_GNATBIND"; then
5524 ac_ct_GNATBIND
=$GNATBIND
5525 # Extract the first word of "gnatbind", so it can be a program name with args.
5526 set dummy gnatbind
; ac_word
=$2
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5528 $as_echo_n "checking for $ac_word... " >&6; }
5529 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5530 $as_echo_n "(cached) " >&6
5532 if test -n "$ac_ct_GNATBIND"; then
5533 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5535 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5539 test -z "$as_dir" && as_dir
=.
5540 for ac_exec_ext
in '' $ac_executable_extensions; do
5541 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5542 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5552 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5553 if test -n "$ac_ct_GNATBIND"; then
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5555 $as_echo "$ac_ct_GNATBIND" >&6; }
5557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5558 $as_echo "no" >&6; }
5561 if test "x$ac_ct_GNATBIND" = x
; then
5564 case $cross_compiling:$ac_tool_warned in
5566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5567 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5568 ac_tool_warned
=yes ;;
5570 GNATBIND
=$ac_ct_GNATBIND
5573 GNATBIND
="$ac_cv_prog_GNATBIND"
5576 if test -n "$ac_tool_prefix"; then
5577 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5578 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5580 $as_echo_n "checking for $ac_word... " >&6; }
5581 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5582 $as_echo_n "(cached) " >&6
5584 if test -n "$GNATMAKE"; then
5585 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5587 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5591 test -z "$as_dir" && as_dir
=.
5592 for ac_exec_ext
in '' $ac_executable_extensions; do
5593 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5594 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5604 GNATMAKE
=$ac_cv_prog_GNATMAKE
5605 if test -n "$GNATMAKE"; then
5606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5607 $as_echo "$GNATMAKE" >&6; }
5609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5610 $as_echo "no" >&6; }
5615 if test -z "$ac_cv_prog_GNATMAKE"; then
5616 ac_ct_GNATMAKE
=$GNATMAKE
5617 # Extract the first word of "gnatmake", so it can be a program name with args.
5618 set dummy gnatmake
; ac_word
=$2
5619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5620 $as_echo_n "checking for $ac_word... " >&6; }
5621 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5622 $as_echo_n "(cached) " >&6
5624 if test -n "$ac_ct_GNATMAKE"; then
5625 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5627 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5631 test -z "$as_dir" && as_dir
=.
5632 for ac_exec_ext
in '' $ac_executable_extensions; do
5633 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5634 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5635 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5644 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5645 if test -n "$ac_ct_GNATMAKE"; then
5646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5647 $as_echo "$ac_ct_GNATMAKE" >&6; }
5649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5650 $as_echo "no" >&6; }
5653 if test "x$ac_ct_GNATMAKE" = x
; then
5656 case $cross_compiling:$ac_tool_warned in
5658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5659 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5660 ac_tool_warned
=yes ;;
5662 GNATMAKE
=$ac_ct_GNATMAKE
5665 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada and is recent enough" >&5
5669 $as_echo_n "checking whether compiler driver understands Ada and is recent enough... " >&6; }
5670 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5671 $as_echo_n "(cached) " >&6
5673 cat >conftest.adb
<<EOF
5674 pragma Warnings (Off);
5676 pragma Warnings (On);
5677 use type System.CRTL.int64;
5678 procedure conftest is begin null; end conftest;
5680 acx_cv_cc_gcc_supports_ada
=no
5681 # There is a bug in old released versions of GCC which causes the
5682 # driver to exit successfully when the appropriate language module
5683 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5684 # Therefore we must check for the error message as well as an
5685 # unsuccessful exit.
5686 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5687 # given a .adb file, but produce no object file. So we must check
5688 # if an object file was really produced to guard against this.
5689 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5690 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5691 acx_cv_cc_gcc_supports_ada
=yes
5695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5696 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5698 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5706 if test -n "$ac_tool_prefix"; then
5707 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5708 set dummy
${ac_tool_prefix}gdc
; ac_word
=$2
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5710 $as_echo_n "checking for $ac_word... " >&6; }
5711 if ${ac_cv_prog_GDC+:} false
; then :
5712 $as_echo_n "(cached) " >&6
5714 if test -n "$GDC"; then
5715 ac_cv_prog_GDC
="$GDC" # Let the user override the test.
5717 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5721 test -z "$as_dir" && as_dir
=.
5722 for ac_exec_ext
in '' $ac_executable_extensions; do
5723 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5724 ac_cv_prog_GDC
="${ac_tool_prefix}gdc"
5725 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5735 if test -n "$GDC"; then
5736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5737 $as_echo "$GDC" >&6; }
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5740 $as_echo "no" >&6; }
5745 if test -z "$ac_cv_prog_GDC"; then
5747 # Extract the first word of "gdc", so it can be a program name with args.
5748 set dummy gdc
; ac_word
=$2
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 $as_echo_n "checking for $ac_word... " >&6; }
5751 if ${ac_cv_prog_ac_ct_GDC+:} false
; then :
5752 $as_echo_n "(cached) " >&6
5754 if test -n "$ac_ct_GDC"; then
5755 ac_cv_prog_ac_ct_GDC
="$ac_ct_GDC" # Let the user override the test.
5757 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5761 test -z "$as_dir" && as_dir
=.
5762 for ac_exec_ext
in '' $ac_executable_extensions; do
5763 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5764 ac_cv_prog_ac_ct_GDC
="gdc"
5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 ac_ct_GDC
=$ac_cv_prog_ac_ct_GDC
5775 if test -n "$ac_ct_GDC"; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5777 $as_echo "$ac_ct_GDC" >&6; }
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5783 if test "x$ac_ct_GDC" = x
; then
5786 case $cross_compiling:$ac_tool_warned in
5788 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5789 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5790 ac_tool_warned
=yes ;;
5795 GDC
="$ac_cv_prog_GDC"
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the D compiler works" >&5
5799 $as_echo_n "checking whether the D compiler works... " >&6; }
5800 if ${acx_cv_d_compiler_works+:} false
; then :
5801 $as_echo_n "(cached) " >&6
5803 cat >conftest.d
<<EOF
5804 module conftest; int main() { return 0; }
5806 acx_cv_d_compiler_works
=no
5807 if test "x$GDC" != xno
; then
5808 errors
=`(${GDC} -c conftest.d) 2>&1 || echo failure`
5809 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5810 acx_cv_d_compiler_works
=yes
5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_d_compiler_works" >&5
5816 $as_echo "$acx_cv_d_compiler_works" >&6; }
5817 if test "x$GDC" != xno
&& test x
$acx_cv_d_compiler_works != xno
; then
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5824 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5825 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5826 $as_echo_n "(cached) " >&6
5830 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5831 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5832 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5835 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5838 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5839 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5842 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5849 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5850 do_compare
="$gcc_cv_prog_cmp_skip"
5854 # Check whether --enable-bootstrap was given.
5855 if test "${enable_bootstrap+set}" = set; then :
5856 enableval
=$enable_bootstrap;
5858 enable_bootstrap
=default
5862 # Issue errors and warnings for invalid/strange bootstrap combinations.
5863 if test -r $srcdir/gcc
/configure
; then
5869 case "$have_compiler:$host:$target:$enable_bootstrap" in
5872 # Default behavior. Enable bootstrap if we have a compiler
5873 # and we are in a native configuration.
5874 yes:$build:$build:default
)
5875 enable_bootstrap
=yes ;;
5878 enable_bootstrap
=no
;;
5880 # We have a compiler and we are in a native configuration, bootstrap is ok
5881 yes:$build:$build:yes)
5884 # Other configurations, but we have a compiler. Assume the user knows
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5888 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5891 # No compiler: if they passed --enable-bootstrap explicitly, fail
5893 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5895 # Fail if wrong command line
5897 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5901 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5902 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5903 # require C++11 (or higher).
5904 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5905 CXX
="$CXX -std=c++11"
5906 elif test "$have_compiler" = yes; then
5907 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5909 ac_cpp
='$CXXCPP $CPPFLAGS'
5910 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5911 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5912 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5916 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5917 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5918 $as_echo_n "(cached) " >&6
5920 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5921 /* end confdefs.h. */
5924 // If the compiler admits that it is not ready for C++11, why torture it?
5925 // Hopefully, this will speed up the test.
5929 #error "This is not a C++ compiler"
5931 #elif __cplusplus < 201103L
5933 #error "This is not a C++11 compiler"
5940 namespace test_static_assert
5943 template <typename T>
5946 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5951 namespace test_final_override
5960 struct Derived : public Base
5962 virtual ~Derived() override {}
5963 virtual void f() override {}
5968 namespace test_double_right_angle_brackets
5971 template < typename T >
5974 typedef check<void> single_type;
5975 typedef check<check<void>> double_type;
5976 typedef check<check<check<void>>> triple_type;
5977 typedef check<check<check<check<void>>>> quadruple_type;
5981 namespace test_decltype
5994 namespace test_type_deduction
5997 template < typename T1, typename T2 >
6000 static const bool value = false;
6003 template < typename T >
6004 struct is_same<T, T>
6006 static const bool value = true;
6009 template < typename T1, typename T2 >
6011 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6017 test(const int c, volatile int v)
6019 static_assert(is_same<int, decltype(0)>::value == true, "");
6020 static_assert(is_same<int, decltype(c)>::value == false, "");
6021 static_assert(is_same<int, decltype(v)>::value == false, "");
6024 auto sumi = ac + av + 'x';
6025 auto sumf = ac + av + 1.0;
6026 static_assert(is_same<int, decltype(ac)>::value == true, "");
6027 static_assert(is_same<int, decltype(av)>::value == true, "");
6028 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6029 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6030 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6031 return (sumf > 0.0) ? sumi : add(c, v);
6036 namespace test_noexcept
6039 int f() { return 0; }
6040 int g() noexcept { return 0; }
6042 static_assert(noexcept(f()) == false, "");
6043 static_assert(noexcept(g()) == true, "");
6047 namespace test_constexpr
6050 template < typename CharT >
6051 unsigned long constexpr
6052 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6054 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6057 template < typename CharT >
6058 unsigned long constexpr
6059 strlen_c(const CharT *const s) noexcept
6061 return strlen_c_r(s, 0UL);
6064 static_assert(strlen_c("") == 0UL, "");
6065 static_assert(strlen_c("1") == 1UL, "");
6066 static_assert(strlen_c("example") == 7UL, "");
6067 static_assert(strlen_c("another\0example") == 7UL, "");
6071 namespace test_rvalue_references
6077 static constexpr int value = N;
6080 answer<1> f(int&) { return answer<1>(); }
6081 answer<2> f(const int&) { return answer<2>(); }
6082 answer<3> f(int&&) { return answer<3>(); }
6089 static_assert(decltype(f(i))::value == 1, "");
6090 static_assert(decltype(f(c))::value == 2, "");
6091 static_assert(decltype(f(0))::value == 3, "");
6096 namespace test_uniform_initialization
6101 static const int zero {};
6102 static const int one {1};
6105 static_assert(test::zero == 0, "");
6106 static_assert(test::one == 1, "");
6110 namespace test_lambdas
6116 auto lambda1 = [](){};
6117 auto lambda2 = lambda1;
6125 auto a = [](int i, int j){ return i + j; }(1, 2);
6126 auto b = []() -> int { return '0'; }();
6127 auto c = [=](){ return a + b; }();
6128 auto d = [&](){ return c; }();
6129 auto e = [a, &b](int x) mutable {
6130 const auto identity = [](int y){ return y; };
6131 for (auto i = 0; i < a; ++i)
6133 return x + identity(a + b);
6135 return a + b + c + d + e;
6141 const auto nullary = [](){ return 0; };
6142 const auto unary = [](int x){ return x; };
6143 using nullary_t = decltype(nullary);
6144 using unary_t = decltype(unary);
6145 const auto higher1st = [](nullary_t f){ return f(); };
6146 const auto higher2nd = [unary](nullary_t f1){
6147 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6149 return higher1st(nullary) + higher2nd(nullary)(unary);
6154 namespace test_variadic_templates
6160 template <int N0, int... N1toN>
6161 struct sum<N0, N1toN...>
6163 static constexpr auto value = N0 + sum<N1toN...>::value;
6169 static constexpr auto value = 0;
6172 static_assert(sum<>::value == 0, "");
6173 static_assert(sum<1>::value == 1, "");
6174 static_assert(sum<23>::value == 23, "");
6175 static_assert(sum<1, 2>::value == 3, "");
6176 static_assert(sum<5, 5, 11>::value == 21, "");
6177 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6181 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6182 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6184 namespace test_template_alias_sfinae
6189 template<typename T>
6190 using member = typename T::member_type;
6192 template<typename T>
6195 template<typename T>
6196 void func(member<T>*) {}
6200 void test() { func<foo>(0); }
6204 } // namespace cxx11
6206 #endif // __cplusplus >= 201103L
6211 if ac_fn_cxx_try_compile
"$LINENO"; then :
6212 ax_cv_cxx_compile_cxx11
=yes
6214 ax_cv_cxx_compile_cxx11
=no
6216 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6219 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6220 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6224 if test x
$ac_success = xno
; then
6225 for alternative
in ${ax_cxx_compile_alternatives}; do
6226 switch
="-std=gnu++${alternative}"
6227 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6229 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6230 if eval \
${$cachevar+:} false
; then :
6231 $as_echo_n "(cached) " >&6
6235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6236 /* end confdefs.h. */
6239 // If the compiler admits that it is not ready for C++11, why torture it?
6240 // Hopefully, this will speed up the test.
6244 #error "This is not a C++ compiler"
6246 #elif __cplusplus < 201103L
6248 #error "This is not a C++11 compiler"
6255 namespace test_static_assert
6258 template <typename T>
6261 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6266 namespace test_final_override
6275 struct Derived : public Base
6277 virtual ~Derived() override {}
6278 virtual void f() override {}
6283 namespace test_double_right_angle_brackets
6286 template < typename T >
6289 typedef check<void> single_type;
6290 typedef check<check<void>> double_type;
6291 typedef check<check<check<void>>> triple_type;
6292 typedef check<check<check<check<void>>>> quadruple_type;
6296 namespace test_decltype
6309 namespace test_type_deduction
6312 template < typename T1, typename T2 >
6315 static const bool value = false;
6318 template < typename T >
6319 struct is_same<T, T>
6321 static const bool value = true;
6324 template < typename T1, typename T2 >
6326 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6332 test(const int c, volatile int v)
6334 static_assert(is_same<int, decltype(0)>::value == true, "");
6335 static_assert(is_same<int, decltype(c)>::value == false, "");
6336 static_assert(is_same<int, decltype(v)>::value == false, "");
6339 auto sumi = ac + av + 'x';
6340 auto sumf = ac + av + 1.0;
6341 static_assert(is_same<int, decltype(ac)>::value == true, "");
6342 static_assert(is_same<int, decltype(av)>::value == true, "");
6343 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6344 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6345 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6346 return (sumf > 0.0) ? sumi : add(c, v);
6351 namespace test_noexcept
6354 int f() { return 0; }
6355 int g() noexcept { return 0; }
6357 static_assert(noexcept(f()) == false, "");
6358 static_assert(noexcept(g()) == true, "");
6362 namespace test_constexpr
6365 template < typename CharT >
6366 unsigned long constexpr
6367 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6369 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6372 template < typename CharT >
6373 unsigned long constexpr
6374 strlen_c(const CharT *const s) noexcept
6376 return strlen_c_r(s, 0UL);
6379 static_assert(strlen_c("") == 0UL, "");
6380 static_assert(strlen_c("1") == 1UL, "");
6381 static_assert(strlen_c("example") == 7UL, "");
6382 static_assert(strlen_c("another\0example") == 7UL, "");
6386 namespace test_rvalue_references
6392 static constexpr int value = N;
6395 answer<1> f(int&) { return answer<1>(); }
6396 answer<2> f(const int&) { return answer<2>(); }
6397 answer<3> f(int&&) { return answer<3>(); }
6404 static_assert(decltype(f(i))::value == 1, "");
6405 static_assert(decltype(f(c))::value == 2, "");
6406 static_assert(decltype(f(0))::value == 3, "");
6411 namespace test_uniform_initialization
6416 static const int zero {};
6417 static const int one {1};
6420 static_assert(test::zero == 0, "");
6421 static_assert(test::one == 1, "");
6425 namespace test_lambdas
6431 auto lambda1 = [](){};
6432 auto lambda2 = lambda1;
6440 auto a = [](int i, int j){ return i + j; }(1, 2);
6441 auto b = []() -> int { return '0'; }();
6442 auto c = [=](){ return a + b; }();
6443 auto d = [&](){ return c; }();
6444 auto e = [a, &b](int x) mutable {
6445 const auto identity = [](int y){ return y; };
6446 for (auto i = 0; i < a; ++i)
6448 return x + identity(a + b);
6450 return a + b + c + d + e;
6456 const auto nullary = [](){ return 0; };
6457 const auto unary = [](int x){ return x; };
6458 using nullary_t = decltype(nullary);
6459 using unary_t = decltype(unary);
6460 const auto higher1st = [](nullary_t f){ return f(); };
6461 const auto higher2nd = [unary](nullary_t f1){
6462 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6464 return higher1st(nullary) + higher2nd(nullary)(unary);
6469 namespace test_variadic_templates
6475 template <int N0, int... N1toN>
6476 struct sum<N0, N1toN...>
6478 static constexpr auto value = N0 + sum<N1toN...>::value;
6484 static constexpr auto value = 0;
6487 static_assert(sum<>::value == 0, "");
6488 static_assert(sum<1>::value == 1, "");
6489 static_assert(sum<23>::value == 23, "");
6490 static_assert(sum<1, 2>::value == 3, "");
6491 static_assert(sum<5, 5, 11>::value == 21, "");
6492 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6496 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6497 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6499 namespace test_template_alias_sfinae
6504 template<typename T>
6505 using member = typename T::member_type;
6507 template<typename T>
6510 template<typename T>
6511 void func(member<T>*) {}
6515 void test() { func<foo>(0); }
6519 } // namespace cxx11
6521 #endif // __cplusplus >= 201103L
6526 if ac_fn_cxx_try_compile
"$LINENO"; then :
6531 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6534 eval ac_res
=\$
$cachevar
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6536 $as_echo "$ac_res" >&6; }
6537 if eval test x\$
$cachevar = xyes
; then
6539 if test -n "$CXXCPP" ; then
6540 CXXCPP
="$CXXCPP $switch"
6548 if test x
$ac_success = xno
; then
6549 for alternative
in ${ax_cxx_compile_alternatives}; do
6550 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6551 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6553 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6554 if eval \${$cachevar+:} false; then :
6555 $as_echo_n "(cached
) " >&6
6559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6560 /* end confdefs.h. */
6563 // If the compiler admits that it is not ready for C++11, why torture it?
6564 // Hopefully, this will speed up the test.
6568 #error "This is not a C
++ compiler
"
6570 #elif __cplusplus < 201103L
6572 #error "This is not a C
++11 compiler
"
6579 namespace test_static_assert
6582 template <typename T>
6585 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6590 namespace test_final_override
6599 struct Derived : public Base
6601 virtual ~Derived() override {}
6602 virtual void f() override {}
6607 namespace test_double_right_angle_brackets
6610 template < typename T >
6613 typedef check<void> single_type;
6614 typedef check<check<void>> double_type;
6615 typedef check<check<check<void>>> triple_type;
6616 typedef check<check<check<check<void>>>> quadruple_type;
6620 namespace test_decltype
6633 namespace test_type_deduction
6636 template < typename T1, typename T2 >
6639 static const bool value = false;
6642 template < typename T >
6643 struct is_same<T, T>
6645 static const bool value = true;
6648 template < typename T1, typename T2 >
6650 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6656 test(const int c, volatile int v)
6658 static_assert(is_same<int, decltype(0)>::value == true, "");
6659 static_assert(is_same<int, decltype(c)>::value == false, "");
6660 static_assert(is_same<int, decltype(v)>::value == false, "");
6663 auto sumi = ac + av + 'x';
6664 auto sumf = ac + av + 1.0;
6665 static_assert(is_same<int, decltype(ac)>::value == true, "");
6666 static_assert(is_same<int, decltype(av)>::value == true, "");
6667 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6668 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6669 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6670 return (sumf > 0.0) ? sumi : add(c, v);
6675 namespace test_noexcept
6678 int f() { return 0; }
6679 int g() noexcept { return 0; }
6681 static_assert(noexcept(f()) == false, "");
6682 static_assert(noexcept(g()) == true, "");
6686 namespace test_constexpr
6689 template < typename CharT >
6690 unsigned long constexpr
6691 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6693 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6696 template < typename CharT >
6697 unsigned long constexpr
6698 strlen_c(const CharT *const s) noexcept
6700 return strlen_c_r(s, 0UL);
6703 static_assert(strlen_c("") == 0UL, "");
6704 static_assert(strlen_c("1") == 1UL, "");
6705 static_assert(strlen_c("example
") == 7UL, "");
6706 static_assert(strlen_c("another\
0example
") == 7UL, "");
6710 namespace test_rvalue_references
6716 static constexpr int value = N;
6719 answer<1> f(int&) { return answer<1>(); }
6720 answer<2> f(const int&) { return answer<2>(); }
6721 answer<3> f(int&&) { return answer<3>(); }
6728 static_assert(decltype(f(i))::value == 1, "");
6729 static_assert(decltype(f(c))::value == 2, "");
6730 static_assert(decltype(f(0))::value == 3, "");
6735 namespace test_uniform_initialization
6740 static const int zero {};
6741 static const int one {1};
6744 static_assert(test::zero == 0, "");
6745 static_assert(test::one == 1, "");
6749 namespace test_lambdas
6755 auto lambda1 = [](){};
6756 auto lambda2 = lambda1;
6764 auto a = [](int i, int j){ return i + j; }(1, 2);
6765 auto b = []() -> int { return '0'; }();
6766 auto c = [=](){ return a + b; }();
6767 auto d = [&](){ return c; }();
6768 auto e = [a, &b](int x) mutable {
6769 const auto identity = [](int y){ return y; };
6770 for (auto i = 0; i < a; ++i)
6772 return x + identity(a + b);
6774 return a + b + c + d + e;
6780 const auto nullary = [](){ return 0; };
6781 const auto unary = [](int x){ return x; };
6782 using nullary_t = decltype(nullary);
6783 using unary_t = decltype(unary);
6784 const auto higher1st = [](nullary_t f){ return f(); };
6785 const auto higher2nd = [unary](nullary_t f1){
6786 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6788 return higher1st(nullary) + higher2nd(nullary)(unary);
6793 namespace test_variadic_templates
6799 template <int N0, int... N1toN>
6800 struct sum<N0, N1toN...>
6802 static constexpr auto value = N0 + sum<N1toN...>::value;
6808 static constexpr auto value = 0;
6811 static_assert(sum<>::value == 0, "");
6812 static_assert(sum<1>::value == 1, "");
6813 static_assert(sum<23>::value == 23, "");
6814 static_assert(sum<1, 2>::value == 3, "");
6815 static_assert(sum<5, 5, 11>::value == 21, "");
6816 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6820 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6821 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6823 namespace test_template_alias_sfinae
6828 template<typename T>
6829 using member = typename T::member_type;
6831 template<typename T>
6834 template<typename T>
6835 void func(member<T>*) {}
6839 void test() { func<foo>(0); }
6843 } // namespace cxx11
6845 #endif // __cplusplus >= 201103L
6850 if ac_fn_cxx_try_compile "$LINENO"; then :
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6858 eval ac_res=\$$cachevar
6859 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6860 $as_echo "$ac_res" >&6; }
6861 if eval test x\$$cachevar = xyes; then
6863 if test -n "$CXXCPP" ; then
6864 CXXCPP="$CXXCPP $switch"
6870 if test x$ac_success = xyes; then
6877 ac_cpp='$CPP $CPPFLAGS'
6878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6882 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6883 if test x$ac_success = xno; then
6884 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6887 if test x$ac_success = xno; then
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6890 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6894 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6900 if test "${build}" != "${host}"; then
6901 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6903 ac_cpp
='$CXXCPP $CPPFLAGS'
6904 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6905 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6906 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6908 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6909 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6910 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6911 CXX
="$CXX_FOR_BUILD"
6912 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6913 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6915 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6916 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6917 $as_echo_n "(cached) " >&6
6919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6920 /* end confdefs.h. */
6923 // If the compiler admits that it is not ready for C++11, why torture it?
6924 // Hopefully, this will speed up the test.
6928 #error "This is not a C++ compiler"
6930 #elif __cplusplus < 201103L
6932 #error "This is not a C++11 compiler"
6939 namespace test_static_assert
6942 template <typename T>
6945 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6950 namespace test_final_override
6959 struct Derived : public Base
6961 virtual ~Derived() override {}
6962 virtual void f() override {}
6967 namespace test_double_right_angle_brackets
6970 template < typename T >
6973 typedef check<void> single_type;
6974 typedef check<check<void>> double_type;
6975 typedef check<check<check<void>>> triple_type;
6976 typedef check<check<check<check<void>>>> quadruple_type;
6980 namespace test_decltype
6993 namespace test_type_deduction
6996 template < typename T1, typename T2 >
6999 static const bool value = false;
7002 template < typename T >
7003 struct is_same<T, T>
7005 static const bool value = true;
7008 template < typename T1, typename T2 >
7010 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7016 test(const int c, volatile int v)
7018 static_assert(is_same<int, decltype(0)>::value == true, "");
7019 static_assert(is_same<int, decltype(c)>::value == false, "");
7020 static_assert(is_same<int, decltype(v)>::value == false, "");
7023 auto sumi = ac + av + 'x';
7024 auto sumf = ac + av + 1.0;
7025 static_assert(is_same<int, decltype(ac)>::value == true, "");
7026 static_assert(is_same<int, decltype(av)>::value == true, "");
7027 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7028 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7029 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7030 return (sumf > 0.0) ? sumi : add(c, v);
7035 namespace test_noexcept
7038 int f() { return 0; }
7039 int g() noexcept { return 0; }
7041 static_assert(noexcept(f()) == false, "");
7042 static_assert(noexcept(g()) == true, "");
7046 namespace test_constexpr
7049 template < typename CharT >
7050 unsigned long constexpr
7051 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7053 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7056 template < typename CharT >
7057 unsigned long constexpr
7058 strlen_c(const CharT *const s) noexcept
7060 return strlen_c_r(s, 0UL);
7063 static_assert(strlen_c("") == 0UL, "");
7064 static_assert(strlen_c("1") == 1UL, "");
7065 static_assert(strlen_c("example") == 7UL, "");
7066 static_assert(strlen_c("another\0example") == 7UL, "");
7070 namespace test_rvalue_references
7076 static constexpr int value = N;
7079 answer<1> f(int&) { return answer<1>(); }
7080 answer<2> f(const int&) { return answer<2>(); }
7081 answer<3> f(int&&) { return answer<3>(); }
7088 static_assert(decltype(f(i))::value == 1, "");
7089 static_assert(decltype(f(c))::value == 2, "");
7090 static_assert(decltype(f(0))::value == 3, "");
7095 namespace test_uniform_initialization
7100 static const int zero {};
7101 static const int one {1};
7104 static_assert(test::zero == 0, "");
7105 static_assert(test::one == 1, "");
7109 namespace test_lambdas
7115 auto lambda1 = [](){};
7116 auto lambda2 = lambda1;
7124 auto a = [](int i, int j){ return i + j; }(1, 2);
7125 auto b = []() -> int { return '0'; }();
7126 auto c = [=](){ return a + b; }();
7127 auto d = [&](){ return c; }();
7128 auto e = [a, &b](int x) mutable {
7129 const auto identity = [](int y){ return y; };
7130 for (auto i = 0; i < a; ++i)
7132 return x + identity(a + b);
7134 return a + b + c + d + e;
7140 const auto nullary = [](){ return 0; };
7141 const auto unary = [](int x){ return x; };
7142 using nullary_t = decltype(nullary);
7143 using unary_t = decltype(unary);
7144 const auto higher1st = [](nullary_t f){ return f(); };
7145 const auto higher2nd = [unary](nullary_t f1){
7146 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7148 return higher1st(nullary) + higher2nd(nullary)(unary);
7153 namespace test_variadic_templates
7159 template <int N0, int... N1toN>
7160 struct sum<N0, N1toN...>
7162 static constexpr auto value = N0 + sum<N1toN...>::value;
7168 static constexpr auto value = 0;
7171 static_assert(sum<>::value == 0, "");
7172 static_assert(sum<1>::value == 1, "");
7173 static_assert(sum<23>::value == 23, "");
7174 static_assert(sum<1, 2>::value == 3, "");
7175 static_assert(sum<5, 5, 11>::value == 21, "");
7176 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7180 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7181 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7183 namespace test_template_alias_sfinae
7188 template<typename T>
7189 using member = typename T::member_type;
7191 template<typename T>
7194 template<typename T>
7195 void func(member<T>*) {}
7199 void test() { func<foo>(0); }
7203 } // namespace cxx11
7205 #endif // __cplusplus >= 201103L
7210 if ac_fn_cxx_try_compile
"$LINENO"; then :
7211 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7213 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7215 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7218 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7219 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7223 if test x
$ac_success = xno
; then
7224 for alternative
in ${ax_cxx_compile_alternatives}; do
7225 switch
="-std=gnu++${alternative}"
7226 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7228 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7229 if eval \
${$cachevar+:} false
; then :
7230 $as_echo_n "(cached) " >&6
7234 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7235 /* end confdefs.h. */
7238 // If the compiler admits that it is not ready for C++11, why torture it?
7239 // Hopefully, this will speed up the test.
7243 #error "This is not a C++ compiler"
7245 #elif __cplusplus < 201103L
7247 #error "This is not a C++11 compiler"
7254 namespace test_static_assert
7257 template <typename T>
7260 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7265 namespace test_final_override
7274 struct Derived : public Base
7276 virtual ~Derived() override {}
7277 virtual void f() override {}
7282 namespace test_double_right_angle_brackets
7285 template < typename T >
7288 typedef check<void> single_type;
7289 typedef check<check<void>> double_type;
7290 typedef check<check<check<void>>> triple_type;
7291 typedef check<check<check<check<void>>>> quadruple_type;
7295 namespace test_decltype
7308 namespace test_type_deduction
7311 template < typename T1, typename T2 >
7314 static const bool value = false;
7317 template < typename T >
7318 struct is_same<T, T>
7320 static const bool value = true;
7323 template < typename T1, typename T2 >
7325 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7331 test(const int c, volatile int v)
7333 static_assert(is_same<int, decltype(0)>::value == true, "");
7334 static_assert(is_same<int, decltype(c)>::value == false, "");
7335 static_assert(is_same<int, decltype(v)>::value == false, "");
7338 auto sumi = ac + av + 'x';
7339 auto sumf = ac + av + 1.0;
7340 static_assert(is_same<int, decltype(ac)>::value == true, "");
7341 static_assert(is_same<int, decltype(av)>::value == true, "");
7342 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7343 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7344 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7345 return (sumf > 0.0) ? sumi : add(c, v);
7350 namespace test_noexcept
7353 int f() { return 0; }
7354 int g() noexcept { return 0; }
7356 static_assert(noexcept(f()) == false, "");
7357 static_assert(noexcept(g()) == true, "");
7361 namespace test_constexpr
7364 template < typename CharT >
7365 unsigned long constexpr
7366 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7368 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7371 template < typename CharT >
7372 unsigned long constexpr
7373 strlen_c(const CharT *const s) noexcept
7375 return strlen_c_r(s, 0UL);
7378 static_assert(strlen_c("") == 0UL, "");
7379 static_assert(strlen_c("1") == 1UL, "");
7380 static_assert(strlen_c("example") == 7UL, "");
7381 static_assert(strlen_c("another\0example") == 7UL, "");
7385 namespace test_rvalue_references
7391 static constexpr int value = N;
7394 answer<1> f(int&) { return answer<1>(); }
7395 answer<2> f(const int&) { return answer<2>(); }
7396 answer<3> f(int&&) { return answer<3>(); }
7403 static_assert(decltype(f(i))::value == 1, "");
7404 static_assert(decltype(f(c))::value == 2, "");
7405 static_assert(decltype(f(0))::value == 3, "");
7410 namespace test_uniform_initialization
7415 static const int zero {};
7416 static const int one {1};
7419 static_assert(test::zero == 0, "");
7420 static_assert(test::one == 1, "");
7424 namespace test_lambdas
7430 auto lambda1 = [](){};
7431 auto lambda2 = lambda1;
7439 auto a = [](int i, int j){ return i + j; }(1, 2);
7440 auto b = []() -> int { return '0'; }();
7441 auto c = [=](){ return a + b; }();
7442 auto d = [&](){ return c; }();
7443 auto e = [a, &b](int x) mutable {
7444 const auto identity = [](int y){ return y; };
7445 for (auto i = 0; i < a; ++i)
7447 return x + identity(a + b);
7449 return a + b + c + d + e;
7455 const auto nullary = [](){ return 0; };
7456 const auto unary = [](int x){ return x; };
7457 using nullary_t = decltype(nullary);
7458 using unary_t = decltype(unary);
7459 const auto higher1st = [](nullary_t f){ return f(); };
7460 const auto higher2nd = [unary](nullary_t f1){
7461 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7463 return higher1st(nullary) + higher2nd(nullary)(unary);
7468 namespace test_variadic_templates
7474 template <int N0, int... N1toN>
7475 struct sum<N0, N1toN...>
7477 static constexpr auto value = N0 + sum<N1toN...>::value;
7483 static constexpr auto value = 0;
7486 static_assert(sum<>::value == 0, "");
7487 static_assert(sum<1>::value == 1, "");
7488 static_assert(sum<23>::value == 23, "");
7489 static_assert(sum<1, 2>::value == 3, "");
7490 static_assert(sum<5, 5, 11>::value == 21, "");
7491 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7495 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7496 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7498 namespace test_template_alias_sfinae
7503 template<typename T>
7504 using member = typename T::member_type;
7506 template<typename T>
7509 template<typename T>
7510 void func(member<T>*) {}
7514 void test() { func<foo>(0); }
7518 } // namespace cxx11
7520 #endif // __cplusplus >= 201103L
7525 if ac_fn_cxx_try_compile
"$LINENO"; then :
7530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7533 eval ac_res
=\$
$cachevar
7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7535 $as_echo "$ac_res" >&6; }
7536 if eval test x\$
$cachevar = xyes
; then
7538 if test -n "$CXXCPP" ; then
7539 CXXCPP
="$CXXCPP $switch"
7547 if test x
$ac_success = xno
; then
7548 for alternative
in ${ax_cxx_compile_alternatives}; do
7549 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7550 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7552 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7553 if eval \${$cachevar+:} false; then :
7554 $as_echo_n "(cached
) " >&6
7558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7559 /* end confdefs.h. */
7562 // If the compiler admits that it is not ready for C++11, why torture it?
7563 // Hopefully, this will speed up the test.
7567 #error "This is not a C
++ compiler
"
7569 #elif __cplusplus < 201103L
7571 #error "This is not a C
++11 compiler
"
7578 namespace test_static_assert
7581 template <typename T>
7584 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7589 namespace test_final_override
7598 struct Derived : public Base
7600 virtual ~Derived() override {}
7601 virtual void f() override {}
7606 namespace test_double_right_angle_brackets
7609 template < typename T >
7612 typedef check<void> single_type;
7613 typedef check<check<void>> double_type;
7614 typedef check<check<check<void>>> triple_type;
7615 typedef check<check<check<check<void>>>> quadruple_type;
7619 namespace test_decltype
7632 namespace test_type_deduction
7635 template < typename T1, typename T2 >
7638 static const bool value = false;
7641 template < typename T >
7642 struct is_same<T, T>
7644 static const bool value = true;
7647 template < typename T1, typename T2 >
7649 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7655 test(const int c, volatile int v)
7657 static_assert(is_same<int, decltype(0)>::value == true, "");
7658 static_assert(is_same<int, decltype(c)>::value == false, "");
7659 static_assert(is_same<int, decltype(v)>::value == false, "");
7662 auto sumi = ac + av + 'x';
7663 auto sumf = ac + av + 1.0;
7664 static_assert(is_same<int, decltype(ac)>::value == true, "");
7665 static_assert(is_same<int, decltype(av)>::value == true, "");
7666 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7667 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7668 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7669 return (sumf > 0.0) ? sumi : add(c, v);
7674 namespace test_noexcept
7677 int f() { return 0; }
7678 int g() noexcept { return 0; }
7680 static_assert(noexcept(f()) == false, "");
7681 static_assert(noexcept(g()) == true, "");
7685 namespace test_constexpr
7688 template < typename CharT >
7689 unsigned long constexpr
7690 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7692 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7695 template < typename CharT >
7696 unsigned long constexpr
7697 strlen_c(const CharT *const s) noexcept
7699 return strlen_c_r(s, 0UL);
7702 static_assert(strlen_c("") == 0UL, "");
7703 static_assert(strlen_c("1") == 1UL, "");
7704 static_assert(strlen_c("example
") == 7UL, "");
7705 static_assert(strlen_c("another\
0example
") == 7UL, "");
7709 namespace test_rvalue_references
7715 static constexpr int value = N;
7718 answer<1> f(int&) { return answer<1>(); }
7719 answer<2> f(const int&) { return answer<2>(); }
7720 answer<3> f(int&&) { return answer<3>(); }
7727 static_assert(decltype(f(i))::value == 1, "");
7728 static_assert(decltype(f(c))::value == 2, "");
7729 static_assert(decltype(f(0))::value == 3, "");
7734 namespace test_uniform_initialization
7739 static const int zero {};
7740 static const int one {1};
7743 static_assert(test::zero == 0, "");
7744 static_assert(test::one == 1, "");
7748 namespace test_lambdas
7754 auto lambda1 = [](){};
7755 auto lambda2 = lambda1;
7763 auto a = [](int i, int j){ return i + j; }(1, 2);
7764 auto b = []() -> int { return '0'; }();
7765 auto c = [=](){ return a + b; }();
7766 auto d = [&](){ return c; }();
7767 auto e = [a, &b](int x) mutable {
7768 const auto identity = [](int y){ return y; };
7769 for (auto i = 0; i < a; ++i)
7771 return x + identity(a + b);
7773 return a + b + c + d + e;
7779 const auto nullary = [](){ return 0; };
7780 const auto unary = [](int x){ return x; };
7781 using nullary_t = decltype(nullary);
7782 using unary_t = decltype(unary);
7783 const auto higher1st = [](nullary_t f){ return f(); };
7784 const auto higher2nd = [unary](nullary_t f1){
7785 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7787 return higher1st(nullary) + higher2nd(nullary)(unary);
7792 namespace test_variadic_templates
7798 template <int N0, int... N1toN>
7799 struct sum<N0, N1toN...>
7801 static constexpr auto value = N0 + sum<N1toN...>::value;
7807 static constexpr auto value = 0;
7810 static_assert(sum<>::value == 0, "");
7811 static_assert(sum<1>::value == 1, "");
7812 static_assert(sum<23>::value == 23, "");
7813 static_assert(sum<1, 2>::value == 3, "");
7814 static_assert(sum<5, 5, 11>::value == 21, "");
7815 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7819 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7820 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7822 namespace test_template_alias_sfinae
7827 template<typename T>
7828 using member = typename T::member_type;
7830 template<typename T>
7833 template<typename T>
7834 void func(member<T>*) {}
7838 void test() { func<foo>(0); }
7842 } // namespace cxx11
7844 #endif // __cplusplus >= 201103L
7849 if ac_fn_cxx_try_compile "$LINENO"; then :
7854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7857 eval ac_res=\$$cachevar
7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7859 $as_echo "$ac_res" >&6; }
7860 if eval test x\$$cachevar = xyes; then
7862 if test -n "$CXXCPP" ; then
7863 CXXCPP="$CXXCPP $switch"
7869 if test x$ac_success = xyes; then
7874 CXX_FOR_BUILD="$CXX"
7875 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7876 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7877 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7878 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7879 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7881 ac_cpp='$CPP $CPPFLAGS'
7882 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7883 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7884 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7886 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7887 if test x$ac_success = xno; then
7888 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7891 if test x$ac_success = xno; then
7892 HAVE_CXX11_FOR_BUILD=0
7893 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7894 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7896 HAVE_CXX11_FOR_BUILD=1
7898 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7906 # Check whether --enable-pgo-build was given.
7907 if test "${enable_pgo_build+set}" = set; then :
7908 enableval
=$enable_pgo_build; enable_pgo_build
=$enableval
7914 # Issue errors and warnings for invalid/strange PGO build combinations.
7915 case "$have_compiler:$host:$target:$enable_pgo_build" in
7918 # Allow the PGO build only if we aren't building a compiler and
7919 # we are in a native configuration.
7920 no
:$build:$build:yes | no
:$build:$build:lto
) ;;
7922 # Disallow the PGO bootstrap if we are building a compiler.
7923 yes:*:*:yes |
yes:*:*:lto
)
7924 as_fn_error $?
"cannot perform the PGO bootstrap when building a compiler" "$LINENO" 5 ;;
7927 as_fn_error $?
"invalid option for --enable-pgo-build" "$LINENO" 5
7931 if test "$enable_pgo_build" != "no"; then
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -fprofile-generate" >&5
7933 $as_echo_n "checking whether the compiler supports -fprofile-generate... " >&6; }
7934 old_CFLAGS
="$CFLAGS"
7935 PGO_BUILD_GEN_CFLAGS
="-fprofile-generate"
7936 CFLAGS
="$CFLAGS $PGO_BUILD_CFLAGS"
7938 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7939 /* end confdefs.h. */
7942 if ac_fn_c_try_compile
"$LINENO"; then :
7945 PGO_BUILD_GEN_CFLAGS
=
7947 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7948 CFLAGS
="$old_CFLAGS"
7949 if test -n "$PGO_BUILD_GEN_CFLAGS"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7951 $as_echo "yes" >&6; }
7952 PGO_BUILD_USE_CFLAGS
="-fprofile-use"
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7955 $as_echo "no" >&6; }
7956 as_fn_error $?
"cannot perform the PGO build without -fprofile-generate" "$LINENO" 5
7959 if test "$enable_pgo_build" = "lto"; then
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports -flto=jobserver -ffat-lto-objects" >&5
7961 $as_echo_n "checking whether the compiler supports -flto=jobserver -ffat-lto-objects... " >&6; }
7962 old_CFLAGS
="$CFLAGS"
7963 PGO_BUILD_LTO_CFLAGS
="-flto=jobserver -ffat-lto-objects"
7964 CFLAGS
="$CFLAGS $PGO_BUILD_LTO_CFLAGS"
7965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7966 /* end confdefs.h. */
7969 if ac_fn_c_try_compile
"$LINENO"; then :
7972 PGO_BUILD_LTO_CFLAGS
=
7974 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7975 CFLAGS
="$old_CFLAGS"
7976 if test -n "$PGO_BUILD_LTO_CFLAGS"; then
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7978 $as_echo "yes" >&6; }
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7981 $as_echo "no" >&6; }
7982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: LTO is disabled for the PGO build" >&5
7983 $as_echo "$as_me: WARNING: LTO is disabled for the PGO build" >&2;}
7991 # Used for setting $lt_cv_objdir
7992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7993 $as_echo_n "checking for objdir... " >&6; }
7994 if ${lt_cv_objdir+:} false
; then :
7995 $as_echo_n "(cached) " >&6
7997 rm -f .libs
2>/dev
/null
7998 mkdir .libs
2>/dev
/null
7999 if test -d .libs
; then
8002 # MS-DOS does not allow filenames that begin with a dot.
8005 rmdir .libs
2>/dev
/null
8007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8008 $as_echo "$lt_cv_objdir" >&6; }
8009 objdir
=$lt_cv_objdir
8015 cat >>confdefs.h
<<_ACEOF
8016 #define LT_OBJDIR "$lt_cv_objdir/"
8021 # Check for GMP, MPFR and MPC
8022 gmplibs
="-lmpc -lmpfr -lgmp"
8026 # Specify a location for mpc
8027 # check for this first so it ends up on the link line before mpfr.
8029 # Check whether --with-mpc was given.
8030 if test "${with_mpc+set}" = set; then :
8035 # Check whether --with-mpc-include was given.
8036 if test "${with_mpc_include+set}" = set; then :
8037 withval
=$with_mpc_include;
8041 # Check whether --with-mpc-lib was given.
8042 if test "${with_mpc_lib+set}" = set; then :
8043 withval
=$with_mpc_lib;
8047 if test "x$with_mpc" != x
; then
8048 gmplibs
="-L$with_mpc/lib $gmplibs"
8049 gmpinc
="-I$with_mpc/include $gmpinc"
8051 if test "x$with_mpc_include" != x
; then
8052 gmpinc
="-I$with_mpc_include $gmpinc"
8054 if test "x$with_mpc_lib" != x
; then
8055 gmplibs
="-L$with_mpc_lib $gmplibs"
8057 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
8058 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
8059 gmpinc
='-I$$s/mpc/src '"$gmpinc"
8060 # Do not test the mpc version. Assume that it is sufficient, since
8061 # it is in the source tree, and the library has not been built yet
8062 # but it would be included on the link line in the version check below
8063 # hence making the test fail.
8067 # Specify a location for mpfr
8068 # check for this first so it ends up on the link line before gmp.
8070 # Check whether --with-mpfr was given.
8071 if test "${with_mpfr+set}" = set; then :
8076 # Check whether --with-mpfr-include was given.
8077 if test "${with_mpfr_include+set}" = set; then :
8078 withval
=$with_mpfr_include;
8082 # Check whether --with-mpfr-lib was given.
8083 if test "${with_mpfr_lib+set}" = set; then :
8084 withval
=$with_mpfr_lib;
8088 if test "x$with_mpfr" != x
; then
8089 gmplibs
="-L$with_mpfr/lib $gmplibs"
8090 gmpinc
="-I$with_mpfr/include $gmpinc"
8092 if test "x$with_mpfr_include" != x
; then
8093 gmpinc
="-I$with_mpfr_include $gmpinc"
8095 if test "x$with_mpfr_lib" != x
; then
8096 gmplibs
="-L$with_mpfr_lib $gmplibs"
8098 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
8099 # MPFR v3.1.0 moved the sources into a src sub-directory.
8100 if ! test -d ${srcdir}/mpfr
/src
; then
8101 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
8103 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
8104 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
8105 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
8106 # Do not test the mpfr version. Assume that it is sufficient, since
8107 # it is in the source tree, and the library has not been built yet
8108 # but it would be included on the link line in the version check below
8109 # hence making the test fail.
8113 # Specify a location for gmp
8115 # Check whether --with-gmp was given.
8116 if test "${with_gmp+set}" = set; then :
8121 # Check whether --with-gmp-include was given.
8122 if test "${with_gmp_include+set}" = set; then :
8123 withval
=$with_gmp_include;
8127 # Check whether --with-gmp-lib was given.
8128 if test "${with_gmp_lib+set}" = set; then :
8129 withval
=$with_gmp_lib;
8134 if test "x$with_gmp" != x
; then
8135 gmplibs
="-L$with_gmp/lib $gmplibs"
8136 gmpinc
="-I$with_gmp/include $gmpinc"
8138 if test "x$with_gmp_include" != x
; then
8139 gmpinc
="-I$with_gmp_include $gmpinc"
8141 if test "x$with_gmp_lib" != x
; then
8142 gmplibs
="-L$with_gmp_lib $gmplibs"
8144 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
8145 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
8146 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
8147 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8148 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
8149 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
8150 # Do not test the gmp version. Assume that it is sufficient, since
8151 # it is in the source tree, and the library has not been built yet
8152 # but it would be included on the link line in the version check below
8153 # hence making the test fail.
8157 if test -d ${srcdir}/gcc
&& test "x$have_gmp" = xno
; then
8159 saved_CFLAGS
="$CFLAGS"
8160 CFLAGS
="$CFLAGS $gmpinc"
8161 # Check for the recommended and required versions of GMP.
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8163 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8164 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8171 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8172 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8173 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8181 if ac_fn_c_try_compile
"$LINENO"; then :
8182 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8183 /* end confdefs.h. */
8189 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8190 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8191 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8199 if ac_fn_c_try_compile
"$LINENO"; then :
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8201 $as_echo "yes" >&6; }
8203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8204 $as_echo "buggy but acceptable" >&6; }
8206 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8209 $as_echo "no" >&6; }; have_gmp
=no
8211 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8213 # If we have GMP, check the MPFR version.
8214 if test x
"$have_gmp" = xyes
; then
8215 # Check for the recommended and required versions of MPFR.
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8217 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8218 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8219 /* end confdefs.h. */
8226 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8234 if ac_fn_c_try_compile
"$LINENO"; then :
8235 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8236 /* end confdefs.h. */
8243 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8251 if ac_fn_c_try_compile
"$LINENO"; then :
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8253 $as_echo "yes" >&6; }
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8256 $as_echo "buggy but acceptable" >&6; }
8258 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }; have_gmp
=no
8263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8266 # Check for the MPC header version.
8267 if test x
"$have_gmp" = xyes
; then
8268 # Check for the recommended and required versions of MPC.
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8270 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8271 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8278 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8286 if ac_fn_c_try_compile
"$LINENO"; then :
8287 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8294 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8302 if ac_fn_c_try_compile
"$LINENO"; then :
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8304 $as_echo "yes" >&6; }
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8307 $as_echo "buggy but acceptable" >&6; }
8309 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8312 $as_echo "no" >&6; }; have_gmp
=no
8314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8317 # Now check the MPFR library.
8318 if test x
"$have_gmp" = xyes
; then
8320 LIBS
="$LIBS $gmplibs"
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8322 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8324 /* end confdefs.h. */
8336 mpfr_atan2 (n, n, x, MPFR_RNDN);
8337 mpfr_erfc (n, x, MPFR_RNDN);
8338 mpfr_subnormalize (x, t, MPFR_RNDN);
8342 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8343 mpc_cosh (c, c, MPC_RNDNN);
8344 mpc_pow (c, c, c, MPC_RNDNN);
8345 mpc_acosh (c, c, MPC_RNDNN);
8352 if ac_fn_c_try_link
"$LINENO"; then :
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8354 $as_echo "yes" >&6; }
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8357 $as_echo "no" >&6; }; have_gmp
=no
8359 rm -f core conftest.err conftest.
$ac_objext \
8360 conftest
$ac_exeext conftest.
$ac_ext
8364 CFLAGS
="$saved_CFLAGS"
8366 # The library versions listed in the error message below should match
8367 # the HARD-minimums enforced above.
8368 if test x
$have_gmp != xyes
; then
8369 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8370 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8371 their locations. Source code for these libraries can be found at
8372 their respective hosting sites as well as at
8373 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8374 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8375 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8376 make sure that you have installed both the libraries and the header
8377 files. They may be located in separate packages." "$LINENO" 5
8381 # Flags needed for both GMP, MPFR and/or MPC.
8389 # Libraries to use for stage1 or when not bootstrapping.
8391 # Check whether --with-stage1-libs was given.
8392 if test "${with_stage1_libs+set}" = set; then :
8393 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8396 stage1_libs
=$withval
8404 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8405 # default is yes if gcc is being built; no otherwise. The reason for
8406 # this default is that gdb is sometimes linked against GNU Source
8407 # Highlight, which is a shared library that uses C++ exceptions. In
8408 # this case, -static-libstdc++ will cause crashes.
8410 # Check whether --with-static-standard-libraries was given.
8411 if test "${with_static_standard_libraries+set}" = set; then :
8412 withval
=$with_static_standard_libraries;
8414 with_static_standard_libraries
=auto
8417 if test "$with_static_standard_libraries" = auto
; then
8418 with_static_standard_libraries
=$have_compiler
8421 # Linker flags to use for stage1 or when not bootstrapping.
8423 # Check whether --with-stage1-ldflags was given.
8424 if test "${with_stage1_ldflags+set}" = set; then :
8425 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8428 stage1_ldflags
=$withval
8432 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8433 # if supported. But if the user explicitly specified the libraries to use,
8434 # trust that they are doing what they want.
8435 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8436 -a "$have_static_libs" = yes; then
8437 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8443 # Libraries to use for stage2 and later builds.
8445 # Check whether --with-boot-libs was given.
8446 if test "${with_boot_libs+set}" = set; then :
8447 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8450 poststage1_libs
=$withval
8458 # Linker flags to use for stage2 and later builds.
8460 # Check whether --with-boot-ldflags was given.
8461 if test "${with_boot_ldflags+set}" = set; then :
8462 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8465 poststage1_ldflags
=$withval
8469 # In stages 2 and 3, default to linking libstdc++ and libgcc
8470 # statically. But if the user explicitly specified the libraries to
8471 # use, trust that they are doing what they want.
8472 if test "$poststage1_libs" = ""; then
8473 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8479 # GCC GRAPHITE dependency isl.
8480 # Basic setup is inlined here, actual checks are in config/isl.m4
8483 # Check whether --with-isl was given.
8484 if test "${with_isl+set}" = set; then :
8489 # Treat --without-isl as a request to disable
8490 # GRAPHITE support and skip all following checks.
8491 if test "x$with_isl" != "xno"; then
8495 # Check whether --with-isl-include was given.
8496 if test "${with_isl_include+set}" = set; then :
8497 withval
=$with_isl_include;
8501 # Check whether --with-isl-lib was given.
8502 if test "${with_isl_lib+set}" = set; then :
8503 withval
=$with_isl_lib;
8507 # Check whether --enable-isl-version-check was given.
8508 if test "${enable_isl_version_check+set}" = set; then :
8509 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8511 ENABLE_ISL_CHECK
=yes
8515 # Initialize isllibs and islinc.
8524 isllibs
="-L$with_isl/lib"
8525 islinc
="-I$with_isl/include"
8528 if test "x${with_isl_include}" != x
; then
8529 islinc
="-I$with_isl_include"
8531 if test "x${with_isl_lib}" != x
; then
8532 isllibs
="-L$with_isl_lib"
8534 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8535 && test -d ${srcdir}/isl
; then
8536 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8537 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8539 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8540 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8543 isllibs
="${isllibs} -lisl"
8547 if test "${ENABLE_ISL_CHECK}" = yes ; then
8548 _isl_saved_CFLAGS
=$CFLAGS
8549 _isl_saved_LDFLAGS
=$LDFLAGS
8550 _isl_saved_LIBS
=$LIBS
8552 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8553 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8554 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8557 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8558 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8559 /* end confdefs.h. */
8560 #include <isl/schedule.h>
8564 isl_options_set_schedule_serialize_sccs (NULL, 0);
8569 if ac_fn_c_try_link
"$LINENO"; then :
8574 rm -f core conftest.err conftest.
$ac_objext \
8575 conftest
$ac_exeext conftest.
$ac_ext
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8577 $as_echo "$gcc_cv_isl" >&6; }
8579 if test "${gcc_cv_isl}" = no
; then
8580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8581 $as_echo "required isl version is 0.15 or later" >&6; }
8584 CFLAGS
=$_isl_saved_CFLAGS
8585 LDFLAGS
=$_isl_saved_LDFLAGS
8586 LIBS
=$_isl_saved_LIBS
8594 if test "x${with_isl}" = xno
; then
8595 graphite_requested
=no
8596 elif test "x${with_isl}" != x \
8597 ||
test "x${with_isl_include}" != x \
8598 ||
test "x${with_isl_lib}" != x
; then
8599 graphite_requested
=yes
8601 graphite_requested
=no
8606 if test "${gcc_cv_isl}" = no
; then
8611 if test "${graphite_requested}" = yes \
8612 && test "x${isllibs}" = x \
8613 && test "x${islinc}" = x
; then
8615 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8621 # If the isl check failed, disable builds of in-tree variant of isl
8622 if test "x$with_isl" = xno ||
8623 test "x$gcc_cv_isl" = xno
; then
8624 noconfigdirs
="$noconfigdirs isl"
8631 # Check for LTO support.
8632 # Check whether --enable-lto was given.
8633 if test "${enable_lto+set}" = set; then :
8634 enableval
=$enable_lto; enable_lto
=$enableval
8636 enable_lto
=yes; default_enable_lto
=yes
8645 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8646 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8647 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8656 if test $target_elf = yes; then :
8657 # ELF platforms build the lto-plugin always.
8658 build_lto_plugin
=yes
8661 if test x
"$default_enable_lto" = x
"yes" ; then
8663 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8664 # On other non-ELF platforms, LTO has yet to be validated.
8668 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8669 # It would also be nice to check the binutils support, but we don't
8670 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8671 # warn during gcc/ subconfigure; unless you're bootstrapping with
8672 # -flto it won't be needed until after installation anyway.
8674 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8675 *) if test x
"$enable_lto" = x
"yes"; then
8676 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8681 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8682 # Build it unless LTO was explicitly disabled.
8684 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8691 # Check whether --enable-linker-plugin-configure-flags was given.
8692 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8693 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8695 extra_linker_plugin_configure_flags
=
8699 # Check whether --enable-linker-plugin-flags was given.
8700 if test "${enable_linker_plugin_flags+set}" = set; then :
8701 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8703 extra_linker_plugin_flags
=
8708 # Enable --enable-host-shared.
8709 # Checked early to determine whether jit is an 'all' language
8710 # Check whether --enable-host-shared was given.
8711 if test "${enable_host_shared+set}" = set; then :
8712 enableval
=$enable_host_shared; host_shared
=$enableval
8714 x86_64-
*-darwin* | aarch64-
*-darwin*)
8715 if test x
$host_shared != xyes
; then
8716 # PIC is the default, and actually cannot be switched off.
8717 echo configure.ac
: warning
: PIC code is required
for the configured target
, host-shared setting ignored.
1>&2
8724 x86_64-
*-darwin* | aarch64-
*-darwin*) host_shared
=yes ;;
8725 *) host_shared
=no
;;
8731 # By default, C and C++ are the only stage 1 languages.
8732 stage1_languages
=,c
,
8734 # Target libraries that we bootstrap.
8735 bootstrap_target_libs
=,target-libgcc
,
8737 # Figure out what language subdirectories are present.
8738 # Look if the user specified --enable-languages="..."; if not, use
8739 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8741 # NB: embedded tabs in this IF block -- do not untabify
8742 if test -d ${srcdir}/gcc
; then
8743 if test x
"${enable_languages+set}" != xset
; then
8744 if test x
"${LANGUAGES+set}" = xset
; then
8745 enable_languages
="${LANGUAGES}"
8746 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8748 enable_languages
=default
8751 if test x
"${enable_languages}" = x ||
8752 test x
"${enable_languages}" = xyes
;
8754 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8758 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8760 # 'f95' is the old name for the 'fortran' language. We issue a warning
8761 # and make the substitution.
8762 case ,${enable_languages}, in
8764 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8765 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8769 # If bootstrapping, C++ must be enabled.
8770 case ",$enable_languages,:$enable_bootstrap" in
8773 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8774 enable_languages
="${enable_languages},c++"
8776 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8781 # First scan to see if an enabled language requires some other language.
8782 # We assume that a given config-lang.in will list all the language
8783 # front ends it requires, even if some are required indirectly.
8784 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8785 case ${lang_frag} in
8787 # The odd quoting in the next line works around
8788 # an apparent bug in bash 1.12 on linux.
8789 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8791 # From the config-lang.in, get $language, $lang_requires, and
8792 # $lang_requires_boot_languages.
8795 lang_requires_boot_languages
=
8796 # set srcdir during sourcing lang_frag to the gcc dir.
8797 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8798 # polutes this shell
8799 saved_srcdir
=${srcdir}
8800 srcdir
=${srcdir}/gcc .
${lang_frag}
8801 srcdir
=${saved_srcdir}
8802 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8803 case ,${enable_languages}, in
8808 echo " \`$other' language required by \`$language'; enabling" 1>&2
8809 enable_languages
="${enable_languages},${other}"
8813 for other
in ${lang_requires_boot_languages} ; do
8814 if test "$other" != "c"; then
8815 case ,${enable_stage1_languages}, in
8820 case ,${enable_languages}, in
8822 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8823 enable_stage1_languages
="$enable_stage1_languages,${other}"
8834 new_enable_languages
=,c
,
8836 # If LTO is enabled, add the LTO front end.
8837 if test "$enable_lto" = "yes" ; then
8838 case ,${enable_languages}, in
8840 *) enable_languages
="${enable_languages},lto" ;;
8842 if test "${build_lto_plugin}" = "yes" ; then
8843 configdirs
="$configdirs lto-plugin"
8847 # If we're building an offloading compiler, add the LTO front end.
8848 if test x
"$enable_as_accelerator_for" != x
; then
8849 case ,${enable_languages}, in
8851 *) enable_languages
="${enable_languages},lto" ;;
8855 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8856 potential_languages
=,c
,
8858 enabled_target_libs
=
8859 disabled_target_libs
=
8861 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8862 case ${lang_frag} in
8864 # The odd quoting in the next line works around
8865 # an apparent bug in bash 1.12 on linux.
8866 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8868 # From the config-lang.in, get $language, $target_libs,
8869 # $lang_dirs, $boot_language, and $build_by_default
8875 build_by_default
=yes
8876 # set srcdir during sourcing. See above about save & restore
8877 saved_srcdir
=${srcdir}
8878 srcdir
=${srcdir}/gcc .
${lang_frag}
8879 srcdir
=${saved_srcdir}
8880 if test x
${language} = x
; then
8881 echo "${lang_frag} doesn't set \$language." 1>&2
8885 if test "$language" = "c++"; then
8890 # C is always enabled, so no need to add it again
8891 if test "$language" != "c"; then
8892 case ,${enable_languages}, in
8894 # Language was explicitly selected; include it
8898 # All languages are enabled
8902 # 'default' was selected, select it if it is a default language
8903 add_this_lang
=${build_by_default}
8908 # Disable languages that need other directories if these aren't available.
8909 for i
in $subdir_requires; do
8910 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8911 case ${add_this_lang} in
8913 # Specifically requested language; tell them.
8914 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8918 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8919 add_this_lang
=unsupported
8923 add_this_lang
=unsupported
8928 # Disable Ada if no preexisting GNAT is available.
8929 case ${add_this_lang}:${language}:${have_gnat} in
8931 # Specifically requested language; tell them.
8932 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8935 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8936 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8937 add_this_lang
=unsupported
8941 add_this_lang
=unsupported
8945 # Disable D if no preexisting GDC is available.
8946 case ${add_this_lang}:${language}:${have_gdc} in
8948 # Specifically requested language; tell them.
8949 as_fn_error $?
"GDC is required to build $language" "$LINENO" 5
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8953 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8954 add_this_lang
=unsupported
8958 add_this_lang
=unsupported
8962 # Disable jit if -enable-host-shared not specified
8963 # but not if building for Mingw. All code in Windows
8964 # is position independent code (PIC).
8968 case ${add_this_lang}:${language}:${host_shared} in
8970 # PR jit/64780: explicitly specify --enable-host-shared
8972 Enabling language \"jit\" requires --enable-host-shared.
8974 --enable-host-shared typically slows the rest of the compiler down by
8975 a few %, so you must explicitly enable it.
8977 If you want to build both the jit and the regular compiler, it is often
8978 best to do this via two separate configure/builds, in separate
8979 directories, to avoid imposing the performance cost of
8980 --enable-host-shared on the regular compiler." "$LINENO" 5
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8984 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8985 add_this_lang
=unsupported
8989 add_this_lang
=unsupported
8995 # Disable a language that is unsupported by the target.
8996 case "${add_this_lang}: $unsupported_languages " in
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
9001 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
9002 add_this_lang
=unsupported
9006 case $add_this_lang in
9008 # Remove language-dependent dirs.
9009 disabled_target_libs
="$disabled_target_libs $target_libs"
9010 noconfigdirs
="$noconfigdirs $lang_dirs"
9013 # Remove language-dependent dirs; still show language as supported.
9014 disabled_target_libs
="$disabled_target_libs $target_libs"
9015 noconfigdirs
="$noconfigdirs $lang_dirs"
9016 potential_languages
="${potential_languages}${language},"
9019 new_enable_languages
="${new_enable_languages}${language},"
9020 potential_languages
="${potential_languages}${language},"
9021 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
9022 enabled_target_libs
="$enabled_target_libs $target_libs"
9023 case "${boot_language}:,$enable_stage1_languages," in
9024 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
9025 # Add to (comma-separated) list of stage 1 languages.
9026 case ",$stage1_languages," in
9027 *,$language,* |
,yes, |
,all
,) ;;
9028 *) stage1_languages
="${stage1_languages}${language}," ;;
9030 # We need to bootstrap any supporting libraries.
9031 bootstrap_target_libs
=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
9040 # Add target libraries which are only needed for disabled languages
9042 if test -n "$disabled_target_libs"; then
9043 for dir
in $disabled_target_libs; do
9044 case " $enabled_target_libs " in
9046 *) noconfigdirs
="$noconfigdirs $dir" ;;
9051 # Check whether --enable-stage1-languages was given.
9052 if test "${enable_stage1_languages+set}" = set; then :
9053 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
9055 # Set it to something that will have no effect in the loop below
9056 enable_stage1_languages
=c
;;
9058 enable_stage1_languages
=`echo $new_enable_languages | \
9059 sed -e "s/^,//" -e "s/,$//" ` ;;
9061 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
9062 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
9065 # Add "good" languages from enable_stage1_languages to stage1_languages,
9066 # while "bad" languages go in missing_languages. Leave no duplicates.
9067 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
9068 case $potential_languages in
9070 case $stage1_languages in
9072 *) stage1_languages
="$stage1_languages$i," ;;
9075 case $missing_languages in
9077 *) missing_languages
="$missing_languages$i," ;;
9084 # Remove leading/trailing commas that were added for simplicity
9085 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
9086 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
9087 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
9088 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
9090 if test "x$missing_languages" != x
; then
9092 The following requested languages could not be built: ${missing_languages}
9093 Supported languages are: ${potential_languages}" "$LINENO" 5
9095 if test "x$new_enable_languages" != "x$enable_languages"; then
9096 echo The following languages will be built
: ${new_enable_languages}
9097 enable_languages
="$new_enable_languages"
9101 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
9104 # Handle --disable-<component> generically.
9105 for dir
in $configdirs $build_configdirs $target_configdirs ; do
9106 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
9107 varname
=`echo $dirname | sed -e s/+/_/g`
9108 if eval test x\
${enable_${varname}} "=" xno
; then
9109 noconfigdirs
="$noconfigdirs $dir"
9113 # Check for Boehm's garbage collector
9114 # Check whether --enable-objc-gc was given.
9115 if test "${enable_objc_gc+set}" = set; then :
9116 enableval
=$enable_objc_gc;
9120 # Check whether --with-target-bdw-gc was given.
9121 if test "${with_target_bdw_gc+set}" = set; then :
9122 withval
=$with_target_bdw_gc;
9126 # Check whether --with-target-bdw-gc-include was given.
9127 if test "${with_target_bdw_gc_include+set}" = set; then :
9128 withval
=$with_target_bdw_gc_include;
9132 # Check whether --with-target-bdw-gc-lib was given.
9133 if test "${with_target_bdw_gc_lib+set}" = set; then :
9134 withval
=$with_target_bdw_gc_lib;
9138 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
9140 $as_echo_n "checking for bdw garbage collector... " >&6; }
9141 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
9143 $as_echo "using bdw-gc in default locations" >&6; }
9145 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
9146 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
9147 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
9148 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
9151 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
9156 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
9157 case ,${enable_languages}, in
9159 # Disable libitm, libsanitizer if we're not building libstdc++
9160 case "${noconfigdirs}" in
9161 *target-libstdc
++-v3*)
9162 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
9168 noconfigdirs
="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9172 # If gcc/ is not in the source tree then we'll not be building a
9173 # target compiler, assume in that case we don't want to build any
9174 # target libraries or tools.
9176 # This was added primarily for the benefit for binutils-gdb who reuse
9177 # this configure script, but don't always have target tools available.
9178 if test ! -d ${srcdir}/gcc
; then
9179 skipdirs
="${skipdirs} ${target_configdirs}"
9182 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9183 # $build_configdirs and $target_configdirs.
9184 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9187 for dir
in .
$skipdirs $noconfigdirs ; do
9188 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9189 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9190 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9191 if test -r $srcdir/$dirname/configure
; then
9192 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9195 notsupp
="$notsupp $dir"
9199 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9200 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9201 if test -r $srcdir/$dirname/configure
; then
9202 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9205 notsupp
="$notsupp $dir"
9209 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9210 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9211 if test -r $srcdir/$dirname/configure
; then
9212 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9215 notsupp
="$notsupp $dir"
9221 # Quietly strip out all directories which aren't configurable in this tree.
9222 # This relies on all configurable subdirectories being autoconfiscated, which
9224 build_configdirs_all
="$build_configdirs"
9226 for i
in ${build_configdirs_all} ; do
9227 j
=`echo $i | sed -e s/build-//g`
9228 if test -f ${srcdir}/$j/configure
; then
9229 build_configdirs
="${build_configdirs} $i"
9233 configdirs_all
="$configdirs"
9235 for i
in ${configdirs_all} ; do
9236 if test -f ${srcdir}/$i/configure
; then
9237 configdirs
="${configdirs} $i"
9241 target_configdirs_all
="$target_configdirs"
9243 for i
in ${target_configdirs_all} ; do
9244 j
=`echo $i | sed -e s/target-//g`
9245 if test -f ${srcdir}/$j/configure
; then
9246 target_configdirs
="${target_configdirs} $i"
9250 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9251 # so we have to add it after the preceding checks.
9252 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9254 case " $configdirs " in
9256 # If we can build libiberty, we can also build libiberty-linker-plugin.
9257 configdirs
="$configdirs libiberty-linker-plugin"
9258 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
9259 --with-libiberty=../libiberty-linker-plugin";;
9261 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
9265 # Sometimes we have special requirements for the host libiberty.
9266 extra_host_libiberty_configure_flags
=
9267 case " $configdirs " in
9268 *" lto-plugin "* |
*" libcc1 "* |
*" gdbserver "*)
9269 # When these are to be built as shared libraries, the same applies to
9271 extra_host_libiberty_configure_flags
=--enable-shared
9276 # Sometimes we have special requirements for the host zlib.
9277 extra_host_zlib_configure_flags
=
9278 case " $configdirs " in
9280 # When bfd is to be built as a shared library, the same applies to
9282 if test "$enable_shared" = "yes"; then
9283 extra_host_zlib_configure_flags
=--enable-host-shared
9289 # Produce a warning message for the subdirs we can't configure.
9290 # This isn't especially interesting in the Cygnus tree, but in the individual
9291 # FSF releases, it's important to let people know when their machine isn't
9292 # supported by the one or two programs in a package.
9294 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9295 # If $appdirs is non-empty, at least one of those directories must still
9296 # be configured, or we error out. (E.g., if the gas release supports a
9297 # specified target in some subdirs but not the gas subdir, we shouldn't
9298 # pretend that all is well.)
9299 if test -n "$appdirs" ; then
9300 for dir
in $appdirs ; do
9301 if test -r $dir/Makefile.
in ; then
9302 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9306 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9312 if test -n "$appdirs" ; then
9313 echo "*** This configuration is not supported by this package." 1>&2
9317 # Okay, some application will build, or we don't care to check. Still
9318 # notify of subdirs not getting built.
9319 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9320 echo " ${notsupp}" 1>&2
9321 echo " (Any other directories should still work fine.)" 1>&2
9329 # To find our prefix, in gcc_cv_tool_prefix.
9331 # The user is always right.
9332 if test "${PATH_SEPARATOR+set}" != set; then
9333 echo "#! /bin/sh" >conf$$.sh
9334 echo "exit 0" >>conf$$.sh
9336 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9345 get_gcc_base_ver
="cat"
9347 # Check whether --with-gcc-major-version-only was given.
9348 if test "${with_gcc_major_version_only+set}" = set; then :
9349 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9350 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9360 if test "x$exec_prefix" = xNONE
; then
9361 if test "x$prefix" = xNONE
; then
9362 gcc_cv_tool_prefix
=$ac_default_prefix
9364 gcc_cv_tool_prefix
=$prefix
9367 gcc_cv_tool_prefix
=$exec_prefix
9370 # If there is no compiler in the tree, use the PATH only. In any
9371 # case, if there is no compiler in the tree nobody should use
9372 # AS_FOR_TARGET and LD_FOR_TARGET.
9373 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9374 if test x
$with_gcc_major_version_only = xyes
; then
9375 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9377 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9379 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9380 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9381 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9382 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9383 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9384 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9389 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9390 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9398 # Check whether --with-build-sysroot was given.
9399 if test "${with_build_sysroot+set}" = set; then :
9400 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9401 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9404 SYSROOT_CFLAGS_FOR_TARGET
=
9410 # Check whether --with-debug-prefix-map was given.
9411 if test "${with_debug_prefix_map+set}" = set; then :
9412 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9413 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9414 for debug_map
in $withval; do
9415 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9419 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9424 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9425 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9426 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9427 # We want to ensure that TARGET libraries (which we know are built with
9428 # gcc) are built with "-O2 -g", so include those options when setting
9429 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9430 if test "x$CFLAGS_FOR_TARGET" = x
; then
9431 if test "x${is_cross_compiler}" = xyes
; then
9432 CFLAGS_FOR_TARGET
="-g -O2"
9434 CFLAGS_FOR_TARGET
=$CFLAGS
9437 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9440 *" -g "* |
*" -g3 "*) ;;
9441 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9447 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9448 if test "x${is_cross_compiler}" = xyes
; then
9449 CXXFLAGS_FOR_TARGET
="-g -O2"
9451 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9452 case " $CXXFLAGS " in
9454 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9456 case " $CXXFLAGS " in
9457 *" -g "* |
*" -g3 "*) ;;
9458 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9466 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9467 # the named directory are copied to $(tooldir)/sys-include.
9468 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9469 if test x
${is_cross_compiler} = xno
; then
9470 echo 1>&2 '***' --with-headers is only supported when cross compiling
9473 if test x
"${with_headers}" != xyes
; then
9474 x
=${gcc_cv_tool_prefix}
9475 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9479 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9480 # the name directories are copied to $(tooldir)/lib. Multiple directories
9482 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9483 if test x
${is_cross_compiler} = xno
; then
9484 echo 1>&2 '***' --with-libs is only supported when cross compiling
9487 if test x
"${with_libs}" != xyes
; then
9488 # Copy the libraries in reverse order, so that files in the first named
9489 # library override files in subsequent libraries.
9490 x
=${gcc_cv_tool_prefix}
9491 for l
in ${with_libs}; do
9492 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9497 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9499 # This is done by determining whether or not the appropriate directory
9500 # is available, and by checking whether or not specific configurations
9501 # have requested that this magic not happen.
9503 # The command line options always override the explicit settings in
9504 # configure.ac, and the settings in configure.ac override this magic.
9506 # If the default for a toolchain is to use GNU as and ld, and you don't
9507 # want to do that, then you should use the --without-gnu-as and
9508 # --without-gnu-ld options for the configure script. Similarly, if
9509 # the default is to use the included zlib and you don't want to do that,
9510 # you should use the --with-system-zlib option for the configure script.
9512 if test x
${use_gnu_as} = x
&&
9513 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9515 extra_host_args
="$extra_host_args --with-gnu-as"
9518 if test x
${use_gnu_ld} = x
&&
9519 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9521 extra_host_args
="$extra_host_args --with-gnu-ld"
9524 if test x
${use_included_zlib} = x
&&
9525 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9528 with_system_zlib
=yes
9529 extra_host_args
="$extra_host_args --with-system-zlib"
9532 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9533 # can detect this case.
9535 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9537 extra_host_args
="$extra_host_args --with-newlib"
9540 # Handle ${copy_dirs}
9541 set fnord
${copy_dirs}
9543 while test $# != 0 ; do
9544 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9547 echo Copying
$1 to
$2
9549 # Use the install script to create the directory and all required
9550 # parent directories.
9551 if test -d $2 ; then
9555 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9558 # Copy the directory, assuming we have tar.
9559 # FIXME: Should we use B in the second tar? Not all systems support it.
9560 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9562 # It is the responsibility of the user to correctly adjust all
9563 # symlinks. If somebody can figure out how to handle them correctly
9564 # here, feel free to add the code.
9571 # Determine a target-dependent exec_prefix that the installed
9572 # gcc will search in. Keep this list sorted by triplet, with
9573 # the *-*-osname triplets last.
9576 i
[34567]86-pc-msdosdjgpp*)
9577 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9582 md_exec_prefix
=/usr
/ccs
/bin
9586 extra_arflags_for_target
=
9587 extra_nmflags_for_target
=
9588 extra_ranlibflags_for_target
=
9589 target_makefile_frag
=/dev
/null
9592 target_makefile_frag
="config/mt-spu"
9594 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9595 target_makefile_frag
="config/mt-sde"
9597 mipsisa
*-*-elfoabi*)
9598 target_makefile_frag
="config/mt-mips-elfoabi"
9600 mips
*-*-*linux
* | mips
*-*-gnu*)
9601 target_makefile_frag
="config/mt-mips-gnu"
9604 target_makefile_frag
="config/mt-nios2-elf"
9607 target_makefile_frag
="config/mt-android"
9609 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9610 target_makefile_frag
="config/mt-gnu"
9612 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9613 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9614 # commands to handle both 32-bit and 64-bit objects. These flags are
9615 # harmless if we're using GNU nm or ar.
9616 extra_arflags_for_target
=" -X32_64"
9617 extra_nmflags_for_target
=" -B -X32_64"
9621 alphaieee_frag
=/dev
/null
9624 # This just makes sure to use the -mieee option to build target libs.
9625 # This should probably be set individually by each library.
9626 alphaieee_frag
="config/mt-alphaieee"
9630 # If --enable-target-optspace always use -Os instead of -O2 to build
9631 # the target libraries, similarly if it is not specified, use -Os
9632 # on selected platforms.
9633 ospace_frag
=/dev
/null
9634 case "${enable_target_optspace}:${target}" in
9636 ospace_frag
="config/mt-ospace"
9639 ospace_frag
="config/mt-d30v"
9641 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9642 ospace_frag
="config/mt-ospace"
9647 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9651 # Some systems (e.g., one of the i386-aix systems the gas testers are
9652 # using) don't handle "\$" correctly, so don't use it here.
9653 tooldir
='${exec_prefix}'/${target_noncanonical}
9654 build_tooldir
=${tooldir}
9656 # Create a .gdbinit file which runs the one in srcdir
9657 # and tells GDB to look there for source files.
9659 if test -r ${srcdir}/.gdbinit
; then
9662 *) cat > .
/.gdbinit
<<EOF
9666 source ${srcdir}/.gdbinit
9672 # Make sure that the compiler is able to generate an executable. If it
9673 # can't, we are probably in trouble. We don't care whether we can run the
9674 # executable--we might be using a cross compiler--we only care whether it
9675 # can be created. At this point the main configure script has set CC.
9677 echo "int main () { return 0; }" > conftest.c
9678 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9679 if test $?
= 0 ; then
9680 if test -s conftest ||
test -s conftest.exe
; then
9686 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9687 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9694 # Decide which environment variable is used to find dynamic libraries.
9696 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9697 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9698 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9699 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9702 # On systems where the dynamic library environment variable is PATH,
9703 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9704 # built executables to PATH.
9705 if test "$RPATH_ENVVAR" = PATH
; then
9706 GCC_SHLIB_SUBDIR
=/shlib
9711 # Adjust the toplevel makefile according to whether bootstrap was selected.
9712 case $enable_bootstrap in
9714 bootstrap_suffix
=bootstrap
9715 BUILD_CONFIG
=bootstrap-debug
9718 bootstrap_suffix
=no-bootstrap
9723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9724 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9727 # Check whether --with-build-config was given.
9728 if test "${with_build_config+set}" = set; then :
9729 withval
=$with_build_config; case $with_build_config in
9730 yes) with_build_config
= ;;
9731 no
) with_build_config
= BUILD_CONFIG
= ;;
9736 if test "x${with_build_config}" != x
; then
9737 BUILD_CONFIG
=$with_build_config
9739 case $BUILD_CONFIG in
9741 if echo "int f (void) { return 0; }" > conftest.c
&&
9742 ${CC} -c conftest.c
&&
9743 mv conftest.o conftest.o.g0
&&
9744 ${CC} -c -g conftest.c
&&
9745 mv conftest.o conftest.o.g
&&
9746 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9751 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9756 $as_echo "$BUILD_CONFIG" >&6; }
9759 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9761 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9762 # Check whether --enable-vtable-verify was given.
9763 if test "${enable_vtable_verify+set}" = set; then :
9764 enableval
=$enable_vtable_verify; case "$enableval" in
9765 yes) enable_vtable_verify
=yes ;;
9766 no
) enable_vtable_verify
=no
;;
9767 *) enable_vtable_verify
=no
;;
9770 enable_vtable_verify
=no
9773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9774 $as_echo "$enable_vtable_verify" >&6; }
9776 # Record target_configdirs and the configure arguments for target and
9777 # build configuration in Makefile.
9778 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9779 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9780 bootstrap_fixincludes
=no
9782 # If we are building libgomp, bootstrap it.
9783 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9784 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9787 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9788 # or bootstrap-ubsan, bootstrap it.
9789 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9790 case "$BUILD_CONFIG" in
9791 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9792 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9793 bootstrap_fixincludes
=yes
9798 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9799 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9800 test "$enable_vtable_verify" != no
; then
9801 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9804 # If we are building libatomic and the list of enabled languages includes the
9805 # D frontend, bootstrap it.
9806 if echo " ${target_configdirs} " |
grep " libatomic " > /dev
/null
2>&1; then
9807 case ,${enable_languages}, in
9809 bootstrap_target_libs
=${bootstrap_target_libs}target-libatomic
,
9814 # Determine whether gdb needs tk/tcl or not.
9815 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9816 # and in that case we want gdb to be built without tk. Ugh!
9817 # In fact I believe gdb is the *only* package directly dependent on tk,
9818 # so we should be able to put the 'maybe's in unconditionally and
9819 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9820 # 100% sure that that's safe though.
9822 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9823 case "$enable_gdbtk" in
9827 GDB_TK
="${gdb_tk}" ;;
9829 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9830 # distro. Eventually someone will fix this and move Insight, nee
9831 # gdbtk to a separate directory.
9832 if test -d ${srcdir}/gdb
/gdbtk
; then
9839 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9840 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9842 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9843 # else does, only include them if one of these is built. The Makefile
9844 # provides the ordering, so it's enough here to add to the list.
9845 case " ${configdirs} " in
9847 configdirs
="${configdirs} gnulib gdbsupport"
9850 configdirs
="${configdirs} gnulib gdbsupport"
9853 configdirs
="${configdirs} gnulib"
9857 # Strip out unwanted targets.
9859 # While at that, we remove Makefiles if we were started for recursive
9860 # configuration, so that the top-level Makefile reconfigures them,
9861 # like we used to do when configure itself was recursive.
9863 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9864 # but now we're fixing up the Makefile ourselves with the additional
9865 # commands passed to AC_CONFIG_FILES. Use separate variables
9866 # extrasub-{build,host,target} not because there is any reason to split
9867 # the substitutions up that way, but only to remain below the limit of
9868 # 99 commands in a script, for HP-UX sed.
9870 # Do not nest @if/@endif or @unless/@endunless pairs, because
9871 # configure will not warn you at all.
9873 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9874 yes:yes:*\ gold\
*:*,c
++,*) ;;
9875 yes:yes:*\ gold\
*:*)
9876 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9881 for module
in ${build_configdirs} ; do
9882 if test -z "${no_recursion}" \
9883 && test -f ${build_subdir}/${module}/Makefile
; then
9884 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9885 rm -f ${build_subdir}/${module}/Makefile
9887 extrasub_build
="$extrasub_build
9888 /^@if build-$module\$/d
9889 /^@endif build-$module\$/d
9890 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9891 /^@if build-$module-$bootstrap_suffix\$/d
9892 /^@endif build-$module-$bootstrap_suffix\$/d
9893 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9896 for module
in ${configdirs} ; do
9897 if test -z "${no_recursion}"; then
9898 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9899 if test -f ${file}; then
9900 echo 1>&2 "*** removing ${file} to force reconfigure"
9905 case ${module},${bootstrap_fixincludes} in
9906 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9907 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9909 extrasub_host
="$extrasub_host
9911 /^@endif $module\$/d
9912 /^@unless $module\$/,/^@endunless $module\$/d
9913 /^@if $module-$host_bootstrap_suffix\$/d
9914 /^@endif $module-$host_bootstrap_suffix\$/d
9915 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9918 for module
in ${target_configdirs} ; do
9919 if test -z "${no_recursion}" \
9920 && test -f ${target_subdir}/${module}/Makefile
; then
9921 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9922 rm -f ${target_subdir}/${module}/Makefile
9925 # We only bootstrap target libraries listed in bootstrap_target_libs.
9926 case $bootstrap_target_libs in
9927 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9928 *) target_bootstrap_suffix
=no-bootstrap
;;
9931 extrasub_target
="$extrasub_target
9932 /^@if target-$module\$/d
9933 /^@endif target-$module\$/d
9934 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9935 /^@if target-$module-$target_bootstrap_suffix\$/d
9936 /^@endif target-$module-$target_bootstrap_suffix\$/d
9937 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9940 # Do the final fixup along with target modules.
9941 extrasub_target
="$extrasub_target
9946 if test "$enable_pgo_build" != "no"; then
9947 extrasub_build
="$extrasub_build
9949 /^@endif pgo-build\$/d"
9952 # Create the serialization dependencies. This uses a temporary file.
9954 # Check whether --enable-serial-configure was given.
9955 if test "${enable_serial_configure+set}" = set; then :
9956 enableval
=$enable_serial_configure;
9960 case ${enable_serial_configure} in
9962 enable_serial_build_configure
=yes
9963 enable_serial_host_configure
=yes
9964 enable_serial_target_configure
=yes
9968 # These force 'configure's to be done one at a time, to avoid problems
9969 # with contention over a shared config.cache.
9971 echo '# serdep.tmp' > serdep.tmp
9973 test "x${enable_serial_build_configure}" = xyes
&&
9974 for item
in ${build_configdirs} ; do
9977 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
9982 test "x${enable_serial_host_configure}" = xyes
&&
9983 for item
in ${configdirs} ; do
9986 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
9991 test "x${enable_serial_target_configure}" = xyes
&&
9992 for item
in ${target_configdirs} ; do
9995 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
9999 serialization_dependencies
=serdep.tmp
10002 # Base args. Strip norecursion, cache-file, srcdir, host, build,
10003 # target, nonopt, and variable assignments. These are the ones we
10004 # might not want to pass down to subconfigures. The exception being
10005 # --cache-file=/dev/null, which is used to turn off the use of cache
10006 # files altogether, and which should be passed on to subconfigures.
10007 # Also strip program-prefix, program-suffix, and program-transform-name,
10008 # so that we can pass down a consistent program-transform-name.
10013 eval "set -- $ac_configure_args"
10016 if test X
"$skip_next" = X
"yes"; then
10020 if test X
"$keep_next" = X
"yes"; then
10023 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10025 baseargs
="$baseargs '$ac_arg'"
10026 tbaseargs
="$tbaseargs '$ac_arg'"
10031 # Handle separated arguments. Based on the logic generated by
10034 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
10035 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
10036 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
10037 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
10051 --with-* |
--without-*)
10052 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
10056 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
10059 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
10068 mpc | mpfr | gmp | isl
)
10069 # If we're processing --with-$lib, --with-$lib-include or
10070 # --with-$lib-lib, for one of the libs above, and target is
10071 # different from host, don't pass the current argument to any
10072 # target library's configure.
10073 if test x
$is_cross_compiler = xyes
; then
10082 --cache-file=/dev
/null | \
10083 -cache-file=/dev
/null
)
10084 # Handled here to avoid the test to skip args below.
10085 baseargs
="$baseargs '$ac_arg'"
10086 tbaseargs
="$tbaseargs '$ac_arg'"
10087 # Assert: $separate_arg should always be no.
10088 keep_next
=$separate_arg
10104 -program-prefix* | \
10105 -program-suffix* | \
10106 -program-transform-name* )
10107 skip_next
=$separate_arg
10111 # An option. Add it.
10114 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
10116 baseargs
="$baseargs '$ac_arg'"
10117 if test X
"$skip_targ" = Xno
; then
10118 tbaseargs
="$tbaseargs '$ac_arg'"
10120 keep_next
=$separate_arg
10123 # Either a variable assignment, or a nonopt (triplet). Don't
10124 # pass it down; let the Makefile handle this.
10129 # Remove the initial space we just introduced and, as these will be
10130 # expanded by make, quote '$'.
10131 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
10133 # Add in --program-transform-name, after --program-prefix and
10134 # --program-suffix have been applied to it. Autoconf has already
10135 # doubled dollar signs and backslashes in program_transform_name; we want
10136 # the backslashes un-doubled, and then the entire thing wrapped in single
10137 # quotes, because this will be expanded first by make and then by the shell.
10138 # Also, because we want to override the logic in subdir configure scripts to
10139 # choose program_transform_name, replace any s,x,x, with s,y,y,.
10140 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
10141 ${program_transform_name}
10143 gcc_transform_name
=`cat conftestsed.out`
10144 rm -f conftestsed.out
10145 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
10146 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
10147 if test "$silent" = yes; then
10148 baseargs
="$baseargs --silent"
10149 tbaseargs
="$tbaseargs --silent"
10152 baseargs
="$baseargs --disable-option-checking"
10153 tbaseargs
="$tbaseargs --disable-option-checking"
10155 if test "$enable_year2038" = no
; then
10156 baseargs
="$baseargs --disable-year2038"
10157 tbaseargs
="$tbaseargs --disable-year2038"
10160 # Record and document user additions to sub configure arguments.
10165 # For the build-side libraries, we just need to pretend we're native,
10166 # and not use the same cache file. Multilibs are neither needed nor
10167 # desired. We can't even use the same cache file for all build-side
10168 # libraries, as they're compiled differently; some with C, some with
10169 # C++ or with different feature-enabling options.
10170 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
10172 # For host modules, accept cache file option, or specification as blank.
10173 case "${cache_file}" in
10175 cache_file_option
="" ;;
10176 /* |
[A-Za-z
]:[\\/]* ) # absolute path
10177 cache_file_option
="--cache-file=${cache_file}" ;;
10179 cache_file_option
="--cache-file=../${cache_file}" ;;
10182 # Host dirs don't like to share a cache file either, horribly enough.
10183 # This seems to be due to autoconf 2.5x stupidity.
10184 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10186 target_configargs
="$target_configargs ${tbaseargs}"
10188 # Passing a --with-cross-host argument lets the target libraries know
10189 # whether they are being built with a cross-compiler or being built
10190 # native. However, it would be better to use other mechanisms to make the
10191 # sorts of decisions they want to make on this basis. Please consider
10192 # this option to be deprecated. FIXME.
10193 if test x
${is_cross_compiler} = xyes
; then
10194 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
10197 # Special user-friendly check for native x86_64-linux build, if
10198 # multilib is not explicitly enabled.
10199 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10200 x86_64-
*linux
*:yes:$build:$build:)
10201 # Make sure we have a development environment that handles 32-bit
10203 echo "int main () { return 0; }" > conftest.c
10204 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10205 if test $?
= 0 ; then
10206 if test -s conftest ||
test -s conftest.exe
; then
10211 if test x
${dev64} != xyes
; then
10212 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
10217 # Default to --enable-multilib.
10218 if test x
${enable_multilib} = x
; then
10219 target_configargs
="--enable-multilib ${target_configargs}"
10222 # Pass --with-newlib if appropriate. Note that target_configdirs has
10223 # changed from the earlier setting of with_newlib.
10224 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
10225 target_configargs
="--with-newlib ${target_configargs}"
10228 # Different target subdirs use different values of certain variables
10229 # (notably CXX). Worse, multilibs use *lots* of different values.
10230 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10231 # it doesn't automatically accept command-line overrides of them.
10232 # This means it's not safe for target subdirs to share a cache file,
10233 # which is disgusting, but there you have it. Hopefully this can be
10234 # fixed in future. It's still worthwhile to use a cache file for each
10235 # directory. I think.
10237 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10238 # We need to pass --target, as newer autoconf's requires consistency
10239 # for target_alias and gcc doesn't manage it consistently.
10240 target_configargs
="--cache-file=./config.cache ${target_configargs}"
10243 case " $target_configdirs " in
10245 case " $target_configargs " in
10246 *" --with-newlib "*)
10249 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10253 # If we're not building GCC, don't discard standard headers.
10254 if test -d ${srcdir}/gcc
; then
10255 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
10257 if test "${build}" != "${host}"; then
10258 # On Canadian crosses, CC_FOR_TARGET will have already been set
10259 # by `configure', so we won't have an opportunity to add -Bgcc/
10260 # to it. This is right: we don't want to search that directory
10261 # for binaries, but we want the header files in there, so add
10263 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10265 # Someone might think of using the pre-installed headers on
10266 # Canadian crosses, in case the installed compiler is not fully
10267 # compatible with the compiler being built. In this case, it
10268 # would be better to flag an error than risking having
10269 # incompatible object files being constructed. We can't
10270 # guarantee that an error will be flagged, but let's hope the
10271 # compiler will do it, when presented with incompatible header
10276 case "${target}-${is_cross_compiler}" in
10277 i
[3456789]86-*-linux*-no)
10278 # Here host == target, so we don't need to build gcc,
10279 # so we don't want to discard standard headers.
10280 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10283 # If we're building newlib, use its generic headers last, but search
10284 # for any libc-related directories first (so make it the last -B
10286 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10288 # If we're building libgloss, find the startup file, simulator library
10289 # and linker script.
10290 case " $target_configdirs " in
10292 # Look for startup file, simulator library and maybe linker script.
10293 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10294 # Look for libnosys.a in case the target needs it.
10295 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10296 # Most targets have the linker script in the source directory.
10297 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10308 x86_64-
*mingw
* |
*-w64-mingw*)
10309 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10310 # however, use a symlink named 'mingw' in ${prefix} .
10311 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10314 # MinGW can't be handled as Cygwin above since it does not use newlib.
10315 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'
10319 # Allow the user to override the flags for
10320 # our build compiler if desired.
10321 if test x
"${build}" = x
"${host}" ; then
10322 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10323 CPPFLAGS_FOR_BUILD
=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10324 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10325 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10328 # On Canadian crosses, we'll be searching the right directories for
10329 # the previously-installed cross compiler, so don't bother to add
10330 # flags for directories within the install tree of the compiler
10331 # being built; programs in there won't even run.
10332 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10333 # Search for pre-installed headers if nothing else fits.
10334 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10337 if test "x
${use_gnu_ld}" = x &&
10338 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10339 # Arrange for us to find uninstalled linker scripts.
10340 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10343 # Search for other target-specific linker scripts and such.
10344 case "${target}" in
10346 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10348 # The VxWorks support for shared libraries is getting in
10349 # incrementally. Make sure it doesn't get activated implicitly:
10351 if test "${enable_shared-unset}" = unset ; then
10353 # So the build of libraries knows ...
10354 target_configargs="${target_configargs} --disable-shared"
10356 host_configargs="${host_configargs} --disable-shared"
10361 # Makefile fragments.
10362 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10364 eval fragval=\$$frag
10365 if test $fragval != /dev/null; then
10366 eval $frag=${srcdir}/$fragval
10374 # Miscellanea: directories, flags, etc.
10383 # Build module lists & subconfigure args.
10387 # Host module lists & subconfigure args.
10392 # Target module lists & subconfigure args.
10417 # Generate default definitions for YACC, M4, LEX and other programs that run
10418 # on the build machine. These are used if the Makefile can't locate these
10419 # programs in objdir.
10420 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10422 for ac_prog in 'bison -y' byacc yacc
10424 # Extract the first word of "$ac_prog", so it can be a program name with args.
10425 set dummy $ac_prog; ac_word=$2
10426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10427 $as_echo_n "checking
for $ac_word...
" >&6; }
10428 if ${ac_cv_prog_YACC+:} false; then :
10429 $as_echo_n "(cached
) " >&6
10431 if test -n "$YACC"; then
10432 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10435 for as_dir in $PATH
10438 test -z "$as_dir" && as_dir=.
10439 for ac_exec_ext in '' $ac_executable_extensions; do
10440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10441 ac_cv_prog_YACC="$ac_prog"
10442 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10451 YACC=$ac_cv_prog_YACC
10452 if test -n "$YACC"; then
10453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10454 $as_echo "$YACC" >&6; }
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10457 $as_echo "no
" >&6; }
10461 test -n "$YACC" && break
10463 test -n "$YACC" || YACC="$MISSING bison
-y"
10465 case " $build_configdirs " in
10466 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10469 for ac_prog in bison
10471 # Extract the first word of "$ac_prog", so it can be a program name with args.
10472 set dummy $ac_prog; ac_word=$2
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10474 $as_echo_n "checking
for $ac_word...
" >&6; }
10475 if ${ac_cv_prog_BISON+:} false; then :
10476 $as_echo_n "(cached
) " >&6
10478 if test -n "$BISON"; then
10479 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10482 for as_dir in $PATH
10485 test -z "$as_dir" && as_dir=.
10486 for ac_exec_ext in '' $ac_executable_extensions; do
10487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10488 ac_cv_prog_BISON="$ac_prog"
10489 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10498 BISON=$ac_cv_prog_BISON
10499 if test -n "$BISON"; then
10500 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10501 $as_echo "$BISON" >&6; }
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10504 $as_echo "no
" >&6; }
10508 test -n "$BISON" && break
10510 test -n "$BISON" || BISON="$MISSING bison
"
10512 case " $build_configdirs " in
10513 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10516 for ac_prog in gm4 gnum4 m4
10518 # Extract the first word of "$ac_prog", so it can be a program name with args.
10519 set dummy $ac_prog; ac_word=$2
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10521 $as_echo_n "checking
for $ac_word...
" >&6; }
10522 if ${ac_cv_prog_M4+:} false; then :
10523 $as_echo_n "(cached
) " >&6
10525 if test -n "$M4"; then
10526 ac_cv_prog_M4="$M4" # Let the user override the test.
10528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529 for as_dir in $PATH
10532 test -z "$as_dir" && as_dir=.
10533 for ac_exec_ext in '' $ac_executable_extensions; do
10534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10535 ac_cv_prog_M4="$ac_prog"
10536 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10546 if test -n "$M4"; then
10547 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10548 $as_echo "$M4" >&6; }
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10551 $as_echo "no
" >&6; }
10555 test -n "$M4" && break
10557 test -n "$M4" || M4="$MISSING m4"
10559 case " $build_configdirs " in
10560 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10563 for ac_prog in flex lex
10565 # Extract the first word of "$ac_prog", so it can be a program name with args.
10566 set dummy $ac_prog; ac_word=$2
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10568 $as_echo_n "checking
for $ac_word...
" >&6; }
10569 if ${ac_cv_prog_LEX+:} false; then :
10570 $as_echo_n "(cached
) " >&6
10572 if test -n "$LEX"; then
10573 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10576 for as_dir in $PATH
10579 test -z "$as_dir" && as_dir=.
10580 for ac_exec_ext in '' $ac_executable_extensions; do
10581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10582 ac_cv_prog_LEX="$ac_prog"
10583 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10592 LEX=$ac_cv_prog_LEX
10593 if test -n "$LEX"; then
10594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10595 $as_echo "$LEX" >&6; }
10597 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10598 $as_echo "no
" >&6; }
10602 test -n "$LEX" && break
10604 test -n "$LEX" || LEX="$MISSING flex
"
10606 case " $build_configdirs " in
10607 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10608 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10611 for ac_prog in flex
10613 # Extract the first word of "$ac_prog", so it can be a program name with args.
10614 set dummy $ac_prog; ac_word=$2
10615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10616 $as_echo_n "checking
for $ac_word...
" >&6; }
10617 if ${ac_cv_prog_FLEX+:} false; then :
10618 $as_echo_n "(cached
) " >&6
10620 if test -n "$FLEX"; then
10621 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10624 for as_dir in $PATH
10627 test -z "$as_dir" && as_dir=.
10628 for ac_exec_ext in '' $ac_executable_extensions; do
10629 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10630 ac_cv_prog_FLEX="$ac_prog"
10631 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10640 FLEX=$ac_cv_prog_FLEX
10641 if test -n "$FLEX"; then
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10643 $as_echo "$FLEX" >&6; }
10645 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10646 $as_echo "no
" >&6; }
10650 test -n "$FLEX" && break
10652 test -n "$FLEX" || FLEX="$MISSING flex
"
10654 case " $build_configdirs " in
10655 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10658 for ac_prog in makeinfo
10660 # Extract the first word of "$ac_prog", so it can be a program name with args.
10661 set dummy $ac_prog; ac_word=$2
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10663 $as_echo_n "checking
for $ac_word...
" >&6; }
10664 if ${ac_cv_prog_MAKEINFO+:} false; then :
10665 $as_echo_n "(cached
) " >&6
10667 if test -n "$MAKEINFO"; then
10668 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10671 for as_dir in $PATH
10674 test -z "$as_dir" && as_dir=.
10675 for ac_exec_ext in '' $ac_executable_extensions; do
10676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10677 ac_cv_prog_MAKEINFO="$ac_prog"
10678 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10687 MAKEINFO=$ac_cv_prog_MAKEINFO
10688 if test -n "$MAKEINFO"; then
10689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10690 $as_echo "$MAKEINFO" >&6; }
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10693 $as_echo "no
" >&6; }
10697 test -n "$MAKEINFO" && break
10699 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10701 case " $build_configdirs " in
10702 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10705 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10706 # higher, else we use the "missing
" dummy.
10707 if ${MAKEINFO} --version \
10708 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10711 MAKEINFO="$MISSING makeinfo
"
10717 # FIXME: expect and dejagnu may become build tools?
10719 for ac_prog in expect
10721 # Extract the first word of "$ac_prog", so it can be a program name with args.
10722 set dummy $ac_prog; ac_word=$2
10723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10724 $as_echo_n "checking
for $ac_word...
" >&6; }
10725 if ${ac_cv_prog_EXPECT+:} false; then :
10726 $as_echo_n "(cached
) " >&6
10728 if test -n "$EXPECT"; then
10729 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10732 for as_dir in $PATH
10735 test -z "$as_dir" && as_dir=.
10736 for ac_exec_ext in '' $ac_executable_extensions; do
10737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10738 ac_cv_prog_EXPECT="$ac_prog"
10739 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10748 EXPECT=$ac_cv_prog_EXPECT
10749 if test -n "$EXPECT"; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10751 $as_echo "$EXPECT" >&6; }
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10754 $as_echo "no
" >&6; }
10758 test -n "$EXPECT" && break
10760 test -n "$EXPECT" || EXPECT="expect
"
10762 case " $configdirs " in
10764 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10768 for ac_prog in runtest
10770 # Extract the first word of "$ac_prog", so it can be a program name with args.
10771 set dummy $ac_prog; ac_word=$2
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10773 $as_echo_n "checking
for $ac_word...
" >&6; }
10774 if ${ac_cv_prog_RUNTEST+:} false; then :
10775 $as_echo_n "(cached
) " >&6
10777 if test -n "$RUNTEST"; then
10778 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10780 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10781 for as_dir in $PATH
10784 test -z "$as_dir" && as_dir=.
10785 for ac_exec_ext in '' $ac_executable_extensions; do
10786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10787 ac_cv_prog_RUNTEST="$ac_prog"
10788 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10797 RUNTEST=$ac_cv_prog_RUNTEST
10798 if test -n "$RUNTEST"; then
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10800 $as_echo "$RUNTEST" >&6; }
10802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10803 $as_echo "no
" >&6; }
10807 test -n "$RUNTEST" && break
10809 test -n "$RUNTEST" || RUNTEST="runtest
"
10811 case " $configdirs " in
10813 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10820 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10821 ncn_target_tool_prefix=
10822 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10826 if test -n "$AR"; then
10828 elif test -n "$ac_cv_prog_AR"; then
10832 if test -n "$ac_cv_prog_AR"; then
10833 for ncn_progname in ar; do
10834 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10835 set dummy ${ncn_progname}; ac_word=$2
10836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10837 $as_echo_n "checking
for $ac_word...
" >&6; }
10838 if ${ac_cv_prog_AR+:} false; then :
10839 $as_echo_n "(cached
) " >&6
10841 if test -n "$AR"; then
10842 ac_cv_prog_AR="$AR" # Let the user override the test.
10844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10845 for as_dir in $PATH
10848 test -z "$as_dir" && as_dir=.
10849 for ac_exec_ext in '' $ac_executable_extensions; do
10850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10851 ac_cv_prog_AR="${ncn_progname}"
10852 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10862 if test -n "$AR"; then
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10864 $as_echo "$AR" >&6; }
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10867 $as_echo "no
" >&6; }
10874 for ncn_progname in ar; do
10875 if test -n "$ncn_tool_prefix"; then
10876 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10877 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10879 $as_echo_n "checking
for $ac_word...
" >&6; }
10880 if ${ac_cv_prog_AR+:} false; then :
10881 $as_echo_n "(cached
) " >&6
10883 if test -n "$AR"; then
10884 ac_cv_prog_AR="$AR" # Let the user override the test.
10886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10887 for as_dir in $PATH
10890 test -z "$as_dir" && as_dir=.
10891 for ac_exec_ext in '' $ac_executable_extensions; do
10892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10893 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10894 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10904 if test -n "$AR"; then
10905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10906 $as_echo "$AR" >&6; }
10908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10909 $as_echo "no
" >&6; }
10914 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10916 set dummy ${ncn_progname}; ac_word=$2
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10918 $as_echo_n "checking
for $ac_word...
" >&6; }
10919 if ${ac_cv_prog_AR+:} false; then :
10920 $as_echo_n "(cached
) " >&6
10922 if test -n "$AR"; then
10923 ac_cv_prog_AR="$AR" # Let the user override the test.
10925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10926 for as_dir in $PATH
10929 test -z "$as_dir" && as_dir=.
10930 for ac_exec_ext in '' $ac_executable_extensions; do
10931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10932 ac_cv_prog_AR="${ncn_progname}"
10933 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10943 if test -n "$AR"; then
10944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10945 $as_echo "$AR" >&6; }
10947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10948 $as_echo "no
" >&6; }
10953 test -n "$ac_cv_prog_AR" && break
10956 if test -z "$ac_cv_prog_AR" ; then
10958 if test $build = $host ; then
10961 AR="${ncn_tool_prefix}$2"
10967 if test -n "$AS"; then
10969 elif test -n "$ac_cv_prog_AS"; then
10973 if test -n "$ac_cv_prog_AS"; then
10974 for ncn_progname in as; do
10975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10976 set dummy ${ncn_progname}; ac_word=$2
10977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10978 $as_echo_n "checking
for $ac_word...
" >&6; }
10979 if ${ac_cv_prog_AS+:} false; then :
10980 $as_echo_n "(cached
) " >&6
10982 if test -n "$AS"; then
10983 ac_cv_prog_AS="$AS" # Let the user override the test.
10985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10986 for as_dir in $PATH
10989 test -z "$as_dir" && as_dir=.
10990 for ac_exec_ext in '' $ac_executable_extensions; do
10991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10992 ac_cv_prog_AS="${ncn_progname}"
10993 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11003 if test -n "$AS"; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11005 $as_echo "$AS" >&6; }
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11008 $as_echo "no
" >&6; }
11015 for ncn_progname in as; do
11016 if test -n "$ncn_tool_prefix"; then
11017 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11018 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11020 $as_echo_n "checking
for $ac_word...
" >&6; }
11021 if ${ac_cv_prog_AS+:} false; then :
11022 $as_echo_n "(cached
) " >&6
11024 if test -n "$AS"; then
11025 ac_cv_prog_AS="$AS" # Let the user override the test.
11027 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11028 for as_dir in $PATH
11031 test -z "$as_dir" && as_dir=.
11032 for ac_exec_ext in '' $ac_executable_extensions; do
11033 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11034 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
11035 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11045 if test -n "$AS"; then
11046 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11047 $as_echo "$AS" >&6; }
11049 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11050 $as_echo "no
" >&6; }
11055 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
11056 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11057 set dummy ${ncn_progname}; ac_word=$2
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11059 $as_echo_n "checking
for $ac_word...
" >&6; }
11060 if ${ac_cv_prog_AS+:} false; then :
11061 $as_echo_n "(cached
) " >&6
11063 if test -n "$AS"; then
11064 ac_cv_prog_AS="$AS" # Let the user override the test.
11066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11067 for as_dir in $PATH
11070 test -z "$as_dir" && as_dir=.
11071 for ac_exec_ext in '' $ac_executable_extensions; do
11072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11073 ac_cv_prog_AS="${ncn_progname}"
11074 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11084 if test -n "$AS"; then
11085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
11086 $as_echo "$AS" >&6; }
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11089 $as_echo "no
" >&6; }
11094 test -n "$ac_cv_prog_AS" && break
11097 if test -z "$ac_cv_prog_AS" ; then
11099 if test $build = $host ; then
11102 AS="${ncn_tool_prefix}$2"
11108 if test -n "$DLLTOOL"; then
11109 ac_cv_prog_DLLTOOL=$DLLTOOL
11110 elif test -n "$ac_cv_prog_DLLTOOL"; then
11111 DLLTOOL=$ac_cv_prog_DLLTOOL
11114 if test -n "$ac_cv_prog_DLLTOOL"; then
11115 for ncn_progname in dlltool; do
11116 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11117 set dummy ${ncn_progname}; ac_word=$2
11118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11119 $as_echo_n "checking
for $ac_word...
" >&6; }
11120 if ${ac_cv_prog_DLLTOOL+:} false; then :
11121 $as_echo_n "(cached
) " >&6
11123 if test -n "$DLLTOOL"; then
11124 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11127 for as_dir in $PATH
11130 test -z "$as_dir" && as_dir=.
11131 for ac_exec_ext in '' $ac_executable_extensions; do
11132 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11133 ac_cv_prog_DLLTOOL="${ncn_progname}"
11134 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11143 DLLTOOL=$ac_cv_prog_DLLTOOL
11144 if test -n "$DLLTOOL"; then
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11146 $as_echo "$DLLTOOL" >&6; }
11148 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11149 $as_echo "no
" >&6; }
11156 for ncn_progname in dlltool; do
11157 if test -n "$ncn_tool_prefix"; then
11158 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11159 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11161 $as_echo_n "checking
for $ac_word...
" >&6; }
11162 if ${ac_cv_prog_DLLTOOL+:} false; then :
11163 $as_echo_n "(cached
) " >&6
11165 if test -n "$DLLTOOL"; then
11166 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11168 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11169 for as_dir in $PATH
11172 test -z "$as_dir" && as_dir=.
11173 for ac_exec_ext in '' $ac_executable_extensions; do
11174 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11175 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
11176 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11185 DLLTOOL=$ac_cv_prog_DLLTOOL
11186 if test -n "$DLLTOOL"; then
11187 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11188 $as_echo "$DLLTOOL" >&6; }
11190 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11191 $as_echo "no
" >&6; }
11196 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11198 set dummy ${ncn_progname}; ac_word=$2
11199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11200 $as_echo_n "checking
for $ac_word...
" >&6; }
11201 if ${ac_cv_prog_DLLTOOL+:} false; then :
11202 $as_echo_n "(cached
) " >&6
11204 if test -n "$DLLTOOL"; then
11205 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11208 for as_dir in $PATH
11211 test -z "$as_dir" && as_dir=.
11212 for ac_exec_ext in '' $ac_executable_extensions; do
11213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11214 ac_cv_prog_DLLTOOL="${ncn_progname}"
11215 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11224 DLLTOOL=$ac_cv_prog_DLLTOOL
11225 if test -n "$DLLTOOL"; then
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
11227 $as_echo "$DLLTOOL" >&6; }
11229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11230 $as_echo "no
" >&6; }
11235 test -n "$ac_cv_prog_DLLTOOL" && break
11238 if test -z "$ac_cv_prog_DLLTOOL" ; then
11240 if test $build = $host ; then
11243 DLLTOOL="${ncn_tool_prefix}$2"
11249 if test -n "$DSYMUTIL"; then
11250 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11251 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11252 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11255 if test -n "$ac_cv_prog_DSYMUTIL"; then
11256 for ncn_progname in dsymutil; do
11257 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11258 set dummy ${ncn_progname}; ac_word=$2
11259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11260 $as_echo_n "checking
for $ac_word...
" >&6; }
11261 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11262 $as_echo_n "(cached
) " >&6
11264 if test -n "$DSYMUTIL"; then
11265 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11268 for as_dir in $PATH
11271 test -z "$as_dir" && as_dir=.
11272 for ac_exec_ext in '' $ac_executable_extensions; do
11273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11274 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11275 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11284 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11285 if test -n "$DSYMUTIL"; then
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11287 $as_echo "$DSYMUTIL" >&6; }
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11290 $as_echo "no
" >&6; }
11297 for ncn_progname in dsymutil; do
11298 if test -n "$ncn_tool_prefix"; then
11299 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11300 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11302 $as_echo_n "checking
for $ac_word...
" >&6; }
11303 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11304 $as_echo_n "(cached
) " >&6
11306 if test -n "$DSYMUTIL"; then
11307 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11310 for as_dir in $PATH
11313 test -z "$as_dir" && as_dir=.
11314 for ac_exec_ext in '' $ac_executable_extensions; do
11315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11316 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11317 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11326 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11327 if test -n "$DSYMUTIL"; then
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11329 $as_echo "$DSYMUTIL" >&6; }
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11332 $as_echo "no
" >&6; }
11337 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11338 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11339 set dummy ${ncn_progname}; ac_word=$2
11340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11341 $as_echo_n "checking
for $ac_word...
" >&6; }
11342 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11343 $as_echo_n "(cached
) " >&6
11345 if test -n "$DSYMUTIL"; then
11346 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11349 for as_dir in $PATH
11352 test -z "$as_dir" && as_dir=.
11353 for ac_exec_ext in '' $ac_executable_extensions; do
11354 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11355 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11356 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11365 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11366 if test -n "$DSYMUTIL"; then
11367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11368 $as_echo "$DSYMUTIL" >&6; }
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11371 $as_echo "no
" >&6; }
11376 test -n "$ac_cv_prog_DSYMUTIL" && break
11379 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11381 if test $build = $host ; then
11384 DSYMUTIL="${ncn_tool_prefix}$2"
11390 if test -n "$LD"; then
11392 elif test -n "$ac_cv_prog_LD"; then
11396 if test -n "$ac_cv_prog_LD"; then
11397 for ncn_progname in ld; do
11398 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11399 set dummy ${ncn_progname}; ac_word=$2
11400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11401 $as_echo_n "checking
for $ac_word...
" >&6; }
11402 if ${ac_cv_prog_LD+:} false; then :
11403 $as_echo_n "(cached
) " >&6
11405 if test -n "$LD"; then
11406 ac_cv_prog_LD="$LD" # Let the user override the test.
11408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11409 for as_dir in $PATH
11412 test -z "$as_dir" && as_dir=.
11413 for ac_exec_ext in '' $ac_executable_extensions; do
11414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11415 ac_cv_prog_LD="${ncn_progname}"
11416 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11426 if test -n "$LD"; then
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11428 $as_echo "$LD" >&6; }
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11431 $as_echo "no
" >&6; }
11438 for ncn_progname in ld; do
11439 if test -n "$ncn_tool_prefix"; then
11440 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11441 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11443 $as_echo_n "checking
for $ac_word...
" >&6; }
11444 if ${ac_cv_prog_LD+:} false; then :
11445 $as_echo_n "(cached
) " >&6
11447 if test -n "$LD"; then
11448 ac_cv_prog_LD="$LD" # Let the user override the test.
11450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11451 for as_dir in $PATH
11454 test -z "$as_dir" && as_dir=.
11455 for ac_exec_ext in '' $ac_executable_extensions; do
11456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11457 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11458 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11468 if test -n "$LD"; then
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11470 $as_echo "$LD" >&6; }
11472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11473 $as_echo "no
" >&6; }
11478 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11479 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11480 set dummy ${ncn_progname}; ac_word=$2
11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11482 $as_echo_n "checking
for $ac_word...
" >&6; }
11483 if ${ac_cv_prog_LD+:} false; then :
11484 $as_echo_n "(cached
) " >&6
11486 if test -n "$LD"; then
11487 ac_cv_prog_LD="$LD" # Let the user override the test.
11489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11490 for as_dir in $PATH
11493 test -z "$as_dir" && as_dir=.
11494 for ac_exec_ext in '' $ac_executable_extensions; do
11495 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11496 ac_cv_prog_LD="${ncn_progname}"
11497 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11507 if test -n "$LD"; then
11508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11509 $as_echo "$LD" >&6; }
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11512 $as_echo "no
" >&6; }
11517 test -n "$ac_cv_prog_LD" && break
11520 if test -z "$ac_cv_prog_LD" ; then
11522 if test $build = $host ; then
11525 LD="${ncn_tool_prefix}$2"
11531 if test -n "$LIPO"; then
11532 ac_cv_prog_LIPO=$LIPO
11533 elif test -n "$ac_cv_prog_LIPO"; then
11534 LIPO=$ac_cv_prog_LIPO
11537 if test -n "$ac_cv_prog_LIPO"; then
11538 for ncn_progname in lipo; do
11539 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11540 set dummy ${ncn_progname}; ac_word=$2
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11542 $as_echo_n "checking
for $ac_word...
" >&6; }
11543 if ${ac_cv_prog_LIPO+:} false; then :
11544 $as_echo_n "(cached
) " >&6
11546 if test -n "$LIPO"; then
11547 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11549 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11550 for as_dir in $PATH
11553 test -z "$as_dir" && as_dir=.
11554 for ac_exec_ext in '' $ac_executable_extensions; do
11555 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11556 ac_cv_prog_LIPO="${ncn_progname}"
11557 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11566 LIPO=$ac_cv_prog_LIPO
11567 if test -n "$LIPO"; then
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11569 $as_echo "$LIPO" >&6; }
11571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11572 $as_echo "no
" >&6; }
11579 for ncn_progname in lipo; do
11580 if test -n "$ncn_tool_prefix"; then
11581 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11582 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11584 $as_echo_n "checking
for $ac_word...
" >&6; }
11585 if ${ac_cv_prog_LIPO+:} false; then :
11586 $as_echo_n "(cached
) " >&6
11588 if test -n "$LIPO"; then
11589 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11592 for as_dir in $PATH
11595 test -z "$as_dir" && as_dir=.
11596 for ac_exec_ext in '' $ac_executable_extensions; do
11597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11598 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11599 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11608 LIPO=$ac_cv_prog_LIPO
11609 if test -n "$LIPO"; then
11610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11611 $as_echo "$LIPO" >&6; }
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11614 $as_echo "no
" >&6; }
11619 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11620 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11621 set dummy ${ncn_progname}; ac_word=$2
11622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11623 $as_echo_n "checking
for $ac_word...
" >&6; }
11624 if ${ac_cv_prog_LIPO+:} false; then :
11625 $as_echo_n "(cached
) " >&6
11627 if test -n "$LIPO"; then
11628 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11631 for as_dir in $PATH
11634 test -z "$as_dir" && as_dir=.
11635 for ac_exec_ext in '' $ac_executable_extensions; do
11636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11637 ac_cv_prog_LIPO="${ncn_progname}"
11638 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11647 LIPO=$ac_cv_prog_LIPO
11648 if test -n "$LIPO"; then
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11650 $as_echo "$LIPO" >&6; }
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11653 $as_echo "no
" >&6; }
11658 test -n "$ac_cv_prog_LIPO" && break
11661 if test -z "$ac_cv_prog_LIPO" ; then
11663 if test $build = $host ; then
11666 LIPO="${ncn_tool_prefix}$2"
11672 if test -n "$NM"; then
11674 elif test -n "$ac_cv_prog_NM"; then
11678 if test -n "$ac_cv_prog_NM"; then
11679 for ncn_progname in nm; do
11680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11681 set dummy ${ncn_progname}; ac_word=$2
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11683 $as_echo_n "checking
for $ac_word...
" >&6; }
11684 if ${ac_cv_prog_NM+:} false; then :
11685 $as_echo_n "(cached
) " >&6
11687 if test -n "$NM"; then
11688 ac_cv_prog_NM="$NM" # Let the user override the test.
11690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11691 for as_dir in $PATH
11694 test -z "$as_dir" && as_dir=.
11695 for ac_exec_ext in '' $ac_executable_extensions; do
11696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11697 ac_cv_prog_NM="${ncn_progname}"
11698 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11708 if test -n "$NM"; then
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11710 $as_echo "$NM" >&6; }
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11713 $as_echo "no
" >&6; }
11720 for ncn_progname in nm; do
11721 if test -n "$ncn_tool_prefix"; then
11722 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11723 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11725 $as_echo_n "checking
for $ac_word...
" >&6; }
11726 if ${ac_cv_prog_NM+:} false; then :
11727 $as_echo_n "(cached
) " >&6
11729 if test -n "$NM"; then
11730 ac_cv_prog_NM="$NM" # Let the user override the test.
11732 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11733 for as_dir in $PATH
11736 test -z "$as_dir" && as_dir=.
11737 for ac_exec_ext in '' $ac_executable_extensions; do
11738 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11739 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11740 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11750 if test -n "$NM"; then
11751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11752 $as_echo "$NM" >&6; }
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11755 $as_echo "no
" >&6; }
11760 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11761 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11762 set dummy ${ncn_progname}; ac_word=$2
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11764 $as_echo_n "checking
for $ac_word...
" >&6; }
11765 if ${ac_cv_prog_NM+:} false; then :
11766 $as_echo_n "(cached
) " >&6
11768 if test -n "$NM"; then
11769 ac_cv_prog_NM="$NM" # Let the user override the test.
11771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11772 for as_dir in $PATH
11775 test -z "$as_dir" && as_dir=.
11776 for ac_exec_ext in '' $ac_executable_extensions; do
11777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11778 ac_cv_prog_NM="${ncn_progname}"
11779 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11789 if test -n "$NM"; then
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11791 $as_echo "$NM" >&6; }
11793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11794 $as_echo "no
" >&6; }
11799 test -n "$ac_cv_prog_NM" && break
11802 if test -z "$ac_cv_prog_NM" ; then
11804 if test $build = $host ; then
11807 NM="${ncn_tool_prefix}$2"
11813 if test -n "$RANLIB"; then
11814 ac_cv_prog_RANLIB=$RANLIB
11815 elif test -n "$ac_cv_prog_RANLIB"; then
11816 RANLIB=$ac_cv_prog_RANLIB
11819 if test -n "$ac_cv_prog_RANLIB"; then
11820 for ncn_progname in ranlib; do
11821 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11822 set dummy ${ncn_progname}; ac_word=$2
11823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11824 $as_echo_n "checking
for $ac_word...
" >&6; }
11825 if ${ac_cv_prog_RANLIB+:} false; then :
11826 $as_echo_n "(cached
) " >&6
11828 if test -n "$RANLIB"; then
11829 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11831 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11832 for as_dir in $PATH
11835 test -z "$as_dir" && as_dir=.
11836 for ac_exec_ext in '' $ac_executable_extensions; do
11837 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11838 ac_cv_prog_RANLIB="${ncn_progname}"
11839 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11848 RANLIB=$ac_cv_prog_RANLIB
11849 if test -n "$RANLIB"; then
11850 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11851 $as_echo "$RANLIB" >&6; }
11853 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11854 $as_echo "no
" >&6; }
11861 for ncn_progname in ranlib; do
11862 if test -n "$ncn_tool_prefix"; then
11863 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11864 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11866 $as_echo_n "checking
for $ac_word...
" >&6; }
11867 if ${ac_cv_prog_RANLIB+:} false; then :
11868 $as_echo_n "(cached
) " >&6
11870 if test -n "$RANLIB"; then
11871 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11874 for as_dir in $PATH
11877 test -z "$as_dir" && as_dir=.
11878 for ac_exec_ext in '' $ac_executable_extensions; do
11879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11880 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11881 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11890 RANLIB=$ac_cv_prog_RANLIB
11891 if test -n "$RANLIB"; then
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11893 $as_echo "$RANLIB" >&6; }
11895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11896 $as_echo "no
" >&6; }
11901 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11902 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11903 set dummy ${ncn_progname}; ac_word=$2
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11905 $as_echo_n "checking
for $ac_word...
" >&6; }
11906 if ${ac_cv_prog_RANLIB+:} false; then :
11907 $as_echo_n "(cached
) " >&6
11909 if test -n "$RANLIB"; then
11910 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11913 for as_dir in $PATH
11916 test -z "$as_dir" && as_dir=.
11917 for ac_exec_ext in '' $ac_executable_extensions; do
11918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11919 ac_cv_prog_RANLIB="${ncn_progname}"
11920 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11929 RANLIB=$ac_cv_prog_RANLIB
11930 if test -n "$RANLIB"; then
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11932 $as_echo "$RANLIB" >&6; }
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11935 $as_echo "no
" >&6; }
11940 test -n "$ac_cv_prog_RANLIB" && break
11943 if test -z "$ac_cv_prog_RANLIB" ; then
11949 if test -n "$STRIP"; then
11950 ac_cv_prog_STRIP=$STRIP
11951 elif test -n "$ac_cv_prog_STRIP"; then
11952 STRIP=$ac_cv_prog_STRIP
11955 if test -n "$ac_cv_prog_STRIP"; then
11956 for ncn_progname in strip; do
11957 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11958 set dummy ${ncn_progname}; ac_word=$2
11959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11960 $as_echo_n "checking
for $ac_word...
" >&6; }
11961 if ${ac_cv_prog_STRIP+:} false; then :
11962 $as_echo_n "(cached
) " >&6
11964 if test -n "$STRIP"; then
11965 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11968 for as_dir in $PATH
11971 test -z "$as_dir" && as_dir=.
11972 for ac_exec_ext in '' $ac_executable_extensions; do
11973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11974 ac_cv_prog_STRIP="${ncn_progname}"
11975 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11984 STRIP=$ac_cv_prog_STRIP
11985 if test -n "$STRIP"; then
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11987 $as_echo "$STRIP" >&6; }
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11990 $as_echo "no
" >&6; }
11997 for ncn_progname in strip; do
11998 if test -n "$ncn_tool_prefix"; then
11999 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12000 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12002 $as_echo_n "checking
for $ac_word...
" >&6; }
12003 if ${ac_cv_prog_STRIP+:} false; then :
12004 $as_echo_n "(cached
) " >&6
12006 if test -n "$STRIP"; then
12007 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12010 for as_dir in $PATH
12013 test -z "$as_dir" && as_dir=.
12014 for ac_exec_ext in '' $ac_executable_extensions; do
12015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12016 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
12017 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12026 STRIP=$ac_cv_prog_STRIP
12027 if test -n "$STRIP"; then
12028 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12029 $as_echo "$STRIP" >&6; }
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12032 $as_echo "no
" >&6; }
12037 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
12038 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12039 set dummy ${ncn_progname}; ac_word=$2
12040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12041 $as_echo_n "checking
for $ac_word...
" >&6; }
12042 if ${ac_cv_prog_STRIP+:} false; then :
12043 $as_echo_n "(cached
) " >&6
12045 if test -n "$STRIP"; then
12046 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12049 for as_dir in $PATH
12052 test -z "$as_dir" && as_dir=.
12053 for ac_exec_ext in '' $ac_executable_extensions; do
12054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12055 ac_cv_prog_STRIP="${ncn_progname}"
12056 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12065 STRIP=$ac_cv_prog_STRIP
12066 if test -n "$STRIP"; then
12067 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
12068 $as_echo "$STRIP" >&6; }
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12071 $as_echo "no
" >&6; }
12076 test -n "$ac_cv_prog_STRIP" && break
12079 if test -z "$ac_cv_prog_STRIP" ; then
12085 if test -n "$WINDRES"; then
12086 ac_cv_prog_WINDRES=$WINDRES
12087 elif test -n "$ac_cv_prog_WINDRES"; then
12088 WINDRES=$ac_cv_prog_WINDRES
12091 if test -n "$ac_cv_prog_WINDRES"; then
12092 for ncn_progname in windres; do
12093 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12094 set dummy ${ncn_progname}; ac_word=$2
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12096 $as_echo_n "checking
for $ac_word...
" >&6; }
12097 if ${ac_cv_prog_WINDRES+:} false; then :
12098 $as_echo_n "(cached
) " >&6
12100 if test -n "$WINDRES"; then
12101 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12104 for as_dir in $PATH
12107 test -z "$as_dir" && as_dir=.
12108 for ac_exec_ext in '' $ac_executable_extensions; do
12109 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12110 ac_cv_prog_WINDRES="${ncn_progname}"
12111 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12120 WINDRES=$ac_cv_prog_WINDRES
12121 if test -n "$WINDRES"; then
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12123 $as_echo "$WINDRES" >&6; }
12125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12126 $as_echo "no
" >&6; }
12133 for ncn_progname in windres; do
12134 if test -n "$ncn_tool_prefix"; then
12135 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12136 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12138 $as_echo_n "checking
for $ac_word...
" >&6; }
12139 if ${ac_cv_prog_WINDRES+:} false; then :
12140 $as_echo_n "(cached
) " >&6
12142 if test -n "$WINDRES"; then
12143 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12146 for as_dir in $PATH
12149 test -z "$as_dir" && as_dir=.
12150 for ac_exec_ext in '' $ac_executable_extensions; do
12151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12152 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
12153 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12162 WINDRES=$ac_cv_prog_WINDRES
12163 if test -n "$WINDRES"; then
12164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12165 $as_echo "$WINDRES" >&6; }
12167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12168 $as_echo "no
" >&6; }
12173 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
12174 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12175 set dummy ${ncn_progname}; ac_word=$2
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12177 $as_echo_n "checking
for $ac_word...
" >&6; }
12178 if ${ac_cv_prog_WINDRES+:} false; then :
12179 $as_echo_n "(cached
) " >&6
12181 if test -n "$WINDRES"; then
12182 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
12184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12185 for as_dir in $PATH
12188 test -z "$as_dir" && as_dir=.
12189 for ac_exec_ext in '' $ac_executable_extensions; do
12190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12191 ac_cv_prog_WINDRES="${ncn_progname}"
12192 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12201 WINDRES=$ac_cv_prog_WINDRES
12202 if test -n "$WINDRES"; then
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
12204 $as_echo "$WINDRES" >&6; }
12206 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12207 $as_echo "no
" >&6; }
12212 test -n "$ac_cv_prog_WINDRES" && break
12215 if test -z "$ac_cv_prog_WINDRES" ; then
12217 if test $build = $host ; then
12220 WINDRES="${ncn_tool_prefix}$2"
12226 if test -n "$WINDMC"; then
12227 ac_cv_prog_WINDMC=$WINDMC
12228 elif test -n "$ac_cv_prog_WINDMC"; then
12229 WINDMC=$ac_cv_prog_WINDMC
12232 if test -n "$ac_cv_prog_WINDMC"; then
12233 for ncn_progname in windmc; do
12234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12235 set dummy ${ncn_progname}; ac_word=$2
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12237 $as_echo_n "checking
for $ac_word...
" >&6; }
12238 if ${ac_cv_prog_WINDMC+:} false; then :
12239 $as_echo_n "(cached
) " >&6
12241 if test -n "$WINDMC"; then
12242 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12245 for as_dir in $PATH
12248 test -z "$as_dir" && as_dir=.
12249 for ac_exec_ext in '' $ac_executable_extensions; do
12250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12251 ac_cv_prog_WINDMC="${ncn_progname}"
12252 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12261 WINDMC=$ac_cv_prog_WINDMC
12262 if test -n "$WINDMC"; then
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12264 $as_echo "$WINDMC" >&6; }
12266 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12267 $as_echo "no
" >&6; }
12274 for ncn_progname in windmc; do
12275 if test -n "$ncn_tool_prefix"; then
12276 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12277 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12279 $as_echo_n "checking
for $ac_word...
" >&6; }
12280 if ${ac_cv_prog_WINDMC+:} false; then :
12281 $as_echo_n "(cached
) " >&6
12283 if test -n "$WINDMC"; then
12284 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12287 for as_dir in $PATH
12290 test -z "$as_dir" && as_dir=.
12291 for ac_exec_ext in '' $ac_executable_extensions; do
12292 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12293 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12294 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12303 WINDMC=$ac_cv_prog_WINDMC
12304 if test -n "$WINDMC"; then
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12306 $as_echo "$WINDMC" >&6; }
12308 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12309 $as_echo "no
" >&6; }
12314 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12316 set dummy ${ncn_progname}; ac_word=$2
12317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12318 $as_echo_n "checking
for $ac_word...
" >&6; }
12319 if ${ac_cv_prog_WINDMC+:} false; then :
12320 $as_echo_n "(cached
) " >&6
12322 if test -n "$WINDMC"; then
12323 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12326 for as_dir in $PATH
12329 test -z "$as_dir" && as_dir=.
12330 for ac_exec_ext in '' $ac_executable_extensions; do
12331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12332 ac_cv_prog_WINDMC="${ncn_progname}"
12333 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12342 WINDMC=$ac_cv_prog_WINDMC
12343 if test -n "$WINDMC"; then
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12345 $as_echo "$WINDMC" >&6; }
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12348 $as_echo "no
" >&6; }
12353 test -n "$ac_cv_prog_WINDMC" && break
12356 if test -z "$ac_cv_prog_WINDMC" ; then
12358 if test $build = $host ; then
12361 WINDMC="${ncn_tool_prefix}$2"
12367 if test -n "$OBJCOPY"; then
12368 ac_cv_prog_OBJCOPY=$OBJCOPY
12369 elif test -n "$ac_cv_prog_OBJCOPY"; then
12370 OBJCOPY=$ac_cv_prog_OBJCOPY
12373 if test -n "$ac_cv_prog_OBJCOPY"; then
12374 for ncn_progname in objcopy; do
12375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12376 set dummy ${ncn_progname}; ac_word=$2
12377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12378 $as_echo_n "checking
for $ac_word...
" >&6; }
12379 if ${ac_cv_prog_OBJCOPY+:} false; then :
12380 $as_echo_n "(cached
) " >&6
12382 if test -n "$OBJCOPY"; then
12383 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386 for as_dir in $PATH
12389 test -z "$as_dir" && as_dir=.
12390 for ac_exec_ext in '' $ac_executable_extensions; do
12391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12392 ac_cv_prog_OBJCOPY="${ncn_progname}"
12393 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12402 OBJCOPY=$ac_cv_prog_OBJCOPY
12403 if test -n "$OBJCOPY"; then
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12405 $as_echo "$OBJCOPY" >&6; }
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12408 $as_echo "no
" >&6; }
12415 for ncn_progname in objcopy; do
12416 if test -n "$ncn_tool_prefix"; then
12417 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12418 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12420 $as_echo_n "checking
for $ac_word...
" >&6; }
12421 if ${ac_cv_prog_OBJCOPY+:} false; then :
12422 $as_echo_n "(cached
) " >&6
12424 if test -n "$OBJCOPY"; then
12425 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12428 for as_dir in $PATH
12431 test -z "$as_dir" && as_dir=.
12432 for ac_exec_ext in '' $ac_executable_extensions; do
12433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12434 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12435 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12444 OBJCOPY=$ac_cv_prog_OBJCOPY
12445 if test -n "$OBJCOPY"; then
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12447 $as_echo "$OBJCOPY" >&6; }
12449 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12450 $as_echo "no
" >&6; }
12455 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12456 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12457 set dummy ${ncn_progname}; ac_word=$2
12458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12459 $as_echo_n "checking
for $ac_word...
" >&6; }
12460 if ${ac_cv_prog_OBJCOPY+:} false; then :
12461 $as_echo_n "(cached
) " >&6
12463 if test -n "$OBJCOPY"; then
12464 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12467 for as_dir in $PATH
12470 test -z "$as_dir" && as_dir=.
12471 for ac_exec_ext in '' $ac_executable_extensions; do
12472 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12473 ac_cv_prog_OBJCOPY="${ncn_progname}"
12474 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12483 OBJCOPY=$ac_cv_prog_OBJCOPY
12484 if test -n "$OBJCOPY"; then
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12486 $as_echo "$OBJCOPY" >&6; }
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12489 $as_echo "no
" >&6; }
12494 test -n "$ac_cv_prog_OBJCOPY" && break
12497 if test -z "$ac_cv_prog_OBJCOPY" ; then
12499 if test $build = $host ; then
12502 OBJCOPY="${ncn_tool_prefix}$2"
12508 if test -n "$OBJDUMP"; then
12509 ac_cv_prog_OBJDUMP=$OBJDUMP
12510 elif test -n "$ac_cv_prog_OBJDUMP"; then
12511 OBJDUMP=$ac_cv_prog_OBJDUMP
12514 if test -n "$ac_cv_prog_OBJDUMP"; then
12515 for ncn_progname in objdump; do
12516 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12517 set dummy ${ncn_progname}; ac_word=$2
12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12519 $as_echo_n "checking
for $ac_word...
" >&6; }
12520 if ${ac_cv_prog_OBJDUMP+:} false; then :
12521 $as_echo_n "(cached
) " >&6
12523 if test -n "$OBJDUMP"; then
12524 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12527 for as_dir in $PATH
12530 test -z "$as_dir" && as_dir=.
12531 for ac_exec_ext in '' $ac_executable_extensions; do
12532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12533 ac_cv_prog_OBJDUMP="${ncn_progname}"
12534 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12543 OBJDUMP=$ac_cv_prog_OBJDUMP
12544 if test -n "$OBJDUMP"; then
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12546 $as_echo "$OBJDUMP" >&6; }
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12549 $as_echo "no
" >&6; }
12556 for ncn_progname in objdump; do
12557 if test -n "$ncn_tool_prefix"; then
12558 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12559 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12561 $as_echo_n "checking
for $ac_word...
" >&6; }
12562 if ${ac_cv_prog_OBJDUMP+:} false; then :
12563 $as_echo_n "(cached
) " >&6
12565 if test -n "$OBJDUMP"; then
12566 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12569 for as_dir in $PATH
12572 test -z "$as_dir" && as_dir=.
12573 for ac_exec_ext in '' $ac_executable_extensions; do
12574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12575 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12576 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12585 OBJDUMP=$ac_cv_prog_OBJDUMP
12586 if test -n "$OBJDUMP"; then
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12588 $as_echo "$OBJDUMP" >&6; }
12590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12591 $as_echo "no
" >&6; }
12596 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12597 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12598 set dummy ${ncn_progname}; ac_word=$2
12599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12600 $as_echo_n "checking
for $ac_word...
" >&6; }
12601 if ${ac_cv_prog_OBJDUMP+:} false; then :
12602 $as_echo_n "(cached
) " >&6
12604 if test -n "$OBJDUMP"; then
12605 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12608 for as_dir in $PATH
12611 test -z "$as_dir" && as_dir=.
12612 for ac_exec_ext in '' $ac_executable_extensions; do
12613 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12614 ac_cv_prog_OBJDUMP="${ncn_progname}"
12615 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12624 OBJDUMP=$ac_cv_prog_OBJDUMP
12625 if test -n "$OBJDUMP"; then
12626 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12627 $as_echo "$OBJDUMP" >&6; }
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12630 $as_echo "no
" >&6; }
12635 test -n "$ac_cv_prog_OBJDUMP" && break
12638 if test -z "$ac_cv_prog_OBJDUMP" ; then
12640 if test $build = $host ; then
12643 OBJDUMP="${ncn_tool_prefix}$2"
12649 if test -n "$OTOOL"; then
12650 ac_cv_prog_OTOOL=$OTOOL
12651 elif test -n "$ac_cv_prog_OTOOL"; then
12652 OTOOL=$ac_cv_prog_OTOOL
12655 if test -n "$ac_cv_prog_OTOOL"; then
12656 for ncn_progname in otool; do
12657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12658 set dummy ${ncn_progname}; ac_word=$2
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12660 $as_echo_n "checking
for $ac_word...
" >&6; }
12661 if ${ac_cv_prog_OTOOL+:} false; then :
12662 $as_echo_n "(cached
) " >&6
12664 if test -n "$OTOOL"; then
12665 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12668 for as_dir in $PATH
12671 test -z "$as_dir" && as_dir=.
12672 for ac_exec_ext in '' $ac_executable_extensions; do
12673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12674 ac_cv_prog_OTOOL="${ncn_progname}"
12675 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12684 OTOOL=$ac_cv_prog_OTOOL
12685 if test -n "$OTOOL"; then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12687 $as_echo "$OTOOL" >&6; }
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12690 $as_echo "no
" >&6; }
12697 for ncn_progname in otool; do
12698 if test -n "$ncn_tool_prefix"; then
12699 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12700 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12702 $as_echo_n "checking
for $ac_word...
" >&6; }
12703 if ${ac_cv_prog_OTOOL+:} false; then :
12704 $as_echo_n "(cached
) " >&6
12706 if test -n "$OTOOL"; then
12707 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12710 for as_dir in $PATH
12713 test -z "$as_dir" && as_dir=.
12714 for ac_exec_ext in '' $ac_executable_extensions; do
12715 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12716 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12717 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12726 OTOOL=$ac_cv_prog_OTOOL
12727 if test -n "$OTOOL"; then
12728 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12729 $as_echo "$OTOOL" >&6; }
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12732 $as_echo "no
" >&6; }
12737 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12738 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12739 set dummy ${ncn_progname}; ac_word=$2
12740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12741 $as_echo_n "checking
for $ac_word...
" >&6; }
12742 if ${ac_cv_prog_OTOOL+:} false; then :
12743 $as_echo_n "(cached
) " >&6
12745 if test -n "$OTOOL"; then
12746 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12748 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12749 for as_dir in $PATH
12752 test -z "$as_dir" && as_dir=.
12753 for ac_exec_ext in '' $ac_executable_extensions; do
12754 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12755 ac_cv_prog_OTOOL="${ncn_progname}"
12756 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12765 OTOOL=$ac_cv_prog_OTOOL
12766 if test -n "$OTOOL"; then
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12768 $as_echo "$OTOOL" >&6; }
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12771 $as_echo "no
" >&6; }
12776 test -n "$ac_cv_prog_OTOOL" && break
12779 if test -z "$ac_cv_prog_OTOOL" ; then
12781 if test $build = $host ; then
12784 OTOOL="${ncn_tool_prefix}$2"
12790 if test -n "$READELF"; then
12791 ac_cv_prog_READELF=$READELF
12792 elif test -n "$ac_cv_prog_READELF"; then
12793 READELF=$ac_cv_prog_READELF
12796 if test -n "$ac_cv_prog_READELF"; then
12797 for ncn_progname in readelf; do
12798 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12799 set dummy ${ncn_progname}; ac_word=$2
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12801 $as_echo_n "checking
for $ac_word...
" >&6; }
12802 if ${ac_cv_prog_READELF+:} false; then :
12803 $as_echo_n "(cached
) " >&6
12805 if test -n "$READELF"; then
12806 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12808 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12809 for as_dir in $PATH
12812 test -z "$as_dir" && as_dir=.
12813 for ac_exec_ext in '' $ac_executable_extensions; do
12814 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12815 ac_cv_prog_READELF="${ncn_progname}"
12816 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12825 READELF=$ac_cv_prog_READELF
12826 if test -n "$READELF"; then
12827 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12828 $as_echo "$READELF" >&6; }
12830 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12831 $as_echo "no
" >&6; }
12838 for ncn_progname in readelf; do
12839 if test -n "$ncn_tool_prefix"; then
12840 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12841 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12843 $as_echo_n "checking
for $ac_word...
" >&6; }
12844 if ${ac_cv_prog_READELF+:} false; then :
12845 $as_echo_n "(cached
) " >&6
12847 if test -n "$READELF"; then
12848 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12851 for as_dir in $PATH
12854 test -z "$as_dir" && as_dir=.
12855 for ac_exec_ext in '' $ac_executable_extensions; do
12856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12857 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12858 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12867 READELF=$ac_cv_prog_READELF
12868 if test -n "$READELF"; then
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12870 $as_echo "$READELF" >&6; }
12872 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12873 $as_echo "no
" >&6; }
12878 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12879 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12880 set dummy ${ncn_progname}; ac_word=$2
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12882 $as_echo_n "checking
for $ac_word...
" >&6; }
12883 if ${ac_cv_prog_READELF+:} false; then :
12884 $as_echo_n "(cached
) " >&6
12886 if test -n "$READELF"; then
12887 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12890 for as_dir in $PATH
12893 test -z "$as_dir" && as_dir=.
12894 for ac_exec_ext in '' $ac_executable_extensions; do
12895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12896 ac_cv_prog_READELF="${ncn_progname}"
12897 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12906 READELF=$ac_cv_prog_READELF
12907 if test -n "$READELF"; then
12908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12909 $as_echo "$READELF" >&6; }
12911 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12912 $as_echo "no
" >&6; }
12917 test -n "$ac_cv_prog_READELF" && break
12920 if test -z "$ac_cv_prog_READELF" ; then
12922 if test $build = $host ; then
12925 READELF="${ncn_tool_prefix}$2"
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for -plugin option
" >&5
12938 $as_echo_n "checking
for -plugin option...
" >&6; }
12940 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll
"
12942 for plugin in $plugin_names; do
12943 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
12944 if test x$plugin_so = x$plugin; then
12945 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
12947 if test x$plugin_so != x$plugin; then
12948 plugin_option="--plugin $plugin_so"
12952 if test -n "$ac_tool_prefix"; then
12953 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12954 set dummy ${ac_tool_prefix}ar; ac_word=$2
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12956 $as_echo_n "checking
for $ac_word...
" >&6; }
12957 if ${ac_cv_prog_AR+:} false; then :
12958 $as_echo_n "(cached
) " >&6
12960 if test -n "$AR"; then
12961 ac_cv_prog_AR="$AR" # Let the user override the test.
12963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12964 for as_dir in $PATH
12967 test -z "$as_dir" && as_dir=.
12968 for ac_exec_ext in '' $ac_executable_extensions; do
12969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12970 ac_cv_prog_AR="${ac_tool_prefix}ar"
12971 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12981 if test -n "$AR"; then
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
12983 $as_echo "$AR" >&6; }
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12986 $as_echo "no
" >&6; }
12991 if test -z "$ac_cv_prog_AR"; then
12993 # Extract the first word of "ar", so it can be a program name with args.
12994 set dummy ar; ac_word=$2
12995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12996 $as_echo_n "checking
for $ac_word...
" >&6; }
12997 if ${ac_cv_prog_ac_ct_AR+:} false; then :
12998 $as_echo_n "(cached
) " >&6
13000 if test -n "$ac_ct_AR"; then
13001 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
13003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13004 for as_dir in $PATH
13007 test -z "$as_dir" && as_dir=.
13008 for ac_exec_ext in '' $ac_executable_extensions; do
13009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13010 ac_cv_prog_ac_ct_AR="ar"
13011 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13020 ac_ct_AR=$ac_cv_prog_ac_ct_AR
13021 if test -n "$ac_ct_AR"; then
13022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_ct_AR" >&5
13023 $as_echo "$ac_ct_AR" >&6; }
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13026 $as_echo "no
" >&6; }
13029 if test "x
$ac_ct_AR" = x; then
13032 case $cross_compiling:$ac_tool_warned in
13034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: using cross tools not prefixed with
host triplet
" >&5
13035 $as_echo "$as_me: WARNING
: using cross tools not prefixed with
host triplet
" >&2;}
13036 ac_tool_warned=yes ;;
13041 AR="$ac_cv_prog_AR"
13044 if test "${AR}" = "" ; then
13045 as_fn_error $? "Required archive tool
'ar' not found on PATH.
" "$LINENO" 5
13048 ${AR} $plugin_option rc conftest.a conftest.c
13049 if test "$?
" != 0; then
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: Failed
: $AR $plugin_option rc
" >&5
13051 $as_echo "$as_me: WARNING
: Failed
: $AR $plugin_option rc
" >&2;}
13055 if test -n "$plugin_option"; then
13056 PLUGIN_OPTION="$plugin_option"
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $plugin_option" >&5
13058 $as_echo "$plugin_option" >&6; }
13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13061 $as_echo "no
" >&6; }
13065 RANLIB_PLUGIN_OPTION=
13066 if test -n "$PLUGIN_OPTION"; then
13067 if $AR --help 2>&1 | grep -q "\
--plugin"; then
13068 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
13070 if $RANLIB --help 2>&1 | grep -q "\
--plugin"; then
13071 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
13079 # Check whether --with-build-time-tools was given.
13080 if test "${with_build_time_tools+set}" = set; then :
13081 withval=$with_build_time_tools; case x"$withval" in
13084 with_build_time_tools=
13085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
13086 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
13090 with_build_time_tools=
13096 if test -n "$CC_FOR_TARGET"; then
13097 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
13098 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13099 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13102 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
13103 for ncn_progname in cc gcc; do
13104 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13105 set dummy ${ncn_progname}; ac_word=$2
13106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13107 $as_echo_n "checking
for $ac_word...
" >&6; }
13108 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13109 $as_echo_n "(cached
) " >&6
13111 if test -n "$CC_FOR_TARGET"; then
13112 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13115 for as_dir in $PATH
13118 test -z "$as_dir" && as_dir=.
13119 for ac_exec_ext in '' $ac_executable_extensions; do
13120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13121 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13122 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13131 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13132 if test -n "$CC_FOR_TARGET"; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13134 $as_echo "$CC_FOR_TARGET" >&6; }
13136 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13137 $as_echo "no
" >&6; }
13144 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13145 for ncn_progname in cc gcc; do
13146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13147 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13148 if test -x $with_build_time_tools/${ncn_progname}; then
13149 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13151 $as_echo "yes" >&6; }
13154 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13155 $as_echo "no
" >&6; }
13160 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
13161 for ncn_progname in cc gcc; do
13162 if test -n "$ncn_target_tool_prefix"; then
13163 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13164 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13166 $as_echo_n "checking
for $ac_word...
" >&6; }
13167 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13168 $as_echo_n "(cached
) " >&6
13170 if test -n "$CC_FOR_TARGET"; then
13171 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13174 for as_dir in $PATH
13177 test -z "$as_dir" && as_dir=.
13178 for ac_exec_ext in '' $ac_executable_extensions; do
13179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13180 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13181 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13190 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13191 if test -n "$CC_FOR_TARGET"; then
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13193 $as_echo "$CC_FOR_TARGET" >&6; }
13195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13196 $as_echo "no
" >&6; }
13201 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
13202 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13203 set dummy ${ncn_progname}; ac_word=$2
13204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13205 $as_echo_n "checking
for $ac_word...
" >&6; }
13206 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
13207 $as_echo_n "(cached
) " >&6
13209 if test -n "$CC_FOR_TARGET"; then
13210 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
13212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13213 for as_dir in $PATH
13216 test -z "$as_dir" && as_dir=.
13217 for ac_exec_ext in '' $ac_executable_extensions; do
13218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13219 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
13220 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13229 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
13230 if test -n "$CC_FOR_TARGET"; then
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
13232 $as_echo "$CC_FOR_TARGET" >&6; }
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13235 $as_echo "no
" >&6; }
13240 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
13244 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
13246 if test $build = $target ; then
13249 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13252 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
13257 if test -n "$CXX_FOR_TARGET"; then
13258 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
13259 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13260 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13263 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
13264 for ncn_progname in c++ g++ cxx gxx; do
13265 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13266 set dummy ${ncn_progname}; ac_word=$2
13267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13268 $as_echo_n "checking
for $ac_word...
" >&6; }
13269 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13270 $as_echo_n "(cached
) " >&6
13272 if test -n "$CXX_FOR_TARGET"; then
13273 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13276 for as_dir in $PATH
13279 test -z "$as_dir" && as_dir=.
13280 for ac_exec_ext in '' $ac_executable_extensions; do
13281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13282 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13283 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13292 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13293 if test -n "$CXX_FOR_TARGET"; then
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13295 $as_echo "$CXX_FOR_TARGET" >&6; }
13297 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13298 $as_echo "no
" >&6; }
13305 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13306 for ncn_progname in c++ g++ cxx gxx; do
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13308 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13309 if test -x $with_build_time_tools/${ncn_progname}; then
13310 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13312 $as_echo "yes" >&6; }
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13316 $as_echo "no
" >&6; }
13321 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13322 for ncn_progname in c++ g++ cxx gxx; do
13323 if test -n "$ncn_target_tool_prefix"; then
13324 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13325 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13327 $as_echo_n "checking
for $ac_word...
" >&6; }
13328 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13329 $as_echo_n "(cached
) " >&6
13331 if test -n "$CXX_FOR_TARGET"; then
13332 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13334 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13335 for as_dir in $PATH
13338 test -z "$as_dir" && as_dir=.
13339 for ac_exec_ext in '' $ac_executable_extensions; do
13340 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13341 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13342 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13351 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13352 if test -n "$CXX_FOR_TARGET"; then
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13354 $as_echo "$CXX_FOR_TARGET" >&6; }
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13357 $as_echo "no
" >&6; }
13362 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13363 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13364 set dummy ${ncn_progname}; ac_word=$2
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13366 $as_echo_n "checking
for $ac_word...
" >&6; }
13367 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13368 $as_echo_n "(cached
) " >&6
13370 if test -n "$CXX_FOR_TARGET"; then
13371 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13374 for as_dir in $PATH
13377 test -z "$as_dir" && as_dir=.
13378 for ac_exec_ext in '' $ac_executable_extensions; do
13379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13380 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13381 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13390 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13391 if test -n "$CXX_FOR_TARGET"; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
13393 $as_echo "$CXX_FOR_TARGET" >&6; }
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13396 $as_echo "no
" >&6; }
13401 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13405 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13406 set dummy c++ g++ cxx gxx
13407 if test $build = $target ; then
13408 CXX_FOR_TARGET="$2"
13410 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13413 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13418 if test -n "$GCC_FOR_TARGET"; then
13419 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13420 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13421 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13424 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13425 for ncn_progname in gcc; do
13426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13427 set dummy ${ncn_progname}; ac_word=$2
13428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13429 $as_echo_n "checking
for $ac_word...
" >&6; }
13430 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13431 $as_echo_n "(cached
) " >&6
13433 if test -n "$GCC_FOR_TARGET"; then
13434 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13437 for as_dir in $PATH
13440 test -z "$as_dir" && as_dir=.
13441 for ac_exec_ext in '' $ac_executable_extensions; do
13442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13443 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13444 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13453 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13454 if test -n "$GCC_FOR_TARGET"; then
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13456 $as_echo "$GCC_FOR_TARGET" >&6; }
13458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13459 $as_echo "no
" >&6; }
13466 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13467 for ncn_progname in gcc; do
13468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13469 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13470 if test -x $with_build_time_tools/${ncn_progname}; then
13471 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13473 $as_echo "yes" >&6; }
13476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13477 $as_echo "no
" >&6; }
13482 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13483 for ncn_progname in gcc; do
13484 if test -n "$ncn_target_tool_prefix"; then
13485 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13486 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13488 $as_echo_n "checking
for $ac_word...
" >&6; }
13489 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13490 $as_echo_n "(cached
) " >&6
13492 if test -n "$GCC_FOR_TARGET"; then
13493 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13496 for as_dir in $PATH
13499 test -z "$as_dir" && as_dir=.
13500 for ac_exec_ext in '' $ac_executable_extensions; do
13501 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13502 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13503 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13512 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13513 if test -n "$GCC_FOR_TARGET"; then
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13515 $as_echo "$GCC_FOR_TARGET" >&6; }
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13518 $as_echo "no
" >&6; }
13523 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13524 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13525 set dummy ${ncn_progname}; ac_word=$2
13526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13527 $as_echo_n "checking
for $ac_word...
" >&6; }
13528 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13529 $as_echo_n "(cached
) " >&6
13531 if test -n "$GCC_FOR_TARGET"; then
13532 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13535 for as_dir in $PATH
13538 test -z "$as_dir" && as_dir=.
13539 for ac_exec_ext in '' $ac_executable_extensions; do
13540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13541 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13542 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13551 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13552 if test -n "$GCC_FOR_TARGET"; then
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13554 $as_echo "$GCC_FOR_TARGET" >&6; }
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13557 $as_echo "no
" >&6; }
13562 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13566 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13567 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13569 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13574 if test -n "$GFORTRAN_FOR_TARGET"; then
13575 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13576 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13577 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13580 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13581 for ncn_progname in gfortran; do
13582 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13583 set dummy ${ncn_progname}; ac_word=$2
13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13585 $as_echo_n "checking
for $ac_word...
" >&6; }
13586 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13587 $as_echo_n "(cached
) " >&6
13589 if test -n "$GFORTRAN_FOR_TARGET"; then
13590 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13593 for as_dir in $PATH
13596 test -z "$as_dir" && as_dir=.
13597 for ac_exec_ext in '' $ac_executable_extensions; do
13598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13599 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13600 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13609 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13610 if test -n "$GFORTRAN_FOR_TARGET"; then
13611 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13612 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13615 $as_echo "no
" >&6; }
13622 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13623 for ncn_progname in gfortran; do
13624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13625 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13626 if test -x $with_build_time_tools/${ncn_progname}; then
13627 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13628 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13629 $as_echo "yes" >&6; }
13632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13633 $as_echo "no
" >&6; }
13638 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13639 for ncn_progname in gfortran; do
13640 if test -n "$ncn_target_tool_prefix"; then
13641 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13642 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13644 $as_echo_n "checking
for $ac_word...
" >&6; }
13645 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13646 $as_echo_n "(cached
) " >&6
13648 if test -n "$GFORTRAN_FOR_TARGET"; then
13649 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13652 for as_dir in $PATH
13655 test -z "$as_dir" && as_dir=.
13656 for ac_exec_ext in '' $ac_executable_extensions; do
13657 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13658 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13659 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13668 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13669 if test -n "$GFORTRAN_FOR_TARGET"; then
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13671 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13673 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13674 $as_echo "no
" >&6; }
13679 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13680 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13681 set dummy ${ncn_progname}; ac_word=$2
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13683 $as_echo_n "checking
for $ac_word...
" >&6; }
13684 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13685 $as_echo_n "(cached
) " >&6
13687 if test -n "$GFORTRAN_FOR_TARGET"; then
13688 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13691 for as_dir in $PATH
13694 test -z "$as_dir" && as_dir=.
13695 for ac_exec_ext in '' $ac_executable_extensions; do
13696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13697 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13698 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13707 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13708 if test -n "$GFORTRAN_FOR_TARGET"; then
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13710 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13712 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13713 $as_echo "no
" >&6; }
13718 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13722 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13724 if test $build = $target ; then
13725 GFORTRAN_FOR_TARGET="$2"
13727 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13730 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13735 if test -n "$GOC_FOR_TARGET"; then
13736 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13737 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13738 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13741 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13742 for ncn_progname in gccgo; do
13743 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13744 set dummy ${ncn_progname}; ac_word=$2
13745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13746 $as_echo_n "checking
for $ac_word...
" >&6; }
13747 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13748 $as_echo_n "(cached
) " >&6
13750 if test -n "$GOC_FOR_TARGET"; then
13751 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13754 for as_dir in $PATH
13757 test -z "$as_dir" && as_dir=.
13758 for ac_exec_ext in '' $ac_executable_extensions; do
13759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13760 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13761 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13770 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13771 if test -n "$GOC_FOR_TARGET"; then
13772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13773 $as_echo "$GOC_FOR_TARGET" >&6; }
13775 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13776 $as_echo "no
" >&6; }
13783 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13784 for ncn_progname in gccgo; do
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13786 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13787 if test -x $with_build_time_tools/${ncn_progname}; then
13788 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13790 $as_echo "yes" >&6; }
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13794 $as_echo "no
" >&6; }
13799 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13800 for ncn_progname in gccgo; do
13801 if test -n "$ncn_target_tool_prefix"; then
13802 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13803 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13805 $as_echo_n "checking
for $ac_word...
" >&6; }
13806 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13807 $as_echo_n "(cached
) " >&6
13809 if test -n "$GOC_FOR_TARGET"; then
13810 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13813 for as_dir in $PATH
13816 test -z "$as_dir" && as_dir=.
13817 for ac_exec_ext in '' $ac_executable_extensions; do
13818 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13819 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13820 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13829 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13830 if test -n "$GOC_FOR_TARGET"; then
13831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13832 $as_echo "$GOC_FOR_TARGET" >&6; }
13834 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13835 $as_echo "no
" >&6; }
13840 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13841 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13842 set dummy ${ncn_progname}; ac_word=$2
13843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13844 $as_echo_n "checking
for $ac_word...
" >&6; }
13845 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13846 $as_echo_n "(cached
) " >&6
13848 if test -n "$GOC_FOR_TARGET"; then
13849 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13852 for as_dir in $PATH
13855 test -z "$as_dir" && as_dir=.
13856 for ac_exec_ext in '' $ac_executable_extensions; do
13857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13858 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13859 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13868 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13869 if test -n "$GOC_FOR_TARGET"; then
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13871 $as_echo "$GOC_FOR_TARGET" >&6; }
13873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13874 $as_echo "no
" >&6; }
13879 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13883 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13885 if test $build = $target ; then
13886 GOC_FOR_TARGET="$2"
13888 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13891 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13896 if test -n "$GDC_FOR_TARGET"; then
13897 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13898 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13899 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13902 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13903 for ncn_progname in gdc; do
13904 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13905 set dummy ${ncn_progname}; ac_word=$2
13906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13907 $as_echo_n "checking
for $ac_word...
" >&6; }
13908 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13909 $as_echo_n "(cached
) " >&6
13911 if test -n "$GDC_FOR_TARGET"; then
13912 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13915 for as_dir in $PATH
13918 test -z "$as_dir" && as_dir=.
13919 for ac_exec_ext in '' $ac_executable_extensions; do
13920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13921 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13922 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13931 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13932 if test -n "$GDC_FOR_TARGET"; then
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13934 $as_echo "$GDC_FOR_TARGET" >&6; }
13936 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13937 $as_echo "no
" >&6; }
13944 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13945 for ncn_progname in gdc; do
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13947 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13948 if test -x $with_build_time_tools/${ncn_progname}; then
13949 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13950 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13951 $as_echo "yes" >&6; }
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13955 $as_echo "no
" >&6; }
13960 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13961 for ncn_progname in gdc; do
13962 if test -n "$ncn_target_tool_prefix"; then
13963 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13964 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13966 $as_echo_n "checking
for $ac_word...
" >&6; }
13967 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13968 $as_echo_n "(cached
) " >&6
13970 if test -n "$GDC_FOR_TARGET"; then
13971 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13974 for as_dir in $PATH
13977 test -z "$as_dir" && as_dir=.
13978 for ac_exec_ext in '' $ac_executable_extensions; do
13979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13980 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13981 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13990 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13991 if test -n "$GDC_FOR_TARGET"; then
13992 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13993 $as_echo "$GDC_FOR_TARGET" >&6; }
13995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13996 $as_echo "no
" >&6; }
14001 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
14002 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14003 set dummy ${ncn_progname}; ac_word=$2
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14005 $as_echo_n "checking
for $ac_word...
" >&6; }
14006 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
14007 $as_echo_n "(cached
) " >&6
14009 if test -n "$GDC_FOR_TARGET"; then
14010 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
14012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14013 for as_dir in $PATH
14016 test -z "$as_dir" && as_dir=.
14017 for ac_exec_ext in '' $ac_executable_extensions; do
14018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14019 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
14020 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14029 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
14030 if test -n "$GDC_FOR_TARGET"; then
14031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
14032 $as_echo "$GDC_FOR_TARGET" >&6; }
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14035 $as_echo "no
" >&6; }
14040 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
14044 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
14046 if test $build = $target ; then
14047 GDC_FOR_TARGET="$2"
14049 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
14052 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
14057 cat > conftest.c << \EOF
14062 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
14063 have_gcc_for_target=yes
14065 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
14066 have_gcc_for_target=no
14073 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14074 if test -n "$with_build_time_tools"; then
14075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
14076 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
14077 if test -x $with_build_time_tools/ar; then
14078 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
14079 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14080 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
14081 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
14083 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14084 $as_echo "no
" >&6; }
14086 elif test $build != $host && test $have_gcc_for_target = yes; then
14087 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
14088 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
14089 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
14092 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14093 # Extract the first word of "ar", so it can be a program name with args.
14094 set dummy ar; ac_word=$2
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14096 $as_echo_n "checking
for $ac_word...
" >&6; }
14097 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
14098 $as_echo_n "(cached
) " >&6
14100 case $AR_FOR_TARGET in
14102 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
14105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14106 for as_dir in $gcc_cv_tool_dirs
14109 test -z "$as_dir" && as_dir=.
14110 for ac_exec_ext in '' $ac_executable_extensions; do
14111 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14112 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14113 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14123 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14124 if test -n "$AR_FOR_TARGET"; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14126 $as_echo "$AR_FOR_TARGET" >&6; }
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14129 $as_echo "no
" >&6; }
14134 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
14137 if test -n "$AR_FOR_TARGET"; then
14138 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
14139 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14140 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14143 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
14144 for ncn_progname in ar; do
14145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14146 set dummy ${ncn_progname}; ac_word=$2
14147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14148 $as_echo_n "checking
for $ac_word...
" >&6; }
14149 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14150 $as_echo_n "(cached
) " >&6
14152 if test -n "$AR_FOR_TARGET"; then
14153 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14156 for as_dir in $PATH
14159 test -z "$as_dir" && as_dir=.
14160 for ac_exec_ext in '' $ac_executable_extensions; do
14161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14162 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14163 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14172 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14173 if test -n "$AR_FOR_TARGET"; then
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14175 $as_echo "$AR_FOR_TARGET" >&6; }
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14178 $as_echo "no
" >&6; }
14185 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
14186 for ncn_progname in ar; do
14187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14188 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14189 if test -x $with_build_time_tools/${ncn_progname}; then
14190 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14192 $as_echo "yes" >&6; }
14195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14196 $as_echo "no
" >&6; }
14201 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
14202 for ncn_progname in ar; do
14203 if test -n "$ncn_target_tool_prefix"; then
14204 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14205 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14207 $as_echo_n "checking
for $ac_word...
" >&6; }
14208 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14209 $as_echo_n "(cached
) " >&6
14211 if test -n "$AR_FOR_TARGET"; then
14212 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14215 for as_dir in $PATH
14218 test -z "$as_dir" && as_dir=.
14219 for ac_exec_ext in '' $ac_executable_extensions; do
14220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14221 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14222 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14231 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14232 if test -n "$AR_FOR_TARGET"; then
14233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14234 $as_echo "$AR_FOR_TARGET" >&6; }
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14237 $as_echo "no
" >&6; }
14242 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
14243 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14244 set dummy ${ncn_progname}; ac_word=$2
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14246 $as_echo_n "checking
for $ac_word...
" >&6; }
14247 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
14248 $as_echo_n "(cached
) " >&6
14250 if test -n "$AR_FOR_TARGET"; then
14251 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
14253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14254 for as_dir in $PATH
14257 test -z "$as_dir" && as_dir=.
14258 for ac_exec_ext in '' $ac_executable_extensions; do
14259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14260 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
14261 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14270 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
14271 if test -n "$AR_FOR_TARGET"; then
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
14273 $as_echo "$AR_FOR_TARGET" >&6; }
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14276 $as_echo "no
" >&6; }
14281 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
14285 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
14287 if test $build = $target ; then
14290 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14293 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14297 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14303 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14304 if test -n "$with_build_time_tools"; then
14305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
14306 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
14307 if test -x $with_build_time_tools/as; then
14308 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14309 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
14311 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14314 $as_echo "no
" >&6; }
14316 elif test $build != $host && test $have_gcc_for_target = yes; then
14317 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14318 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14319 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14322 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14323 # Extract the first word of "as
", so it can be a program name with args.
14324 set dummy as; ac_word=$2
14325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14326 $as_echo_n "checking
for $ac_word...
" >&6; }
14327 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14328 $as_echo_n "(cached
) " >&6
14330 case $AS_FOR_TARGET in
14332 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14336 for as_dir in $gcc_cv_tool_dirs
14339 test -z "$as_dir" && as_dir=.
14340 for ac_exec_ext in '' $ac_executable_extensions; do
14341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14342 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14343 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14353 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14354 if test -n "$AS_FOR_TARGET"; then
14355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14356 $as_echo "$AS_FOR_TARGET" >&6; }
14358 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14359 $as_echo "no
" >&6; }
14364 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14367 if test -n "$AS_FOR_TARGET"; then
14368 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14369 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14370 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14373 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14374 for ncn_progname in as; do
14375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14376 set dummy ${ncn_progname}; ac_word=$2
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14378 $as_echo_n "checking
for $ac_word...
" >&6; }
14379 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14380 $as_echo_n "(cached
) " >&6
14382 if test -n "$AS_FOR_TARGET"; then
14383 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14386 for as_dir in $PATH
14389 test -z "$as_dir" && as_dir=.
14390 for ac_exec_ext in '' $ac_executable_extensions; do
14391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14392 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14393 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14402 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14403 if test -n "$AS_FOR_TARGET"; then
14404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14405 $as_echo "$AS_FOR_TARGET" >&6; }
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14408 $as_echo "no
" >&6; }
14415 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14416 for ncn_progname in as; do
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14418 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14419 if test -x $with_build_time_tools/${ncn_progname}; then
14420 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14422 $as_echo "yes" >&6; }
14425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14426 $as_echo "no
" >&6; }
14431 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14432 for ncn_progname in as; do
14433 if test -n "$ncn_target_tool_prefix"; then
14434 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14435 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14437 $as_echo_n "checking
for $ac_word...
" >&6; }
14438 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14439 $as_echo_n "(cached
) " >&6
14441 if test -n "$AS_FOR_TARGET"; then
14442 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14445 for as_dir in $PATH
14448 test -z "$as_dir" && as_dir=.
14449 for ac_exec_ext in '' $ac_executable_extensions; do
14450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14451 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14452 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14461 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14462 if test -n "$AS_FOR_TARGET"; then
14463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14464 $as_echo "$AS_FOR_TARGET" >&6; }
14466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14467 $as_echo "no
" >&6; }
14472 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14473 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14474 set dummy ${ncn_progname}; ac_word=$2
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14476 $as_echo_n "checking
for $ac_word...
" >&6; }
14477 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14478 $as_echo_n "(cached
) " >&6
14480 if test -n "$AS_FOR_TARGET"; then
14481 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14483 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14484 for as_dir in $PATH
14487 test -z "$as_dir" && as_dir=.
14488 for ac_exec_ext in '' $ac_executable_extensions; do
14489 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14490 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14491 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14500 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14501 if test -n "$AS_FOR_TARGET"; then
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14503 $as_echo "$AS_FOR_TARGET" >&6; }
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14506 $as_echo "no
" >&6; }
14511 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14515 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14517 if test $build = $target ; then
14520 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14523 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14527 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14533 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14534 if test -n "$with_build_time_tools"; then
14535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14536 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14537 if test -x $with_build_time_tools/dlltool; then
14538 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14539 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14540 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14541 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14543 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14544 $as_echo "no
" >&6; }
14546 elif test $build != $host && test $have_gcc_for_target = yes; then
14547 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14548 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14549 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14552 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14553 # Extract the first word of "dlltool
", so it can be a program name with args.
14554 set dummy dlltool; ac_word=$2
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14556 $as_echo_n "checking
for $ac_word...
" >&6; }
14557 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14558 $as_echo_n "(cached
) " >&6
14560 case $DLLTOOL_FOR_TARGET in
14562 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14566 for as_dir in $gcc_cv_tool_dirs
14569 test -z "$as_dir" && as_dir=.
14570 for ac_exec_ext in '' $ac_executable_extensions; do
14571 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14572 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14573 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14583 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14584 if test -n "$DLLTOOL_FOR_TARGET"; then
14585 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14586 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14589 $as_echo "no
" >&6; }
14594 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14597 if test -n "$DLLTOOL_FOR_TARGET"; then
14598 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14599 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14600 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14603 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14604 for ncn_progname in dlltool; do
14605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14606 set dummy ${ncn_progname}; ac_word=$2
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14608 $as_echo_n "checking
for $ac_word...
" >&6; }
14609 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14610 $as_echo_n "(cached
) " >&6
14612 if test -n "$DLLTOOL_FOR_TARGET"; then
14613 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14616 for as_dir in $PATH
14619 test -z "$as_dir" && as_dir=.
14620 for ac_exec_ext in '' $ac_executable_extensions; do
14621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14622 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14623 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14632 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14633 if test -n "$DLLTOOL_FOR_TARGET"; then
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14635 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14638 $as_echo "no
" >&6; }
14645 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14646 for ncn_progname in dlltool; do
14647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14648 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14649 if test -x $with_build_time_tools/${ncn_progname}; then
14650 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14652 $as_echo "yes" >&6; }
14655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14656 $as_echo "no
" >&6; }
14661 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14662 for ncn_progname in dlltool; do
14663 if test -n "$ncn_target_tool_prefix"; then
14664 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14665 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14667 $as_echo_n "checking
for $ac_word...
" >&6; }
14668 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14669 $as_echo_n "(cached
) " >&6
14671 if test -n "$DLLTOOL_FOR_TARGET"; then
14672 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14675 for as_dir in $PATH
14678 test -z "$as_dir" && as_dir=.
14679 for ac_exec_ext in '' $ac_executable_extensions; do
14680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14681 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14682 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14691 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14692 if test -n "$DLLTOOL_FOR_TARGET"; then
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14694 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14697 $as_echo "no
" >&6; }
14702 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14704 set dummy ${ncn_progname}; ac_word=$2
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14706 $as_echo_n "checking
for $ac_word...
" >&6; }
14707 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14708 $as_echo_n "(cached
) " >&6
14710 if test -n "$DLLTOOL_FOR_TARGET"; then
14711 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14714 for as_dir in $PATH
14717 test -z "$as_dir" && as_dir=.
14718 for ac_exec_ext in '' $ac_executable_extensions; do
14719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14720 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14721 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14730 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14731 if test -n "$DLLTOOL_FOR_TARGET"; then
14732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14733 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14736 $as_echo "no
" >&6; }
14741 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14745 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14747 if test $build = $target ; then
14748 DLLTOOL_FOR_TARGET="$2"
14750 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14753 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14757 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14763 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14764 if test -n "$with_build_time_tools"; then
14765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
14766 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
14767 if test -x $with_build_time_tools/dsymutil; then
14768 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14769 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14771 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14774 $as_echo "no
" >&6; }
14776 elif test $build != $host && test $have_gcc_for_target = yes; then
14777 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14778 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14779 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14782 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14783 # Extract the first word of "dsymutil
", so it can be a program name with args.
14784 set dummy dsymutil; ac_word=$2
14785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14786 $as_echo_n "checking
for $ac_word...
" >&6; }
14787 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14788 $as_echo_n "(cached
) " >&6
14790 case $DSYMUTIL_FOR_TARGET in
14792 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14796 for as_dir in $gcc_cv_tool_dirs
14799 test -z "$as_dir" && as_dir=.
14800 for ac_exec_ext in '' $ac_executable_extensions; do
14801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14802 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14803 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14813 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14814 if test -n "$DSYMUTIL_FOR_TARGET"; then
14815 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14816 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14819 $as_echo "no
" >&6; }
14824 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14827 if test -n "$DSYMUTIL_FOR_TARGET"; then
14828 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14829 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14830 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14833 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14834 for ncn_progname in dsymutil; do
14835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14836 set dummy ${ncn_progname}; ac_word=$2
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14838 $as_echo_n "checking
for $ac_word...
" >&6; }
14839 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14840 $as_echo_n "(cached
) " >&6
14842 if test -n "$DSYMUTIL_FOR_TARGET"; then
14843 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14846 for as_dir in $PATH
14849 test -z "$as_dir" && as_dir=.
14850 for ac_exec_ext in '' $ac_executable_extensions; do
14851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14852 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14853 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14862 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14863 if test -n "$DSYMUTIL_FOR_TARGET"; then
14864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14865 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14868 $as_echo "no
" >&6; }
14875 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14876 for ncn_progname in dsymutil; do
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14878 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14879 if test -x $with_build_time_tools/${ncn_progname}; then
14880 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14881 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14882 $as_echo "yes" >&6; }
14885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14886 $as_echo "no
" >&6; }
14891 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14892 for ncn_progname in dsymutil; do
14893 if test -n "$ncn_target_tool_prefix"; then
14894 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14895 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14897 $as_echo_n "checking
for $ac_word...
" >&6; }
14898 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14899 $as_echo_n "(cached
) " >&6
14901 if test -n "$DSYMUTIL_FOR_TARGET"; then
14902 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14905 for as_dir in $PATH
14908 test -z "$as_dir" && as_dir=.
14909 for ac_exec_ext in '' $ac_executable_extensions; do
14910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14911 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14912 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14921 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14922 if test -n "$DSYMUTIL_FOR_TARGET"; then
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14924 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14927 $as_echo "no
" >&6; }
14932 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14933 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14934 set dummy ${ncn_progname}; ac_word=$2
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14936 $as_echo_n "checking
for $ac_word...
" >&6; }
14937 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14938 $as_echo_n "(cached
) " >&6
14940 if test -n "$DSYMUTIL_FOR_TARGET"; then
14941 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14944 for as_dir in $PATH
14947 test -z "$as_dir" && as_dir=.
14948 for ac_exec_ext in '' $ac_executable_extensions; do
14949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14950 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14951 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14960 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14961 if test -n "$DSYMUTIL_FOR_TARGET"; then
14962 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14963 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14966 $as_echo "no
" >&6; }
14971 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14975 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14977 if test $build = $target ; then
14978 DSYMUTIL_FOR_TARGET="$2"
14980 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14983 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14987 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14993 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14994 if test -n "$with_build_time_tools"; then
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
14996 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
14997 if test -x $with_build_time_tools/ld; then
14998 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14999 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15000 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
15001 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15004 $as_echo "no
" >&6; }
15006 elif test $build != $host && test $have_gcc_for_target = yes; then
15007 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
15008 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
15009 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
15012 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15013 # Extract the first word of "ld
", so it can be a program name with args.
15014 set dummy ld; ac_word=$2
15015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15016 $as_echo_n "checking
for $ac_word...
" >&6; }
15017 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
15018 $as_echo_n "(cached
) " >&6
15020 case $LD_FOR_TARGET in
15022 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
15025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15026 for as_dir in $gcc_cv_tool_dirs
15029 test -z "$as_dir" && as_dir=.
15030 for ac_exec_ext in '' $ac_executable_extensions; do
15031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15032 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15033 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15043 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15044 if test -n "$LD_FOR_TARGET"; then
15045 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15046 $as_echo "$LD_FOR_TARGET" >&6; }
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15049 $as_echo "no
" >&6; }
15054 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
15057 if test -n "$LD_FOR_TARGET"; then
15058 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
15059 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15060 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15063 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
15064 for ncn_progname in ld; do
15065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15066 set dummy ${ncn_progname}; ac_word=$2
15067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15068 $as_echo_n "checking
for $ac_word...
" >&6; }
15069 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15070 $as_echo_n "(cached
) " >&6
15072 if test -n "$LD_FOR_TARGET"; then
15073 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15076 for as_dir in $PATH
15079 test -z "$as_dir" && as_dir=.
15080 for ac_exec_ext in '' $ac_executable_extensions; do
15081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15082 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15083 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15092 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15093 if test -n "$LD_FOR_TARGET"; then
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15095 $as_echo "$LD_FOR_TARGET" >&6; }
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15098 $as_echo "no
" >&6; }
15105 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
15106 for ncn_progname in ld; do
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15108 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15109 if test -x $with_build_time_tools/${ncn_progname}; then
15110 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15112 $as_echo "yes" >&6; }
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15116 $as_echo "no
" >&6; }
15121 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
15122 for ncn_progname in ld; do
15123 if test -n "$ncn_target_tool_prefix"; then
15124 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15125 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15127 $as_echo_n "checking
for $ac_word...
" >&6; }
15128 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15129 $as_echo_n "(cached
) " >&6
15131 if test -n "$LD_FOR_TARGET"; then
15132 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15135 for as_dir in $PATH
15138 test -z "$as_dir" && as_dir=.
15139 for ac_exec_ext in '' $ac_executable_extensions; do
15140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15141 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15142 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15151 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15152 if test -n "$LD_FOR_TARGET"; then
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15154 $as_echo "$LD_FOR_TARGET" >&6; }
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15157 $as_echo "no
" >&6; }
15162 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
15163 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15164 set dummy ${ncn_progname}; ac_word=$2
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15166 $as_echo_n "checking
for $ac_word...
" >&6; }
15167 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
15168 $as_echo_n "(cached
) " >&6
15170 if test -n "$LD_FOR_TARGET"; then
15171 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
15173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15174 for as_dir in $PATH
15177 test -z "$as_dir" && as_dir=.
15178 for ac_exec_ext in '' $ac_executable_extensions; do
15179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15180 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
15181 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15190 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
15191 if test -n "$LD_FOR_TARGET"; then
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
15193 $as_echo "$LD_FOR_TARGET" >&6; }
15195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15196 $as_echo "no
" >&6; }
15201 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
15205 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
15207 if test $build = $target ; then
15210 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
15213 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
15217 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
15223 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15224 if test -n "$with_build_time_tools"; then
15225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
15226 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
15227 if test -x $with_build_time_tools/lipo; then
15228 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
15229 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15230 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
15231 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
15233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15234 $as_echo "no
" >&6; }
15236 elif test $build != $host && test $have_gcc_for_target = yes; then
15237 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
15238 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
15239 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15242 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15243 # Extract the first word of "lipo
", so it can be a program name with args.
15244 set dummy lipo; ac_word=$2
15245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15246 $as_echo_n "checking
for $ac_word...
" >&6; }
15247 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
15248 $as_echo_n "(cached
) " >&6
15250 case $LIPO_FOR_TARGET in
15252 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
15255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15256 for as_dir in $gcc_cv_tool_dirs
15259 test -z "$as_dir" && as_dir=.
15260 for ac_exec_ext in '' $ac_executable_extensions; do
15261 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15262 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15263 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15273 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15274 if test -n "$LIPO_FOR_TARGET"; then
15275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15276 $as_echo "$LIPO_FOR_TARGET" >&6; }
15278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15279 $as_echo "no
" >&6; }
15284 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
15287 if test -n "$LIPO_FOR_TARGET"; then
15288 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
15289 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15290 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15293 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15294 for ncn_progname in lipo; do
15295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15296 set dummy ${ncn_progname}; ac_word=$2
15297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15298 $as_echo_n "checking
for $ac_word...
" >&6; }
15299 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15300 $as_echo_n "(cached
) " >&6
15302 if test -n "$LIPO_FOR_TARGET"; then
15303 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15306 for as_dir in $PATH
15309 test -z "$as_dir" && as_dir=.
15310 for ac_exec_ext in '' $ac_executable_extensions; do
15311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15312 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15313 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15322 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15323 if test -n "$LIPO_FOR_TARGET"; then
15324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15325 $as_echo "$LIPO_FOR_TARGET" >&6; }
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15328 $as_echo "no
" >&6; }
15335 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15336 for ncn_progname in lipo; do
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15338 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15339 if test -x $with_build_time_tools/${ncn_progname}; then
15340 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15341 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15342 $as_echo "yes" >&6; }
15345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15346 $as_echo "no
" >&6; }
15351 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15352 for ncn_progname in lipo; do
15353 if test -n "$ncn_target_tool_prefix"; then
15354 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15355 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15357 $as_echo_n "checking
for $ac_word...
" >&6; }
15358 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15359 $as_echo_n "(cached
) " >&6
15361 if test -n "$LIPO_FOR_TARGET"; then
15362 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15365 for as_dir in $PATH
15368 test -z "$as_dir" && as_dir=.
15369 for ac_exec_ext in '' $ac_executable_extensions; do
15370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15371 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15372 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15381 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15382 if test -n "$LIPO_FOR_TARGET"; then
15383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15384 $as_echo "$LIPO_FOR_TARGET" >&6; }
15386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15387 $as_echo "no
" >&6; }
15392 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15393 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15394 set dummy ${ncn_progname}; ac_word=$2
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15396 $as_echo_n "checking
for $ac_word...
" >&6; }
15397 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15398 $as_echo_n "(cached
) " >&6
15400 if test -n "$LIPO_FOR_TARGET"; then
15401 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15403 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15404 for as_dir in $PATH
15407 test -z "$as_dir" && as_dir=.
15408 for ac_exec_ext in '' $ac_executable_extensions; do
15409 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15410 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15411 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15420 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15421 if test -n "$LIPO_FOR_TARGET"; then
15422 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
15423 $as_echo "$LIPO_FOR_TARGET" >&6; }
15425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15426 $as_echo "no
" >&6; }
15431 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15435 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15437 if test $build = $target ; then
15438 LIPO_FOR_TARGET="$2"
15440 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15443 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15447 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15453 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15454 if test -n "$with_build_time_tools"; then
15455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
15456 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
15457 if test -x $with_build_time_tools/nm; then
15458 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15459 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
15461 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15463 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15464 $as_echo "no
" >&6; }
15466 elif test $build != $host && test $have_gcc_for_target = yes; then
15467 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15468 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15469 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15472 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15473 # Extract the first word of "nm
", so it can be a program name with args.
15474 set dummy nm; ac_word=$2
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15476 $as_echo_n "checking
for $ac_word...
" >&6; }
15477 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15478 $as_echo_n "(cached
) " >&6
15480 case $NM_FOR_TARGET in
15482 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15486 for as_dir in $gcc_cv_tool_dirs
15489 test -z "$as_dir" && as_dir=.
15490 for ac_exec_ext in '' $ac_executable_extensions; do
15491 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15492 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15493 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15503 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15504 if test -n "$NM_FOR_TARGET"; then
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15506 $as_echo "$NM_FOR_TARGET" >&6; }
15508 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15509 $as_echo "no
" >&6; }
15514 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15517 if test -n "$NM_FOR_TARGET"; then
15518 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15519 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15520 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15523 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15524 for ncn_progname in nm; do
15525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15526 set dummy ${ncn_progname}; ac_word=$2
15527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15528 $as_echo_n "checking
for $ac_word...
" >&6; }
15529 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15530 $as_echo_n "(cached
) " >&6
15532 if test -n "$NM_FOR_TARGET"; then
15533 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15536 for as_dir in $PATH
15539 test -z "$as_dir" && as_dir=.
15540 for ac_exec_ext in '' $ac_executable_extensions; do
15541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15542 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15543 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15552 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15553 if test -n "$NM_FOR_TARGET"; then
15554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15555 $as_echo "$NM_FOR_TARGET" >&6; }
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15558 $as_echo "no
" >&6; }
15565 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15566 for ncn_progname in nm; do
15567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15568 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15569 if test -x $with_build_time_tools/${ncn_progname}; then
15570 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15572 $as_echo "yes" >&6; }
15575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15576 $as_echo "no
" >&6; }
15581 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15582 for ncn_progname in nm; do
15583 if test -n "$ncn_target_tool_prefix"; then
15584 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15585 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15587 $as_echo_n "checking
for $ac_word...
" >&6; }
15588 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15589 $as_echo_n "(cached
) " >&6
15591 if test -n "$NM_FOR_TARGET"; then
15592 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15595 for as_dir in $PATH
15598 test -z "$as_dir" && as_dir=.
15599 for ac_exec_ext in '' $ac_executable_extensions; do
15600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15601 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15602 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15611 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15612 if test -n "$NM_FOR_TARGET"; then
15613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15614 $as_echo "$NM_FOR_TARGET" >&6; }
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15617 $as_echo "no
" >&6; }
15622 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15623 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15624 set dummy ${ncn_progname}; ac_word=$2
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15626 $as_echo_n "checking
for $ac_word...
" >&6; }
15627 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15628 $as_echo_n "(cached
) " >&6
15630 if test -n "$NM_FOR_TARGET"; then
15631 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15634 for as_dir in $PATH
15637 test -z "$as_dir" && as_dir=.
15638 for ac_exec_ext in '' $ac_executable_extensions; do
15639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15640 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15641 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15650 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15651 if test -n "$NM_FOR_TARGET"; then
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15653 $as_echo "$NM_FOR_TARGET" >&6; }
15655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15656 $as_echo "no
" >&6; }
15661 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15665 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15667 if test $build = $target ; then
15670 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15673 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15677 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15683 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15684 if test -n "$with_build_time_tools"; then
15685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15686 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15687 if test -x $with_build_time_tools/objcopy; then
15688 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15689 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15691 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15694 $as_echo "no
" >&6; }
15696 elif test $build != $host && test $have_gcc_for_target = yes; then
15697 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15698 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15699 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15702 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15703 # Extract the first word of "objcopy
", so it can be a program name with args.
15704 set dummy objcopy; ac_word=$2
15705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15706 $as_echo_n "checking
for $ac_word...
" >&6; }
15707 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15708 $as_echo_n "(cached
) " >&6
15710 case $OBJCOPY_FOR_TARGET in
15712 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15716 for as_dir in $gcc_cv_tool_dirs
15719 test -z "$as_dir" && as_dir=.
15720 for ac_exec_ext in '' $ac_executable_extensions; do
15721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15722 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15723 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15733 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15734 if test -n "$OBJCOPY_FOR_TARGET"; then
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15736 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15738 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15739 $as_echo "no
" >&6; }
15744 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15747 if test -n "$OBJCOPY_FOR_TARGET"; then
15748 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15749 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15750 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15753 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15754 for ncn_progname in objcopy; do
15755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15756 set dummy ${ncn_progname}; ac_word=$2
15757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15758 $as_echo_n "checking
for $ac_word...
" >&6; }
15759 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15760 $as_echo_n "(cached
) " >&6
15762 if test -n "$OBJCOPY_FOR_TARGET"; then
15763 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15766 for as_dir in $PATH
15769 test -z "$as_dir" && as_dir=.
15770 for ac_exec_ext in '' $ac_executable_extensions; do
15771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15772 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15773 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15782 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15783 if test -n "$OBJCOPY_FOR_TARGET"; then
15784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15785 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15788 $as_echo "no
" >&6; }
15795 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15796 for ncn_progname in objcopy; do
15797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15798 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15799 if test -x $with_build_time_tools/${ncn_progname}; then
15800 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15801 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15802 $as_echo "yes" >&6; }
15805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15806 $as_echo "no
" >&6; }
15811 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15812 for ncn_progname in objcopy; do
15813 if test -n "$ncn_target_tool_prefix"; then
15814 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15815 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15817 $as_echo_n "checking
for $ac_word...
" >&6; }
15818 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15819 $as_echo_n "(cached
) " >&6
15821 if test -n "$OBJCOPY_FOR_TARGET"; then
15822 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15825 for as_dir in $PATH
15828 test -z "$as_dir" && as_dir=.
15829 for ac_exec_ext in '' $ac_executable_extensions; do
15830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15831 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15832 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15841 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15842 if test -n "$OBJCOPY_FOR_TARGET"; then
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15844 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15847 $as_echo "no
" >&6; }
15852 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15853 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15854 set dummy ${ncn_progname}; ac_word=$2
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15856 $as_echo_n "checking
for $ac_word...
" >&6; }
15857 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15858 $as_echo_n "(cached
) " >&6
15860 if test -n "$OBJCOPY_FOR_TARGET"; then
15861 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15864 for as_dir in $PATH
15867 test -z "$as_dir" && as_dir=.
15868 for ac_exec_ext in '' $ac_executable_extensions; do
15869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15870 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15871 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15880 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15881 if test -n "$OBJCOPY_FOR_TARGET"; then
15882 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15883 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15886 $as_echo "no
" >&6; }
15891 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15895 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15897 if test $build = $target ; then
15898 OBJCOPY_FOR_TARGET="$2"
15900 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15903 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15907 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15913 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15914 if test -n "$with_build_time_tools"; then
15915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
15916 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
15917 if test -x $with_build_time_tools/objdump; then
15918 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15919 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15920 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15921 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15923 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15924 $as_echo "no
" >&6; }
15926 elif test $build != $host && test $have_gcc_for_target = yes; then
15927 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15928 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15929 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15932 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15933 # Extract the first word of "objdump
", so it can be a program name with args.
15934 set dummy objdump; ac_word=$2
15935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15936 $as_echo_n "checking
for $ac_word...
" >&6; }
15937 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15938 $as_echo_n "(cached
) " >&6
15940 case $OBJDUMP_FOR_TARGET in
15942 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15946 for as_dir in $gcc_cv_tool_dirs
15949 test -z "$as_dir" && as_dir=.
15950 for ac_exec_ext in '' $ac_executable_extensions; do
15951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15952 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15953 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15963 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15964 if test -n "$OBJDUMP_FOR_TARGET"; then
15965 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15966 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15968 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15969 $as_echo "no
" >&6; }
15974 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15977 if test -n "$OBJDUMP_FOR_TARGET"; then
15978 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15979 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15980 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15983 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15984 for ncn_progname in objdump; do
15985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15986 set dummy ${ncn_progname}; ac_word=$2
15987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15988 $as_echo_n "checking
for $ac_word...
" >&6; }
15989 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15990 $as_echo_n "(cached
) " >&6
15992 if test -n "$OBJDUMP_FOR_TARGET"; then
15993 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15996 for as_dir in $PATH
15999 test -z "$as_dir" && as_dir=.
16000 for ac_exec_ext in '' $ac_executable_extensions; do
16001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16002 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16003 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16012 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16013 if test -n "$OBJDUMP_FOR_TARGET"; then
16014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16015 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16018 $as_echo "no
" >&6; }
16025 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16026 for ncn_progname in objdump; do
16027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16028 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16029 if test -x $with_build_time_tools/${ncn_progname}; then
16030 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16032 $as_echo "yes" >&6; }
16035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16036 $as_echo "no
" >&6; }
16041 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
16042 for ncn_progname in objdump; do
16043 if test -n "$ncn_target_tool_prefix"; then
16044 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16045 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16047 $as_echo_n "checking
for $ac_word...
" >&6; }
16048 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16049 $as_echo_n "(cached
) " >&6
16051 if test -n "$OBJDUMP_FOR_TARGET"; then
16052 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16055 for as_dir in $PATH
16058 test -z "$as_dir" && as_dir=.
16059 for ac_exec_ext in '' $ac_executable_extensions; do
16060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16061 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16062 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16071 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16072 if test -n "$OBJDUMP_FOR_TARGET"; then
16073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16074 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16077 $as_echo "no
" >&6; }
16082 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
16083 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16084 set dummy ${ncn_progname}; ac_word=$2
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16086 $as_echo_n "checking
for $ac_word...
" >&6; }
16087 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
16088 $as_echo_n "(cached
) " >&6
16090 if test -n "$OBJDUMP_FOR_TARGET"; then
16091 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
16093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16094 for as_dir in $PATH
16097 test -z "$as_dir" && as_dir=.
16098 for ac_exec_ext in '' $ac_executable_extensions; do
16099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16100 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
16101 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16110 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
16111 if test -n "$OBJDUMP_FOR_TARGET"; then
16112 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
16113 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
16115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16116 $as_echo "no
" >&6; }
16121 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
16125 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
16127 if test $build = $target ; then
16128 OBJDUMP_FOR_TARGET="$2"
16130 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16133 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
16137 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
16143 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16144 if test -n "$with_build_time_tools"; then
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
16146 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
16147 if test -x $with_build_time_tools/otool; then
16148 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
16149 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
16151 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
16153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16154 $as_echo "no
" >&6; }
16156 elif test $build != $host && test $have_gcc_for_target = yes; then
16157 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
16158 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
16159 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16162 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16163 # Extract the first word of "otool
", so it can be a program name with args.
16164 set dummy otool; ac_word=$2
16165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16166 $as_echo_n "checking
for $ac_word...
" >&6; }
16167 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
16168 $as_echo_n "(cached
) " >&6
16170 case $OTOOL_FOR_TARGET in
16172 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
16175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16176 for as_dir in $gcc_cv_tool_dirs
16179 test -z "$as_dir" && as_dir=.
16180 for ac_exec_ext in '' $ac_executable_extensions; do
16181 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16182 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16183 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16193 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16194 if test -n "$OTOOL_FOR_TARGET"; then
16195 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16196 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16199 $as_echo "no
" >&6; }
16204 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
16207 if test -n "$OTOOL_FOR_TARGET"; then
16208 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
16209 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16210 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16213 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16214 for ncn_progname in otool; do
16215 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16216 set dummy ${ncn_progname}; ac_word=$2
16217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16218 $as_echo_n "checking
for $ac_word...
" >&6; }
16219 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16220 $as_echo_n "(cached
) " >&6
16222 if test -n "$OTOOL_FOR_TARGET"; then
16223 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16226 for as_dir in $PATH
16229 test -z "$as_dir" && as_dir=.
16230 for ac_exec_ext in '' $ac_executable_extensions; do
16231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16232 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16233 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16242 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16243 if test -n "$OTOOL_FOR_TARGET"; then
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16245 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16248 $as_echo "no
" >&6; }
16255 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
16256 for ncn_progname in otool; do
16257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16258 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16259 if test -x $with_build_time_tools/${ncn_progname}; then
16260 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16261 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16262 $as_echo "yes" >&6; }
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16266 $as_echo "no
" >&6; }
16271 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
16272 for ncn_progname in otool; do
16273 if test -n "$ncn_target_tool_prefix"; then
16274 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16275 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16277 $as_echo_n "checking
for $ac_word...
" >&6; }
16278 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16279 $as_echo_n "(cached
) " >&6
16281 if test -n "$OTOOL_FOR_TARGET"; then
16282 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16285 for as_dir in $PATH
16288 test -z "$as_dir" && as_dir=.
16289 for ac_exec_ext in '' $ac_executable_extensions; do
16290 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16291 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16292 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16301 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16302 if test -n "$OTOOL_FOR_TARGET"; then
16303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16304 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16307 $as_echo "no
" >&6; }
16312 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16313 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16314 set dummy ${ncn_progname}; ac_word=$2
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16316 $as_echo_n "checking
for $ac_word...
" >&6; }
16317 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16318 $as_echo_n "(cached
) " >&6
16320 if test -n "$OTOOL_FOR_TARGET"; then
16321 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16324 for as_dir in $PATH
16327 test -z "$as_dir" && as_dir=.
16328 for ac_exec_ext in '' $ac_executable_extensions; do
16329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16330 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16331 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16340 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16341 if test -n "$OTOOL_FOR_TARGET"; then
16342 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
16343 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16346 $as_echo "no
" >&6; }
16351 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16355 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16357 if test $build = $target ; then
16358 OTOOL_FOR_TARGET="$2"
16360 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16363 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16367 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16373 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16374 if test -n "$with_build_time_tools"; then
16375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
16376 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
16377 if test -x $with_build_time_tools/ranlib; then
16378 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16379 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16381 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16384 $as_echo "no
" >&6; }
16386 elif test $build != $host && test $have_gcc_for_target = yes; then
16387 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16388 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16389 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16392 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16393 # Extract the first word of "ranlib
", so it can be a program name with args.
16394 set dummy ranlib; ac_word=$2
16395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16396 $as_echo_n "checking
for $ac_word...
" >&6; }
16397 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16398 $as_echo_n "(cached
) " >&6
16400 case $RANLIB_FOR_TARGET in
16402 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16406 for as_dir in $gcc_cv_tool_dirs
16409 test -z "$as_dir" && as_dir=.
16410 for ac_exec_ext in '' $ac_executable_extensions; do
16411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16412 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16413 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16423 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16424 if test -n "$RANLIB_FOR_TARGET"; then
16425 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16426 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16428 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16429 $as_echo "no
" >&6; }
16434 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16437 if test -n "$RANLIB_FOR_TARGET"; then
16438 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16439 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16440 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16443 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16444 for ncn_progname in ranlib; do
16445 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16446 set dummy ${ncn_progname}; ac_word=$2
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16448 $as_echo_n "checking
for $ac_word...
" >&6; }
16449 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16450 $as_echo_n "(cached
) " >&6
16452 if test -n "$RANLIB_FOR_TARGET"; then
16453 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16456 for as_dir in $PATH
16459 test -z "$as_dir" && as_dir=.
16460 for ac_exec_ext in '' $ac_executable_extensions; do
16461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16462 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16463 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16472 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16473 if test -n "$RANLIB_FOR_TARGET"; then
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16475 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16478 $as_echo "no
" >&6; }
16485 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16486 for ncn_progname in ranlib; do
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16488 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16489 if test -x $with_build_time_tools/${ncn_progname}; then
16490 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16491 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16492 $as_echo "yes" >&6; }
16495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16496 $as_echo "no
" >&6; }
16501 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16502 for ncn_progname in ranlib; do
16503 if test -n "$ncn_target_tool_prefix"; then
16504 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16505 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16507 $as_echo_n "checking
for $ac_word...
" >&6; }
16508 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16509 $as_echo_n "(cached
) " >&6
16511 if test -n "$RANLIB_FOR_TARGET"; then
16512 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16515 for as_dir in $PATH
16518 test -z "$as_dir" && as_dir=.
16519 for ac_exec_ext in '' $ac_executable_extensions; do
16520 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16521 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16522 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16531 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16532 if test -n "$RANLIB_FOR_TARGET"; then
16533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16534 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16537 $as_echo "no
" >&6; }
16542 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16543 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16544 set dummy ${ncn_progname}; ac_word=$2
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16546 $as_echo_n "checking
for $ac_word...
" >&6; }
16547 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16548 $as_echo_n "(cached
) " >&6
16550 if test -n "$RANLIB_FOR_TARGET"; then
16551 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16553 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16554 for as_dir in $PATH
16557 test -z "$as_dir" && as_dir=.
16558 for ac_exec_ext in '' $ac_executable_extensions; do
16559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16560 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16561 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16570 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16571 if test -n "$RANLIB_FOR_TARGET"; then
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16573 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16576 $as_echo "no
" >&6; }
16581 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16585 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16587 if test $build = $target ; then
16588 RANLIB_FOR_TARGET="$2"
16590 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16593 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16597 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16603 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16604 if test -n "$with_build_time_tools"; then
16605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16606 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16607 if test -x $with_build_time_tools/readelf; then
16608 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16609 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16610 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16611 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16614 $as_echo "no
" >&6; }
16616 elif test $build != $host && test $have_gcc_for_target = yes; then
16617 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16618 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16619 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16622 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16623 # Extract the first word of "readelf
", so it can be a program name with args.
16624 set dummy readelf; ac_word=$2
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16626 $as_echo_n "checking
for $ac_word...
" >&6; }
16627 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16628 $as_echo_n "(cached
) " >&6
16630 case $READELF_FOR_TARGET in
16632 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16636 for as_dir in $gcc_cv_tool_dirs
16639 test -z "$as_dir" && as_dir=.
16640 for ac_exec_ext in '' $ac_executable_extensions; do
16641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16642 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16643 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16653 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16654 if test -n "$READELF_FOR_TARGET"; then
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16656 $as_echo "$READELF_FOR_TARGET" >&6; }
16658 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16659 $as_echo "no
" >&6; }
16664 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16667 if test -n "$READELF_FOR_TARGET"; then
16668 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16669 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16670 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16673 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16674 for ncn_progname in readelf; do
16675 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16676 set dummy ${ncn_progname}; ac_word=$2
16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16678 $as_echo_n "checking
for $ac_word...
" >&6; }
16679 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16680 $as_echo_n "(cached
) " >&6
16682 if test -n "$READELF_FOR_TARGET"; then
16683 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16686 for as_dir in $PATH
16689 test -z "$as_dir" && as_dir=.
16690 for ac_exec_ext in '' $ac_executable_extensions; do
16691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16692 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16693 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16702 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16703 if test -n "$READELF_FOR_TARGET"; then
16704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16705 $as_echo "$READELF_FOR_TARGET" >&6; }
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16708 $as_echo "no
" >&6; }
16715 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16716 for ncn_progname in readelf; do
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16718 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16719 if test -x $with_build_time_tools/${ncn_progname}; then
16720 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16721 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16722 $as_echo "yes" >&6; }
16725 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16726 $as_echo "no
" >&6; }
16731 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16732 for ncn_progname in readelf; do
16733 if test -n "$ncn_target_tool_prefix"; then
16734 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16735 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16737 $as_echo_n "checking
for $ac_word...
" >&6; }
16738 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16739 $as_echo_n "(cached
) " >&6
16741 if test -n "$READELF_FOR_TARGET"; then
16742 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16745 for as_dir in $PATH
16748 test -z "$as_dir" && as_dir=.
16749 for ac_exec_ext in '' $ac_executable_extensions; do
16750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16751 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16752 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16761 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16762 if test -n "$READELF_FOR_TARGET"; then
16763 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16764 $as_echo "$READELF_FOR_TARGET" >&6; }
16766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16767 $as_echo "no
" >&6; }
16772 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16773 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16774 set dummy ${ncn_progname}; ac_word=$2
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16776 $as_echo_n "checking
for $ac_word...
" >&6; }
16777 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16778 $as_echo_n "(cached
) " >&6
16780 if test -n "$READELF_FOR_TARGET"; then
16781 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16784 for as_dir in $PATH
16787 test -z "$as_dir" && as_dir=.
16788 for ac_exec_ext in '' $ac_executable_extensions; do
16789 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16790 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16791 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16800 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16801 if test -n "$READELF_FOR_TARGET"; then
16802 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16803 $as_echo "$READELF_FOR_TARGET" >&6; }
16805 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16806 $as_echo "no
" >&6; }
16811 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16815 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16817 if test $build = $target ; then
16818 READELF_FOR_TARGET="$2"
16820 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16823 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16827 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16833 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16834 if test -n "$with_build_time_tools"; then
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
16836 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
16837 if test -x $with_build_time_tools/strip; then
16838 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16839 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
16841 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16844 $as_echo "no
" >&6; }
16846 elif test $build != $host && test $have_gcc_for_target = yes; then
16847 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16848 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16849 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16852 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16853 # Extract the first word of "strip
", so it can be a program name with args.
16854 set dummy strip; ac_word=$2
16855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16856 $as_echo_n "checking
for $ac_word...
" >&6; }
16857 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16858 $as_echo_n "(cached
) " >&6
16860 case $STRIP_FOR_TARGET in
16862 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16866 for as_dir in $gcc_cv_tool_dirs
16869 test -z "$as_dir" && as_dir=.
16870 for ac_exec_ext in '' $ac_executable_extensions; do
16871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16872 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16873 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16883 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16884 if test -n "$STRIP_FOR_TARGET"; then
16885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16886 $as_echo "$STRIP_FOR_TARGET" >&6; }
16888 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16889 $as_echo "no
" >&6; }
16894 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16897 if test -n "$STRIP_FOR_TARGET"; then
16898 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16899 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16900 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16903 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16904 for ncn_progname in strip; do
16905 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16906 set dummy ${ncn_progname}; ac_word=$2
16907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16908 $as_echo_n "checking
for $ac_word...
" >&6; }
16909 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16910 $as_echo_n "(cached
) " >&6
16912 if test -n "$STRIP_FOR_TARGET"; then
16913 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16916 for as_dir in $PATH
16919 test -z "$as_dir" && as_dir=.
16920 for ac_exec_ext in '' $ac_executable_extensions; do
16921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16922 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16923 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16932 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16933 if test -n "$STRIP_FOR_TARGET"; then
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16935 $as_echo "$STRIP_FOR_TARGET" >&6; }
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16938 $as_echo "no
" >&6; }
16945 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16946 for ncn_progname in strip; do
16947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16948 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16949 if test -x $with_build_time_tools/${ncn_progname}; then
16950 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16952 $as_echo "yes" >&6; }
16955 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16956 $as_echo "no
" >&6; }
16961 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16962 for ncn_progname in strip; do
16963 if test -n "$ncn_target_tool_prefix"; then
16964 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16965 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16967 $as_echo_n "checking
for $ac_word...
" >&6; }
16968 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16969 $as_echo_n "(cached
) " >&6
16971 if test -n "$STRIP_FOR_TARGET"; then
16972 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16975 for as_dir in $PATH
16978 test -z "$as_dir" && as_dir=.
16979 for ac_exec_ext in '' $ac_executable_extensions; do
16980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16981 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16982 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16991 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16992 if test -n "$STRIP_FOR_TARGET"; then
16993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16994 $as_echo "$STRIP_FOR_TARGET" >&6; }
16996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16997 $as_echo "no
" >&6; }
17002 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
17003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17004 set dummy ${ncn_progname}; ac_word=$2
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17006 $as_echo_n "checking
for $ac_word...
" >&6; }
17007 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
17008 $as_echo_n "(cached
) " >&6
17010 if test -n "$STRIP_FOR_TARGET"; then
17011 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
17013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17014 for as_dir in $PATH
17017 test -z "$as_dir" && as_dir=.
17018 for ac_exec_ext in '' $ac_executable_extensions; do
17019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17020 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
17021 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17030 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
17031 if test -n "$STRIP_FOR_TARGET"; then
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
17033 $as_echo "$STRIP_FOR_TARGET" >&6; }
17035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17036 $as_echo "no
" >&6; }
17041 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
17045 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
17047 if test $build = $target ; then
17048 STRIP_FOR_TARGET="$2"
17050 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
17053 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
17057 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
17063 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17064 if test -n "$with_build_time_tools"; then
17065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
17066 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
17067 if test -x $with_build_time_tools/windres; then
17068 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
17069 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17070 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
17071 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17074 $as_echo "no
" >&6; }
17076 elif test $build != $host && test $have_gcc_for_target = yes; then
17077 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
17078 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
17079 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17082 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17083 # Extract the first word of "windres
", so it can be a program name with args.
17084 set dummy windres; ac_word=$2
17085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17086 $as_echo_n "checking
for $ac_word...
" >&6; }
17087 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
17088 $as_echo_n "(cached
) " >&6
17090 case $WINDRES_FOR_TARGET in
17092 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
17095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17096 for as_dir in $gcc_cv_tool_dirs
17099 test -z "$as_dir" && as_dir=.
17100 for ac_exec_ext in '' $ac_executable_extensions; do
17101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17102 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17103 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17113 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17114 if test -n "$WINDRES_FOR_TARGET"; then
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17116 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17119 $as_echo "no
" >&6; }
17124 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
17127 if test -n "$WINDRES_FOR_TARGET"; then
17128 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
17129 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17130 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17133 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17134 for ncn_progname in windres; do
17135 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17136 set dummy ${ncn_progname}; ac_word=$2
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17138 $as_echo_n "checking
for $ac_word...
" >&6; }
17139 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17140 $as_echo_n "(cached
) " >&6
17142 if test -n "$WINDRES_FOR_TARGET"; then
17143 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17146 for as_dir in $PATH
17149 test -z "$as_dir" && as_dir=.
17150 for ac_exec_ext in '' $ac_executable_extensions; do
17151 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17152 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17153 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17162 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17163 if test -n "$WINDRES_FOR_TARGET"; then
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17165 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17168 $as_echo "no
" >&6; }
17175 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
17176 for ncn_progname in windres; do
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17178 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17179 if test -x $with_build_time_tools/${ncn_progname}; then
17180 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17182 $as_echo "yes" >&6; }
17185 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17186 $as_echo "no
" >&6; }
17191 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
17192 for ncn_progname in windres; do
17193 if test -n "$ncn_target_tool_prefix"; then
17194 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17195 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17197 $as_echo_n "checking
for $ac_word...
" >&6; }
17198 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17199 $as_echo_n "(cached
) " >&6
17201 if test -n "$WINDRES_FOR_TARGET"; then
17202 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17205 for as_dir in $PATH
17208 test -z "$as_dir" && as_dir=.
17209 for ac_exec_ext in '' $ac_executable_extensions; do
17210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17211 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17212 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17221 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17222 if test -n "$WINDRES_FOR_TARGET"; then
17223 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17224 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17227 $as_echo "no
" >&6; }
17232 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
17233 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17234 set dummy ${ncn_progname}; ac_word=$2
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17236 $as_echo_n "checking
for $ac_word...
" >&6; }
17237 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
17238 $as_echo_n "(cached
) " >&6
17240 if test -n "$WINDRES_FOR_TARGET"; then
17241 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
17243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17244 for as_dir in $PATH
17247 test -z "$as_dir" && as_dir=.
17248 for ac_exec_ext in '' $ac_executable_extensions; do
17249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17250 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
17251 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17260 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
17261 if test -n "$WINDRES_FOR_TARGET"; then
17262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
17263 $as_echo "$WINDRES_FOR_TARGET" >&6; }
17265 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17266 $as_echo "no
" >&6; }
17271 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
17275 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
17277 if test $build = $target ; then
17278 WINDRES_FOR_TARGET="$2"
17280 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
17283 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
17287 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17293 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17294 if test -n "$with_build_time_tools"; then
17295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
17296 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
17297 if test -x $with_build_time_tools/windmc; then
17298 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17299 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17300 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17301 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17304 $as_echo "no
" >&6; }
17306 elif test $build != $host && test $have_gcc_for_target = yes; then
17307 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17308 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17309 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17312 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17313 # Extract the first word of "windmc
", so it can be a program name with args.
17314 set dummy windmc; ac_word=$2
17315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17316 $as_echo_n "checking
for $ac_word...
" >&6; }
17317 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17318 $as_echo_n "(cached
) " >&6
17320 case $WINDMC_FOR_TARGET in
17322 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17326 for as_dir in $gcc_cv_tool_dirs
17329 test -z "$as_dir" && as_dir=.
17330 for ac_exec_ext in '' $ac_executable_extensions; do
17331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17332 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17333 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17343 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17344 if test -n "$WINDMC_FOR_TARGET"; then
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17346 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17348 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17349 $as_echo "no
" >&6; }
17354 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17357 if test -n "$WINDMC_FOR_TARGET"; then
17358 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17359 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17360 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17363 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17364 for ncn_progname in windmc; do
17365 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17366 set dummy ${ncn_progname}; ac_word=$2
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17368 $as_echo_n "checking
for $ac_word...
" >&6; }
17369 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17370 $as_echo_n "(cached
) " >&6
17372 if test -n "$WINDMC_FOR_TARGET"; then
17373 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17376 for as_dir in $PATH
17379 test -z "$as_dir" && as_dir=.
17380 for ac_exec_ext in '' $ac_executable_extensions; do
17381 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17382 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17383 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17392 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17393 if test -n "$WINDMC_FOR_TARGET"; then
17394 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17395 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17398 $as_echo "no
" >&6; }
17405 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17406 for ncn_progname in windmc; do
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
17408 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
17409 if test -x $with_build_time_tools/${ncn_progname}; then
17410 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17411 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
17412 $as_echo "yes" >&6; }
17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17416 $as_echo "no
" >&6; }
17421 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17422 for ncn_progname in windmc; do
17423 if test -n "$ncn_target_tool_prefix"; then
17424 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17425 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17427 $as_echo_n "checking
for $ac_word...
" >&6; }
17428 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17429 $as_echo_n "(cached
) " >&6
17431 if test -n "$WINDMC_FOR_TARGET"; then
17432 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17435 for as_dir in $PATH
17438 test -z "$as_dir" && as_dir=.
17439 for ac_exec_ext in '' $ac_executable_extensions; do
17440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17441 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17442 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17451 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17452 if test -n "$WINDMC_FOR_TARGET"; then
17453 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17454 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17457 $as_echo "no
" >&6; }
17462 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17464 set dummy ${ncn_progname}; ac_word=$2
17465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
17466 $as_echo_n "checking
for $ac_word...
" >&6; }
17467 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17468 $as_echo_n "(cached
) " >&6
17470 if test -n "$WINDMC_FOR_TARGET"; then
17471 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17474 for as_dir in $PATH
17477 test -z "$as_dir" && as_dir=.
17478 for ac_exec_ext in '' $ac_executable_extensions; do
17479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17480 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17481 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17490 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17491 if test -n "$WINDMC_FOR_TARGET"; then
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17493 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17496 $as_echo "no
" >&6; }
17501 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17505 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17507 if test $build = $target ; then
17508 WINDMC_FOR_TARGET="$2"
17510 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17513 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17517 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17521 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17524 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17525 if test "x
${build}" != "x
${host}" ; then
17526 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17527 # We already found the complete path
17528 ac_dir=`dirname $AR_FOR_TARGET`
17529 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17530 $as_echo "pre-installed
in $ac_dir" >&6; }
17532 # Canadian cross, just use what we found
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17534 $as_echo "pre-installed
" >&6; }
17538 case " ${configdirs} " in
17543 if test $ok = yes; then
17544 # An in-tree tool is available and we can use it
17545 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17547 $as_echo "just compiled
" >&6; }
17548 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17549 # We already found the complete path
17550 ac_dir=`dirname $AR_FOR_TARGET`
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17552 $as_echo "pre-installed
in $ac_dir" >&6; }
17553 elif test "x
$target" = "x
$host"; then
17554 # We can use an host tool
17555 AR_FOR_TARGET='$(AR)'
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17557 $as_echo "host tool
" >&6; }
17559 # We need a cross tool
17560 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17561 $as_echo "pre-installed
" >&6; }
17565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17566 $as_echo_n "checking where to
find the target as...
" >&6; }
17567 if test "x
${build}" != "x
${host}" ; then
17568 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17569 # We already found the complete path
17570 ac_dir=`dirname $AS_FOR_TARGET`
17571 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17572 $as_echo "pre-installed
in $ac_dir" >&6; }
17574 # Canadian cross, just use what we found
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17576 $as_echo "pre-installed
" >&6; }
17580 case " ${configdirs} " in
17585 if test $ok = yes; then
17586 # An in-tree tool is available and we can use it
17587 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17588 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17589 $as_echo "just compiled
" >&6; }
17590 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17591 # We already found the complete path
17592 ac_dir=`dirname $AS_FOR_TARGET`
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17594 $as_echo "pre-installed
in $ac_dir" >&6; }
17595 elif test "x
$target" = "x
$host"; then
17596 # We can use an host tool
17597 AS_FOR_TARGET='$(AS)'
17598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17599 $as_echo "host tool
" >&6; }
17601 # We need a cross tool
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17603 $as_echo "pre-installed
" >&6; }
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17608 $as_echo_n "checking where to
find the target cc...
" >&6; }
17609 if test "x
${build}" != "x
${host}" ; then
17610 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17611 # We already found the complete path
17612 ac_dir=`dirname $CC_FOR_TARGET`
17613 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17614 $as_echo "pre-installed
in $ac_dir" >&6; }
17616 # Canadian cross, just use what we found
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17618 $as_echo "pre-installed
" >&6; }
17622 case " ${configdirs} " in
17627 if test $ok = yes; then
17628 # An in-tree tool is available and we can use it
17629 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17630 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17631 $as_echo "just compiled
" >&6; }
17632 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17633 # We already found the complete path
17634 ac_dir=`dirname $CC_FOR_TARGET`
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17636 $as_echo "pre-installed
in $ac_dir" >&6; }
17637 elif test "x
$target" = "x
$host"; then
17638 # We can use an host tool
17639 CC_FOR_TARGET='$(CC)'
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17641 $as_echo "host tool
" >&6; }
17643 # We need a cross tool
17644 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17645 $as_echo "pre-installed
" >&6; }
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17650 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17651 if test "x
${build}" != "x
${host}" ; then
17652 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17653 # We already found the complete path
17654 ac_dir=`dirname $CXX_FOR_TARGET`
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17656 $as_echo "pre-installed
in $ac_dir" >&6; }
17658 # Canadian cross, just use what we found
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17660 $as_echo "pre-installed
" >&6; }
17664 case " ${configdirs} " in
17668 case ,${enable_languages}, in
17672 if test $ok = yes; then
17673 # An in-tree tool is available and we can use it
17674 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'
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17676 $as_echo "just compiled
" >&6; }
17677 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17678 # We already found the complete path
17679 ac_dir=`dirname $CXX_FOR_TARGET`
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17681 $as_echo "pre-installed
in $ac_dir" >&6; }
17682 elif test "x
$target" = "x
$host"; then
17683 # We can use an host tool
17684 CXX_FOR_TARGET='$(CXX)'
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17686 $as_echo "host tool
" >&6; }
17688 # We need a cross tool
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17690 $as_echo "pre-installed
" >&6; }
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
17695 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17696 if test "x
${build}" != "x
${host}" ; then
17697 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17698 # We already found the complete path
17699 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17701 $as_echo "pre-installed
in $ac_dir" >&6; }
17703 # Canadian cross, just use what we found
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17705 $as_echo "pre-installed
" >&6; }
17709 case " ${configdirs} " in
17713 case ,${enable_languages}, in
17717 if test $ok = yes; then
17718 # An in-tree tool is available and we can use it
17719 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'
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17721 $as_echo "just compiled
" >&6; }
17722 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17723 # We already found the complete path
17724 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17726 $as_echo "pre-installed
in $ac_dir" >&6; }
17727 elif test "x
$target" = "x
$host"; then
17728 # We can use an host tool
17729 RAW_CXX_FOR_TARGET='$(CXX)'
17730 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17731 $as_echo "host tool
" >&6; }
17733 # We need a cross tool
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17735 $as_echo "pre-installed
" >&6; }
17739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
17740 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17741 if test "x
${build}" != "x
${host}" ; then
17742 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17743 # We already found the complete path
17744 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17746 $as_echo "pre-installed
in $ac_dir" >&6; }
17748 # Canadian cross, just use what we found
17749 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17750 $as_echo "pre-installed
" >&6; }
17754 case " ${configdirs} " in
17759 if test $ok = yes; then
17760 # An in-tree tool is available and we can use it
17761 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17762 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17763 $as_echo "just compiled
" >&6; }
17764 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17765 # We already found the complete path
17766 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17768 $as_echo "pre-installed
in $ac_dir" >&6; }
17769 elif test "x
$target" = "x
$host"; then
17770 # We can use an host tool
17771 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17773 $as_echo "host tool
" >&6; }
17775 # We need a cross tool
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17777 $as_echo "pre-installed
" >&6; }
17781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
17782 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
17783 if test "x
${build}" != "x
${host}" ; then
17784 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17785 # We already found the complete path
17786 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17788 $as_echo "pre-installed
in $ac_dir" >&6; }
17790 # Canadian cross, just use what we found
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17792 $as_echo "pre-installed
" >&6; }
17795 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17796 # We already found the complete path
17797 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17798 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17799 $as_echo "pre-installed
in $ac_dir" >&6; }
17800 elif test "x
$target" = "x
$host"; then
17801 # We can use an host tool
17802 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17803 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17804 $as_echo "host tool
" >&6; }
17806 # We need a cross tool
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17808 $as_echo "pre-installed
" >&6; }
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
17813 $as_echo_n "checking where to
find the target gcc...
" >&6; }
17814 if test "x
${build}" != "x
${host}" ; then
17815 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17816 # We already found the complete path
17817 ac_dir=`dirname $GCC_FOR_TARGET`
17818 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17819 $as_echo "pre-installed
in $ac_dir" >&6; }
17821 # Canadian cross, just use what we found
17822 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17823 $as_echo "pre-installed
" >&6; }
17827 case " ${configdirs} " in
17832 if test $ok = yes; then
17833 # An in-tree tool is available and we can use it
17834 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17836 $as_echo "just compiled
" >&6; }
17837 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17838 # We already found the complete path
17839 ac_dir=`dirname $GCC_FOR_TARGET`
17840 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17841 $as_echo "pre-installed
in $ac_dir" >&6; }
17842 elif test "x
$target" = "x
$host"; then
17843 # We can use an host tool
17844 GCC_FOR_TARGET='$()'
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17846 $as_echo "host tool
" >&6; }
17848 # We need a cross tool
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17850 $as_echo "pre-installed
" >&6; }
17854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
17855 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
17856 if test "x
${build}" != "x
${host}" ; then
17857 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17858 # We already found the complete path
17859 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17860 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17861 $as_echo "pre-installed
in $ac_dir" >&6; }
17863 # Canadian cross, just use what we found
17864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17865 $as_echo "pre-installed
" >&6; }
17869 case " ${configdirs} " in
17873 case ,${enable_languages}, in
17877 if test $ok = yes; then
17878 # An in-tree tool is available and we can use it
17879 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17881 $as_echo "just compiled
" >&6; }
17882 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17883 # We already found the complete path
17884 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17885 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17886 $as_echo "pre-installed
in $ac_dir" >&6; }
17887 elif test "x
$target" = "x
$host"; then
17888 # We can use an host tool
17889 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17891 $as_echo "host tool
" >&6; }
17893 # We need a cross tool
17894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17895 $as_echo "pre-installed
" >&6; }
17899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
17900 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
17901 if test "x
${build}" != "x
${host}" ; then
17902 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17903 # We already found the complete path
17904 ac_dir=`dirname $GOC_FOR_TARGET`
17905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17906 $as_echo "pre-installed
in $ac_dir" >&6; }
17908 # Canadian cross, just use what we found
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17910 $as_echo "pre-installed
" >&6; }
17914 case " ${configdirs} " in
17918 case ,${enable_languages}, in
17922 if test $ok = yes; then
17923 # An in-tree tool is available and we can use it
17924 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17926 $as_echo "just compiled
" >&6; }
17927 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17928 # We already found the complete path
17929 ac_dir=`dirname $GOC_FOR_TARGET`
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17931 $as_echo "pre-installed
in $ac_dir" >&6; }
17932 elif test "x
$target" = "x
$host"; then
17933 # We can use an host tool
17934 GOC_FOR_TARGET='$(GOC)'
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17936 $as_echo "host tool
" >&6; }
17938 # We need a cross tool
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17940 $as_echo "pre-installed
" >&6; }
17944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
17945 $as_echo_n "checking where to
find the target gdc...
" >&6; }
17946 if test "x
${build}" != "x
${host}" ; then
17947 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17948 # We already found the complete path
17949 ac_dir=`dirname $GDC_FOR_TARGET`
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17951 $as_echo "pre-installed
in $ac_dir" >&6; }
17953 # Canadian cross, just use what we found
17954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17955 $as_echo "pre-installed
" >&6; }
17959 case " ${configdirs} " in
17963 case ,${enable_languages}, in
17967 if test $ok = yes; then
17968 # An in-tree tool is available and we can use it
17969 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17971 $as_echo "just compiled
" >&6; }
17972 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17973 # We already found the complete path
17974 ac_dir=`dirname $GDC_FOR_TARGET`
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17976 $as_echo "pre-installed
in $ac_dir" >&6; }
17977 elif test "x
$target" = "x
$host"; then
17978 # We can use an host tool
17979 GDC_FOR_TARGET='$(GDC)'
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17981 $as_echo "host tool
" >&6; }
17983 # We need a cross tool
17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17985 $as_echo "pre-installed
" >&6; }
17989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
17990 $as_echo_n "checking where to
find the target ld...
" >&6; }
17991 if test "x
${build}" != "x
${host}" ; then
17992 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17993 # We already found the complete path
17994 ac_dir=`dirname $LD_FOR_TARGET`
17995 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17996 $as_echo "pre-installed
in $ac_dir" >&6; }
17998 # Canadian cross, just use what we found
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18000 $as_echo "pre-installed
" >&6; }
18004 case " ${configdirs} " in
18009 if test $ok = yes; then
18010 # An in-tree tool is available and we can use it
18011 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
18012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18013 $as_echo "just compiled
" >&6; }
18014 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
18015 # We already found the complete path
18016 ac_dir=`dirname $LD_FOR_TARGET`
18017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18018 $as_echo "pre-installed
in $ac_dir" >&6; }
18019 elif test "x
$target" = "x
$host"; then
18020 # We can use an host tool
18021 LD_FOR_TARGET='$(LD)'
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18023 $as_echo "host tool
" >&6; }
18025 # We need a cross tool
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18027 $as_echo "pre-installed
" >&6; }
18031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
18032 $as_echo_n "checking where to
find the target lipo...
" >&6; }
18033 if test "x
${build}" != "x
${host}" ; then
18034 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18035 # We already found the complete path
18036 ac_dir=`dirname $LIPO_FOR_TARGET`
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18038 $as_echo "pre-installed
in $ac_dir" >&6; }
18040 # Canadian cross, just use what we found
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18042 $as_echo "pre-installed
" >&6; }
18045 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
18046 # We already found the complete path
18047 ac_dir=`dirname $LIPO_FOR_TARGET`
18048 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18049 $as_echo "pre-installed
in $ac_dir" >&6; }
18050 elif test "x
$target" = "x
$host"; then
18051 # We can use an host tool
18052 LIPO_FOR_TARGET='$(LIPO)'
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18054 $as_echo "host tool
" >&6; }
18056 # We need a cross tool
18057 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18058 $as_echo "pre-installed
" >&6; }
18062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
18063 $as_echo_n "checking where to
find the target nm...
" >&6; }
18064 if test "x
${build}" != "x
${host}" ; then
18065 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18066 # We already found the complete path
18067 ac_dir=`dirname $NM_FOR_TARGET`
18068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18069 $as_echo "pre-installed
in $ac_dir" >&6; }
18071 # Canadian cross, just use what we found
18072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18073 $as_echo "pre-installed
" >&6; }
18077 case " ${configdirs} " in
18082 if test $ok = yes; then
18083 # An in-tree tool is available and we can use it
18084 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18086 $as_echo "just compiled
" >&6; }
18087 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
18088 # We already found the complete path
18089 ac_dir=`dirname $NM_FOR_TARGET`
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18091 $as_echo "pre-installed
in $ac_dir" >&6; }
18092 elif test "x
$target" = "x
$host"; then
18093 # We can use an host tool
18094 NM_FOR_TARGET='$(NM)'
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18096 $as_echo "host tool
" >&6; }
18098 # We need a cross tool
18099 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18100 $as_echo "pre-installed
" >&6; }
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
18105 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
18106 if test "x
${build}" != "x
${host}" ; then
18107 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18108 # We already found the complete path
18109 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18111 $as_echo "pre-installed
in $ac_dir" >&6; }
18113 # Canadian cross, just use what we found
18114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18115 $as_echo "pre-installed
" >&6; }
18119 case " ${configdirs} " in
18124 if test $ok = yes; then
18125 # An in-tree tool is available and we can use it
18126 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
18127 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18128 $as_echo "just compiled
" >&6; }
18129 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
18130 # We already found the complete path
18131 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18133 $as_echo "pre-installed
in $ac_dir" >&6; }
18134 elif test "x
$target" = "x
$host"; then
18135 # We can use an host tool
18136 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18138 $as_echo "host tool
" >&6; }
18140 # We need a cross tool
18141 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18142 $as_echo "pre-installed
" >&6; }
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
18147 $as_echo_n "checking where to
find the target objdump...
" >&6; }
18148 if test "x
${build}" != "x
${host}" ; then
18149 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18150 # We already found the complete path
18151 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18153 $as_echo "pre-installed
in $ac_dir" >&6; }
18155 # Canadian cross, just use what we found
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18157 $as_echo "pre-installed
" >&6; }
18161 case " ${configdirs} " in
18166 if test $ok = yes; then
18167 # An in-tree tool is available and we can use it
18168 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
18169 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18170 $as_echo "just compiled
" >&6; }
18171 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
18172 # We already found the complete path
18173 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
18174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18175 $as_echo "pre-installed
in $ac_dir" >&6; }
18176 elif test "x
$target" = "x
$host"; then
18177 # We can use an host tool
18178 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
18179 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18180 $as_echo "host tool
" >&6; }
18182 # We need a cross tool
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18184 $as_echo "pre-installed
" >&6; }
18188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
18189 $as_echo_n "checking where to
find the target otool...
" >&6; }
18190 if test "x
${build}" != "x
${host}" ; then
18191 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18192 # We already found the complete path
18193 ac_dir=`dirname $OTOOL_FOR_TARGET`
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18195 $as_echo "pre-installed
in $ac_dir" >&6; }
18197 # Canadian cross, just use what we found
18198 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18199 $as_echo "pre-installed
" >&6; }
18202 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
18203 # We already found the complete path
18204 ac_dir=`dirname $OTOOL_FOR_TARGET`
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18206 $as_echo "pre-installed
in $ac_dir" >&6; }
18207 elif test "x
$target" = "x
$host"; then
18208 # We can use an host tool
18209 OTOOL_FOR_TARGET='$(OTOOL)'
18210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18211 $as_echo "host tool
" >&6; }
18213 # We need a cross tool
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18215 $as_echo "pre-installed
" >&6; }
18219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
18220 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
18221 if test "x
${build}" != "x
${host}" ; then
18222 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18223 # We already found the complete path
18224 ac_dir=`dirname $RANLIB_FOR_TARGET`
18225 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18226 $as_echo "pre-installed
in $ac_dir" >&6; }
18228 # Canadian cross, just use what we found
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18230 $as_echo "pre-installed
" >&6; }
18234 case " ${configdirs} " in
18239 if test $ok = yes; then
18240 # An in-tree tool is available and we can use it
18241 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
18242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18243 $as_echo "just compiled
" >&6; }
18244 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
18245 # We already found the complete path
18246 ac_dir=`dirname $RANLIB_FOR_TARGET`
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18248 $as_echo "pre-installed
in $ac_dir" >&6; }
18249 elif test "x
$target" = "x
$host"; then
18250 # We can use an host tool
18251 RANLIB_FOR_TARGET='$(RANLIB)'
18252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18253 $as_echo "host tool
" >&6; }
18255 # We need a cross tool
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18257 $as_echo "pre-installed
" >&6; }
18261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
18262 $as_echo_n "checking where to
find the target readelf...
" >&6; }
18263 if test "x
${build}" != "x
${host}" ; then
18264 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18265 # We already found the complete path
18266 ac_dir=`dirname $READELF_FOR_TARGET`
18267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18268 $as_echo "pre-installed
in $ac_dir" >&6; }
18270 # Canadian cross, just use what we found
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18272 $as_echo "pre-installed
" >&6; }
18276 case " ${configdirs} " in
18281 if test $ok = yes; then
18282 # An in-tree tool is available and we can use it
18283 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18285 $as_echo "just compiled
" >&6; }
18286 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
18287 # We already found the complete path
18288 ac_dir=`dirname $READELF_FOR_TARGET`
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18290 $as_echo "pre-installed
in $ac_dir" >&6; }
18291 elif test "x
$target" = "x
$host"; then
18292 # We can use an host tool
18293 READELF_FOR_TARGET='$(READELF)'
18294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18295 $as_echo "host tool
" >&6; }
18297 # We need a cross tool
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18299 $as_echo "pre-installed
" >&6; }
18303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
18304 $as_echo_n "checking where to
find the target strip...
" >&6; }
18305 if test "x
${build}" != "x
${host}" ; then
18306 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18307 # We already found the complete path
18308 ac_dir=`dirname $STRIP_FOR_TARGET`
18309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18310 $as_echo "pre-installed
in $ac_dir" >&6; }
18312 # Canadian cross, just use what we found
18313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18314 $as_echo "pre-installed
" >&6; }
18318 case " ${configdirs} " in
18323 if test $ok = yes; then
18324 # An in-tree tool is available and we can use it
18325 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18326 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18327 $as_echo "just compiled
" >&6; }
18328 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
18329 # We already found the complete path
18330 ac_dir=`dirname $STRIP_FOR_TARGET`
18331 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18332 $as_echo "pre-installed
in $ac_dir" >&6; }
18333 elif test "x
$target" = "x
$host"; then
18334 # We can use an host tool
18335 STRIP_FOR_TARGET='$(STRIP)'
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18337 $as_echo "host tool
" >&6; }
18339 # We need a cross tool
18340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18341 $as_echo "pre-installed
" >&6; }
18345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
18346 $as_echo_n "checking where to
find the target windres...
" >&6; }
18347 if test "x
${build}" != "x
${host}" ; then
18348 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18349 # We already found the complete path
18350 ac_dir=`dirname $WINDRES_FOR_TARGET`
18351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18352 $as_echo "pre-installed
in $ac_dir" >&6; }
18354 # Canadian cross, just use what we found
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18356 $as_echo "pre-installed
" >&6; }
18360 case " ${configdirs} " in
18365 if test $ok = yes; then
18366 # An in-tree tool is available and we can use it
18367 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18368 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18369 $as_echo "just compiled
" >&6; }
18370 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
18371 # We already found the complete path
18372 ac_dir=`dirname $WINDRES_FOR_TARGET`
18373 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18374 $as_echo "pre-installed
in $ac_dir" >&6; }
18375 elif test "x
$target" = "x
$host"; then
18376 # We can use an host tool
18377 WINDRES_FOR_TARGET='$(WINDRES)'
18378 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18379 $as_echo "host tool
" >&6; }
18381 # We need a cross tool
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18383 $as_echo "pre-installed
" >&6; }
18387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
18388 $as_echo_n "checking where to
find the target windmc...
" >&6; }
18389 if test "x
${build}" != "x
${host}" ; then
18390 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18391 # We already found the complete path
18392 ac_dir=`dirname $WINDMC_FOR_TARGET`
18393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18394 $as_echo "pre-installed
in $ac_dir" >&6; }
18396 # Canadian cross, just use what we found
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18398 $as_echo "pre-installed
" >&6; }
18402 case " ${configdirs} " in
18407 if test $ok = yes; then
18408 # An in-tree tool is available and we can use it
18409 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
18411 $as_echo "just compiled
" >&6; }
18412 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
18413 # We already found the complete path
18414 ac_dir=`dirname $WINDMC_FOR_TARGET`
18415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
18416 $as_echo "pre-installed
in $ac_dir" >&6; }
18417 elif test "x
$target" = "x
$host"; then
18418 # We can use an host tool
18419 WINDMC_FOR_TARGET='$(WINDMC)'
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
18421 $as_echo "host tool
" >&6; }
18423 # We need a cross tool
18424 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
18425 $as_echo "pre-installed
" >&6; }
18433 # Certain tools may need extra flags.
18434 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18435 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18436 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18438 # When building target libraries, except in a Canadian cross, we use
18439 # the same toolchain as the compiler we just built.
18440 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18441 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18442 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18443 if test $host = $build; then
18444 case " $configdirs " in
18446 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18447 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18448 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
18458 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
18459 # Check whether --enable-maintainer-mode was given.
18460 if test "${enable_maintainer_mode+set}" = set; then :
18461 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18463 USE_MAINTAINER_MODE=no
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
18467 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18470 if test "$USE_MAINTAINER_MODE" = yes; then
18471 MAINTAINER_MODE_TRUE=
18472 MAINTAINER_MODE_FALSE='#'
18474 MAINTAINER_MODE_TRUE='#'
18475 MAINTAINER_MODE_FALSE=
18477 MAINT=$MAINTAINER_MODE_TRUE
18479 # ---------------------
18480 # GCC bootstrap support
18481 # ---------------------
18483 # Stage specific cflags for build.
18488 yes) stage1_cflags="-g -Wa,-J" ;;
18489 *) stage1_cflags="-g -J" ;;
18495 # Enable --enable-checking in stage1 of the compiler.
18496 # Check whether --enable-stage1-checking was given.
18497 if test "${enable_stage1_checking+set}" = set; then :
18498 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18500 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18501 # For --disable-checking or implicit --enable-checking=release, avoid
18502 # setting --enable-checking=gc in the default stage1 checking for LTO
18503 # bootstraps. See PR62077.
18504 case $BUILD_CONFIG in
18506 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18508 stage1_checking=--enable-checking=yes,types;;
18510 if test "x
$enable_checking" = x && \
18511 test -d ${srcdir}/gcc && \
18512 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18513 stage1_checking=--enable-checking=yes,types,extra
18516 stage1_checking=--enable-checking=$enable_checking,types
18522 # Enable -Werror in bootstrap stage2 and later.
18523 # Check whether --enable-werror was given.
18524 if test "${enable_werror+set}" = set; then :
18525 enableval=$enable_werror;
18526 case ${enable_werror} in
18527 yes) stage2_werror_flag="--enable-werror-always" ;;
18528 *) stage2_werror_flag="" ;;
18533 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18534 case $BUILD_CONFIG in
18536 stage2_werror_flag="--enable-werror-always" ;;
18538 stage2_werror_flag="--enable-werror-always" ;;
18547 # Specify what files to not compare during bootstrap.
18549 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18551 hppa*64*-*-hpux*) ;;
18552 hppa*-*-hpux*) compare_exclusions="$compare_exclusions |
*/libgcc
/lib2funcs
* | gcc
/function-tests.o
" ;;
18553 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18557 ac_config_files="$ac_config_files Makefile
"
18559 cat >confcache <<\_ACEOF
18560 # This file is a shell script that caches the results of configure
18561 # tests run on this system so they can be shared between configure
18562 # scripts and configure runs, see configure's option --config-cache.
18563 # It is not useful on other systems. If it contains results you don't
18564 # want to keep, you may remove or edit it.
18566 # config.status only pays attention to the cache file if you give it
18567 # the --recheck option to rerun configure.
18569 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18570 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18571 # following values.
18575 # The following way of writing the cache mishandles newlines in values,
18576 # but we know of no workaround that is simple, portable, and efficient.
18577 # So, we kill variables containing newlines.
18578 # Ultrix sh set writes to stderr and can't be redirected directly,
18579 # and sets the high bit in the cache file unless we assign to the vars.
18581 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18582 eval ac_val=\$$ac_var
18586 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18587 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18590 _ | IFS | as_nl) ;; #(
18591 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18592 *) { eval $ac_var=; unset $ac_var;} ;;
18598 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18599 *${as_nl}ac_space=\ *)
18600 # `set' does not quote correctly, so add quotes: double-quote
18601 # substitution turns \\\\ into \\, and sed turns \\ into \.
18604 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18607 # `set' quotes correctly as required by POSIX, so do not add quotes.
18608 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18617 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18619 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18621 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18622 if test -w "$cache_file"; then
18623 if test "x
$cache_file" != "x
/dev
/null
"; then
18624 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18625 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18626 if test ! -f "$cache_file" || test -h "$cache_file"; then
18627 cat confcache >"$cache_file"
18629 case $cache_file in #(
18631 mv -f confcache "$cache_file"$$ &&
18632 mv -f "$cache_file"$$ "$cache_file" ;; #(
18634 mv -f confcache "$cache_file" ;;
18639 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18640 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18645 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18646 # Let make expand exec_prefix.
18647 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18649 # Transform confdefs.h into DEFS.
18650 # Protect against shell expansion while executing Makefile rules.
18651 # Protect against Makefile macro expansion.
18653 # If the first sed substitution is executed (which looks for macros that
18654 # take arguments), then branch to the quote section. Otherwise,
18655 # look for a macro that doesn't take arguments.
18665 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18667 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18671 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18684 DEFS=`sed -n "$ac_script" confdefs.h`
18690 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18691 # 1. Remove the extension, and $U if already installed.
18692 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18693 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18694 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18695 # will be set to the directory where LIBOBJS objects are built.
18696 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18697 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
18699 LIBOBJS=$ac_libobjs
18701 LTLIBOBJS=$ac_ltlibobjs
18705 : "${CONFIG_STATUS=./config.status}"
18707 ac_clean_files_save=$ac_clean_files
18708 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18710 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18712 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18714 # Generated by $as_me.
18715 # Run this file to recreate the current configuration.
18716 # Compiler output produced by configure, useful for debugging
18717 # configure, is in config.log if it exists.
18720 ac_cs_recheck=false
18723 SHELL=\${CONFIG_SHELL-$SHELL}
18726 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18727 ## -------------------- ##
18728 ## M4sh Initialization. ##
18729 ## -------------------- ##
18731 # Be more Bourne compatible
18732 DUALCASE=1; export DUALCASE # for MKS sh
18733 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18736 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18737 # is contrary to our usage. Disable this feature.
18738 alias -g '${1+"$@"}'='"$@"'
18739 setopt NO_GLOB_SUBST
18741 case `(set -o) 2>/dev/null` in #(
18753 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18754 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18755 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
18756 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18757 # Prefer a ksh shell builtin over an external printf program on Solaris,
18758 # but without wasting forks for bash or zsh.
18759 if test -z "$BASH_VERSION$ZSH_VERSION" \
18760 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18761 as_echo
='print -r --'
18762 as_echo_n
='print -rn --'
18763 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18764 as_echo
='printf %s\n'
18765 as_echo_n
='printf %s'
18767 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18768 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
18769 as_echo_n
='/usr/ucb/echo -n'
18771 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
18772 as_echo_n_body
='eval
18776 expr "X$arg" : "X\\(.*\\)$as_nl";
18777 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18779 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18781 export as_echo_n_body
18782 as_echo_n
='sh -c $as_echo_n_body as_echo'
18784 export as_echo_body
18785 as_echo
='sh -c $as_echo_body as_echo'
18788 # The user is always right.
18789 if test "${PATH_SEPARATOR+set}" != set; then
18791 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
18792 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
18799 # We need space, tab and new line, in precisely that order. Quoting is
18800 # there to prevent editors from complaining about space-tab.
18801 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18802 # splitting by setting IFS to empty value.)
18805 # Find who we are. Look in the path if we contain no directory separator.
18808 *[\\/]* ) as_myself
=$0 ;;
18809 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18810 for as_dir
in $PATH
18813 test -z "$as_dir" && as_dir
=.
18814 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18820 # We did not find ourselves, most probably we were run as `sh COMMAND'
18821 # in which case we are not to be found in the path.
18822 if test "x$as_myself" = x
; then
18825 if test ! -f "$as_myself"; then
18826 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18830 # Unset variables that we do not need and which cause bugs (e.g. in
18831 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18832 # suppresses any "Segmentation fault" message there. '((' could
18833 # trigger a bug in pdksh 5.2.14.
18834 for as_var
in BASH_ENV ENV MAIL MAILPATH
18835 do eval test x\
${$as_var+set} = xset \
18836 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18849 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18852 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18853 # ----------------------------------------
18854 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18855 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18856 # script with STATUS, using 1 if that was 0.
18859 as_status
=$1; test $as_status -eq 0 && as_status
=1
18861 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18862 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18864 $as_echo "$as_me: error: $2" >&2
18865 as_fn_exit
$as_status
18869 # as_fn_set_status STATUS
18870 # -----------------------
18871 # Set $? to STATUS, without forking.
18872 as_fn_set_status
()
18875 } # as_fn_set_status
18877 # as_fn_exit STATUS
18878 # -----------------
18879 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18883 as_fn_set_status
$1
18889 # Portably unset VAR.
18892 { eval $1=; unset $1;}
18894 as_unset
=as_fn_unset
18895 # as_fn_append VAR VALUE
18896 # ----------------------
18897 # Append the text in VALUE to the end of the definition contained in VAR. Take
18898 # advantage of any shell optimizations that allow amortized linear growth over
18899 # repeated appends, instead of the typical quadratic growth present in naive
18901 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18902 eval 'as_fn_append ()
18913 # as_fn_arith ARG...
18914 # ------------------
18915 # Perform arithmetic evaluation on the ARGs, and store the result in the
18916 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18917 # must be portable across $(()) and expr.
18918 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18919 eval 'as_fn_arith ()
18926 as_val
=`expr "$@" || test $? -eq 1`
18931 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18932 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18938 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18939 as_basename
=basename
18944 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18950 as_me
=`$as_basename -- "$0" ||
18951 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18952 X"$0" : 'X\(//\)$' \| \
18953 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18955 sed '/^.*\/\([^/][^/]*\)\/*$/{
18969 # Avoid depending upon Character Ranges.
18970 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18971 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18972 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18973 as_cr_digits
='0123456789'
18974 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18976 ECHO_C
= ECHO_N
= ECHO_T
=
18977 case `echo -n x` in #(((((
18979 case `echo 'xy\c'` in
18980 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18982 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18989 rm -f conf$$ conf$$.exe conf$$.
file
18990 if test -d conf$$.dir
; then
18991 rm -f conf$$.dir
/conf$$.
file
18994 mkdir conf$$.dir
2>/dev
/null
18996 if (echo >conf$$.
file) 2>/dev
/null
; then
18997 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18999 # ... but there are two gotchas:
19000 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
19001 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
19002 # In both cases, we have to default to `cp -pR'.
19003 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
19005 elif ln conf$$.
file conf$$
2>/dev
/null
; then
19013 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
19014 rmdir conf$$.dir
2>/dev
/null
19019 # Create "$as_dir" as a directory, including parents if necessary.
19024 -*) as_dir
=.
/$as_dir;;
19026 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
19030 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
19031 *) as_qdir
=$as_dir;;
19033 as_dirs
="'$as_qdir' $as_dirs"
19034 as_dir
=`$as_dirname -- "$as_dir" ||
19035 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19036 X"$as_dir" : 'X\(//\)[^/]' \| \
19037 X"$as_dir" : 'X\(//\)$' \| \
19038 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
19039 $as_echo X"$as_dir" |
19040 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19044 /^X\(\/\/\)[^/].*/{
19057 test -d "$as_dir" && break
19059 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
19060 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
19064 if mkdir
-p .
2>/dev
/null
; then
19065 as_mkdir_p
='mkdir -p "$as_dir"'
19067 test -d .
/-p && rmdir .
/-p
19072 # as_fn_executable_p FILE
19073 # -----------------------
19074 # Test if FILE is an executable regular file.
19075 as_fn_executable_p
()
19077 test -f "$1" && test -x "$1"
19078 } # as_fn_executable_p
19079 as_test_x
='test -x'
19080 as_executable_p
=as_fn_executable_p
19082 # Sed expression to map a string onto a valid CPP name.
19083 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
19085 # Sed expression to map a string onto a valid variable name.
19086 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
19090 ## ----------------------------------- ##
19091 ## Main body of $CONFIG_STATUS script. ##
19092 ## ----------------------------------- ##
19094 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
19096 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19097 # Save the log message, to keep $0 and so on meaningful, and to
19098 # report actual input values of CONFIG_FILES etc. instead of their
19099 # values after options handling.
19101 This file was extended by $as_me, which was
19102 generated by GNU Autoconf 2.69. Invocation command line was
19104 CONFIG_FILES = $CONFIG_FILES
19105 CONFIG_HEADERS = $CONFIG_HEADERS
19106 CONFIG_LINKS = $CONFIG_LINKS
19107 CONFIG_COMMANDS = $CONFIG_COMMANDS
19110 on `(hostname || uname -n) 2>/dev/null | sed 1q`
19115 case $ac_config_files in *"
19116 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
19121 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19122 # Files that config.status was made for.
19123 config_files="$ac_config_files"
19127 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19129 \`$as_me' instantiates files and other configuration actions
19130 from templates according to the current configuration. Unless the files
19131 and actions are specified as TAGs, all are instantiated by default.
19133 Usage: $0 [OPTION]... [TAG]...
19135 -h, --help print this help, then exit
19136 -V, --version print version number and configuration settings, then exit
19137 --config print configuration, then exit
19138 -q, --quiet, --silent
19139 do not print progress messages
19140 -d, --debug don't remove temporary files
19141 --recheck update $as_me by reconfiguring in the same conditions
19142 --file=FILE[:TEMPLATE]
19143 instantiate the configuration file FILE
19145 Configuration files:
19148 Report bugs to the package provider."
19151 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19152 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
19155 configured by $0, generated by GNU Autoconf 2.69,
19156 with options \\"\$ac_cs_config\\"
19158 Copyright (C) 2012 Free Software Foundation, Inc.
19159 This config.status script is free software; the Free Software Foundation
19160 gives unlimited permission to copy, distribute and modify it."
19166 test -n "\$AWK" || AWK=awk
19169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19170 # The default lists apply if the user does not specify any file.
19176 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19177 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
19181 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
19193 # Handling of the options.
19194 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
19196 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
19197 $as_echo "$ac_cs_version"; exit ;;
19198 --config |
--confi |
--conf |
--con |
--co |
--c )
19199 $as_echo "$ac_cs_config"; exit ;;
19200 --debug |
--debu |
--deb |
--de |
--d |
-d )
19202 --file |
--fil |
--fi |
--f )
19205 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
19206 '') as_fn_error $?
"missing file argument" ;;
19208 as_fn_append CONFIG_FILES
" '$ac_optarg'"
19209 ac_need_defaults
=false
;;
19210 --he |
--h |
--help |
--hel |
-h )
19211 $as_echo "$ac_cs_usage"; exit ;;
19212 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
19213 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
19216 # This is an error.
19217 -*) as_fn_error $?
"unrecognized option: \`$1'
19218 Try \`$0 --help' for more information." ;;
19220 *) as_fn_append ac_config_targets
" $1"
19221 ac_need_defaults
=false
;;
19227 ac_configure_extra_args
=
19229 if $ac_cs_silent; then
19231 ac_configure_extra_args
="$ac_configure_extra_args --silent"
19235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19236 if \$ac_cs_recheck; then
19237 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
19239 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
19240 CONFIG_SHELL='$SHELL'
19241 export CONFIG_SHELL
19246 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19250 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
19251 ## Running $as_me. ##
19257 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19261 extrasub_build="$extrasub_build"
19262 extrasub_host="$extrasub_host"
19263 extrasub_target="$extrasub_target"
19267 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19269 # Handling of arguments.
19270 for ac_config_target
in $ac_config_targets
19272 case $ac_config_target in
19273 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
19275 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
19280 # If the user did not use the arguments to specify the items to instantiate,
19281 # then the envvar interface is used. Set only those that are not.
19282 # We use the long form for the default assignment because of an extremely
19283 # bizarre bug on SunOS 4.1.3.
19284 if $ac_need_defaults; then
19285 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
19288 # Have a temporary directory for convenience. Make it in the build tree
19289 # simply because there is no reason against having it here, and in addition,
19290 # creating and moving files from /tmp can sometimes cause problems.
19291 # Hook for its removal unless debugging.
19292 # Note that there is a small window in which the directory will not be cleaned:
19293 # after its creation but before its name has been assigned to `$tmp'.
19297 trap 'exit_status=$?
19298 : "${ac_tmp:=$tmp}"
19299 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19301 trap 'as_fn_exit 1' 1 2 13 15
19303 # Create a (secure) tmp directory for tmp files.
19306 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19310 tmp
=.
/conf$$
-$RANDOM
19311 (umask 077 && mkdir
"$tmp")
19312 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
19315 # Set up the scripts for CONFIG_FILES section.
19316 # No need to generate them if there are no CONFIG_FILES.
19317 # This happens for instance with `./config.status config.h'.
19318 if test -n "$CONFIG_FILES"; then
19320 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
19321 ac_cs_awk_getline
=:
19322 ac_cs_awk_pipe_init
=
19323 ac_cs_awk_read_file
='
19324 while ((getline aline < (F[key])) > 0)
19327 ac_cs_awk_pipe_fini
=
19329 ac_cs_awk_getline
=false
19330 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
19331 ac_cs_awk_read_file
='
19333 print "cat " F[key] " &&"
19334 '$ac_cs_awk_pipe_init
19335 # The final `:' finishes the AND list.
19336 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
19338 ac_cr
=`echo X | tr X '\015'`
19339 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19340 # But we know of no other shell where ac_cr would be empty at this
19341 # point, so we can use a bashism as a fallback.
19342 if test "x$ac_cr" = x
; then
19343 eval ac_cr
=\$
\'\\r
\'
19345 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19346 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19349 ac_cs_awk_cr
=$ac_cr
19352 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19355 # Create commands to substitute file output variables.
19357 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19358 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19359 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
19362 } >conf$
$files.sh
&&
19363 . .
/conf$
$files.sh ||
19364 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
19365 rm -f conf$
$files.sh
19368 echo "cat >conf$$subs.awk <<_ACEOF" &&
19369 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19371 } >conf$$subs.sh ||
19372 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19373 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19375 for ac_last_try in false false false false false :; do
19376 . ./conf$$subs.sh ||
19377 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19379 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
19380 if test $ac_delim_n = $ac_delim_num; then
19382 elif $ac_last_try; then
19383 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
19385 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
19388 rm -f conf$$subs.sh
19390 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19391 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
19395 s/^/S["/; s
/!.
*/"]=/
19405 s/\(.\{148\}\)..*/\1/
19407 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
19412 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19419 s/\(.\{148\}\)..*/\1/
19421 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
19425 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
19430 ' <conf$$subs.awk | sed '
19435 ' >>$CONFIG_STATUS || ac_write_fail=1
19436 rm -f conf$$subs.awk
19437 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19439 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
19440 for (key in S) S_is_set[key] = 1
19442 \$ac_cs_awk_pipe_init
19446 nfields = split(line, field, "@
")
19448 len = length(field[1])
19449 for (i = 2; i < nfields; i++) {
19451 keylen = length(key)
19452 if (S_is_set[key]) {
19454 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19455 len += length(value) + length(field[++i])
19460 if (nfields == 3 && !substed) {
19462 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19463 \$ac_cs_awk_read_file
19469 \$ac_cs_awk_pipe_fini
19472 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19473 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19474 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
19477 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19478 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19481 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19482 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19483 # trailing colons and then remove the whole line if VPATH becomes empty
19484 # (actually we leave an empty line to preserve line numbers).
19485 if test "x
$srcdir" = x.; then
19486 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19504 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19505 fi # test -n "$CONFIG_FILES"
19508 eval set X " :F
$CONFIG_FILES "
19513 :[FHLC]) ac_mode=$ac_tag; continue;;
19515 case $ac_mode$ac_tag in
19517 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19518 :[FH]-) ac_tag=-:-;;
19519 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19536 -) ac_f="$ac_tmp/stdin";;
19537 *) # Look for the file first in the build tree, then in the source tree
19538 # (if the path is not absolute). The absolute path cannot be DOS-style,
19539 # because $ac_f cannot contain `:'.
19543 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19545 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19547 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19548 as_fn_append ac_file_inputs " '$ac_f'"
19551 # Let's still pretend it is `configure' which instantiates (i.e., don't
19552 # use $as_me), people would be surprised to read:
19553 # /* config.h. Generated by config.status. */
19554 configure_input='Generated from '`
19555 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19557 if test x"$ac_file" != x-; then
19558 configure_input="$ac_file.
$configure_input"
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19560 $as_echo "$as_me: creating
$ac_file" >&6;}
19562 # Neutralize special characters interpreted by sed in replacement strings.
19563 case $configure_input in #(
19564 *\&* | *\|* | *\\* )
19565 ac_sed_conf_input=`$as_echo "$configure_input" |
19566 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19567 *) ac_sed_conf_input=$configure_input;;
19571 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19572 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19577 ac_dir=`$as_dirname -- "$ac_file" ||
19578 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19579 X"$ac_file" : 'X\(//\)[^/]' \| \
19580 X"$ac_file" : 'X\(//\)$' \| \
19581 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19582 $as_echo X"$ac_file" |
19583 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19587 /^X\(\/\/\)[^/].*/{
19600 as_dir="$ac_dir"; as_fn_mkdir_p
19604 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19606 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19607 # A "..
" for each directory in $ac_dir_suffix.
19608 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19609 case $ac_top_builddir_sub in
19610 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19611 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19614 ac_abs_top_builddir=$ac_pwd
19615 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19616 # for backward compatibility:
19617 ac_top_builddir=$ac_top_build_prefix
19620 .) # We are building in place.
19622 ac_top_srcdir=$ac_top_builddir_sub
19623 ac_abs_top_srcdir=$ac_pwd ;;
19624 [\\/]* | ?:[\\/]* ) # Absolute name.
19625 ac_srcdir=$srcdir$ac_dir_suffix;
19626 ac_top_srcdir=$srcdir
19627 ac_abs_top_srcdir=$srcdir ;;
19628 *) # Relative name.
19629 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19630 ac_top_srcdir=$ac_top_build_prefix$srcdir
19631 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19633 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19643 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19644 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19648 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19649 # If the template does not know about datarootdir, expand it.
19650 # FIXME: This hack should be removed a few years after 2.60.
19651 ac_datarootdir_hack=; ac_datarootdir_seen=
19662 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19663 *datarootdir*) ac_datarootdir_seen=yes;;
19664 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19666 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19668 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19669 ac_datarootdir_hack='
19670 s&@datadir@&$datadir&g
19671 s&@docdir@&$docdir&g
19672 s&@infodir@&$infodir&g
19673 s&@localedir@&$localedir&g
19674 s&@mandir@&$mandir&g
19675 s&\\\${datarootdir}&$datarootdir&g' ;;
19679 # Neutralize VPATH when `$srcdir' = `.'.
19680 # Shell code in configure.ac might set extrasub.
19681 # FIXME: do we really want to maintain this feature?
19682 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19683 ac_sed_extra="$ac_vpsub
19686 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19688 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19689 s|@configure_input@|
$ac_sed_conf_input|
;t t
19690 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19691 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19692 s
&@srcdir@
&$ac_srcdir&;t t
19693 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19694 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19695 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19696 s
&@builddir@
&$ac_builddir&;t t
19697 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19698 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19699 s
&@INSTALL@
&$ac_INSTALL&;t t
19700 $ac_datarootdir_hack
19702 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19703 if $ac_cs_awk_getline; then
19704 $AWK -f "$ac_tmp/subs.
awk"
19706 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19708 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19710 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19711 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19712 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19713 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19715 which seems to be undefined. Please make sure it is defined" >&5
19716 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19717 which seems to be undefined. Please make sure it is defined" >&2;}
19719 rm -f "$ac_tmp/stdin"
19721 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19722 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19732 case $ac_file$ac_mode in
19733 "Makefile":F) sed "$extrasub_build" Makefile |
19734 sed "$extrasub_host" |
19735 sed "$extrasub_target" > mf$$
19736 mv -f mf$$ Makefile ;;
19744 ac_clean_files=$ac_clean_files_save
19746 test $ac_write_fail = 0 ||
19747 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19750 # configure is writing to config.log, and then calls config.status.
19751 # config.status does its own redirection, appending to config.log.
19752 # Unfortunately, on DOS this fails, as config.log is still kept open
19753 # by configure, so config.status won't be able to
write to it
; its
19754 # output is simply discarded. So we exec the FD to /dev/null,
19755 # effectively closing config.log, so it can be properly (re)opened and
19756 # appended to by config.status. When coming back to configure, we
19757 # need to make the FD available again.
19758 if test "$no_create" != yes; then
19760 ac_config_status_args
=
19761 test "$silent" = yes &&
19762 ac_config_status_args
="$ac_config_status_args --quiet"
19764 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19766 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19767 # would make configure fail if this is the last instruction.
19768 $ac_cs_success || as_fn_exit
1
19770 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19772 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}