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
679 DEBUG_PREFIX_CFLAGS_FOR_TARGET
680 SYSROOT_CFLAGS_FOR_TARGET
682 extra_host_zlib_configure_flags
683 extra_host_libiberty_configure_flags
686 extra_linker_plugin_flags
687 extra_linker_plugin_configure_flags
694 extra_isl_gmp_configure_flags
695 extra_mpc_mpfr_configure_flags
696 extra_mpc_gmp_configure_flags
697 extra_mpfr_configure_flags
715 extra_liboffloadmic_configure_flags
742 TOPLEVEL_CONFIGURE_ARGUMENTS
770 program_transform_name
781 ac_subst_files
='serialization_dependencies
787 enable_option_checking
790 enable_as_accelerator_for
791 enable_offload_targets
792 enable_offload_defaulted
795 enable_compressed_debug_sections
797 enable_libquadmath_support
815 with_static_standard_libraries
822 enable_isl_version_check
824 enable_linker_plugin_configure_flags
825 enable_linker_plugin_flags
827 enable_stage1_languages
830 with_target_bdw_gc_include
831 with_target_bdw_gc_lib
832 with_gcc_major_version_only
834 with_debug_prefix_map
837 enable_serial_configure
838 with_build_time_tools
839 enable_maintainer_mode
840 enable_stage1_checking
843 ac_precious_vars
='build_alias
895 # Initialize some variables set by options.
897 ac_init_version
=false
898 ac_unrecognized_opts
=
900 # The variables have the same names as the options, with
901 # dashes changed to underlines.
909 program_transform_name
=s
,x
,x
,
917 # Installation directory options.
918 # These are left unexpanded so users can "make install exec_prefix=/foo"
919 # and all the variables that are supposed to be based on exec_prefix
920 # by default will actually change.
921 # Use braces instead of parens because sh, perl, etc. also accept them.
922 # (The list follows the same order as the GNU Coding Standards.)
923 bindir
='${exec_prefix}/bin'
924 sbindir
='${exec_prefix}/sbin'
925 libexecdir
='${exec_prefix}/libexec'
926 datarootdir
='${prefix}/share'
927 datadir
='${datarootdir}'
928 sysconfdir
='${prefix}/etc'
929 sharedstatedir
='${prefix}/com'
930 localstatedir
='${prefix}/var'
931 includedir
='${prefix}/include'
932 oldincludedir
='/usr/include'
933 docdir
='${datarootdir}/doc/${PACKAGE}'
934 infodir
='${datarootdir}/info'
939 libdir
='${exec_prefix}/lib'
940 localedir
='${datarootdir}/locale'
941 mandir
='${datarootdir}/man'
947 # If the previous option needs an argument, assign it.
948 if test -n "$ac_prev"; then
949 eval $ac_prev=\
$ac_option
955 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
960 # Accept the important Cygnus configure options, so we can diagnose typos.
962 case $ac_dashdash$ac_option in
966 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
968 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
971 -build |
--build |
--buil |
--bui |
--bu)
972 ac_prev
=build_alias
;;
973 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
974 build_alias
=$ac_optarg ;;
976 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
977 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
978 ac_prev
=cache_file
;;
979 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
980 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
981 cache_file
=$ac_optarg ;;
984 cache_file
=config.cache
;;
986 -datadir |
--datadir |
--datadi |
--datad)
988 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
989 datadir
=$ac_optarg ;;
991 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
992 |
--dataroo |
--dataro |
--datar)
993 ac_prev
=datarootdir
;;
994 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
995 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
996 datarootdir
=$ac_optarg ;;
998 -disable-* |
--disable-*)
999 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1002 as_fn_error $?
"invalid feature name: $ac_useropt"
1003 ac_useropt_orig
=$ac_useropt
1004 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1005 case $ac_user_opts in
1007 "enable_
$ac_useropt"
1009 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1010 ac_unrecognized_sep
=', ';;
1012 eval enable_
$ac_useropt=no
;;
1014 -docdir |
--docdir |
--docdi |
--doc |
--do)
1016 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1017 docdir
=$ac_optarg ;;
1019 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1021 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1022 dvidir
=$ac_optarg ;;
1024 -enable-* |
--enable-*)
1025 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1026 # Reject names that are not valid shell variable names.
1027 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1028 as_fn_error $?
"invalid feature name: $ac_useropt"
1029 ac_useropt_orig
=$ac_useropt
1030 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1031 case $ac_user_opts in
1033 "enable_
$ac_useropt"
1035 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1036 ac_unrecognized_sep
=', ';;
1038 eval enable_
$ac_useropt=\
$ac_optarg ;;
1040 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1041 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1042 |
--exec |
--exe |
--ex)
1043 ac_prev
=exec_prefix
;;
1044 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1045 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1046 |
--exec=* |
--exe=* |
--ex=*)
1047 exec_prefix
=$ac_optarg ;;
1049 -gas |
--gas |
--ga |
--g)
1050 # Obsolete; use --with-gas.
1053 -help |
--help |
--hel |
--he |
-h)
1054 ac_init_help
=long
;;
1055 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1056 ac_init_help
=recursive
;;
1057 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1058 ac_init_help
=short
;;
1060 -host |
--host |
--hos |
--ho)
1061 ac_prev
=host_alias
;;
1062 -host=* |
--host=* |
--hos=* |
--ho=*)
1063 host_alias
=$ac_optarg ;;
1065 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1067 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1069 htmldir
=$ac_optarg ;;
1071 -includedir |
--includedir |
--includedi |
--included |
--include \
1072 |
--includ |
--inclu |
--incl |
--inc)
1073 ac_prev
=includedir
;;
1074 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1075 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1076 includedir
=$ac_optarg ;;
1078 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1080 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1081 infodir
=$ac_optarg ;;
1083 -libdir |
--libdir |
--libdi |
--libd)
1085 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1086 libdir
=$ac_optarg ;;
1088 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1089 |
--libexe |
--libex |
--libe)
1090 ac_prev
=libexecdir
;;
1091 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1092 |
--libexe=* |
--libex=* |
--libe=*)
1093 libexecdir
=$ac_optarg ;;
1095 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1096 ac_prev
=localedir
;;
1097 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1098 localedir
=$ac_optarg ;;
1100 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1101 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1102 ac_prev
=localstatedir
;;
1103 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1104 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1105 localstatedir
=$ac_optarg ;;
1107 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1109 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1110 mandir
=$ac_optarg ;;
1112 -nfp |
--nfp |
--nf)
1113 # Obsolete; use --without-fp.
1116 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1117 |
--no-cr |
--no-c |
-n)
1120 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1121 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1124 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1125 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1126 |
--oldin |
--oldi |
--old |
--ol |
--o)
1127 ac_prev
=oldincludedir
;;
1128 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1129 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1130 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1131 oldincludedir
=$ac_optarg ;;
1133 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1135 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1136 prefix
=$ac_optarg ;;
1138 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1139 |
--program-pre |
--program-pr |
--program-p)
1140 ac_prev
=program_prefix
;;
1141 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1142 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1143 program_prefix
=$ac_optarg ;;
1145 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1146 |
--program-suf |
--program-su |
--program-s)
1147 ac_prev
=program_suffix
;;
1148 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1149 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1150 program_suffix
=$ac_optarg ;;
1152 -program-transform-name |
--program-transform-name \
1153 |
--program-transform-nam |
--program-transform-na \
1154 |
--program-transform-n |
--program-transform- \
1155 |
--program-transform |
--program-transfor \
1156 |
--program-transfo |
--program-transf \
1157 |
--program-trans |
--program-tran \
1158 |
--progr-tra |
--program-tr |
--program-t)
1159 ac_prev
=program_transform_name
;;
1160 -program-transform-name=* |
--program-transform-name=* \
1161 |
--program-transform-nam=* |
--program-transform-na=* \
1162 |
--program-transform-n=* |
--program-transform-=* \
1163 |
--program-transform=* |
--program-transfor=* \
1164 |
--program-transfo=* |
--program-transf=* \
1165 |
--program-trans=* |
--program-tran=* \
1166 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1167 program_transform_name
=$ac_optarg ;;
1169 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1171 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1172 pdfdir
=$ac_optarg ;;
1174 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1176 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1179 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1180 |
-silent |
--silent |
--silen |
--sile |
--sil)
1183 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1185 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1187 sbindir
=$ac_optarg ;;
1189 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1190 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1191 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1193 ac_prev
=sharedstatedir
;;
1194 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1195 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1196 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1198 sharedstatedir
=$ac_optarg ;;
1200 -site |
--site |
--sit)
1202 -site=* |
--site=* |
--sit=*)
1205 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1207 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1208 srcdir
=$ac_optarg ;;
1210 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1211 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1212 ac_prev
=sysconfdir
;;
1213 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1214 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1215 sysconfdir
=$ac_optarg ;;
1217 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1218 ac_prev
=target_alias
;;
1219 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1220 target_alias
=$ac_optarg ;;
1222 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1225 -version |
--version |
--versio |
--versi |
--vers |
-V)
1226 ac_init_version
=: ;;
1229 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1230 # Reject names that are not valid shell variable names.
1231 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1232 as_fn_error $?
"invalid package name: $ac_useropt"
1233 ac_useropt_orig
=$ac_useropt
1234 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1235 case $ac_user_opts in
1239 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1240 ac_unrecognized_sep
=', ';;
1242 eval with_
$ac_useropt=\
$ac_optarg ;;
1244 -without-* |
--without-*)
1245 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1246 # Reject names that are not valid shell variable names.
1247 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1248 as_fn_error $?
"invalid package name: $ac_useropt"
1249 ac_useropt_orig
=$ac_useropt
1250 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1251 case $ac_user_opts in
1255 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1256 ac_unrecognized_sep
=', ';;
1258 eval with_
$ac_useropt=no
;;
1261 # Obsolete; use --with-x.
1264 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1265 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1266 ac_prev
=x_includes
;;
1267 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1268 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1269 x_includes
=$ac_optarg ;;
1271 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1272 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1273 ac_prev
=x_libraries
;;
1274 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1275 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1276 x_libraries
=$ac_optarg ;;
1278 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1279 Try \`$0 --help' for more information"
1283 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1284 # Reject names that are not valid shell variable names.
1285 case $ac_envvar in #(
1286 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1287 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1289 eval $ac_envvar=\
$ac_optarg
1290 export $ac_envvar ;;
1293 # FIXME: should be removed in autoconf 3.0.
1294 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1295 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1296 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1297 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1303 if test -n "$ac_prev"; then
1304 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1305 as_fn_error $?
"missing argument to $ac_option"
1308 if test -n "$ac_unrecognized_opts"; then
1309 case $enable_option_checking in
1311 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1312 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1316 # Check all directory arguments for consistency.
1317 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1318 datadir sysconfdir sharedstatedir localstatedir includedir \
1319 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1320 libdir localedir mandir
1322 eval ac_val
=\$
$ac_var
1323 # Remove trailing slashes.
1326 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1327 eval $ac_var=\
$ac_val;;
1329 # Be sure to have absolute directory names.
1331 [\\/$
]* | ?
:[\\/]* ) continue;;
1332 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1334 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1337 # There might be people who depend on the old broken behavior: `$host'
1338 # used to hold the argument of --host etc.
1339 # FIXME: To remove some day.
1342 target
=$target_alias
1344 # FIXME: To remove some day.
1345 if test "x$host_alias" != x
; then
1346 if test "x$build_alias" = x
; then
1347 cross_compiling
=maybe
1348 elif test "x$build_alias" != "x$host_alias"; then
1354 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1356 test "$silent" = yes && exec 6>/dev
/null
1359 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1360 ac_ls_di
=`ls -di .` &&
1361 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1362 as_fn_error $?
"working directory cannot be determined"
1363 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1364 as_fn_error $?
"pwd does not report name of working directory"
1367 # Find the source files, if location was not specified.
1368 if test -z "$srcdir"; then
1369 ac_srcdir_defaulted
=yes
1370 # Try the directory containing this script, then the parent directory.
1371 ac_confdir
=`$as_dirname -- "$as_myself" ||
1372 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1373 X"$as_myself" : 'X\(//\)[^/]' \| \
1374 X"$as_myself" : 'X\(//\)$' \| \
1375 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1376 $as_echo X"$as_myself" |
1377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1395 if test ! -r "$srcdir/$ac_unique_file"; then
1399 ac_srcdir_defaulted
=no
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1402 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1403 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1405 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1407 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1409 # When building in place, set srcdir=.
1410 if test "$ac_abs_confdir" = "$ac_pwd"; then
1413 # Remove unnecessary trailing slashes from srcdir.
1414 # Double slashes in file names in object file debugging info
1415 # mess up M-x gdb in Emacs.
1417 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1421 as_fn_error $?
"path to source, $srcdir, contains spaces"
1424 ac_subdirs_all
=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1426 for ac_var
in $ac_precious_vars; do
1427 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1428 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1429 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1430 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1434 # Report the --help message.
1436 if test "$ac_init_help" = "long"; then
1437 # Omit some internal or obsolete options to make the list less imposing.
1438 # This message is too long to be a string in the A/UX 3.1 sh.
1440 \`configure' configures this package to adapt to many kinds of systems.
1442 Usage: $0 [OPTION]... [VAR=VALUE]...
1444 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1445 VAR=VALUE. See below for descriptions of some of the useful variables.
1447 Defaults for the options are specified in brackets.
1450 -h, --help display this help and exit
1451 --help=short display options specific to this package
1452 --help=recursive display the short help of all the included packages
1453 -V, --version display version information and exit
1454 -q, --quiet, --silent do not print \`checking ...' messages
1455 --cache-file=FILE cache test results in FILE [disabled]
1456 -C, --config-cache alias for \`--cache-file=config.cache'
1457 -n, --no-create do not create output files
1458 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1460 Installation directories:
1461 --prefix=PREFIX install architecture-independent files in PREFIX
1462 [$ac_default_prefix]
1463 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1466 By default, \`make install' will install all the files in
1467 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1468 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1469 for instance \`--prefix=\$HOME'.
1471 For better control, use the options below.
1473 Fine tuning of the installation directories:
1474 --bindir=DIR user executables [EPREFIX/bin]
1475 --sbindir=DIR system admin executables [EPREFIX/sbin]
1476 --libexecdir=DIR program executables [EPREFIX/libexec]
1477 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1478 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1479 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1480 --libdir=DIR object code libraries [EPREFIX/lib]
1481 --includedir=DIR C header files [PREFIX/include]
1482 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1483 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1484 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1485 --infodir=DIR info documentation [DATAROOTDIR/info]
1486 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1487 --mandir=DIR man documentation [DATAROOTDIR/man]
1488 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1489 --htmldir=DIR html documentation [DOCDIR]
1490 --dvidir=DIR dvi documentation [DOCDIR]
1491 --pdfdir=DIR pdf documentation [DOCDIR]
1492 --psdir=DIR ps documentation [DOCDIR]
1498 --program-prefix=PREFIX prepend PREFIX to installed program names
1499 --program-suffix=SUFFIX append SUFFIX to installed program names
1500 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1503 --build=BUILD configure
for building on BUILD
[guessed
]
1504 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1505 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1509 if test -n "$ac_init_help"; then
1514 --disable-option-checking ignore unrecognized
--enable/--with options
1515 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1516 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1517 --enable-as-accelerator-for=ARG
1518 build as offload target compiler. Specify offload
1520 --enable-offload-targets=LIST
1521 enable offloading to devices from comma-separated
1522 LIST of TARGET
[=DIR
]. Use optional path to
find
1523 offload target compiler during the build
1524 --enable-offload-defaulted
1525 If enabled
, configured but not installed offload compilers and
1526 libgomp plugins are silently ignored. Useful
for distribution
1527 compilers where those are
in separate optional packages.
1529 --enable-gold[=ARG
] build gold
[ARG
={default
,yes,no
}]
1530 --enable-ld[=ARG
] build ld
[ARG
={default
,yes,no
}]
1531 --enable-compressed-debug-sections={all
,gas
,gold
,ld
,none
}
1532 Enable compressed debug sections
for gas
, gold or ld
1534 --disable-libquadmath do not build libquadmath directory
1535 --disable-libquadmath-support
1536 disable libquadmath support
for Fortran
1537 --enable-libada build libada directory
1538 --enable-libssp build libssp directory
1539 --disable-libstdcxx do not build libstdc
++-v3 directory
1540 --enable-liboffloadmic=ARG
1541 build liboffloadmic
[ARG
={no
,host,target
}]
1542 --enable-bootstrap enable bootstrapping
[yes if native build
]
1543 --disable-isl-version-check
1544 disable check
for isl version
1545 --enable-lto enable link
time optimization support
1546 --enable-linker-plugin-configure-flags=FLAGS
1547 additional flags
for configuring linker plugins
1549 --enable-linker-plugin-flags=FLAGS
1550 additional flags
for configuring and building linker
1552 --enable-host-shared build
host code as shared libraries
1553 --enable-stage1-languages[=all
]
1554 choose additional languages to build during stage1.
1555 Mostly useful
for compiler development
1556 --enable-objc-gc enable use of Boehm
's garbage collector with the GNU
1558 --enable-vtable-verify Enable vtable verification feature
1559 --enable-serial-[{host,target,build}-]configure
1560 force sequential configuration of sub-packages for
1561 the host, target or build machine, or all
1563 --enable-maintainer-mode
1564 enable make rules and dependencies not useful (and
1565 sometimes confusing) to the casual installer
1566 --enable-stage1-checking[=all]
1567 choose additional checking for stage1 of the
1569 --enable-werror enable -Werror in bootstrap stage2 and later
1572 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1573 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1574 --with-build-libsubdir=DIR Directory where to find libraries for build system
1575 --with-system-zlib use installed libz
1576 --with-mpc=PATH specify prefix directory for installed MPC package.
1577 Equivalent to --with-mpc-include=PATH/include plus
1578 --with-mpc-lib=PATH/lib
1579 --with-mpc-include=PATH specify directory for installed MPC include files
1580 --with-mpc-lib=PATH specify directory for the installed MPC library
1581 --with-mpfr-dir=PATH this option has been REMOVED
1582 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1583 Equivalent to --with-mpfr-include=PATH/include plus
1584 --with-mpfr-lib=PATH/lib
1585 --with-mpfr-include=PATH
1586 specify directory for installed MPFR include files
1587 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1588 --with-gmp-dir=PATH this option has been REMOVED
1589 --with-gmp=PATH specify prefix directory for the installed GMP
1590 package. Equivalent to
1591 --with-gmp-include=PATH/include plus
1592 --with-gmp-lib=PATH/lib
1593 --with-gmp-include=PATH specify directory for installed GMP include files
1594 --with-gmp-lib=PATH specify directory for the installed GMP library
1595 --with-stage1-libs=LIBS libraries for stage1
1596 --with-static-standard-libraries
1597 use -static-libstdc++ and -static-libgcc
1599 --with-stage1-ldflags=FLAGS
1600 linker flags for stage1
1601 --with-boot-libs=LIBS libraries for stage2 and later
1602 --with-boot-ldflags=FLAGS
1603 linker flags for stage2 and later
1604 --with-isl=PATH Specify prefix directory for the installed isl
1605 package. Equivalent to
1606 --with-isl-include=PATH/include plus
1607 --with-isl-lib=PATH/lib
1608 --with-isl-include=PATH Specify directory for installed isl include files
1609 --with-isl-lib=PATH Specify the directory for the installed isl library
1610 --with-target-bdw-gc=PATHLIST
1611 specify prefix directory for installed bdw-gc
1612 package. Equivalent to
1613 --with-target-bdw-gc-include=PATH/include plus
1614 --with-target-bdw-gc-lib=PATH/lib
1615 --with-target-bdw-gc-include=PATHLIST
1616 specify directories for installed bdw-gc include
1618 --with-target-bdw-gc-lib=PATHLIST
1619 specify directories for installed bdw-gc library
1620 --with-gcc-major-version-only
1621 use only GCC major number in filesystem paths
1622 --with-build-sysroot=SYSROOT
1623 use sysroot as the system root during the build
1624 --with-debug-prefix-map='A
=B C
=D ...
'
1625 map A to B, C to D ... in debug information
1626 --with-build-config='NAME NAME2...
'
1627 use config/NAME.mk build configuration
1628 --with-build-time-tools=PATH
1629 use given path to find target tools during the build
1631 Some influential environment variables:
1632 CC C compiler command
1633 CFLAGS C compiler flags
1634 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1635 nonstandard directory <lib dir>
1636 LIBS libraries to pass to the linker, e.g. -l<library>
1637 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1638 you have headers in a nonstandard directory <include dir>
1639 CXX C++ compiler command
1640 CXXFLAGS C++ compiler flags
1642 additional configure arguments for build directories
1644 additional configure arguments for host directories
1646 additional configure arguments for target directories
1649 DLLTOOL DLLTOOL for the host
1650 DSYMUTIL DSYMUTIL for the host
1652 LIPO LIPO for the host
1654 RANLIB RANLIB for the host
1655 STRIP STRIP for the host
1656 WINDRES WINDRES for the host
1657 WINDMC WINDMC for the host
1658 OBJCOPY OBJCOPY for the host
1659 OBJDUMP OBJDUMP for the host
1660 OTOOL OTOOL for the host
1661 READELF READELF for the host
1669 GFORTRAN for the target
1679 DLLTOOL for the target
1681 DSYMUTIL for the target
1689 OBJCOPY for the target
1691 OBJDUMP for the target
1693 OTOOL for the target
1695 RANLIB for the target
1697 READELF for the target
1699 STRIP for the target
1701 WINDRES for the target
1703 WINDMC for the target
1705 Use these variables to override the choices made by `configure' or to
help
1706 it to
find libraries and programs with nonstandard names
/locations.
1708 Report bugs to the package provider.
1713 if test "$ac_init_help" = "recursive"; then
1714 # If there are subdirs, report their specific --help.
1715 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1716 test -d "$ac_dir" ||
1717 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1722 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1724 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1725 # A ".." for each directory in $ac_dir_suffix.
1726 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1727 case $ac_top_builddir_sub in
1728 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1729 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1732 ac_abs_top_builddir
=$ac_pwd
1733 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1734 # for backward compatibility:
1735 ac_top_builddir
=$ac_top_build_prefix
1738 .
) # We are building in place.
1740 ac_top_srcdir
=$ac_top_builddir_sub
1741 ac_abs_top_srcdir
=$ac_pwd ;;
1742 [\\/]* | ?
:[\\/]* ) # Absolute name.
1743 ac_srcdir
=$srcdir$ac_dir_suffix;
1744 ac_top_srcdir
=$srcdir
1745 ac_abs_top_srcdir
=$srcdir ;;
1747 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1748 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1749 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1751 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1753 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1754 # Check for guested configure.
1755 if test -f "$ac_srcdir/configure.gnu"; then
1757 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1758 elif test -f "$ac_srcdir/configure"; then
1760 $SHELL "$ac_srcdir/configure" --help=recursive
1762 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1764 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1768 test -n "$ac_init_help" && exit $ac_status
1769 if $ac_init_version; then
1772 generated by GNU Autoconf
2.69
1774 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1775 This configure
script is free software
; the Free Software Foundation
1776 gives unlimited permission to copy
, distribute and modify it.
1781 ## ------------------------ ##
1782 ## Autoconf initialization. ##
1783 ## ------------------------ ##
1785 # ac_fn_c_try_compile LINENO
1786 # --------------------------
1787 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1788 ac_fn_c_try_compile
()
1790 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1791 rm -f conftest.
$ac_objext
1792 if { { ac_try
="$ac_compile"
1794 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1795 *) ac_try_echo=$ac_try;;
1797 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1798 $as_echo "$ac_try_echo"; } >&5
1799 (eval "$ac_compile") 2>conftest.err
1801 if test -s conftest.err; then
1802 grep -v '^ *+' conftest.err >conftest.er1
1803 cat conftest.er1 >&5
1804 mv -f conftest.er1 conftest.err
1806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1807 test $ac_status = 0; } && {
1808 test -z "$ac_c_werror_flag" ||
1809 test ! -s conftest.err
1810 } && test -s conftest.$ac_objext; then :
1813 $as_echo "$as_me: failed program was:" >&5
1814 sed 's/^/| /' conftest.$ac_ext >&5
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1819 as_fn_set_status $ac_retval
1821 } # ac_fn_c_try_compile
1823 # ac_fn_cxx_try_compile LINENO
1824 # ----------------------------
1825 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1826 ac_fn_cxx_try_compile ()
1828 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1829 rm -f conftest.$ac_objext
1830 if { { ac_try="$ac_compile"
1832 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1833 *) ac_try_echo
=$ac_try;;
1835 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1836 $as_echo "$ac_try_echo"; } >&5
1837 (eval "$ac_compile") 2>conftest.err
1839 if test -s conftest.err
; then
1840 grep -v '^ *+' conftest.err
>conftest.er1
1841 cat conftest.er1
>&5
1842 mv -f conftest.er1 conftest.err
1844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1845 test $ac_status = 0; } && {
1846 test -z "$ac_cxx_werror_flag" ||
1847 test ! -s conftest.err
1848 } && test -s conftest.
$ac_objext; then :
1851 $as_echo "$as_me: failed program was:" >&5
1852 sed 's/^/| /' conftest.
$ac_ext >&5
1856 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1857 as_fn_set_status
$ac_retval
1859 } # ac_fn_cxx_try_compile
1861 # ac_fn_cxx_try_link LINENO
1862 # -------------------------
1863 # Try to link conftest.$ac_ext, and return whether this succeeded.
1864 ac_fn_cxx_try_link
()
1866 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1867 rm -f conftest.
$ac_objext conftest
$ac_exeext
1868 if { { ac_try
="$ac_link"
1870 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1871 *) ac_try_echo=$ac_try;;
1873 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1874 $as_echo "$ac_try_echo"; } >&5
1875 (eval "$ac_link") 2>conftest.err
1877 if test -s conftest.err; then
1878 grep -v '^ *+' conftest.err >conftest.er1
1879 cat conftest.er1 >&5
1880 mv -f conftest.er1 conftest.err
1882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1883 test $ac_status = 0; } && {
1884 test -z "$ac_cxx_werror_flag" ||
1885 test ! -s conftest.err
1886 } && test -s conftest$ac_exeext && {
1887 test "$cross_compiling" = yes ||
1888 test -x conftest$ac_exeext
1892 $as_echo "$as_me: failed program was:" >&5
1893 sed 's/^/| /' conftest.$ac_ext >&5
1897 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1898 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1899 # interfere with the next link command; also delete a directory that is
1900 # left behind by Apple's compiler. We do this before executing the actions.
1901 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1902 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1903 as_fn_set_status $ac_retval
1905 } # ac_fn_cxx_try_link
1907 # ac_fn_c_try_link LINENO
1908 # -----------------------
1909 # Try to link conftest.$ac_ext, and return whether this succeeded.
1912 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1913 rm -f conftest.$ac_objext conftest$ac_exeext
1914 if { { ac_try="$ac_link"
1916 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1917 *) ac_try_echo
=$ac_try;;
1919 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1920 $as_echo "$ac_try_echo"; } >&5
1921 (eval "$ac_link") 2>conftest.err
1923 if test -s conftest.err
; then
1924 grep -v '^ *+' conftest.err
>conftest.er1
1925 cat conftest.er1
>&5
1926 mv -f conftest.er1 conftest.err
1928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1929 test $ac_status = 0; } && {
1930 test -z "$ac_c_werror_flag" ||
1931 test ! -s conftest.err
1932 } && test -s conftest
$ac_exeext && {
1933 test "$cross_compiling" = yes ||
1934 test -x conftest
$ac_exeext
1938 $as_echo "$as_me: failed program was:" >&5
1939 sed 's/^/| /' conftest.
$ac_ext >&5
1943 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1944 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1945 # interfere with the next link command; also delete a directory that is
1946 # left behind by Apple's compiler. We do this before executing the actions.
1947 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1948 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1949 as_fn_set_status
$ac_retval
1951 } # ac_fn_c_try_link
1952 cat >config.log
<<_ACEOF
1953 This file contains any messages produced by compilers while
1954 running configure, to aid debugging if configure makes a mistake.
1956 It was created by $as_me, which was
1957 generated by GNU Autoconf 2.69. Invocation command line was
1969 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1970 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1971 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1972 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1973 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1975 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1976 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1978 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1979 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1980 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1981 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1982 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1983 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1984 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1992 test -z "$as_dir" && as_dir
=.
1993 $as_echo "PATH: $as_dir"
2009 # Keep a trace of the command line.
2010 # Strip out --no-create and --no-recursion so they do not pile up.
2011 # Strip out --silent because we don't want to record it for future runs.
2012 # Also quote any args containing shell meta-characters.
2013 # Make two passes to allow for proper duplicate-argument suppression.
2017 ac_must_keep_next
=false
2023 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2024 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2025 |
-silent |
--silent |
--silen |
--sile |
--sil)
2028 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2031 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2033 as_fn_append ac_configure_args1
" '$ac_arg'"
2034 if test $ac_must_keep_next = true
; then
2035 ac_must_keep_next
=false
# Got value, back to normal.
2038 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2039 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2040 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2041 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2042 case "$ac_configure_args0 " in
2043 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2046 -* ) ac_must_keep_next
=true
;;
2049 as_fn_append ac_configure_args
" '$ac_arg'"
2054 { ac_configure_args0
=; unset ac_configure_args0
;}
2055 { ac_configure_args1
=; unset ac_configure_args1
;}
2057 # When interrupted or exit'd, cleanup temporary files, and complete
2058 # config.log. We remove comments because anyway the quotes in there
2059 # would cause problems or look ugly.
2060 # WARNING: Use '\'' to represent an apostrophe within the trap.
2061 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2062 trap 'exit_status=$?
2063 # Save into config.log some information that might help in debugging.
2067 $as_echo "## ---------------- ##
2068 ## Cache variables. ##
2069 ## ---------------- ##"
2071 # The following way of writing the cache mishandles newlines in values,
2073 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2074 eval ac_val=\$$ac_var
2078 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2079 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2082 _ | IFS | as_nl) ;; #(
2083 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2084 *) { eval $ac_var=; unset $ac_var;} ;;
2089 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2090 *${as_nl}ac_space=\ *)
2092 "s/'\''/'\''\\\\'\'''\''/g;
2093 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2096 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2103 $as_echo "## ----------------- ##
2104 ## Output variables. ##
2105 ## ----------------- ##"
2107 for ac_var in $ac_subst_vars
2109 eval ac_val=\$$ac_var
2111 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2113 $as_echo "$ac_var='\''$ac_val'\''"
2117 if test -n "$ac_subst_files"; then
2118 $as_echo "## ------------------- ##
2119 ## File substitutions. ##
2120 ## ------------------- ##"
2122 for ac_var
in $ac_subst_files
2124 eval ac_val
=\$
$ac_var
2126 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2128 $as_echo "$ac_var='\''$ac_val'\''"
2133 if test -s confdefs.h; then
2134 $as_echo "## ----------- ##
2141 test "$ac_signal" != 0 &&
2142 $as_echo "$as_me: caught signal $ac_signal"
2143 $as_echo "$as_me: exit $exit_status"
2145 rm -f core *.core core.conftest.* &&
2146 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2149 for ac_signal
in 1 2 13 15; do
2150 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2154 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2155 rm -f -r conftest
* confdefs.h
2157 $as_echo "/* confdefs.h */" > confdefs.h
2159 # Predefined preprocessor variables.
2161 cat >>confdefs.h
<<_ACEOF
2162 #define PACKAGE_NAME "$PACKAGE_NAME"
2165 cat >>confdefs.h
<<_ACEOF
2166 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2169 cat >>confdefs.h
<<_ACEOF
2170 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2173 cat >>confdefs.h
<<_ACEOF
2174 #define PACKAGE_STRING "$PACKAGE_STRING"
2177 cat >>confdefs.h
<<_ACEOF
2178 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2181 cat >>confdefs.h
<<_ACEOF
2182 #define PACKAGE_URL "$PACKAGE_URL"
2186 # Let the site file select an alternate cache file if it wants to.
2187 # Prefer an explicitly selected file to automatically selected ones.
2190 if test -n "$CONFIG_SITE"; then
2191 # We do not want a PATH search for config.site.
2192 case $CONFIG_SITE in #((
2193 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2194 */*) ac_site_file1
=$CONFIG_SITE;;
2195 *) ac_site_file1
=.
/$CONFIG_SITE;;
2197 elif test "x$prefix" != xNONE
; then
2198 ac_site_file1
=$prefix/share
/config.site
2199 ac_site_file2
=$prefix/etc
/config.site
2201 ac_site_file1
=$ac_default_prefix/share
/config.site
2202 ac_site_file2
=$ac_default_prefix/etc
/config.site
2204 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2206 test "x$ac_site_file" = xNONE
&& continue
2207 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2209 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2210 sed 's/^/| /' "$ac_site_file" >&5
2212 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2213 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2214 as_fn_error $?
"failed to load site script $ac_site_file
2215 See \`config.log' for more details" "$LINENO" 5; }
2219 if test -r "$cache_file"; then
2220 # Some versions of bash will fail to source /dev/null (special files
2221 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2222 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2224 $as_echo "$as_me: loading cache $cache_file" >&6;}
2226 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2227 *) .
"./$cache_file";;
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2232 $as_echo "$as_me: creating cache $cache_file" >&6;}
2236 # Check that the precious variables saved in the cache have kept the same
2238 ac_cache_corrupted
=false
2239 for ac_var
in $ac_precious_vars; do
2240 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2241 eval ac_new_set
=\
$ac_env_${ac_var}_set
2242 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2243 eval ac_new_val
=\
$ac_env_${ac_var}_value
2244 case $ac_old_set,$ac_new_set in
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2247 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2248 ac_cache_corrupted
=: ;;
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2251 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2252 ac_cache_corrupted
=: ;;
2255 if test "x$ac_old_val" != "x$ac_new_val"; then
2256 # differences in whitespace do not lead to failure.
2257 ac_old_val_w
=`echo x $ac_old_val`
2258 ac_new_val_w
=`echo x $ac_new_val`
2259 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2260 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2261 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2262 ac_cache_corrupted
=:
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2265 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2266 eval $ac_var=\
$ac_old_val
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2269 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2271 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2274 # Pass precious variables to config.status.
2275 if test "$ac_new_set" = set; then
2277 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2278 *) ac_arg
=$ac_var=$ac_new_val ;;
2280 case " $ac_configure_args " in
2281 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2282 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2286 if $ac_cache_corrupted; then
2287 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2288 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2289 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2290 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2291 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2293 ## -------------------- ##
2294 ## Main body of script. ##
2295 ## -------------------- ##
2298 ac_cpp
='$CPP $CPPFLAGS'
2299 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2300 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2301 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2311 # if PWD already has a value, it is probably wrong.
2312 if test -n "$PWD" ; then PWD
=`${PWDCMD-pwd}`; fi
2314 # Export original configure arguments for use by sub-configures.
2315 # Quote arguments with shell meta charatcers.
2316 TOPLEVEL_CONFIGURE_ARGUMENTS
=
2317 set -- "$progname" "$@"
2321 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2322 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2323 # if the argument is of the form -foo=baz, quote the baz part only
2324 ac_arg
=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2327 # Add the quoted argument to the list.
2328 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2330 if test "$silent" = yes; then
2331 TOPLEVEL_CONFIGURE_ARGUMENTS
="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2333 # Remove the initial space we just introduced and, as these will be
2334 # expanded by make, quote '$'.
2335 TOPLEVEL_CONFIGURE_ARGUMENTS
=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2338 # Find the build, host, and target systems.
2340 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2341 if test -f "$ac_dir/install-sh"; then
2343 ac_install_sh
="$ac_aux_dir/install-sh -c"
2345 elif test -f "$ac_dir/install.sh"; then
2347 ac_install_sh
="$ac_aux_dir/install.sh -c"
2349 elif test -f "$ac_dir/shtool"; then
2351 ac_install_sh
="$ac_aux_dir/shtool install -c"
2355 if test -z "$ac_aux_dir"; then
2356 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2359 # These three variables are undocumented and unsupported,
2360 # and are intended to be withdrawn in a future Autoconf release.
2361 # They can cause serious problems if a builder's source tree is in a directory
2362 # whose full name contains unusual characters.
2363 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2364 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2365 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2368 # Make sure we can run config.sub.
2369 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2370 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2373 $as_echo_n "checking build system type... " >&6; }
2374 if ${ac_cv_build+:} false
; then :
2375 $as_echo_n "(cached) " >&6
2377 ac_build_alias
=$build_alias
2378 test "x$ac_build_alias" = x
&&
2379 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2380 test "x$ac_build_alias" = x
&&
2381 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2382 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2383 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2387 $as_echo "$ac_cv_build" >&6; }
2388 case $ac_cv_build in
2390 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2393 ac_save_IFS
=$IFS; IFS
='-'
2399 # Remember, the first character of IFS is used to create $*,
2400 # except with old shells:
2403 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2406 case ${build_alias} in
2407 "") build_noncanonical
=${build} ;;
2408 *) build_noncanonical
=${build_alias} ;;
2413 case ${host_alias} in
2414 "") host_noncanonical
=${build_noncanonical} ;;
2415 *) host_noncanonical
=${host_alias} ;;
2420 case ${target_alias} in
2421 "") target_noncanonical
=${host_noncanonical} ;;
2422 *) target_noncanonical
=${target_alias} ;;
2428 test "$host_noncanonical" = "$target_noncanonical" &&
2429 test "$program_prefix$program_suffix$program_transform_name" = \
2431 program_transform_name
=s
,y
,y
,
2433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2434 $as_echo_n "checking host system type... " >&6; }
2435 if ${ac_cv_host+:} false
; then :
2436 $as_echo_n "(cached) " >&6
2438 if test "x$host_alias" = x
; then
2439 ac_cv_host
=$ac_cv_build
2441 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2442 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2447 $as_echo "$ac_cv_host" >&6; }
2450 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2453 ac_save_IFS
=$IFS; IFS
='-'
2459 # Remember, the first character of IFS is used to create $*,
2460 # except with old shells:
2463 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2467 $as_echo_n "checking target system type... " >&6; }
2468 if ${ac_cv_target+:} false
; then :
2469 $as_echo_n "(cached) " >&6
2471 if test "x$target_alias" = x
; then
2472 ac_cv_target
=$ac_cv_host
2474 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2475 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2480 $as_echo "$ac_cv_target" >&6; }
2481 case $ac_cv_target in
2483 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2485 target
=$ac_cv_target
2486 ac_save_IFS
=$IFS; IFS
='-'
2492 # Remember, the first character of IFS is used to create $*,
2493 # except with old shells:
2496 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2499 # The aliases save the names the user supplied, while $host etc.
2500 # will get canonicalized.
2501 test -n "$target_alias" &&
2502 test "$program_prefix$program_suffix$program_transform_name" = \
2504 program_prefix
=${target_alias}-
2506 test "$program_prefix" != NONE
&&
2507 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2508 # Use a double $ so make ignores it.
2509 test "$program_suffix" != NONE
&&
2510 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2511 # Double any \ or $.
2512 # By default was `s,x,x', remove it if useless.
2513 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2514 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2518 # Get 'install' or 'install-sh' and its variants.
2519 # Find a good install program. We prefer a C program (faster),
2520 # so one script is as good as another. But avoid the broken or
2521 # incompatible versions:
2522 # SysV /etc/install, /usr/sbin/install
2523 # SunOS /usr/etc/install
2524 # IRIX /sbin/install
2526 # AmigaOS /C/install, which installs bootblocks on floppy discs
2527 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2528 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2529 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2530 # OS/2's system install, which has a completely different semantic
2531 # ./install, which can be erroneously created by make from ./install.sh.
2532 # Reject install programs that cannot install multiple files.
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2534 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2535 if test -z "$INSTALL"; then
2536 if ${ac_cv_path_install+:} false
; then :
2537 $as_echo_n "(cached) " >&6
2539 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2543 test -z "$as_dir" && as_dir
=.
2544 # Account for people who put trailing slashes in PATH elements.
2545 case $as_dir/ in #((
2546 .
/ | .
// |
/[cC
]/* | \
2547 /etc
/* |
/usr
/sbin
/* |
/usr
/etc
/* |
/sbin
/* |
/usr
/afsws
/bin
/* | \
2548 ?
:[\\/]os2
[\\/]install[\\/]* | ?
:[\\/]OS2
[\\/]INSTALL
[\\/]* | \
2551 # OSF1 and SCO ODT 3.0 have their own names for install.
2552 # Don't use installbsd from OSF since it installs stuff as root
2554 for ac_prog
in ginstall scoinst
install; do
2555 for ac_exec_ext
in '' $ac_executable_extensions; do
2556 if as_fn_executable_p
"$as_dir/$ac_prog$ac_exec_ext"; then
2557 if test $ac_prog = install &&
2558 grep dspmsg
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2559 # AIX install. It has an incompatible calling convention.
2561 elif test $ac_prog = install &&
2562 grep pwplus
"$as_dir/$ac_prog$ac_exec_ext" >/dev
/null
2>&1; then
2563 # program-specific install script used by HP pwplus--don't use.
2566 rm -rf conftest.one conftest.two conftest.dir
2567 echo one
> conftest.one
2568 echo two
> conftest.two
2570 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two
"`pwd`/conftest.dir" &&
2571 test -s conftest.one
&& test -s conftest.two
&&
2572 test -s conftest.dir
/conftest.one
&&
2573 test -s conftest.dir
/conftest.two
2575 ac_cv_path_install
="$as_dir/$ac_prog$ac_exec_ext -c"
2588 rm -rf conftest.one conftest.two conftest.dir
2591 if test "${ac_cv_path_install+set}" = set; then
2592 INSTALL
=$ac_cv_path_install
2594 # As a last resort, use the slow shell script. Don't cache a
2595 # value for INSTALL within a source directory, because that will
2596 # break other packages using the cache if that directory is
2597 # removed, or if the value is a relative name.
2598 INSTALL
=$ac_install_sh
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2602 $as_echo "$INSTALL" >&6; }
2604 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2605 # It thinks the first close brace ends the variable substitution.
2606 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
2608 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL}'
2610 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2613 $as_echo_n "checking whether ln works... " >&6; }
2614 if ${acx_cv_prog_LN+:} false
; then :
2615 $as_echo_n "(cached) " >&6
2617 rm -f conftestdata_t
2618 echo >conftestdata_f
2619 if ln conftestdata_f conftestdata_t
2>/dev
/null
2625 rm -f conftestdata_f conftestdata_t
2628 if test $acx_cv_prog_LN = no
; then
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2631 $as_echo "no, using $LN" >&6; }
2633 LN
="$acx_cv_prog_LN"
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2635 $as_echo "yes" >&6; }
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2639 $as_echo_n "checking whether ln -s works... " >&6; }
2641 if test "$LN_S" = "ln -s"; then
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2643 $as_echo "yes" >&6; }
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2646 $as_echo "no, using $LN_S" >&6; }
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2650 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2651 if ${ac_cv_path_SED+:} false
; then :
2652 $as_echo_n "(cached) " >&6
2654 ac_script
=s
/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb
/
2655 for ac_i
in 1 2 3 4 5 6 7; do
2656 ac_script
="$ac_script$as_nl$ac_script"
2658 echo "$ac_script" 2>/dev
/null |
sed 99q
>conftest.
sed
2659 { ac_script
=; unset ac_script
;}
2660 if test -z "$SED"; then
2661 ac_path_SED_found
=false
2662 # Loop through the user's path and test for each of PROGNAME-LIST
2663 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2667 test -z "$as_dir" && as_dir
=.
2668 for ac_prog
in sed gsed
; do
2669 for ac_exec_ext
in '' $ac_executable_extensions; do
2670 ac_path_SED
="$as_dir/$ac_prog$ac_exec_ext"
2671 as_fn_executable_p
"$ac_path_SED" ||
continue
2672 # Check for GNU ac_path_SED and select it if it is found.
2673 # Check for GNU $ac_path_SED
2674 case `"$ac_path_SED" --version 2>&1` in
2676 ac_cv_path_SED
="$ac_path_SED" ac_path_SED_found
=:;;
2679 $as_echo_n 0123456789 >"conftest.in"
2682 cat "conftest.in" "conftest.in" >"conftest.tmp"
2683 mv "conftest.tmp" "conftest.in"
2684 cp "conftest.in" "conftest.nl"
2685 $as_echo '' >> "conftest.nl"
2686 "$ac_path_SED" -f conftest.
sed < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
2687 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
2688 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
2689 if test $ac_count -gt ${ac_path_SED_max-0}; then
2690 # Best one so far, save it but keep looking for a better one
2691 ac_cv_path_SED
="$ac_path_SED"
2692 ac_path_SED_max
=$ac_count
2694 # 10*(2^10) chars as input seems more than enough
2695 test $ac_count -gt 10 && break
2697 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
2700 $ac_path_SED_found && break 3
2705 if test -z "$ac_cv_path_SED"; then
2706 as_fn_error $?
"no acceptable sed could be found in \$PATH" "$LINENO" 5
2713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2714 $as_echo "$ac_cv_path_SED" >&6; }
2715 SED
="$ac_cv_path_SED"
2718 for ac_prog
in gawk mawk nawk
awk
2720 # Extract the first word of "$ac_prog", so it can be a program name with args.
2721 set dummy
$ac_prog; ac_word
=$2
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2723 $as_echo_n "checking for $ac_word... " >&6; }
2724 if ${ac_cv_prog_AWK+:} false
; then :
2725 $as_echo_n "(cached) " >&6
2727 if test -n "$AWK"; then
2728 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2730 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2734 test -z "$as_dir" && as_dir
=.
2735 for ac_exec_ext
in '' $ac_executable_extensions; do
2736 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
2737 ac_cv_prog_AWK
="$ac_prog"
2738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2748 if test -n "$AWK"; then
2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2750 $as_echo "$AWK" >&6; }
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2753 $as_echo "no" >&6; }
2757 test -n "$AWK" && break
2761 srcpwd
=`cd ${srcdir} ; ${PWDCMD-pwd}`
2763 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2765 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2766 INSTALL
="${srcpwd}/install-sh -c"
2769 # Set srcdir to "." if that's what it is.
2770 # This is important for multilib support.
2772 if test "${pwd}" = "${srcpwd}" ; then
2780 ### To add a new directory to the tree, first choose whether it is a target
2781 ### or a host dependent tool. Then put it into the appropriate list
2782 ### (library or tools, host or target), doing a dependency sort.
2784 # Subdirs will be configured in the order listed in build_configdirs,
2785 # configdirs, or target_configdirs; see the serialization section below.
2787 # Dependency sorting is only needed when *configuration* must be done in
2788 # a particular order. In all cases a dependency should be specified in
2789 # the Makefile, whether or not it's implicitly specified here.
2791 # Double entries in build_configdirs, configdirs, or target_configdirs may
2792 # cause circular dependencies and break everything horribly.
2794 # these library is used by various programs built for the build
2797 build_libs
="build-libiberty build-libcpp"
2799 # these tools are built for the build environment
2800 build_tools
="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2802 # these libraries are used by various programs built for the host environment
2804 host_libs
="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2806 # these tools are built for the host environment
2807 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2808 # know that we are building the simulator.
2809 # binutils, gas and ld appear in that order because it makes sense to run
2810 # "make check" in that particular order.
2811 # If --enable-gold is used, "gold" may replace "ld".
2812 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"
2814 # these libraries are built for the target environment, and are built after
2815 # the host libraries and the host tools (which may be a cross compiler)
2816 # Note that libiberty is not a target library.
2817 target_libraries
="target-libgcc \
2818 target-libbacktrace \
2822 target-liboffloadmic \
2825 target-libstdc++-v3 \
2826 target-libsanitizer \
2829 target-libquadmath \
2830 target-libgfortran \
2838 # these tools are built using the target libraries, and are intended to
2839 # run only in the target environment
2841 # note: any program that *uses* libraries that are in the "target_libraries"
2842 # list belongs in this list.
2844 target_tools
="target-rda"
2846 ################################################################################
2848 ## All tools belong in one of the four categories, and are assigned above
2849 ## We assign ${configdirs} this way to remove all embedded newlines. This
2850 ## is important because configure will choke if they ever get through.
2851 ## ${configdirs} is directories we build using the host tools.
2852 ## ${target_configdirs} is directories we build using the target tools.
2853 configdirs
=`echo ${host_libs} ${host_tools}`
2854 target_configdirs
=`echo ${target_libraries} ${target_tools}`
2855 build_configdirs
=`echo ${build_libs} ${build_tools}`
2859 ################################################################################
2861 srcname
="gnu development package"
2863 # This gets set non-empty for some net releases of packages.
2866 # Define is_cross_compiler to save on calls to 'test'.
2868 if test x
"${host}" = x
"${target}" ; then
2869 is_cross_compiler
=no
2871 is_cross_compiler
=yes
2874 # Find the build and target subdir names.
2876 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2877 # have matching libraries, they should use host libraries: Makefile.tpl
2878 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2879 # However, they still use the build modules, because the corresponding
2880 # host modules (e.g. bison) are only built for the host when bootstrap
2882 # - build_subdir is where we find build modules, and never changes.
2883 # - build_libsubdir is where we find build libraries, and can be overridden.
2885 # Prefix 'build-' so this never conflicts with target_subdir.
2886 build_subdir
="build-${build_noncanonical}"
2888 # Check whether --with-build-libsubdir was given.
2889 if test "${with_build_libsubdir+set}" = set; then :
2890 withval
=$with_build_libsubdir; build_libsubdir
="$withval"
2892 build_libsubdir
="$build_subdir"
2895 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2896 if ( test $srcdir = .
&& test -d gcc
) \
2897 ||
test -d $srcdir/..
/host-
${host_noncanonical}; then
2898 host_subdir
="host-${host_noncanonical}"
2903 target_subdir
=${target_noncanonical}
2905 # Be sure to cover against remnants of an in-tree build.
2906 if test $srcdir != .
&& test -d $srcdir/host-
${host_noncanonical}; then
2907 as_fn_error $?
"building out of tree but $srcdir contains host-${host_noncanonical}.
2908 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2911 # Skipdirs are removed silently.
2913 # Noconfigdirs are removed loudly.
2917 # Make sure we don't let GNU ld be added if we didn't want it.
2918 if test x
$with_gnu_ld = xno
; then
2920 noconfigdirs
="$noconfigdirs ld gold"
2924 # Make sure we don't let GNU as be added if we didn't want it.
2925 if test x
$with_gnu_as = xno
; then
2927 noconfigdirs
="$noconfigdirs gas"
2932 # Check whether --with-system-zlib was given.
2933 if test "${with_system_zlib+set}" = set; then :
2934 withval
=$with_system_zlib;
2937 # Make sure we don't let ZLIB be added if we didn't want it.
2938 if test x
$with_system_zlib = xyes
; then
2939 use_included_zlib
=no
2940 noconfigdirs
="$noconfigdirs zlib"
2943 # some tools are so dependent upon X11 that if we're not building with X,
2944 # it's not even worth trying to configure, much less build, that tool.
2947 yes |
"") ;; # the default value for this tree is that X11 is available
2949 skipdirs
="${skipdirs} tk itcl libgui"
2950 # We won't be able to build gdbtk without X.
2953 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2956 # Some are only suitable for cross toolchains.
2957 # Remove these if host=target.
2958 cross_only
="target-libgloss target-newlib target-opcodes"
2960 case $is_cross_compiler in
2961 no
) skipdirs
="${skipdirs} ${cross_only}" ;;
2964 # If both --with-headers and --with-libs are specified, default to
2966 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno \
2967 && test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
2968 if test x
"${with_newlib}" = x
; then
2973 # Recognize --with-newlib/--without-newlib.
2974 case ${with_newlib} in
2975 no
) skipdirs
="${skipdirs} target-newlib" ;;
2976 yes) skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2979 # Check whether --enable-as-accelerator-for was given.
2980 if test "${enable_as_accelerator_for+set}" = set; then :
2981 enableval
=$enable_as_accelerator_for;
2985 # Check whether --enable-offload-targets was given.
2986 if test "${enable_offload_targets+set}" = set; then :
2987 enableval
=$enable_offload_targets;
2988 if test x
"$enable_offload_targets" = x
; then
2989 as_fn_error $?
"no offload targets specified" "$LINENO" 5
2993 enable_offload_targets
=
2997 # Check whether --enable-offload-defaulted was given.
2998 if test "${enable_offload_defaulted+set}" = set; then :
2999 enableval
=$enable_offload_defaulted; enable_offload_defaulted
=$enableval
3001 enable_offload_defaulted
=
3005 # Handle --enable-gold, --enable-ld.
3006 # --disable-gold [--enable-ld]
3007 # Build only ld. Default option.
3008 # --enable-gold [--enable-ld]
3009 # Build both gold and ld. Install gold as "ld.gold", install ld
3010 # as "ld.bfd" and "ld".
3011 # --enable-gold=default [--enable-ld]
3012 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3013 # install ld as "ld.bfd".
3014 # --enable-gold[=default] --disable-ld
3015 # Build only gold, which is then installed as both "ld.gold" and "ld".
3016 # --enable-gold --enable-ld=default
3017 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3019 # In other words, ld is default
3020 # --enable-gold=default --enable-ld=default
3024 # Check whether --enable-gold was given.
3025 if test "${enable_gold+set}" = set; then :
3026 enableval
=$enable_gold; ENABLE_GOLD
=$enableval
3031 case "${ENABLE_GOLD}" in
3033 # Check for ELF target.
3036 *-*-elf* |
*-*-sysv4* |
*-*-unixware* |
*-*-eabi* | hppa
*64*-*-hpux* \
3037 |
*-*-linux* |
*-*-gnu* | frv-
*-uclinux* |
*-*-irix5* |
*-*-irix6* \
3038 |
*-*-netbsd* |
*-*-openbsd* |
*-*-freebsd* |
*-*-dragonfly* \
3039 |
*-*-solaris2* |
*-*-nto* |
*-*-nacl*)
3041 *-*-linux*aout
* |
*-*-linux*oldld
*)
3049 if test "$is_elf" = "yes"; then
3050 # Check for target supported by gold.
3052 i?
86-*-* | x86_64-
*-* | sparc
*-*-* | powerpc
*-*-* | arm
*-*-* \
3053 | aarch64
*-*-* | tilegx
*-*-* | mips
*-*-* | s390
*-*-*)
3054 configdirs
="$configdirs gold"
3055 if test x
${ENABLE_GOLD} = xdefault
; then
3066 as_fn_error $?
"invalid --enable-gold argument" "$LINENO" 5
3070 # Check whether --enable-ld was given.
3071 if test "${enable_ld+set}" = set; then :
3072 enableval
=$enable_ld; ENABLE_LD
=$enableval
3078 case "${ENABLE_LD}" in
3080 if test x
${default_ld} != x
; then
3081 as_fn_error $?
"either gold or ld can be the default ld" "$LINENO" 5
3087 if test x
${ENABLE_GOLD} != xyes
; then
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3089 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3091 configdirs
=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3094 as_fn_error $?
"invalid --enable-ld argument" "$LINENO" 5
3099 # Decide the default method for compressing debug sections.
3100 # Provide a configure time option to override our default.
3101 # Check whether --enable-compressed_debug_sections was given.
3102 if test "${enable_compressed_debug_sections+set}" = set; then :
3103 enableval
=$enable_compressed_debug_sections;
3104 if test x
"$enable_compressed_debug_sections" = xyes
; then
3105 as_fn_error $?
"no program with compressed debug sections specified" "$LINENO" 5
3109 enable_compressed_debug_sections
=
3113 # Configure extra directories which are host specific
3117 configdirs
="$configdirs libtermcap" ;;
3120 # A target can indicate whether a language isn't supported for some reason.
3121 # Only spaces may be used in this macro; not newlines or tabs.
3122 unsupported_languages
=
3124 # Remove more programs from consideration, based on the host or
3125 # target this usually means that a port of the program doesn't
3129 i
[3456789]86-*-msdosdjgpp*)
3130 noconfigdirs
="$noconfigdirs tcl tk itcl"
3135 # Check whether --enable-libquadmath was given.
3136 if test "${enable_libquadmath+set}" = set; then :
3137 enableval
=$enable_libquadmath; ENABLE_LIBQUADMATH
=$enableval
3139 ENABLE_LIBQUADMATH
=yes
3142 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3143 noconfigdirs
="$noconfigdirs target-libquadmath"
3147 # Check whether --enable-libquadmath-support was given.
3148 if test "${enable_libquadmath_support+set}" = set; then :
3149 enableval
=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT
=$enableval
3151 ENABLE_LIBQUADMATH_SUPPORT
=yes
3154 enable_libquadmath_support
=
3155 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3156 enable_libquadmath_support
=no
3160 # Check whether --enable-libada was given.
3161 if test "${enable_libada+set}" = set; then :
3162 enableval
=$enable_libada; ENABLE_LIBADA
=$enableval
3167 if test "${ENABLE_LIBADA}" != "yes" ; then
3168 noconfigdirs
="$noconfigdirs gnattools"
3171 # Check whether --enable-libssp was given.
3172 if test "${enable_libssp+set}" = set; then :
3173 enableval
=$enable_libssp; ENABLE_LIBSSP
=$enableval
3179 # Check whether --enable-libstdcxx was given.
3180 if test "${enable_libstdcxx+set}" = set; then :
3181 enableval
=$enable_libstdcxx; ENABLE_LIBSTDCXX
=$enableval
3183 ENABLE_LIBSTDCXX
=default
3186 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3187 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3190 # If this is accelerator compiler and its target is intelmic we enable
3191 # target liboffloadmic by default. If this is compiler with offloading
3192 # for intelmic we enable host liboffloadmic by default. Otherwise
3193 # liboffloadmic is disabled by default.
3194 # Check whether --enable-liboffloadmic was given.
3195 if test "${enable_liboffloadmic+set}" = set; then :
3196 enableval
=$enable_liboffloadmic; case "$enableval" in
3198 enable_liboffloadmic
=$enableval ;;
3200 as_fn_error $?
"--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3203 if test x
"$enable_as_accelerator_for" != x
; then
3205 *-intelmic-* |
*-intelmicemul-*)
3206 enable_liboffloadmic
=target
3207 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=target"
3210 enable_liboffloadmic
=no
3214 case "${enable_offload_targets}" in
3215 *-intelmic-* |
*-intelmicemul-*)
3216 enable_liboffloadmic
=host
3217 extra_liboffloadmic_configure_flags
="--enable-liboffloadmic=host"
3220 enable_liboffloadmic
=no
3228 # Enable libgomp by default on hosted POSIX systems, and a few others.
3229 if test x
$enable_libgomp = x
; then
3231 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3233 *-*-netbsd* |
*-*-freebsd* |
*-*-openbsd* |
*-*-dragonfly*)
3235 *-*-solaris2* |
*-*-hpux11*)
3237 *-*-darwin* |
*-*-aix*)
3239 nvptx
*-*-* | amdgcn
*-*-*)
3242 noconfigdirs
="$noconfigdirs target-libgomp"
3247 # Disable libatomic on unsupported systems.
3248 if test -d ${srcdir}/libatomic
; then
3249 if test x
$enable_libatomic = x
; then
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3251 $as_echo_n "checking for libatomic support... " >&6; }
3252 if (srcdir
=${srcdir}/libatomic
; \
3253 .
${srcdir}/configure.tgt
; \
3254 test -n "$UNSUPPORTED")
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 noconfigdirs
="$noconfigdirs target-libatomic"
3260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3261 $as_echo "yes" >&6; }
3266 # Disable liboffloadmic on unsupported systems.
3267 if test -d ${srcdir}/liboffloadmic
; then
3268 if test x
$enable_liboffloadmic != xno
; then
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3270 $as_echo_n "checking for liboffloadmic support... " >&6; }
3271 if (srcdir
=${srcdir}/liboffloadmic
; \
3272 .
${srcdir}/configure.tgt
; \
3273 test -n "$UNSUPPORTED")
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3276 $as_echo "no" >&6; }
3277 noconfigdirs
="$noconfigdirs target-liboffloadmic"
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3280 $as_echo "yes" >&6; }
3285 # Disable libitm on unsupported systems.
3286 if test -d ${srcdir}/libitm
; then
3287 if test x
$enable_libitm = x
; then
3288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3289 $as_echo_n "checking for libitm support... " >&6; }
3290 if (srcdir
=${srcdir}/libitm
; \
3291 .
${srcdir}/configure.tgt
; \
3292 test -n "$UNSUPPORTED")
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3295 $as_echo "no" >&6; }
3296 noconfigdirs
="$noconfigdirs target-libitm"
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3299 $as_echo "yes" >&6; }
3304 # Disable libsanitizer on unsupported systems.
3305 if test -d ${srcdir}/libsanitizer
; then
3306 if test x
$enable_libsanitizer = x
; then
3307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3308 $as_echo_n "checking for libsanitizer support... " >&6; }
3309 if (srcdir
=${srcdir}/libsanitizer
; \
3310 .
${srcdir}/configure.tgt
; \
3311 test -n "$UNSUPPORTED")
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3315 noconfigdirs
="$noconfigdirs target-libsanitizer"
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3318 $as_echo "yes" >&6; }
3323 # Disable libvtv on unsupported systems.
3324 if test -d ${srcdir}/libvtv
; then
3325 if test x
$enable_libvtv = x
; then
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3327 $as_echo_n "checking for libvtv support... " >&6; }
3328 if (srcdir
=${srcdir}/libvtv
; \
3329 .
${srcdir}/configure.tgt
; \
3330 test "$VTV_SUPPORTED" != "yes")
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 noconfigdirs
="$noconfigdirs target-libvtv"
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337 $as_echo "yes" >&6; }
3342 # Disable libquadmath for some systems.
3345 noconfigdirs
="$noconfigdirs target-libquadmath"
3347 # libquadmath is unused on AIX and libquadmath build process use of
3348 # LD_LIBRARY_PATH can break AIX bootstrap.
3349 powerpc-
*-aix* | rs6000-
*-aix*)
3350 noconfigdirs
="$noconfigdirs target-libquadmath"
3354 # Disable libssp for some systems.
3357 # No hosted I/O support.
3358 noconfigdirs
="$noconfigdirs target-libssp"
3361 noconfigdirs
="$noconfigdirs target-libssp"
3363 powerpc-
*-aix* | rs6000-
*-aix*)
3364 noconfigdirs
="$noconfigdirs target-libssp"
3367 # No hosted I/O support.
3368 noconfigdirs
="$noconfigdirs target-libssp"
3371 # libssp uses a misaligned load to trigger a fault, but the RL78
3372 # doesn't fault for those - instead, it gives a build-time error
3373 # for explicit misaligned loads.
3374 noconfigdirs
="$noconfigdirs target-libssp"
3377 # No hosted I/O support.
3378 noconfigdirs
="$noconfigdirs target-libssp"
3382 # Disable libstdc++-v3 for some systems.
3383 # Allow user to override this if they pass --enable-libstdc++-v3
3384 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3387 # VxWorks uses the Dinkumware C++ library.
3388 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3391 # Not ported/fails to build when using newlib.
3392 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3395 # the C++ libraries don't build on top of CE's C libraries
3396 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3399 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3402 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3405 noconfigdirs
="$noconfigdirs target-libstdc++-v3"
3410 # Disable C++ on systems where it is known to not work.
3411 # For testing, you can override this with --enable-languages=c++.
3412 case ,${enable_languages}, in
3418 unsupported_languages
="$unsupported_languages c++"
3424 # Disable Objc on systems where it is known to not work.
3425 # For testing, you can override this with --enable-languages=objc.
3426 case ,${enable_languages}, in
3432 unsupported_languages
="$unsupported_languages objc"
3438 # Disable D on systems where it is known to not work.
3439 # For testing, you can override this with --enable-languages=d.
3440 case ,${enable_languages}, in
3446 unsupported_languages
="$unsupported_languages d"
3452 # Disable libphobos on unsupported systems.
3453 # For testing, you can override this with --enable-libphobos.
3454 if test -d ${srcdir}/libphobos
; then
3455 if test x
$enable_libphobos = x
; then
3456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3457 $as_echo_n "checking for libphobos support... " >&6; }
3458 if (srcdir
=${srcdir}/libphobos
; \
3459 .
${srcdir}/configure.tgt
; \
3460 test "$LIBPHOBOS_SUPPORTED" != "yes")
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3463 $as_echo "no" >&6; }
3464 noconfigdirs
="$noconfigdirs target-libphobos"
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3467 $as_echo "yes" >&6; }
3472 # Disable Fortran for some systems.
3475 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3476 unsupported_languages
="$unsupported_languages fortran"
3479 unsupported_languages
="$unsupported_languages fortran"
3483 # Disable libffi for some systems.
3487 i
[3456789]86-*-darwin*)
3489 x86_64-
*-darwin[912]*)
3492 noconfigdirs
="$noconfigdirs target-libffi"
3495 noconfigdirs
="$noconfigdirs target-libffi"
3498 noconfigdirs
="$noconfigdirs target-libffi"
3501 noconfigdirs
="$noconfigdirs target-libffi"
3504 noconfigdirs
="$noconfigdirs target-libffi"
3507 noconfigdirs
="$noconfigdirs target-libffi"
3510 noconfigdirs
="$noconfigdirs target-libffi"
3512 aarch64
*-*-freebsd*)
3513 noconfigdirs
="$noconfigdirs target-libffi"
3516 noconfigdirs
="$noconfigdirs target-libffi"
3519 noconfigdirs
="$noconfigdirs target-libffi"
3522 noconfigdirs
="$noconfigdirs target-libffi"
3525 noconfigdirs
="$noconfigdirs target-libffi"
3528 noconfigdirs
="$noconfigdirs target-libffi"
3530 cris-
*-* | crisv32-
*-*)
3534 *) # See PR46792 regarding target-libffi.
3535 noconfigdirs
="$noconfigdirs target-libffi";;
3539 noconfigdirs
="$noconfigdirs target-libffi"
3544 noconfigdirs
="$noconfigdirs target-libffi"
3547 noconfigdirs
="$noconfigdirs target-libffi"
3549 i
[3456789]86-w64-mingw*)
3550 noconfigdirs
="$noconfigdirs target-libffi"
3552 i
[3456789]86-*-mingw*)
3553 noconfigdirs
="$noconfigdirs target-libffi"
3556 noconfigdirs
="$noconfigdirs target-libffi"
3559 noconfigdirs
="$noconfigdirs target-libffi"
3566 noconfigdirs
="$noconfigdirs target-libffi"
3569 noconfigdirs
="$noconfigdirs target-libffi"
3573 # Disable the go frontend on systems where it is known to not work. Please keep
3574 # this in sync with contrib/config-list.mk.
3576 *-*-darwin* |
*-*-cygwin* |
*-*-mingw* | bpf-
* )
3577 unsupported_languages
="$unsupported_languages go"
3581 # Only allow gdbserver on some systems.
3582 if test -d ${srcdir}/gdbserver
; then
3583 if test x
$enable_gdbserver = x
; then
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3585 $as_echo_n "checking for gdbserver support... " >&6; }
3586 if (srcdir
=${srcdir}/gdbserver
; \
3587 .
${srcdir}/configure.srv
; \
3588 test -n "$UNSUPPORTED")
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3591 $as_echo "no" >&6; }
3592 noconfigdirs
="$noconfigdirs gdbserver"
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3595 $as_echo "yes" >&6; }
3600 # Disable libgo for some systems where it is known to not work.
3601 # For testing, you can easily override this with --enable-libgo.
3602 if test x
$enable_libgo = x
; then
3606 noconfigdirs
="$noconfigdirs target-libgo"
3608 *-*-cygwin* |
*-*-mingw*)
3609 noconfigdirs
="$noconfigdirs target-libgo"
3612 noconfigdirs
="$noconfigdirs target-libgo"
3617 # Default libgloss CPU subdirectory.
3618 libgloss_dir
="$target_cpu"
3621 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3625 libgloss_dir
=aarch64
3630 cris-
*-* | crisv32-
*-*)
3639 m68hc11-
*-*|m6811-
*-*|m68hc12-
*-*|m6812-
*-*)
3640 libgloss_dir
=m68hc11
3642 m68
*-*-* | fido-
*-*)
3659 # Disable newlib and libgloss for various target OSes.
3662 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3664 i
[3456789]86-*-linux*)
3665 # This section makes it possible to build newlib natively on linux.
3666 # If we are using a cross compiler then don't configure newlib.
3667 if test x
${is_cross_compiler} != xno
; then
3668 noconfigdirs
="$noconfigdirs target-newlib"
3670 noconfigdirs
="$noconfigdirs target-libgloss"
3671 # If we are not using a cross compiler, do configure newlib.
3672 # Note however, that newlib will only be configured in this situation
3673 # if the --with-newlib option has been given, because otherwise
3674 # 'target-newlib' will appear in skipdirs.
3676 i
[3456789]86-*-rdos*)
3677 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3679 sh
*-*-pe|mips
*-*-pe|arm-wince-pe
)
3680 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3683 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3686 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3689 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3692 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3695 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3698 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3701 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3703 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
3704 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3707 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3710 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3713 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3716 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3719 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3722 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3725 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3733 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3734 noconfigdirs
="$noconfigdirs sim target-rda"
3739 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3740 noconfigdirs
="$noconfigdirs sim target-rda"
3743 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3744 noconfigdirs
="$noconfigdirs sim target-rda"
3746 i
[3456789]86-*-darwin*)
3747 noconfigdirs
="$noconfigdirs ld gprof"
3748 noconfigdirs
="$noconfigdirs sim target-rda"
3750 x86_64-
*-darwin[912]*)
3751 noconfigdirs
="$noconfigdirs ld gas gprof"
3752 noconfigdirs
="$noconfigdirs sim target-rda"
3755 noconfigdirs
="$noconfigdirs ld gas gdb gprof"
3756 noconfigdirs
="$noconfigdirs sim target-rda"
3761 if test "x$with_gmp" = x
&& test "x$with_gmp_dir" = x \
3762 && ! test -d ${srcdir}/gmp \
3763 && test -f /usr
/local
/include
/gmp.h
; then
3768 # Remove unsupported stuff on all kaOS configurations.
3769 noconfigdirs
="$noconfigdirs target-libgloss"
3776 noconfigdirs
="$noconfigdirs target-libgloss"
3779 noconfigdirs
="$noconfigdirs target-libgloss"
3781 # The tpf target doesn't support gdb yet.
3783 noconfigdirs
="$noconfigdirs gdb tcl tk libgui itcl"
3786 noconfigdirs
="$noconfigdirs target-rda"
3791 # ld works, but does not support shared libraries.
3792 # gas doesn't generate exception information.
3793 noconfigdirs
="$noconfigdirs gas ld"
3796 noconfigdirs
="$noconfigdirs gdb target-newlib target-libgloss"
3799 # newlib is not 64 bit ready
3800 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3803 noconfigdirs
="$noconfigdirs target-libobjc target-libbacktrace"
3805 sh
*-*-pe|mips
*-*-pe|
*arm-wince-pe
)
3806 noconfigdirs
="$noconfigdirs tcl tk itcl libgui sim"
3809 noconfigdirs
="$noconfigdirs sim"
3812 noconfigdirs
="$noconfigdirs target-libgloss"
3815 noconfigdirs
="$noconfigdirs ld target-libgloss"
3818 if test x
${with_avrlibc} != xno
; then
3819 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
3822 c4x-
*-* | tic4x-
*-*)
3823 noconfigdirs
="$noconfigdirs target-libgloss"
3826 noconfigdirs
="$noconfigdirs target-libgloss gdb"
3829 noconfigdirs
="$noconfigdirs target-libgloss"
3832 noconfigdirs
="$noconfigdirs gdb"
3835 noconfigdirs
="$noconfigdirs gdb"
3838 noconfigdirs
="$noconfigdirs target-rda gprof"
3841 noconfigdirs
="$noconfigdirs"
3844 noconfigdirs
="$noconfigdirs target-libgloss"
3847 noconfigdirs
="$noconfigdirs target-libgloss"
3849 hppa1.1
-*-osf* | hppa1.1
-*-bsd* )
3852 noconfigdirs
="$noconfigdirs gdb"
3855 noconfigdirs
="$noconfigdirs gdb ld"
3863 hppa
*-*-openbsd* | \
3869 noconfigdirs
="$noconfigdirs ld"
3872 noconfigdirs
="$noconfigdirs gdb"
3875 # No gdb support yet.
3876 noconfigdirs
="$noconfigdirs readline libgui itcl gdb"
3879 # No ld support yet.
3880 noconfigdirs
="$noconfigdirs gdb libgui itcl ld"
3883 # No ld support yet.
3884 noconfigdirs
="$noconfigdirs libgui itcl ld"
3886 i
[3456789]86-w64-mingw*)
3888 i
[3456789]86-*-mingw*)
3889 target_configdirs
="$target_configdirs target-winsup"
3892 target_configdirs
="$target_configdirs target-libtermcap target-winsup"
3893 noconfigdirs
="$noconfigdirs target-libgloss"
3894 # always build newlib if winsup directory is present.
3895 if test -d "$srcdir/winsup/cygwin"; then
3896 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3897 elif test -d "$srcdir/newlib"; then
3898 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3902 noconfigdirs
="$noconfigdirs target-libgloss"
3904 i
[3456789]86-*-sco3.2v5
*)
3905 # The linker does not yet know about weak symbols in COFF,
3906 # and is not configured to handle mixed ELF and COFF.
3907 noconfigdirs
="$noconfigdirs ld target-libgloss"
3909 i
[3456789]86-*-sco*)
3910 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3912 i
[3456789]86-*-solaris2* | x86_64-
*-solaris2.1
[0-9]*)
3913 noconfigdirs
="$noconfigdirs target-libgloss"
3915 i
[3456789]86-*-sysv4*)
3916 noconfigdirs
="$noconfigdirs target-libgloss"
3918 i
[3456789]86-*-beos*)
3919 noconfigdirs
="$noconfigdirs gdb"
3921 i
[3456789]86-*-rdos*)
3922 noconfigdirs
="$noconfigdirs gdb"
3925 noconfigdirs
="$noconfigdirs gdb"
3928 noconfigdirs
="$noconfigdirs sim"
3931 noconfigdirs
="$noconfigdirs ld gas gdb gprof sim"
3932 noconfigdirs
="$noconfigdirs $target_libraries"
3935 noconfigdirs
="$noconfigdirs gdb gprof"
3938 # copied from rs6000-*-* entry
3939 noconfigdirs
="$noconfigdirs gprof"
3941 powerpc
*-*-winnt* | powerpc
*-*-pe*)
3942 target_configdirs
="$target_configdirs target-winsup"
3943 noconfigdirs
="$noconfigdirs gdb tcl tk target-libgloss itcl"
3944 # always build newlib.
3945 skipdirs
=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3947 # This is temporary until we can link against shared libraries
3948 powerpcle-
*-solaris*)
3949 noconfigdirs
="$noconfigdirs gdb sim tcl tk itcl"
3952 noconfigdirs
="$noconfigdirs gdb"
3955 noconfigdirs
="$noconfigdirs gprof"
3958 noconfigdirs
="$noconfigdirs gprof"
3961 noconfigdirs
="$noconfigdirs gprof"
3964 noconfigdirs
="$noconfigdirs ld binutils gprof target-libgloss"
3967 noconfigdirs
="$noconfigdirs gprof"
3969 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
3970 if test x
$with_newlib = xyes
; then
3971 noconfigdirs
="$noconfigdirs gprof"
3975 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3978 noconfigdirs
="$noconfigdirs gprof target-libgloss"
3981 noconfigdirs
="$noconfigdirs ld gas gprof target-libgloss"
3985 mips
*-*-ultrix* | mips
*-*-osf* | mips
*-*-ecoff* | mips
*-*-pe* \
3986 | mips
*-*-irix* | mips
*-*-lnews* | mips
*-*-riscos*)
3987 noconfigdirs
="$noconfigdirs ld gas gprof"
3990 noconfigdirs
="$noconfigdirs gprof"
3993 noconfigdirs
="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4000 noconfigdirs
="$noconfigdirs target-libgloss" ;;
4004 if test x
${is_cross_compiler} = xno
; then
4009 noconfigdirs
="$noconfigdirs sim"
4011 tilepro
*-*-* | tilegx
*-*-*)
4012 noconfigdirs
="$noconfigdirs sim"
4015 noconfigdirs
="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4018 noconfigdirs
="$noconfigdirs target-newlib target-libgloss"
4021 noconfigdirs
="$noconfigdirs ld"
4025 # If we aren't building newlib, then don't build libgloss, since libgloss
4026 # depends upon some newlib header files.
4027 case "${noconfigdirs}" in
4028 *target-libgloss
*) ;;
4029 *target-newlib
*) noconfigdirs
="$noconfigdirs target-libgloss" ;;
4032 # Work in distributions that contain no compiler tools, like Autoconf.
4033 host_makefile_frag
=/dev
/null
4034 if test -d ${srcdir}/config
; then
4036 i
[3456789]86-*-msdosdjgpp*)
4037 host_makefile_frag
="config/mh-djgpp"
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4042 $as_echo_n "checking to see if cat works as expected... " >&6; }
4043 echo a
>cygwin-cat-check
4044 if test `cat cygwin-cat-check` = a
; then
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4047 $as_echo "yes" >&6; }
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4051 $as_echo "no" >&6; }
4052 as_fn_error $?
"The cat command does not ignore carriage return characters.
4053 Please either mount the build directory in binary mode or run the following
4054 commands before running any configure script:
4060 host_makefile_frag
="config/mh-cygwin"
4063 host_makefile_frag
="config/mh-mingw"
4066 host_makefile_frag
="config/mh-alpha-linux"
4069 host_makefile_frag
="config/mh-pa-hpux10"
4072 host_makefile_frag
="config/mh-pa"
4075 host_makefile_frag
="config/mh-pa"
4077 i?
86-*-darwin[89]* | i?
86-*-darwin1[0-7]* | powerpc
*-*-darwin*)
4078 host_makefile_frag
="config/mh-darwin"
4081 host_makefile_frag
="config/mh-ppc-aix"
4084 host_makefile_frag
="config/mh-ppc-aix"
4089 if test "${build}" != "${host}" ; then
4090 AR_FOR_BUILD
=${AR_FOR_BUILD-ar}
4091 AS_FOR_BUILD
=${AS_FOR_BUILD-as}
4092 CC_FOR_BUILD
=${CC_FOR_BUILD-gcc}
4093 CXX_FOR_BUILD
=${CXX_FOR_BUILD-g++}
4094 DSYMUTIL_FOR_BUILD
=${DSYMUTIL_FOR_BUILD-dsymutil}
4095 GFORTRAN_FOR_BUILD
=${GFORTRAN_FOR_BUILD-gfortran}
4096 GOC_FOR_BUILD
=${GOC_FOR_BUILD-gccgo}
4097 GDC_FOR_BUILD
=${GDC_FOR_BUILD-gdc}
4098 DLLTOOL_FOR_BUILD
=${DLLTOOL_FOR_BUILD-dlltool}
4099 LD_FOR_BUILD
=${LD_FOR_BUILD-ld}
4100 NM_FOR_BUILD
=${NM_FOR_BUILD-nm}
4101 RANLIB_FOR_BUILD
=${RANLIB_FOR_BUILD-ranlib}
4102 WINDRES_FOR_BUILD
=${WINDRES_FOR_BUILD-windres}
4103 WINDMC_FOR_BUILD
=${WINDMC_FOR_BUILD-windmc}
4105 AR_FOR_BUILD
="\$(AR)"
4106 AS_FOR_BUILD
="\$(AS)"
4107 CC_FOR_BUILD
="\$(CC)"
4108 CXX_FOR_BUILD
="\$(CXX)"
4109 DSYMUTIL_FOR_BUILD
="\$(DSYMUTIL)"
4110 GFORTRAN_FOR_BUILD
="\$(GFORTRAN)"
4111 GOC_FOR_BUILD
="\$(GOC)"
4112 GDC_FOR_BUILD
="\$(GDC)"
4113 DLLTOOL_FOR_BUILD
="\$(DLLTOOL)"
4114 LD_FOR_BUILD
="\$(LD)"
4115 NM_FOR_BUILD
="\$(NM)"
4116 RANLIB_FOR_BUILD
="\$(RANLIB)"
4117 WINDRES_FOR_BUILD
="\$(WINDRES)"
4118 WINDMC_FOR_BUILD
="\$(WINDMC)"
4122 ac_cpp
='$CPP $CPPFLAGS'
4123 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4124 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4125 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4126 if test -n "$ac_tool_prefix"; then
4127 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4128 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4130 $as_echo_n "checking for $ac_word... " >&6; }
4131 if ${ac_cv_prog_CC+:} false
; then :
4132 $as_echo_n "(cached) " >&6
4134 if test -n "$CC"; then
4135 ac_cv_prog_CC
="$CC" # Let the user override the test.
4137 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4141 test -z "$as_dir" && as_dir
=.
4142 for ac_exec_ext
in '' $ac_executable_extensions; do
4143 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4144 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
4145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4155 if test -n "$CC"; then
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4157 $as_echo "$CC" >&6; }
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4160 $as_echo "no" >&6; }
4165 if test -z "$ac_cv_prog_CC"; then
4167 # Extract the first word of "gcc", so it can be a program name with args.
4168 set dummy gcc
; ac_word
=$2
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 $as_echo_n "checking for $ac_word... " >&6; }
4171 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4172 $as_echo_n "(cached) " >&6
4174 if test -n "$ac_ct_CC"; then
4175 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4181 test -z "$as_dir" && as_dir
=.
4182 for ac_exec_ext
in '' $ac_executable_extensions; do
4183 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4184 ac_cv_prog_ac_ct_CC
="gcc"
4185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4195 if test -n "$ac_ct_CC"; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4197 $as_echo "$ac_ct_CC" >&6; }
4199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4200 $as_echo "no" >&6; }
4203 if test "x$ac_ct_CC" = x
; then
4206 case $cross_compiling:$ac_tool_warned in
4208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4209 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4210 ac_tool_warned
=yes ;;
4218 if test -z "$CC"; then
4219 if test -n "$ac_tool_prefix"; then
4220 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4221 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
4222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4223 $as_echo_n "checking for $ac_word... " >&6; }
4224 if ${ac_cv_prog_CC+:} false
; then :
4225 $as_echo_n "(cached) " >&6
4227 if test -n "$CC"; then
4228 ac_cv_prog_CC
="$CC" # Let the user override the test.
4230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4234 test -z "$as_dir" && as_dir
=.
4235 for ac_exec_ext
in '' $ac_executable_extensions; do
4236 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4237 ac_cv_prog_CC
="${ac_tool_prefix}cc"
4238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4248 if test -n "$CC"; then
4249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4250 $as_echo "$CC" >&6; }
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4253 $as_echo "no" >&6; }
4259 if test -z "$CC"; then
4260 # Extract the first word of "cc", so it can be a program name with args.
4261 set dummy cc
; ac_word
=$2
4262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4263 $as_echo_n "checking for $ac_word... " >&6; }
4264 if ${ac_cv_prog_CC+:} false
; then :
4265 $as_echo_n "(cached) " >&6
4267 if test -n "$CC"; then
4268 ac_cv_prog_CC
="$CC" # Let the user override the test.
4271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4275 test -z "$as_dir" && as_dir
=.
4276 for ac_exec_ext
in '' $ac_executable_extensions; do
4277 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4278 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4279 ac_prog_rejected
=yes
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4290 if test $ac_prog_rejected = yes; then
4291 # We found a bogon in the path, so make sure we never use it.
4292 set dummy
$ac_cv_prog_CC
4294 if test $# != 0; then
4295 # We chose a different compiler from the bogus one.
4296 # However, it has the same basename, so the bogon will be chosen
4297 # first if we set CC to just the basename; use the full file name.
4299 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
4305 if test -n "$CC"; then
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4307 $as_echo "$CC" >&6; }
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310 $as_echo "no" >&6; }
4315 if test -z "$CC"; then
4316 if test -n "$ac_tool_prefix"; then
4317 for ac_prog
in cl.exe
4319 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4320 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
4321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4322 $as_echo_n "checking for $ac_word... " >&6; }
4323 if ${ac_cv_prog_CC+:} false
; then :
4324 $as_echo_n "(cached) " >&6
4326 if test -n "$CC"; then
4327 ac_cv_prog_CC
="$CC" # Let the user override the test.
4329 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4333 test -z "$as_dir" && as_dir
=.
4334 for ac_exec_ext
in '' $ac_executable_extensions; do
4335 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4336 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
4337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4347 if test -n "$CC"; then
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4349 $as_echo "$CC" >&6; }
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4356 test -n "$CC" && break
4359 if test -z "$CC"; then
4361 for ac_prog
in cl.exe
4363 # Extract the first word of "$ac_prog", so it can be a program name with args.
4364 set dummy
$ac_prog; ac_word
=$2
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366 $as_echo_n "checking for $ac_word... " >&6; }
4367 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
4368 $as_echo_n "(cached) " >&6
4370 if test -n "$ac_ct_CC"; then
4371 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
4373 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4377 test -z "$as_dir" && as_dir
=.
4378 for ac_exec_ext
in '' $ac_executable_extensions; do
4379 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4380 ac_cv_prog_ac_ct_CC
="$ac_prog"
4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4390 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
4391 if test -n "$ac_ct_CC"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4393 $as_echo "$ac_ct_CC" >&6; }
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 $as_echo "no" >&6; }
4400 test -n "$ac_ct_CC" && break
4403 if test "x$ac_ct_CC" = x
; then
4406 case $cross_compiling:$ac_tool_warned in
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4409 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4410 ac_tool_warned
=yes ;;
4419 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4420 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4421 as_fn_error $?
"no acceptable C compiler found in \$PATH
4422 See \`config.log' for more details" "$LINENO" 5; }
4424 # Provide some information about the compiler.
4425 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4428 for ac_option
in --version -v -V -qversion; do
4429 { { ac_try
="$ac_compiler $ac_option >&5"
4431 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4432 *) ac_try_echo=$ac_try;;
4434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4435 $as_echo "$ac_try_echo"; } >&5
4436 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4438 if test -s conftest.err; then
4440 ... rest of stderr output deleted ...
4441 10q' conftest.err >conftest.er1
4442 cat conftest.er1 >&5
4444 rm -f conftest.er1 conftest.err
4445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4446 test $ac_status = 0; }
4449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4450 /* end confdefs.h. */
4460 ac_clean_files_save=$ac_clean_files
4461 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4462 # Try to create an executable without -o first, disregard a.out.
4463 # It will help us diagnose broken compilers, and finding out an intuition
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4466 $as_echo_n "checking whether the C compiler works... " >&6; }
4467 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
4469 # The possible output files:
4470 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4473 for ac_file in $ac_files
4476 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4477 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4482 if { { ac_try="$ac_link_default"
4484 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4485 *) ac_try_echo
=$ac_try;;
4487 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4488 $as_echo "$ac_try_echo"; } >&5
4489 (eval "$ac_link_default") 2>&5
4491 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4492 test $ac_status = 0; }; then :
4493 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4494 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4495 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4496 # so that the user can short-circuit this test for compilers unknown to
4498 for ac_file
in $ac_files ''
4500 test -f "$ac_file" ||
continue
4502 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
4505 # We found the default executable, but exeext='' is most
4509 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
4511 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4513 # We set ac_cv_exeext here because the later test for it is not
4514 # safe: cross compilers may not add the suffix if given an `-o'
4515 # argument, so we may need to know it at that point already.
4516 # Even if this section looks crufty: it has the advantage of
4523 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
4528 if test -z "$ac_file"; then :
4529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4530 $as_echo "no" >&6; }
4531 $as_echo "$as_me: failed program was:" >&5
4532 sed 's/^/| /' conftest.
$ac_ext >&5
4534 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4536 as_fn_error
77 "C compiler cannot create executables
4537 See \`config.log' for more details" "$LINENO" 5; }
4539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4540 $as_echo "yes" >&6; }
4542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4543 $as_echo_n "checking for C compiler default output file name... " >&6; }
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4545 $as_echo "$ac_file" >&6; }
4546 ac_exeext
=$ac_cv_exeext
4548 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
4549 ac_clean_files
=$ac_clean_files_save
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4551 $as_echo_n "checking for suffix of executables... " >&6; }
4552 if { { ac_try
="$ac_link"
4554 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4555 *) ac_try_echo=$ac_try;;
4557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4558 $as_echo "$ac_try_echo"; } >&5
4559 (eval "$ac_link") 2>&5
4561 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4562 test $ac_status = 0; }; then :
4563 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
4564 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
4565 # work properly (i.e., refer to `conftest.exe'), while it won't with
4567 for ac_file
in conftest.exe conftest conftest.
*; do
4568 test -f "$ac_file" ||
continue
4570 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
4571 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
4577 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4578 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4579 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
4580 See \`config.log' for more details" "$LINENO" 5; }
4582 rm -f conftest conftest
$ac_cv_exeext
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4584 $as_echo "$ac_cv_exeext" >&6; }
4586 rm -f conftest.
$ac_ext
4587 EXEEXT
=$ac_cv_exeext
4589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4590 /* end confdefs.h. */
4595 FILE *f = fopen ("conftest.out", "w");
4596 return ferror (f) || fclose (f) != 0;
4602 ac_clean_files
="$ac_clean_files conftest.out"
4603 # Check that the compiler produces executables we can run. If not, either
4604 # the compiler is broken, or we cross compile.
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4606 $as_echo_n "checking whether we are cross compiling... " >&6; }
4607 if test "$cross_compiling" != yes; then
4608 { { ac_try
="$ac_link"
4610 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4614 $as_echo "$ac_try_echo"; } >&5
4615 (eval "$ac_link") 2>&5
4617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4618 test $ac_status = 0; }
4619 if { ac_try='./conftest$ac_cv_exeext'
4620 { { case "(($ac_try" in
4621 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4622 *) ac_try_echo
=$ac_try;;
4624 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4625 $as_echo "$ac_try_echo"; } >&5
4626 (eval "$ac_try") 2>&5
4628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4629 test $ac_status = 0; }; }; then
4632 if test "$cross_compiling" = maybe
; then
4635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4637 as_fn_error $?
"cannot run C compiled programs.
4638 If you meant to cross compile, use \`--host'.
4639 See \`config.log' for more details" "$LINENO" 5; }
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4644 $as_echo "$cross_compiling" >&6; }
4646 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
4647 ac_clean_files
=$ac_clean_files_save
4648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4649 $as_echo_n "checking for suffix of object files... " >&6; }
4650 if ${ac_cv_objext+:} false
; then :
4651 $as_echo_n "(cached) " >&6
4653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4664 rm -f conftest.o conftest.obj
4665 if { { ac_try
="$ac_compile"
4667 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4668 *) ac_try_echo=$ac_try;;
4670 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4671 $as_echo "$ac_try_echo"; } >&5
4672 (eval "$ac_compile") 2>&5
4674 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4675 test $ac_status = 0; }; then :
4676 for ac_file in conftest.o conftest.obj conftest.*; do
4677 test -f "$ac_file" || continue;
4679 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4680 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4685 $as_echo "$as_me: failed program was:" >&5
4686 sed 's/^/| /' conftest.$ac_ext >&5
4688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4690 as_fn_error $? "cannot compute suffix of object files
: cannot compile
4691 See \
`config.log' for more details" "$LINENO" 5; }
4693 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4696 $as_echo "$ac_cv_objext" >&6; }
4697 OBJEXT=$ac_cv_objext
4699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4700 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4701 if ${ac_cv_c_compiler_gnu+:} false; then :
4702 $as_echo_n "(cached) " >&6
4704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4705 /* end confdefs.h. */
4718 if ac_fn_c_try_compile "$LINENO"; then :
4723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4724 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4728 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4729 if test $ac_compiler_gnu = yes; then
4734 ac_test_CFLAGS=${CFLAGS+set}
4735 ac_save_CFLAGS=$CFLAGS
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4737 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4738 if ${ac_cv_prog_cc_g+:} false; then :
4739 $as_echo_n "(cached) " >&6
4741 ac_save_c_werror_flag=$ac_c_werror_flag
4742 ac_c_werror_flag=yes
4745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4746 /* end confdefs.h. */
4756 if ac_fn_c_try_compile "$LINENO"; then :
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4771 if ac_fn_c_try_compile "$LINENO"; then :
4774 ac_c_werror_flag=$ac_save_c_werror_flag
4776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4777 /* end confdefs.h. */
4787 if ac_fn_c_try_compile "$LINENO"; then :
4790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4795 ac_c_werror_flag=$ac_save_c_werror_flag
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4798 $as_echo "$ac_cv_prog_cc_g" >&6; }
4799 if test "$ac_test_CFLAGS" = set; then
4800 CFLAGS=$ac_save_CFLAGS
4801 elif test $ac_cv_prog_cc_g = yes; then
4802 if test "$GCC" = yes; then
4808 if test "$GCC" = yes; then
4814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4815 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4816 if ${ac_cv_prog_cc_c89+:} false; then :
4817 $as_echo_n "(cached) " >&6
4819 ac_cv_prog_cc_c89=no
4821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4822 /* end confdefs.h. */
4826 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4827 struct buf { int x; };
4828 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4829 static char *e (p, i)
4835 static char *f (char * (*g) (char **, int), char **p, ...)
4840 s = g (p, va_arg (v,int));
4845 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4846 function prototypes and stuff, but not '\xHH' hex character constants.
4847 These don't provoke an error unfortunately, instead are silently treated
4848 as 'x'. The following induces an error, until -std is added to get
4849 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4850 array size at least. It's necessary to write '\x00'==0 to get something
4851 that's true only with -std. */
4852 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4854 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4855 inside strings and character constants. */
4857 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4859 int test (int i, double x);
4860 struct s1 {int (*f) (int a);};
4861 struct s2 {int (*f) (double a);};
4862 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4868 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4873 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4874 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4876 CC="$ac_save_CC $ac_arg"
4877 if ac_fn_c_try_compile "$LINENO"; then :
4878 ac_cv_prog_cc_c89=$ac_arg
4880 rm -f core conftest.err conftest.$ac_objext
4881 test "x$ac_cv_prog_cc_c89" != "xno" && break
4883 rm -f conftest.$ac_ext
4888 case "x$ac_cv_prog_cc_c89" in
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4891 $as_echo "none needed" >&6; } ;;
4893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4894 $as_echo "unsupported" >&6; } ;;
4896 CC="$CC $ac_cv_prog_cc_c89"
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4898 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4900 if test "x$ac_cv_prog_cc_c89" != xno; then :
4905 ac_cpp='$CPP $CPPFLAGS'
4906 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4907 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4908 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4911 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4912 if ${ac_cv_prog_cc_c99+:} false; then :
4913 $as_echo_n "(cached) " >&6
4915 ac_cv_prog_cc_c99=no
4917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4918 /* end confdefs.h. */
4920 #include <stdbool.h>
4925 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4926 #define debug(...) fprintf (stderr, __VA_ARGS__)
4927 #define showlist(...) puts (#__VA_ARGS__)
4928 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4930 test_varargs_macros (void)
4935 debug ("X = %d\n", x);
4936 showlist (The first, second, and third items.);
4937 report (x>y, "x is %d but y is %d", x, y);
4940 // Check long long types.
4941 #define BIG64 18446744073709551615ull
4942 #define BIG32 4294967295ul
4943 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4945 your preprocessor is broken;
4949 your preprocessor is broken;
4951 static long long int bignum = -9223372036854775807LL;
4952 static unsigned long long int ubignum = BIG64;
4954 struct incomplete_array
4962 const wchar_t *name;
4966 typedef const char *ccp;
4969 test_restrict (ccp restrict text)
4971 // See if C++-style comments work.
4972 // Iterate through items via the restricted pointer.
4973 // Also check for declarations in for loops.
4974 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4979 // Check varargs and va_copy.
4981 test_varargs (const char *format, ...)
4984 va_start (args, format);
4986 va_copy (args_copy, args);
4997 str = va_arg (args_copy, const char *);
5000 number = va_arg (args_copy, int);
5003 fnumber = va_arg (args_copy, double);
5018 _Bool success = false;
5021 if (test_restrict ("String literal") == 0)
5023 char *restrict newvar = "Another string";
5026 test_varargs ("s, d' f .", "string", 65, 34.234);
5027 test_varargs_macros ();
5029 // Check flexible array members.
5030 struct incomplete_array *ia =
5031 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5033 for (int i = 0; i < ia->datasize; ++i)
5034 ia->data[i] = i * 1.234;
5036 // Check named initializers.
5037 struct named_init ni = {
5039 .name = L"Test wide string",
5040 .average = 543.34343,
5045 int dynamic_array[ni.number];
5046 dynamic_array[ni.number - 1] = 543;
5048 // work around unused variable warnings
5049 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5050 || dynamic_array[ni.number - 1] != 543);
5056 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5058 CC="$ac_save_CC $ac_arg"
5059 if ac_fn_c_try_compile "$LINENO"; then :
5060 ac_cv_prog_cc_c99=$ac_arg
5062 rm -f core conftest.err conftest.$ac_objext
5063 test "x$ac_cv_prog_cc_c99" != "xno" && break
5065 rm -f conftest.$ac_ext
5070 case "x$ac_cv_prog_cc_c99" in
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5073 $as_echo "none needed" >&6; } ;;
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5076 $as_echo "unsupported" >&6; } ;;
5078 CC="$CC $ac_cv_prog_cc_c99"
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5080 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5082 if test "x$ac_cv_prog_cc_c99" != xno; then :
5088 ac_cpp='$CXXCPP $CPPFLAGS'
5089 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5090 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5091 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5092 if test -z "$CXX"; then
5093 if test -n "$CCC"; then
5096 if test -n "$ac_tool_prefix"; then
5097 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5099 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5100 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5102 $as_echo_n "checking for $ac_word... " >&6; }
5103 if ${ac_cv_prog_CXX+:} false; then :
5104 $as_echo_n "(cached) " >&6
5106 if test -n "$CXX"; then
5107 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5113 test -z "$as_dir" && as_dir=.
5114 for ac_exec_ext in '' $ac_executable_extensions; do
5115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5116 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127 if test -n "$CXX"; then
5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5129 $as_echo "$CXX" >&6; }
5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5132 $as_echo "no" >&6; }
5136 test -n "$CXX" && break
5139 if test -z "$CXX"; then
5141 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5143 # Extract the first word of "$ac_prog", so it can be a program name with args.
5144 set dummy $ac_prog; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5148 $as_echo_n "(cached) " >&6
5150 if test -n "$ac_ct_CXX"; then
5151 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_ac_ct_CXX="$ac_prog"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5170 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5171 if test -n "$ac_ct_CXX"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5173 $as_echo "$ac_ct_CXX" >&6; }
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5180 test -n "$ac_ct_CXX" && break
5183 if test "x$ac_ct_CXX" = x; then
5186 case $cross_compiling:$ac_tool_warned in
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5190 ac_tool_warned=yes ;;
5198 # Provide some information about the compiler.
5199 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5202 for ac_option in --version -v -V -qversion; do
5203 { { ac_try="$ac_compiler $ac_option >&5"
5205 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
5206 *) ac_try_echo
=$ac_try;;
5208 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5209 $as_echo "$ac_try_echo"; } >&5
5210 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5212 if test -s conftest.err
; then
5214 ... rest of stderr output deleted ...
5215 10q' conftest.err
>conftest.er1
5216 cat conftest.er1
>&5
5218 rm -f conftest.er1 conftest.err
5219 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5220 test $ac_status = 0; }
5223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5224 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5225 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
5226 $as_echo_n "(cached) " >&6
5228 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5229 /* end confdefs.h. */
5242 if ac_fn_cxx_try_compile
"$LINENO"; then :
5247 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5248 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5252 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5253 if test $ac_compiler_gnu = yes; then
5258 ac_test_CXXFLAGS
=${CXXFLAGS+set}
5259 ac_save_CXXFLAGS
=$CXXFLAGS
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5261 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5262 if ${ac_cv_prog_cxx_g+:} false
; then :
5263 $as_echo_n "(cached) " >&6
5265 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
5266 ac_cxx_werror_flag
=yes
5269 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5270 /* end confdefs.h. */
5280 if ac_fn_cxx_try_compile
"$LINENO"; then :
5281 ac_cv_prog_cxx_g
=yes
5284 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5285 /* end confdefs.h. */
5295 if ac_fn_cxx_try_compile
"$LINENO"; then :
5298 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5300 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5301 /* end confdefs.h. */
5311 if ac_fn_cxx_try_compile
"$LINENO"; then :
5312 ac_cv_prog_cxx_g
=yes
5314 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5316 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5318 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5319 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5322 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5323 if test "$ac_test_CXXFLAGS" = set; then
5324 CXXFLAGS
=$ac_save_CXXFLAGS
5325 elif test $ac_cv_prog_cxx_g = yes; then
5326 if test "$GXX" = yes; then
5332 if test "$GXX" = yes; then
5339 ac_cpp
='$CPP $CPPFLAGS'
5340 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5341 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5342 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5345 # We must set the default linker to the linker used by gcc for the correct
5346 # operation of libtool. If LD is not defined and we are using gcc, try to
5347 # set the LD default to the ld used by gcc.
5348 if test -z "$LD"; then
5349 if test "$GCC" = yes; then
5352 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5354 gcc_prog_ld
=`$CC -print-prog-name=ld 2>&1` ;;
5356 case $gcc_prog_ld in
5357 # Accept absolute paths.
5358 [\\/]* |
[A-Za-z
]:[\\/]*)
5359 LD
="$gcc_prog_ld" ;;
5364 # Check whether -static-libstdc++ -static-libgcc is supported.
5366 if test "$GCC" = yes; then
5367 saved_LDFLAGS
="$LDFLAGS"
5369 LDFLAGS
="$LDFLAGS -static-libstdc++ -static-libgcc"
5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5371 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5373 ac_cpp
='$CXXCPP $CPPFLAGS'
5374 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5375 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5376 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5379 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5380 /* end confdefs.h. */
5382 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5383 #error -static-libstdc++ not implemented
5387 if ac_fn_cxx_try_link
"$LINENO"; then :
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5389 $as_echo "yes" >&6; }; have_static_libs
=yes
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5392 $as_echo "no" >&6; }
5394 rm -f core conftest.err conftest.
$ac_objext \
5395 conftest
$ac_exeext conftest.
$ac_ext
5397 ac_cpp
='$CPP $CPPFLAGS'
5398 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5399 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5400 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5403 LDFLAGS
="$saved_LDFLAGS"
5409 if test -n "$ac_tool_prefix"; then
5410 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5411 set dummy
${ac_tool_prefix}gnatbind
; ac_word
=$2
5412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5413 $as_echo_n "checking for $ac_word... " >&6; }
5414 if ${ac_cv_prog_GNATBIND+:} false
; then :
5415 $as_echo_n "(cached) " >&6
5417 if test -n "$GNATBIND"; then
5418 ac_cv_prog_GNATBIND
="$GNATBIND" # Let the user override the test.
5420 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5424 test -z "$as_dir" && as_dir
=.
5425 for ac_exec_ext
in '' $ac_executable_extensions; do
5426 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5427 ac_cv_prog_GNATBIND
="${ac_tool_prefix}gnatbind"
5428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5437 GNATBIND
=$ac_cv_prog_GNATBIND
5438 if test -n "$GNATBIND"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5440 $as_echo "$GNATBIND" >&6; }
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5448 if test -z "$ac_cv_prog_GNATBIND"; then
5449 ac_ct_GNATBIND
=$GNATBIND
5450 # Extract the first word of "gnatbind", so it can be a program name with args.
5451 set dummy gnatbind
; ac_word
=$2
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5453 $as_echo_n "checking for $ac_word... " >&6; }
5454 if ${ac_cv_prog_ac_ct_GNATBIND+:} false
; then :
5455 $as_echo_n "(cached) " >&6
5457 if test -n "$ac_ct_GNATBIND"; then
5458 ac_cv_prog_ac_ct_GNATBIND
="$ac_ct_GNATBIND" # Let the user override the test.
5460 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5464 test -z "$as_dir" && as_dir
=.
5465 for ac_exec_ext
in '' $ac_executable_extensions; do
5466 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5467 ac_cv_prog_ac_ct_GNATBIND
="gnatbind"
5468 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5477 ac_ct_GNATBIND
=$ac_cv_prog_ac_ct_GNATBIND
5478 if test -n "$ac_ct_GNATBIND"; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5480 $as_echo "$ac_ct_GNATBIND" >&6; }
5482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5483 $as_echo "no" >&6; }
5486 if test "x$ac_ct_GNATBIND" = x
; then
5489 case $cross_compiling:$ac_tool_warned in
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5492 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5493 ac_tool_warned
=yes ;;
5495 GNATBIND
=$ac_ct_GNATBIND
5498 GNATBIND
="$ac_cv_prog_GNATBIND"
5501 if test -n "$ac_tool_prefix"; then
5502 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5503 set dummy
${ac_tool_prefix}gnatmake
; ac_word
=$2
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5505 $as_echo_n "checking for $ac_word... " >&6; }
5506 if ${ac_cv_prog_GNATMAKE+:} false
; then :
5507 $as_echo_n "(cached) " >&6
5509 if test -n "$GNATMAKE"; then
5510 ac_cv_prog_GNATMAKE
="$GNATMAKE" # Let the user override the test.
5512 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5516 test -z "$as_dir" && as_dir
=.
5517 for ac_exec_ext
in '' $ac_executable_extensions; do
5518 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5519 ac_cv_prog_GNATMAKE
="${ac_tool_prefix}gnatmake"
5520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5529 GNATMAKE
=$ac_cv_prog_GNATMAKE
5530 if test -n "$GNATMAKE"; then
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5532 $as_echo "$GNATMAKE" >&6; }
5534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5535 $as_echo "no" >&6; }
5540 if test -z "$ac_cv_prog_GNATMAKE"; then
5541 ac_ct_GNATMAKE
=$GNATMAKE
5542 # Extract the first word of "gnatmake", so it can be a program name with args.
5543 set dummy gnatmake
; ac_word
=$2
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5545 $as_echo_n "checking for $ac_word... " >&6; }
5546 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false
; then :
5547 $as_echo_n "(cached) " >&6
5549 if test -n "$ac_ct_GNATMAKE"; then
5550 ac_cv_prog_ac_ct_GNATMAKE
="$ac_ct_GNATMAKE" # Let the user override the test.
5552 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
5556 test -z "$as_dir" && as_dir
=.
5557 for ac_exec_ext
in '' $ac_executable_extensions; do
5558 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
5559 ac_cv_prog_ac_ct_GNATMAKE
="gnatmake"
5560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5569 ac_ct_GNATMAKE
=$ac_cv_prog_ac_ct_GNATMAKE
5570 if test -n "$ac_ct_GNATMAKE"; then
5571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5572 $as_echo "$ac_ct_GNATMAKE" >&6; }
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5575 $as_echo "no" >&6; }
5578 if test "x$ac_ct_GNATMAKE" = x
; then
5581 case $cross_compiling:$ac_tool_warned in
5583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5584 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5585 ac_tool_warned
=yes ;;
5587 GNATMAKE
=$ac_ct_GNATMAKE
5590 GNATMAKE
="$ac_cv_prog_GNATMAKE"
5593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5594 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5595 if ${acx_cv_cc_gcc_supports_ada+:} false
; then :
5596 $as_echo_n "(cached) " >&6
5598 cat >conftest.adb
<<EOF
5599 procedure conftest is begin null; end conftest;
5601 acx_cv_cc_gcc_supports_ada
=no
5602 # There is a bug in old released versions of GCC which causes the
5603 # driver to exit successfully when the appropriate language module
5604 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5605 # Therefore we must check for the error message as well as an
5606 # unsuccessful exit.
5607 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5608 # given a .adb file, but produce no object file. So we must check
5609 # if an object file was really produced to guard against this.
5610 errors
=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5611 if test x
"$errors" = x
&& test -f conftest.
$ac_objext; then
5612 acx_cv_cc_gcc_supports_ada
=yes
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5617 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5619 if test "x$GNATBIND" != xno
&& test "x$GNATMAKE" != xno
&& test x
$acx_cv_cc_gcc_supports_ada != xno
; then
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5626 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5627 if ${gcc_cv_prog_cmp_skip+:} false
; then :
5628 $as_echo_n "(cached) " >&6
5632 gcc_cv_prog_cmp_skip
='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5633 if cmp t1 t2
2 2 > /dev
/null
2>&1; then
5634 if cmp t1 t2
1 1 > /dev
/null
2>&1; then
5637 gcc_cv_prog_cmp_skip
='cmp $$f1 $$f2 16 16'
5640 if cmp --ignore-initial=2 t1 t2
> /dev
/null
2>&1; then
5641 if cmp --ignore-initial=1 t1 t2
> /dev
/null
2>&1; then
5644 gcc_cv_prog_cmp_skip
='cmp --ignore-initial=16 $$f1 $$f2'
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5651 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5652 do_compare
="$gcc_cv_prog_cmp_skip"
5656 # Check whether --enable-bootstrap was given.
5657 if test "${enable_bootstrap+set}" = set; then :
5658 enableval
=$enable_bootstrap;
5660 enable_bootstrap
=default
5664 # Issue errors and warnings for invalid/strange bootstrap combinations.
5665 if test -r $srcdir/gcc
/configure
; then
5671 case "$have_compiler:$host:$target:$enable_bootstrap" in
5674 # Default behavior. Enable bootstrap if we have a compiler
5675 # and we are in a native configuration.
5676 yes:$build:$build:default
)
5677 enable_bootstrap
=yes ;;
5680 enable_bootstrap
=no
;;
5682 # We have a compiler and we are in a native configuration, bootstrap is ok
5683 yes:$build:$build:yes)
5686 # Other configurations, but we have a compiler. Assume the user knows
5689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5690 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5693 # No compiler: if they passed --enable-bootstrap explicitly, fail
5695 as_fn_error $?
"cannot bootstrap without a compiler" "$LINENO" 5 ;;
5697 # Fail if wrong command line
5699 as_fn_error $?
"invalid option for --enable-bootstrap" "$LINENO" 5
5703 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5704 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5705 # require C++11 (or higher).
5706 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5707 CXX
="$CXX -std=c++11"
5708 elif test "$have_compiler" = yes; then
5709 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
5711 ac_cpp
='$CXXCPP $CPPFLAGS'
5712 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5713 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5714 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5718 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5719 if ${ax_cv_cxx_compile_cxx11+:} false
; then :
5720 $as_echo_n "(cached) " >&6
5722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5723 /* end confdefs.h. */
5726 // If the compiler admits that it is not ready for C++11, why torture it?
5727 // Hopefully, this will speed up the test.
5731 #error "This is not a C++ compiler"
5733 #elif __cplusplus < 201103L
5735 #error "This is not a C++11 compiler"
5742 namespace test_static_assert
5745 template <typename T>
5748 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5753 namespace test_final_override
5762 struct Derived : public Base
5764 virtual ~Derived() override {}
5765 virtual void f() override {}
5770 namespace test_double_right_angle_brackets
5773 template < typename T >
5776 typedef check<void> single_type;
5777 typedef check<check<void>> double_type;
5778 typedef check<check<check<void>>> triple_type;
5779 typedef check<check<check<check<void>>>> quadruple_type;
5783 namespace test_decltype
5796 namespace test_type_deduction
5799 template < typename T1, typename T2 >
5802 static const bool value = false;
5805 template < typename T >
5806 struct is_same<T, T>
5808 static const bool value = true;
5811 template < typename T1, typename T2 >
5813 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5819 test(const int c, volatile int v)
5821 static_assert(is_same<int, decltype(0)>::value == true, "");
5822 static_assert(is_same<int, decltype(c)>::value == false, "");
5823 static_assert(is_same<int, decltype(v)>::value == false, "");
5826 auto sumi = ac + av + 'x';
5827 auto sumf = ac + av + 1.0;
5828 static_assert(is_same<int, decltype(ac)>::value == true, "");
5829 static_assert(is_same<int, decltype(av)>::value == true, "");
5830 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5831 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5832 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5833 return (sumf > 0.0) ? sumi : add(c, v);
5838 namespace test_noexcept
5841 int f() { return 0; }
5842 int g() noexcept { return 0; }
5844 static_assert(noexcept(f()) == false, "");
5845 static_assert(noexcept(g()) == true, "");
5849 namespace test_constexpr
5852 template < typename CharT >
5853 unsigned long constexpr
5854 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5856 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5859 template < typename CharT >
5860 unsigned long constexpr
5861 strlen_c(const CharT *const s) noexcept
5863 return strlen_c_r(s, 0UL);
5866 static_assert(strlen_c("") == 0UL, "");
5867 static_assert(strlen_c("1") == 1UL, "");
5868 static_assert(strlen_c("example") == 7UL, "");
5869 static_assert(strlen_c("another\0example") == 7UL, "");
5873 namespace test_rvalue_references
5879 static constexpr int value = N;
5882 answer<1> f(int&) { return answer<1>(); }
5883 answer<2> f(const int&) { return answer<2>(); }
5884 answer<3> f(int&&) { return answer<3>(); }
5891 static_assert(decltype(f(i))::value == 1, "");
5892 static_assert(decltype(f(c))::value == 2, "");
5893 static_assert(decltype(f(0))::value == 3, "");
5898 namespace test_uniform_initialization
5903 static const int zero {};
5904 static const int one {1};
5907 static_assert(test::zero == 0, "");
5908 static_assert(test::one == 1, "");
5912 namespace test_lambdas
5918 auto lambda1 = [](){};
5919 auto lambda2 = lambda1;
5927 auto a = [](int i, int j){ return i + j; }(1, 2);
5928 auto b = []() -> int { return '0'; }();
5929 auto c = [=](){ return a + b; }();
5930 auto d = [&](){ return c; }();
5931 auto e = [a, &b](int x) mutable {
5932 const auto identity = [](int y){ return y; };
5933 for (auto i = 0; i < a; ++i)
5935 return x + identity(a + b);
5937 return a + b + c + d + e;
5943 const auto nullary = [](){ return 0; };
5944 const auto unary = [](int x){ return x; };
5945 using nullary_t = decltype(nullary);
5946 using unary_t = decltype(unary);
5947 const auto higher1st = [](nullary_t f){ return f(); };
5948 const auto higher2nd = [unary](nullary_t f1){
5949 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
5951 return higher1st(nullary) + higher2nd(nullary)(unary);
5956 namespace test_variadic_templates
5962 template <int N0, int... N1toN>
5963 struct sum<N0, N1toN...>
5965 static constexpr auto value = N0 + sum<N1toN...>::value;
5971 static constexpr auto value = 0;
5974 static_assert(sum<>::value == 0, "");
5975 static_assert(sum<1>::value == 1, "");
5976 static_assert(sum<23>::value == 23, "");
5977 static_assert(sum<1, 2>::value == 3, "");
5978 static_assert(sum<5, 5, 11>::value == 21, "");
5979 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
5983 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
5984 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
5986 namespace test_template_alias_sfinae
5991 template<typename T>
5992 using member = typename T::member_type;
5994 template<typename T>
5997 template<typename T>
5998 void func(member<T>*) {}
6002 void test() { func<foo>(0); }
6006 } // namespace cxx11
6008 #endif // __cplusplus >= 201103L
6013 if ac_fn_cxx_try_compile
"$LINENO"; then :
6014 ax_cv_cxx_compile_cxx11
=yes
6016 ax_cv_cxx_compile_cxx11
=no
6018 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6021 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6022 if test x
$ax_cv_cxx_compile_cxx11 = xyes
; then
6026 if test x
$ac_success = xno
; then
6027 for alternative
in ${ax_cxx_compile_alternatives}; do
6028 switch
="-std=gnu++${alternative}"
6029 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6031 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6032 if eval \
${$cachevar+:} false
; then :
6033 $as_echo_n "(cached) " >&6
6037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6038 /* end confdefs.h. */
6041 // If the compiler admits that it is not ready for C++11, why torture it?
6042 // Hopefully, this will speed up the test.
6046 #error "This is not a C++ compiler"
6048 #elif __cplusplus < 201103L
6050 #error "This is not a C++11 compiler"
6057 namespace test_static_assert
6060 template <typename T>
6063 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6068 namespace test_final_override
6077 struct Derived : public Base
6079 virtual ~Derived() override {}
6080 virtual void f() override {}
6085 namespace test_double_right_angle_brackets
6088 template < typename T >
6091 typedef check<void> single_type;
6092 typedef check<check<void>> double_type;
6093 typedef check<check<check<void>>> triple_type;
6094 typedef check<check<check<check<void>>>> quadruple_type;
6098 namespace test_decltype
6111 namespace test_type_deduction
6114 template < typename T1, typename T2 >
6117 static const bool value = false;
6120 template < typename T >
6121 struct is_same<T, T>
6123 static const bool value = true;
6126 template < typename T1, typename T2 >
6128 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6134 test(const int c, volatile int v)
6136 static_assert(is_same<int, decltype(0)>::value == true, "");
6137 static_assert(is_same<int, decltype(c)>::value == false, "");
6138 static_assert(is_same<int, decltype(v)>::value == false, "");
6141 auto sumi = ac + av + 'x';
6142 auto sumf = ac + av + 1.0;
6143 static_assert(is_same<int, decltype(ac)>::value == true, "");
6144 static_assert(is_same<int, decltype(av)>::value == true, "");
6145 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6146 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6147 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6148 return (sumf > 0.0) ? sumi : add(c, v);
6153 namespace test_noexcept
6156 int f() { return 0; }
6157 int g() noexcept { return 0; }
6159 static_assert(noexcept(f()) == false, "");
6160 static_assert(noexcept(g()) == true, "");
6164 namespace test_constexpr
6167 template < typename CharT >
6168 unsigned long constexpr
6169 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6171 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6174 template < typename CharT >
6175 unsigned long constexpr
6176 strlen_c(const CharT *const s) noexcept
6178 return strlen_c_r(s, 0UL);
6181 static_assert(strlen_c("") == 0UL, "");
6182 static_assert(strlen_c("1") == 1UL, "");
6183 static_assert(strlen_c("example") == 7UL, "");
6184 static_assert(strlen_c("another\0example") == 7UL, "");
6188 namespace test_rvalue_references
6194 static constexpr int value = N;
6197 answer<1> f(int&) { return answer<1>(); }
6198 answer<2> f(const int&) { return answer<2>(); }
6199 answer<3> f(int&&) { return answer<3>(); }
6206 static_assert(decltype(f(i))::value == 1, "");
6207 static_assert(decltype(f(c))::value == 2, "");
6208 static_assert(decltype(f(0))::value == 3, "");
6213 namespace test_uniform_initialization
6218 static const int zero {};
6219 static const int one {1};
6222 static_assert(test::zero == 0, "");
6223 static_assert(test::one == 1, "");
6227 namespace test_lambdas
6233 auto lambda1 = [](){};
6234 auto lambda2 = lambda1;
6242 auto a = [](int i, int j){ return i + j; }(1, 2);
6243 auto b = []() -> int { return '0'; }();
6244 auto c = [=](){ return a + b; }();
6245 auto d = [&](){ return c; }();
6246 auto e = [a, &b](int x) mutable {
6247 const auto identity = [](int y){ return y; };
6248 for (auto i = 0; i < a; ++i)
6250 return x + identity(a + b);
6252 return a + b + c + d + e;
6258 const auto nullary = [](){ return 0; };
6259 const auto unary = [](int x){ return x; };
6260 using nullary_t = decltype(nullary);
6261 using unary_t = decltype(unary);
6262 const auto higher1st = [](nullary_t f){ return f(); };
6263 const auto higher2nd = [unary](nullary_t f1){
6264 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6266 return higher1st(nullary) + higher2nd(nullary)(unary);
6271 namespace test_variadic_templates
6277 template <int N0, int... N1toN>
6278 struct sum<N0, N1toN...>
6280 static constexpr auto value = N0 + sum<N1toN...>::value;
6286 static constexpr auto value = 0;
6289 static_assert(sum<>::value == 0, "");
6290 static_assert(sum<1>::value == 1, "");
6291 static_assert(sum<23>::value == 23, "");
6292 static_assert(sum<1, 2>::value == 3, "");
6293 static_assert(sum<5, 5, 11>::value == 21, "");
6294 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6298 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6299 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6301 namespace test_template_alias_sfinae
6306 template<typename T>
6307 using member = typename T::member_type;
6309 template<typename T>
6312 template<typename T>
6313 void func(member<T>*) {}
6317 void test() { func<foo>(0); }
6321 } // namespace cxx11
6323 #endif // __cplusplus >= 201103L
6328 if ac_fn_cxx_try_compile
"$LINENO"; then :
6333 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
6336 eval ac_res
=\$
$cachevar
6337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6338 $as_echo "$ac_res" >&6; }
6339 if eval test x\$
$cachevar = xyes
; then
6341 if test -n "$CXXCPP" ; then
6342 CXXCPP
="$CXXCPP $switch"
6350 if test x
$ac_success = xno
; then
6351 for alternative
in ${ax_cxx_compile_alternatives}; do
6352 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6353 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_
$switch" | $as_tr_sh`
6354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
6355 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
6356 if eval \${$cachevar+:} false; then :
6357 $as_echo_n "(cached
) " >&6
6361 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6362 /* end confdefs.h. */
6365 // If the compiler admits that it is not ready for C++11, why torture it?
6366 // Hopefully, this will speed up the test.
6370 #error "This is not a C
++ compiler
"
6372 #elif __cplusplus < 201103L
6374 #error "This is not a C
++11 compiler
"
6381 namespace test_static_assert
6384 template <typename T>
6387 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
6392 namespace test_final_override
6401 struct Derived : public Base
6403 virtual ~Derived() override {}
6404 virtual void f() override {}
6409 namespace test_double_right_angle_brackets
6412 template < typename T >
6415 typedef check<void> single_type;
6416 typedef check<check<void>> double_type;
6417 typedef check<check<check<void>>> triple_type;
6418 typedef check<check<check<check<void>>>> quadruple_type;
6422 namespace test_decltype
6435 namespace test_type_deduction
6438 template < typename T1, typename T2 >
6441 static const bool value = false;
6444 template < typename T >
6445 struct is_same<T, T>
6447 static const bool value = true;
6450 template < typename T1, typename T2 >
6452 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6458 test(const int c, volatile int v)
6460 static_assert(is_same<int, decltype(0)>::value == true, "");
6461 static_assert(is_same<int, decltype(c)>::value == false, "");
6462 static_assert(is_same<int, decltype(v)>::value == false, "");
6465 auto sumi = ac + av + 'x';
6466 auto sumf = ac + av + 1.0;
6467 static_assert(is_same<int, decltype(ac)>::value == true, "");
6468 static_assert(is_same<int, decltype(av)>::value == true, "");
6469 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6470 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6471 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6472 return (sumf > 0.0) ? sumi : add(c, v);
6477 namespace test_noexcept
6480 int f() { return 0; }
6481 int g() noexcept { return 0; }
6483 static_assert(noexcept(f()) == false, "");
6484 static_assert(noexcept(g()) == true, "");
6488 namespace test_constexpr
6491 template < typename CharT >
6492 unsigned long constexpr
6493 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6495 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6498 template < typename CharT >
6499 unsigned long constexpr
6500 strlen_c(const CharT *const s) noexcept
6502 return strlen_c_r(s, 0UL);
6505 static_assert(strlen_c("") == 0UL, "");
6506 static_assert(strlen_c("1") == 1UL, "");
6507 static_assert(strlen_c("example
") == 7UL, "");
6508 static_assert(strlen_c("another\
0example
") == 7UL, "");
6512 namespace test_rvalue_references
6518 static constexpr int value = N;
6521 answer<1> f(int&) { return answer<1>(); }
6522 answer<2> f(const int&) { return answer<2>(); }
6523 answer<3> f(int&&) { return answer<3>(); }
6530 static_assert(decltype(f(i))::value == 1, "");
6531 static_assert(decltype(f(c))::value == 2, "");
6532 static_assert(decltype(f(0))::value == 3, "");
6537 namespace test_uniform_initialization
6542 static const int zero {};
6543 static const int one {1};
6546 static_assert(test::zero == 0, "");
6547 static_assert(test::one == 1, "");
6551 namespace test_lambdas
6557 auto lambda1 = [](){};
6558 auto lambda2 = lambda1;
6566 auto a = [](int i, int j){ return i + j; }(1, 2);
6567 auto b = []() -> int { return '0'; }();
6568 auto c = [=](){ return a + b; }();
6569 auto d = [&](){ return c; }();
6570 auto e = [a, &b](int x) mutable {
6571 const auto identity = [](int y){ return y; };
6572 for (auto i = 0; i < a; ++i)
6574 return x + identity(a + b);
6576 return a + b + c + d + e;
6582 const auto nullary = [](){ return 0; };
6583 const auto unary = [](int x){ return x; };
6584 using nullary_t = decltype(nullary);
6585 using unary_t = decltype(unary);
6586 const auto higher1st = [](nullary_t f){ return f(); };
6587 const auto higher2nd = [unary](nullary_t f1){
6588 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6590 return higher1st(nullary) + higher2nd(nullary)(unary);
6595 namespace test_variadic_templates
6601 template <int N0, int... N1toN>
6602 struct sum<N0, N1toN...>
6604 static constexpr auto value = N0 + sum<N1toN...>::value;
6610 static constexpr auto value = 0;
6613 static_assert(sum<>::value == 0, "");
6614 static_assert(sum<1>::value == 1, "");
6615 static_assert(sum<23>::value == 23, "");
6616 static_assert(sum<1, 2>::value == 3, "");
6617 static_assert(sum<5, 5, 11>::value == 21, "");
6618 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6622 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6623 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6625 namespace test_template_alias_sfinae
6630 template<typename T>
6631 using member = typename T::member_type;
6633 template<typename T>
6636 template<typename T>
6637 void func(member<T>*) {}
6641 void test() { func<foo>(0); }
6645 } // namespace cxx11
6647 #endif // __cplusplus >= 201103L
6652 if ac_fn_cxx_try_compile "$LINENO"; then :
6657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6660 eval ac_res=\$$cachevar
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
6662 $as_echo "$ac_res" >&6; }
6663 if eval test x\$$cachevar = xyes; then
6665 if test -n "$CXXCPP" ; then
6666 CXXCPP="$CXXCPP $switch"
6672 if test x$ac_success = xyes; then
6679 ac_cpp='$CPP $CPPFLAGS'
6680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6684 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6685 if test x$ac_success = xno; then
6686 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
6689 if test x$ac_success = xno; then
6691 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
6692 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
6696 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6702 if test "${build}" != "${host}"; then
6703 ax_cxx_compile_alternatives
="11 0x" ax_cxx_compile_cxx11_required
=true
6705 ac_cpp
='$CXXCPP $CPPFLAGS'
6706 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6707 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6708 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
6710 ax_cv_cxx_compile_cxx11_orig_cxx
="$CXX"
6711 ax_cv_cxx_compile_cxx11_orig_cxxflags
="$CXXFLAGS"
6712 ax_cv_cxx_compile_cxx11_orig_cppflags
="$CPPFLAGS"
6713 CXX
="$CXX_FOR_BUILD"
6714 CXXFLAGS
="$CXXFLAGS_FOR_BUILD"
6715 CPPFLAGS
="$CPPFLAGS_FOR_BUILD"
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6717 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6718 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false
; then :
6719 $as_echo_n "(cached) " >&6
6721 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
6722 /* end confdefs.h. */
6725 // If the compiler admits that it is not ready for C++11, why torture it?
6726 // Hopefully, this will speed up the test.
6730 #error "This is not a C++ compiler"
6732 #elif __cplusplus < 201103L
6734 #error "This is not a C++11 compiler"
6741 namespace test_static_assert
6744 template <typename T>
6747 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6752 namespace test_final_override
6761 struct Derived : public Base
6763 virtual ~Derived() override {}
6764 virtual void f() override {}
6769 namespace test_double_right_angle_brackets
6772 template < typename T >
6775 typedef check<void> single_type;
6776 typedef check<check<void>> double_type;
6777 typedef check<check<check<void>>> triple_type;
6778 typedef check<check<check<check<void>>>> quadruple_type;
6782 namespace test_decltype
6795 namespace test_type_deduction
6798 template < typename T1, typename T2 >
6801 static const bool value = false;
6804 template < typename T >
6805 struct is_same<T, T>
6807 static const bool value = true;
6810 template < typename T1, typename T2 >
6812 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6818 test(const int c, volatile int v)
6820 static_assert(is_same<int, decltype(0)>::value == true, "");
6821 static_assert(is_same<int, decltype(c)>::value == false, "");
6822 static_assert(is_same<int, decltype(v)>::value == false, "");
6825 auto sumi = ac + av + 'x';
6826 auto sumf = ac + av + 1.0;
6827 static_assert(is_same<int, decltype(ac)>::value == true, "");
6828 static_assert(is_same<int, decltype(av)>::value == true, "");
6829 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6830 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6831 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6832 return (sumf > 0.0) ? sumi : add(c, v);
6837 namespace test_noexcept
6840 int f() { return 0; }
6841 int g() noexcept { return 0; }
6843 static_assert(noexcept(f()) == false, "");
6844 static_assert(noexcept(g()) == true, "");
6848 namespace test_constexpr
6851 template < typename CharT >
6852 unsigned long constexpr
6853 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6855 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6858 template < typename CharT >
6859 unsigned long constexpr
6860 strlen_c(const CharT *const s) noexcept
6862 return strlen_c_r(s, 0UL);
6865 static_assert(strlen_c("") == 0UL, "");
6866 static_assert(strlen_c("1") == 1UL, "");
6867 static_assert(strlen_c("example") == 7UL, "");
6868 static_assert(strlen_c("another\0example") == 7UL, "");
6872 namespace test_rvalue_references
6878 static constexpr int value = N;
6881 answer<1> f(int&) { return answer<1>(); }
6882 answer<2> f(const int&) { return answer<2>(); }
6883 answer<3> f(int&&) { return answer<3>(); }
6890 static_assert(decltype(f(i))::value == 1, "");
6891 static_assert(decltype(f(c))::value == 2, "");
6892 static_assert(decltype(f(0))::value == 3, "");
6897 namespace test_uniform_initialization
6902 static const int zero {};
6903 static const int one {1};
6906 static_assert(test::zero == 0, "");
6907 static_assert(test::one == 1, "");
6911 namespace test_lambdas
6917 auto lambda1 = [](){};
6918 auto lambda2 = lambda1;
6926 auto a = [](int i, int j){ return i + j; }(1, 2);
6927 auto b = []() -> int { return '0'; }();
6928 auto c = [=](){ return a + b; }();
6929 auto d = [&](){ return c; }();
6930 auto e = [a, &b](int x) mutable {
6931 const auto identity = [](int y){ return y; };
6932 for (auto i = 0; i < a; ++i)
6934 return x + identity(a + b);
6936 return a + b + c + d + e;
6942 const auto nullary = [](){ return 0; };
6943 const auto unary = [](int x){ return x; };
6944 using nullary_t = decltype(nullary);
6945 using unary_t = decltype(unary);
6946 const auto higher1st = [](nullary_t f){ return f(); };
6947 const auto higher2nd = [unary](nullary_t f1){
6948 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6950 return higher1st(nullary) + higher2nd(nullary)(unary);
6955 namespace test_variadic_templates
6961 template <int N0, int... N1toN>
6962 struct sum<N0, N1toN...>
6964 static constexpr auto value = N0 + sum<N1toN...>::value;
6970 static constexpr auto value = 0;
6973 static_assert(sum<>::value == 0, "");
6974 static_assert(sum<1>::value == 1, "");
6975 static_assert(sum<23>::value == 23, "");
6976 static_assert(sum<1, 2>::value == 3, "");
6977 static_assert(sum<5, 5, 11>::value == 21, "");
6978 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6982 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6983 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6985 namespace test_template_alias_sfinae
6990 template<typename T>
6991 using member = typename T::member_type;
6993 template<typename T>
6996 template<typename T>
6997 void func(member<T>*) {}
7001 void test() { func<foo>(0); }
7005 } // namespace cxx11
7007 #endif // __cplusplus >= 201103L
7012 if ac_fn_cxx_try_compile
"$LINENO"; then :
7013 ax_cv_cxx_compile_cxx11_FOR_BUILD
=yes
7015 ax_cv_cxx_compile_cxx11_FOR_BUILD
=no
7017 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7020 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7021 if test x
$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes
; then
7025 if test x
$ac_success = xno
; then
7026 for alternative
in ${ax_cxx_compile_alternatives}; do
7027 switch
="-std=gnu++${alternative}"
7028 cachevar
=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7030 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7031 if eval \
${$cachevar+:} false
; then :
7032 $as_echo_n "(cached) " >&6
7036 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7037 /* end confdefs.h. */
7040 // If the compiler admits that it is not ready for C++11, why torture it?
7041 // Hopefully, this will speed up the test.
7045 #error "This is not a C++ compiler"
7047 #elif __cplusplus < 201103L
7049 #error "This is not a C++11 compiler"
7056 namespace test_static_assert
7059 template <typename T>
7062 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7067 namespace test_final_override
7076 struct Derived : public Base
7078 virtual ~Derived() override {}
7079 virtual void f() override {}
7084 namespace test_double_right_angle_brackets
7087 template < typename T >
7090 typedef check<void> single_type;
7091 typedef check<check<void>> double_type;
7092 typedef check<check<check<void>>> triple_type;
7093 typedef check<check<check<check<void>>>> quadruple_type;
7097 namespace test_decltype
7110 namespace test_type_deduction
7113 template < typename T1, typename T2 >
7116 static const bool value = false;
7119 template < typename T >
7120 struct is_same<T, T>
7122 static const bool value = true;
7125 template < typename T1, typename T2 >
7127 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7133 test(const int c, volatile int v)
7135 static_assert(is_same<int, decltype(0)>::value == true, "");
7136 static_assert(is_same<int, decltype(c)>::value == false, "");
7137 static_assert(is_same<int, decltype(v)>::value == false, "");
7140 auto sumi = ac + av + 'x';
7141 auto sumf = ac + av + 1.0;
7142 static_assert(is_same<int, decltype(ac)>::value == true, "");
7143 static_assert(is_same<int, decltype(av)>::value == true, "");
7144 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7145 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7146 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7147 return (sumf > 0.0) ? sumi : add(c, v);
7152 namespace test_noexcept
7155 int f() { return 0; }
7156 int g() noexcept { return 0; }
7158 static_assert(noexcept(f()) == false, "");
7159 static_assert(noexcept(g()) == true, "");
7163 namespace test_constexpr
7166 template < typename CharT >
7167 unsigned long constexpr
7168 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7170 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7173 template < typename CharT >
7174 unsigned long constexpr
7175 strlen_c(const CharT *const s) noexcept
7177 return strlen_c_r(s, 0UL);
7180 static_assert(strlen_c("") == 0UL, "");
7181 static_assert(strlen_c("1") == 1UL, "");
7182 static_assert(strlen_c("example") == 7UL, "");
7183 static_assert(strlen_c("another\0example") == 7UL, "");
7187 namespace test_rvalue_references
7193 static constexpr int value = N;
7196 answer<1> f(int&) { return answer<1>(); }
7197 answer<2> f(const int&) { return answer<2>(); }
7198 answer<3> f(int&&) { return answer<3>(); }
7205 static_assert(decltype(f(i))::value == 1, "");
7206 static_assert(decltype(f(c))::value == 2, "");
7207 static_assert(decltype(f(0))::value == 3, "");
7212 namespace test_uniform_initialization
7217 static const int zero {};
7218 static const int one {1};
7221 static_assert(test::zero == 0, "");
7222 static_assert(test::one == 1, "");
7226 namespace test_lambdas
7232 auto lambda1 = [](){};
7233 auto lambda2 = lambda1;
7241 auto a = [](int i, int j){ return i + j; }(1, 2);
7242 auto b = []() -> int { return '0'; }();
7243 auto c = [=](){ return a + b; }();
7244 auto d = [&](){ return c; }();
7245 auto e = [a, &b](int x) mutable {
7246 const auto identity = [](int y){ return y; };
7247 for (auto i = 0; i < a; ++i)
7249 return x + identity(a + b);
7251 return a + b + c + d + e;
7257 const auto nullary = [](){ return 0; };
7258 const auto unary = [](int x){ return x; };
7259 using nullary_t = decltype(nullary);
7260 using unary_t = decltype(unary);
7261 const auto higher1st = [](nullary_t f){ return f(); };
7262 const auto higher2nd = [unary](nullary_t f1){
7263 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7265 return higher1st(nullary) + higher2nd(nullary)(unary);
7270 namespace test_variadic_templates
7276 template <int N0, int... N1toN>
7277 struct sum<N0, N1toN...>
7279 static constexpr auto value = N0 + sum<N1toN...>::value;
7285 static constexpr auto value = 0;
7288 static_assert(sum<>::value == 0, "");
7289 static_assert(sum<1>::value == 1, "");
7290 static_assert(sum<23>::value == 23, "");
7291 static_assert(sum<1, 2>::value == 3, "");
7292 static_assert(sum<5, 5, 11>::value == 21, "");
7293 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7297 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7298 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7300 namespace test_template_alias_sfinae
7305 template<typename T>
7306 using member = typename T::member_type;
7308 template<typename T>
7311 template<typename T>
7312 void func(member<T>*) {}
7316 void test() { func<foo>(0); }
7320 } // namespace cxx11
7322 #endif // __cplusplus >= 201103L
7327 if ac_fn_cxx_try_compile
"$LINENO"; then :
7332 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7335 eval ac_res
=\$
$cachevar
7336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7337 $as_echo "$ac_res" >&6; }
7338 if eval test x\$
$cachevar = xyes
; then
7340 if test -n "$CXXCPP" ; then
7341 CXXCPP
="$CXXCPP $switch"
7349 if test x
$ac_success = xno
; then
7350 for alternative
in ${ax_cxx_compile_alternatives}; do
7351 for switch
in -std=c
++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7352 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_
$switch" | $as_tr_sh`
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether
$CXX supports C
++11 features with
$switch" >&5
7354 $as_echo_n "checking whether
$CXX supports C
++11 features with
$switch...
" >&6; }
7355 if eval \${$cachevar+:} false; then :
7356 $as_echo_n "(cached
) " >&6
7360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7361 /* end confdefs.h. */
7364 // If the compiler admits that it is not ready for C++11, why torture it?
7365 // Hopefully, this will speed up the test.
7369 #error "This is not a C
++ compiler
"
7371 #elif __cplusplus < 201103L
7373 #error "This is not a C
++11 compiler
"
7380 namespace test_static_assert
7383 template <typename T>
7386 static_assert(sizeof(int) <= sizeof(T), "not big enough
");
7391 namespace test_final_override
7400 struct Derived : public Base
7402 virtual ~Derived() override {}
7403 virtual void f() override {}
7408 namespace test_double_right_angle_brackets
7411 template < typename T >
7414 typedef check<void> single_type;
7415 typedef check<check<void>> double_type;
7416 typedef check<check<check<void>>> triple_type;
7417 typedef check<check<check<check<void>>>> quadruple_type;
7421 namespace test_decltype
7434 namespace test_type_deduction
7437 template < typename T1, typename T2 >
7440 static const bool value = false;
7443 template < typename T >
7444 struct is_same<T, T>
7446 static const bool value = true;
7449 template < typename T1, typename T2 >
7451 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7457 test(const int c, volatile int v)
7459 static_assert(is_same<int, decltype(0)>::value == true, "");
7460 static_assert(is_same<int, decltype(c)>::value == false, "");
7461 static_assert(is_same<int, decltype(v)>::value == false, "");
7464 auto sumi = ac + av + 'x';
7465 auto sumf = ac + av + 1.0;
7466 static_assert(is_same<int, decltype(ac)>::value == true, "");
7467 static_assert(is_same<int, decltype(av)>::value == true, "");
7468 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7469 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7470 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7471 return (sumf > 0.0) ? sumi : add(c, v);
7476 namespace test_noexcept
7479 int f() { return 0; }
7480 int g() noexcept { return 0; }
7482 static_assert(noexcept(f()) == false, "");
7483 static_assert(noexcept(g()) == true, "");
7487 namespace test_constexpr
7490 template < typename CharT >
7491 unsigned long constexpr
7492 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7494 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7497 template < typename CharT >
7498 unsigned long constexpr
7499 strlen_c(const CharT *const s) noexcept
7501 return strlen_c_r(s, 0UL);
7504 static_assert(strlen_c("") == 0UL, "");
7505 static_assert(strlen_c("1") == 1UL, "");
7506 static_assert(strlen_c("example
") == 7UL, "");
7507 static_assert(strlen_c("another\
0example
") == 7UL, "");
7511 namespace test_rvalue_references
7517 static constexpr int value = N;
7520 answer<1> f(int&) { return answer<1>(); }
7521 answer<2> f(const int&) { return answer<2>(); }
7522 answer<3> f(int&&) { return answer<3>(); }
7529 static_assert(decltype(f(i))::value == 1, "");
7530 static_assert(decltype(f(c))::value == 2, "");
7531 static_assert(decltype(f(0))::value == 3, "");
7536 namespace test_uniform_initialization
7541 static const int zero {};
7542 static const int one {1};
7545 static_assert(test::zero == 0, "");
7546 static_assert(test::one == 1, "");
7550 namespace test_lambdas
7556 auto lambda1 = [](){};
7557 auto lambda2 = lambda1;
7565 auto a = [](int i, int j){ return i + j; }(1, 2);
7566 auto b = []() -> int { return '0'; }();
7567 auto c = [=](){ return a + b; }();
7568 auto d = [&](){ return c; }();
7569 auto e = [a, &b](int x) mutable {
7570 const auto identity = [](int y){ return y; };
7571 for (auto i = 0; i < a; ++i)
7573 return x + identity(a + b);
7575 return a + b + c + d + e;
7581 const auto nullary = [](){ return 0; };
7582 const auto unary = [](int x){ return x; };
7583 using nullary_t = decltype(nullary);
7584 using unary_t = decltype(unary);
7585 const auto higher1st = [](nullary_t f){ return f(); };
7586 const auto higher2nd = [unary](nullary_t f1){
7587 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7589 return higher1st(nullary) + higher2nd(nullary)(unary);
7594 namespace test_variadic_templates
7600 template <int N0, int... N1toN>
7601 struct sum<N0, N1toN...>
7603 static constexpr auto value = N0 + sum<N1toN...>::value;
7609 static constexpr auto value = 0;
7612 static_assert(sum<>::value == 0, "");
7613 static_assert(sum<1>::value == 1, "");
7614 static_assert(sum<23>::value == 23, "");
7615 static_assert(sum<1, 2>::value == 3, "");
7616 static_assert(sum<5, 5, 11>::value == 21, "");
7617 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7621 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7622 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7624 namespace test_template_alias_sfinae
7629 template<typename T>
7630 using member = typename T::member_type;
7632 template<typename T>
7635 template<typename T>
7636 void func(member<T>*) {}
7640 void test() { func<foo>(0); }
7644 } // namespace cxx11
7646 #endif // __cplusplus >= 201103L
7651 if ac_fn_cxx_try_compile "$LINENO"; then :
7656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7659 eval ac_res=\$$cachevar
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_res" >&5
7661 $as_echo "$ac_res" >&6; }
7662 if eval test x\$$cachevar = xyes; then
7664 if test -n "$CXXCPP" ; then
7665 CXXCPP="$CXXCPP $switch"
7671 if test x$ac_success = xyes; then
7676 CXX_FOR_BUILD="$CXX"
7677 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7678 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7679 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7680 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7681 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7683 ac_cpp='$CPP $CPPFLAGS'
7684 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7685 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7686 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7688 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7689 if test x$ac_success = xno; then
7690 as_fn_error $? "*** A compiler with support
for C
++11 language features is required.
" "$LINENO" 5
7693 if test x$ac_success = xno; then
7694 HAVE_CXX11_FOR_BUILD=0
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C
++11 support was found
" >&5
7696 $as_echo "$as_me: No compiler with C
++11 support was found
" >&6;}
7698 HAVE_CXX11_FOR_BUILD=1
7700 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7708 # Used for setting $lt_cv_objdir
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7710 $as_echo_n "checking for objdir... " >&6; }
7711 if ${lt_cv_objdir+:} false
; then :
7712 $as_echo_n "(cached) " >&6
7714 rm -f .libs
2>/dev
/null
7715 mkdir .libs
2>/dev
/null
7716 if test -d .libs
; then
7719 # MS-DOS does not allow filenames that begin with a dot.
7722 rmdir .libs
2>/dev
/null
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7725 $as_echo "$lt_cv_objdir" >&6; }
7726 objdir
=$lt_cv_objdir
7732 cat >>confdefs.h
<<_ACEOF
7733 #define LT_OBJDIR "$lt_cv_objdir/"
7738 # Check for GMP, MPFR and MPC
7739 gmplibs
="-lmpc -lmpfr -lgmp"
7743 # Specify a location for mpc
7744 # check for this first so it ends up on the link line before mpfr.
7746 # Check whether --with-mpc was given.
7747 if test "${with_mpc+set}" = set; then :
7752 # Check whether --with-mpc-include was given.
7753 if test "${with_mpc_include+set}" = set; then :
7754 withval
=$with_mpc_include;
7758 # Check whether --with-mpc-lib was given.
7759 if test "${with_mpc_lib+set}" = set; then :
7760 withval
=$with_mpc_lib;
7764 if test "x$with_mpc" != x
; then
7765 gmplibs
="-L$with_mpc/lib $gmplibs"
7766 gmpinc
="-I$with_mpc/include $gmpinc"
7768 if test "x$with_mpc_include" != x
; then
7769 gmpinc
="-I$with_mpc_include $gmpinc"
7771 if test "x$with_mpc_lib" != x
; then
7772 gmplibs
="-L$with_mpc_lib $gmplibs"
7774 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x
&& test -d ${srcdir}/mpc
; then
7775 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7776 gmpinc
='-I$$s/mpc/src '"$gmpinc"
7777 # Do not test the mpc version. Assume that it is sufficient, since
7778 # it is in the source tree, and the library has not been built yet
7779 # but it would be included on the link line in the version check below
7780 # hence making the test fail.
7784 # Specify a location for mpfr
7785 # check for this first so it ends up on the link line before gmp.
7787 # Check whether --with-mpfr-dir was given.
7788 if test "${with_mpfr_dir+set}" = set; then :
7789 withval
=$with_mpfr_dir; as_fn_error $?
"The --with-mpfr-dir=PATH option has been removed.
7790 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7795 # Check whether --with-mpfr was given.
7796 if test "${with_mpfr+set}" = set; then :
7801 # Check whether --with-mpfr-include was given.
7802 if test "${with_mpfr_include+set}" = set; then :
7803 withval
=$with_mpfr_include;
7807 # Check whether --with-mpfr-lib was given.
7808 if test "${with_mpfr_lib+set}" = set; then :
7809 withval
=$with_mpfr_lib;
7813 if test "x$with_mpfr" != x
; then
7814 gmplibs
="-L$with_mpfr/lib $gmplibs"
7815 gmpinc
="-I$with_mpfr/include $gmpinc"
7817 if test "x$with_mpfr_include" != x
; then
7818 gmpinc
="-I$with_mpfr_include $gmpinc"
7820 if test "x$with_mpfr_lib" != x
; then
7821 gmplibs
="-L$with_mpfr_lib $gmplibs"
7823 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x
&& test -d ${srcdir}/mpfr
; then
7824 # MPFR v3.1.0 moved the sources into a src sub-directory.
7825 if ! test -d ${srcdir}/mpfr
/src
; then
7826 as_fn_error $?
"Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7828 gmplibs
='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7829 gmpinc
='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7830 extra_mpc_mpfr_configure_flags
='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7831 # Do not test the mpfr version. Assume that it is sufficient, since
7832 # it is in the source tree, and the library has not been built yet
7833 # but it would be included on the link line in the version check below
7834 # hence making the test fail.
7838 # Specify a location for gmp
7840 # Check whether --with-gmp-dir was given.
7841 if test "${with_gmp_dir+set}" = set; then :
7842 withval
=$with_gmp_dir; as_fn_error $?
"The --with-gmp-dir=PATH option has been removed.
7843 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7848 # Check whether --with-gmp was given.
7849 if test "${with_gmp+set}" = set; then :
7854 # Check whether --with-gmp-include was given.
7855 if test "${with_gmp_include+set}" = set; then :
7856 withval
=$with_gmp_include;
7860 # Check whether --with-gmp-lib was given.
7861 if test "${with_gmp_lib+set}" = set; then :
7862 withval
=$with_gmp_lib;
7867 if test "x$with_gmp" != x
; then
7868 gmplibs
="-L$with_gmp/lib $gmplibs"
7869 gmpinc
="-I$with_gmp/include $gmpinc"
7871 if test "x$with_gmp_include" != x
; then
7872 gmpinc
="-I$with_gmp_include $gmpinc"
7874 if test "x$with_gmp_lib" != x
; then
7875 gmplibs
="-L$with_gmp_lib $gmplibs"
7877 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x
&& test -d ${srcdir}/gmp
; then
7878 gmplibs
='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
7879 gmpinc
='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
7880 extra_mpfr_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7881 extra_mpc_gmp_configure_flags
='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7882 extra_isl_gmp_configure_flags
='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
7883 # Do not test the gmp version. Assume that it is sufficient, since
7884 # it is in the source tree, and the library has not been built yet
7885 # but it would be included on the link line in the version check below
7886 # hence making the test fail.
7890 if test -d ${srcdir}/gcc
&& test "x$have_gmp" = xno
; then
7892 saved_CFLAGS
="$CFLAGS"
7893 CFLAGS
="$CFLAGS $gmpinc"
7894 # Check for the recommended and required versions of GMP.
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
7896 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
7898 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7899 /* end confdefs.h. */
7905 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7906 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7907 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
7915 if ac_fn_c_try_compile
"$LINENO"; then :
7916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7917 /* end confdefs.h. */
7923 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
7924 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
7925 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
7933 if ac_fn_c_try_compile
"$LINENO"; then :
7934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7935 $as_echo "yes" >&6; }
7937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7938 $as_echo "buggy but acceptable" >&6; }
7940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7943 $as_echo "no" >&6; }; have_gmp
=no
7945 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7947 # If we have GMP, check the MPFR version.
7948 if test x
"$have_gmp" = xyes
; then
7949 # Check for the recommended and required versions of MPFR.
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
7951 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
7952 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7953 /* end confdefs.h. */
7960 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
7968 if ac_fn_c_try_compile
"$LINENO"; then :
7969 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7970 /* end confdefs.h. */
7977 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
7985 if ac_fn_c_try_compile
"$LINENO"; then :
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7987 $as_echo "yes" >&6; }
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
7990 $as_echo "buggy but acceptable" >&6; }
7992 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
7994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7995 $as_echo "no" >&6; }; have_gmp
=no
7997 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8000 # Check for the MPC header version.
8001 if test x
"$have_gmp" = xyes
; then
8002 # Check for the recommended and required versions of MPC.
8003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8004 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8005 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8012 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8020 if ac_fn_c_try_compile
"$LINENO"; then :
8021 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8028 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8036 if ac_fn_c_try_compile
"$LINENO"; then :
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8038 $as_echo "yes" >&6; }
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8041 $as_echo "buggy but acceptable" >&6; }
8043 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8046 $as_echo "no" >&6; }; have_gmp
=no
8048 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8051 # Now check the MPFR library.
8052 if test x
"$have_gmp" = xyes
; then
8054 LIBS
="$LIBS $gmplibs"
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8056 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8058 /* end confdefs.h. */
8070 mpfr_atan2 (n, n, x, MPFR_RNDN);
8071 mpfr_erfc (n, x, MPFR_RNDN);
8072 mpfr_subnormalize (x, t, MPFR_RNDN);
8076 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8077 mpc_cosh (c, c, MPC_RNDNN);
8078 mpc_pow (c, c, c, MPC_RNDNN);
8079 mpc_acosh (c, c, MPC_RNDNN);
8086 if ac_fn_c_try_link
"$LINENO"; then :
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8088 $as_echo "yes" >&6; }
8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8091 $as_echo "no" >&6; }; have_gmp
=no
8093 rm -f core conftest.err conftest.
$ac_objext \
8094 conftest
$ac_exeext conftest.
$ac_ext
8098 CFLAGS
="$saved_CFLAGS"
8100 # The library versions listed in the error message below should match
8101 # the HARD-minimums enforced above.
8102 if test x
$have_gmp != xyes
; then
8103 as_fn_error $?
"Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8104 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8105 their locations. Source code for these libraries can be found at
8106 their respective hosting sites as well as at
8107 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8108 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8109 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8110 make sure that you have installed both the libraries and the header
8111 files. They may be located in separate packages." "$LINENO" 5
8115 # Flags needed for both GMP, MPFR and/or MPC.
8123 # Libraries to use for stage1 or when not bootstrapping.
8125 # Check whether --with-stage1-libs was given.
8126 if test "${with_stage1_libs+set}" = set; then :
8127 withval
=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8130 stage1_libs
=$withval
8138 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8139 # default is yes if gcc is being built; no otherwise. The reason for
8140 # this default is that gdb is sometimes linked against GNU Source
8141 # Highlight, which is a shared library that uses C++ exceptions. In
8142 # this case, -static-libstdc++ will cause crashes.
8144 # Check whether --with-static-standard-libraries was given.
8145 if test "${with_static_standard_libraries+set}" = set; then :
8146 withval
=$with_static_standard_libraries;
8148 with_static_standard_libraries
=auto
8151 if test "$with_static_standard_libraries" = auto
; then
8152 with_static_standard_libraries
=$have_compiler
8155 # Linker flags to use for stage1 or when not bootstrapping.
8157 # Check whether --with-stage1-ldflags was given.
8158 if test "${with_stage1_ldflags+set}" = set; then :
8159 withval
=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8162 stage1_ldflags
=$withval
8166 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8167 # if supported. But if the user explicitly specified the libraries to use,
8168 # trust that they are doing what they want.
8169 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8170 -a "$have_static_libs" = yes; then
8171 stage1_ldflags
="-static-libstdc++ -static-libgcc"
8177 # Libraries to use for stage2 and later builds.
8179 # Check whether --with-boot-libs was given.
8180 if test "${with_boot_libs+set}" = set; then :
8181 withval
=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8184 poststage1_libs
=$withval
8192 # Linker flags to use for stage2 and later builds.
8194 # Check whether --with-boot-ldflags was given.
8195 if test "${with_boot_ldflags+set}" = set; then :
8196 withval
=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8199 poststage1_ldflags
=$withval
8203 # In stages 2 and 3, default to linking libstdc++ and libgcc
8204 # statically. But if the user explicitly specified the libraries to
8205 # use, trust that they are doing what they want.
8206 if test "$poststage1_libs" = ""; then
8207 poststage1_ldflags
="-static-libstdc++ -static-libgcc"
8213 # GCC GRAPHITE dependency isl.
8214 # Basic setup is inlined here, actual checks are in config/isl.m4
8217 # Check whether --with-isl was given.
8218 if test "${with_isl+set}" = set; then :
8223 # Treat --without-isl as a request to disable
8224 # GRAPHITE support and skip all following checks.
8225 if test "x$with_isl" != "xno"; then
8229 # Check whether --with-isl-include was given.
8230 if test "${with_isl_include+set}" = set; then :
8231 withval
=$with_isl_include;
8235 # Check whether --with-isl-lib was given.
8236 if test "${with_isl_lib+set}" = set; then :
8237 withval
=$with_isl_lib;
8241 # Check whether --enable-isl-version-check was given.
8242 if test "${enable_isl_version_check+set}" = set; then :
8243 enableval
=$enable_isl_version_check; ENABLE_ISL_CHECK
=$enableval
8245 ENABLE_ISL_CHECK
=yes
8249 # Initialize isllibs and islinc.
8258 isllibs
="-L$with_isl/lib"
8259 islinc
="-I$with_isl/include"
8262 if test "x${with_isl_include}" != x
; then
8263 islinc
="-I$with_isl_include"
8265 if test "x${with_isl_lib}" != x
; then
8266 isllibs
="-L$with_isl_lib"
8268 if test "x${islinc}" = x
&& test "x${isllibs}" = x \
8269 && test -d ${srcdir}/isl
; then
8270 isllibs
='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8271 islinc
='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8274 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8277 isllibs
="${isllibs} -lisl"
8281 if test "${ENABLE_ISL_CHECK}" = yes ; then
8282 _isl_saved_CFLAGS
=$CFLAGS
8283 _isl_saved_LDFLAGS
=$LDFLAGS
8284 _isl_saved_LIBS
=$LIBS
8286 CFLAGS
="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8287 LDFLAGS
="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8288 LIBS
="${_isl_saved_LIBS} -lisl -lgmp"
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8291 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8292 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8293 /* end confdefs.h. */
8294 #include <isl/schedule.h>
8298 isl_options_set_schedule_serialize_sccs (NULL, 0);
8303 if ac_fn_c_try_link
"$LINENO"; then :
8308 rm -f core conftest.err conftest.
$ac_objext \
8309 conftest
$ac_exeext conftest.
$ac_ext
8310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8311 $as_echo "$gcc_cv_isl" >&6; }
8313 if test "${gcc_cv_isl}" = no
; then
8314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8315 $as_echo "required isl version is 0.15 or later" >&6; }
8318 CFLAGS
=$_isl_saved_CFLAGS
8319 LDFLAGS
=$_isl_saved_LDFLAGS
8320 LIBS
=$_isl_saved_LIBS
8328 if test "x${with_isl}" = xno
; then
8329 graphite_requested
=no
8330 elif test "x${with_isl}" != x \
8331 ||
test "x${with_isl_include}" != x \
8332 ||
test "x${with_isl_lib}" != x
; then
8333 graphite_requested
=yes
8335 graphite_requested
=no
8340 if test "${gcc_cv_isl}" = no
; then
8345 if test "${graphite_requested}" = yes \
8346 && test "x${isllibs}" = x \
8347 && test "x${islinc}" = x
; then
8349 as_fn_error $?
"Unable to find a usable isl. See config.log for details." "$LINENO" 5
8355 # If the isl check failed, disable builds of in-tree variant of isl
8356 if test "x$with_isl" = xno ||
8357 test "x$gcc_cv_isl" = xno
; then
8358 noconfigdirs
="$noconfigdirs isl"
8365 # Check for LTO support.
8366 # Check whether --enable-lto was given.
8367 if test "${enable_lto+set}" = set; then :
8368 enableval
=$enable_lto; enable_lto
=$enableval
8370 enable_lto
=yes; default_enable_lto
=yes
8379 *-darwin* |
*-aix* |
*-cygwin* |
*-mingw* |
*-aout* |
*-*coff
* | \
8380 *-msdosdjgpp* |
*-vms* |
*-wince* |
*-*-pe* | \
8381 alpha
*-dec-osf* |
*-interix* | hppa
[12]*-*-hpux* | \
8390 if test $target_elf = yes; then :
8391 # ELF platforms build the lto-plugin always.
8392 build_lto_plugin
=yes
8395 if test x
"$default_enable_lto" = x
"yes" ; then
8397 *-apple-darwin[912]* |
*-cygwin* |
*-mingw* |
*djgpp
*) ;;
8398 # On other non-ELF platforms, LTO has yet to be validated.
8402 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8403 # It would also be nice to check the binutils support, but we don't
8404 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8405 # warn during gcc/ subconfigure; unless you're bootstrapping with
8406 # -flto it won't be needed until after installation anyway.
8408 *-cygwin* |
*-mingw* |
*-apple-darwin* |
*djgpp
*) ;;
8409 *) if test x
"$enable_lto" = x
"yes"; then
8410 as_fn_error $?
"LTO support is not enabled for this target." "$LINENO" 5
8415 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8416 # Build it unless LTO was explicitly disabled.
8418 *-cygwin* |
*-mingw*) build_lto_plugin
=$enable_lto ;;
8425 # Check whether --enable-linker-plugin-configure-flags was given.
8426 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8427 enableval
=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags
=$enableval
8429 extra_linker_plugin_configure_flags
=
8433 # Check whether --enable-linker-plugin-flags was given.
8434 if test "${enable_linker_plugin_flags+set}" = set; then :
8435 enableval
=$enable_linker_plugin_flags; extra_linker_plugin_flags
=$enableval
8437 extra_linker_plugin_flags
=
8442 # Enable --enable-host-shared.
8443 # Checked early to determine whether jit is an 'all' language
8444 # Check whether --enable-host-shared was given.
8445 if test "${enable_host_shared+set}" = set; then :
8446 enableval
=$enable_host_shared; host_shared
=$enableval
8453 # By default, C and C++ are the only stage 1 languages.
8454 stage1_languages
=,c
,
8456 # Target libraries that we bootstrap.
8457 bootstrap_target_libs
=,target-libgcc
,
8459 # Figure out what language subdirectories are present.
8460 # Look if the user specified --enable-languages="..."; if not, use
8461 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8463 # NB: embedded tabs in this IF block -- do not untabify
8464 if test -d ${srcdir}/gcc
; then
8465 if test x
"${enable_languages+set}" != xset
; then
8466 if test x
"${LANGUAGES+set}" = xset
; then
8467 enable_languages
="${LANGUAGES}"
8468 echo configure.ac
: warning
: setting LANGUAGES is deprecated
, use
--enable-languages instead
1>&2
8470 enable_languages
=default
8473 if test x
"${enable_languages}" = x ||
8474 test x
"${enable_languages}" = xyes
;
8476 echo configure.ac
: --enable-languages needs
at least one language argument
1>&2
8480 enable_languages
=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8482 # 'f95' is the old name for the 'fortran' language. We issue a warning
8483 # and make the substitution.
8484 case ,${enable_languages}, in
8486 echo configure.ac
: warning
: 'f95' as language name is deprecated
, use
'fortran' instead
1>&2
8487 enable_languages
=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8491 # If bootstrapping, C++ must be enabled.
8492 case ",$enable_languages,:$enable_bootstrap" in
8495 if test -f ${srcdir}/gcc
/cp
/config-lang.
in; then
8496 enable_languages
="${enable_languages},c++"
8498 as_fn_error $?
"bootstrapping requires c++ sources" "$LINENO" 5
8503 # First scan to see if an enabled language requires some other language.
8504 # We assume that a given config-lang.in will list all the language
8505 # front ends it requires, even if some are required indirectly.
8506 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8507 case ${lang_frag} in
8509 # The odd quoting in the next line works around
8510 # an apparent bug in bash 1.12 on linux.
8511 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8513 # From the config-lang.in, get $language, $lang_requires, and
8514 # $lang_requires_boot_languages.
8517 lang_requires_boot_languages
=
8518 # set srcdir during sourcing lang_frag to the gcc dir.
8519 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8520 # polutes this shell
8521 saved_srcdir
=${srcdir}
8522 srcdir
=${srcdir}/gcc .
${lang_frag}
8523 srcdir
=${saved_srcdir}
8524 for other
in ${lang_requires} ${lang_requires_boot_languages}; do
8525 case ,${enable_languages}, in
8530 echo " \`$other' language required by \`$language'; enabling" 1>&2
8531 enable_languages
="${enable_languages},${other}"
8535 for other
in ${lang_requires_boot_languages} ; do
8536 if test "$other" != "c"; then
8537 case ,${enable_stage1_languages}, in
8542 case ,${enable_languages}, in
8544 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8545 enable_stage1_languages
="$enable_stage1_languages,${other}"
8556 new_enable_languages
=,c
,
8558 # If LTO is enabled, add the LTO front end.
8559 if test "$enable_lto" = "yes" ; then
8560 case ,${enable_languages}, in
8562 *) enable_languages
="${enable_languages},lto" ;;
8564 if test "${build_lto_plugin}" = "yes" ; then
8565 configdirs
="$configdirs lto-plugin"
8569 # If we're building an offloading compiler, add the LTO front end.
8570 if test x
"$enable_as_accelerator_for" != x
; then
8571 case ,${enable_languages}, in
8573 *) enable_languages
="${enable_languages},lto" ;;
8577 missing_languages
=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8578 potential_languages
=,c
,
8580 enabled_target_libs
=
8581 disabled_target_libs
=
8583 for lang_frag
in ${srcdir}/gcc
/*/config-lang.
in ..
; do
8584 case ${lang_frag} in
8586 # The odd quoting in the next line works around
8587 # an apparent bug in bash 1.12 on linux.
8588 ${srcdir}/gcc
/[*]/config-lang.
in) ;;
8590 # From the config-lang.in, get $language, $target_libs,
8591 # $lang_dirs, $boot_language, and $build_by_default
8597 build_by_default
=yes
8598 # set srcdir during sourcing. See above about save & restore
8599 saved_srcdir
=${srcdir}
8600 srcdir
=${srcdir}/gcc .
${lang_frag}
8601 srcdir
=${saved_srcdir}
8602 if test x
${language} = x
; then
8603 echo "${lang_frag} doesn't set \$language." 1>&2
8607 if test "$language" = "c++"; then
8612 # C is always enabled, so no need to add it again
8613 if test "$language" != "c"; then
8614 case ,${enable_languages}, in
8616 # Language was explicitly selected; include it
8620 # All languages are enabled
8624 # 'default' was selected, select it if it is a default language
8625 add_this_lang
=${build_by_default}
8630 # Disable languages that need other directories if these aren't available.
8631 for i
in $subdir_requires; do
8632 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8633 case ${add_this_lang} in
8635 # Specifically requested language; tell them.
8636 as_fn_error $?
"The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8640 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8641 add_this_lang
=unsupported
8645 add_this_lang
=unsupported
8650 # Disable Ada if no preexisting GNAT is available.
8651 case ${add_this_lang}:${language}:${have_gnat} in
8653 # Specifically requested language; tell them.
8654 as_fn_error $?
"GNAT is required to build $language" "$LINENO" 5
8657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8658 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8659 add_this_lang
=unsupported
8663 add_this_lang
=unsupported
8667 # Disable jit if -enable-host-shared not specified
8668 # but not if building for Mingw. All code in Windows
8669 # is position independent code (PIC).
8673 case ${add_this_lang}:${language}:${host_shared} in
8675 # PR jit/64780: explicitly specify --enable-host-shared
8677 Enabling language \"jit\" requires --enable-host-shared.
8679 --enable-host-shared typically slows the rest of the compiler down by
8680 a few %, so you must explicitly enable it.
8682 If you want to build both the jit and the regular compiler, it is often
8683 best to do this via two separate configure/builds, in separate
8684 directories, to avoid imposing the performance cost of
8685 --enable-host-shared on the regular compiler." "$LINENO" 5
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8689 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8690 add_this_lang
=unsupported
8694 add_this_lang
=unsupported
8700 # Disable a language that is unsupported by the target.
8701 case "${add_this_lang}: $unsupported_languages " in
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8706 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8707 add_this_lang
=unsupported
8711 case $add_this_lang in
8713 # Remove language-dependent dirs.
8714 disabled_target_libs
="$disabled_target_libs $target_libs"
8715 noconfigdirs
="$noconfigdirs $lang_dirs"
8718 # Remove language-dependent dirs; still show language as supported.
8719 disabled_target_libs
="$disabled_target_libs $target_libs"
8720 noconfigdirs
="$noconfigdirs $lang_dirs"
8721 potential_languages
="${potential_languages}${language},"
8724 new_enable_languages
="${new_enable_languages}${language},"
8725 potential_languages
="${potential_languages}${language},"
8726 missing_languages
=`echo "$missing_languages" | sed "s/,$language,/,/"`
8727 enabled_target_libs
="$enabled_target_libs $target_libs"
8728 case "${boot_language}:,$enable_stage1_languages," in
8729 yes:* |
*:*,$language,* |
*:*,yes, |
*:*,all
,)
8730 # Add to (comma-separated) list of stage 1 languages.
8731 case ",$stage1_languages," in
8732 *,$language,* |
,yes, |
,all
,) ;;
8733 *) stage1_languages
="${stage1_languages}${language}," ;;
8735 # We need to bootstrap any supporting libraries.
8736 bootstrap_target_libs
="${bootstrap_target_libs}${target_libs},"
8745 # Add target libraries which are only needed for disabled languages
8747 if test -n "$disabled_target_libs"; then
8748 for dir
in $disabled_target_libs; do
8749 case " $enabled_target_libs " in
8751 *) noconfigdirs
="$noconfigdirs $dir" ;;
8756 # Check whether --enable-stage1-languages was given.
8757 if test "${enable_stage1_languages+set}" = set; then :
8758 enableval
=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8760 # Set it to something that will have no effect in the loop below
8761 enable_stage1_languages
=c
;;
8763 enable_stage1_languages
=`echo $new_enable_languages | \
8764 sed -e "s/^,//" -e "s/,$//" ` ;;
8766 enable_stage1_languages
=`echo ,$enable_stage1_languages, | \
8767 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8770 # Add "good" languages from enable_stage1_languages to stage1_languages,
8771 # while "bad" languages go in missing_languages. Leave no duplicates.
8772 for i
in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8773 case $potential_languages in
8775 case $stage1_languages in
8777 *) stage1_languages
="$stage1_languages$i," ;;
8780 case $missing_languages in
8782 *) missing_languages
="$missing_languages$i," ;;
8789 # Remove leading/trailing commas that were added for simplicity
8790 potential_languages
=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8791 missing_languages
=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8792 stage1_languages
=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8793 new_enable_languages
=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8795 if test "x$missing_languages" != x
; then
8797 The following requested languages could not be built: ${missing_languages}
8798 Supported languages are: ${potential_languages}" "$LINENO" 5
8800 if test "x$new_enable_languages" != "x$enable_languages"; then
8801 echo The following languages will be built
: ${new_enable_languages}
8802 enable_languages
="$new_enable_languages"
8806 ac_configure_args
=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8809 # Handle --disable-<component> generically.
8810 for dir
in $configdirs $build_configdirs $target_configdirs ; do
8811 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8812 varname
=`echo $dirname | sed -e s/+/_/g`
8813 if eval test x\
${enable_${varname}} "=" xno
; then
8814 noconfigdirs
="$noconfigdirs $dir"
8818 # Check for Boehm's garbage collector
8819 # Check whether --enable-objc-gc was given.
8820 if test "${enable_objc_gc+set}" = set; then :
8821 enableval
=$enable_objc_gc;
8825 # Check whether --with-target-bdw-gc was given.
8826 if test "${with_target_bdw_gc+set}" = set; then :
8827 withval
=$with_target_bdw_gc;
8831 # Check whether --with-target-bdw-gc-include was given.
8832 if test "${with_target_bdw_gc_include+set}" = set; then :
8833 withval
=$with_target_bdw_gc_include;
8837 # Check whether --with-target-bdw-gc-lib was given.
8838 if test "${with_target_bdw_gc_lib+set}" = set; then :
8839 withval
=$with_target_bdw_gc_lib;
8843 case ,${enable_languages},:${enable_objc_gc} in *,objc
,*:yes|
*,objc
,*:auto
)
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8845 $as_echo_n "checking for bdw garbage collector... " >&6; }
8846 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x
; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8848 $as_echo "using bdw-gc in default locations" >&6; }
8850 if test "x$with_target_bdw_gc_include" = x
&& test "x$with_target_bdw_gc_lib" != x
; then
8851 as_fn_error $?
"found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
8852 elif test "x$with_target_bdw_gc_include" != x
&& test "x$with_target_bdw_gc_lib" = x
; then
8853 as_fn_error $?
"found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8856 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8861 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8862 case ,${enable_languages}, in
8864 # Disable libitm, libsanitizer if we're not building libstdc++
8865 case "${noconfigdirs}" in
8866 *target-libstdc
++-v3*)
8867 noconfigdirs
="$noconfigdirs target-libitm target-libsanitizer"
8873 noconfigdirs
="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
8877 # If gcc/ is not in the source tree then we'll not be building a
8878 # target compiler, assume in that case we don't want to build any
8879 # target libraries or tools.
8881 # This was added primarily for the benefit for binutils-gdb who reuse
8882 # this configure script, but don't always have target tools available.
8883 if test ! -d ${srcdir}/gcc
; then
8884 skipdirs
="${skipdirs} ${target_configdirs}"
8887 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
8888 # $build_configdirs and $target_configdirs.
8889 # If we have the source for $noconfigdirs entries, add them to $notsupp.
8892 for dir
in .
$skipdirs $noconfigdirs ; do
8893 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
8894 if test $dir != .
&& echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8895 configdirs
=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
8896 if test -r $srcdir/$dirname/configure
; then
8897 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8900 notsupp
="$notsupp $dir"
8904 if test $dir != .
&& echo " ${build_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8905 build_configdirs
=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
8906 if test -r $srcdir/$dirname/configure
; then
8907 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8910 notsupp
="$notsupp $dir"
8914 if test $dir != .
&& echo " ${target_configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8915 target_configdirs
=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
8916 if test -r $srcdir/$dirname/configure
; then
8917 if echo " ${skipdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
8920 notsupp
="$notsupp $dir"
8926 # Quietly strip out all directories which aren't configurable in this tree.
8927 # This relies on all configurable subdirectories being autoconfiscated, which
8929 build_configdirs_all
="$build_configdirs"
8931 for i
in ${build_configdirs_all} ; do
8932 j
=`echo $i | sed -e s/build-//g`
8933 if test -f ${srcdir}/$j/configure
; then
8934 build_configdirs
="${build_configdirs} $i"
8938 configdirs_all
="$configdirs"
8940 for i
in ${configdirs_all} ; do
8941 if test -f ${srcdir}/$i/configure
; then
8942 configdirs
="${configdirs} $i"
8946 target_configdirs_all
="$target_configdirs"
8948 for i
in ${target_configdirs_all} ; do
8949 j
=`echo $i | sed -e s/target-//g`
8950 if test -f ${srcdir}/$j/configure
; then
8951 target_configdirs
="${target_configdirs} $i"
8955 # libiberty-linker-plugin is special: it doesn't have its own source directory,
8956 # so we have to add it after the preceding checks.
8957 if test x
"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
8959 case " $configdirs " in
8961 # If we can build libiberty, we can also build libiberty-linker-plugin.
8962 configdirs
="$configdirs libiberty-linker-plugin"
8963 extra_linker_plugin_configure_flags
="$extra_linker_plugin_configure_flags \
8964 --with-libiberty=../libiberty-linker-plugin";;
8966 as_fn_error $?
"libiberty missing" "$LINENO" 5;;
8970 # Sometimes we have special requirements for the host libiberty.
8971 extra_host_libiberty_configure_flags
=
8972 extra_host_zlib_configure_flags
=
8973 case " $configdirs " in
8974 *" lto-plugin "* |
*" libcc1 "*)
8975 # When these are to be built as shared libraries, the same applies to
8977 extra_host_libiberty_configure_flags
=--enable-shared
8980 # When bfd is to be built as a shared library, the same applies to
8982 if test "$enable_shared" = "yes"; then
8983 extra_host_zlib_configure_flags
=--enable-host-shared
8990 # Produce a warning message for the subdirs we can't configure.
8991 # This isn't especially interesting in the Cygnus tree, but in the individual
8992 # FSF releases, it's important to let people know when their machine isn't
8993 # supported by the one or two programs in a package.
8995 if test -n "${notsupp}" && test -z "${norecursion}" ; then
8996 # If $appdirs is non-empty, at least one of those directories must still
8997 # be configured, or we error out. (E.g., if the gas release supports a
8998 # specified target in some subdirs but not the gas subdir, we shouldn't
8999 # pretend that all is well.)
9000 if test -n "$appdirs" ; then
9001 for dir
in $appdirs ; do
9002 if test -r $dir/Makefile.
in ; then
9003 if echo " ${configdirs} " |
grep " ${dir} " >/dev
/null
2>&1; then
9007 if echo " ${target_configdirs} " |
grep " target-${dir} " >/dev
/null
2>&1; then
9013 if test -n "$appdirs" ; then
9014 echo "*** This configuration is not supported by this package." 1>&2
9018 # Okay, some application will build, or we don't care to check. Still
9019 # notify of subdirs not getting built.
9020 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9021 echo " ${notsupp}" 1>&2
9022 echo " (Any other directories should still work fine.)" 1>&2
9030 # To find our prefix, in gcc_cv_tool_prefix.
9032 # The user is always right.
9033 if test "${PATH_SEPARATOR+set}" != set; then
9034 echo "#! /bin/sh" >conf$$.sh
9035 echo "exit 0" >>conf$$.sh
9037 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
9046 get_gcc_base_ver
="cat"
9048 # Check whether --with-gcc-major-version-only was given.
9049 if test "${with_gcc_major_version_only+set}" = set; then :
9050 withval
=$with_gcc_major_version_only; if test x
$with_gcc_major_version_only = xyes
; then
9051 get_gcc_base_ver
="sed -e 's/^\([0-9]*\).*/\1/'"
9061 if test "x$exec_prefix" = xNONE
; then
9062 if test "x$prefix" = xNONE
; then
9063 gcc_cv_tool_prefix
=$ac_default_prefix
9065 gcc_cv_tool_prefix
=$prefix
9068 gcc_cv_tool_prefix
=$exec_prefix
9071 # If there is no compiler in the tree, use the PATH only. In any
9072 # case, if there is no compiler in the tree nobody should use
9073 # AS_FOR_TARGET and LD_FOR_TARGET.
9074 if test x
$host = x
$build && test -f $srcdir/gcc
/BASE-VER
; then
9075 if test x
$with_gcc_major_version_only = xyes
; then
9076 gcc_version
=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9078 gcc_version
=`cat $srcdir/gcc/BASE-VER`
9080 gcc_cv_tool_dirs
="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9081 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9082 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9083 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9084 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9085 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9090 if test x
$build = x
$target && test -n "$md_exec_prefix"; then
9091 gcc_cv_tool_dirs
="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9099 # Check whether --with-build-sysroot was given.
9100 if test "${with_build_sysroot+set}" = set; then :
9101 withval
=$with_build_sysroot; if test x
"$withval" != x
; then
9102 SYSROOT_CFLAGS_FOR_TARGET
="--sysroot=$withval"
9105 SYSROOT_CFLAGS_FOR_TARGET
=
9111 # Check whether --with-debug-prefix-map was given.
9112 if test "${with_debug_prefix_map+set}" = set; then :
9113 withval
=$with_debug_prefix_map; if test x
"$withval" != x
; then
9114 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9115 for debug_map
in $withval; do
9116 DEBUG_PREFIX_CFLAGS_FOR_TARGET
="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9120 DEBUG_PREFIX_CFLAGS_FOR_TARGET
=
9125 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9126 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9127 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9128 # We want to ensure that TARGET libraries (which we know are built with
9129 # gcc) are built with "-O2 -g", so include those options when setting
9130 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9131 if test "x$CFLAGS_FOR_TARGET" = x
; then
9132 if test "x${is_cross_compiler}" = xyes
; then
9133 CFLAGS_FOR_TARGET
="-g -O2"
9135 CFLAGS_FOR_TARGET
=$CFLAGS
9138 *) CFLAGS_FOR_TARGET
="-O2 $CFLAGS_FOR_TARGET" ;;
9141 *" -g "* |
*" -g3 "*) ;;
9142 *) CFLAGS_FOR_TARGET
="-g $CFLAGS_FOR_TARGET" ;;
9148 if test "x$CXXFLAGS_FOR_TARGET" = x
; then
9149 if test "x${is_cross_compiler}" = xyes
; then
9150 CXXFLAGS_FOR_TARGET
="-g -O2"
9152 CXXFLAGS_FOR_TARGET
=$CXXFLAGS
9153 case " $CXXFLAGS " in
9155 *) CXXFLAGS_FOR_TARGET
="-O2 $CXXFLAGS_FOR_TARGET" ;;
9157 case " $CXXFLAGS " in
9158 *" -g "* |
*" -g3 "*) ;;
9159 *) CXXFLAGS_FOR_TARGET
="-g $CXXFLAGS_FOR_TARGET" ;;
9167 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9168 # the named directory are copied to $(tooldir)/sys-include.
9169 if test x
"${with_headers}" != x
&& test x
"${with_headers}" != xno
; then
9170 if test x
${is_cross_compiler} = xno
; then
9171 echo 1>&2 '***' --with-headers is only supported when cross compiling
9174 if test x
"${with_headers}" != xyes
; then
9175 x
=${gcc_cv_tool_prefix}
9176 copy_dirs
="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9180 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9181 # the name directories are copied to $(tooldir)/lib. Multiple directories
9183 if test x
"${with_libs}" != x
&& test x
"${with_libs}" != xno
; then
9184 if test x
${is_cross_compiler} = xno
; then
9185 echo 1>&2 '***' --with-libs is only supported when cross compiling
9188 if test x
"${with_libs}" != xyes
; then
9189 # Copy the libraries in reverse order, so that files in the first named
9190 # library override files in subsequent libraries.
9191 x
=${gcc_cv_tool_prefix}
9192 for l
in ${with_libs}; do
9193 copy_dirs
="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9198 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9200 # This is done by determining whether or not the appropriate directory
9201 # is available, and by checking whether or not specific configurations
9202 # have requested that this magic not happen.
9204 # The command line options always override the explicit settings in
9205 # configure.ac, and the settings in configure.ac override this magic.
9207 # If the default for a toolchain is to use GNU as and ld, and you don't
9208 # want to do that, then you should use the --without-gnu-as and
9209 # --without-gnu-ld options for the configure script. Similarly, if
9210 # the default is to use the included zlib and you don't want to do that,
9211 # you should use the --with-system-zlib option for the configure script.
9213 if test x
${use_gnu_as} = x
&&
9214 echo " ${configdirs} " |
grep " gas " > /dev
/null
2>&1 ; then
9216 extra_host_args
="$extra_host_args --with-gnu-as"
9219 if test x
${use_gnu_ld} = x
&&
9220 echo " ${configdirs} " |
egrep " (go)?ld " > /dev
/null
2>&1 ; then
9222 extra_host_args
="$extra_host_args --with-gnu-ld"
9225 if test x
${use_included_zlib} = x
&&
9226 echo " ${configdirs} " |
grep " zlib " > /dev
/null
2>&1 ; then
9229 with_system_zlib
=yes
9230 extra_host_args
="$extra_host_args --with-system-zlib"
9233 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9234 # can detect this case.
9236 if test x
${with_newlib} != xno
&& echo " ${target_configdirs} " |
grep " target-newlib " > /dev
/null
2>&1 ; then
9238 extra_host_args
="$extra_host_args --with-newlib"
9241 # Handle ${copy_dirs}
9242 set fnord
${copy_dirs}
9244 while test $# != 0 ; do
9245 if test -f $2/COPIED
&& test x
"`cat $2/COPIED`" = x
"$1" ; then
9248 echo Copying
$1 to
$2
9250 # Use the install script to create the directory and all required
9251 # parent directories.
9252 if test -d $2 ; then
9256 ${srcdir}/install-sh
-c -m 644 config.temp
$2/COPIED
9259 # Copy the directory, assuming we have tar.
9260 # FIXME: Should we use B in the second tar? Not all systems support it.
9261 (cd $1; tar -cf - .
) |
(cd $2; tar -xpf -)
9263 # It is the responsibility of the user to correctly adjust all
9264 # symlinks. If somebody can figure out how to handle them correctly
9265 # here, feel free to add the code.
9272 # Determine a target-dependent exec_prefix that the installed
9273 # gcc will search in. Keep this list sorted by triplet, with
9274 # the *-*-osname triplets last.
9277 i
[34567]86-pc-msdosdjgpp*)
9278 md_exec_prefix
=/dev
/env
/DJDIR
/bin
9283 md_exec_prefix
=/usr
/ccs
/bin
9287 extra_arflags_for_target
=
9288 extra_nmflags_for_target
=
9289 extra_ranlibflags_for_target
=
9290 target_makefile_frag
=/dev
/null
9293 target_makefile_frag
="config/mt-spu"
9295 mips
*-sde-elf* | mips
*-mti-elf* | mips
*-img-elf*)
9296 target_makefile_frag
="config/mt-sde"
9298 mipsisa
*-*-elfoabi*)
9299 target_makefile_frag
="config/mt-mips-elfoabi"
9301 mips
*-*-*linux
* | mips
*-*-gnu*)
9302 target_makefile_frag
="config/mt-mips-gnu"
9305 target_makefile_frag
="config/mt-nios2-elf"
9308 target_makefile_frag
="config/mt-android"
9310 *-*-linux* |
*-*-gnu* |
*-*-k*bsd
*-gnu |
*-*-kopensolaris*-gnu)
9311 target_makefile_frag
="config/mt-gnu"
9313 *-*-aix4.
[3456789]* |
*-*-aix[56789].
*)
9314 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9315 # commands to handle both 32-bit and 64-bit objects. These flags are
9316 # harmless if we're using GNU nm or ar.
9317 extra_arflags_for_target
=" -X32_64"
9318 extra_nmflags_for_target
=" -B -X32_64"
9322 alphaieee_frag
=/dev
/null
9325 # This just makes sure to use the -mieee option to build target libs.
9326 # This should probably be set individually by each library.
9327 alphaieee_frag
="config/mt-alphaieee"
9331 # If --enable-target-optspace always use -Os instead of -O2 to build
9332 # the target libraries, similarly if it is not specified, use -Os
9333 # on selected platforms.
9334 ospace_frag
=/dev
/null
9335 case "${enable_target_optspace}:${target}" in
9337 ospace_frag
="config/mt-ospace"
9340 ospace_frag
="config/mt-d30v"
9342 :m32r-
* |
:d10v-
* |
:fr30-
* |
:i?
86*-*-elfiamcu)
9343 ospace_frag
="config/mt-ospace"
9348 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9352 # Some systems (e.g., one of the i386-aix systems the gas testers are
9353 # using) don't handle "\$" correctly, so don't use it here.
9354 tooldir
='${exec_prefix}'/${target_noncanonical}
9355 build_tooldir
=${tooldir}
9357 # Create a .gdbinit file which runs the one in srcdir
9358 # and tells GDB to look there for source files.
9360 if test -r ${srcdir}/.gdbinit
; then
9363 *) cat > .
/.gdbinit
<<EOF
9367 source ${srcdir}/.gdbinit
9373 # Make sure that the compiler is able to generate an executable. If it
9374 # can't, we are probably in trouble. We don't care whether we can run the
9375 # executable--we might be using a cross compiler--we only care whether it
9376 # can be created. At this point the main configure script has set CC.
9378 echo "int main () { return 0; }" > conftest.c
9379 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9380 if test $?
= 0 ; then
9381 if test -s conftest ||
test -s conftest.exe
; then
9387 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9388 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9395 # Decide which environment variable is used to find dynamic libraries.
9397 *-*-hpux*) RPATH_ENVVAR
=SHLIB_PATH
;;
9398 *-*-darwin*) RPATH_ENVVAR
=DYLD_LIBRARY_PATH
;;
9399 *-*-mingw* |
*-*-cygwin ) RPATH_ENVVAR
=PATH
;;
9400 *) RPATH_ENVVAR
=LD_LIBRARY_PATH
;;
9403 # On systems where the dynamic library environment variable is PATH,
9404 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9405 # built executables to PATH.
9406 if test "$RPATH_ENVVAR" = PATH
; then
9407 GCC_SHLIB_SUBDIR
=/shlib
9412 # Adjust the toplevel makefile according to whether bootstrap was selected.
9413 case $enable_bootstrap in
9415 bootstrap_suffix
=bootstrap
9416 BUILD_CONFIG
=bootstrap-debug
9419 bootstrap_suffix
=no-bootstrap
9424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9425 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9428 # Check whether --with-build-config was given.
9429 if test "${with_build_config+set}" = set; then :
9430 withval
=$with_build_config; case $with_build_config in
9431 yes) with_build_config
= ;;
9432 no
) with_build_config
= BUILD_CONFIG
= ;;
9437 if test "x${with_build_config}" != x
; then
9438 BUILD_CONFIG
=$with_build_config
9440 case $BUILD_CONFIG in
9442 if echo "int f (void) { return 0; }" > conftest.c
&&
9443 ${CC} -c conftest.c
&&
9444 mv conftest.o conftest.o.g0
&&
9445 ${CC} -c -g conftest.c
&&
9446 mv conftest.o conftest.o.g
&&
9447 ${srcdir}/contrib
/compare-debug conftest.o.g0 conftest.o.g
> /dev
/null
2>&1; then
9452 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9457 $as_echo "$BUILD_CONFIG" >&6; }
9460 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9462 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9463 # Check whether --enable-vtable-verify was given.
9464 if test "${enable_vtable_verify+set}" = set; then :
9465 enableval
=$enable_vtable_verify; case "$enableval" in
9466 yes) enable_vtable_verify
=yes ;;
9467 no
) enable_vtable_verify
=no
;;
9468 *) enable_vtable_verify
=no
;;
9471 enable_vtable_verify
=no
9474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9475 $as_echo "$enable_vtable_verify" >&6; }
9477 # Record target_configdirs and the configure arguments for target and
9478 # build configuration in Makefile.
9479 target_configdirs
=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9480 build_configdirs
=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9481 bootstrap_fixincludes
=no
9483 # If we are building libgomp, bootstrap it.
9484 if echo " ${target_configdirs} " |
grep " libgomp " > /dev
/null
2>&1 ; then
9485 bootstrap_target_libs
=${bootstrap_target_libs}target-libgomp
,
9488 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9489 # or bootstrap-ubsan, bootstrap it.
9490 if echo " ${target_configdirs} " |
grep " libsanitizer " > /dev
/null
2>&1; then
9491 case "$BUILD_CONFIG" in
9492 *bootstrap-hwasan
* |
*bootstrap-asan
* |
*bootstrap-ubsan
* )
9493 bootstrap_target_libs
=${bootstrap_target_libs}target-libsanitizer
,
9494 bootstrap_fixincludes
=yes
9499 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9500 if echo " ${target_configdirs} " |
grep " libvtv " > /dev
/null
2>&1 &&
9501 test "$enable_vtable_verify" != no
; then
9502 bootstrap_target_libs
=${bootstrap_target_libs}target-libvtv
,
9505 # Determine whether gdb needs tk/tcl or not.
9506 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9507 # and in that case we want gdb to be built without tk. Ugh!
9508 # In fact I believe gdb is the *only* package directly dependent on tk,
9509 # so we should be able to put the 'maybe's in unconditionally and
9510 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9511 # 100% sure that that's safe though.
9513 gdb_tk
="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9514 case "$enable_gdbtk" in
9518 GDB_TK
="${gdb_tk}" ;;
9520 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9521 # distro. Eventually someone will fix this and move Insight, nee
9522 # gdbtk to a separate directory.
9523 if test -d ${srcdir}/gdb
/gdbtk
; then
9530 CONFIGURE_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9531 INSTALL_GDB_TK
=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9533 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9534 # else does, only include them if one of these is built. The Makefile
9535 # provides the ordering, so it's enough here to add to the list.
9536 case " ${configdirs} " in
9538 configdirs
="${configdirs} gnulib gdbsupport"
9541 configdirs
="${configdirs} gnulib gdbsupport"
9544 configdirs
="${configdirs} gnulib"
9548 # Strip out unwanted targets.
9550 # While at that, we remove Makefiles if we were started for recursive
9551 # configuration, so that the top-level Makefile reconfigures them,
9552 # like we used to do when configure itself was recursive.
9554 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9555 # but now we're fixing up the Makefile ourselves with the additional
9556 # commands passed to AC_CONFIG_FILES. Use separate variables
9557 # extrasub-{build,host,target} not because there is any reason to split
9558 # the substitutions up that way, but only to remain below the limit of
9559 # 99 commands in a script, for HP-UX sed.
9561 # Do not nest @if/@endif or @unless/@endunless pairs, because
9562 # configure will not warn you at all.
9564 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9565 yes:yes:*\ gold\
*:*,c
++,*) ;;
9566 yes:yes:*\ gold\
*:*)
9567 as_fn_error $?
"in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9572 for module
in ${build_configdirs} ; do
9573 if test -z "${no_recursion}" \
9574 && test -f ${build_subdir}/${module}/Makefile
; then
9575 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9576 rm -f ${build_subdir}/${module}/Makefile
9578 extrasub_build
="$extrasub_build
9579 /^@if build-$module\$/d
9580 /^@endif build-$module\$/d
9581 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9582 /^@if build-$module-$bootstrap_suffix\$/d
9583 /^@endif build-$module-$bootstrap_suffix\$/d
9584 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9587 for module
in ${configdirs} ; do
9588 if test -z "${no_recursion}"; then
9589 for file in stage
*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile
; do
9590 if test -f ${file}; then
9591 echo 1>&2 "*** removing ${file} to force reconfigure"
9596 case ${module},${bootstrap_fixincludes} in
9597 fixincludes
,no
) host_bootstrap_suffix
=no-bootstrap
;;
9598 *) host_bootstrap_suffix
=$bootstrap_suffix ;;
9600 extrasub_host
="$extrasub_host
9602 /^@endif $module\$/d
9603 /^@unless $module\$/,/^@endunless $module\$/d
9604 /^@if $module-$host_bootstrap_suffix\$/d
9605 /^@endif $module-$host_bootstrap_suffix\$/d
9606 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9609 for module
in ${target_configdirs} ; do
9610 if test -z "${no_recursion}" \
9611 && test -f ${target_subdir}/${module}/Makefile
; then
9612 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9613 rm -f ${target_subdir}/${module}/Makefile
9616 # We only bootstrap target libraries listed in bootstrap_target_libs.
9617 case $bootstrap_target_libs in
9618 *,target-
$module,*) target_bootstrap_suffix
=$bootstrap_suffix ;;
9619 *) target_bootstrap_suffix
=no-bootstrap
;;
9622 extrasub_target
="$extrasub_target
9623 /^@if target-$module\$/d
9624 /^@endif target-$module\$/d
9625 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9626 /^@if target-$module-$target_bootstrap_suffix\$/d
9627 /^@endif target-$module-$target_bootstrap_suffix\$/d
9628 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9631 # Do the final fixup along with target modules.
9632 extrasub_target
="$extrasub_target
9637 # Create the serialization dependencies. This uses a temporary file.
9639 # Check whether --enable-serial-configure was given.
9640 if test "${enable_serial_configure+set}" = set; then :
9641 enableval
=$enable_serial_configure;
9645 case ${enable_serial_configure} in
9647 enable_serial_build_configure
=yes
9648 enable_serial_host_configure
=yes
9649 enable_serial_target_configure
=yes
9653 # These force 'configure's to be done one at a time, to avoid problems
9654 # with contention over a shared config.cache.
9656 echo '# serdep.tmp' > serdep.tmp
9658 test "x${enable_serial_build_configure}" = xyes
&&
9659 for item
in ${build_configdirs} ; do
9662 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp
;;
9667 test "x${enable_serial_host_configure}" = xyes
&&
9668 for item
in ${configdirs} ; do
9671 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp
;;
9676 test "x${enable_serial_target_configure}" = xyes
&&
9677 for item
in ${target_configdirs} ; do
9680 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp
;;
9684 serialization_dependencies
=serdep.tmp
9687 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9688 # target, nonopt, and variable assignments. These are the ones we
9689 # might not want to pass down to subconfigures. The exception being
9690 # --cache-file=/dev/null, which is used to turn off the use of cache
9691 # files altogether, and which should be passed on to subconfigures.
9692 # Also strip program-prefix, program-suffix, and program-transform-name,
9693 # so that we can pass down a consistent program-transform-name.
9698 eval "set -- $ac_configure_args"
9701 if test X
"$skip_next" = X
"yes"; then
9705 if test X
"$keep_next" = X
"yes"; then
9708 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9710 baseargs
="$baseargs '$ac_arg'"
9711 tbaseargs
="$tbaseargs '$ac_arg'"
9716 # Handle separated arguments. Based on the logic generated by
9719 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
9720 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
9721 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
9722 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
9736 --with-* |
--without-*)
9737 libopt
=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9741 lib
=`echo "$libopt" | sed 's,[-_]include$,,'`
9744 lib
=`echo "$libopt" | sed 's,[-_]lib$,,'`
9753 mpc | mpfr | gmp | isl
)
9754 # If we're processing --with-$lib, --with-$lib-include or
9755 # --with-$lib-lib, for one of the libs above, and target is
9756 # different from host, don't pass the current argument to any
9757 # target library's configure.
9758 if test x
$is_cross_compiler = xyes
; then
9767 --cache-file=/dev
/null | \
9768 -cache-file=/dev
/null
)
9769 # Handled here to avoid the test to skip args below.
9770 baseargs
="$baseargs '$ac_arg'"
9771 tbaseargs
="$tbaseargs '$ac_arg'"
9772 # Assert: $separate_arg should always be no.
9773 keep_next
=$separate_arg
9789 -program-prefix* | \
9790 -program-suffix* | \
9791 -program-transform-name* )
9792 skip_next
=$separate_arg
9796 # An option. Add it.
9799 ac_arg
=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9801 baseargs
="$baseargs '$ac_arg'"
9802 if test X
"$skip_targ" = Xno
; then
9803 tbaseargs
="$tbaseargs '$ac_arg'"
9805 keep_next
=$separate_arg
9808 # Either a variable assignment, or a nonopt (triplet). Don't
9809 # pass it down; let the Makefile handle this.
9814 # Remove the initial space we just introduced and, as these will be
9815 # expanded by make, quote '$'.
9816 baseargs
=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9818 # Add in --program-transform-name, after --program-prefix and
9819 # --program-suffix have been applied to it. Autoconf has already
9820 # doubled dollar signs and backslashes in program_transform_name; we want
9821 # the backslashes un-doubled, and then the entire thing wrapped in single
9822 # quotes, because this will be expanded first by make and then by the shell.
9823 # Also, because we want to override the logic in subdir configure scripts to
9824 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9825 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9826 ${program_transform_name}
9828 gcc_transform_name
=`cat conftestsed.out`
9829 rm -f conftestsed.out
9830 baseargs
="$baseargs --program-transform-name='${gcc_transform_name}'"
9831 tbaseargs
="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9832 if test "$silent" = yes; then
9833 baseargs
="$baseargs --silent"
9834 tbaseargs
="$tbaseargs --silent"
9836 baseargs
="$baseargs --disable-option-checking"
9837 tbaseargs
="$tbaseargs --disable-option-checking"
9839 # Record and document user additions to sub configure arguments.
9844 # For the build-side libraries, we just need to pretend we're native,
9845 # and not use the same cache file. Multilibs are neither needed nor
9846 # desired. We can't even use the same cache file for all build-side
9847 # libraries, as they're compiled differently; some with C, some with
9848 # C++ or with different feature-enabling options.
9849 build_configargs
="$build_configargs --cache-file=./config.cache ${baseargs}"
9851 # For host modules, accept cache file option, or specification as blank.
9852 case "${cache_file}" in
9854 cache_file_option
="" ;;
9855 /* |
[A-Za-z
]:[\\/]* ) # absolute path
9856 cache_file_option
="--cache-file=${cache_file}" ;;
9858 cache_file_option
="--cache-file=../${cache_file}" ;;
9861 # Host dirs don't like to share a cache file either, horribly enough.
9862 # This seems to be due to autoconf 2.5x stupidity.
9863 host_configargs
="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
9865 target_configargs
="$target_configargs ${tbaseargs}"
9867 # Passing a --with-cross-host argument lets the target libraries know
9868 # whether they are being built with a cross-compiler or being built
9869 # native. However, it would be better to use other mechanisms to make the
9870 # sorts of decisions they want to make on this basis. Please consider
9871 # this option to be deprecated. FIXME.
9872 if test x
${is_cross_compiler} = xyes
; then
9873 target_configargs
="--with-cross-host=${host_noncanonical} ${target_configargs}"
9876 # Special user-friendly check for native x86_64-linux build, if
9877 # multilib is not explicitly enabled.
9878 case "$target:$have_compiler:$host:$target:$enable_multilib" in
9879 x86_64-
*linux
*:yes:$build:$build:)
9880 # Make sure we have a development environment that handles 32-bit
9882 echo "int main () { return 0; }" > conftest.c
9883 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9884 if test $?
= 0 ; then
9885 if test -s conftest ||
test -s conftest.exe
; then
9890 if test x
${dev64} != xyes
; then
9891 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
9896 # Default to --enable-multilib.
9897 if test x
${enable_multilib} = x
; then
9898 target_configargs
="--enable-multilib ${target_configargs}"
9901 # Pass --with-newlib if appropriate. Note that target_configdirs has
9902 # changed from the earlier setting of with_newlib.
9903 if test x
${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib
; then
9904 target_configargs
="--with-newlib ${target_configargs}"
9907 # Different target subdirs use different values of certain variables
9908 # (notably CXX). Worse, multilibs use *lots* of different values.
9909 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
9910 # it doesn't automatically accept command-line overrides of them.
9911 # This means it's not safe for target subdirs to share a cache file,
9912 # which is disgusting, but there you have it. Hopefully this can be
9913 # fixed in future. It's still worthwhile to use a cache file for each
9914 # directory. I think.
9916 # Pass the appropriate --build, --host, --target and --cache-file arguments.
9917 # We need to pass --target, as newer autoconf's requires consistency
9918 # for target_alias and gcc doesn't manage it consistently.
9919 target_configargs
="--cache-file=./config.cache ${target_configargs}"
9922 case " $target_configdirs " in
9924 case " $target_configargs " in
9925 *" --with-newlib "*)
9928 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
9932 # If we're not building GCC, don't discard standard headers.
9933 if test -d ${srcdir}/gcc
; then
9934 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -nostdinc'
9936 if test "${build}" != "${host}"; then
9937 # On Canadian crosses, CC_FOR_TARGET will have already been set
9938 # by `configure', so we won't have an opportunity to add -Bgcc/
9939 # to it. This is right: we don't want to search that directory
9940 # for binaries, but we want the header files in there, so add
9942 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
9944 # Someone might think of using the pre-installed headers on
9945 # Canadian crosses, in case the installed compiler is not fully
9946 # compatible with the compiler being built. In this case, it
9947 # would be better to flag an error than risking having
9948 # incompatible object files being constructed. We can't
9949 # guarantee that an error will be flagged, but let's hope the
9950 # compiler will do it, when presented with incompatible header
9955 case "${target}-${is_cross_compiler}" in
9956 i
[3456789]86-*-linux*-no)
9957 # Here host == target, so we don't need to build gcc,
9958 # so we don't want to discard standard headers.
9959 FLAGS_FOR_TARGET
=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
9962 # If we're building newlib, use its generic headers last, but search
9963 # for any libc-related directories first (so make it the last -B
9965 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
9967 # If we're building libgloss, find the startup file, simulator library
9968 # and linker script.
9969 case " $target_configdirs " in
9971 # Look for startup file, simulator library and maybe linker script.
9972 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
9973 # Look for libnosys.a in case the target needs it.
9974 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
9975 # Most targets have the linker script in the source directory.
9976 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
9987 x86_64-
*mingw
* |
*-w64-mingw*)
9988 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
9989 # however, use a symlink named 'mingw' in ${prefix} .
9990 FLAGS_FOR_TARGET
=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
9993 # MinGW can't be handled as Cygwin above since it does not use newlib.
9994 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'
9998 # Allow the user to override the flags for
9999 # our build compiler if desired.
10000 if test x
"${build}" = x
"${host}" ; then
10001 CFLAGS_FOR_BUILD
=${CFLAGS_FOR_BUILD-${CFLAGS}}
10002 CXXFLAGS_FOR_BUILD
=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10003 LDFLAGS_FOR_BUILD
=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10006 # On Canadian crosses, we'll be searching the right directories for
10007 # the previously-installed cross compiler, so don't bother to add
10008 # flags for directories within the install tree of the compiler
10009 # being built; programs in there won't even run.
10010 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10011 # Search for pre-installed headers if nothing else fits.
10012 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10015 if test "x
${use_gnu_ld}" = x &&
10016 echo " ${configdirs} " | grep " ld
" > /dev/null ; then
10017 # Arrange for us to find uninstalled linker scripts.
10018 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10021 # Search for other target-specific linker scripts and such.
10022 case "${target}" in
10024 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10028 # Makefile fragments.
10029 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10031 eval fragval=\$$frag
10032 if test $fragval != /dev/null; then
10033 eval $frag=${srcdir}/$fragval
10041 # Miscellanea: directories, flags, etc.
10050 # Build module lists & subconfigure args.
10054 # Host module lists & subconfigure args.
10059 # Target module lists & subconfigure args.
10082 # Generate default definitions for YACC, M4, LEX and other programs that run
10083 # on the build machine. These are used if the Makefile can't locate these
10084 # programs in objdir.
10085 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10087 for ac_prog in 'bison -y' byacc yacc
10089 # Extract the first word of "$ac_prog", so it can be a program name with args.
10090 set dummy $ac_prog; ac_word=$2
10091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10092 $as_echo_n "checking
for $ac_word...
" >&6; }
10093 if ${ac_cv_prog_YACC+:} false; then :
10094 $as_echo_n "(cached
) " >&6
10096 if test -n "$YACC"; then
10097 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10100 for as_dir in $PATH
10103 test -z "$as_dir" && as_dir=.
10104 for ac_exec_ext in '' $ac_executable_extensions; do
10105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10106 ac_cv_prog_YACC="$ac_prog"
10107 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10116 YACC=$ac_cv_prog_YACC
10117 if test -n "$YACC"; then
10118 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $YACC" >&5
10119 $as_echo "$YACC" >&6; }
10121 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10122 $as_echo "no
" >&6; }
10126 test -n "$YACC" && break
10128 test -n "$YACC" || YACC="$MISSING bison
-y"
10130 case " $build_configdirs " in
10131 *" bison
"*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10134 for ac_prog in bison
10136 # Extract the first word of "$ac_prog", so it can be a program name with args.
10137 set dummy $ac_prog; ac_word=$2
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10139 $as_echo_n "checking
for $ac_word...
" >&6; }
10140 if ${ac_cv_prog_BISON+:} false; then :
10141 $as_echo_n "(cached
) " >&6
10143 if test -n "$BISON"; then
10144 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10147 for as_dir in $PATH
10150 test -z "$as_dir" && as_dir=.
10151 for ac_exec_ext in '' $ac_executable_extensions; do
10152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10153 ac_cv_prog_BISON="$ac_prog"
10154 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10163 BISON=$ac_cv_prog_BISON
10164 if test -n "$BISON"; then
10165 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $BISON" >&5
10166 $as_echo "$BISON" >&6; }
10168 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10169 $as_echo "no
" >&6; }
10173 test -n "$BISON" && break
10175 test -n "$BISON" || BISON="$MISSING bison
"
10177 case " $build_configdirs " in
10178 *" bison
"*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10181 for ac_prog in gm4 gnum4 m4
10183 # Extract the first word of "$ac_prog", so it can be a program name with args.
10184 set dummy $ac_prog; ac_word=$2
10185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10186 $as_echo_n "checking
for $ac_word...
" >&6; }
10187 if ${ac_cv_prog_M4+:} false; then :
10188 $as_echo_n "(cached
) " >&6
10190 if test -n "$M4"; then
10191 ac_cv_prog_M4="$M4" # Let the user override the test.
10193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10194 for as_dir in $PATH
10197 test -z "$as_dir" && as_dir=.
10198 for ac_exec_ext in '' $ac_executable_extensions; do
10199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10200 ac_cv_prog_M4="$ac_prog"
10201 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10211 if test -n "$M4"; then
10212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $M4" >&5
10213 $as_echo "$M4" >&6; }
10215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10216 $as_echo "no
" >&6; }
10220 test -n "$M4" && break
10222 test -n "$M4" || M4="$MISSING m4"
10224 case " $build_configdirs " in
10225 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10228 for ac_prog in flex lex
10230 # Extract the first word of "$ac_prog", so it can be a program name with args.
10231 set dummy $ac_prog; ac_word=$2
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10233 $as_echo_n "checking
for $ac_word...
" >&6; }
10234 if ${ac_cv_prog_LEX+:} false; then :
10235 $as_echo_n "(cached
) " >&6
10237 if test -n "$LEX"; then
10238 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10241 for as_dir in $PATH
10244 test -z "$as_dir" && as_dir=.
10245 for ac_exec_ext in '' $ac_executable_extensions; do
10246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10247 ac_cv_prog_LEX="$ac_prog"
10248 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10257 LEX=$ac_cv_prog_LEX
10258 if test -n "$LEX"; then
10259 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LEX" >&5
10260 $as_echo "$LEX" >&6; }
10262 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10263 $as_echo "no
" >&6; }
10267 test -n "$LEX" && break
10269 test -n "$LEX" || LEX="$MISSING flex
"
10271 case " $build_configdirs " in
10272 *" flex
"*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10273 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10276 for ac_prog in flex
10278 # Extract the first word of "$ac_prog", so it can be a program name with args.
10279 set dummy $ac_prog; ac_word=$2
10280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10281 $as_echo_n "checking
for $ac_word...
" >&6; }
10282 if ${ac_cv_prog_FLEX+:} false; then :
10283 $as_echo_n "(cached
) " >&6
10285 if test -n "$FLEX"; then
10286 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10289 for as_dir in $PATH
10292 test -z "$as_dir" && as_dir=.
10293 for ac_exec_ext in '' $ac_executable_extensions; do
10294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10295 ac_cv_prog_FLEX="$ac_prog"
10296 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10305 FLEX=$ac_cv_prog_FLEX
10306 if test -n "$FLEX"; then
10307 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $FLEX" >&5
10308 $as_echo "$FLEX" >&6; }
10310 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10311 $as_echo "no
" >&6; }
10315 test -n "$FLEX" && break
10317 test -n "$FLEX" || FLEX="$MISSING flex
"
10319 case " $build_configdirs " in
10320 *" flex
"*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10323 for ac_prog in makeinfo
10325 # Extract the first word of "$ac_prog", so it can be a program name with args.
10326 set dummy $ac_prog; ac_word=$2
10327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10328 $as_echo_n "checking
for $ac_word...
" >&6; }
10329 if ${ac_cv_prog_MAKEINFO+:} false; then :
10330 $as_echo_n "(cached
) " >&6
10332 if test -n "$MAKEINFO"; then
10333 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10336 for as_dir in $PATH
10339 test -z "$as_dir" && as_dir=.
10340 for ac_exec_ext in '' $ac_executable_extensions; do
10341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10342 ac_cv_prog_MAKEINFO="$ac_prog"
10343 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10352 MAKEINFO=$ac_cv_prog_MAKEINFO
10353 if test -n "$MAKEINFO"; then
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $MAKEINFO" >&5
10355 $as_echo "$MAKEINFO" >&6; }
10357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10358 $as_echo "no
" >&6; }
10362 test -n "$MAKEINFO" && break
10364 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo
"
10366 case " $build_configdirs " in
10367 *" texinfo
"*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10370 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10371 # higher, else we use the "missing
" dummy.
10372 if ${MAKEINFO} --version \
10373 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10376 MAKEINFO="$MISSING makeinfo
"
10382 # FIXME: expect and dejagnu may become build tools?
10384 for ac_prog in expect
10386 # Extract the first word of "$ac_prog", so it can be a program name with args.
10387 set dummy $ac_prog; ac_word=$2
10388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10389 $as_echo_n "checking
for $ac_word...
" >&6; }
10390 if ${ac_cv_prog_EXPECT+:} false; then :
10391 $as_echo_n "(cached
) " >&6
10393 if test -n "$EXPECT"; then
10394 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10397 for as_dir in $PATH
10400 test -z "$as_dir" && as_dir=.
10401 for ac_exec_ext in '' $ac_executable_extensions; do
10402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10403 ac_cv_prog_EXPECT="$ac_prog"
10404 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10413 EXPECT=$ac_cv_prog_EXPECT
10414 if test -n "$EXPECT"; then
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $EXPECT" >&5
10416 $as_echo "$EXPECT" >&6; }
10418 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10419 $as_echo "no
" >&6; }
10423 test -n "$EXPECT" && break
10425 test -n "$EXPECT" || EXPECT="expect
"
10427 case " $configdirs " in
10429 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10433 for ac_prog in runtest
10435 # Extract the first word of "$ac_prog", so it can be a program name with args.
10436 set dummy $ac_prog; ac_word=$2
10437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10438 $as_echo_n "checking
for $ac_word...
" >&6; }
10439 if ${ac_cv_prog_RUNTEST+:} false; then :
10440 $as_echo_n "(cached
) " >&6
10442 if test -n "$RUNTEST"; then
10443 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10446 for as_dir in $PATH
10449 test -z "$as_dir" && as_dir=.
10450 for ac_exec_ext in '' $ac_executable_extensions; do
10451 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10452 ac_cv_prog_RUNTEST="$ac_prog"
10453 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10462 RUNTEST=$ac_cv_prog_RUNTEST
10463 if test -n "$RUNTEST"; then
10464 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RUNTEST" >&5
10465 $as_echo "$RUNTEST" >&6; }
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10468 $as_echo "no
" >&6; }
10472 test -n "$RUNTEST" && break
10474 test -n "$RUNTEST" || RUNTEST="runtest
"
10476 case " $configdirs " in
10478 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10485 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10486 ncn_target_tool_prefix=
10487 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10491 if test -n "$AR"; then
10493 elif test -n "$ac_cv_prog_AR"; then
10497 if test -n "$ac_cv_prog_AR"; then
10498 for ncn_progname in ar; do
10499 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10500 set dummy ${ncn_progname}; ac_word=$2
10501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10502 $as_echo_n "checking
for $ac_word...
" >&6; }
10503 if ${ac_cv_prog_AR+:} false; then :
10504 $as_echo_n "(cached
) " >&6
10506 if test -n "$AR"; then
10507 ac_cv_prog_AR="$AR" # Let the user override the test.
10509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10510 for as_dir in $PATH
10513 test -z "$as_dir" && as_dir=.
10514 for ac_exec_ext in '' $ac_executable_extensions; do
10515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10516 ac_cv_prog_AR="${ncn_progname}"
10517 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10527 if test -n "$AR"; then
10528 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10529 $as_echo "$AR" >&6; }
10531 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10532 $as_echo "no
" >&6; }
10539 for ncn_progname in ar; do
10540 if test -n "$ncn_tool_prefix"; then
10541 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10542 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10544 $as_echo_n "checking
for $ac_word...
" >&6; }
10545 if ${ac_cv_prog_AR+:} false; then :
10546 $as_echo_n "(cached
) " >&6
10548 if test -n "$AR"; then
10549 ac_cv_prog_AR="$AR" # Let the user override the test.
10551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10552 for as_dir in $PATH
10555 test -z "$as_dir" && as_dir=.
10556 for ac_exec_ext in '' $ac_executable_extensions; do
10557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10558 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10559 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10569 if test -n "$AR"; then
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10571 $as_echo "$AR" >&6; }
10573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10574 $as_echo "no
" >&6; }
10579 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10580 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10581 set dummy ${ncn_progname}; ac_word=$2
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10583 $as_echo_n "checking
for $ac_word...
" >&6; }
10584 if ${ac_cv_prog_AR+:} false; then :
10585 $as_echo_n "(cached
) " >&6
10587 if test -n "$AR"; then
10588 ac_cv_prog_AR="$AR" # Let the user override the test.
10590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10591 for as_dir in $PATH
10594 test -z "$as_dir" && as_dir=.
10595 for ac_exec_ext in '' $ac_executable_extensions; do
10596 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10597 ac_cv_prog_AR="${ncn_progname}"
10598 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10608 if test -n "$AR"; then
10609 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR" >&5
10610 $as_echo "$AR" >&6; }
10612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10613 $as_echo "no
" >&6; }
10618 test -n "$ac_cv_prog_AR" && break
10621 if test -z "$ac_cv_prog_AR" ; then
10623 if test $build = $host ; then
10626 AR="${ncn_tool_prefix}$2"
10632 if test -n "$AS"; then
10634 elif test -n "$ac_cv_prog_AS"; then
10638 if test -n "$ac_cv_prog_AS"; then
10639 for ncn_progname in as; do
10640 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10641 set dummy ${ncn_progname}; ac_word=$2
10642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10643 $as_echo_n "checking
for $ac_word...
" >&6; }
10644 if ${ac_cv_prog_AS+:} false; then :
10645 $as_echo_n "(cached
) " >&6
10647 if test -n "$AS"; then
10648 ac_cv_prog_AS="$AS" # Let the user override the test.
10650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10651 for as_dir in $PATH
10654 test -z "$as_dir" && as_dir=.
10655 for ac_exec_ext in '' $ac_executable_extensions; do
10656 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10657 ac_cv_prog_AS="${ncn_progname}"
10658 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10668 if test -n "$AS"; then
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10670 $as_echo "$AS" >&6; }
10672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10673 $as_echo "no
" >&6; }
10680 for ncn_progname in as; do
10681 if test -n "$ncn_tool_prefix"; then
10682 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10683 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10685 $as_echo_n "checking
for $ac_word...
" >&6; }
10686 if ${ac_cv_prog_AS+:} false; then :
10687 $as_echo_n "(cached
) " >&6
10689 if test -n "$AS"; then
10690 ac_cv_prog_AS="$AS" # Let the user override the test.
10692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693 for as_dir in $PATH
10696 test -z "$as_dir" && as_dir=.
10697 for ac_exec_ext in '' $ac_executable_extensions; do
10698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10699 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10700 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10710 if test -n "$AS"; then
10711 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10712 $as_echo "$AS" >&6; }
10714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10715 $as_echo "no
" >&6; }
10720 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10721 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10722 set dummy ${ncn_progname}; 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_AS+:} false; then :
10726 $as_echo_n "(cached
) " >&6
10728 if test -n "$AS"; then
10729 ac_cv_prog_AS="$AS" # 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_AS="${ncn_progname}"
10739 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10749 if test -n "$AS"; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS" >&5
10751 $as_echo "$AS" >&6; }
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10754 $as_echo "no
" >&6; }
10759 test -n "$ac_cv_prog_AS" && break
10762 if test -z "$ac_cv_prog_AS" ; then
10764 if test $build = $host ; then
10767 AS="${ncn_tool_prefix}$2"
10773 if test -n "$DLLTOOL"; then
10774 ac_cv_prog_DLLTOOL=$DLLTOOL
10775 elif test -n "$ac_cv_prog_DLLTOOL"; then
10776 DLLTOOL=$ac_cv_prog_DLLTOOL
10779 if test -n "$ac_cv_prog_DLLTOOL"; then
10780 for ncn_progname in dlltool; do
10781 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10782 set dummy ${ncn_progname}; ac_word=$2
10783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10784 $as_echo_n "checking
for $ac_word...
" >&6; }
10785 if ${ac_cv_prog_DLLTOOL+:} false; then :
10786 $as_echo_n "(cached
) " >&6
10788 if test -n "$DLLTOOL"; then
10789 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10792 for as_dir in $PATH
10795 test -z "$as_dir" && as_dir=.
10796 for ac_exec_ext in '' $ac_executable_extensions; do
10797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10798 ac_cv_prog_DLLTOOL="${ncn_progname}"
10799 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10808 DLLTOOL=$ac_cv_prog_DLLTOOL
10809 if test -n "$DLLTOOL"; then
10810 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
10811 $as_echo "$DLLTOOL" >&6; }
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10814 $as_echo "no
" >&6; }
10821 for ncn_progname in dlltool; do
10822 if test -n "$ncn_tool_prefix"; then
10823 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10824 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10826 $as_echo_n "checking
for $ac_word...
" >&6; }
10827 if ${ac_cv_prog_DLLTOOL+:} false; then :
10828 $as_echo_n "(cached
) " >&6
10830 if test -n "$DLLTOOL"; then
10831 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10834 for as_dir in $PATH
10837 test -z "$as_dir" && as_dir=.
10838 for ac_exec_ext in '' $ac_executable_extensions; do
10839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10840 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10841 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10850 DLLTOOL=$ac_cv_prog_DLLTOOL
10851 if test -n "$DLLTOOL"; then
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
10853 $as_echo "$DLLTOOL" >&6; }
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10856 $as_echo "no
" >&6; }
10861 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
10862 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10863 set dummy ${ncn_progname}; ac_word=$2
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10865 $as_echo_n "checking
for $ac_word...
" >&6; }
10866 if ${ac_cv_prog_DLLTOOL+:} false; then :
10867 $as_echo_n "(cached
) " >&6
10869 if test -n "$DLLTOOL"; then
10870 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10873 for as_dir in $PATH
10876 test -z "$as_dir" && as_dir=.
10877 for ac_exec_ext in '' $ac_executable_extensions; do
10878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10879 ac_cv_prog_DLLTOOL="${ncn_progname}"
10880 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10889 DLLTOOL=$ac_cv_prog_DLLTOOL
10890 if test -n "$DLLTOOL"; then
10891 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL" >&5
10892 $as_echo "$DLLTOOL" >&6; }
10894 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10895 $as_echo "no
" >&6; }
10900 test -n "$ac_cv_prog_DLLTOOL" && break
10903 if test -z "$ac_cv_prog_DLLTOOL" ; then
10905 if test $build = $host ; then
10908 DLLTOOL="${ncn_tool_prefix}$2"
10914 if test -n "$DSYMUTIL"; then
10915 ac_cv_prog_DSYMUTIL=$DSYMUTIL
10916 elif test -n "$ac_cv_prog_DSYMUTIL"; then
10917 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10920 if test -n "$ac_cv_prog_DSYMUTIL"; then
10921 for ncn_progname in dsymutil; do
10922 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10923 set dummy ${ncn_progname}; ac_word=$2
10924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10925 $as_echo_n "checking
for $ac_word...
" >&6; }
10926 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10927 $as_echo_n "(cached
) " >&6
10929 if test -n "$DSYMUTIL"; then
10930 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10933 for as_dir in $PATH
10936 test -z "$as_dir" && as_dir=.
10937 for ac_exec_ext in '' $ac_executable_extensions; do
10938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10939 ac_cv_prog_DSYMUTIL="${ncn_progname}"
10940 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10949 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10950 if test -n "$DSYMUTIL"; then
10951 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
10952 $as_echo "$DSYMUTIL" >&6; }
10954 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10955 $as_echo "no
" >&6; }
10962 for ncn_progname in dsymutil; do
10963 if test -n "$ncn_tool_prefix"; then
10964 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10965 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
10967 $as_echo_n "checking
for $ac_word...
" >&6; }
10968 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10969 $as_echo_n "(cached
) " >&6
10971 if test -n "$DSYMUTIL"; then
10972 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10975 for as_dir in $PATH
10978 test -z "$as_dir" && as_dir=.
10979 for ac_exec_ext in '' $ac_executable_extensions; do
10980 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10981 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
10982 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
10991 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10992 if test -n "$DSYMUTIL"; then
10993 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
10994 $as_echo "$DSYMUTIL" >&6; }
10996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
10997 $as_echo "no
" >&6; }
11002 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11003 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11004 set dummy ${ncn_progname}; ac_word=$2
11005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11006 $as_echo_n "checking
for $ac_word...
" >&6; }
11007 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11008 $as_echo_n "(cached
) " >&6
11010 if test -n "$DSYMUTIL"; then
11011 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11014 for as_dir in $PATH
11017 test -z "$as_dir" && as_dir=.
11018 for ac_exec_ext in '' $ac_executable_extensions; do
11019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11020 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11021 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11030 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11031 if test -n "$DSYMUTIL"; then
11032 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL" >&5
11033 $as_echo "$DSYMUTIL" >&6; }
11035 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11036 $as_echo "no
" >&6; }
11041 test -n "$ac_cv_prog_DSYMUTIL" && break
11044 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11046 if test $build = $host ; then
11049 DSYMUTIL="${ncn_tool_prefix}$2"
11055 if test -n "$LD"; then
11057 elif test -n "$ac_cv_prog_LD"; then
11061 if test -n "$ac_cv_prog_LD"; then
11062 for ncn_progname in ld; do
11063 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11064 set dummy ${ncn_progname}; ac_word=$2
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11066 $as_echo_n "checking
for $ac_word...
" >&6; }
11067 if ${ac_cv_prog_LD+:} false; then :
11068 $as_echo_n "(cached
) " >&6
11070 if test -n "$LD"; then
11071 ac_cv_prog_LD="$LD" # Let the user override the test.
11073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11074 for as_dir in $PATH
11077 test -z "$as_dir" && as_dir=.
11078 for ac_exec_ext in '' $ac_executable_extensions; do
11079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11080 ac_cv_prog_LD="${ncn_progname}"
11081 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11091 if test -n "$LD"; then
11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11093 $as_echo "$LD" >&6; }
11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11096 $as_echo "no
" >&6; }
11103 for ncn_progname in ld; do
11104 if test -n "$ncn_tool_prefix"; then
11105 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11106 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11108 $as_echo_n "checking
for $ac_word...
" >&6; }
11109 if ${ac_cv_prog_LD+:} false; then :
11110 $as_echo_n "(cached
) " >&6
11112 if test -n "$LD"; then
11113 ac_cv_prog_LD="$LD" # Let the user override the test.
11115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11116 for as_dir in $PATH
11119 test -z "$as_dir" && as_dir=.
11120 for ac_exec_ext in '' $ac_executable_extensions; do
11121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11122 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11123 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11133 if test -n "$LD"; then
11134 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11135 $as_echo "$LD" >&6; }
11137 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11138 $as_echo "no
" >&6; }
11143 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11144 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11145 set dummy ${ncn_progname}; ac_word=$2
11146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11147 $as_echo_n "checking
for $ac_word...
" >&6; }
11148 if ${ac_cv_prog_LD+:} false; then :
11149 $as_echo_n "(cached
) " >&6
11151 if test -n "$LD"; then
11152 ac_cv_prog_LD="$LD" # Let the user override the test.
11154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11155 for as_dir in $PATH
11158 test -z "$as_dir" && as_dir=.
11159 for ac_exec_ext in '' $ac_executable_extensions; do
11160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11161 ac_cv_prog_LD="${ncn_progname}"
11162 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11172 if test -n "$LD"; then
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD" >&5
11174 $as_echo "$LD" >&6; }
11176 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11177 $as_echo "no
" >&6; }
11182 test -n "$ac_cv_prog_LD" && break
11185 if test -z "$ac_cv_prog_LD" ; then
11187 if test $build = $host ; then
11190 LD="${ncn_tool_prefix}$2"
11196 if test -n "$LIPO"; then
11197 ac_cv_prog_LIPO=$LIPO
11198 elif test -n "$ac_cv_prog_LIPO"; then
11199 LIPO=$ac_cv_prog_LIPO
11202 if test -n "$ac_cv_prog_LIPO"; then
11203 for ncn_progname in lipo; do
11204 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11205 set dummy ${ncn_progname}; ac_word=$2
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11207 $as_echo_n "checking
for $ac_word...
" >&6; }
11208 if ${ac_cv_prog_LIPO+:} false; then :
11209 $as_echo_n "(cached
) " >&6
11211 if test -n "$LIPO"; then
11212 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11215 for as_dir in $PATH
11218 test -z "$as_dir" && as_dir=.
11219 for ac_exec_ext in '' $ac_executable_extensions; do
11220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11221 ac_cv_prog_LIPO="${ncn_progname}"
11222 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11231 LIPO=$ac_cv_prog_LIPO
11232 if test -n "$LIPO"; then
11233 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11234 $as_echo "$LIPO" >&6; }
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11237 $as_echo "no
" >&6; }
11244 for ncn_progname in lipo; do
11245 if test -n "$ncn_tool_prefix"; then
11246 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11247 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11249 $as_echo_n "checking
for $ac_word...
" >&6; }
11250 if ${ac_cv_prog_LIPO+:} false; then :
11251 $as_echo_n "(cached
) " >&6
11253 if test -n "$LIPO"; then
11254 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11257 for as_dir in $PATH
11260 test -z "$as_dir" && as_dir=.
11261 for ac_exec_ext in '' $ac_executable_extensions; do
11262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11263 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11264 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11273 LIPO=$ac_cv_prog_LIPO
11274 if test -n "$LIPO"; then
11275 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11276 $as_echo "$LIPO" >&6; }
11278 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11279 $as_echo "no
" >&6; }
11284 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11285 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11286 set dummy ${ncn_progname}; ac_word=$2
11287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11288 $as_echo_n "checking
for $ac_word...
" >&6; }
11289 if ${ac_cv_prog_LIPO+:} false; then :
11290 $as_echo_n "(cached
) " >&6
11292 if test -n "$LIPO"; then
11293 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11296 for as_dir in $PATH
11299 test -z "$as_dir" && as_dir=.
11300 for ac_exec_ext in '' $ac_executable_extensions; do
11301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11302 ac_cv_prog_LIPO="${ncn_progname}"
11303 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11312 LIPO=$ac_cv_prog_LIPO
11313 if test -n "$LIPO"; then
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO" >&5
11315 $as_echo "$LIPO" >&6; }
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11318 $as_echo "no
" >&6; }
11323 test -n "$ac_cv_prog_LIPO" && break
11326 if test -z "$ac_cv_prog_LIPO" ; then
11328 if test $build = $host ; then
11331 LIPO="${ncn_tool_prefix}$2"
11337 if test -n "$NM"; then
11339 elif test -n "$ac_cv_prog_NM"; then
11343 if test -n "$ac_cv_prog_NM"; then
11344 for ncn_progname in nm; do
11345 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11346 set dummy ${ncn_progname}; ac_word=$2
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11348 $as_echo_n "checking
for $ac_word...
" >&6; }
11349 if ${ac_cv_prog_NM+:} false; then :
11350 $as_echo_n "(cached
) " >&6
11352 if test -n "$NM"; then
11353 ac_cv_prog_NM="$NM" # Let the user override the test.
11355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11356 for as_dir in $PATH
11359 test -z "$as_dir" && as_dir=.
11360 for ac_exec_ext in '' $ac_executable_extensions; do
11361 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11362 ac_cv_prog_NM="${ncn_progname}"
11363 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11373 if test -n "$NM"; then
11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11375 $as_echo "$NM" >&6; }
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11378 $as_echo "no
" >&6; }
11385 for ncn_progname in nm; do
11386 if test -n "$ncn_tool_prefix"; then
11387 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11388 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11390 $as_echo_n "checking
for $ac_word...
" >&6; }
11391 if ${ac_cv_prog_NM+:} false; then :
11392 $as_echo_n "(cached
) " >&6
11394 if test -n "$NM"; then
11395 ac_cv_prog_NM="$NM" # Let the user override the test.
11397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11398 for as_dir in $PATH
11401 test -z "$as_dir" && as_dir=.
11402 for ac_exec_ext in '' $ac_executable_extensions; do
11403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11404 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11405 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11415 if test -n "$NM"; then
11416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11417 $as_echo "$NM" >&6; }
11419 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11420 $as_echo "no
" >&6; }
11425 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11426 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11427 set dummy ${ncn_progname}; ac_word=$2
11428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11429 $as_echo_n "checking
for $ac_word...
" >&6; }
11430 if ${ac_cv_prog_NM+:} false; then :
11431 $as_echo_n "(cached
) " >&6
11433 if test -n "$NM"; then
11434 ac_cv_prog_NM="$NM" # Let the user override the test.
11436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11437 for as_dir in $PATH
11440 test -z "$as_dir" && as_dir=.
11441 for ac_exec_ext in '' $ac_executable_extensions; do
11442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11443 ac_cv_prog_NM="${ncn_progname}"
11444 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11454 if test -n "$NM"; then
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM" >&5
11456 $as_echo "$NM" >&6; }
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11459 $as_echo "no
" >&6; }
11464 test -n "$ac_cv_prog_NM" && break
11467 if test -z "$ac_cv_prog_NM" ; then
11469 if test $build = $host ; then
11472 NM="${ncn_tool_prefix}$2"
11478 if test -n "$RANLIB"; then
11479 ac_cv_prog_RANLIB=$RANLIB
11480 elif test -n "$ac_cv_prog_RANLIB"; then
11481 RANLIB=$ac_cv_prog_RANLIB
11484 if test -n "$ac_cv_prog_RANLIB"; then
11485 for ncn_progname in ranlib; do
11486 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11487 set dummy ${ncn_progname}; ac_word=$2
11488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11489 $as_echo_n "checking
for $ac_word...
" >&6; }
11490 if ${ac_cv_prog_RANLIB+:} false; then :
11491 $as_echo_n "(cached
) " >&6
11493 if test -n "$RANLIB"; then
11494 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11497 for as_dir in $PATH
11500 test -z "$as_dir" && as_dir=.
11501 for ac_exec_ext in '' $ac_executable_extensions; do
11502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11503 ac_cv_prog_RANLIB="${ncn_progname}"
11504 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11513 RANLIB=$ac_cv_prog_RANLIB
11514 if test -n "$RANLIB"; then
11515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11516 $as_echo "$RANLIB" >&6; }
11518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11519 $as_echo "no
" >&6; }
11526 for ncn_progname in ranlib; do
11527 if test -n "$ncn_tool_prefix"; then
11528 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11529 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11531 $as_echo_n "checking
for $ac_word...
" >&6; }
11532 if ${ac_cv_prog_RANLIB+:} false; then :
11533 $as_echo_n "(cached
) " >&6
11535 if test -n "$RANLIB"; then
11536 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11538 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11539 for as_dir in $PATH
11542 test -z "$as_dir" && as_dir=.
11543 for ac_exec_ext in '' $ac_executable_extensions; do
11544 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11545 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11546 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11555 RANLIB=$ac_cv_prog_RANLIB
11556 if test -n "$RANLIB"; then
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11558 $as_echo "$RANLIB" >&6; }
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11561 $as_echo "no
" >&6; }
11566 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11567 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11568 set dummy ${ncn_progname}; ac_word=$2
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11570 $as_echo_n "checking
for $ac_word...
" >&6; }
11571 if ${ac_cv_prog_RANLIB+:} false; then :
11572 $as_echo_n "(cached
) " >&6
11574 if test -n "$RANLIB"; then
11575 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11578 for as_dir in $PATH
11581 test -z "$as_dir" && as_dir=.
11582 for ac_exec_ext in '' $ac_executable_extensions; do
11583 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11584 ac_cv_prog_RANLIB="${ncn_progname}"
11585 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11594 RANLIB=$ac_cv_prog_RANLIB
11595 if test -n "$RANLIB"; then
11596 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB" >&5
11597 $as_echo "$RANLIB" >&6; }
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11600 $as_echo "no
" >&6; }
11605 test -n "$ac_cv_prog_RANLIB" && break
11608 if test -z "$ac_cv_prog_RANLIB" ; then
11614 if test -n "$STRIP"; then
11615 ac_cv_prog_STRIP=$STRIP
11616 elif test -n "$ac_cv_prog_STRIP"; then
11617 STRIP=$ac_cv_prog_STRIP
11620 if test -n "$ac_cv_prog_STRIP"; then
11621 for ncn_progname in strip; do
11622 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11623 set dummy ${ncn_progname}; ac_word=$2
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11625 $as_echo_n "checking
for $ac_word...
" >&6; }
11626 if ${ac_cv_prog_STRIP+:} false; then :
11627 $as_echo_n "(cached
) " >&6
11629 if test -n "$STRIP"; then
11630 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11633 for as_dir in $PATH
11636 test -z "$as_dir" && as_dir=.
11637 for ac_exec_ext in '' $ac_executable_extensions; do
11638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11639 ac_cv_prog_STRIP="${ncn_progname}"
11640 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11649 STRIP=$ac_cv_prog_STRIP
11650 if test -n "$STRIP"; then
11651 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11652 $as_echo "$STRIP" >&6; }
11654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11655 $as_echo "no
" >&6; }
11662 for ncn_progname in strip; do
11663 if test -n "$ncn_tool_prefix"; then
11664 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11665 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11667 $as_echo_n "checking
for $ac_word...
" >&6; }
11668 if ${ac_cv_prog_STRIP+:} false; then :
11669 $as_echo_n "(cached
) " >&6
11671 if test -n "$STRIP"; then
11672 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11675 for as_dir in $PATH
11678 test -z "$as_dir" && as_dir=.
11679 for ac_exec_ext in '' $ac_executable_extensions; do
11680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11681 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11682 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11691 STRIP=$ac_cv_prog_STRIP
11692 if test -n "$STRIP"; then
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11694 $as_echo "$STRIP" >&6; }
11696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11697 $as_echo "no
" >&6; }
11702 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11703 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11704 set dummy ${ncn_progname}; ac_word=$2
11705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11706 $as_echo_n "checking
for $ac_word...
" >&6; }
11707 if ${ac_cv_prog_STRIP+:} false; then :
11708 $as_echo_n "(cached
) " >&6
11710 if test -n "$STRIP"; then
11711 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11713 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11714 for as_dir in $PATH
11717 test -z "$as_dir" && as_dir=.
11718 for ac_exec_ext in '' $ac_executable_extensions; do
11719 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11720 ac_cv_prog_STRIP="${ncn_progname}"
11721 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11730 STRIP=$ac_cv_prog_STRIP
11731 if test -n "$STRIP"; then
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP" >&5
11733 $as_echo "$STRIP" >&6; }
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11736 $as_echo "no
" >&6; }
11741 test -n "$ac_cv_prog_STRIP" && break
11744 if test -z "$ac_cv_prog_STRIP" ; then
11750 if test -n "$WINDRES"; then
11751 ac_cv_prog_WINDRES=$WINDRES
11752 elif test -n "$ac_cv_prog_WINDRES"; then
11753 WINDRES=$ac_cv_prog_WINDRES
11756 if test -n "$ac_cv_prog_WINDRES"; then
11757 for ncn_progname in windres; do
11758 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11759 set dummy ${ncn_progname}; ac_word=$2
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11761 $as_echo_n "checking
for $ac_word...
" >&6; }
11762 if ${ac_cv_prog_WINDRES+:} false; then :
11763 $as_echo_n "(cached
) " >&6
11765 if test -n "$WINDRES"; then
11766 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11769 for as_dir in $PATH
11772 test -z "$as_dir" && as_dir=.
11773 for ac_exec_ext in '' $ac_executable_extensions; do
11774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11775 ac_cv_prog_WINDRES="${ncn_progname}"
11776 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11785 WINDRES=$ac_cv_prog_WINDRES
11786 if test -n "$WINDRES"; then
11787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
11788 $as_echo "$WINDRES" >&6; }
11790 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11791 $as_echo "no
" >&6; }
11798 for ncn_progname in windres; do
11799 if test -n "$ncn_tool_prefix"; then
11800 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11801 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11803 $as_echo_n "checking
for $ac_word...
" >&6; }
11804 if ${ac_cv_prog_WINDRES+:} false; then :
11805 $as_echo_n "(cached
) " >&6
11807 if test -n "$WINDRES"; then
11808 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11811 for as_dir in $PATH
11814 test -z "$as_dir" && as_dir=.
11815 for ac_exec_ext in '' $ac_executable_extensions; do
11816 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11817 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11818 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11827 WINDRES=$ac_cv_prog_WINDRES
11828 if test -n "$WINDRES"; then
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
11830 $as_echo "$WINDRES" >&6; }
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11833 $as_echo "no
" >&6; }
11838 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11839 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11840 set dummy ${ncn_progname}; ac_word=$2
11841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11842 $as_echo_n "checking
for $ac_word...
" >&6; }
11843 if ${ac_cv_prog_WINDRES+:} false; then :
11844 $as_echo_n "(cached
) " >&6
11846 if test -n "$WINDRES"; then
11847 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11850 for as_dir in $PATH
11853 test -z "$as_dir" && as_dir=.
11854 for ac_exec_ext in '' $ac_executable_extensions; do
11855 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11856 ac_cv_prog_WINDRES="${ncn_progname}"
11857 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11866 WINDRES=$ac_cv_prog_WINDRES
11867 if test -n "$WINDRES"; then
11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES" >&5
11869 $as_echo "$WINDRES" >&6; }
11871 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11872 $as_echo "no
" >&6; }
11877 test -n "$ac_cv_prog_WINDRES" && break
11880 if test -z "$ac_cv_prog_WINDRES" ; then
11882 if test $build = $host ; then
11885 WINDRES="${ncn_tool_prefix}$2"
11891 if test -n "$WINDMC"; then
11892 ac_cv_prog_WINDMC=$WINDMC
11893 elif test -n "$ac_cv_prog_WINDMC"; then
11894 WINDMC=$ac_cv_prog_WINDMC
11897 if test -n "$ac_cv_prog_WINDMC"; then
11898 for ncn_progname in windmc; do
11899 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11900 set dummy ${ncn_progname}; ac_word=$2
11901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11902 $as_echo_n "checking
for $ac_word...
" >&6; }
11903 if ${ac_cv_prog_WINDMC+:} false; then :
11904 $as_echo_n "(cached
) " >&6
11906 if test -n "$WINDMC"; then
11907 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11910 for as_dir in $PATH
11913 test -z "$as_dir" && as_dir=.
11914 for ac_exec_ext in '' $ac_executable_extensions; do
11915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11916 ac_cv_prog_WINDMC="${ncn_progname}"
11917 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11926 WINDMC=$ac_cv_prog_WINDMC
11927 if test -n "$WINDMC"; then
11928 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
11929 $as_echo "$WINDMC" >&6; }
11931 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11932 $as_echo "no
" >&6; }
11939 for ncn_progname in windmc; do
11940 if test -n "$ncn_tool_prefix"; then
11941 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11942 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11944 $as_echo_n "checking
for $ac_word...
" >&6; }
11945 if ${ac_cv_prog_WINDMC+:} false; then :
11946 $as_echo_n "(cached
) " >&6
11948 if test -n "$WINDMC"; then
11949 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11952 for as_dir in $PATH
11955 test -z "$as_dir" && as_dir=.
11956 for ac_exec_ext in '' $ac_executable_extensions; do
11957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11958 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
11959 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
11968 WINDMC=$ac_cv_prog_WINDMC
11969 if test -n "$WINDMC"; then
11970 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
11971 $as_echo "$WINDMC" >&6; }
11973 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
11974 $as_echo "no
" >&6; }
11979 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
11980 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11981 set dummy ${ncn_progname}; ac_word=$2
11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
11983 $as_echo_n "checking
for $ac_word...
" >&6; }
11984 if ${ac_cv_prog_WINDMC+:} false; then :
11985 $as_echo_n "(cached
) " >&6
11987 if test -n "$WINDMC"; then
11988 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
11990 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11991 for as_dir in $PATH
11994 test -z "$as_dir" && as_dir=.
11995 for ac_exec_ext in '' $ac_executable_extensions; do
11996 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11997 ac_cv_prog_WINDMC="${ncn_progname}"
11998 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12007 WINDMC=$ac_cv_prog_WINDMC
12008 if test -n "$WINDMC"; then
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC" >&5
12010 $as_echo "$WINDMC" >&6; }
12012 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12013 $as_echo "no
" >&6; }
12018 test -n "$ac_cv_prog_WINDMC" && break
12021 if test -z "$ac_cv_prog_WINDMC" ; then
12023 if test $build = $host ; then
12026 WINDMC="${ncn_tool_prefix}$2"
12032 if test -n "$OBJCOPY"; then
12033 ac_cv_prog_OBJCOPY=$OBJCOPY
12034 elif test -n "$ac_cv_prog_OBJCOPY"; then
12035 OBJCOPY=$ac_cv_prog_OBJCOPY
12038 if test -n "$ac_cv_prog_OBJCOPY"; then
12039 for ncn_progname in objcopy; do
12040 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12041 set dummy ${ncn_progname}; ac_word=$2
12042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12043 $as_echo_n "checking
for $ac_word...
" >&6; }
12044 if ${ac_cv_prog_OBJCOPY+:} false; then :
12045 $as_echo_n "(cached
) " >&6
12047 if test -n "$OBJCOPY"; then
12048 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12051 for as_dir in $PATH
12054 test -z "$as_dir" && as_dir=.
12055 for ac_exec_ext in '' $ac_executable_extensions; do
12056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12057 ac_cv_prog_OBJCOPY="${ncn_progname}"
12058 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12067 OBJCOPY=$ac_cv_prog_OBJCOPY
12068 if test -n "$OBJCOPY"; then
12069 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12070 $as_echo "$OBJCOPY" >&6; }
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12073 $as_echo "no
" >&6; }
12080 for ncn_progname in objcopy; do
12081 if test -n "$ncn_tool_prefix"; then
12082 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12083 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12085 $as_echo_n "checking
for $ac_word...
" >&6; }
12086 if ${ac_cv_prog_OBJCOPY+:} false; then :
12087 $as_echo_n "(cached
) " >&6
12089 if test -n "$OBJCOPY"; then
12090 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12092 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12093 for as_dir in $PATH
12096 test -z "$as_dir" && as_dir=.
12097 for ac_exec_ext in '' $ac_executable_extensions; do
12098 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12099 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12100 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12109 OBJCOPY=$ac_cv_prog_OBJCOPY
12110 if test -n "$OBJCOPY"; then
12111 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12112 $as_echo "$OBJCOPY" >&6; }
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12115 $as_echo "no
" >&6; }
12120 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12121 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12122 set dummy ${ncn_progname}; ac_word=$2
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12124 $as_echo_n "checking
for $ac_word...
" >&6; }
12125 if ${ac_cv_prog_OBJCOPY+:} false; then :
12126 $as_echo_n "(cached
) " >&6
12128 if test -n "$OBJCOPY"; then
12129 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12132 for as_dir in $PATH
12135 test -z "$as_dir" && as_dir=.
12136 for ac_exec_ext in '' $ac_executable_extensions; do
12137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12138 ac_cv_prog_OBJCOPY="${ncn_progname}"
12139 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12148 OBJCOPY=$ac_cv_prog_OBJCOPY
12149 if test -n "$OBJCOPY"; then
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY" >&5
12151 $as_echo "$OBJCOPY" >&6; }
12153 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12154 $as_echo "no
" >&6; }
12159 test -n "$ac_cv_prog_OBJCOPY" && break
12162 if test -z "$ac_cv_prog_OBJCOPY" ; then
12164 if test $build = $host ; then
12167 OBJCOPY="${ncn_tool_prefix}$2"
12173 if test -n "$OBJDUMP"; then
12174 ac_cv_prog_OBJDUMP=$OBJDUMP
12175 elif test -n "$ac_cv_prog_OBJDUMP"; then
12176 OBJDUMP=$ac_cv_prog_OBJDUMP
12179 if test -n "$ac_cv_prog_OBJDUMP"; then
12180 for ncn_progname in objdump; do
12181 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12182 set dummy ${ncn_progname}; ac_word=$2
12183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12184 $as_echo_n "checking
for $ac_word...
" >&6; }
12185 if ${ac_cv_prog_OBJDUMP+:} false; then :
12186 $as_echo_n "(cached
) " >&6
12188 if test -n "$OBJDUMP"; then
12189 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12192 for as_dir in $PATH
12195 test -z "$as_dir" && as_dir=.
12196 for ac_exec_ext in '' $ac_executable_extensions; do
12197 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12198 ac_cv_prog_OBJDUMP="${ncn_progname}"
12199 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12208 OBJDUMP=$ac_cv_prog_OBJDUMP
12209 if test -n "$OBJDUMP"; then
12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12211 $as_echo "$OBJDUMP" >&6; }
12213 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12214 $as_echo "no
" >&6; }
12221 for ncn_progname in objdump; do
12222 if test -n "$ncn_tool_prefix"; then
12223 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12224 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12226 $as_echo_n "checking
for $ac_word...
" >&6; }
12227 if ${ac_cv_prog_OBJDUMP+:} false; then :
12228 $as_echo_n "(cached
) " >&6
12230 if test -n "$OBJDUMP"; then
12231 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12234 for as_dir in $PATH
12237 test -z "$as_dir" && as_dir=.
12238 for ac_exec_ext in '' $ac_executable_extensions; do
12239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12240 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12241 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12250 OBJDUMP=$ac_cv_prog_OBJDUMP
12251 if test -n "$OBJDUMP"; then
12252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12253 $as_echo "$OBJDUMP" >&6; }
12255 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12256 $as_echo "no
" >&6; }
12261 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12262 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12263 set dummy ${ncn_progname}; ac_word=$2
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12265 $as_echo_n "checking
for $ac_word...
" >&6; }
12266 if ${ac_cv_prog_OBJDUMP+:} false; then :
12267 $as_echo_n "(cached
) " >&6
12269 if test -n "$OBJDUMP"; then
12270 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12273 for as_dir in $PATH
12276 test -z "$as_dir" && as_dir=.
12277 for ac_exec_ext in '' $ac_executable_extensions; do
12278 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12279 ac_cv_prog_OBJDUMP="${ncn_progname}"
12280 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12289 OBJDUMP=$ac_cv_prog_OBJDUMP
12290 if test -n "$OBJDUMP"; then
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP" >&5
12292 $as_echo "$OBJDUMP" >&6; }
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12295 $as_echo "no
" >&6; }
12300 test -n "$ac_cv_prog_OBJDUMP" && break
12303 if test -z "$ac_cv_prog_OBJDUMP" ; then
12305 if test $build = $host ; then
12308 OBJDUMP="${ncn_tool_prefix}$2"
12314 if test -n "$OTOOL"; then
12315 ac_cv_prog_OTOOL=$OTOOL
12316 elif test -n "$ac_cv_prog_OTOOL"; then
12317 OTOOL=$ac_cv_prog_OTOOL
12320 if test -n "$ac_cv_prog_OTOOL"; then
12321 for ncn_progname in otool; do
12322 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12323 set dummy ${ncn_progname}; ac_word=$2
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12325 $as_echo_n "checking
for $ac_word...
" >&6; }
12326 if ${ac_cv_prog_OTOOL+:} false; then :
12327 $as_echo_n "(cached
) " >&6
12329 if test -n "$OTOOL"; then
12330 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12333 for as_dir in $PATH
12336 test -z "$as_dir" && as_dir=.
12337 for ac_exec_ext in '' $ac_executable_extensions; do
12338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12339 ac_cv_prog_OTOOL="${ncn_progname}"
12340 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12349 OTOOL=$ac_cv_prog_OTOOL
12350 if test -n "$OTOOL"; then
12351 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12352 $as_echo "$OTOOL" >&6; }
12354 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12355 $as_echo "no
" >&6; }
12362 for ncn_progname in otool; do
12363 if test -n "$ncn_tool_prefix"; then
12364 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12365 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12367 $as_echo_n "checking
for $ac_word...
" >&6; }
12368 if ${ac_cv_prog_OTOOL+:} false; then :
12369 $as_echo_n "(cached
) " >&6
12371 if test -n "$OTOOL"; then
12372 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12375 for as_dir in $PATH
12378 test -z "$as_dir" && as_dir=.
12379 for ac_exec_ext in '' $ac_executable_extensions; do
12380 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12381 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12382 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12391 OTOOL=$ac_cv_prog_OTOOL
12392 if test -n "$OTOOL"; then
12393 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12394 $as_echo "$OTOOL" >&6; }
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12397 $as_echo "no
" >&6; }
12402 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12403 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12404 set dummy ${ncn_progname}; ac_word=$2
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12406 $as_echo_n "checking
for $ac_word...
" >&6; }
12407 if ${ac_cv_prog_OTOOL+:} false; then :
12408 $as_echo_n "(cached
) " >&6
12410 if test -n "$OTOOL"; then
12411 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12414 for as_dir in $PATH
12417 test -z "$as_dir" && as_dir=.
12418 for ac_exec_ext in '' $ac_executable_extensions; do
12419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12420 ac_cv_prog_OTOOL="${ncn_progname}"
12421 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12430 OTOOL=$ac_cv_prog_OTOOL
12431 if test -n "$OTOOL"; then
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL" >&5
12433 $as_echo "$OTOOL" >&6; }
12435 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12436 $as_echo "no
" >&6; }
12441 test -n "$ac_cv_prog_OTOOL" && break
12444 if test -z "$ac_cv_prog_OTOOL" ; then
12446 if test $build = $host ; then
12449 OTOOL="${ncn_tool_prefix}$2"
12455 if test -n "$READELF"; then
12456 ac_cv_prog_READELF=$READELF
12457 elif test -n "$ac_cv_prog_READELF"; then
12458 READELF=$ac_cv_prog_READELF
12461 if test -n "$ac_cv_prog_READELF"; then
12462 for ncn_progname in readelf; do
12463 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12464 set dummy ${ncn_progname}; ac_word=$2
12465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12466 $as_echo_n "checking
for $ac_word...
" >&6; }
12467 if ${ac_cv_prog_READELF+:} false; then :
12468 $as_echo_n "(cached
) " >&6
12470 if test -n "$READELF"; then
12471 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12474 for as_dir in $PATH
12477 test -z "$as_dir" && as_dir=.
12478 for ac_exec_ext in '' $ac_executable_extensions; do
12479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12480 ac_cv_prog_READELF="${ncn_progname}"
12481 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12490 READELF=$ac_cv_prog_READELF
12491 if test -n "$READELF"; then
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12493 $as_echo "$READELF" >&6; }
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12496 $as_echo "no
" >&6; }
12503 for ncn_progname in readelf; do
12504 if test -n "$ncn_tool_prefix"; then
12505 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12506 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12508 $as_echo_n "checking
for $ac_word...
" >&6; }
12509 if ${ac_cv_prog_READELF+:} false; then :
12510 $as_echo_n "(cached
) " >&6
12512 if test -n "$READELF"; then
12513 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12516 for as_dir in $PATH
12519 test -z "$as_dir" && as_dir=.
12520 for ac_exec_ext in '' $ac_executable_extensions; do
12521 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12522 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12523 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12532 READELF=$ac_cv_prog_READELF
12533 if test -n "$READELF"; then
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12535 $as_echo "$READELF" >&6; }
12537 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12538 $as_echo "no
" >&6; }
12543 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12544 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12545 set dummy ${ncn_progname}; ac_word=$2
12546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12547 $as_echo_n "checking
for $ac_word...
" >&6; }
12548 if ${ac_cv_prog_READELF+:} false; then :
12549 $as_echo_n "(cached
) " >&6
12551 if test -n "$READELF"; then
12552 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12555 for as_dir in $PATH
12558 test -z "$as_dir" && as_dir=.
12559 for ac_exec_ext in '' $ac_executable_extensions; do
12560 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12561 ac_cv_prog_READELF="${ncn_progname}"
12562 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12571 READELF=$ac_cv_prog_READELF
12572 if test -n "$READELF"; then
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF" >&5
12574 $as_echo "$READELF" >&6; }
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12577 $as_echo "no
" >&6; }
12582 test -n "$ac_cv_prog_READELF" && break
12585 if test -z "$ac_cv_prog_READELF" ; then
12587 if test $build = $host ; then
12590 READELF="${ncn_tool_prefix}$2"
12601 # Check whether --with-build-time-tools was given.
12602 if test "${with_build_time_tools+set}" = set; then :
12603 withval=$with_build_time_tools; case x"$withval" in
12606 with_build_time_tools=
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&5
12608 $as_echo "$as_me: WARNING
: argument to
--with-build-time-tools must be an absolute path
" >&2;}
12612 with_build_time_tools=
12618 if test -n "$CC_FOR_TARGET"; then
12619 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12620 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12621 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12624 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12625 for ncn_progname in cc gcc; do
12626 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12627 set dummy ${ncn_progname}; ac_word=$2
12628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12629 $as_echo_n "checking
for $ac_word...
" >&6; }
12630 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12631 $as_echo_n "(cached
) " >&6
12633 if test -n "$CC_FOR_TARGET"; then
12634 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12636 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637 for as_dir in $PATH
12640 test -z "$as_dir" && as_dir=.
12641 for ac_exec_ext in '' $ac_executable_extensions; do
12642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12643 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12644 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12653 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12654 if test -n "$CC_FOR_TARGET"; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12656 $as_echo "$CC_FOR_TARGET" >&6; }
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12659 $as_echo "no
" >&6; }
12666 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12667 for ncn_progname in cc gcc; do
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12669 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12670 if test -x $with_build_time_tools/${ncn_progname}; then
12671 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12673 $as_echo "yes" >&6; }
12676 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12677 $as_echo "no
" >&6; }
12682 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12683 for ncn_progname in cc gcc; do
12684 if test -n "$ncn_target_tool_prefix"; then
12685 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12686 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12688 $as_echo_n "checking
for $ac_word...
" >&6; }
12689 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12690 $as_echo_n "(cached
) " >&6
12692 if test -n "$CC_FOR_TARGET"; then
12693 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12696 for as_dir in $PATH
12699 test -z "$as_dir" && as_dir=.
12700 for ac_exec_ext in '' $ac_executable_extensions; do
12701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12702 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12703 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12712 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12713 if test -n "$CC_FOR_TARGET"; then
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12715 $as_echo "$CC_FOR_TARGET" >&6; }
12717 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12718 $as_echo "no
" >&6; }
12723 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12724 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12725 set dummy ${ncn_progname}; ac_word=$2
12726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12727 $as_echo_n "checking
for $ac_word...
" >&6; }
12728 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12729 $as_echo_n "(cached
) " >&6
12731 if test -n "$CC_FOR_TARGET"; then
12732 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12735 for as_dir in $PATH
12738 test -z "$as_dir" && as_dir=.
12739 for ac_exec_ext in '' $ac_executable_extensions; do
12740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12741 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12742 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12751 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12752 if test -n "$CC_FOR_TARGET"; then
12753 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CC_FOR_TARGET" >&5
12754 $as_echo "$CC_FOR_TARGET" >&6; }
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12757 $as_echo "no
" >&6; }
12762 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12766 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12768 if test $build = $target ; then
12771 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12774 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12779 if test -n "$CXX_FOR_TARGET"; then
12780 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12781 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12782 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12785 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12786 for ncn_progname in c++ g++ cxx gxx; do
12787 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12788 set dummy ${ncn_progname}; ac_word=$2
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12790 $as_echo_n "checking
for $ac_word...
" >&6; }
12791 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12792 $as_echo_n "(cached
) " >&6
12794 if test -n "$CXX_FOR_TARGET"; then
12795 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12798 for as_dir in $PATH
12801 test -z "$as_dir" && as_dir=.
12802 for ac_exec_ext in '' $ac_executable_extensions; do
12803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12804 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12805 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12814 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12815 if test -n "$CXX_FOR_TARGET"; then
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
12817 $as_echo "$CXX_FOR_TARGET" >&6; }
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12820 $as_echo "no
" >&6; }
12827 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
12828 for ncn_progname in c++ g++ cxx gxx; do
12829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12830 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12831 if test -x $with_build_time_tools/${ncn_progname}; then
12832 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12833 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12834 $as_echo "yes" >&6; }
12837 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12838 $as_echo "no
" >&6; }
12843 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
12844 for ncn_progname in c++ g++ cxx gxx; do
12845 if test -n "$ncn_target_tool_prefix"; then
12846 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12847 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12849 $as_echo_n "checking
for $ac_word...
" >&6; }
12850 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12851 $as_echo_n "(cached
) " >&6
12853 if test -n "$CXX_FOR_TARGET"; then
12854 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12857 for as_dir in $PATH
12860 test -z "$as_dir" && as_dir=.
12861 for ac_exec_ext in '' $ac_executable_extensions; do
12862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12863 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12864 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12873 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12874 if test -n "$CXX_FOR_TARGET"; then
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
12876 $as_echo "$CXX_FOR_TARGET" >&6; }
12878 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12879 $as_echo "no
" >&6; }
12884 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
12885 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12886 set dummy ${ncn_progname}; ac_word=$2
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12888 $as_echo_n "checking
for $ac_word...
" >&6; }
12889 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12890 $as_echo_n "(cached
) " >&6
12892 if test -n "$CXX_FOR_TARGET"; then
12893 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12896 for as_dir in $PATH
12899 test -z "$as_dir" && as_dir=.
12900 for ac_exec_ext in '' $ac_executable_extensions; do
12901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12902 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12903 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12912 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12913 if test -n "$CXX_FOR_TARGET"; then
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $CXX_FOR_TARGET" >&5
12915 $as_echo "$CXX_FOR_TARGET" >&6; }
12917 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12918 $as_echo "no
" >&6; }
12923 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
12927 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
12928 set dummy c++ g++ cxx gxx
12929 if test $build = $target ; then
12930 CXX_FOR_TARGET="$2"
12932 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
12935 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
12940 if test -n "$GCC_FOR_TARGET"; then
12941 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
12942 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12943 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12946 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
12947 for ncn_progname in gcc; do
12948 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12949 set dummy ${ncn_progname}; ac_word=$2
12950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
12951 $as_echo_n "checking
for $ac_word...
" >&6; }
12952 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
12953 $as_echo_n "(cached
) " >&6
12955 if test -n "$GCC_FOR_TARGET"; then
12956 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
12958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12959 for as_dir in $PATH
12962 test -z "$as_dir" && as_dir=.
12963 for ac_exec_ext in '' $ac_executable_extensions; do
12964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12965 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
12966 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
12975 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
12976 if test -n "$GCC_FOR_TARGET"; then
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
12978 $as_echo "$GCC_FOR_TARGET" >&6; }
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12981 $as_echo "no
" >&6; }
12988 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12989 for ncn_progname in gcc; do
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
12991 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
12992 if test -x $with_build_time_tools/${ncn_progname}; then
12993 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12994 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
12995 $as_echo "yes" >&6; }
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
12999 $as_echo "no
" >&6; }
13004 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13005 for ncn_progname in gcc; do
13006 if test -n "$ncn_target_tool_prefix"; then
13007 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13008 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13010 $as_echo_n "checking
for $ac_word...
" >&6; }
13011 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13012 $as_echo_n "(cached
) " >&6
13014 if test -n "$GCC_FOR_TARGET"; then
13015 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13017 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13018 for as_dir in $PATH
13021 test -z "$as_dir" && as_dir=.
13022 for ac_exec_ext in '' $ac_executable_extensions; do
13023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13024 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13025 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13034 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13035 if test -n "$GCC_FOR_TARGET"; then
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13037 $as_echo "$GCC_FOR_TARGET" >&6; }
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13040 $as_echo "no
" >&6; }
13045 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13046 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13047 set dummy ${ncn_progname}; ac_word=$2
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13049 $as_echo_n "checking
for $ac_word...
" >&6; }
13050 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13051 $as_echo_n "(cached
) " >&6
13053 if test -n "$GCC_FOR_TARGET"; then
13054 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13057 for as_dir in $PATH
13060 test -z "$as_dir" && as_dir=.
13061 for ac_exec_ext in '' $ac_executable_extensions; do
13062 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13063 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13064 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13073 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13074 if test -n "$GCC_FOR_TARGET"; then
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GCC_FOR_TARGET" >&5
13076 $as_echo "$GCC_FOR_TARGET" >&6; }
13078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13079 $as_echo "no
" >&6; }
13084 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13088 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13089 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13091 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13096 if test -n "$GFORTRAN_FOR_TARGET"; then
13097 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13098 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13099 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13102 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13103 for ncn_progname in gfortran; 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_GFORTRAN_FOR_TARGET+:} false; then :
13109 $as_echo_n "(cached
) " >&6
13111 if test -n "$GFORTRAN_FOR_TARGET"; then
13112 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_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_GFORTRAN_FOR_TARGET="${ncn_progname}"
13122 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13131 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13132 if test -n "$GFORTRAN_FOR_TARGET"; then
13133 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13134 $as_echo "$GFORTRAN_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_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13145 for ncn_progname in gfortran; 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_GFORTRAN_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_GFORTRAN_FOR_TARGET"; then
13161 for ncn_progname in gfortran; 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_GFORTRAN_FOR_TARGET+:} false; then :
13168 $as_echo_n "(cached
) " >&6
13170 if test -n "$GFORTRAN_FOR_TARGET"; then
13171 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_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_GFORTRAN_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 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13191 if test -n "$GFORTRAN_FOR_TARGET"; then
13192 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13193 $as_echo "$GFORTRAN_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_GFORTRAN_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_GFORTRAN_FOR_TARGET+:} false; then :
13207 $as_echo_n "(cached
) " >&6
13209 if test -n "$GFORTRAN_FOR_TARGET"; then
13210 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_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_GFORTRAN_FOR_TARGET="${ncn_progname}"
13220 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13229 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13230 if test -n "$GFORTRAN_FOR_TARGET"; then
13231 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GFORTRAN_FOR_TARGET" >&5
13232 $as_echo "$GFORTRAN_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_GFORTRAN_FOR_TARGET" && break
13244 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13246 if test $build = $target ; then
13247 GFORTRAN_FOR_TARGET="$2"
13249 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13252 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13257 if test -n "$GOC_FOR_TARGET"; then
13258 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13259 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13260 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13263 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13264 for ncn_progname in gccgo; 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_GOC_FOR_TARGET+:} false; then :
13270 $as_echo_n "(cached
) " >&6
13272 if test -n "$GOC_FOR_TARGET"; then
13273 ac_cv_prog_GOC_FOR_TARGET="$GOC_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_GOC_FOR_TARGET="${ncn_progname}"
13283 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13292 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13293 if test -n "$GOC_FOR_TARGET"; then
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13295 $as_echo "$GOC_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_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13306 for ncn_progname in gccgo; 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_GOC_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_GOC_FOR_TARGET"; then
13322 for ncn_progname in gccgo; 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_GOC_FOR_TARGET+:} false; then :
13329 $as_echo_n "(cached
) " >&6
13331 if test -n "$GOC_FOR_TARGET"; then
13332 ac_cv_prog_GOC_FOR_TARGET="$GOC_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_GOC_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 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13352 if test -n "$GOC_FOR_TARGET"; then
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13354 $as_echo "$GOC_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_GOC_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_GOC_FOR_TARGET+:} false; then :
13368 $as_echo_n "(cached
) " >&6
13370 if test -n "$GOC_FOR_TARGET"; then
13371 ac_cv_prog_GOC_FOR_TARGET="$GOC_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_GOC_FOR_TARGET="${ncn_progname}"
13381 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13390 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13391 if test -n "$GOC_FOR_TARGET"; then
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GOC_FOR_TARGET" >&5
13393 $as_echo "$GOC_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_GOC_FOR_TARGET" && break
13405 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13407 if test $build = $target ; then
13408 GOC_FOR_TARGET="$2"
13410 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13413 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13418 if test -n "$GDC_FOR_TARGET"; then
13419 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13420 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13421 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13424 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13425 for ncn_progname in gdc; 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_GDC_FOR_TARGET+:} false; then :
13431 $as_echo_n "(cached
) " >&6
13433 if test -n "$GDC_FOR_TARGET"; then
13434 ac_cv_prog_GDC_FOR_TARGET="$GDC_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_GDC_FOR_TARGET="${ncn_progname}"
13444 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13453 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13454 if test -n "$GDC_FOR_TARGET"; then
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13456 $as_echo "$GDC_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_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13467 for ncn_progname in gdc; 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_GDC_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_GDC_FOR_TARGET"; then
13483 for ncn_progname in gdc; 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_GDC_FOR_TARGET+:} false; then :
13490 $as_echo_n "(cached
) " >&6
13492 if test -n "$GDC_FOR_TARGET"; then
13493 ac_cv_prog_GDC_FOR_TARGET="$GDC_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_GDC_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 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13513 if test -n "$GDC_FOR_TARGET"; then
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13515 $as_echo "$GDC_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_GDC_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_GDC_FOR_TARGET+:} false; then :
13529 $as_echo_n "(cached
) " >&6
13531 if test -n "$GDC_FOR_TARGET"; then
13532 ac_cv_prog_GDC_FOR_TARGET="$GDC_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_GDC_FOR_TARGET="${ncn_progname}"
13542 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13551 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13552 if test -n "$GDC_FOR_TARGET"; then
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $GDC_FOR_TARGET" >&5
13554 $as_echo "$GDC_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_GDC_FOR_TARGET" && break
13566 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13568 if test $build = $target ; then
13569 GDC_FOR_TARGET="$2"
13571 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13574 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13579 cat > conftest.c << \EOF
13584 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13585 have_gcc_for_target=yes
13587 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13588 have_gcc_for_target=no
13595 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13596 if test -n "$with_build_time_tools"; then
13597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ar in $with_build_time_tools" >&5
13598 $as_echo_n "checking
for ar in $with_build_time_tools...
" >&6; }
13599 if test -x $with_build_time_tools/ar; then
13600 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13601 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13602 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AR_FOR_TARGET" >&5
13603 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13605 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13606 $as_echo "no
" >&6; }
13608 elif test $build != $host && test $have_gcc_for_target = yes; then
13609 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13610 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13611 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13614 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13615 # Extract the first word of "ar", so it can be a program name with args.
13616 set dummy ar; ac_word=$2
13617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13618 $as_echo_n "checking
for $ac_word...
" >&6; }
13619 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13620 $as_echo_n "(cached
) " >&6
13622 case $AR_FOR_TARGET in
13624 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13627 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13628 for as_dir in $gcc_cv_tool_dirs
13631 test -z "$as_dir" && as_dir=.
13632 for ac_exec_ext in '' $ac_executable_extensions; do
13633 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13634 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13635 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13645 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13646 if test -n "$AR_FOR_TARGET"; then
13647 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13648 $as_echo "$AR_FOR_TARGET" >&6; }
13650 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13651 $as_echo "no
" >&6; }
13656 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13659 if test -n "$AR_FOR_TARGET"; then
13660 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13661 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13662 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13665 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13666 for ncn_progname in ar; do
13667 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13668 set dummy ${ncn_progname}; ac_word=$2
13669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13670 $as_echo_n "checking
for $ac_word...
" >&6; }
13671 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13672 $as_echo_n "(cached
) " >&6
13674 if test -n "$AR_FOR_TARGET"; then
13675 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13678 for as_dir in $PATH
13681 test -z "$as_dir" && as_dir=.
13682 for ac_exec_ext in '' $ac_executable_extensions; do
13683 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13684 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13685 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13694 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13695 if test -n "$AR_FOR_TARGET"; then
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13697 $as_echo "$AR_FOR_TARGET" >&6; }
13699 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13700 $as_echo "no
" >&6; }
13707 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13708 for ncn_progname in ar; do
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13710 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13711 if test -x $with_build_time_tools/${ncn_progname}; then
13712 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13714 $as_echo "yes" >&6; }
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13718 $as_echo "no
" >&6; }
13723 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13724 for ncn_progname in ar; do
13725 if test -n "$ncn_target_tool_prefix"; then
13726 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13727 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13729 $as_echo_n "checking
for $ac_word...
" >&6; }
13730 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13731 $as_echo_n "(cached
) " >&6
13733 if test -n "$AR_FOR_TARGET"; then
13734 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13737 for as_dir in $PATH
13740 test -z "$as_dir" && as_dir=.
13741 for ac_exec_ext in '' $ac_executable_extensions; do
13742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13743 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13744 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13753 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13754 if test -n "$AR_FOR_TARGET"; then
13755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13756 $as_echo "$AR_FOR_TARGET" >&6; }
13758 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13759 $as_echo "no
" >&6; }
13764 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13765 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13766 set dummy ${ncn_progname}; ac_word=$2
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13768 $as_echo_n "checking
for $ac_word...
" >&6; }
13769 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13770 $as_echo_n "(cached
) " >&6
13772 if test -n "$AR_FOR_TARGET"; then
13773 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13775 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13776 for as_dir in $PATH
13779 test -z "$as_dir" && as_dir=.
13780 for ac_exec_ext in '' $ac_executable_extensions; do
13781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13782 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13783 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13792 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13793 if test -n "$AR_FOR_TARGET"; then
13794 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AR_FOR_TARGET" >&5
13795 $as_echo "$AR_FOR_TARGET" >&6; }
13797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13798 $as_echo "no
" >&6; }
13803 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13807 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13809 if test $build = $target ; then
13812 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
13815 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
13819 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13825 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13826 if test -n "$with_build_time_tools"; then
13827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for as
in $with_build_time_tools" >&5
13828 $as_echo_n "checking
for as
in $with_build_time_tools...
" >&6; }
13829 if test -x $with_build_time_tools/as; then
13830 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
13831 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_AS_FOR_TARGET" >&5
13833 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13836 $as_echo "no
" >&6; }
13838 elif test $build != $host && test $have_gcc_for_target = yes; then
13839 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
13840 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
13841 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
13844 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13845 # Extract the first word of "as
", so it can be a program name with args.
13846 set dummy as; ac_word=$2
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13848 $as_echo_n "checking
for $ac_word...
" >&6; }
13849 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
13850 $as_echo_n "(cached
) " >&6
13852 case $AS_FOR_TARGET in
13854 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
13857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13858 for as_dir in $gcc_cv_tool_dirs
13861 test -z "$as_dir" && as_dir=.
13862 for ac_exec_ext in '' $ac_executable_extensions; do
13863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13864 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13865 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13875 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
13876 if test -n "$AS_FOR_TARGET"; then
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
13878 $as_echo "$AS_FOR_TARGET" >&6; }
13880 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13881 $as_echo "no
" >&6; }
13886 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
13889 if test -n "$AS_FOR_TARGET"; then
13890 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
13891 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13892 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13895 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
13896 for ncn_progname in as; do
13897 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13898 set dummy ${ncn_progname}; ac_word=$2
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13900 $as_echo_n "checking
for $ac_word...
" >&6; }
13901 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13902 $as_echo_n "(cached
) " >&6
13904 if test -n "$AS_FOR_TARGET"; then
13905 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13908 for as_dir in $PATH
13911 test -z "$as_dir" && as_dir=.
13912 for ac_exec_ext in '' $ac_executable_extensions; do
13913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13914 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
13915 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13924 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13925 if test -n "$AS_FOR_TARGET"; then
13926 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
13927 $as_echo "$AS_FOR_TARGET" >&6; }
13929 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13930 $as_echo "no
" >&6; }
13937 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
13938 for ncn_progname in as; do
13939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
13940 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
13941 if test -x $with_build_time_tools/${ncn_progname}; then
13942 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
13944 $as_echo "yes" >&6; }
13947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13948 $as_echo "no
" >&6; }
13953 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
13954 for ncn_progname in as; do
13955 if test -n "$ncn_target_tool_prefix"; then
13956 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13957 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13959 $as_echo_n "checking
for $ac_word...
" >&6; }
13960 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
13961 $as_echo_n "(cached
) " >&6
13963 if test -n "$AS_FOR_TARGET"; then
13964 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
13966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13967 for as_dir in $PATH
13970 test -z "$as_dir" && as_dir=.
13971 for ac_exec_ext in '' $ac_executable_extensions; do
13972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13973 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13974 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
13983 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
13984 if test -n "$AS_FOR_TARGET"; then
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
13986 $as_echo "$AS_FOR_TARGET" >&6; }
13988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
13989 $as_echo "no
" >&6; }
13994 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
13995 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13996 set dummy ${ncn_progname}; ac_word=$2
13997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
13998 $as_echo_n "checking
for $ac_word...
" >&6; }
13999 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14000 $as_echo_n "(cached
) " >&6
14002 if test -n "$AS_FOR_TARGET"; then
14003 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14006 for as_dir in $PATH
14009 test -z "$as_dir" && as_dir=.
14010 for ac_exec_ext in '' $ac_executable_extensions; do
14011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14012 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14013 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14022 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14023 if test -n "$AS_FOR_TARGET"; then
14024 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $AS_FOR_TARGET" >&5
14025 $as_echo "$AS_FOR_TARGET" >&6; }
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14028 $as_echo "no
" >&6; }
14033 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14037 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14039 if test $build = $target ; then
14042 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14045 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14049 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14055 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14056 if test -n "$with_build_time_tools"; then
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dlltool
in $with_build_time_tools" >&5
14058 $as_echo_n "checking
for dlltool
in $with_build_time_tools...
" >&6; }
14059 if test -x $with_build_time_tools/dlltool; then
14060 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14061 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14063 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14066 $as_echo "no
" >&6; }
14068 elif test $build != $host && test $have_gcc_for_target = yes; then
14069 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14070 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14071 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14074 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14075 # Extract the first word of "dlltool
", so it can be a program name with args.
14076 set dummy dlltool; ac_word=$2
14077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14078 $as_echo_n "checking
for $ac_word...
" >&6; }
14079 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14080 $as_echo_n "(cached
) " >&6
14082 case $DLLTOOL_FOR_TARGET in
14084 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14088 for as_dir in $gcc_cv_tool_dirs
14091 test -z "$as_dir" && as_dir=.
14092 for ac_exec_ext in '' $ac_executable_extensions; do
14093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14094 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14095 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14105 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14106 if test -n "$DLLTOOL_FOR_TARGET"; then
14107 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14108 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14111 $as_echo "no
" >&6; }
14116 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14119 if test -n "$DLLTOOL_FOR_TARGET"; then
14120 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14121 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14122 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14125 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14126 for ncn_progname in dlltool; do
14127 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14128 set dummy ${ncn_progname}; ac_word=$2
14129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14130 $as_echo_n "checking
for $ac_word...
" >&6; }
14131 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14132 $as_echo_n "(cached
) " >&6
14134 if test -n "$DLLTOOL_FOR_TARGET"; then
14135 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14138 for as_dir in $PATH
14141 test -z "$as_dir" && as_dir=.
14142 for ac_exec_ext in '' $ac_executable_extensions; do
14143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14144 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14145 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14154 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14155 if test -n "$DLLTOOL_FOR_TARGET"; then
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14157 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14160 $as_echo "no
" >&6; }
14167 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14168 for ncn_progname in dlltool; do
14169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14170 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14171 if test -x $with_build_time_tools/${ncn_progname}; then
14172 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14174 $as_echo "yes" >&6; }
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14178 $as_echo "no
" >&6; }
14183 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14184 for ncn_progname in dlltool; do
14185 if test -n "$ncn_target_tool_prefix"; then
14186 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14187 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14189 $as_echo_n "checking
for $ac_word...
" >&6; }
14190 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14191 $as_echo_n "(cached
) " >&6
14193 if test -n "$DLLTOOL_FOR_TARGET"; then
14194 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14196 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14197 for as_dir in $PATH
14200 test -z "$as_dir" && as_dir=.
14201 for ac_exec_ext in '' $ac_executable_extensions; do
14202 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14203 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14204 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14213 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14214 if test -n "$DLLTOOL_FOR_TARGET"; then
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14216 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14219 $as_echo "no
" >&6; }
14224 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14225 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14226 set dummy ${ncn_progname}; ac_word=$2
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14228 $as_echo_n "checking
for $ac_word...
" >&6; }
14229 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14230 $as_echo_n "(cached
) " >&6
14232 if test -n "$DLLTOOL_FOR_TARGET"; then
14233 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14236 for as_dir in $PATH
14239 test -z "$as_dir" && as_dir=.
14240 for ac_exec_ext in '' $ac_executable_extensions; do
14241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14242 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14243 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14252 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14253 if test -n "$DLLTOOL_FOR_TARGET"; then
14254 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DLLTOOL_FOR_TARGET" >&5
14255 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14258 $as_echo "no
" >&6; }
14263 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14267 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14269 if test $build = $target ; then
14270 DLLTOOL_FOR_TARGET="$2"
14272 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14275 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14279 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14285 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14286 if test -n "$with_build_time_tools"; then
14287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for dsymutil
in $with_build_time_tools" >&5
14288 $as_echo_n "checking
for dsymutil
in $with_build_time_tools...
" >&6; }
14289 if test -x $with_build_time_tools/dsymutil; then
14290 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14291 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14292 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14293 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14296 $as_echo "no
" >&6; }
14298 elif test $build != $host && test $have_gcc_for_target = yes; then
14299 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14300 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14301 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14304 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14305 # Extract the first word of "dsymutil
", so it can be a program name with args.
14306 set dummy dsymutil; ac_word=$2
14307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14308 $as_echo_n "checking
for $ac_word...
" >&6; }
14309 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14310 $as_echo_n "(cached
) " >&6
14312 case $DSYMUTIL_FOR_TARGET in
14314 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14318 for as_dir in $gcc_cv_tool_dirs
14321 test -z "$as_dir" && as_dir=.
14322 for ac_exec_ext in '' $ac_executable_extensions; do
14323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14324 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14325 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14335 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14336 if test -n "$DSYMUTIL_FOR_TARGET"; then
14337 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14338 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14341 $as_echo "no
" >&6; }
14346 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14349 if test -n "$DSYMUTIL_FOR_TARGET"; then
14350 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14351 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14352 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14355 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14356 for ncn_progname in dsymutil; do
14357 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14358 set dummy ${ncn_progname}; ac_word=$2
14359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14360 $as_echo_n "checking
for $ac_word...
" >&6; }
14361 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14362 $as_echo_n "(cached
) " >&6
14364 if test -n "$DSYMUTIL_FOR_TARGET"; then
14365 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14368 for as_dir in $PATH
14371 test -z "$as_dir" && as_dir=.
14372 for ac_exec_ext in '' $ac_executable_extensions; do
14373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14374 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14375 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14384 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14385 if test -n "$DSYMUTIL_FOR_TARGET"; then
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14387 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14389 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14390 $as_echo "no
" >&6; }
14397 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14398 for ncn_progname in dsymutil; do
14399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14400 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14401 if test -x $with_build_time_tools/${ncn_progname}; then
14402 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14404 $as_echo "yes" >&6; }
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14408 $as_echo "no
" >&6; }
14413 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14414 for ncn_progname in dsymutil; do
14415 if test -n "$ncn_target_tool_prefix"; then
14416 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14417 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14419 $as_echo_n "checking
for $ac_word...
" >&6; }
14420 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14421 $as_echo_n "(cached
) " >&6
14423 if test -n "$DSYMUTIL_FOR_TARGET"; then
14424 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14427 for as_dir in $PATH
14430 test -z "$as_dir" && as_dir=.
14431 for ac_exec_ext in '' $ac_executable_extensions; do
14432 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14433 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14434 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14443 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14444 if test -n "$DSYMUTIL_FOR_TARGET"; then
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14446 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14448 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14449 $as_echo "no
" >&6; }
14454 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14455 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14456 set dummy ${ncn_progname}; ac_word=$2
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14458 $as_echo_n "checking
for $ac_word...
" >&6; }
14459 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14460 $as_echo_n "(cached
) " >&6
14462 if test -n "$DSYMUTIL_FOR_TARGET"; then
14463 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14466 for as_dir in $PATH
14469 test -z "$as_dir" && as_dir=.
14470 for ac_exec_ext in '' $ac_executable_extensions; do
14471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14472 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14473 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14482 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14483 if test -n "$DSYMUTIL_FOR_TARGET"; then
14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $DSYMUTIL_FOR_TARGET" >&5
14485 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14488 $as_echo "no
" >&6; }
14493 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14497 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14499 if test $build = $target ; then
14500 DSYMUTIL_FOR_TARGET="$2"
14502 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14505 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14509 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14515 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14516 if test -n "$with_build_time_tools"; then
14517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ld
in $with_build_time_tools" >&5
14518 $as_echo_n "checking
for ld
in $with_build_time_tools...
" >&6; }
14519 if test -x $with_build_time_tools/ld; then
14520 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14521 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LD_FOR_TARGET" >&5
14523 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14526 $as_echo "no
" >&6; }
14528 elif test $build != $host && test $have_gcc_for_target = yes; then
14529 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14530 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14531 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14534 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14535 # Extract the first word of "ld
", so it can be a program name with args.
14536 set dummy ld; ac_word=$2
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14538 $as_echo_n "checking
for $ac_word...
" >&6; }
14539 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14540 $as_echo_n "(cached
) " >&6
14542 case $LD_FOR_TARGET in
14544 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14548 for as_dir in $gcc_cv_tool_dirs
14551 test -z "$as_dir" && as_dir=.
14552 for ac_exec_ext in '' $ac_executable_extensions; do
14553 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14554 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14555 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14565 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14566 if test -n "$LD_FOR_TARGET"; then
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14568 $as_echo "$LD_FOR_TARGET" >&6; }
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14571 $as_echo "no
" >&6; }
14576 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14579 if test -n "$LD_FOR_TARGET"; then
14580 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14581 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14582 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14585 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14586 for ncn_progname in ld; do
14587 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14588 set dummy ${ncn_progname}; ac_word=$2
14589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14590 $as_echo_n "checking
for $ac_word...
" >&6; }
14591 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14592 $as_echo_n "(cached
) " >&6
14594 if test -n "$LD_FOR_TARGET"; then
14595 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14598 for as_dir in $PATH
14601 test -z "$as_dir" && as_dir=.
14602 for ac_exec_ext in '' $ac_executable_extensions; do
14603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14604 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14605 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14614 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14615 if test -n "$LD_FOR_TARGET"; then
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14617 $as_echo "$LD_FOR_TARGET" >&6; }
14619 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14620 $as_echo "no
" >&6; }
14627 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14628 for ncn_progname in ld; do
14629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14630 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14631 if test -x $with_build_time_tools/${ncn_progname}; then
14632 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14634 $as_echo "yes" >&6; }
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14638 $as_echo "no
" >&6; }
14643 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14644 for ncn_progname in ld; do
14645 if test -n "$ncn_target_tool_prefix"; then
14646 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14647 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14649 $as_echo_n "checking
for $ac_word...
" >&6; }
14650 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14651 $as_echo_n "(cached
) " >&6
14653 if test -n "$LD_FOR_TARGET"; then
14654 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14657 for as_dir in $PATH
14660 test -z "$as_dir" && as_dir=.
14661 for ac_exec_ext in '' $ac_executable_extensions; do
14662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14663 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14664 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14673 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14674 if test -n "$LD_FOR_TARGET"; then
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14676 $as_echo "$LD_FOR_TARGET" >&6; }
14678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14679 $as_echo "no
" >&6; }
14684 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14685 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14686 set dummy ${ncn_progname}; ac_word=$2
14687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14688 $as_echo_n "checking
for $ac_word...
" >&6; }
14689 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14690 $as_echo_n "(cached
) " >&6
14692 if test -n "$LD_FOR_TARGET"; then
14693 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14696 for as_dir in $PATH
14699 test -z "$as_dir" && as_dir=.
14700 for ac_exec_ext in '' $ac_executable_extensions; do
14701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14702 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14703 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14712 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14713 if test -n "$LD_FOR_TARGET"; then
14714 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LD_FOR_TARGET" >&5
14715 $as_echo "$LD_FOR_TARGET" >&6; }
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14718 $as_echo "no
" >&6; }
14723 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14727 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14729 if test $build = $target ; then
14732 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14735 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14739 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14745 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14746 if test -n "$with_build_time_tools"; then
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for lipo
in $with_build_time_tools" >&5
14748 $as_echo_n "checking
for lipo
in $with_build_time_tools...
" >&6; }
14749 if test -x $with_build_time_tools/lipo; then
14750 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14751 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_LIPO_FOR_TARGET" >&5
14753 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14756 $as_echo "no
" >&6; }
14758 elif test $build != $host && test $have_gcc_for_target = yes; then
14759 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14760 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14761 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14764 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14765 # Extract the first word of "lipo
", so it can be a program name with args.
14766 set dummy lipo; ac_word=$2
14767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14768 $as_echo_n "checking
for $ac_word...
" >&6; }
14769 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14770 $as_echo_n "(cached
) " >&6
14772 case $LIPO_FOR_TARGET in
14774 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14778 for as_dir in $gcc_cv_tool_dirs
14781 test -z "$as_dir" && as_dir=.
14782 for ac_exec_ext in '' $ac_executable_extensions; do
14783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14784 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14785 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14795 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14796 if test -n "$LIPO_FOR_TARGET"; then
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
14798 $as_echo "$LIPO_FOR_TARGET" >&6; }
14800 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14801 $as_echo "no
" >&6; }
14806 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14809 if test -n "$LIPO_FOR_TARGET"; then
14810 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14811 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14812 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14815 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
14816 for ncn_progname in lipo; do
14817 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14818 set dummy ${ncn_progname}; ac_word=$2
14819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14820 $as_echo_n "checking
for $ac_word...
" >&6; }
14821 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14822 $as_echo_n "(cached
) " >&6
14824 if test -n "$LIPO_FOR_TARGET"; then
14825 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14828 for as_dir in $PATH
14831 test -z "$as_dir" && as_dir=.
14832 for ac_exec_ext in '' $ac_executable_extensions; do
14833 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14834 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14835 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14844 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14845 if test -n "$LIPO_FOR_TARGET"; then
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
14847 $as_echo "$LIPO_FOR_TARGET" >&6; }
14849 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14850 $as_echo "no
" >&6; }
14857 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
14858 for ncn_progname in lipo; do
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
14860 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
14861 if test -x $with_build_time_tools/${ncn_progname}; then
14862 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
14864 $as_echo "yes" >&6; }
14867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14868 $as_echo "no
" >&6; }
14873 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
14874 for ncn_progname in lipo; do
14875 if test -n "$ncn_target_tool_prefix"; then
14876 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14877 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14879 $as_echo_n "checking
for $ac_word...
" >&6; }
14880 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14881 $as_echo_n "(cached
) " >&6
14883 if test -n "$LIPO_FOR_TARGET"; then
14884 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14887 for as_dir in $PATH
14890 test -z "$as_dir" && as_dir=.
14891 for ac_exec_ext in '' $ac_executable_extensions; do
14892 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14893 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14894 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14903 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14904 if test -n "$LIPO_FOR_TARGET"; then
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
14906 $as_echo "$LIPO_FOR_TARGET" >&6; }
14908 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14909 $as_echo "no
" >&6; }
14914 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
14915 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14916 set dummy ${ncn_progname}; ac_word=$2
14917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14918 $as_echo_n "checking
for $ac_word...
" >&6; }
14919 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
14920 $as_echo_n "(cached
) " >&6
14922 if test -n "$LIPO_FOR_TARGET"; then
14923 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
14925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14926 for as_dir in $PATH
14929 test -z "$as_dir" && as_dir=.
14930 for ac_exec_ext in '' $ac_executable_extensions; do
14931 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14932 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
14933 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
14942 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
14943 if test -n "$LIPO_FOR_TARGET"; then
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $LIPO_FOR_TARGET" >&5
14945 $as_echo "$LIPO_FOR_TARGET" >&6; }
14947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14948 $as_echo "no
" >&6; }
14953 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
14957 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
14959 if test $build = $target ; then
14960 LIPO_FOR_TARGET="$2"
14962 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
14965 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
14969 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14975 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
14976 if test -n "$with_build_time_tools"; then
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for nm
in $with_build_time_tools" >&5
14978 $as_echo_n "checking
for nm
in $with_build_time_tools...
" >&6; }
14979 if test -x $with_build_time_tools/nm; then
14980 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
14981 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_NM_FOR_TARGET" >&5
14983 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
14986 $as_echo "no
" >&6; }
14988 elif test $build != $host && test $have_gcc_for_target = yes; then
14989 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
14990 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
14991 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
14994 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14995 # Extract the first word of "nm
", so it can be a program name with args.
14996 set dummy nm; ac_word=$2
14997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
14998 $as_echo_n "checking
for $ac_word...
" >&6; }
14999 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15000 $as_echo_n "(cached
) " >&6
15002 case $NM_FOR_TARGET in
15004 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15008 for as_dir in $gcc_cv_tool_dirs
15011 test -z "$as_dir" && as_dir=.
15012 for ac_exec_ext in '' $ac_executable_extensions; do
15013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15014 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15015 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15025 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15026 if test -n "$NM_FOR_TARGET"; then
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15028 $as_echo "$NM_FOR_TARGET" >&6; }
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15031 $as_echo "no
" >&6; }
15036 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15039 if test -n "$NM_FOR_TARGET"; then
15040 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15041 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15042 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15045 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15046 for ncn_progname in nm; do
15047 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15048 set dummy ${ncn_progname}; ac_word=$2
15049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15050 $as_echo_n "checking
for $ac_word...
" >&6; }
15051 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15052 $as_echo_n "(cached
) " >&6
15054 if test -n "$NM_FOR_TARGET"; then
15055 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15058 for as_dir in $PATH
15061 test -z "$as_dir" && as_dir=.
15062 for ac_exec_ext in '' $ac_executable_extensions; do
15063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15064 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15065 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15074 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15075 if test -n "$NM_FOR_TARGET"; then
15076 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15077 $as_echo "$NM_FOR_TARGET" >&6; }
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15080 $as_echo "no
" >&6; }
15087 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15088 for ncn_progname in nm; do
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15090 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15091 if test -x $with_build_time_tools/${ncn_progname}; then
15092 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15094 $as_echo "yes" >&6; }
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15098 $as_echo "no
" >&6; }
15103 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15104 for ncn_progname in nm; do
15105 if test -n "$ncn_target_tool_prefix"; then
15106 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15107 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15109 $as_echo_n "checking
for $ac_word...
" >&6; }
15110 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15111 $as_echo_n "(cached
) " >&6
15113 if test -n "$NM_FOR_TARGET"; then
15114 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15117 for as_dir in $PATH
15120 test -z "$as_dir" && as_dir=.
15121 for ac_exec_ext in '' $ac_executable_extensions; do
15122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15123 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15124 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15133 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15134 if test -n "$NM_FOR_TARGET"; then
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15136 $as_echo "$NM_FOR_TARGET" >&6; }
15138 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15139 $as_echo "no
" >&6; }
15144 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15145 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15146 set dummy ${ncn_progname}; ac_word=$2
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15148 $as_echo_n "checking
for $ac_word...
" >&6; }
15149 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15150 $as_echo_n "(cached
) " >&6
15152 if test -n "$NM_FOR_TARGET"; then
15153 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15156 for as_dir in $PATH
15159 test -z "$as_dir" && as_dir=.
15160 for ac_exec_ext in '' $ac_executable_extensions; do
15161 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15162 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15163 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15172 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15173 if test -n "$NM_FOR_TARGET"; then
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $NM_FOR_TARGET" >&5
15175 $as_echo "$NM_FOR_TARGET" >&6; }
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15178 $as_echo "no
" >&6; }
15183 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15187 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15189 if test $build = $target ; then
15192 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15195 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15199 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15205 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15206 if test -n "$with_build_time_tools"; then
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objcopy
in $with_build_time_tools" >&5
15208 $as_echo_n "checking
for objcopy
in $with_build_time_tools...
" >&6; }
15209 if test -x $with_build_time_tools/objcopy; then
15210 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15211 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15213 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15216 $as_echo "no
" >&6; }
15218 elif test $build != $host && test $have_gcc_for_target = yes; then
15219 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15220 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15221 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15224 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15225 # Extract the first word of "objcopy
", so it can be a program name with args.
15226 set dummy objcopy; ac_word=$2
15227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15228 $as_echo_n "checking
for $ac_word...
" >&6; }
15229 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15230 $as_echo_n "(cached
) " >&6
15232 case $OBJCOPY_FOR_TARGET in
15234 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15238 for as_dir in $gcc_cv_tool_dirs
15241 test -z "$as_dir" && as_dir=.
15242 for ac_exec_ext in '' $ac_executable_extensions; do
15243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15244 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15245 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15255 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15256 if test -n "$OBJCOPY_FOR_TARGET"; then
15257 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15258 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15261 $as_echo "no
" >&6; }
15266 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15269 if test -n "$OBJCOPY_FOR_TARGET"; then
15270 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15271 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15272 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15275 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15276 for ncn_progname in objcopy; do
15277 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15278 set dummy ${ncn_progname}; ac_word=$2
15279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15280 $as_echo_n "checking
for $ac_word...
" >&6; }
15281 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15282 $as_echo_n "(cached
) " >&6
15284 if test -n "$OBJCOPY_FOR_TARGET"; then
15285 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15288 for as_dir in $PATH
15291 test -z "$as_dir" && as_dir=.
15292 for ac_exec_ext in '' $ac_executable_extensions; do
15293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15294 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15295 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15304 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15305 if test -n "$OBJCOPY_FOR_TARGET"; then
15306 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15307 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15310 $as_echo "no
" >&6; }
15317 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15318 for ncn_progname in objcopy; do
15319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15320 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15321 if test -x $with_build_time_tools/${ncn_progname}; then
15322 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15324 $as_echo "yes" >&6; }
15327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15328 $as_echo "no
" >&6; }
15333 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15334 for ncn_progname in objcopy; do
15335 if test -n "$ncn_target_tool_prefix"; then
15336 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15337 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15339 $as_echo_n "checking
for $ac_word...
" >&6; }
15340 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15341 $as_echo_n "(cached
) " >&6
15343 if test -n "$OBJCOPY_FOR_TARGET"; then
15344 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15347 for as_dir in $PATH
15350 test -z "$as_dir" && as_dir=.
15351 for ac_exec_ext in '' $ac_executable_extensions; do
15352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15353 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15354 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15363 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15364 if test -n "$OBJCOPY_FOR_TARGET"; then
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15366 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15368 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15369 $as_echo "no
" >&6; }
15374 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15375 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15376 set dummy ${ncn_progname}; ac_word=$2
15377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15378 $as_echo_n "checking
for $ac_word...
" >&6; }
15379 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15380 $as_echo_n "(cached
) " >&6
15382 if test -n "$OBJCOPY_FOR_TARGET"; then
15383 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15386 for as_dir in $PATH
15389 test -z "$as_dir" && as_dir=.
15390 for ac_exec_ext in '' $ac_executable_extensions; do
15391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15392 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15393 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15402 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15403 if test -n "$OBJCOPY_FOR_TARGET"; then
15404 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJCOPY_FOR_TARGET" >&5
15405 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15408 $as_echo "no
" >&6; }
15413 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15417 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15419 if test $build = $target ; then
15420 OBJCOPY_FOR_TARGET="$2"
15422 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15425 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15429 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15435 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15436 if test -n "$with_build_time_tools"; then
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for objdump
in $with_build_time_tools" >&5
15438 $as_echo_n "checking
for objdump
in $with_build_time_tools...
" >&6; }
15439 if test -x $with_build_time_tools/objdump; then
15440 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15441 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15442 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15443 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15446 $as_echo "no
" >&6; }
15448 elif test $build != $host && test $have_gcc_for_target = yes; then
15449 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15450 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15451 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15454 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15455 # Extract the first word of "objdump
", so it can be a program name with args.
15456 set dummy objdump; ac_word=$2
15457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15458 $as_echo_n "checking
for $ac_word...
" >&6; }
15459 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15460 $as_echo_n "(cached
) " >&6
15462 case $OBJDUMP_FOR_TARGET in
15464 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15468 for as_dir in $gcc_cv_tool_dirs
15471 test -z "$as_dir" && as_dir=.
15472 for ac_exec_ext in '' $ac_executable_extensions; do
15473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15474 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15475 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15485 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15486 if test -n "$OBJDUMP_FOR_TARGET"; then
15487 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15488 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15491 $as_echo "no
" >&6; }
15496 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15499 if test -n "$OBJDUMP_FOR_TARGET"; then
15500 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15501 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15502 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15505 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15506 for ncn_progname in objdump; do
15507 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15508 set dummy ${ncn_progname}; ac_word=$2
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15510 $as_echo_n "checking
for $ac_word...
" >&6; }
15511 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15512 $as_echo_n "(cached
) " >&6
15514 if test -n "$OBJDUMP_FOR_TARGET"; then
15515 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15518 for as_dir in $PATH
15521 test -z "$as_dir" && as_dir=.
15522 for ac_exec_ext in '' $ac_executable_extensions; do
15523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15524 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15525 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15534 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15535 if test -n "$OBJDUMP_FOR_TARGET"; then
15536 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15537 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15540 $as_echo "no
" >&6; }
15547 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15548 for ncn_progname in objdump; do
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15550 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15551 if test -x $with_build_time_tools/${ncn_progname}; then
15552 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15554 $as_echo "yes" >&6; }
15557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15558 $as_echo "no
" >&6; }
15563 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15564 for ncn_progname in objdump; do
15565 if test -n "$ncn_target_tool_prefix"; then
15566 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15567 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15569 $as_echo_n "checking
for $ac_word...
" >&6; }
15570 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15571 $as_echo_n "(cached
) " >&6
15573 if test -n "$OBJDUMP_FOR_TARGET"; then
15574 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15576 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15577 for as_dir in $PATH
15580 test -z "$as_dir" && as_dir=.
15581 for ac_exec_ext in '' $ac_executable_extensions; do
15582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15583 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15584 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15593 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15594 if test -n "$OBJDUMP_FOR_TARGET"; then
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15596 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15598 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15599 $as_echo "no
" >&6; }
15604 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15605 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15606 set dummy ${ncn_progname}; ac_word=$2
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15608 $as_echo_n "checking
for $ac_word...
" >&6; }
15609 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15610 $as_echo_n "(cached
) " >&6
15612 if test -n "$OBJDUMP_FOR_TARGET"; then
15613 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15615 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15616 for as_dir in $PATH
15619 test -z "$as_dir" && as_dir=.
15620 for ac_exec_ext in '' $ac_executable_extensions; do
15621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15622 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15623 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15632 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15633 if test -n "$OBJDUMP_FOR_TARGET"; then
15634 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OBJDUMP_FOR_TARGET" >&5
15635 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15638 $as_echo "no
" >&6; }
15643 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15647 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15649 if test $build = $target ; then
15650 OBJDUMP_FOR_TARGET="$2"
15652 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15655 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15659 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15665 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15666 if test -n "$with_build_time_tools"; then
15667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for otool
in $with_build_time_tools" >&5
15668 $as_echo_n "checking
for otool
in $with_build_time_tools...
" >&6; }
15669 if test -x $with_build_time_tools/otool; then
15670 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15671 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15672 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15673 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15676 $as_echo "no
" >&6; }
15678 elif test $build != $host && test $have_gcc_for_target = yes; then
15679 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15680 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15681 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15684 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15685 # Extract the first word of "otool
", so it can be a program name with args.
15686 set dummy otool; ac_word=$2
15687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15688 $as_echo_n "checking
for $ac_word...
" >&6; }
15689 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15690 $as_echo_n "(cached
) " >&6
15692 case $OTOOL_FOR_TARGET in
15694 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15698 for as_dir in $gcc_cv_tool_dirs
15701 test -z "$as_dir" && as_dir=.
15702 for ac_exec_ext in '' $ac_executable_extensions; do
15703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15704 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15705 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15715 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15716 if test -n "$OTOOL_FOR_TARGET"; then
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
15718 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15721 $as_echo "no
" >&6; }
15726 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15729 if test -n "$OTOOL_FOR_TARGET"; then
15730 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15731 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15732 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15735 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15736 for ncn_progname in otool; do
15737 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15738 set dummy ${ncn_progname}; ac_word=$2
15739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15740 $as_echo_n "checking
for $ac_word...
" >&6; }
15741 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15742 $as_echo_n "(cached
) " >&6
15744 if test -n "$OTOOL_FOR_TARGET"; then
15745 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15748 for as_dir in $PATH
15751 test -z "$as_dir" && as_dir=.
15752 for ac_exec_ext in '' $ac_executable_extensions; do
15753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15754 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15755 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15764 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15765 if test -n "$OTOOL_FOR_TARGET"; then
15766 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
15767 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15770 $as_echo "no
" >&6; }
15777 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15778 for ncn_progname in otool; do
15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
15780 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
15781 if test -x $with_build_time_tools/${ncn_progname}; then
15782 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
15784 $as_echo "yes" >&6; }
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15788 $as_echo "no
" >&6; }
15793 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15794 for ncn_progname in otool; do
15795 if test -n "$ncn_target_tool_prefix"; then
15796 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15797 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15799 $as_echo_n "checking
for $ac_word...
" >&6; }
15800 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15801 $as_echo_n "(cached
) " >&6
15803 if test -n "$OTOOL_FOR_TARGET"; then
15804 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15807 for as_dir in $PATH
15810 test -z "$as_dir" && as_dir=.
15811 for ac_exec_ext in '' $ac_executable_extensions; do
15812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15813 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15814 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15823 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15824 if test -n "$OTOOL_FOR_TARGET"; then
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
15826 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15828 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15829 $as_echo "no
" >&6; }
15834 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
15835 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15836 set dummy ${ncn_progname}; ac_word=$2
15837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15838 $as_echo_n "checking
for $ac_word...
" >&6; }
15839 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15840 $as_echo_n "(cached
) " >&6
15842 if test -n "$OTOOL_FOR_TARGET"; then
15843 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15845 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15846 for as_dir in $PATH
15849 test -z "$as_dir" && as_dir=.
15850 for ac_exec_ext in '' $ac_executable_extensions; do
15851 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15852 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15853 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15862 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15863 if test -n "$OTOOL_FOR_TARGET"; then
15864 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $OTOOL_FOR_TARGET" >&5
15865 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15868 $as_echo "no
" >&6; }
15873 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
15877 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
15879 if test $build = $target ; then
15880 OTOOL_FOR_TARGET="$2"
15882 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
15885 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
15889 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15895 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15896 if test -n "$with_build_time_tools"; then
15897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ranlib
in $with_build_time_tools" >&5
15898 $as_echo_n "checking
for ranlib
in $with_build_time_tools...
" >&6; }
15899 if test -x $with_build_time_tools/ranlib; then
15900 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
15901 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15902 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_RANLIB_FOR_TARGET" >&5
15903 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15906 $as_echo "no
" >&6; }
15908 elif test $build != $host && test $have_gcc_for_target = yes; then
15909 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
15910 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
15911 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15914 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15915 # Extract the first word of "ranlib
", so it can be a program name with args.
15916 set dummy ranlib; ac_word=$2
15917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15918 $as_echo_n "checking
for $ac_word...
" >&6; }
15919 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
15920 $as_echo_n "(cached
) " >&6
15922 case $RANLIB_FOR_TARGET in
15924 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
15927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15928 for as_dir in $gcc_cv_tool_dirs
15931 test -z "$as_dir" && as_dir=.
15932 for ac_exec_ext in '' $ac_executable_extensions; do
15933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15934 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15935 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15945 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
15946 if test -n "$RANLIB_FOR_TARGET"; then
15947 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
15948 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15950 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
15951 $as_echo "no
" >&6; }
15956 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
15959 if test -n "$RANLIB_FOR_TARGET"; then
15960 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
15961 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15962 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15965 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
15966 for ncn_progname in ranlib; do
15967 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15968 set dummy ${ncn_progname}; ac_word=$2
15969 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
15970 $as_echo_n "checking
for $ac_word...
" >&6; }
15971 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
15972 $as_echo_n "(cached
) " >&6
15974 if test -n "$RANLIB_FOR_TARGET"; then
15975 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
15977 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15978 for as_dir in $PATH
15981 test -z "$as_dir" && as_dir=.
15982 for ac_exec_ext in '' $ac_executable_extensions; do
15983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15984 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
15985 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
15994 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
15995 if test -n "$RANLIB_FOR_TARGET"; then
15996 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
15997 $as_echo "$RANLIB_FOR_TARGET" >&6; }
15999 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16000 $as_echo "no
" >&6; }
16007 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16008 for ncn_progname in ranlib; do
16009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16010 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16011 if test -x $with_build_time_tools/${ncn_progname}; then
16012 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16014 $as_echo "yes" >&6; }
16017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16018 $as_echo "no
" >&6; }
16023 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16024 for ncn_progname in ranlib; do
16025 if test -n "$ncn_target_tool_prefix"; then
16026 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16027 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16029 $as_echo_n "checking
for $ac_word...
" >&6; }
16030 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16031 $as_echo_n "(cached
) " >&6
16033 if test -n "$RANLIB_FOR_TARGET"; then
16034 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16037 for as_dir in $PATH
16040 test -z "$as_dir" && as_dir=.
16041 for ac_exec_ext in '' $ac_executable_extensions; do
16042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16043 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16044 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16053 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16054 if test -n "$RANLIB_FOR_TARGET"; then
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16056 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16058 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16059 $as_echo "no
" >&6; }
16064 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16065 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16066 set dummy ${ncn_progname}; ac_word=$2
16067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16068 $as_echo_n "checking
for $ac_word...
" >&6; }
16069 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16070 $as_echo_n "(cached
) " >&6
16072 if test -n "$RANLIB_FOR_TARGET"; then
16073 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16076 for as_dir in $PATH
16079 test -z "$as_dir" && as_dir=.
16080 for ac_exec_ext in '' $ac_executable_extensions; do
16081 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16082 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16083 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16092 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16093 if test -n "$RANLIB_FOR_TARGET"; then
16094 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $RANLIB_FOR_TARGET" >&5
16095 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16098 $as_echo "no
" >&6; }
16103 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16107 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16109 if test $build = $target ; then
16110 RANLIB_FOR_TARGET="$2"
16112 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16115 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16119 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16125 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16126 if test -n "$with_build_time_tools"; then
16127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for readelf
in $with_build_time_tools" >&5
16128 $as_echo_n "checking
for readelf
in $with_build_time_tools...
" >&6; }
16129 if test -x $with_build_time_tools/readelf; then
16130 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16131 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16132 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_READELF_FOR_TARGET" >&5
16133 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16136 $as_echo "no
" >&6; }
16138 elif test $build != $host && test $have_gcc_for_target = yes; then
16139 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16140 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16141 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16144 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16145 # Extract the first word of "readelf
", so it can be a program name with args.
16146 set dummy readelf; ac_word=$2
16147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16148 $as_echo_n "checking
for $ac_word...
" >&6; }
16149 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16150 $as_echo_n "(cached
) " >&6
16152 case $READELF_FOR_TARGET in
16154 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16158 for as_dir in $gcc_cv_tool_dirs
16161 test -z "$as_dir" && as_dir=.
16162 for ac_exec_ext in '' $ac_executable_extensions; do
16163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16164 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16165 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16175 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16176 if test -n "$READELF_FOR_TARGET"; then
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16178 $as_echo "$READELF_FOR_TARGET" >&6; }
16180 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16181 $as_echo "no
" >&6; }
16186 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16189 if test -n "$READELF_FOR_TARGET"; then
16190 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16191 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16192 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16195 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16196 for ncn_progname in readelf; do
16197 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16198 set dummy ${ncn_progname}; ac_word=$2
16199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16200 $as_echo_n "checking
for $ac_word...
" >&6; }
16201 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16202 $as_echo_n "(cached
) " >&6
16204 if test -n "$READELF_FOR_TARGET"; then
16205 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16208 for as_dir in $PATH
16211 test -z "$as_dir" && as_dir=.
16212 for ac_exec_ext in '' $ac_executable_extensions; do
16213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16214 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16215 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16224 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16225 if test -n "$READELF_FOR_TARGET"; then
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16227 $as_echo "$READELF_FOR_TARGET" >&6; }
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16230 $as_echo "no
" >&6; }
16237 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16238 for ncn_progname in readelf; do
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16240 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16241 if test -x $with_build_time_tools/${ncn_progname}; then
16242 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16244 $as_echo "yes" >&6; }
16247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16248 $as_echo "no
" >&6; }
16253 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16254 for ncn_progname in readelf; do
16255 if test -n "$ncn_target_tool_prefix"; then
16256 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16257 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16259 $as_echo_n "checking
for $ac_word...
" >&6; }
16260 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16261 $as_echo_n "(cached
) " >&6
16263 if test -n "$READELF_FOR_TARGET"; then
16264 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16266 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16267 for as_dir in $PATH
16270 test -z "$as_dir" && as_dir=.
16271 for ac_exec_ext in '' $ac_executable_extensions; do
16272 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16273 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16274 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16283 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16284 if test -n "$READELF_FOR_TARGET"; then
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16286 $as_echo "$READELF_FOR_TARGET" >&6; }
16288 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16289 $as_echo "no
" >&6; }
16294 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16295 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16296 set dummy ${ncn_progname}; ac_word=$2
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16298 $as_echo_n "checking
for $ac_word...
" >&6; }
16299 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16300 $as_echo_n "(cached
) " >&6
16302 if test -n "$READELF_FOR_TARGET"; then
16303 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16306 for as_dir in $PATH
16309 test -z "$as_dir" && as_dir=.
16310 for ac_exec_ext in '' $ac_executable_extensions; do
16311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16312 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16313 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16322 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16323 if test -n "$READELF_FOR_TARGET"; then
16324 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $READELF_FOR_TARGET" >&5
16325 $as_echo "$READELF_FOR_TARGET" >&6; }
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16328 $as_echo "no
" >&6; }
16333 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16337 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16339 if test $build = $target ; then
16340 READELF_FOR_TARGET="$2"
16342 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16345 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16349 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16355 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16356 if test -n "$with_build_time_tools"; then
16357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for strip
in $with_build_time_tools" >&5
16358 $as_echo_n "checking
for strip
in $with_build_time_tools...
" >&6; }
16359 if test -x $with_build_time_tools/strip; then
16360 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16361 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_STRIP_FOR_TARGET" >&5
16363 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16366 $as_echo "no
" >&6; }
16368 elif test $build != $host && test $have_gcc_for_target = yes; then
16369 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16370 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16371 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16374 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16375 # Extract the first word of "strip
", so it can be a program name with args.
16376 set dummy strip; ac_word=$2
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16378 $as_echo_n "checking
for $ac_word...
" >&6; }
16379 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16380 $as_echo_n "(cached
) " >&6
16382 case $STRIP_FOR_TARGET in
16384 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16388 for as_dir in $gcc_cv_tool_dirs
16391 test -z "$as_dir" && as_dir=.
16392 for ac_exec_ext in '' $ac_executable_extensions; do
16393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16394 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16395 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16405 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16406 if test -n "$STRIP_FOR_TARGET"; then
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16408 $as_echo "$STRIP_FOR_TARGET" >&6; }
16410 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16411 $as_echo "no
" >&6; }
16416 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16419 if test -n "$STRIP_FOR_TARGET"; then
16420 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16421 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16422 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16425 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16426 for ncn_progname in strip; do
16427 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16428 set dummy ${ncn_progname}; ac_word=$2
16429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16430 $as_echo_n "checking
for $ac_word...
" >&6; }
16431 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16432 $as_echo_n "(cached
) " >&6
16434 if test -n "$STRIP_FOR_TARGET"; then
16435 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16438 for as_dir in $PATH
16441 test -z "$as_dir" && as_dir=.
16442 for ac_exec_ext in '' $ac_executable_extensions; do
16443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16444 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16445 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16454 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16455 if test -n "$STRIP_FOR_TARGET"; then
16456 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16457 $as_echo "$STRIP_FOR_TARGET" >&6; }
16459 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16460 $as_echo "no
" >&6; }
16467 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16468 for ncn_progname in strip; do
16469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16470 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16471 if test -x $with_build_time_tools/${ncn_progname}; then
16472 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16474 $as_echo "yes" >&6; }
16477 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16478 $as_echo "no
" >&6; }
16483 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16484 for ncn_progname in strip; do
16485 if test -n "$ncn_target_tool_prefix"; then
16486 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16487 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16489 $as_echo_n "checking
for $ac_word...
" >&6; }
16490 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16491 $as_echo_n "(cached
) " >&6
16493 if test -n "$STRIP_FOR_TARGET"; then
16494 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16497 for as_dir in $PATH
16500 test -z "$as_dir" && as_dir=.
16501 for ac_exec_ext in '' $ac_executable_extensions; do
16502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16503 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16504 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16513 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16514 if test -n "$STRIP_FOR_TARGET"; then
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16516 $as_echo "$STRIP_FOR_TARGET" >&6; }
16518 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16519 $as_echo "no
" >&6; }
16524 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16525 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16526 set dummy ${ncn_progname}; ac_word=$2
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16528 $as_echo_n "checking
for $ac_word...
" >&6; }
16529 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16530 $as_echo_n "(cached
) " >&6
16532 if test -n "$STRIP_FOR_TARGET"; then
16533 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16536 for as_dir in $PATH
16539 test -z "$as_dir" && as_dir=.
16540 for ac_exec_ext in '' $ac_executable_extensions; do
16541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16542 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16543 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16552 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16553 if test -n "$STRIP_FOR_TARGET"; then
16554 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $STRIP_FOR_TARGET" >&5
16555 $as_echo "$STRIP_FOR_TARGET" >&6; }
16557 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16558 $as_echo "no
" >&6; }
16563 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16567 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16569 if test $build = $target ; then
16570 STRIP_FOR_TARGET="$2"
16572 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16575 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16579 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16585 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16586 if test -n "$with_build_time_tools"; then
16587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windres
in $with_build_time_tools" >&5
16588 $as_echo_n "checking
for windres
in $with_build_time_tools...
" >&6; }
16589 if test -x $with_build_time_tools/windres; then
16590 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16591 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16593 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16596 $as_echo "no
" >&6; }
16598 elif test $build != $host && test $have_gcc_for_target = yes; then
16599 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16600 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16601 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16604 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16605 # Extract the first word of "windres
", so it can be a program name with args.
16606 set dummy windres; ac_word=$2
16607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16608 $as_echo_n "checking
for $ac_word...
" >&6; }
16609 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16610 $as_echo_n "(cached
) " >&6
16612 case $WINDRES_FOR_TARGET in
16614 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16618 for as_dir in $gcc_cv_tool_dirs
16621 test -z "$as_dir" && as_dir=.
16622 for ac_exec_ext in '' $ac_executable_extensions; do
16623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16624 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16625 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16635 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16636 if test -n "$WINDRES_FOR_TARGET"; then
16637 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16638 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16641 $as_echo "no
" >&6; }
16646 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16649 if test -n "$WINDRES_FOR_TARGET"; then
16650 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16651 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16652 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16655 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16656 for ncn_progname in windres; do
16657 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16658 set dummy ${ncn_progname}; ac_word=$2
16659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16660 $as_echo_n "checking
for $ac_word...
" >&6; }
16661 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16662 $as_echo_n "(cached
) " >&6
16664 if test -n "$WINDRES_FOR_TARGET"; then
16665 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16668 for as_dir in $PATH
16671 test -z "$as_dir" && as_dir=.
16672 for ac_exec_ext in '' $ac_executable_extensions; do
16673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16674 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16675 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16684 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16685 if test -n "$WINDRES_FOR_TARGET"; then
16686 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16687 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16690 $as_echo "no
" >&6; }
16697 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16698 for ncn_progname in windres; do
16699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16700 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16701 if test -x $with_build_time_tools/${ncn_progname}; then
16702 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16704 $as_echo "yes" >&6; }
16707 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16708 $as_echo "no
" >&6; }
16713 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16714 for ncn_progname in windres; do
16715 if test -n "$ncn_target_tool_prefix"; then
16716 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16717 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16719 $as_echo_n "checking
for $ac_word...
" >&6; }
16720 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16721 $as_echo_n "(cached
) " >&6
16723 if test -n "$WINDRES_FOR_TARGET"; then
16724 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16727 for as_dir in $PATH
16730 test -z "$as_dir" && as_dir=.
16731 for ac_exec_ext in '' $ac_executable_extensions; do
16732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16733 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16734 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16743 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16744 if test -n "$WINDRES_FOR_TARGET"; then
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16746 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16748 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16749 $as_echo "no
" >&6; }
16754 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16755 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16756 set dummy ${ncn_progname}; ac_word=$2
16757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16758 $as_echo_n "checking
for $ac_word...
" >&6; }
16759 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16760 $as_echo_n "(cached
) " >&6
16762 if test -n "$WINDRES_FOR_TARGET"; then
16763 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16766 for as_dir in $PATH
16769 test -z "$as_dir" && as_dir=.
16770 for ac_exec_ext in '' $ac_executable_extensions; do
16771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16772 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16773 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16782 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16783 if test -n "$WINDRES_FOR_TARGET"; then
16784 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDRES_FOR_TARGET" >&5
16785 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16787 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16788 $as_echo "no
" >&6; }
16793 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16797 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16799 if test $build = $target ; then
16800 WINDRES_FOR_TARGET="$2"
16802 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16805 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
16809 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16815 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16816 if test -n "$with_build_time_tools"; then
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for windmc
in $with_build_time_tools" >&5
16818 $as_echo_n "checking
for windmc
in $with_build_time_tools...
" >&6; }
16819 if test -x $with_build_time_tools/windmc; then
16820 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
16821 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $ac_cv_path_WINDMC_FOR_TARGET" >&5
16823 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16826 $as_echo "no
" >&6; }
16828 elif test $build != $host && test $have_gcc_for_target = yes; then
16829 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
16830 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
16831 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16834 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16835 # Extract the first word of "windmc
", so it can be a program name with args.
16836 set dummy windmc; ac_word=$2
16837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16838 $as_echo_n "checking
for $ac_word...
" >&6; }
16839 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
16840 $as_echo_n "(cached
) " >&6
16842 case $WINDMC_FOR_TARGET in
16844 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
16847 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16848 for as_dir in $gcc_cv_tool_dirs
16851 test -z "$as_dir" && as_dir=.
16852 for ac_exec_ext in '' $ac_executable_extensions; do
16853 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16854 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16855 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16865 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
16866 if test -n "$WINDMC_FOR_TARGET"; then
16867 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
16868 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16870 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16871 $as_echo "no
" >&6; }
16876 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
16879 if test -n "$WINDMC_FOR_TARGET"; then
16880 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
16881 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16882 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16885 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16886 for ncn_progname in windmc; do
16887 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16888 set dummy ${ncn_progname}; ac_word=$2
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16890 $as_echo_n "checking
for $ac_word...
" >&6; }
16891 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16892 $as_echo_n "(cached
) " >&6
16894 if test -n "$WINDMC_FOR_TARGET"; then
16895 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16897 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16898 for as_dir in $PATH
16901 test -z "$as_dir" && as_dir=.
16902 for ac_exec_ext in '' $ac_executable_extensions; do
16903 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16904 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
16905 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16914 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16915 if test -n "$WINDMC_FOR_TARGET"; then
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
16917 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16920 $as_echo "no
" >&6; }
16927 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
16928 for ncn_progname in windmc; do
16929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for ${ncn_progname} in $with_build_time_tools" >&5
16930 $as_echo_n "checking
for ${ncn_progname} in $with_build_time_tools...
" >&6; }
16931 if test -x $with_build_time_tools/${ncn_progname}; then
16932 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: yes" >&5
16934 $as_echo "yes" >&6; }
16937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16938 $as_echo "no
" >&6; }
16943 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
16944 for ncn_progname in windmc; do
16945 if test -n "$ncn_target_tool_prefix"; then
16946 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16947 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16949 $as_echo_n "checking
for $ac_word...
" >&6; }
16950 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16951 $as_echo_n "(cached
) " >&6
16953 if test -n "$WINDMC_FOR_TARGET"; then
16954 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16956 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16957 for as_dir in $PATH
16960 test -z "$as_dir" && as_dir=.
16961 for ac_exec_ext in '' $ac_executable_extensions; do
16962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16963 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16964 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
16973 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
16974 if test -n "$WINDMC_FOR_TARGET"; then
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
16976 $as_echo "$WINDMC_FOR_TARGET" >&6; }
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
16979 $as_echo "no
" >&6; }
16984 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
16985 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16986 set dummy ${ncn_progname}; ac_word=$2
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking
for $ac_word" >&5
16988 $as_echo_n "checking
for $ac_word...
" >&6; }
16989 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
16990 $as_echo_n "(cached
) " >&6
16992 if test -n "$WINDMC_FOR_TARGET"; then
16993 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
16995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16996 for as_dir in $PATH
16999 test -z "$as_dir" && as_dir=.
17000 for ac_exec_ext in '' $ac_executable_extensions; do
17001 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17002 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17003 $as_echo "$as_me:${as_lineno-$LINENO}: found
$as_dir/$ac_word$ac_exec_ext" >&5
17012 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17013 if test -n "$WINDMC_FOR_TARGET"; then
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $WINDMC_FOR_TARGET" >&5
17015 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: no
" >&5
17018 $as_echo "no
" >&6; }
17023 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17027 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17029 if test $build = $target ; then
17030 WINDMC_FOR_TARGET="$2"
17032 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17035 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17039 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17043 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target
ar" >&5
17046 $as_echo_n "checking where to
find the target
ar...
" >&6; }
17047 if test "x
${build}" != "x
${host}" ; then
17048 if expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17049 # We already found the complete path
17050 ac_dir=`dirname $AR_FOR_TARGET`
17051 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17052 $as_echo "pre-installed
in $ac_dir" >&6; }
17054 # Canadian cross, just use what we found
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17056 $as_echo "pre-installed
" >&6; }
17060 case " ${configdirs} " in
17065 if test $ok = yes; then
17066 # An in-tree tool is available and we can use it
17067 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17069 $as_echo "just compiled
" >&6; }
17070 elif expr "x
$AR_FOR_TARGET" : "x
/" > /dev/null; then
17071 # We already found the complete path
17072 ac_dir=`dirname $AR_FOR_TARGET`
17073 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17074 $as_echo "pre-installed
in $ac_dir" >&6; }
17075 elif test "x
$target" = "x
$host"; then
17076 # We can use an host tool
17077 AR_FOR_TARGET='$(AR)'
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17079 $as_echo "host tool
" >&6; }
17081 # We need a cross tool
17082 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17083 $as_echo "pre-installed
" >&6; }
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target as
" >&5
17088 $as_echo_n "checking where to
find the target as...
" >&6; }
17089 if test "x
${build}" != "x
${host}" ; then
17090 if expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17091 # We already found the complete path
17092 ac_dir=`dirname $AS_FOR_TARGET`
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17094 $as_echo "pre-installed
in $ac_dir" >&6; }
17096 # Canadian cross, just use what we found
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17098 $as_echo "pre-installed
" >&6; }
17102 case " ${configdirs} " in
17107 if test $ok = yes; then
17108 # An in-tree tool is available and we can use it
17109 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17110 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17111 $as_echo "just compiled
" >&6; }
17112 elif expr "x
$AS_FOR_TARGET" : "x
/" > /dev/null; then
17113 # We already found the complete path
17114 ac_dir=`dirname $AS_FOR_TARGET`
17115 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17116 $as_echo "pre-installed
in $ac_dir" >&6; }
17117 elif test "x
$target" = "x
$host"; then
17118 # We can use an host tool
17119 AS_FOR_TARGET='$(AS)'
17120 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17121 $as_echo "host tool
" >&6; }
17123 # We need a cross tool
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17125 $as_echo "pre-installed
" >&6; }
17129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target cc
" >&5
17130 $as_echo_n "checking where to
find the target cc...
" >&6; }
17131 if test "x
${build}" != "x
${host}" ; then
17132 if expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17133 # We already found the complete path
17134 ac_dir=`dirname $CC_FOR_TARGET`
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17136 $as_echo "pre-installed
in $ac_dir" >&6; }
17138 # Canadian cross, just use what we found
17139 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17140 $as_echo "pre-installed
" >&6; }
17144 case " ${configdirs} " in
17149 if test $ok = yes; then
17150 # An in-tree tool is available and we can use it
17151 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17153 $as_echo "just compiled
" >&6; }
17154 elif expr "x
$CC_FOR_TARGET" : "x
/" > /dev/null; then
17155 # We already found the complete path
17156 ac_dir=`dirname $CC_FOR_TARGET`
17157 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17158 $as_echo "pre-installed
in $ac_dir" >&6; }
17159 elif test "x
$target" = "x
$host"; then
17160 # We can use an host tool
17161 CC_FOR_TARGET='$(CC)'
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17163 $as_echo "host tool
" >&6; }
17165 # We need a cross tool
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17167 $as_echo "pre-installed
" >&6; }
17171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++" >&5
17172 $as_echo_n "checking where to
find the target c
++...
" >&6; }
17173 if test "x
${build}" != "x
${host}" ; then
17174 if expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17175 # We already found the complete path
17176 ac_dir=`dirname $CXX_FOR_TARGET`
17177 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17178 $as_echo "pre-installed
in $ac_dir" >&6; }
17180 # Canadian cross, just use what we found
17181 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17182 $as_echo "pre-installed
" >&6; }
17186 case " ${configdirs} " in
17190 case ,${enable_languages}, in
17194 if test $ok = yes; then
17195 # An in-tree tool is available and we can use it
17196 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'
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17198 $as_echo "just compiled
" >&6; }
17199 elif expr "x
$CXX_FOR_TARGET" : "x
/" > /dev/null; then
17200 # We already found the complete path
17201 ac_dir=`dirname $CXX_FOR_TARGET`
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17203 $as_echo "pre-installed
in $ac_dir" >&6; }
17204 elif test "x
$target" = "x
$host"; then
17205 # We can use an host tool
17206 CXX_FOR_TARGET='$(CXX)'
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17208 $as_echo "host tool
" >&6; }
17210 # We need a cross tool
17211 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17212 $as_echo "pre-installed
" >&6; }
17216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target c
++ for libstdc
++" >&5
17217 $as_echo_n "checking where to
find the target c
++ for libstdc
++...
" >&6; }
17218 if test "x
${build}" != "x
${host}" ; then
17219 if expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17220 # We already found the complete path
17221 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17222 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17223 $as_echo "pre-installed
in $ac_dir" >&6; }
17225 # Canadian cross, just use what we found
17226 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17227 $as_echo "pre-installed
" >&6; }
17231 case " ${configdirs} " in
17235 case ,${enable_languages}, in
17239 if test $ok = yes; then
17240 # An in-tree tool is available and we can use it
17241 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'
17242 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17243 $as_echo "just compiled
" >&6; }
17244 elif expr "x
$RAW_CXX_FOR_TARGET" : "x
/" > /dev/null; then
17245 # We already found the complete path
17246 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17247 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17248 $as_echo "pre-installed
in $ac_dir" >&6; }
17249 elif test "x
$target" = "x
$host"; then
17250 # We can use an host tool
17251 RAW_CXX_FOR_TARGET='$(CXX)'
17252 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17253 $as_echo "host tool
" >&6; }
17255 # We need a cross tool
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17257 $as_echo "pre-installed
" >&6; }
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dlltool
" >&5
17262 $as_echo_n "checking where to
find the target dlltool...
" >&6; }
17263 if test "x
${build}" != "x
${host}" ; then
17264 if expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17265 # We already found the complete path
17266 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17267 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17268 $as_echo "pre-installed
in $ac_dir" >&6; }
17270 # Canadian cross, just use what we found
17271 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17272 $as_echo "pre-installed
" >&6; }
17276 case " ${configdirs} " in
17281 if test $ok = yes; then
17282 # An in-tree tool is available and we can use it
17283 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17284 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17285 $as_echo "just compiled
" >&6; }
17286 elif expr "x
$DLLTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17287 # We already found the complete path
17288 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17289 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17290 $as_echo "pre-installed
in $ac_dir" >&6; }
17291 elif test "x
$target" = "x
$host"; then
17292 # We can use an host tool
17293 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17295 $as_echo "host tool
" >&6; }
17297 # We need a cross tool
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17299 $as_echo "pre-installed
" >&6; }
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target dsymutil
" >&5
17304 $as_echo_n "checking where to
find the target dsymutil...
" >&6; }
17305 if test "x
${build}" != "x
${host}" ; then
17306 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17307 # We already found the complete path
17308 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17309 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17310 $as_echo "pre-installed
in $ac_dir" >&6; }
17312 # Canadian cross, just use what we found
17313 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17314 $as_echo "pre-installed
" >&6; }
17317 if expr "x
$DSYMUTIL_FOR_TARGET" : "x
/" > /dev/null; then
17318 # We already found the complete path
17319 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17320 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17321 $as_echo "pre-installed
in $ac_dir" >&6; }
17322 elif test "x
$target" = "x
$host"; then
17323 # We can use an host tool
17324 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17325 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17326 $as_echo "host tool
" >&6; }
17328 # We need a cross tool
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17330 $as_echo "pre-installed
" >&6; }
17334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gcc
" >&5
17335 $as_echo_n "checking where to
find the target gcc...
" >&6; }
17336 if test "x
${build}" != "x
${host}" ; then
17337 if expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17338 # We already found the complete path
17339 ac_dir=`dirname $GCC_FOR_TARGET`
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17341 $as_echo "pre-installed
in $ac_dir" >&6; }
17343 # Canadian cross, just use what we found
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17345 $as_echo "pre-installed
" >&6; }
17349 case " ${configdirs} " in
17354 if test $ok = yes; then
17355 # An in-tree tool is available and we can use it
17356 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17358 $as_echo "just compiled
" >&6; }
17359 elif expr "x
$GCC_FOR_TARGET" : "x
/" > /dev/null; then
17360 # We already found the complete path
17361 ac_dir=`dirname $GCC_FOR_TARGET`
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17363 $as_echo "pre-installed
in $ac_dir" >&6; }
17364 elif test "x
$target" = "x
$host"; then
17365 # We can use an host tool
17366 GCC_FOR_TARGET='$()'
17367 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17368 $as_echo "host tool
" >&6; }
17370 # We need a cross tool
17371 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17372 $as_echo "pre-installed
" >&6; }
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gfortran
" >&5
17377 $as_echo_n "checking where to
find the target gfortran...
" >&6; }
17378 if test "x
${build}" != "x
${host}" ; then
17379 if expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17380 # We already found the complete path
17381 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17383 $as_echo "pre-installed
in $ac_dir" >&6; }
17385 # Canadian cross, just use what we found
17386 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17387 $as_echo "pre-installed
" >&6; }
17391 case " ${configdirs} " in
17395 case ,${enable_languages}, in
17399 if test $ok = yes; then
17400 # An in-tree tool is available and we can use it
17401 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17403 $as_echo "just compiled
" >&6; }
17404 elif expr "x
$GFORTRAN_FOR_TARGET" : "x
/" > /dev/null; then
17405 # We already found the complete path
17406 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17407 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17408 $as_echo "pre-installed
in $ac_dir" >&6; }
17409 elif test "x
$target" = "x
$host"; then
17410 # We can use an host tool
17411 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17413 $as_echo "host tool
" >&6; }
17415 # We need a cross tool
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17417 $as_echo "pre-installed
" >&6; }
17421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gccgo
" >&5
17422 $as_echo_n "checking where to
find the target gccgo...
" >&6; }
17423 if test "x
${build}" != "x
${host}" ; then
17424 if expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17425 # We already found the complete path
17426 ac_dir=`dirname $GOC_FOR_TARGET`
17427 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17428 $as_echo "pre-installed
in $ac_dir" >&6; }
17430 # Canadian cross, just use what we found
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17432 $as_echo "pre-installed
" >&6; }
17436 case " ${configdirs} " in
17440 case ,${enable_languages}, in
17444 if test $ok = yes; then
17445 # An in-tree tool is available and we can use it
17446 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17448 $as_echo "just compiled
" >&6; }
17449 elif expr "x
$GOC_FOR_TARGET" : "x
/" > /dev/null; then
17450 # We already found the complete path
17451 ac_dir=`dirname $GOC_FOR_TARGET`
17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17453 $as_echo "pre-installed
in $ac_dir" >&6; }
17454 elif test "x
$target" = "x
$host"; then
17455 # We can use an host tool
17456 GOC_FOR_TARGET='$(GOC)'
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17458 $as_echo "host tool
" >&6; }
17460 # We need a cross tool
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17462 $as_echo "pre-installed
" >&6; }
17466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target gdc
" >&5
17467 $as_echo_n "checking where to
find the target gdc...
" >&6; }
17468 if test "x
${build}" != "x
${host}" ; then
17469 if expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17470 # We already found the complete path
17471 ac_dir=`dirname $GDC_FOR_TARGET`
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17473 $as_echo "pre-installed
in $ac_dir" >&6; }
17475 # Canadian cross, just use what we found
17476 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17477 $as_echo "pre-installed
" >&6; }
17481 case " ${configdirs} " in
17485 case ,${enable_languages}, in
17489 if test $ok = yes; then
17490 # An in-tree tool is available and we can use it
17491 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17492 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17493 $as_echo "just compiled
" >&6; }
17494 elif expr "x
$GDC_FOR_TARGET" : "x
/" > /dev/null; then
17495 # We already found the complete path
17496 ac_dir=`dirname $GDC_FOR_TARGET`
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17498 $as_echo "pre-installed
in $ac_dir" >&6; }
17499 elif test "x
$target" = "x
$host"; then
17500 # We can use an host tool
17501 GDC_FOR_TARGET='$(GDC)'
17502 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17503 $as_echo "host tool
" >&6; }
17505 # We need a cross tool
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17507 $as_echo "pre-installed
" >&6; }
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ld
" >&5
17512 $as_echo_n "checking where to
find the target ld...
" >&6; }
17513 if test "x
${build}" != "x
${host}" ; then
17514 if expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17515 # We already found the complete path
17516 ac_dir=`dirname $LD_FOR_TARGET`
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17518 $as_echo "pre-installed
in $ac_dir" >&6; }
17520 # Canadian cross, just use what we found
17521 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17522 $as_echo "pre-installed
" >&6; }
17526 case " ${configdirs} " in
17531 if test $ok = yes; then
17532 # An in-tree tool is available and we can use it
17533 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17534 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17535 $as_echo "just compiled
" >&6; }
17536 elif expr "x
$LD_FOR_TARGET" : "x
/" > /dev/null; then
17537 # We already found the complete path
17538 ac_dir=`dirname $LD_FOR_TARGET`
17539 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17540 $as_echo "pre-installed
in $ac_dir" >&6; }
17541 elif test "x
$target" = "x
$host"; then
17542 # We can use an host tool
17543 LD_FOR_TARGET='$(LD)'
17544 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17545 $as_echo "host tool
" >&6; }
17547 # We need a cross tool
17548 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17549 $as_echo "pre-installed
" >&6; }
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target lipo
" >&5
17554 $as_echo_n "checking where to
find the target lipo...
" >&6; }
17555 if test "x
${build}" != "x
${host}" ; then
17556 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
17557 # We already found the complete path
17558 ac_dir=`dirname $LIPO_FOR_TARGET`
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17560 $as_echo "pre-installed
in $ac_dir" >&6; }
17562 # Canadian cross, just use what we found
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17564 $as_echo "pre-installed
" >&6; }
17567 if expr "x
$LIPO_FOR_TARGET" : "x
/" > /dev/null; then
17568 # We already found the complete path
17569 ac_dir=`dirname $LIPO_FOR_TARGET`
17570 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17571 $as_echo "pre-installed
in $ac_dir" >&6; }
17572 elif test "x
$target" = "x
$host"; then
17573 # We can use an host tool
17574 LIPO_FOR_TARGET='$(LIPO)'
17575 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17576 $as_echo "host tool
" >&6; }
17578 # We need a cross tool
17579 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17580 $as_echo "pre-installed
" >&6; }
17584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target nm
" >&5
17585 $as_echo_n "checking where to
find the target nm...
" >&6; }
17586 if test "x
${build}" != "x
${host}" ; then
17587 if expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
17588 # We already found the complete path
17589 ac_dir=`dirname $NM_FOR_TARGET`
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17591 $as_echo "pre-installed
in $ac_dir" >&6; }
17593 # Canadian cross, just use what we found
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17595 $as_echo "pre-installed
" >&6; }
17599 case " ${configdirs} " in
17604 if test $ok = yes; then
17605 # An in-tree tool is available and we can use it
17606 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17607 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17608 $as_echo "just compiled
" >&6; }
17609 elif expr "x
$NM_FOR_TARGET" : "x
/" > /dev/null; then
17610 # We already found the complete path
17611 ac_dir=`dirname $NM_FOR_TARGET`
17612 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17613 $as_echo "pre-installed
in $ac_dir" >&6; }
17614 elif test "x
$target" = "x
$host"; then
17615 # We can use an host tool
17616 NM_FOR_TARGET='$(NM)'
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17618 $as_echo "host tool
" >&6; }
17620 # We need a cross tool
17621 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17622 $as_echo "pre-installed
" >&6; }
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objcopy
" >&5
17627 $as_echo_n "checking where to
find the target objcopy...
" >&6; }
17628 if test "x
${build}" != "x
${host}" ; then
17629 if expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
17630 # We already found the complete path
17631 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17632 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17633 $as_echo "pre-installed
in $ac_dir" >&6; }
17635 # Canadian cross, just use what we found
17636 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17637 $as_echo "pre-installed
" >&6; }
17641 case " ${configdirs} " in
17646 if test $ok = yes; then
17647 # An in-tree tool is available and we can use it
17648 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17650 $as_echo "just compiled
" >&6; }
17651 elif expr "x
$OBJCOPY_FOR_TARGET" : "x
/" > /dev/null; then
17652 # We already found the complete path
17653 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17655 $as_echo "pre-installed
in $ac_dir" >&6; }
17656 elif test "x
$target" = "x
$host"; then
17657 # We can use an host tool
17658 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17659 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17660 $as_echo "host tool
" >&6; }
17662 # We need a cross tool
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17664 $as_echo "pre-installed
" >&6; }
17668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target objdump
" >&5
17669 $as_echo_n "checking where to
find the target objdump...
" >&6; }
17670 if test "x
${build}" != "x
${host}" ; then
17671 if expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
17672 # We already found the complete path
17673 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17675 $as_echo "pre-installed
in $ac_dir" >&6; }
17677 # Canadian cross, just use what we found
17678 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17679 $as_echo "pre-installed
" >&6; }
17683 case " ${configdirs} " in
17688 if test $ok = yes; then
17689 # An in-tree tool is available and we can use it
17690 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17691 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17692 $as_echo "just compiled
" >&6; }
17693 elif expr "x
$OBJDUMP_FOR_TARGET" : "x
/" > /dev/null; then
17694 # We already found the complete path
17695 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17696 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17697 $as_echo "pre-installed
in $ac_dir" >&6; }
17698 elif test "x
$target" = "x
$host"; then
17699 # We can use an host tool
17700 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17701 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17702 $as_echo "host tool
" >&6; }
17704 # We need a cross tool
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17706 $as_echo "pre-installed
" >&6; }
17710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target otool
" >&5
17711 $as_echo_n "checking where to
find the target otool...
" >&6; }
17712 if test "x
${build}" != "x
${host}" ; then
17713 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17714 # We already found the complete path
17715 ac_dir=`dirname $OTOOL_FOR_TARGET`
17716 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17717 $as_echo "pre-installed
in $ac_dir" >&6; }
17719 # Canadian cross, just use what we found
17720 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17721 $as_echo "pre-installed
" >&6; }
17724 if expr "x
$OTOOL_FOR_TARGET" : "x
/" > /dev/null; then
17725 # We already found the complete path
17726 ac_dir=`dirname $OTOOL_FOR_TARGET`
17727 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17728 $as_echo "pre-installed
in $ac_dir" >&6; }
17729 elif test "x
$target" = "x
$host"; then
17730 # We can use an host tool
17731 OTOOL_FOR_TARGET='$(OTOOL)'
17732 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17733 $as_echo "host tool
" >&6; }
17735 # We need a cross tool
17736 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17737 $as_echo "pre-installed
" >&6; }
17741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target ranlib
" >&5
17742 $as_echo_n "checking where to
find the target ranlib...
" >&6; }
17743 if test "x
${build}" != "x
${host}" ; then
17744 if expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
17745 # We already found the complete path
17746 ac_dir=`dirname $RANLIB_FOR_TARGET`
17747 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17748 $as_echo "pre-installed
in $ac_dir" >&6; }
17750 # Canadian cross, just use what we found
17751 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17752 $as_echo "pre-installed
" >&6; }
17756 case " ${configdirs} " in
17761 if test $ok = yes; then
17762 # An in-tree tool is available and we can use it
17763 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17765 $as_echo "just compiled
" >&6; }
17766 elif expr "x
$RANLIB_FOR_TARGET" : "x
/" > /dev/null; then
17767 # We already found the complete path
17768 ac_dir=`dirname $RANLIB_FOR_TARGET`
17769 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17770 $as_echo "pre-installed
in $ac_dir" >&6; }
17771 elif test "x
$target" = "x
$host"; then
17772 # We can use an host tool
17773 RANLIB_FOR_TARGET='$(RANLIB)'
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17775 $as_echo "host tool
" >&6; }
17777 # We need a cross tool
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17779 $as_echo "pre-installed
" >&6; }
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target readelf
" >&5
17784 $as_echo_n "checking where to
find the target readelf...
" >&6; }
17785 if test "x
${build}" != "x
${host}" ; then
17786 if expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
17787 # We already found the complete path
17788 ac_dir=`dirname $READELF_FOR_TARGET`
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17790 $as_echo "pre-installed
in $ac_dir" >&6; }
17792 # Canadian cross, just use what we found
17793 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17794 $as_echo "pre-installed
" >&6; }
17798 case " ${configdirs} " in
17803 if test $ok = yes; then
17804 # An in-tree tool is available and we can use it
17805 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17806 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17807 $as_echo "just compiled
" >&6; }
17808 elif expr "x
$READELF_FOR_TARGET" : "x
/" > /dev/null; then
17809 # We already found the complete path
17810 ac_dir=`dirname $READELF_FOR_TARGET`
17811 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17812 $as_echo "pre-installed
in $ac_dir" >&6; }
17813 elif test "x
$target" = "x
$host"; then
17814 # We can use an host tool
17815 READELF_FOR_TARGET='$(READELF)'
17816 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17817 $as_echo "host tool
" >&6; }
17819 # We need a cross tool
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17821 $as_echo "pre-installed
" >&6; }
17825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target strip
" >&5
17826 $as_echo_n "checking where to
find the target strip...
" >&6; }
17827 if test "x
${build}" != "x
${host}" ; then
17828 if expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
17829 # We already found the complete path
17830 ac_dir=`dirname $STRIP_FOR_TARGET`
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17832 $as_echo "pre-installed
in $ac_dir" >&6; }
17834 # Canadian cross, just use what we found
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17836 $as_echo "pre-installed
" >&6; }
17840 case " ${configdirs} " in
17845 if test $ok = yes; then
17846 # An in-tree tool is available and we can use it
17847 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17849 $as_echo "just compiled
" >&6; }
17850 elif expr "x
$STRIP_FOR_TARGET" : "x
/" > /dev/null; then
17851 # We already found the complete path
17852 ac_dir=`dirname $STRIP_FOR_TARGET`
17853 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17854 $as_echo "pre-installed
in $ac_dir" >&6; }
17855 elif test "x
$target" = "x
$host"; then
17856 # We can use an host tool
17857 STRIP_FOR_TARGET='$(STRIP)'
17858 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17859 $as_echo "host tool
" >&6; }
17861 # We need a cross tool
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17863 $as_echo "pre-installed
" >&6; }
17867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windres
" >&5
17868 $as_echo_n "checking where to
find the target windres...
" >&6; }
17869 if test "x
${build}" != "x
${host}" ; then
17870 if expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
17871 # We already found the complete path
17872 ac_dir=`dirname $WINDRES_FOR_TARGET`
17873 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17874 $as_echo "pre-installed
in $ac_dir" >&6; }
17876 # Canadian cross, just use what we found
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17878 $as_echo "pre-installed
" >&6; }
17882 case " ${configdirs} " in
17887 if test $ok = yes; then
17888 # An in-tree tool is available and we can use it
17889 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17891 $as_echo "just compiled
" >&6; }
17892 elif expr "x
$WINDRES_FOR_TARGET" : "x
/" > /dev/null; then
17893 # We already found the complete path
17894 ac_dir=`dirname $WINDRES_FOR_TARGET`
17895 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17896 $as_echo "pre-installed
in $ac_dir" >&6; }
17897 elif test "x
$target" = "x
$host"; then
17898 # We can use an host tool
17899 WINDRES_FOR_TARGET='$(WINDRES)'
17900 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17901 $as_echo "host tool
" >&6; }
17903 # We need a cross tool
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17905 $as_echo "pre-installed
" >&6; }
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to
find the target windmc
" >&5
17910 $as_echo_n "checking where to
find the target windmc...
" >&6; }
17911 if test "x
${build}" != "x
${host}" ; then
17912 if expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
17913 # We already found the complete path
17914 ac_dir=`dirname $WINDMC_FOR_TARGET`
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17916 $as_echo "pre-installed
in $ac_dir" >&6; }
17918 # Canadian cross, just use what we found
17919 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17920 $as_echo "pre-installed
" >&6; }
17924 case " ${configdirs} " in
17929 if test $ok = yes; then
17930 # An in-tree tool is available and we can use it
17931 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: just compiled
" >&5
17933 $as_echo "just compiled
" >&6; }
17934 elif expr "x
$WINDMC_FOR_TARGET" : "x
/" > /dev/null; then
17935 # We already found the complete path
17936 ac_dir=`dirname $WINDMC_FOR_TARGET`
17937 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
in $ac_dir" >&5
17938 $as_echo "pre-installed
in $ac_dir" >&6; }
17939 elif test "x
$target" = "x
$host"; then
17940 # We can use an host tool
17941 WINDMC_FOR_TARGET='$(WINDMC)'
17942 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: host tool
" >&5
17943 $as_echo "host tool
" >&6; }
17945 # We need a cross tool
17946 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: pre-installed
" >&5
17947 $as_echo "pre-installed
" >&6; }
17955 # Certain tools may need extra flags.
17956 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
17957 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
17958 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
17960 # When building target libraries, except in a Canadian cross, we use
17961 # the same toolchain as the compiler we just built.
17962 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
17963 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
17964 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
17965 if test $host = $build; then
17966 case " $configdirs " in
17968 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
17969 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
17970 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
17979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to
enable maintainer-specific portions of Makefiles
" >&5
17980 $as_echo_n "checking whether to
enable maintainer-specific portions of Makefiles...
" >&6; }
17981 # Check whether --enable-maintainer-mode was given.
17982 if test "${enable_maintainer_mode+set}" = set; then :
17983 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
17985 USE_MAINTAINER_MODE=no
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: result
: $USE_MAINTAINER_MODE" >&5
17989 $as_echo "$USE_MAINTAINER_MODE" >&6; }
17992 if test "$USE_MAINTAINER_MODE" = yes; then
17993 MAINTAINER_MODE_TRUE=
17994 MAINTAINER_MODE_FALSE='#'
17996 MAINTAINER_MODE_TRUE='#'
17997 MAINTAINER_MODE_FALSE=
17999 MAINT=$MAINTAINER_MODE_TRUE
18001 # ---------------------
18002 # GCC bootstrap support
18003 # ---------------------
18005 # Stage specific cflags for build.
18010 yes) stage1_cflags="-g -Wa,-J" ;;
18011 *) stage1_cflags="-g -J" ;;
18017 # Enable --enable-checking in stage1 of the compiler.
18018 # Check whether --enable-stage1-checking was given.
18019 if test "${enable_stage1_checking+set}" = set; then :
18020 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18022 if test "x
$enable_checking" = xno || test "x
$enable_checking" = x; then
18023 # For --disable-checking or implicit --enable-checking=release, avoid
18024 # setting --enable-checking=gc in the default stage1 checking for LTO
18025 # bootstraps. See PR62077.
18026 case $BUILD_CONFIG in
18028 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18030 stage1_checking=--enable-checking=yes,types;;
18032 if test "x
$enable_checking" = x && \
18033 test -d ${srcdir}/gcc && \
18034 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18035 stage1_checking=--enable-checking=yes,types,extra
18038 stage1_checking=--enable-checking=$enable_checking,types
18044 # Enable -Werror in bootstrap stage2 and later.
18045 # Check whether --enable-werror was given.
18046 if test "${enable_werror+set}" = set; then :
18047 enableval=$enable_werror;
18048 case ${enable_werror} in
18049 yes) stage2_werror_flag="--enable-werror-always" ;;
18050 *) stage2_werror_flag="" ;;
18055 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18056 case $BUILD_CONFIG in
18058 stage2_werror_flag="--enable-werror-always" ;;
18060 stage2_werror_flag="--enable-werror-always" ;;
18069 # Specify what files to not compare during bootstrap.
18071 compare_exclusions="gcc
/cc
*-checksum\$
(objext
) | gcc
/ada
/*tools
/*"
18073 hppa*64*-*-hpux*) ;;
18074 hppa*-*-hpux*) compare_exclusions="$compare_exclusions |
*/libgcc
/lib2funcs
* | gcc
/function-tests.o
" ;;
18075 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions |
*libgomp
*\$
(objext
)" ;;
18079 ac_config_files="$ac_config_files Makefile
"
18081 cat >confcache <<\_ACEOF
18082 # This file is a shell script that caches the results of configure
18083 # tests run on this system so they can be shared between configure
18084 # scripts and configure runs, see configure's option --config-cache.
18085 # It is not useful on other systems. If it contains results you don't
18086 # want to keep, you may remove or edit it.
18088 # config.status only pays attention to the cache file if you give it
18089 # the --recheck option to rerun configure.
18091 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18092 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18093 # following values.
18097 # The following way of writing the cache mishandles newlines in values,
18098 # but we know of no workaround that is simple, portable, and efficient.
18099 # So, we kill variables containing newlines.
18100 # Ultrix sh set writes to stderr and can't be redirected directly,
18101 # and sets the high bit in the cache file unless we assign to the vars.
18103 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18104 eval ac_val=\$$ac_var
18108 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: cache variable
$ac_var contains a newline
" >&5
18109 $as_echo "$as_me: WARNING
: cache variable
$ac_var contains a newline
" >&2;} ;;
18112 _ | IFS | as_nl) ;; #(
18113 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18114 *) { eval $ac_var=; unset $ac_var;} ;;
18120 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18121 *${as_nl}ac_space=\ *)
18122 # `set' does not quote correctly, so add quotes: double-quote
18123 # substitution turns \\\\ into \\, and sed turns \\ into \.
18126 s
/^
\\([_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*\\)=\\(.
*\\)/\\1='\\2'/p
"
18129 # `set' quotes correctly as required by POSIX, so do not add quotes.
18130 sed -n "/^
[_
$as_cr_alnum]*_cv_
[_
$as_cr_alnum]*=/p
"
18139 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18141 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18143 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18144 if test -w "$cache_file"; then
18145 if test "x
$cache_file" != "x
/dev
/null
"; then
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache
$cache_file" >&5
18147 $as_echo "$as_me: updating cache
$cache_file" >&6;}
18148 if test ! -f "$cache_file" || test -h "$cache_file"; then
18149 cat confcache >"$cache_file"
18151 case $cache_file in #(
18153 mv -f confcache "$cache_file"$$ &&
18154 mv -f "$cache_file"$$ "$cache_file" ;; #(
18156 mv -f confcache "$cache_file" ;;
18161 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache
$cache_file" >&5
18162 $as_echo "$as_me: not updating unwritable cache
$cache_file" >&6;}
18167 test "x
$prefix" = xNONE && prefix=$ac_default_prefix
18168 # Let make expand exec_prefix.
18169 test "x
$exec_prefix" = xNONE && exec_prefix='${prefix}'
18171 # Transform confdefs.h into DEFS.
18172 # Protect against shell expansion while executing Makefile rules.
18173 # Protect against Makefile macro expansion.
18175 # If the first sed substitution is executed (which looks for macros that
18176 # take arguments), then branch to the quote section. Otherwise,
18177 # look for a macro that doesn't take arguments.
18187 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18189 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18193 s/[ `~#$^&*(){}\\|;'\''"<>?
]/\\&/g
18206 DEFS=`sed -n "$ac_script" confdefs.h`
18212 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18213 # 1. Remove the extension, and $U if already installed.
18214 ac_script='s
/\
$U\.
/.
/;s
/\.o$
//;s
/\.obj$
//'
18215 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18216 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18217 # will be set to the directory where LIBOBJS objects are built.
18218 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18219 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo
'
18221 LIBOBJS=$ac_libobjs
18223 LTLIBOBJS=$ac_ltlibobjs
18227 : "${CONFIG_STATUS=./config.status}"
18229 ac_clean_files_save=$ac_clean_files
18230 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18231 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18232 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18234 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18236 # Generated by $as_me.
18237 # Run this file to recreate the current configuration.
18238 # Compiler output produced by configure, useful for debugging
18239 # configure, is in config.log if it exists.
18242 ac_cs_recheck=false
18245 SHELL=\${CONFIG_SHELL-$SHELL}
18248 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18249 ## -------------------- ##
18250 ## M4sh Initialization. ##
18251 ## -------------------- ##
18253 # Be more Bourne compatible
18254 DUALCASE=1; export DUALCASE # for MKS sh
18255 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18258 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18259 # is contrary to our usage. Disable this feature.
18260 alias -g '${1+"$@"}'='"$@"'
18261 setopt NO_GLOB_SUBST
18263 case `(set -o) 2>/dev/null` in #(
18275 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18276 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18277 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo
18278 as_echo
=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18279 # Prefer a ksh shell builtin over an external printf program on Solaris,
18280 # but without wasting forks for bash or zsh.
18281 if test -z "$BASH_VERSION$ZSH_VERSION" \
18282 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18283 as_echo
='print -r --'
18284 as_echo_n
='print -rn --'
18285 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev
/null
; then
18286 as_echo
='printf %s\n'
18287 as_echo_n
='printf %s'
18289 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18290 as_echo_body
='eval /usr/ucb/echo -n "$1$as_nl"'
18291 as_echo_n
='/usr/ucb/echo -n'
18293 as_echo_body
='eval expr "X$1" : "X\\(.*\\)"'
18294 as_echo_n_body
='eval
18298 expr "X$arg" : "X\\(.*\\)$as_nl";
18299 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18301 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18303 export as_echo_n_body
18304 as_echo_n
='sh -c $as_echo_n_body as_echo'
18306 export as_echo_body
18307 as_echo
='sh -c $as_echo_body as_echo'
18310 # The user is always right.
18311 if test "${PATH_SEPARATOR+set}" != set; then
18313 (PATH
='/bin;/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 && {
18314 (PATH
='/bin:/bin'; FPATH
=$PATH; sh
-c :) >/dev
/null
2>&1 ||
18321 # We need space, tab and new line, in precisely that order. Quoting is
18322 # there to prevent editors from complaining about space-tab.
18323 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18324 # splitting by setting IFS to empty value.)
18327 # Find who we are. Look in the path if we contain no directory separator.
18330 *[\\/]* ) as_myself
=$0 ;;
18331 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
18332 for as_dir
in $PATH
18335 test -z "$as_dir" && as_dir
=.
18336 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
18342 # We did not find ourselves, most probably we were run as `sh COMMAND'
18343 # in which case we are not to be found in the path.
18344 if test "x$as_myself" = x
; then
18347 if test ! -f "$as_myself"; then
18348 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18352 # Unset variables that we do not need and which cause bugs (e.g. in
18353 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18354 # suppresses any "Segmentation fault" message there. '((' could
18355 # trigger a bug in pdksh 5.2.14.
18356 for as_var
in BASH_ENV ENV MAIL MAILPATH
18357 do eval test x\
${$as_var+set} = xset \
18358 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
18371 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
18374 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18375 # ----------------------------------------
18376 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18377 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18378 # script with STATUS, using 1 if that was 0.
18381 as_status
=$1; test $as_status -eq 0 && as_status
=1
18383 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
18384 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18386 $as_echo "$as_me: error: $2" >&2
18387 as_fn_exit
$as_status
18391 # as_fn_set_status STATUS
18392 # -----------------------
18393 # Set $? to STATUS, without forking.
18394 as_fn_set_status
()
18397 } # as_fn_set_status
18399 # as_fn_exit STATUS
18400 # -----------------
18401 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18405 as_fn_set_status
$1
18411 # Portably unset VAR.
18414 { eval $1=; unset $1;}
18416 as_unset
=as_fn_unset
18417 # as_fn_append VAR VALUE
18418 # ----------------------
18419 # Append the text in VALUE to the end of the definition contained in VAR. Take
18420 # advantage of any shell optimizations that allow amortized linear growth over
18421 # repeated appends, instead of the typical quadratic growth present in naive
18423 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
18424 eval 'as_fn_append ()
18435 # as_fn_arith ARG...
18436 # ------------------
18437 # Perform arithmetic evaluation on the ARGs, and store the result in the
18438 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18439 # must be portable across $(()) and expr.
18440 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
18441 eval 'as_fn_arith ()
18448 as_val
=`expr "$@" || test $? -eq 1`
18453 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
18454 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
18460 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18461 as_basename
=basename
18466 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
18472 as_me
=`$as_basename -- "$0" ||
18473 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18474 X"$0" : 'X\(//\)$' \| \
18475 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18477 sed '/^.*\/\([^/][^/]*\)\/*$/{
18491 # Avoid depending upon Character Ranges.
18492 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
18493 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18494 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
18495 as_cr_digits
='0123456789'
18496 as_cr_alnum
=$as_cr_Letters$as_cr_digits
18498 ECHO_C
= ECHO_N
= ECHO_T
=
18499 case `echo -n x` in #(((((
18501 case `echo 'xy\c'` in
18502 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
18504 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
18511 rm -f conf$$ conf$$.exe conf$$.
file
18512 if test -d conf$$.dir
; then
18513 rm -f conf$$.dir
/conf$$.
file
18516 mkdir conf$$.dir
2>/dev
/null
18518 if (echo >conf$$.
file) 2>/dev
/null
; then
18519 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
18521 # ... but there are two gotchas:
18522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18524 # In both cases, we have to default to `cp -pR'.
18525 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
18527 elif ln conf$$.
file conf$$
2>/dev
/null
; then
18535 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
18536 rmdir conf$$.dir
2>/dev
/null
18541 # Create "$as_dir" as a directory, including parents if necessary.
18546 -*) as_dir
=.
/$as_dir;;
18548 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
18552 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18553 *) as_qdir
=$as_dir;;
18555 as_dirs
="'$as_qdir' $as_dirs"
18556 as_dir
=`$as_dirname -- "$as_dir" ||
18557 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18558 X"$as_dir" : 'X\(//\)[^/]' \| \
18559 X"$as_dir" : 'X\(//\)$' \| \
18560 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18561 $as_echo X"$as_dir" |
18562 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18566 /^X\(\/\/\)[^/].*/{
18579 test -d "$as_dir" && break
18581 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
18582 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
18586 if mkdir
-p .
2>/dev
/null
; then
18587 as_mkdir_p
='mkdir -p "$as_dir"'
18589 test -d .
/-p && rmdir .
/-p
18594 # as_fn_executable_p FILE
18595 # -----------------------
18596 # Test if FILE is an executable regular file.
18597 as_fn_executable_p
()
18599 test -f "$1" && test -x "$1"
18600 } # as_fn_executable_p
18601 as_test_x
='test -x'
18602 as_executable_p
=as_fn_executable_p
18604 # Sed expression to map a string onto a valid CPP name.
18605 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18607 # Sed expression to map a string onto a valid variable name.
18608 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18612 ## ----------------------------------- ##
18613 ## Main body of $CONFIG_STATUS script. ##
18614 ## ----------------------------------- ##
18616 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
18618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18619 # Save the log message, to keep $0 and so on meaningful, and to
18620 # report actual input values of CONFIG_FILES etc. instead of their
18621 # values after options handling.
18623 This file was extended by $as_me, which was
18624 generated by GNU Autoconf 2.69. Invocation command line was
18626 CONFIG_FILES = $CONFIG_FILES
18627 CONFIG_HEADERS = $CONFIG_HEADERS
18628 CONFIG_LINKS = $CONFIG_LINKS
18629 CONFIG_COMMANDS = $CONFIG_COMMANDS
18632 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18637 case $ac_config_files in *"
18638 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
18643 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18644 # Files that config.status was made for.
18645 config_files="$ac_config_files"
18649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18651 \`$as_me' instantiates files and other configuration actions
18652 from templates according to the current configuration. Unless the files
18653 and actions are specified as TAGs, all are instantiated by default.
18655 Usage: $0 [OPTION]... [TAG]...
18657 -h, --help print this help, then exit
18658 -V, --version print version number and configuration settings, then exit
18659 --config print configuration, then exit
18660 -q, --quiet, --silent
18661 do not print progress messages
18662 -d, --debug don't remove temporary files
18663 --recheck update $as_me by reconfiguring in the same conditions
18664 --file=FILE[:TEMPLATE]
18665 instantiate the configuration file FILE
18667 Configuration files:
18670 Report bugs to the package provider."
18673 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18674 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18677 configured by $0, generated by GNU Autoconf 2.69,
18678 with options \\"\$ac_cs_config\\"
18680 Copyright (C) 2012 Free Software Foundation, Inc.
18681 This config.status script is free software; the Free Software Foundation
18682 gives unlimited permission to copy, distribute and modify it."
18688 test -n "\$AWK" || AWK=awk
18691 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18692 # The default lists apply if the user does not specify any file.
18698 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18699 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
18703 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
18715 # Handling of the options.
18716 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
18718 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
18719 $as_echo "$ac_cs_version"; exit ;;
18720 --config |
--confi |
--conf |
--con |
--co |
--c )
18721 $as_echo "$ac_cs_config"; exit ;;
18722 --debug |
--debu |
--deb |
--de |
--d |
-d )
18724 --file |
--fil |
--fi |
--f )
18727 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18728 '') as_fn_error $?
"missing file argument" ;;
18730 as_fn_append CONFIG_FILES
" '$ac_optarg'"
18731 ac_need_defaults
=false
;;
18732 --he |
--h |
--help |
--hel |
-h )
18733 $as_echo "$ac_cs_usage"; exit ;;
18734 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
18735 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
18738 # This is an error.
18739 -*) as_fn_error $?
"unrecognized option: \`$1'
18740 Try \`$0 --help' for more information." ;;
18742 *) as_fn_append ac_config_targets
" $1"
18743 ac_need_defaults
=false
;;
18749 ac_configure_extra_args
=
18751 if $ac_cs_silent; then
18753 ac_configure_extra_args
="$ac_configure_extra_args --silent"
18757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18758 if \$ac_cs_recheck; then
18759 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18761 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18762 CONFIG_SHELL='$SHELL'
18763 export CONFIG_SHELL
18768 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18772 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18773 ## Running $as_me. ##
18779 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18783 extrasub_build="$extrasub_build"
18784 extrasub_host="$extrasub_host"
18785 extrasub_target="$extrasub_target"
18789 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
18791 # Handling of arguments.
18792 for ac_config_target
in $ac_config_targets
18794 case $ac_config_target in
18795 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
18797 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18802 # If the user did not use the arguments to specify the items to instantiate,
18803 # then the envvar interface is used. Set only those that are not.
18804 # We use the long form for the default assignment because of an extremely
18805 # bizarre bug on SunOS 4.1.3.
18806 if $ac_need_defaults; then
18807 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
18810 # Have a temporary directory for convenience. Make it in the build tree
18811 # simply because there is no reason against having it here, and in addition,
18812 # creating and moving files from /tmp can sometimes cause problems.
18813 # Hook for its removal unless debugging.
18814 # Note that there is a small window in which the directory will not be cleaned:
18815 # after its creation but before its name has been assigned to `$tmp'.
18819 trap 'exit_status=$?
18820 : "${ac_tmp:=$tmp}"
18821 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
18823 trap 'as_fn_exit 1' 1 2 13 15
18825 # Create a (secure) tmp directory for tmp files.
18828 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
18832 tmp
=.
/conf$$
-$RANDOM
18833 (umask 077 && mkdir
"$tmp")
18834 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
18837 # Set up the scripts for CONFIG_FILES section.
18838 # No need to generate them if there are no CONFIG_FILES.
18839 # This happens for instance with `./config.status config.h'.
18840 if test -n "$CONFIG_FILES"; then
18842 if $AWK 'BEGIN { getline <"/dev/null" }' </dev
/null
2>/dev
/null
; then
18843 ac_cs_awk_getline
=:
18844 ac_cs_awk_pipe_init
=
18845 ac_cs_awk_read_file
='
18846 while ((getline aline < (F[key])) > 0)
18849 ac_cs_awk_pipe_fini
=
18851 ac_cs_awk_getline
=false
18852 ac_cs_awk_pipe_init
="print \"cat <<'|#_!!_#|' &&\""
18853 ac_cs_awk_read_file
='
18855 print "cat " F[key] " &&"
18856 '$ac_cs_awk_pipe_init
18857 # The final `:' finishes the AND list.
18858 ac_cs_awk_pipe_fini
='END { print "|#_!!_#|"; print ":" }'
18860 ac_cr
=`echo X | tr X '\015'`
18861 # On cygwin, bash can eat \r inside `` if the user requested igncr.
18862 # But we know of no other shell where ac_cr would be empty at this
18863 # point, so we can use a bashism as a fallback.
18864 if test "x$ac_cr" = x
; then
18865 eval ac_cr
=\$
\'\\r
\'
18867 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
18868 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
18871 ac_cs_awk_cr
=$ac_cr
18874 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
18877 # Create commands to substitute file output variables.
18879 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
18880 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
18881 echo "$ac_subst_files" |
sed 's/.*/F["&"]="$&"/' &&
18884 } >conf$
$files.sh
&&
18885 . .
/conf$
$files.sh ||
18886 as_fn_error $?
"could not make $CONFIG_STATUS" "$LINENO" 5
18887 rm -f conf$
$files.sh
18890 echo "cat >conf$$subs.awk <<_ACEOF" &&
18891 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
18893 } >conf$$subs.sh ||
18894 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18895 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
18897 for ac_last_try in false false false false false :; do
18898 . ./conf$$subs.sh ||
18899 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18901 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
18902 if test $ac_delim_n = $ac_delim_num; then
18904 elif $ac_last_try; then
18905 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
18907 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
18910 rm -f conf$$subs.sh
18912 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18913 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
18917 s/^/S["/; s
/!.
*/"]=/
18927 s/\(.\{148\}\)..*/\1/
18929 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
18934 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18941 s/\(.\{148\}\)..*/\1/
18943 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
18947 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
18952 ' <conf$$subs.awk | sed '
18957 ' >>$CONFIG_STATUS || ac_write_fail=1
18958 rm -f conf$$subs.awk
18959 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18961 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
18962 for (key in S) S_is_set[key] = 1
18964 \$ac_cs_awk_pipe_init
18968 nfields = split(line, field, "@
")
18970 len = length(field[1])
18971 for (i = 2; i < nfields; i++) {
18973 keylen = length(key)
18974 if (S_is_set[key]) {
18976 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
18977 len += length(value) + length(field[++i])
18982 if (nfields == 3 && !substed) {
18984 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
18985 \$ac_cs_awk_read_file
18991 \$ac_cs_awk_pipe_fini
18994 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18995 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
18996 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
18999 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
19000 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
19003 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19004 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
19005 # trailing colons and then remove the whole line if VPATH becomes empty
19006 # (actually we leave an empty line to preserve line numbers).
19007 if test "x
$srcdir" = x.; then
19008 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19027 fi # test -n "$CONFIG_FILES"
19030 eval set X " :F
$CONFIG_FILES "
19035 :[FHLC]) ac_mode=$ac_tag; continue;;
19037 case $ac_mode$ac_tag in
19039 :L* | :C*:*) as_fn_error $? "invalid tag \
`$ac_tag'" "$LINENO" 5;;
19040 :[FH]-) ac_tag=-:-;;
19041 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19058 -) ac_f="$ac_tmp/stdin";;
19059 *) # Look for the file first in the build tree, then in the source tree
19060 # (if the path is not absolute). The absolute path cannot be DOS-style,
19061 # because $ac_f cannot contain `:'.
19065 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19067 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19069 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s
/'/'\\\\\\\\''/g
"`;; esac
19070 as_fn_append ac_file_inputs " '$ac_f'"
19073 # Let's still pretend it is `configure' which instantiates (i.e., don't
19074 # use $as_me), people would be surprised to read:
19075 # /* config.h. Generated by config.status. */
19076 configure_input='Generated from '`
19077 $as_echo "$
*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19079 if test x"$ac_file" != x-; then
19080 configure_input="$ac_file.
$configure_input"
19081 { $as_echo "$as_me:${as_lineno-$LINENO}: creating
$ac_file" >&5
19082 $as_echo "$as_me: creating
$ac_file" >&6;}
19084 # Neutralize special characters interpreted by sed in replacement strings.
19085 case $configure_input in #(
19086 *\&* | *\|* | *\\* )
19087 ac_sed_conf_input=`$as_echo "$configure_input" |
19088 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19089 *) ac_sed_conf_input=$configure_input;;
19093 *:-:* | *:-) cat >"$ac_tmp/stdin
" \
19094 || as_fn_error $? "could not create
$ac_file" "$LINENO" 5 ;;
19099 ac_dir=`$as_dirname -- "$ac_file" ||
19100 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19101 X"$ac_file" : 'X\(//\)[^/]' \| \
19102 X"$ac_file" : 'X\(//\)$' \| \
19103 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19104 $as_echo X"$ac_file" |
19105 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19109 /^X\(\/\/\)[^/].*/{
19122 as_dir="$ac_dir"; as_fn_mkdir_p
19126 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19128 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19129 # A "..
" for each directory in $ac_dir_suffix.
19130 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19131 case $ac_top_builddir_sub in
19132 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19133 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19136 ac_abs_top_builddir=$ac_pwd
19137 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19138 # for backward compatibility:
19139 ac_top_builddir=$ac_top_build_prefix
19142 .) # We are building in place.
19144 ac_top_srcdir=$ac_top_builddir_sub
19145 ac_abs_top_srcdir=$ac_pwd ;;
19146 [\\/]* | ?:[\\/]* ) # Absolute name.
19147 ac_srcdir=$srcdir$ac_dir_suffix;
19148 ac_top_srcdir=$srcdir
19149 ac_abs_top_srcdir=$srcdir ;;
19150 *) # Relative name.
19151 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19152 ac_top_srcdir=$ac_top_build_prefix$srcdir
19153 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19155 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19165 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19166 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19170 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19171 # If the template does not know about datarootdir, expand it.
19172 # FIXME: This hack should be removed a few years after 2.60.
19173 ac_datarootdir_hack=; ac_datarootdir_seen=
19184 case `eval "sed -n \"\
$ac_sed_dataroot\" $ac_file_inputs"` in
19185 *datarootdir*) ac_datarootdir_seen=yes;;
19186 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&5
19188 $as_echo "$as_me: WARNING
: $ac_file_inputs seems to ignore the
--datarootdir setting
" >&2;}
19190 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19191 ac_datarootdir_hack='
19192 s&@datadir@&$datadir&g
19193 s&@docdir@&$docdir&g
19194 s&@infodir@&$infodir&g
19195 s&@localedir@&$localedir&g
19196 s&@mandir@&$mandir&g
19197 s&\\\${datarootdir}&$datarootdir&g' ;;
19201 # Neutralize VPATH when `$srcdir' = `.'.
19202 # Shell code in configure.ac might set extrasub.
19203 # FIXME: do we really want to maintain this feature?
19204 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19205 ac_sed_extra="$ac_vpsub
19208 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
19210 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
19211 s|@configure_input@|
$ac_sed_conf_input|
;t t
19212 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
19213 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
19214 s
&@srcdir@
&$ac_srcdir&;t t
19215 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
19216 s
&@top_srcdir@
&$ac_top_srcdir&;t t
19217 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
19218 s
&@builddir@
&$ac_builddir&;t t
19219 s
&@abs_builddir@
&$ac_abs_builddir&;t t
19220 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
19221 s
&@INSTALL@
&$ac_INSTALL&;t t
19222 $ac_datarootdir_hack
19224 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19225 if $ac_cs_awk_getline; then
19226 $AWK -f "$ac_tmp/subs.
awk"
19228 $AWK -f "$ac_tmp/subs.
awk" | $SHELL
19230 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
19232 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19233 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
19234 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19235 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
19237 which seems to be undefined. Please make sure it is defined" >&5
19238 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
19239 which seems to be undefined. Please make sure it is defined" >&2;}
19241 rm -f "$ac_tmp/stdin"
19243 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19244 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19246 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19254 case $ac_file$ac_mode in
19255 "Makefile":F) sed "$extrasub_build" Makefile |
19256 sed "$extrasub_host" |
19257 sed "$extrasub_target" > mf$$
19258 mv -f mf$$ Makefile ;;
19266 ac_clean_files=$ac_clean_files_save
19268 test $ac_write_fail = 0 ||
19269 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19272 # configure is writing to config.log, and then calls config.status.
19273 # config.status does its own redirection, appending to config.log.
19274 # Unfortunately, on DOS this fails, as config.log is still kept open
19275 # by configure, so config.status won't be able to
write to it
; its
19276 # output is simply discarded. So we exec the FD to /dev/null,
19277 # effectively closing config.log, so it can be properly (re)opened and
19278 # appended to by config.status. When coming back to configure, we
19279 # need to make the FD available again.
19280 if test "$no_create" != yes; then
19282 ac_config_status_args
=
19283 test "$silent" = yes &&
19284 ac_config_status_args
="$ac_config_status_args --quiet"
19286 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
19288 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19289 # would make configure fail if this is the last instruction.
19290 $ac_cs_success || as_fn_exit
1
19292 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19294 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}