2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
585 ac_unique_file="move-if-change"
586 enable_option_checking=no
587 ac_subst_vars='LTLIBOBJS
594 MAINTAINER_MODE_FALSE
596 COMPILER_NM_FOR_TARGET
597 COMPILER_LD_FOR_TARGET
598 COMPILER_AS_FOR_TARGET
684 DEBUG_PREFIX_CFLAGS_FOR_TARGET
685 SYSROOT_CFLAGS_FOR_TARGET
687 extra_host_zlib_configure_flags
688 extra_host_libiberty_configure_flags
691 extra_linker_plugin_flags
692 extra_linker_plugin_configure_flags
699 extra_isl_gmp_configure_flags
700 extra_mpc_mpfr_configure_flags
701 extra_mpc_gmp_configure_flags
702 extra_mpfr_configure_flags
721 extra_liboffloadmic_configure_flags
748 TOPLEVEL_CONFIGURE_ARGUMENTS
776 program_transform_name
787 ac_subst_files='serialization_dependencies
793 enable_option_checking
796 enable_as_accelerator_for
797 enable_offload_targets
798 enable_offload_defaulted
801 enable_compressed_debug_sections
803 enable_libquadmath_support
821 with_static_standard_libraries
828 enable_isl_version_check
830 enable_linker_plugin_configure_flags
831 enable_linker_plugin_flags
833 enable_stage1_languages
836 with_target_bdw_gc_include
837 with_target_bdw_gc_lib
838 with_gcc_major_version_only
840 with_debug_prefix_map
843 enable_serial_configure
844 with_build_time_tools
845 enable_maintainer_mode
846 enable_stage1_checking
849 ac_precious_vars='build_alias
901 # Initialize some variables set by options.
903 ac_init_version=false
904 ac_unrecognized_opts=
906 # The variables have the same names as the options, with
907 # dashes changed to underlines.
915 program_transform_name=s,x,x,
923 # Installation directory options.
924 # These are left unexpanded so users can "make install exec_prefix=/foo"
925 # and all the variables that are supposed to be based on exec_prefix
926 # by default will actually change.
927 # Use braces instead of parens because sh, perl, etc. also accept them.
928 # (The list follows the same order as the GNU Coding Standards.)
929 bindir='${exec_prefix}/bin'
930 sbindir='${exec_prefix}/sbin'
931 libexecdir='${exec_prefix}/libexec'
932 datarootdir='${prefix}/share'
933 datadir='${datarootdir}'
934 sysconfdir='${prefix}/etc'
935 sharedstatedir='${prefix}/com'
936 localstatedir='${prefix}/var'
937 includedir='${prefix}/include'
938 oldincludedir='/usr/include'
939 docdir='${datarootdir}/doc/${PACKAGE}'
940 infodir='${datarootdir}/info'
945 libdir='${exec_prefix}/lib'
946 localedir='${datarootdir}/locale'
947 mandir='${datarootdir}/man'
953 # If the previous option needs an argument, assign it.
954 if test -n "$ac_prev"; then
955 eval $ac_prev=\$ac_option
961 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
966 # Accept the important Cygnus configure options, so we can diagnose typos.
968 case $ac_dashdash$ac_option in
972 -bindir | --bindir | --bindi | --bind | --bin | --bi)
974 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
977 -build | --build | --buil | --bui | --bu)
978 ac_prev=build_alias ;;
979 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
980 build_alias=$ac_optarg ;;
982 -cache-file | --cache-file | --cache-fil | --cache-fi \
983 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
984 ac_prev=cache_file ;;
985 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
986 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
987 cache_file=$ac_optarg ;;
990 cache_file=config.cache ;;
992 -datadir | --datadir | --datadi | --datad)
994 -datadir=* | --datadir=* | --datadi=* | --datad=*)
995 datadir=$ac_optarg ;;
997 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
998 | --dataroo | --dataro | --datar)
999 ac_prev=datarootdir ;;
1000 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1001 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1002 datarootdir=$ac_optarg ;;
1004 -disable-* | --disable-*)
1005 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1006 # Reject names that are not valid shell variable names.
1007 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1008 as_fn_error $? "invalid feature name: $ac_useropt"
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1013 "enable_$ac_useropt"
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1018 eval enable_$ac_useropt=no ;;
1020 -docdir | --docdir | --docdi | --doc | --do)
1022 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1023 docdir=$ac_optarg ;;
1025 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1027 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1028 dvidir=$ac_optarg ;;
1030 -enable-* | --enable-*)
1031 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1032 # Reject names that are not valid shell variable names.
1033 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1034 as_fn_error $? "invalid feature name: $ac_useropt"
1035 ac_useropt_orig=$ac_useropt
1036 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1037 case $ac_user_opts in
1039 "enable_$ac_useropt"
1041 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1042 ac_unrecognized_sep=', ';;
1044 eval enable_$ac_useropt=\$ac_optarg ;;
1046 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1047 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1048 | --exec | --exe | --ex)
1049 ac_prev=exec_prefix ;;
1050 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1051 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1052 | --exec=* | --exe=* | --ex=*)
1053 exec_prefix=$ac_optarg ;;
1055 -gas | --gas | --ga | --g)
1056 # Obsolete; use --with-gas.
1059 -help | --help | --hel | --he | -h)
1060 ac_init_help=long ;;
1061 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1062 ac_init_help=recursive ;;
1063 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1064 ac_init_help=short ;;
1066 -host | --host | --hos | --ho)
1067 ac_prev=host_alias ;;
1068 -host=* | --host=* | --hos=* | --ho=*)
1069 host_alias=$ac_optarg ;;
1071 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1073 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1075 htmldir=$ac_optarg ;;
1077 -includedir | --includedir | --includedi | --included | --include \
1078 | --includ | --inclu | --incl | --inc)
1079 ac_prev=includedir ;;
1080 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1081 | --includ=* | --inclu=* | --incl=* | --inc=*)
1082 includedir=$ac_optarg ;;
1084 -infodir | --infodir | --infodi | --infod | --info | --inf)
1086 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1087 infodir=$ac_optarg ;;
1089 -libdir | --libdir | --libdi | --libd)
1091 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1092 libdir=$ac_optarg ;;
1094 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1095 | --libexe | --libex | --libe)
1096 ac_prev=libexecdir ;;
1097 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1098 | --libexe=* | --libex=* | --libe=*)
1099 libexecdir=$ac_optarg ;;
1101 -localedir | --localedir | --localedi | --localed | --locale)
1102 ac_prev=localedir ;;
1103 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1104 localedir=$ac_optarg ;;
1106 -localstatedir | --localstatedir | --localstatedi | --localstated \
1107 | --localstate | --localstat | --localsta | --localst | --locals)
1108 ac_prev=localstatedir ;;
1109 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1110 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1111 localstatedir=$ac_optarg ;;
1113 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1115 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1116 mandir=$ac_optarg ;;
1118 -nfp | --nfp | --nf)
1119 # Obsolete; use --without-fp.
1122 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1123 | --no-cr | --no-c | -n)
1126 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1127 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1130 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1131 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1132 | --oldin | --oldi | --old | --ol | --o)
1133 ac_prev=oldincludedir ;;
1134 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1135 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1136 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1137 oldincludedir=$ac_optarg ;;
1139 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1141 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1142 prefix=$ac_optarg ;;
1144 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1145 | --program-pre | --program-pr | --program-p)
1146 ac_prev=program_prefix ;;
1147 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1148 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1149 program_prefix=$ac_optarg ;;
1151 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1152 | --program-suf | --program-su | --program-s)
1153 ac_prev=program_suffix ;;
1154 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1155 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1156 program_suffix=$ac_optarg ;;
1158 -program-transform-name | --program-transform-name \
1159 | --program-transform-nam | --program-transform-na \
1160 | --program-transform-n | --program-transform- \
1161 | --program-transform | --program-transfor \
1162 | --program-transfo | --program-transf \
1163 | --program-trans | --program-tran \
1164 | --progr-tra | --program-tr | --program-t)
1165 ac_prev=program_transform_name ;;
1166 -program-transform-name=* | --program-transform-name=* \
1167 | --program-transform-nam=* | --program-transform-na=* \
1168 | --program-transform-n=* | --program-transform-=* \
1169 | --program-transform=* | --program-transfor=* \
1170 | --program-transfo=* | --program-transf=* \
1171 | --program-trans=* | --program-tran=* \
1172 | --progr-tra=* | --program-tr=* | --program-t=*)
1173 program_transform_name=$ac_optarg ;;
1175 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1177 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1178 pdfdir=$ac_optarg ;;
1180 -psdir | --psdir | --psdi | --psd | --ps)
1182 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1186 | -silent | --silent | --silen | --sile | --sil)
1189 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1191 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1193 sbindir=$ac_optarg ;;
1195 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1196 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1197 | --sharedst | --shareds | --shared | --share | --shar \
1199 ac_prev=sharedstatedir ;;
1200 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1201 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1202 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1204 sharedstatedir=$ac_optarg ;;
1206 -site | --site | --sit)
1208 -site=* | --site=* | --sit=*)
1211 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1213 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1214 srcdir=$ac_optarg ;;
1216 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1217 | --syscon | --sysco | --sysc | --sys | --sy)
1218 ac_prev=sysconfdir ;;
1219 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1220 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1221 sysconfdir=$ac_optarg ;;
1223 -target | --target | --targe | --targ | --tar | --ta | --t)
1224 ac_prev=target_alias ;;
1225 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1226 target_alias=$ac_optarg ;;
1228 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1231 -version | --version | --versio | --versi | --vers | -V)
1232 ac_init_version=: ;;
1235 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1236 # Reject names that are not valid shell variable names.
1237 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1238 as_fn_error $? "invalid package name: $ac_useropt"
1239 ac_useropt_orig=$ac_useropt
1240 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1241 case $ac_user_opts in
1245 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1246 ac_unrecognized_sep=', ';;
1248 eval with_$ac_useropt=\$ac_optarg ;;
1250 -without-* | --without-*)
1251 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1252 # Reject names that are not valid shell variable names.
1253 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1254 as_fn_error $? "invalid package name: $ac_useropt"
1255 ac_useropt_orig=$ac_useropt
1256 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1257 case $ac_user_opts in
1261 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1262 ac_unrecognized_sep=', ';;
1264 eval with_$ac_useropt=no ;;
1267 # Obsolete; use --with-x.
1270 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1271 | --x-incl | --x-inc | --x-in | --x-i)
1272 ac_prev=x_includes ;;
1273 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1274 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1275 x_includes=$ac_optarg ;;
1277 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1278 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1279 ac_prev=x_libraries ;;
1280 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1281 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1282 x_libraries=$ac_optarg ;;
1284 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1285 Try \`$0 --help' for more information"
1289 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1290 # Reject names that are not valid shell variable names.
1291 case $ac_envvar in #(
1292 '' | [0-9]* | *[!_$as_cr_alnum]* )
1293 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1295 eval $ac_envvar=\$ac_optarg
1296 export $ac_envvar ;;
1299 # FIXME: should be removed in autoconf 3.0.
1300 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1301 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1302 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1303 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1309 if test -n "$ac_prev"; then
1310 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1311 as_fn_error $? "missing argument to $ac_option"
1314 if test -n "$ac_unrecognized_opts"; then
1315 case $enable_option_checking in
1317 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1318 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1322 # Check all directory arguments for consistency.
1323 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1324 datadir sysconfdir sharedstatedir localstatedir includedir \
1325 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1326 libdir localedir mandir
1328 eval ac_val=\$$ac_var
1329 # Remove trailing slashes.
1332 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1333 eval $ac_var=\$ac_val;;
1335 # Be sure to have absolute directory names.
1337 [\\/$]* | ?:[\\/]* ) continue;;
1338 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1340 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1343 # There might be people who depend on the old broken behavior: `$host'
1344 # used to hold the argument of --host etc.
1345 # FIXME: To remove some day.
1348 target=$target_alias
1350 # FIXME: To remove some day.
1351 if test "x$host_alias" != x; then
1352 if test "x$build_alias" = x; then
1353 cross_compiling=maybe
1354 elif test "x$build_alias" != "x$host_alias"; then
1360 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1362 test "$silent" = yes && exec 6>/dev/null
1365 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1366 ac_ls_di=`ls -di .` &&
1367 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1368 as_fn_error $? "working directory cannot be determined"
1369 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1370 as_fn_error $? "pwd does not report name of working directory"
1373 # Find the source files, if location was not specified.
1374 if test -z "$srcdir"; then
1375 ac_srcdir_defaulted=yes
1376 # Try the directory containing this script, then the parent directory.
1377 ac_confdir=`$as_dirname -- "$as_myself" ||
1378 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1379 X"$as_myself" : 'X\(//\)[^/]' \| \
1380 X"$as_myself" : 'X\(//\)$' \| \
1381 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1382 $as_echo X"$as_myself" |
1383 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1401 if test ! -r "$srcdir/$ac_unique_file"; then
1405 ac_srcdir_defaulted=no
1407 if test ! -r "$srcdir/$ac_unique_file"; then
1408 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1409 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1411 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1413 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1415 # When building in place, set srcdir=.
1416 if test "$ac_abs_confdir" = "$ac_pwd"; then
1419 # Remove unnecessary trailing slashes from srcdir.
1420 # Double slashes in file names in object file debugging info
1421 # mess up M-x gdb in Emacs.
1423 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1427 as_fn_error $? "path to source, $srcdir, contains spaces"
1430 ac_subdirs_all=`cd $srcdir && echo */configure | sed 's,/configure,,g'`
1432 for ac_var in $ac_precious_vars; do
1433 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1434 eval ac_env_${ac_var}_value=\$${ac_var}
1435 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1436 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1440 # Report the --help message.
1442 if test "$ac_init_help" = "long"; then
1443 # Omit some internal or obsolete options to make the list less imposing.
1444 # This message is too long to be a string in the A/UX 3.1 sh.
1446 \`configure' configures this package to adapt to many kinds of systems.
1448 Usage: $0 [OPTION]... [VAR=VALUE]...
1450 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1451 VAR=VALUE. See below for descriptions of some of the useful variables.
1453 Defaults for the options are specified in brackets.
1456 -h, --help display this help and exit
1457 --help=short display options specific to this package
1458 --help=recursive display the short help of all the included packages
1459 -V, --version display version information and exit
1460 -q, --quiet, --silent do not print \`checking ...' messages
1461 --cache-file=FILE cache test results in FILE [disabled]
1462 -C, --config-cache alias for \`--cache-file=config.cache'
1463 -n, --no-create do not create output files
1464 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1466 Installation directories:
1467 --prefix=PREFIX install architecture-independent files in PREFIX
1468 [$ac_default_prefix]
1469 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1472 By default, \`make install' will install all the files in
1473 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1474 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1475 for instance \`--prefix=\$HOME'.
1477 For better control, use the options below.
1479 Fine tuning of the installation directories:
1480 --bindir=DIR user executables [EPREFIX/bin]
1481 --sbindir=DIR system admin executables [EPREFIX/sbin]
1482 --libexecdir=DIR program executables [EPREFIX/libexec]
1483 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1484 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1485 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1486 --libdir=DIR object code libraries [EPREFIX/lib]
1487 --includedir=DIR C header files [PREFIX/include]
1488 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1489 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1490 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1491 --infodir=DIR info documentation [DATAROOTDIR/info]
1492 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1493 --mandir=DIR man documentation [DATAROOTDIR/man]
1494 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1495 --htmldir=DIR html documentation [DOCDIR]
1496 --dvidir=DIR dvi documentation [DOCDIR]
1497 --pdfdir=DIR pdf documentation [DOCDIR]
1498 --psdir=DIR ps documentation [DOCDIR]
1504 --program-prefix=PREFIX prepend PREFIX to installed program names
1505 --program-suffix=SUFFIX append SUFFIX to installed program names
1506 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1509 --build=BUILD configure for building on BUILD [guessed]
1510 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1511 --target=TARGET configure for building compilers for TARGET [HOST]
1515 if test -n "$ac_init_help"; then
1520 --disable-option-checking ignore unrecognized --enable/--with options
1521 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1522 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1523 --enable-as-accelerator-for=ARG
1524 build as offload target compiler. Specify offload
1526 --enable-offload-targets=LIST
1527 enable offloading to devices from comma-separated
1528 LIST of TARGET[=DIR]. Use optional path to find
1529 offload target compiler during the build
1530 --enable-offload-defaulted
1531 If enabled, configured but not installed offload compilers and
1532 libgomp plugins are silently ignored. Useful for distribution
1533 compilers where those are in separate optional packages.
1535 --enable-gold[=ARG] build gold [ARG={default,yes,no}]
1536 --enable-ld[=ARG] build ld [ARG={default,yes,no}]
1537 --enable-compressed-debug-sections={all,gas,gold,ld,none}
1538 Enable compressed debug sections for gas, gold or ld
1540 --disable-libquadmath do not build libquadmath directory
1541 --disable-libquadmath-support
1542 disable libquadmath support for Fortran
1543 --enable-libada build libada directory
1544 --enable-libssp build libssp directory
1545 --disable-libstdcxx do not build libstdc++-v3 directory
1546 --enable-liboffloadmic=ARG
1547 build liboffloadmic [ARG={no,host,target}]
1548 --enable-bootstrap enable bootstrapping [yes if native build]
1549 --disable-isl-version-check
1550 disable check for isl version
1551 --enable-lto enable link time optimization support
1552 --enable-linker-plugin-configure-flags=FLAGS
1553 additional flags for configuring linker plugins
1555 --enable-linker-plugin-flags=FLAGS
1556 additional flags for configuring and building linker
1558 --enable-host-shared build host code as shared libraries
1559 --enable-stage1-languages[=all]
1560 choose additional languages to build during stage1.
1561 Mostly useful for compiler development
1562 --enable-objc-gc enable use of Boehm's garbage collector with the GNU
1564 --enable-vtable-verify Enable vtable verification feature
1565 --enable-serial-[{host,target,build}-]configure
1566 force sequential configuration of sub-packages for
1567 the host, target or build machine, or all
1569 --enable-maintainer-mode
1570 enable make rules and dependencies not useful (and
1571 sometimes confusing) to the casual installer
1572 --enable-stage1-checking[=all]
1573 choose additional checking for stage1 of the
1575 --enable-werror enable -Werror in bootstrap stage2 and later
1578 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1579 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1580 --with-build-libsubdir=DIR Directory where to find libraries for build system
1581 --with-system-zlib use installed libz
1582 --with-mpc=PATH specify prefix directory for installed MPC package.
1583 Equivalent to --with-mpc-include=PATH/include plus
1584 --with-mpc-lib=PATH/lib
1585 --with-mpc-include=PATH specify directory for installed MPC include files
1586 --with-mpc-lib=PATH specify directory for the installed MPC library
1587 --with-mpfr-dir=PATH this option has been REMOVED
1588 --with-mpfr=PATH specify prefix directory for installed MPFR package.
1589 Equivalent to --with-mpfr-include=PATH/include plus
1590 --with-mpfr-lib=PATH/lib
1591 --with-mpfr-include=PATH
1592 specify directory for installed MPFR include files
1593 --with-mpfr-lib=PATH specify directory for the installed MPFR library
1594 --with-gmp-dir=PATH this option has been REMOVED
1595 --with-gmp=PATH specify prefix directory for the installed GMP
1596 package. Equivalent to
1597 --with-gmp-include=PATH/include plus
1598 --with-gmp-lib=PATH/lib
1599 --with-gmp-include=PATH specify directory for installed GMP include files
1600 --with-gmp-lib=PATH specify directory for the installed GMP library
1601 --with-stage1-libs=LIBS libraries for stage1
1602 --with-static-standard-libraries
1603 use -static-libstdc++ and -static-libgcc
1605 --with-stage1-ldflags=FLAGS
1606 linker flags for stage1
1607 --with-boot-libs=LIBS libraries for stage2 and later
1608 --with-boot-ldflags=FLAGS
1609 linker flags for stage2 and later
1610 --with-isl=PATH Specify prefix directory for the installed isl
1611 package. Equivalent to
1612 --with-isl-include=PATH/include plus
1613 --with-isl-lib=PATH/lib
1614 --with-isl-include=PATH Specify directory for installed isl include files
1615 --with-isl-lib=PATH Specify the directory for the installed isl library
1616 --with-target-bdw-gc=PATHLIST
1617 specify prefix directory for installed bdw-gc
1618 package. Equivalent to
1619 --with-target-bdw-gc-include=PATH/include plus
1620 --with-target-bdw-gc-lib=PATH/lib
1621 --with-target-bdw-gc-include=PATHLIST
1622 specify directories for installed bdw-gc include
1624 --with-target-bdw-gc-lib=PATHLIST
1625 specify directories for installed bdw-gc library
1626 --with-gcc-major-version-only
1627 use only GCC major number in filesystem paths
1628 --with-build-sysroot=SYSROOT
1629 use sysroot as the system root during the build
1630 --with-debug-prefix-map='A=B C=D ...'
1631 map A to B, C to D ... in debug information
1632 --with-build-config='NAME NAME2...'
1633 use config/NAME.mk build configuration
1634 --with-build-time-tools=PATH
1635 use given path to find target tools during the build
1637 Some influential environment variables:
1638 CC C compiler command
1639 CFLAGS C compiler flags
1640 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1641 nonstandard directory <lib dir>
1642 LIBS libraries to pass to the linker, e.g. -l<library>
1643 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1644 you have headers in a nonstandard directory <include dir>
1645 CXX C++ compiler command
1646 CXXFLAGS C++ compiler flags
1648 additional configure arguments for build directories
1650 additional configure arguments for host directories
1652 additional configure arguments for target directories
1655 DLLTOOL DLLTOOL for the host
1656 DSYMUTIL DSYMUTIL for the host
1658 LIPO LIPO for the host
1660 RANLIB RANLIB for the host
1661 STRIP STRIP for the host
1662 WINDRES WINDRES for the host
1663 WINDMC WINDMC for the host
1664 OBJCOPY OBJCOPY for the host
1665 OBJDUMP OBJDUMP for the host
1666 OTOOL OTOOL for the host
1667 READELF READELF for the host
1675 GFORTRAN for the target
1685 DLLTOOL for the target
1687 DSYMUTIL for the target
1695 OBJCOPY for the target
1697 OBJDUMP for the target
1699 OTOOL for the target
1701 RANLIB for the target
1703 READELF for the target
1705 STRIP for the target
1707 WINDRES for the target
1709 WINDMC for the target
1711 Use these variables to override the choices made by `configure' or to help
1712 it to find libraries and programs with nonstandard names/locations.
1714 Report bugs to the package provider.
1719 if test "$ac_init_help" = "recursive"; then
1720 # If there are subdirs, report their specific --help.
1721 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1722 test -d "$ac_dir" ||
1723 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1728 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1730 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1731 # A ".." for each directory in $ac_dir_suffix.
1732 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1733 case $ac_top_builddir_sub in
1734 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1735 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1738 ac_abs_top_builddir=$ac_pwd
1739 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1740 # for backward compatibility:
1741 ac_top_builddir=$ac_top_build_prefix
1744 .) # We are building in place.
1746 ac_top_srcdir=$ac_top_builddir_sub
1747 ac_abs_top_srcdir=$ac_pwd ;;
1748 [\\/]* | ?:[\\/]* ) # Absolute name.
1749 ac_srcdir=$srcdir$ac_dir_suffix;
1750 ac_top_srcdir=$srcdir
1751 ac_abs_top_srcdir=$srcdir ;;
1753 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1754 ac_top_srcdir=$ac_top_build_prefix$srcdir
1755 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1757 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1759 cd "$ac_dir" || { ac_status=$?; continue; }
1760 # Check for guested configure.
1761 if test -f "$ac_srcdir/configure.gnu"; then
1763 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1764 elif test -f "$ac_srcdir/configure"; then
1766 $SHELL "$ac_srcdir/configure" --help=recursive
1768 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1770 cd "$ac_pwd" || { ac_status=$?; break; }
1774 test -n "$ac_init_help" && exit $ac_status
1775 if $ac_init_version; then
1778 generated by GNU Autoconf 2.69
1780 Copyright (C) 2012 Free Software Foundation, Inc.
1781 This configure script is free software; the Free Software Foundation
1782 gives unlimited permission to copy, distribute and modify it.
1787 ## ------------------------ ##
1788 ## Autoconf initialization. ##
1789 ## ------------------------ ##
1791 # ac_fn_c_try_compile LINENO
1792 # --------------------------
1793 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1794 ac_fn_c_try_compile ()
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 rm -f conftest.$ac_objext
1798 if { { ac_try="$ac_compile"
1800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1801 *) ac_try_echo=$ac_try;;
1803 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1804 $as_echo "$ac_try_echo"; } >&5
1805 (eval "$ac_compile") 2>conftest.err
1807 if test -s conftest.err; then
1808 grep -v '^ *+' conftest.err >conftest.er1
1809 cat conftest.er1 >&5
1810 mv -f conftest.er1 conftest.err
1812 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1813 test $ac_status = 0; } && {
1814 test -z "$ac_c_werror_flag" ||
1815 test ! -s conftest.err
1816 } && test -s conftest.$ac_objext; then :
1819 $as_echo "$as_me: failed program was:" >&5
1820 sed 's/^/| /' conftest.$ac_ext >&5
1824 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1825 as_fn_set_status $ac_retval
1827 } # ac_fn_c_try_compile
1829 # ac_fn_cxx_try_compile LINENO
1830 # ----------------------------
1831 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1832 ac_fn_cxx_try_compile ()
1834 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1835 rm -f conftest.$ac_objext
1836 if { { ac_try="$ac_compile"
1838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1839 *) ac_try_echo=$ac_try;;
1841 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1842 $as_echo "$ac_try_echo"; } >&5
1843 (eval "$ac_compile") 2>conftest.err
1845 if test -s conftest.err; then
1846 grep -v '^ *+' conftest.err >conftest.er1
1847 cat conftest.er1 >&5
1848 mv -f conftest.er1 conftest.err
1850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1851 test $ac_status = 0; } && {
1852 test -z "$ac_cxx_werror_flag" ||
1853 test ! -s conftest.err
1854 } && test -s conftest.$ac_objext; then :
1857 $as_echo "$as_me: failed program was:" >&5
1858 sed 's/^/| /' conftest.$ac_ext >&5
1862 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1863 as_fn_set_status $ac_retval
1865 } # ac_fn_cxx_try_compile
1867 # ac_fn_cxx_try_link LINENO
1868 # -------------------------
1869 # Try to link conftest.$ac_ext, and return whether this succeeded.
1870 ac_fn_cxx_try_link ()
1872 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1873 rm -f conftest.$ac_objext conftest$ac_exeext
1874 if { { ac_try="$ac_link"
1876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1877 *) ac_try_echo=$ac_try;;
1879 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1880 $as_echo "$ac_try_echo"; } >&5
1881 (eval "$ac_link") 2>conftest.err
1883 if test -s conftest.err; then
1884 grep -v '^ *+' conftest.err >conftest.er1
1885 cat conftest.er1 >&5
1886 mv -f conftest.er1 conftest.err
1888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1889 test $ac_status = 0; } && {
1890 test -z "$ac_cxx_werror_flag" ||
1891 test ! -s conftest.err
1892 } && test -s conftest$ac_exeext && {
1893 test "$cross_compiling" = yes ||
1894 test -x conftest$ac_exeext
1898 $as_echo "$as_me: failed program was:" >&5
1899 sed 's/^/| /' conftest.$ac_ext >&5
1903 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1904 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1905 # interfere with the next link command; also delete a directory that is
1906 # left behind by Apple's compiler. We do this before executing the actions.
1907 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1908 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1909 as_fn_set_status $ac_retval
1911 } # ac_fn_cxx_try_link
1913 # ac_fn_c_try_link LINENO
1914 # -----------------------
1915 # Try to link conftest.$ac_ext, and return whether this succeeded.
1918 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1919 rm -f conftest.$ac_objext conftest$ac_exeext
1920 if { { ac_try="$ac_link"
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927 (eval "$ac_link") 2>conftest.err
1929 if test -s conftest.err; then
1930 grep -v '^ *+' conftest.err >conftest.er1
1931 cat conftest.er1 >&5
1932 mv -f conftest.er1 conftest.err
1934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1935 test $ac_status = 0; } && {
1936 test -z "$ac_c_werror_flag" ||
1937 test ! -s conftest.err
1938 } && test -s conftest$ac_exeext && {
1939 test "$cross_compiling" = yes ||
1940 test -x conftest$ac_exeext
1944 $as_echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1949 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1950 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1951 # interfere with the next link command; also delete a directory that is
1952 # left behind by Apple's compiler. We do this before executing the actions.
1953 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1954 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1955 as_fn_set_status $ac_retval
1957 } # ac_fn_c_try_link
1958 cat >config.log <<_ACEOF
1959 This file contains any messages produced by compilers while
1960 running configure, to aid debugging if configure makes a mistake.
1962 It was created by $as_me, which was
1963 generated by GNU Autoconf 2.69. Invocation command line was
1975 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1976 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1977 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1978 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1979 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1981 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1982 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1984 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1985 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1986 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1987 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1988 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1989 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1990 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1998 test -z "$as_dir" && as_dir=.
1999 $as_echo "PATH: $as_dir"
2015 # Keep a trace of the command line.
2016 # Strip out --no-create and --no-recursion so they do not pile up.
2017 # Strip out --silent because we don't want to record it for future runs.
2018 # Also quote any args containing shell meta-characters.
2019 # Make two passes to allow for proper duplicate-argument suppression.
2023 ac_must_keep_next=false
2029 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2031 | -silent | --silent | --silen | --sile | --sil)
2034 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2037 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2039 as_fn_append ac_configure_args1 " '$ac_arg'"
2040 if test $ac_must_keep_next = true; then
2041 ac_must_keep_next=false # Got value, back to normal.
2044 *=* | --config-cache | -C | -disable-* | --disable-* \
2045 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2046 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2047 | -with-* | --with-* | -without-* | --without-* | --x)
2048 case "$ac_configure_args0 " in
2049 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2052 -* ) ac_must_keep_next=true ;;
2055 as_fn_append ac_configure_args " '$ac_arg'"
2060 { ac_configure_args0=; unset ac_configure_args0;}
2061 { ac_configure_args1=; unset ac_configure_args1;}
2063 # When interrupted or exit'd, cleanup temporary files, and complete
2064 # config.log. We remove comments because anyway the quotes in there
2065 # would cause problems or look ugly.
2066 # WARNING: Use '\'' to represent an apostrophe within the trap.
2067 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2068 trap 'exit_status=$?
2069 # Save into config.log some information that might help in debugging.
2073 $as_echo "## ---------------- ##
2074 ## Cache variables. ##
2075 ## ---------------- ##"
2077 # The following way of writing the cache mishandles newlines in values,
2079 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2080 eval ac_val=\$$ac_var
2084 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2085 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2088 _ | IFS | as_nl) ;; #(
2089 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2090 *) { eval $ac_var=; unset $ac_var;} ;;
2095 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2096 *${as_nl}ac_space=\ *)
2098 "s/'\''/'\''\\\\'\'''\''/g;
2099 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2102 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2109 $as_echo "## ----------------- ##
2110 ## Output variables. ##
2111 ## ----------------- ##"
2113 for ac_var in $ac_subst_vars
2115 eval ac_val=\$$ac_var
2117 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2119 $as_echo "$ac_var='\''$ac_val'\''"
2123 if test -n "$ac_subst_files"; then
2124 $as_echo "## ------------------- ##
2125 ## File substitutions. ##
2126 ## ------------------- ##"
2128 for ac_var in $ac_subst_files
2130 eval ac_val=\$$ac_var
2132 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2134 $as_echo "$ac_var='\''$ac_val'\''"
2139 if test -s confdefs.h; then
2140 $as_echo "## ----------- ##
2147 test "$ac_signal" != 0 &&
2148 $as_echo "$as_me: caught signal $ac_signal"
2149 $as_echo "$as_me: exit $exit_status"
2151 rm -f core *.core core.conftest.* &&
2152 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2155 for ac_signal in 1 2 13 15; do
2156 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2160 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2161 rm -f -r conftest* confdefs.h
2163 $as_echo "/* confdefs.h */" > confdefs.h
2165 # Predefined preprocessor variables.
2167 cat >>confdefs.h <<_ACEOF
2168 #define PACKAGE_NAME "$PACKAGE_NAME"
2171 cat >>confdefs.h <<_ACEOF
2172 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2175 cat >>confdefs.h <<_ACEOF
2176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2179 cat >>confdefs.h <<_ACEOF
2180 #define PACKAGE_STRING "$PACKAGE_STRING"
2183 cat >>confdefs.h <<_ACEOF
2184 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2187 cat >>confdefs.h <<_ACEOF
2188 #define PACKAGE_URL "$PACKAGE_URL"
2192 # Let the site file select an alternate cache file if it wants to.
2193 # Prefer an explicitly selected file to automatically selected ones.
2196 if test -n "$CONFIG_SITE"; then
2197 # We do not want a PATH search for config.site.
2198 case $CONFIG_SITE in #((
2199 -*) ac_site_file1=./$CONFIG_SITE;;
2200 */*) ac_site_file1=$CONFIG_SITE;;
2201 *) ac_site_file1=./$CONFIG_SITE;;
2203 elif test "x$prefix" != xNONE; then
2204 ac_site_file1=$prefix/share/config.site
2205 ac_site_file2=$prefix/etc/config.site
2207 ac_site_file1=$ac_default_prefix/share/config.site
2208 ac_site_file2=$ac_default_prefix/etc/config.site
2210 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2212 test "x$ac_site_file" = xNONE && continue
2213 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2215 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2216 sed 's/^/| /' "$ac_site_file" >&5
2218 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2219 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2220 as_fn_error $? "failed to load site script $ac_site_file
2221 See \`config.log' for more details" "$LINENO" 5; }
2225 if test -r "$cache_file"; then
2226 # Some versions of bash will fail to source /dev/null (special files
2227 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2228 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2230 $as_echo "$as_me: loading cache $cache_file" >&6;}
2232 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2233 *) . "./$cache_file";;
2237 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2238 $as_echo "$as_me: creating cache $cache_file" >&6;}
2242 # Check that the precious variables saved in the cache have kept the same
2244 ac_cache_corrupted=false
2245 for ac_var in $ac_precious_vars; do
2246 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2247 eval ac_new_set=\$ac_env_${ac_var}_set
2248 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2249 eval ac_new_val=\$ac_env_${ac_var}_value
2250 case $ac_old_set,$ac_new_set in
2252 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2253 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2254 ac_cache_corrupted=: ;;
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2257 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2258 ac_cache_corrupted=: ;;
2261 if test "x$ac_old_val" != "x$ac_new_val"; then
2262 # differences in whitespace do not lead to failure.
2263 ac_old_val_w=`echo x $ac_old_val`
2264 ac_new_val_w=`echo x $ac_new_val`
2265 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2267 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2268 ac_cache_corrupted=:
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2271 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2272 eval $ac_var=\$ac_old_val
2274 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2275 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2277 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2280 # Pass precious variables to config.status.
2281 if test "$ac_new_set" = set; then
2283 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2284 *) ac_arg=$ac_var=$ac_new_val ;;
2286 case " $ac_configure_args " in
2287 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2288 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2292 if $ac_cache_corrupted; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2294 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2296 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2297 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2299 ## -------------------- ##
2300 ## Main body of script. ##
2301 ## -------------------- ##
2304 ac_cpp='$CPP $CPPFLAGS'
2305 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2317 # if PWD already has a value, it is probably wrong.
2318 if test -n "$PWD" ; then PWD=`${PWDCMD-pwd}`; fi
2320 # Export original configure arguments for use by sub-configures.
2321 # Quote arguments with shell meta charatcers.
2322 TOPLEVEL_CONFIGURE_ARGUMENTS=
2323 set -- "$progname" "$@"
2327 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\']*)
2328 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"`
2329 # if the argument is of the form -foo=baz, quote the baz part only
2330 ac_arg=`echo "'$ac_arg'" | sed "s/^'\([-a-zA-Z0-9]*=\)/\\1'/"` ;;
2333 # Add the quoted argument to the list.
2334 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS $ac_arg"
2336 if test "$silent" = yes; then
2337 TOPLEVEL_CONFIGURE_ARGUMENTS="$TOPLEVEL_CONFIGURE_ARGUMENTS --silent"
2339 # Remove the initial space we just introduced and, as these will be
2340 # expanded by make, quote '$'.
2341 TOPLEVEL_CONFIGURE_ARGUMENTS=`echo "x$TOPLEVEL_CONFIGURE_ARGUMENTS" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
2344 # Find the build, host, and target systems.
2346 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2347 if test -f "$ac_dir/install-sh"; then
2349 ac_install_sh="$ac_aux_dir/install-sh -c"
2351 elif test -f "$ac_dir/install.sh"; then
2353 ac_install_sh="$ac_aux_dir/install.sh -c"
2355 elif test -f "$ac_dir/shtool"; then
2357 ac_install_sh="$ac_aux_dir/shtool install -c"
2361 if test -z "$ac_aux_dir"; then
2362 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2365 # These three variables are undocumented and unsupported,
2366 # and are intended to be withdrawn in a future Autoconf release.
2367 # They can cause serious problems if a builder's source tree is in a directory
2368 # whose full name contains unusual characters.
2369 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2370 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2371 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2374 # Make sure we can run config.sub.
2375 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2376 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2379 $as_echo_n "checking build system type... " >&6; }
2380 if ${ac_cv_build+:} false; then :
2381 $as_echo_n "(cached) " >&6
2383 ac_build_alias=$build_alias
2384 test "x$ac_build_alias" = x &&
2385 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2386 test "x$ac_build_alias" = x &&
2387 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2388 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2389 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2393 $as_echo "$ac_cv_build" >&6; }
2394 case $ac_cv_build in
2396 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2399 ac_save_IFS=$IFS; IFS='-'
2405 # Remember, the first character of IFS is used to create $*,
2406 # except with old shells:
2409 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2412 case ${build_alias} in
2413 "") build_noncanonical=${build} ;;
2414 *) build_noncanonical=${build_alias} ;;
2419 case ${host_alias} in
2420 "") host_noncanonical=${build_noncanonical} ;;
2421 *) host_noncanonical=${host_alias} ;;
2426 case ${target_alias} in
2427 "") target_noncanonical=${host_noncanonical} ;;
2428 *) target_noncanonical=${target_alias} ;;
2434 test "$host_noncanonical" = "$target_noncanonical" &&
2435 test "$program_prefix$program_suffix$program_transform_name" = \
2437 program_transform_name=s,y,y,
2439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2440 $as_echo_n "checking host system type... " >&6; }
2441 if ${ac_cv_host+:} false; then :
2442 $as_echo_n "(cached) " >&6
2444 if test "x$host_alias" = x; then
2445 ac_cv_host=$ac_cv_build
2447 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2448 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2453 $as_echo "$ac_cv_host" >&6; }
2456 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2459 ac_save_IFS=$IFS; IFS='-'
2465 # Remember, the first character of IFS is used to create $*,
2466 # except with old shells:
2469 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2473 $as_echo_n "checking target system type... " >&6; }
2474 if ${ac_cv_target+:} false; then :
2475 $as_echo_n "(cached) " >&6
2477 if test "x$target_alias" = x; then
2478 ac_cv_target=$ac_cv_host
2480 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2481 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2486 $as_echo "$ac_cv_target" >&6; }
2487 case $ac_cv_target in
2489 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2491 target=$ac_cv_target
2492 ac_save_IFS=$IFS; IFS='-'
2498 # Remember, the first character of IFS is used to create $*,
2499 # except with old shells:
2502 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2505 # The aliases save the names the user supplied, while $host etc.
2506 # will get canonicalized.
2507 test -n "$target_alias" &&
2508 test "$program_prefix$program_suffix$program_transform_name" = \
2510 program_prefix=${target_alias}-
2512 test "$program_prefix" != NONE &&
2513 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2514 # Use a double $ so make ignores it.
2515 test "$program_suffix" != NONE &&
2516 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2517 # Double any \ or $.
2518 # By default was `s,x,x', remove it if useless.
2519 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2520 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2524 # Get 'install' or 'install-sh' and its variants.
2525 # Find a good install program. We prefer a C program (faster),
2526 # so one script is as good as another. But avoid the broken or
2527 # incompatible versions:
2528 # SysV /etc/install, /usr/sbin/install
2529 # SunOS /usr/etc/install
2530 # IRIX /sbin/install
2532 # AmigaOS /C/install, which installs bootblocks on floppy discs
2533 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2534 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2535 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2536 # OS/2's system install, which has a completely different semantic
2537 # ./install, which can be erroneously created by make from ./install.sh.
2538 # Reject install programs that cannot install multiple files.
2539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2540 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2541 if test -z "$INSTALL"; then
2542 if ${ac_cv_path_install+:} false; then :
2543 $as_echo_n "(cached) " >&6
2545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 test -z "$as_dir" && as_dir=.
2550 # Account for people who put trailing slashes in PATH elements.
2551 case $as_dir/ in #((
2552 ./ | .// | /[cC]/* | \
2553 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2554 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2557 # OSF1 and SCO ODT 3.0 have their own names for install.
2558 # Don't use installbsd from OSF since it installs stuff as root
2560 for ac_prog in ginstall scoinst install; do
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2563 if test $ac_prog = install &&
2564 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2565 # AIX install. It has an incompatible calling convention.
2567 elif test $ac_prog = install &&
2568 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2569 # program-specific install script used by HP pwplus--don't use.
2572 rm -rf conftest.one conftest.two conftest.dir
2573 echo one > conftest.one
2574 echo two > conftest.two
2576 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2577 test -s conftest.one && test -s conftest.two &&
2578 test -s conftest.dir/conftest.one &&
2579 test -s conftest.dir/conftest.two
2581 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2594 rm -rf conftest.one conftest.two conftest.dir
2597 if test "${ac_cv_path_install+set}" = set; then
2598 INSTALL=$ac_cv_path_install
2600 # As a last resort, use the slow shell script. Don't cache a
2601 # value for INSTALL within a source directory, because that will
2602 # break other packages using the cache if that directory is
2603 # removed, or if the value is a relative name.
2604 INSTALL=$ac_install_sh
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2608 $as_echo "$INSTALL" >&6; }
2610 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2611 # It thinks the first close brace ends the variable substitution.
2612 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2614 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2616 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln works" >&5
2619 $as_echo_n "checking whether ln works... " >&6; }
2620 if ${acx_cv_prog_LN+:} false; then :
2621 $as_echo_n "(cached) " >&6
2623 rm -f conftestdata_t
2624 echo >conftestdata_f
2625 if ln conftestdata_f conftestdata_t 2>/dev/null
2631 rm -f conftestdata_f conftestdata_t
2634 if test $acx_cv_prog_LN = no; then
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN" >&5
2637 $as_echo "no, using $LN" >&6; }
2639 LN="$acx_cv_prog_LN"
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2641 $as_echo "yes" >&6; }
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
2645 $as_echo_n "checking whether ln -s works... " >&6; }
2647 if test "$LN_S" = "ln -s"; then
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2649 $as_echo "yes" >&6; }
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
2652 $as_echo "no, using $LN_S" >&6; }
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2656 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
2657 if ${ac_cv_path_SED+:} false; then :
2658 $as_echo_n "(cached) " >&6
2660 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2661 for ac_i in 1 2 3 4 5 6 7; do
2662 ac_script="$ac_script$as_nl$ac_script"
2664 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2665 { ac_script=; unset ac_script;}
2666 if test -z "$SED"; then
2667 ac_path_SED_found=false
2668 # Loop through the user's path and test for each of PROGNAME-LIST
2669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 test -z "$as_dir" && as_dir=.
2674 for ac_prog in sed gsed; do
2675 for ac_exec_ext in '' $ac_executable_extensions; do
2676 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2677 as_fn_executable_p "$ac_path_SED" || continue
2678 # Check for GNU ac_path_SED and select it if it is found.
2679 # Check for GNU $ac_path_SED
2680 case `"$ac_path_SED" --version 2>&1` in
2682 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2685 $as_echo_n 0123456789 >"conftest.in"
2688 cat "conftest.in" "conftest.in" >"conftest.tmp"
2689 mv "conftest.tmp" "conftest.in"
2690 cp "conftest.in" "conftest.nl"
2691 $as_echo '' >> "conftest.nl"
2692 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2693 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2694 as_fn_arith $ac_count + 1 && ac_count=$as_val
2695 if test $ac_count -gt ${ac_path_SED_max-0}; then
2696 # Best one so far, save it but keep looking for a better one
2697 ac_cv_path_SED="$ac_path_SED"
2698 ac_path_SED_max=$ac_count
2700 # 10*(2^10) chars as input seems more than enough
2701 test $ac_count -gt 10 && break
2703 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2706 $ac_path_SED_found && break 3
2711 if test -z "$ac_cv_path_SED"; then
2712 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2720 $as_echo "$ac_cv_path_SED" >&6; }
2721 SED="$ac_cv_path_SED"
2724 for ac_prog in gawk mawk nawk awk
2726 # Extract the first word of "$ac_prog", so it can be a program name with args.
2727 set dummy $ac_prog; ac_word=$2
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2729 $as_echo_n "checking for $ac_word... " >&6; }
2730 if ${ac_cv_prog_AWK+:} false; then :
2731 $as_echo_n "(cached) " >&6
2733 if test -n "$AWK"; then
2734 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2740 test -z "$as_dir" && as_dir=.
2741 for ac_exec_ext in '' $ac_executable_extensions; do
2742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2743 ac_cv_prog_AWK="$ac_prog"
2744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2754 if test -n "$AWK"; then
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2756 $as_echo "$AWK" >&6; }
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2759 $as_echo "no" >&6; }
2763 test -n "$AWK" && break
2767 srcpwd=`cd ${srcdir} ; ${PWDCMD-pwd}`
2769 # We pass INSTALL explicitly to sub-makes. Make sure that it is not
2771 if test "$INSTALL" = "${srcdir}/install-sh -c"; then
2772 INSTALL="${srcpwd}/install-sh -c"
2775 # Set srcdir to "." if that's what it is.
2776 # This is important for multilib support.
2778 if test "${pwd}" = "${srcpwd}" ; then
2786 ### To add a new directory to the tree, first choose whether it is a target
2787 ### or a host dependent tool. Then put it into the appropriate list
2788 ### (library or tools, host or target), doing a dependency sort.
2790 # Subdirs will be configured in the order listed in build_configdirs,
2791 # configdirs, or target_configdirs; see the serialization section below.
2793 # Dependency sorting is only needed when *configuration* must be done in
2794 # a particular order. In all cases a dependency should be specified in
2795 # the Makefile, whether or not it's implicitly specified here.
2797 # Double entries in build_configdirs, configdirs, or target_configdirs may
2798 # cause circular dependencies and break everything horribly.
2800 # these library is used by various programs built for the build
2803 build_libs="build-libiberty build-libcpp"
2805 # these tools are built for the build environment
2806 build_tools="build-texinfo build-flex build-bison build-m4 build-fixincludes"
2808 # these libraries are used by various programs built for the host environment
2810 host_libs="intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libcody libdecnumber gmp mpfr mpc isl libelf libiconv libctf"
2812 # these tools are built for the host environment
2813 # Note, the powerpc-eabi build depends on sim occurring before gdb in order to
2814 # know that we are building the simulator.
2815 # binutils, gas and ld appear in that order because it makes sense to run
2816 # "make check" in that particular order.
2817 # If --enable-gold is used, "gold" may replace "ld".
2818 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"
2820 # these libraries are built for the target environment, and are built after
2821 # the host libraries and the host tools (which may be a cross compiler)
2822 # Note that libiberty is not a target library.
2823 target_libraries="target-libgcc \
2824 target-libbacktrace \
2828 target-liboffloadmic \
2831 target-libstdc++-v3 \
2832 target-libsanitizer \
2835 target-libquadmath \
2836 target-libgfortran \
2844 # these tools are built using the target libraries, and are intended to
2845 # run only in the target environment
2847 # note: any program that *uses* libraries that are in the "target_libraries"
2848 # list belongs in this list.
2850 target_tools="target-rda"
2852 ################################################################################
2854 ## All tools belong in one of the four categories, and are assigned above
2855 ## We assign ${configdirs} this way to remove all embedded newlines. This
2856 ## is important because configure will choke if they ever get through.
2857 ## ${configdirs} is directories we build using the host tools.
2858 ## ${target_configdirs} is directories we build using the target tools.
2859 configdirs=`echo ${host_libs} ${host_tools}`
2860 target_configdirs=`echo ${target_libraries} ${target_tools}`
2861 build_configdirs=`echo ${build_libs} ${build_tools}`
2865 ################################################################################
2867 srcname="gnu development package"
2869 # This gets set non-empty for some net releases of packages.
2872 # Define is_cross_compiler to save on calls to 'test'.
2874 if test x"${host}" = x"${target}" ; then
2875 is_cross_compiler=no
2877 is_cross_compiler=yes
2880 # Find the build and target subdir names.
2882 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2883 # have matching libraries, they should use host libraries: Makefile.tpl
2884 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2885 # However, they still use the build modules, because the corresponding
2886 # host modules (e.g. bison) are only built for the host when bootstrap
2888 # - build_subdir is where we find build modules, and never changes.
2889 # - build_libsubdir is where we find build libraries, and can be overridden.
2891 # Prefix 'build-' so this never conflicts with target_subdir.
2892 build_subdir="build-${build_noncanonical}"
2894 # Check whether --with-build-libsubdir was given.
2895 if test "${with_build_libsubdir+set}" = set; then :
2896 withval=$with_build_libsubdir; build_libsubdir="$withval"
2898 build_libsubdir="$build_subdir"
2901 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2902 if ( test $srcdir = . && test -d gcc ) \
2903 || test -d $srcdir/../host-${host_noncanonical}; then
2904 host_subdir="host-${host_noncanonical}"
2909 target_subdir=${target_noncanonical}
2911 # Be sure to cover against remnants of an in-tree build.
2912 if test $srcdir != . && test -d $srcdir/host-${host_noncanonical}; then
2913 as_fn_error $? "building out of tree but $srcdir contains host-${host_noncanonical}.
2914 Use a pristine source tree when building in a separate tree" "$LINENO" 5
2917 # Skipdirs are removed silently.
2919 # Noconfigdirs are removed loudly.
2923 # Make sure we don't let GNU ld be added if we didn't want it.
2924 if test x$with_gnu_ld = xno ; then
2926 noconfigdirs="$noconfigdirs ld gold"
2930 # Make sure we don't let GNU as be added if we didn't want it.
2931 if test x$with_gnu_as = xno ; then
2933 noconfigdirs="$noconfigdirs gas"
2938 # Check whether --with-system-zlib was given.
2939 if test "${with_system_zlib+set}" = set; then :
2940 withval=$with_system_zlib;
2943 # Make sure we don't let ZLIB be added if we didn't want it.
2944 if test x$with_system_zlib = xyes ; then
2945 use_included_zlib=no
2946 noconfigdirs="$noconfigdirs zlib"
2949 # some tools are so dependent upon X11 that if we're not building with X,
2950 # it's not even worth trying to configure, much less build, that tool.
2953 yes | "") ;; # the default value for this tree is that X11 is available
2955 skipdirs="${skipdirs} tk itcl libgui"
2956 # We won't be able to build gdbtk without X.
2959 *) echo "*** bad value \"${with_x}\" for -with-x flag; ignored" 1>&2 ;;
2962 # Some are only suitable for cross toolchains.
2963 # Remove these if host=target.
2964 cross_only="target-libgloss target-newlib target-opcodes"
2966 case $is_cross_compiler in
2967 no) skipdirs="${skipdirs} ${cross_only}" ;;
2970 # If both --with-headers and --with-libs are specified, default to
2972 if test x"${with_headers}" != x && test x"${with_headers}" != xno \
2973 && test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
2974 if test x"${with_newlib}" = x ; then
2979 # Recognize --with-newlib/--without-newlib.
2980 case ${with_newlib} in
2981 no) skipdirs="${skipdirs} target-newlib" ;;
2982 yes) skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'` ;;
2985 # Check whether --enable-as-accelerator-for was given.
2986 if test "${enable_as_accelerator_for+set}" = set; then :
2987 enableval=$enable_as_accelerator_for;
2991 # Check whether --enable-offload-targets was given.
2992 if test "${enable_offload_targets+set}" = set; then :
2993 enableval=$enable_offload_targets;
2994 if test x"$enable_offload_targets" = x; then
2995 as_fn_error $? "no offload targets specified" "$LINENO" 5
2999 enable_offload_targets=
3003 # Check whether --enable-offload-defaulted was given.
3004 if test "${enable_offload_defaulted+set}" = set; then :
3005 enableval=$enable_offload_defaulted; enable_offload_defaulted=$enableval
3007 enable_offload_defaulted=
3011 # Handle --enable-gold, --enable-ld.
3012 # --disable-gold [--enable-ld]
3013 # Build only ld. Default option.
3014 # --enable-gold [--enable-ld]
3015 # Build both gold and ld. Install gold as "ld.gold", install ld
3016 # as "ld.bfd" and "ld".
3017 # --enable-gold=default [--enable-ld]
3018 # Build both gold and ld. Install gold as "ld.gold" and "ld",
3019 # install ld as "ld.bfd".
3020 # --enable-gold[=default] --disable-ld
3021 # Build only gold, which is then installed as both "ld.gold" and "ld".
3022 # --enable-gold --enable-ld=default
3023 # Build both gold (installed as "ld.gold") and ld (installed as "ld"
3025 # In other words, ld is default
3026 # --enable-gold=default --enable-ld=default
3030 # Check whether --enable-gold was given.
3031 if test "${enable_gold+set}" = set; then :
3032 enableval=$enable_gold; ENABLE_GOLD=$enableval
3037 case "${ENABLE_GOLD}" in
3039 # Check for ELF target.
3042 *-*-elf* | *-*-sysv4* | *-*-unixware* | *-*-eabi* | hppa*64*-*-hpux* \
3043 | *-*-linux* | *-*-gnu* | frv-*-uclinux* | *-*-irix5* | *-*-irix6* \
3044 | *-*-netbsd* | *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* \
3045 | *-*-solaris2* | *-*-nto* | *-*-nacl*)
3047 *-*-linux*aout* | *-*-linux*oldld*)
3055 if test "$is_elf" = "yes"; then
3056 # Check for target supported by gold.
3058 i?86-*-* | x86_64-*-* | sparc*-*-* | powerpc*-*-* | arm*-*-* \
3059 | aarch64*-*-* | tilegx*-*-* | mips*-*-* | s390*-*-*)
3060 configdirs="$configdirs gold"
3061 if test x${ENABLE_GOLD} = xdefault; then
3072 as_fn_error $? "invalid --enable-gold argument" "$LINENO" 5
3076 # Check whether --enable-ld was given.
3077 if test "${enable_ld+set}" = set; then :
3078 enableval=$enable_ld; ENABLE_LD=$enableval
3084 case "${ENABLE_LD}" in
3086 if test x${default_ld} != x; then
3087 as_fn_error $? "either gold or ld can be the default ld" "$LINENO" 5
3093 if test x${ENABLE_GOLD} != xyes; then
3094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: neither ld nor gold are enabled" >&5
3095 $as_echo "$as_me: WARNING: neither ld nor gold are enabled" >&2;}
3097 configdirs=`echo " ${configdirs} " | sed -e 's/ ld / /'`
3100 as_fn_error $? "invalid --enable-ld argument" "$LINENO" 5
3105 # Decide the default method for compressing debug sections.
3106 # Provide a configure time option to override our default.
3107 # Check whether --enable-compressed_debug_sections was given.
3108 if test "${enable_compressed_debug_sections+set}" = set; then :
3109 enableval=$enable_compressed_debug_sections;
3110 if test x"$enable_compressed_debug_sections" = xyes; then
3111 as_fn_error $? "no program with compressed debug sections specified" "$LINENO" 5
3115 enable_compressed_debug_sections=
3119 # Configure extra directories which are host specific
3123 configdirs="$configdirs libtermcap" ;;
3126 # A target can indicate whether a language isn't supported for some reason.
3127 # Only spaces may be used in this macro; not newlines or tabs.
3128 unsupported_languages=
3130 # Remove more programs from consideration, based on the host or
3131 # target this usually means that a port of the program doesn't
3135 i[3456789]86-*-msdosdjgpp*)
3136 noconfigdirs="$noconfigdirs tcl tk itcl"
3141 # Check whether --enable-libquadmath was given.
3142 if test "${enable_libquadmath+set}" = set; then :
3143 enableval=$enable_libquadmath; ENABLE_LIBQUADMATH=$enableval
3145 ENABLE_LIBQUADMATH=yes
3148 if test "${ENABLE_LIBQUADMATH}" = "no" ; then
3149 noconfigdirs="$noconfigdirs target-libquadmath"
3153 # Check whether --enable-libquadmath-support was given.
3154 if test "${enable_libquadmath_support+set}" = set; then :
3155 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
3157 ENABLE_LIBQUADMATH_SUPPORT=yes
3160 enable_libquadmath_support=
3161 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
3162 enable_libquadmath_support=no
3166 # Check whether --enable-libada was given.
3167 if test "${enable_libada+set}" = set; then :
3168 enableval=$enable_libada; ENABLE_LIBADA=$enableval
3173 if test "${ENABLE_LIBADA}" != "yes" ; then
3174 noconfigdirs="$noconfigdirs gnattools"
3177 # Check whether --enable-libssp was given.
3178 if test "${enable_libssp+set}" = set; then :
3179 enableval=$enable_libssp; ENABLE_LIBSSP=$enableval
3185 # Check whether --enable-libstdcxx was given.
3186 if test "${enable_libstdcxx+set}" = set; then :
3187 enableval=$enable_libstdcxx; ENABLE_LIBSTDCXX=$enableval
3189 ENABLE_LIBSTDCXX=default
3192 if test "${ENABLE_LIBSTDCXX}" = "no" ; then
3193 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3196 # If this is accelerator compiler and its target is intelmic we enable
3197 # target liboffloadmic by default. If this is compiler with offloading
3198 # for intelmic we enable host liboffloadmic by default. Otherwise
3199 # liboffloadmic is disabled by default.
3200 # Check whether --enable-liboffloadmic was given.
3201 if test "${enable_liboffloadmic+set}" = set; then :
3202 enableval=$enable_liboffloadmic; case "$enableval" in
3204 enable_liboffloadmic=$enableval ;;
3206 as_fn_error $? "--enable-liboffloadmic=no/host/target" "$LINENO" 5 ;;
3209 if test x"$enable_as_accelerator_for" != x; then
3211 *-intelmic-* | *-intelmicemul-*)
3212 enable_liboffloadmic=target
3213 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=target"
3216 enable_liboffloadmic=no
3220 case "${enable_offload_targets}" in
3221 *-intelmic-* | *-intelmicemul-*)
3222 enable_liboffloadmic=host
3223 extra_liboffloadmic_configure_flags="--enable-liboffloadmic=host"
3226 enable_liboffloadmic=no
3234 # Enable libgomp by default on hosted POSIX systems, and a few others.
3235 if test x$enable_libgomp = x ; then
3237 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
3239 *-*-netbsd* | *-*-freebsd* | *-*-openbsd* | *-*-dragonfly*)
3241 *-*-solaris2* | *-*-hpux11*)
3243 *-*-darwin* | *-*-aix*)
3245 nvptx*-*-* | amdgcn*-*-*)
3248 noconfigdirs="$noconfigdirs target-libgomp"
3253 # Disable libatomic on unsupported systems.
3254 if test -d ${srcdir}/libatomic; then
3255 if test x$enable_libatomic = x; then
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libatomic support" >&5
3257 $as_echo_n "checking for libatomic support... " >&6; }
3258 if (srcdir=${srcdir}/libatomic; \
3259 . ${srcdir}/configure.tgt; \
3260 test -n "$UNSUPPORTED")
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3263 $as_echo "no" >&6; }
3264 noconfigdirs="$noconfigdirs target-libatomic"
3266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3267 $as_echo "yes" >&6; }
3272 # Disable liboffloadmic on unsupported systems.
3273 if test -d ${srcdir}/liboffloadmic; then
3274 if test x$enable_liboffloadmic != xno; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for liboffloadmic support" >&5
3276 $as_echo_n "checking for liboffloadmic support... " >&6; }
3277 if (srcdir=${srcdir}/liboffloadmic; \
3278 . ${srcdir}/configure.tgt; \
3279 test -n "$UNSUPPORTED")
3281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3282 $as_echo "no" >&6; }
3283 noconfigdirs="$noconfigdirs target-liboffloadmic"
3285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3286 $as_echo "yes" >&6; }
3291 # Disable libitm on unsupported systems.
3292 if test -d ${srcdir}/libitm; then
3293 if test x$enable_libitm = x; then
3294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libitm support" >&5
3295 $as_echo_n "checking for libitm support... " >&6; }
3296 if (srcdir=${srcdir}/libitm; \
3297 . ${srcdir}/configure.tgt; \
3298 test -n "$UNSUPPORTED")
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3302 noconfigdirs="$noconfigdirs target-libitm"
3304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3305 $as_echo "yes" >&6; }
3310 # Disable libsanitizer on unsupported systems.
3311 if test -d ${srcdir}/libsanitizer; then
3312 if test x$enable_libsanitizer = x; then
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libsanitizer support" >&5
3314 $as_echo_n "checking for libsanitizer support... " >&6; }
3315 if (srcdir=${srcdir}/libsanitizer; \
3316 . ${srcdir}/configure.tgt; \
3317 test -n "$UNSUPPORTED")
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3320 $as_echo "no" >&6; }
3321 noconfigdirs="$noconfigdirs target-libsanitizer"
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3324 $as_echo "yes" >&6; }
3329 # Disable libvtv on unsupported systems.
3330 if test -d ${srcdir}/libvtv; then
3331 if test x$enable_libvtv = x; then
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libvtv support" >&5
3333 $as_echo_n "checking for libvtv support... " >&6; }
3334 if (srcdir=${srcdir}/libvtv; \
3335 . ${srcdir}/configure.tgt; \
3336 test "$VTV_SUPPORTED" != "yes")
3338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339 $as_echo "no" >&6; }
3340 noconfigdirs="$noconfigdirs target-libvtv"
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3343 $as_echo "yes" >&6; }
3348 # Disable libquadmath for some systems.
3351 noconfigdirs="$noconfigdirs target-libquadmath"
3353 # libquadmath is unused on AIX and libquadmath build process use of
3354 # LD_LIBRARY_PATH can break AIX bootstrap.
3355 powerpc-*-aix* | rs6000-*-aix*)
3356 noconfigdirs="$noconfigdirs target-libquadmath"
3360 # Disable libssp for some systems.
3363 # No hosted I/O support.
3364 noconfigdirs="$noconfigdirs target-libssp"
3367 noconfigdirs="$noconfigdirs target-libssp"
3369 powerpc-*-aix* | rs6000-*-aix*)
3370 noconfigdirs="$noconfigdirs target-libssp"
3373 # No hosted I/O support.
3374 noconfigdirs="$noconfigdirs target-libssp"
3377 # libssp uses a misaligned load to trigger a fault, but the RL78
3378 # doesn't fault for those - instead, it gives a build-time error
3379 # for explicit misaligned loads.
3380 noconfigdirs="$noconfigdirs target-libssp"
3383 # No hosted I/O support.
3384 noconfigdirs="$noconfigdirs target-libssp"
3388 # Disable libstdc++-v3 for some systems.
3389 # Allow user to override this if they pass --enable-libstdc++-v3
3390 if test "${ENABLE_LIBSTDCXX}" = "default" ; then
3393 # VxWorks uses the Dinkumware C++ library.
3394 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3397 # Not ported/fails to build when using newlib.
3398 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3401 # the C++ libraries don't build on top of CE's C libraries
3402 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3405 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3408 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3411 noconfigdirs="$noconfigdirs target-libstdc++-v3"
3416 # Disable C++ on systems where it is known to not work.
3417 # For testing, you can override this with --enable-languages=c++.
3418 case ,${enable_languages}, in
3424 unsupported_languages="$unsupported_languages c++"
3430 # Disable Objc on systems where it is known to not work.
3431 # For testing, you can override this with --enable-languages=objc.
3432 case ,${enable_languages}, in
3438 unsupported_languages="$unsupported_languages objc"
3444 # Disable D on systems where it is known to not work.
3445 # For testing, you can override this with --enable-languages=d.
3446 case ,${enable_languages}, in
3452 unsupported_languages="$unsupported_languages d"
3458 # Disable libphobos on unsupported systems.
3459 # For testing, you can override this with --enable-libphobos.
3460 if test -d ${srcdir}/libphobos; then
3461 if test x$enable_libphobos = x; then
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libphobos support" >&5
3463 $as_echo_n "checking for libphobos support... " >&6; }
3464 if (srcdir=${srcdir}/libphobos; \
3465 . ${srcdir}/configure.tgt; \
3466 test "$LIBPHOBOS_SUPPORTED" != "yes")
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3469 $as_echo "no" >&6; }
3470 noconfigdirs="$noconfigdirs target-libphobos"
3472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3473 $as_echo "yes" >&6; }
3478 # Disable Fortran for some systems.
3481 # See <http://gcc.gnu.org/ml/gcc-patches/2004-11/msg00572.html>.
3482 unsupported_languages="$unsupported_languages fortran"
3485 unsupported_languages="$unsupported_languages fortran"
3489 # Disable libffi for some systems.
3493 i[3456789]86-*-darwin*)
3495 x86_64-*-darwin[912]*)
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"
3513 noconfigdirs="$noconfigdirs target-libffi"
3516 noconfigdirs="$noconfigdirs target-libffi"
3518 aarch64*-*-freebsd*)
3519 noconfigdirs="$noconfigdirs target-libffi"
3522 noconfigdirs="$noconfigdirs target-libffi"
3525 noconfigdirs="$noconfigdirs target-libffi"
3528 noconfigdirs="$noconfigdirs target-libffi"
3531 noconfigdirs="$noconfigdirs target-libffi"
3534 noconfigdirs="$noconfigdirs target-libffi"
3536 cris-*-* | crisv32-*-*)
3540 *) # See PR46792 regarding target-libffi.
3541 noconfigdirs="$noconfigdirs target-libffi";;
3545 noconfigdirs="$noconfigdirs target-libffi"
3550 noconfigdirs="$noconfigdirs target-libffi"
3553 noconfigdirs="$noconfigdirs target-libffi"
3555 i[3456789]86-w64-mingw*)
3556 noconfigdirs="$noconfigdirs target-libffi"
3558 i[3456789]86-*-mingw*)
3559 noconfigdirs="$noconfigdirs target-libffi"
3562 noconfigdirs="$noconfigdirs target-libffi"
3565 noconfigdirs="$noconfigdirs target-libffi"
3572 noconfigdirs="$noconfigdirs target-libffi"
3575 noconfigdirs="$noconfigdirs target-libffi"
3579 # Disable the go frontend on systems where it is known to not work. Please keep
3580 # this in sync with contrib/config-list.mk.
3582 *-*-darwin* | *-*-cygwin* | *-*-mingw* | bpf-* )
3583 unsupported_languages="$unsupported_languages go"
3587 # Only allow gdbserver on some systems.
3588 if test -d ${srcdir}/gdbserver; then
3589 if test x$enable_gdbserver = x; then
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdbserver support" >&5
3591 $as_echo_n "checking for gdbserver support... " >&6; }
3592 if (srcdir=${srcdir}/gdbserver; \
3593 . ${srcdir}/configure.srv; \
3594 test -n "$UNSUPPORTED")
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3597 $as_echo "no" >&6; }
3598 noconfigdirs="$noconfigdirs gdbserver"
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3601 $as_echo "yes" >&6; }
3606 # Disable libgo for some systems where it is known to not work.
3607 # For testing, you can easily override this with --enable-libgo.
3608 if test x$enable_libgo = x; then
3612 noconfigdirs="$noconfigdirs target-libgo"
3614 *-*-cygwin* | *-*-mingw*)
3615 noconfigdirs="$noconfigdirs target-libgo"
3618 noconfigdirs="$noconfigdirs target-libgo"
3623 # Default libgloss CPU subdirectory.
3624 libgloss_dir="$target_cpu"
3627 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3631 libgloss_dir=aarch64
3636 cris-*-* | crisv32-*-*)
3645 m68hc11-*-*|m6811-*-*|m68hc12-*-*|m6812-*-*)
3646 libgloss_dir=m68hc11
3648 m68*-*-* | fido-*-*)
3665 # Disable newlib and libgloss for various target OSes.
3668 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3670 i[3456789]86-*-linux*)
3671 # This section makes it possible to build newlib natively on linux.
3672 # If we are using a cross compiler then don't configure newlib.
3673 if test x${is_cross_compiler} != xno ; then
3674 noconfigdirs="$noconfigdirs target-newlib"
3676 noconfigdirs="$noconfigdirs target-libgloss"
3677 # If we are not using a cross compiler, do configure newlib.
3678 # Note however, that newlib will only be configured in this situation
3679 # if the --with-newlib option has been given, because otherwise
3680 # 'target-newlib' will appear in skipdirs.
3682 i[3456789]86-*-rdos*)
3683 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3685 sh*-*-pe|mips*-*-pe|arm-wince-pe)
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"
3704 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3707 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3709 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
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"
3728 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3731 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3739 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3740 noconfigdirs="$noconfigdirs sim target-rda"
3745 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3746 noconfigdirs="$noconfigdirs sim target-rda"
3749 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3750 noconfigdirs="$noconfigdirs sim target-rda"
3752 i[3456789]86-*-darwin*)
3753 noconfigdirs="$noconfigdirs ld gprof"
3754 noconfigdirs="$noconfigdirs sim target-rda"
3756 x86_64-*-darwin[912]*)
3757 noconfigdirs="$noconfigdirs ld gas gprof"
3758 noconfigdirs="$noconfigdirs sim target-rda"
3761 noconfigdirs="$noconfigdirs ld gas gdb gprof"
3762 noconfigdirs="$noconfigdirs sim target-rda"
3767 if test "x$with_gmp" = x && test "x$with_gmp_dir" = x \
3768 && ! test -d ${srcdir}/gmp \
3769 && test -f /usr/local/include/gmp.h; then
3774 # Remove unsupported stuff on all kaOS configurations.
3775 noconfigdirs="$noconfigdirs target-libgloss"
3782 noconfigdirs="$noconfigdirs target-libgloss"
3785 noconfigdirs="$noconfigdirs target-libgloss"
3787 # The tpf target doesn't support gdb yet.
3789 noconfigdirs="$noconfigdirs gdb tcl tk libgui itcl"
3792 noconfigdirs="$noconfigdirs target-rda"
3797 # ld works, but does not support shared libraries.
3798 # gas doesn't generate exception information.
3799 noconfigdirs="$noconfigdirs gas ld"
3802 noconfigdirs="$noconfigdirs gdb target-newlib target-libgloss"
3805 # newlib is not 64 bit ready
3806 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3809 noconfigdirs="$noconfigdirs target-libobjc target-libbacktrace"
3811 sh*-*-pe|mips*-*-pe|*arm-wince-pe)
3812 noconfigdirs="$noconfigdirs tcl tk itcl libgui sim"
3815 noconfigdirs="$noconfigdirs sim"
3818 noconfigdirs="$noconfigdirs target-libgloss"
3821 noconfigdirs="$noconfigdirs ld target-libgloss"
3824 if test x${with_avrlibc} != xno; then
3825 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
3828 c4x-*-* | tic4x-*-*)
3829 noconfigdirs="$noconfigdirs target-libgloss"
3832 noconfigdirs="$noconfigdirs target-libgloss gdb"
3835 noconfigdirs="$noconfigdirs target-libgloss"
3838 noconfigdirs="$noconfigdirs gdb"
3841 noconfigdirs="$noconfigdirs gdb"
3844 noconfigdirs="$noconfigdirs target-rda gprof"
3847 noconfigdirs="$noconfigdirs"
3850 noconfigdirs="$noconfigdirs target-libgloss"
3853 noconfigdirs="$noconfigdirs target-libgloss"
3855 hppa1.1-*-osf* | hppa1.1-*-bsd* )
3858 noconfigdirs="$noconfigdirs gdb"
3861 noconfigdirs="$noconfigdirs gdb ld"
3869 hppa*-*-openbsd* | \
3875 noconfigdirs="$noconfigdirs ld"
3878 noconfigdirs="$noconfigdirs gdb"
3881 # No gdb support yet.
3882 noconfigdirs="$noconfigdirs readline libgui itcl gdb"
3885 # No ld support yet.
3886 noconfigdirs="$noconfigdirs gdb libgui itcl ld"
3889 # No ld support yet.
3890 noconfigdirs="$noconfigdirs libgui itcl ld"
3892 i[3456789]86-w64-mingw*)
3894 i[3456789]86-*-mingw*)
3895 target_configdirs="$target_configdirs target-winsup"
3898 target_configdirs="$target_configdirs target-libtermcap target-winsup"
3899 noconfigdirs="$noconfigdirs target-libgloss"
3900 # always build newlib if winsup directory is present.
3901 if test -d "$srcdir/winsup/cygwin"; then
3902 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3903 elif test -d "$srcdir/newlib"; then
3904 echo "Warning: winsup/cygwin is missing so newlib can't be built."
3908 noconfigdirs="$noconfigdirs target-libgloss"
3910 i[3456789]86-*-sco3.2v5*)
3911 # The linker does not yet know about weak symbols in COFF,
3912 # and is not configured to handle mixed ELF and COFF.
3913 noconfigdirs="$noconfigdirs ld target-libgloss"
3915 i[3456789]86-*-sco*)
3916 noconfigdirs="$noconfigdirs gprof target-libgloss"
3918 i[3456789]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*)
3919 noconfigdirs="$noconfigdirs target-libgloss"
3921 i[3456789]86-*-sysv4*)
3922 noconfigdirs="$noconfigdirs target-libgloss"
3924 i[3456789]86-*-beos*)
3925 noconfigdirs="$noconfigdirs gdb"
3927 i[3456789]86-*-rdos*)
3928 noconfigdirs="$noconfigdirs gdb"
3931 noconfigdirs="$noconfigdirs gdb"
3934 noconfigdirs="$noconfigdirs sim"
3937 noconfigdirs="$noconfigdirs ld gas gdb gprof sim"
3938 noconfigdirs="$noconfigdirs $target_libraries"
3941 noconfigdirs="$noconfigdirs gdb gprof"
3944 # copied from rs6000-*-* entry
3945 noconfigdirs="$noconfigdirs gprof"
3947 powerpc*-*-winnt* | powerpc*-*-pe*)
3948 target_configdirs="$target_configdirs target-winsup"
3949 noconfigdirs="$noconfigdirs gdb tcl tk target-libgloss itcl"
3950 # always build newlib.
3951 skipdirs=`echo " ${skipdirs} " | sed -e 's/ target-newlib / /'`
3953 # This is temporary until we can link against shared libraries
3954 powerpcle-*-solaris*)
3955 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
3958 noconfigdirs="$noconfigdirs gdb"
3961 noconfigdirs="$noconfigdirs gprof"
3964 noconfigdirs="$noconfigdirs gprof"
3967 noconfigdirs="$noconfigdirs gprof"
3970 noconfigdirs="$noconfigdirs ld binutils gprof target-libgloss"
3973 noconfigdirs="$noconfigdirs gprof"
3975 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
3976 if test x$with_newlib = xyes; then
3977 noconfigdirs="$noconfigdirs gprof"
3981 noconfigdirs="$noconfigdirs gprof target-libgloss"
3984 noconfigdirs="$noconfigdirs gprof target-libgloss"
3987 noconfigdirs="$noconfigdirs ld gas gprof target-libgloss"
3991 mips*-*-ultrix* | mips*-*-osf* | mips*-*-ecoff* | mips*-*-pe* \
3992 | mips*-*-irix* | mips*-*-lnews* | mips*-*-riscos*)
3993 noconfigdirs="$noconfigdirs ld gas gprof"
3996 noconfigdirs="$noconfigdirs gprof"
3999 noconfigdirs="$noconfigdirs target-libssp target-libstdc++-v3 target-libobjc"
4006 noconfigdirs="$noconfigdirs target-libgloss" ;;
4010 if test x${is_cross_compiler} = xno ; then
4015 noconfigdirs="$noconfigdirs sim"
4017 tilepro*-*-* | tilegx*-*-*)
4018 noconfigdirs="$noconfigdirs sim"
4021 noconfigdirs="$noconfigdirs bfd binutils gas gdb ld opcodes target-libgloss"
4024 noconfigdirs="$noconfigdirs target-newlib target-libgloss"
4027 noconfigdirs="$noconfigdirs ld"
4031 # If we aren't building newlib, then don't build libgloss, since libgloss
4032 # depends upon some newlib header files.
4033 case "${noconfigdirs}" in
4034 *target-libgloss*) ;;
4035 *target-newlib*) noconfigdirs="$noconfigdirs target-libgloss" ;;
4038 # Work in distributions that contain no compiler tools, like Autoconf.
4039 host_makefile_frag=/dev/null
4040 if test -d ${srcdir}/config ; then
4042 i[3456789]86-*-msdosdjgpp*)
4043 host_makefile_frag="config/mh-djgpp"
4047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to see if cat works as expected" >&5
4048 $as_echo_n "checking to see if cat works as expected... " >&6; }
4049 echo a >cygwin-cat-check
4050 if test `cat cygwin-cat-check` = a ; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4053 $as_echo "yes" >&6; }
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057 $as_echo "no" >&6; }
4058 as_fn_error $? "The cat command does not ignore carriage return characters.
4059 Please either mount the build directory in binary mode or run the following
4060 commands before running any configure script:
4066 host_makefile_frag="config/mh-cygwin"
4069 host_makefile_frag="config/mh-mingw"
4072 host_makefile_frag="config/mh-alpha-linux"
4075 host_makefile_frag="config/mh-pa-hpux10"
4078 host_makefile_frag="config/mh-pa"
4081 host_makefile_frag="config/mh-pa"
4083 i?86-*-darwin[89]* | i?86-*-darwin1[0-7]* | powerpc*-*-darwin*)
4084 host_makefile_frag="config/mh-darwin"
4087 host_makefile_frag="config/mh-ppc-aix"
4090 host_makefile_frag="config/mh-ppc-aix"
4095 if test "${build}" != "${host}" ; then
4096 AR_FOR_BUILD=${AR_FOR_BUILD-ar}
4097 AS_FOR_BUILD=${AS_FOR_BUILD-as}
4098 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
4099 CPP_FOR_BUILD="${CPP_FOR_BUILD-\$(CC_FOR_BUILD) -E}"
4100 CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}
4101 DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}
4102 GFORTRAN_FOR_BUILD=${GFORTRAN_FOR_BUILD-gfortran}
4103 GOC_FOR_BUILD=${GOC_FOR_BUILD-gccgo}
4104 GDC_FOR_BUILD=${GDC_FOR_BUILD-gdc}
4105 DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}
4106 LD_FOR_BUILD=${LD_FOR_BUILD-ld}
4107 NM_FOR_BUILD=${NM_FOR_BUILD-nm}
4108 RANLIB_FOR_BUILD=${RANLIB_FOR_BUILD-ranlib}
4109 WINDRES_FOR_BUILD=${WINDRES_FOR_BUILD-windres}
4110 WINDMC_FOR_BUILD=${WINDMC_FOR_BUILD-windmc}
4112 AR_FOR_BUILD="\$(AR)"
4113 AS_FOR_BUILD="\$(AS)"
4114 CC_FOR_BUILD="\$(CC)"
4115 CXX_FOR_BUILD="\$(CXX)"
4116 DSYMUTIL_FOR_BUILD="\$(DSYMUTIL)"
4117 GFORTRAN_FOR_BUILD="\$(GFORTRAN)"
4118 GOC_FOR_BUILD="\$(GOC)"
4119 GDC_FOR_BUILD="\$(GDC)"
4120 DLLTOOL_FOR_BUILD="\$(DLLTOOL)"
4121 LD_FOR_BUILD="\$(LD)"
4122 NM_FOR_BUILD="\$(NM)"
4123 RANLIB_FOR_BUILD="\$(RANLIB)"
4124 WINDRES_FOR_BUILD="\$(WINDRES)"
4125 WINDMC_FOR_BUILD="\$(WINDMC)"
4129 ac_cpp='$CPP $CPPFLAGS'
4130 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4131 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4132 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4133 if test -n "$ac_tool_prefix"; then
4134 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4135 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4137 $as_echo_n "checking for $ac_word... " >&6; }
4138 if ${ac_cv_prog_CC+:} false; then :
4139 $as_echo_n "(cached) " >&6
4141 if test -n "$CC"; then
4142 ac_cv_prog_CC="$CC" # Let the user override the test.
4144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4148 test -z "$as_dir" && as_dir=.
4149 for ac_exec_ext in '' $ac_executable_extensions; do
4150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4151 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4162 if test -n "$CC"; then
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4164 $as_echo "$CC" >&6; }
4166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4167 $as_echo "no" >&6; }
4172 if test -z "$ac_cv_prog_CC"; then
4174 # Extract the first word of "gcc", so it can be a program name with args.
4175 set dummy gcc; ac_word=$2
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4177 $as_echo_n "checking for $ac_word... " >&6; }
4178 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4179 $as_echo_n "(cached) " >&6
4181 if test -n "$ac_ct_CC"; then
4182 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4188 test -z "$as_dir" && as_dir=.
4189 for ac_exec_ext in '' $ac_executable_extensions; do
4190 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4191 ac_cv_prog_ac_ct_CC="gcc"
4192 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4202 if test -n "$ac_ct_CC"; then
4203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4204 $as_echo "$ac_ct_CC" >&6; }
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4207 $as_echo "no" >&6; }
4210 if test "x$ac_ct_CC" = x; then
4213 case $cross_compiling:$ac_tool_warned in
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4216 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4217 ac_tool_warned=yes ;;
4225 if test -z "$CC"; then
4226 if test -n "$ac_tool_prefix"; then
4227 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4228 set dummy ${ac_tool_prefix}cc; ac_word=$2
4229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4230 $as_echo_n "checking for $ac_word... " >&6; }
4231 if ${ac_cv_prog_CC+:} false; then :
4232 $as_echo_n "(cached) " >&6
4234 if test -n "$CC"; then
4235 ac_cv_prog_CC="$CC" # Let the user override the test.
4237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4241 test -z "$as_dir" && as_dir=.
4242 for ac_exec_ext in '' $ac_executable_extensions; do
4243 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4244 ac_cv_prog_CC="${ac_tool_prefix}cc"
4245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4255 if test -n "$CC"; then
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4257 $as_echo "$CC" >&6; }
4259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4260 $as_echo "no" >&6; }
4266 if test -z "$CC"; then
4267 # Extract the first word of "cc", so it can be a program name with args.
4268 set dummy cc; ac_word=$2
4269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4270 $as_echo_n "checking for $ac_word... " >&6; }
4271 if ${ac_cv_prog_CC+:} false; then :
4272 $as_echo_n "(cached) " >&6
4274 if test -n "$CC"; then
4275 ac_cv_prog_CC="$CC" # Let the user override the test.
4278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4282 test -z "$as_dir" && as_dir=.
4283 for ac_exec_ext in '' $ac_executable_extensions; do
4284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4285 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4286 ac_prog_rejected=yes
4290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 if test $ac_prog_rejected = yes; then
4298 # We found a bogon in the path, so make sure we never use it.
4299 set dummy $ac_cv_prog_CC
4301 if test $# != 0; then
4302 # We chose a different compiler from the bogus one.
4303 # However, it has the same basename, so the bogon will be chosen
4304 # first if we set CC to just the basename; use the full file name.
4306 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4312 if test -n "$CC"; then
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4314 $as_echo "$CC" >&6; }
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4317 $as_echo "no" >&6; }
4322 if test -z "$CC"; then
4323 if test -n "$ac_tool_prefix"; then
4324 for ac_prog in cl.exe
4326 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4327 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4329 $as_echo_n "checking for $ac_word... " >&6; }
4330 if ${ac_cv_prog_CC+:} false; then :
4331 $as_echo_n "(cached) " >&6
4333 if test -n "$CC"; then
4334 ac_cv_prog_CC="$CC" # Let the user override the test.
4336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4340 test -z "$as_dir" && as_dir=.
4341 for ac_exec_ext in '' $ac_executable_extensions; do
4342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4343 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4354 if test -n "$CC"; then
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4356 $as_echo "$CC" >&6; }
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4363 test -n "$CC" && break
4366 if test -z "$CC"; then
4368 for ac_prog in cl.exe
4370 # Extract the first word of "$ac_prog", so it can be a program name with args.
4371 set dummy $ac_prog; ac_word=$2
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4373 $as_echo_n "checking for $ac_word... " >&6; }
4374 if ${ac_cv_prog_ac_ct_CC+:} false; then :
4375 $as_echo_n "(cached) " >&6
4377 if test -n "$ac_ct_CC"; then
4378 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 test -z "$as_dir" && as_dir=.
4385 for ac_exec_ext in '' $ac_executable_extensions; do
4386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4387 ac_cv_prog_ac_ct_CC="$ac_prog"
4388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4397 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4398 if test -n "$ac_ct_CC"; then
4399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4400 $as_echo "$ac_ct_CC" >&6; }
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4403 $as_echo "no" >&6; }
4407 test -n "$ac_ct_CC" && break
4410 if test "x$ac_ct_CC" = x; then
4413 case $cross_compiling:$ac_tool_warned in
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4416 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4417 ac_tool_warned=yes ;;
4426 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4428 as_fn_error $? "no acceptable C compiler found in \$PATH
4429 See \`config.log' for more details" "$LINENO" 5; }
4431 # Provide some information about the compiler.
4432 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4435 for ac_option in --version -v -V -qversion; do
4436 { { ac_try="$ac_compiler $ac_option >&5"
4438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4439 *) ac_try_echo=$ac_try;;
4441 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4442 $as_echo "$ac_try_echo"; } >&5
4443 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4445 if test -s conftest.err; then
4447 ... rest of stderr output deleted ...
4448 10q' conftest.err >conftest.er1
4449 cat conftest.er1 >&5
4451 rm -f conftest.er1 conftest.err
4452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4453 test $ac_status = 0; }
4456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457 /* end confdefs.h. */
4467 ac_clean_files_save=$ac_clean_files
4468 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
4469 # Try to create an executable without -o first, disregard a.out.
4470 # It will help us diagnose broken compilers, and finding out an intuition
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4473 $as_echo_n "checking whether the C compiler works... " >&6; }
4474 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4476 # The possible output files:
4477 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4480 for ac_file in $ac_files
4483 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4484 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4489 if { { ac_try="$ac_link_default"
4491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4492 *) ac_try_echo=$ac_try;;
4494 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4495 $as_echo "$ac_try_echo"; } >&5
4496 (eval "$ac_link_default") 2>&5
4498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4499 test $ac_status = 0; }; then :
4500 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4501 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4502 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4503 # so that the user can short-circuit this test for compilers unknown to
4505 for ac_file in $ac_files ''
4507 test -f "$ac_file" || continue
4509 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4512 # We found the default executable, but exeext='' is most
4516 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4518 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4520 # We set ac_cv_exeext here because the later test for it is not
4521 # safe: cross compilers may not add the suffix if given an `-o'
4522 # argument, so we may need to know it at that point already.
4523 # Even if this section looks crufty: it has the advantage of
4530 test "$ac_cv_exeext" = no && ac_cv_exeext=
4535 if test -z "$ac_file"; then :
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4537 $as_echo "no" >&6; }
4538 $as_echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4541 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4542 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4543 as_fn_error 77 "C compiler cannot create executables
4544 See \`config.log' for more details" "$LINENO" 5; }
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4547 $as_echo "yes" >&6; }
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4550 $as_echo_n "checking for C compiler default output file name... " >&6; }
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4552 $as_echo "$ac_file" >&6; }
4553 ac_exeext=$ac_cv_exeext
4555 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4556 ac_clean_files=$ac_clean_files_save
4557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4558 $as_echo_n "checking for suffix of executables... " >&6; }
4559 if { { ac_try="$ac_link"
4561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4562 *) ac_try_echo=$ac_try;;
4564 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4565 $as_echo "$ac_try_echo"; } >&5
4566 (eval "$ac_link") 2>&5
4568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4569 test $ac_status = 0; }; then :
4570 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4571 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4572 # work properly (i.e., refer to `conftest.exe'), while it won't with
4574 for ac_file in conftest.exe conftest conftest.*; do
4575 test -f "$ac_file" || continue
4577 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4578 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4584 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4585 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4586 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4587 See \`config.log' for more details" "$LINENO" 5; }
4589 rm -f conftest conftest$ac_cv_exeext
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4591 $as_echo "$ac_cv_exeext" >&6; }
4593 rm -f conftest.$ac_ext
4594 EXEEXT=$ac_cv_exeext
4596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4597 /* end confdefs.h. */
4602 FILE *f = fopen ("conftest.out", "w");
4603 return ferror (f) || fclose (f) != 0;
4609 ac_clean_files="$ac_clean_files conftest.out"
4610 # Check that the compiler produces executables we can run. If not, either
4611 # the compiler is broken, or we cross compile.
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4613 $as_echo_n "checking whether we are cross compiling... " >&6; }
4614 if test "$cross_compiling" != yes; then
4615 { { ac_try="$ac_link"
4617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4618 *) ac_try_echo=$ac_try;;
4620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4621 $as_echo "$ac_try_echo"; } >&5
4622 (eval "$ac_link") 2>&5
4624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4625 test $ac_status = 0; }
4626 if { ac_try='./conftest$ac_cv_exeext'
4627 { { case "(($ac_try" in
4628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4629 *) ac_try_echo=$ac_try;;
4631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4632 $as_echo "$ac_try_echo"; } >&5
4633 (eval "$ac_try") 2>&5
4635 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4636 test $ac_status = 0; }; }; then
4639 if test "$cross_compiling" = maybe; then
4642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4643 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4644 as_fn_error $? "cannot run C compiled programs.
4645 If you meant to cross compile, use \`--host'.
4646 See \`config.log' for more details" "$LINENO" 5; }
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4651 $as_echo "$cross_compiling" >&6; }
4653 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4654 ac_clean_files=$ac_clean_files_save
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4656 $as_echo_n "checking for suffix of object files... " >&6; }
4657 if ${ac_cv_objext+:} false; then :
4658 $as_echo_n "(cached) " >&6
4660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4661 /* end confdefs.h. */
4671 rm -f conftest.o conftest.obj
4672 if { { ac_try="$ac_compile"
4674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4675 *) ac_try_echo=$ac_try;;
4677 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4678 $as_echo "$ac_try_echo"; } >&5
4679 (eval "$ac_compile") 2>&5
4681 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4682 test $ac_status = 0; }; then :
4683 for ac_file in conftest.o conftest.obj conftest.*; do
4684 test -f "$ac_file" || continue;
4686 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4687 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4692 $as_echo "$as_me: failed program was:" >&5
4693 sed 's/^/| /' conftest.$ac_ext >&5
4695 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4696 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4697 as_fn_error $? "cannot compute suffix of object files: cannot compile
4698 See \`config.log' for more details" "$LINENO" 5; }
4700 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4703 $as_echo "$ac_cv_objext" >&6; }
4704 OBJEXT=$ac_cv_objext
4706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4707 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4708 if ${ac_cv_c_compiler_gnu+:} false; then :
4709 $as_echo_n "(cached) " >&6
4711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4712 /* end confdefs.h. */
4725 if ac_fn_c_try_compile "$LINENO"; then :
4730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4731 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4735 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4736 if test $ac_compiler_gnu = yes; then
4741 ac_test_CFLAGS=${CFLAGS+set}
4742 ac_save_CFLAGS=$CFLAGS
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4744 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4745 if ${ac_cv_prog_cc_g+:} false; then :
4746 $as_echo_n "(cached) " >&6
4748 ac_save_c_werror_flag=$ac_c_werror_flag
4749 ac_c_werror_flag=yes
4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4753 /* end confdefs.h. */
4763 if ac_fn_c_try_compile "$LINENO"; then :
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4778 if ac_fn_c_try_compile "$LINENO"; then :
4781 ac_c_werror_flag=$ac_save_c_werror_flag
4783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4784 /* end confdefs.h. */
4794 if ac_fn_c_try_compile "$LINENO"; then :
4797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4799 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4802 ac_c_werror_flag=$ac_save_c_werror_flag
4804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4805 $as_echo "$ac_cv_prog_cc_g" >&6; }
4806 if test "$ac_test_CFLAGS" = set; then
4807 CFLAGS=$ac_save_CFLAGS
4808 elif test $ac_cv_prog_cc_g = yes; then
4809 if test "$GCC" = yes; then
4815 if test "$GCC" = yes; then
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4822 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4823 if ${ac_cv_prog_cc_c89+:} false; then :
4824 $as_echo_n "(cached) " >&6
4826 ac_cv_prog_cc_c89=no
4828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4829 /* end confdefs.h. */
4833 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4834 struct buf { int x; };
4835 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4836 static char *e (p, i)
4842 static char *f (char * (*g) (char **, int), char **p, ...)
4847 s = g (p, va_arg (v,int));
4852 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4853 function prototypes and stuff, but not '\xHH' hex character constants.
4854 These don't provoke an error unfortunately, instead are silently treated
4855 as 'x'. The following induces an error, until -std is added to get
4856 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4857 array size at least. It's necessary to write '\x00'==0 to get something
4858 that's true only with -std. */
4859 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4861 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4862 inside strings and character constants. */
4864 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4866 int test (int i, double x);
4867 struct s1 {int (*f) (int a);};
4868 struct s2 {int (*f) (double a);};
4869 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4875 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4880 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4881 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4883 CC="$ac_save_CC $ac_arg"
4884 if ac_fn_c_try_compile "$LINENO"; then :
4885 ac_cv_prog_cc_c89=$ac_arg
4887 rm -f core conftest.err conftest.$ac_objext
4888 test "x$ac_cv_prog_cc_c89" != "xno" && break
4890 rm -f conftest.$ac_ext
4895 case "x$ac_cv_prog_cc_c89" in
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4898 $as_echo "none needed" >&6; } ;;
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4901 $as_echo "unsupported" >&6; } ;;
4903 CC="$CC $ac_cv_prog_cc_c89"
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4905 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4907 if test "x$ac_cv_prog_cc_c89" != xno; then :
4912 ac_cpp='$CPP $CPPFLAGS'
4913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
4918 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
4919 if ${ac_cv_prog_cc_c99+:} false; then :
4920 $as_echo_n "(cached) " >&6
4922 ac_cv_prog_cc_c99=no
4924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4925 /* end confdefs.h. */
4927 #include <stdbool.h>
4932 // Check varargs macros. These examples are taken from C99 6.10.3.5.
4933 #define debug(...) fprintf (stderr, __VA_ARGS__)
4934 #define showlist(...) puts (#__VA_ARGS__)
4935 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
4937 test_varargs_macros (void)
4942 debug ("X = %d\n", x);
4943 showlist (The first, second, and third items.);
4944 report (x>y, "x is %d but y is %d", x, y);
4947 // Check long long types.
4948 #define BIG64 18446744073709551615ull
4949 #define BIG32 4294967295ul
4950 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
4952 your preprocessor is broken;
4956 your preprocessor is broken;
4958 static long long int bignum = -9223372036854775807LL;
4959 static unsigned long long int ubignum = BIG64;
4961 struct incomplete_array
4969 const wchar_t *name;
4973 typedef const char *ccp;
4976 test_restrict (ccp restrict text)
4978 // See if C++-style comments work.
4979 // Iterate through items via the restricted pointer.
4980 // Also check for declarations in for loops.
4981 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
4986 // Check varargs and va_copy.
4988 test_varargs (const char *format, ...)
4991 va_start (args, format);
4993 va_copy (args_copy, args);
5004 str = va_arg (args_copy, const char *);
5007 number = va_arg (args_copy, int);
5010 fnumber = va_arg (args_copy, double);
5025 _Bool success = false;
5028 if (test_restrict ("String literal") == 0)
5030 char *restrict newvar = "Another string";
5033 test_varargs ("s, d' f .", "string", 65, 34.234);
5034 test_varargs_macros ();
5036 // Check flexible array members.
5037 struct incomplete_array *ia =
5038 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
5040 for (int i = 0; i < ia->datasize; ++i)
5041 ia->data[i] = i * 1.234;
5043 // Check named initializers.
5044 struct named_init ni = {
5046 .name = L"Test wide string",
5047 .average = 543.34343,
5052 int dynamic_array[ni.number];
5053 dynamic_array[ni.number - 1] = 543;
5055 // work around unused variable warnings
5056 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
5057 || dynamic_array[ni.number - 1] != 543);
5063 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
5065 CC="$ac_save_CC $ac_arg"
5066 if ac_fn_c_try_compile "$LINENO"; then :
5067 ac_cv_prog_cc_c99=$ac_arg
5069 rm -f core conftest.err conftest.$ac_objext
5070 test "x$ac_cv_prog_cc_c99" != "xno" && break
5072 rm -f conftest.$ac_ext
5077 case "x$ac_cv_prog_cc_c99" in
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5080 $as_echo "none needed" >&6; } ;;
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5083 $as_echo "unsupported" >&6; } ;;
5085 CC="$CC $ac_cv_prog_cc_c99"
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
5087 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
5089 if test "x$ac_cv_prog_cc_c99" != xno; then :
5095 ac_cpp='$CXXCPP $CPPFLAGS'
5096 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5097 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5098 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5099 if test -z "$CXX"; then
5100 if test -n "$CCC"; then
5103 if test -n "$ac_tool_prefix"; then
5104 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5106 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5107 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109 $as_echo_n "checking for $ac_word... " >&6; }
5110 if ${ac_cv_prog_CXX+:} false; then :
5111 $as_echo_n "(cached) " >&6
5113 if test -n "$CXX"; then
5114 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5120 test -z "$as_dir" && as_dir=.
5121 for ac_exec_ext in '' $ac_executable_extensions; do
5122 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5123 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5134 if test -n "$CXX"; then
5135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5136 $as_echo "$CXX" >&6; }
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5139 $as_echo "no" >&6; }
5143 test -n "$CXX" && break
5146 if test -z "$CXX"; then
5148 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5150 # Extract the first word of "$ac_prog", so it can be a program name with args.
5151 set dummy $ac_prog; ac_word=$2
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153 $as_echo_n "checking for $ac_word... " >&6; }
5154 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5155 $as_echo_n "(cached) " >&6
5157 if test -n "$ac_ct_CXX"; then
5158 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 test -z "$as_dir" && as_dir=.
5165 for ac_exec_ext in '' $ac_executable_extensions; do
5166 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5167 ac_cv_prog_ac_ct_CXX="$ac_prog"
5168 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5177 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5178 if test -n "$ac_ct_CXX"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5180 $as_echo "$ac_ct_CXX" >&6; }
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5183 $as_echo "no" >&6; }
5187 test -n "$ac_ct_CXX" && break
5190 if test "x$ac_ct_CXX" = x; then
5193 case $cross_compiling:$ac_tool_warned in
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5197 ac_tool_warned=yes ;;
5205 # Provide some information about the compiler.
5206 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5209 for ac_option in --version -v -V -qversion; do
5210 { { ac_try="$ac_compiler $ac_option >&5"
5212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5213 *) ac_try_echo=$ac_try;;
5215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5216 $as_echo "$ac_try_echo"; } >&5
5217 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5219 if test -s conftest.err; then
5221 ... rest of stderr output deleted ...
5222 10q' conftest.err >conftest.er1
5223 cat conftest.er1 >&5
5225 rm -f conftest.er1 conftest.err
5226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5227 test $ac_status = 0; }
5230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5231 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5232 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5233 $as_echo_n "(cached) " >&6
5235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5236 /* end confdefs.h. */
5249 if ac_fn_cxx_try_compile "$LINENO"; then :
5254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5255 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5259 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5260 if test $ac_compiler_gnu = yes; then
5265 ac_test_CXXFLAGS=${CXXFLAGS+set}
5266 ac_save_CXXFLAGS=$CXXFLAGS
5267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5268 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5269 if ${ac_cv_prog_cxx_g+:} false; then :
5270 $as_echo_n "(cached) " >&6
5272 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5273 ac_cxx_werror_flag=yes
5276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5277 /* end confdefs.h. */
5287 if ac_fn_cxx_try_compile "$LINENO"; then :
5288 ac_cv_prog_cxx_g=yes
5291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5292 /* end confdefs.h. */
5302 if ac_fn_cxx_try_compile "$LINENO"; then :
5305 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5318 if ac_fn_cxx_try_compile "$LINENO"; then :
5319 ac_cv_prog_cxx_g=yes
5321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5325 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5326 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5329 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5330 if test "$ac_test_CXXFLAGS" = set; then
5331 CXXFLAGS=$ac_save_CXXFLAGS
5332 elif test $ac_cv_prog_cxx_g = yes; then
5333 if test "$GXX" = yes; then
5339 if test "$GXX" = yes; then
5346 ac_cpp='$CPP $CPPFLAGS'
5347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5352 # We must set the default linker to the linker used by gcc for the correct
5353 # operation of libtool. If LD is not defined and we are using gcc, try to
5354 # set the LD default to the ld used by gcc.
5355 if test -z "$LD"; then
5356 if test "$GCC" = yes; then
5359 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
5361 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
5363 case $gcc_prog_ld in
5364 # Accept absolute paths.
5365 [\\/]* | [A-Za-z]:[\\/]*)
5366 LD="$gcc_prog_ld" ;;
5371 # Check whether -static-libstdc++ -static-libgcc is supported.
5373 if test "$GCC" = yes; then
5374 saved_LDFLAGS="$LDFLAGS"
5376 LDFLAGS="$LDFLAGS -static-libstdc++ -static-libgcc"
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ accepts -static-libstdc++ -static-libgcc" >&5
5378 $as_echo_n "checking whether g++ accepts -static-libstdc++ -static-libgcc... " >&6; }
5380 ac_cpp='$CXXCPP $CPPFLAGS'
5381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5389 #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
5390 #error -static-libstdc++ not implemented
5394 if ac_fn_cxx_try_link "$LINENO"; then :
5395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5396 $as_echo "yes" >&6; }; have_static_libs=yes
5398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5399 $as_echo "no" >&6; }
5401 rm -f core conftest.err conftest.$ac_objext \
5402 conftest$ac_exeext conftest.$ac_ext
5404 ac_cpp='$CPP $CPPFLAGS'
5405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5410 LDFLAGS="$saved_LDFLAGS"
5416 if test -n "$ac_tool_prefix"; then
5417 # Extract the first word of "${ac_tool_prefix}gnatbind", so it can be a program name with args.
5418 set dummy ${ac_tool_prefix}gnatbind; ac_word=$2
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5420 $as_echo_n "checking for $ac_word... " >&6; }
5421 if ${ac_cv_prog_GNATBIND+:} false; then :
5422 $as_echo_n "(cached) " >&6
5424 if test -n "$GNATBIND"; then
5425 ac_cv_prog_GNATBIND="$GNATBIND" # Let the user override the test.
5427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5431 test -z "$as_dir" && as_dir=.
5432 for ac_exec_ext in '' $ac_executable_extensions; do
5433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5434 ac_cv_prog_GNATBIND="${ac_tool_prefix}gnatbind"
5435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5444 GNATBIND=$ac_cv_prog_GNATBIND
5445 if test -n "$GNATBIND"; then
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATBIND" >&5
5447 $as_echo "$GNATBIND" >&6; }
5449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5450 $as_echo "no" >&6; }
5455 if test -z "$ac_cv_prog_GNATBIND"; then
5456 ac_ct_GNATBIND=$GNATBIND
5457 # Extract the first word of "gnatbind", so it can be a program name with args.
5458 set dummy gnatbind; ac_word=$2
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5460 $as_echo_n "checking for $ac_word... " >&6; }
5461 if ${ac_cv_prog_ac_ct_GNATBIND+:} false; then :
5462 $as_echo_n "(cached) " >&6
5464 if test -n "$ac_ct_GNATBIND"; then
5465 ac_cv_prog_ac_ct_GNATBIND="$ac_ct_GNATBIND" # Let the user override the test.
5467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5471 test -z "$as_dir" && as_dir=.
5472 for ac_exec_ext in '' $ac_executable_extensions; do
5473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5474 ac_cv_prog_ac_ct_GNATBIND="gnatbind"
5475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5484 ac_ct_GNATBIND=$ac_cv_prog_ac_ct_GNATBIND
5485 if test -n "$ac_ct_GNATBIND"; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATBIND" >&5
5487 $as_echo "$ac_ct_GNATBIND" >&6; }
5489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5490 $as_echo "no" >&6; }
5493 if test "x$ac_ct_GNATBIND" = x; then
5496 case $cross_compiling:$ac_tool_warned in
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5499 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5500 ac_tool_warned=yes ;;
5502 GNATBIND=$ac_ct_GNATBIND
5505 GNATBIND="$ac_cv_prog_GNATBIND"
5508 if test -n "$ac_tool_prefix"; then
5509 # Extract the first word of "${ac_tool_prefix}gnatmake", so it can be a program name with args.
5510 set dummy ${ac_tool_prefix}gnatmake; ac_word=$2
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5512 $as_echo_n "checking for $ac_word... " >&6; }
5513 if ${ac_cv_prog_GNATMAKE+:} false; then :
5514 $as_echo_n "(cached) " >&6
5516 if test -n "$GNATMAKE"; then
5517 ac_cv_prog_GNATMAKE="$GNATMAKE" # Let the user override the test.
5519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5523 test -z "$as_dir" && as_dir=.
5524 for ac_exec_ext in '' $ac_executable_extensions; do
5525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5526 ac_cv_prog_GNATMAKE="${ac_tool_prefix}gnatmake"
5527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5536 GNATMAKE=$ac_cv_prog_GNATMAKE
5537 if test -n "$GNATMAKE"; then
5538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNATMAKE" >&5
5539 $as_echo "$GNATMAKE" >&6; }
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5542 $as_echo "no" >&6; }
5547 if test -z "$ac_cv_prog_GNATMAKE"; then
5548 ac_ct_GNATMAKE=$GNATMAKE
5549 # Extract the first word of "gnatmake", so it can be a program name with args.
5550 set dummy gnatmake; ac_word=$2
5551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5552 $as_echo_n "checking for $ac_word... " >&6; }
5553 if ${ac_cv_prog_ac_ct_GNATMAKE+:} false; then :
5554 $as_echo_n "(cached) " >&6
5556 if test -n "$ac_ct_GNATMAKE"; then
5557 ac_cv_prog_ac_ct_GNATMAKE="$ac_ct_GNATMAKE" # Let the user override the test.
5559 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5563 test -z "$as_dir" && as_dir=.
5564 for ac_exec_ext in '' $ac_executable_extensions; do
5565 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5566 ac_cv_prog_ac_ct_GNATMAKE="gnatmake"
5567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5576 ac_ct_GNATMAKE=$ac_cv_prog_ac_ct_GNATMAKE
5577 if test -n "$ac_ct_GNATMAKE"; then
5578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GNATMAKE" >&5
5579 $as_echo "$ac_ct_GNATMAKE" >&6; }
5581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5582 $as_echo "no" >&6; }
5585 if test "x$ac_ct_GNATMAKE" = x; then
5588 case $cross_compiling:$ac_tool_warned in
5590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5591 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5592 ac_tool_warned=yes ;;
5594 GNATMAKE=$ac_ct_GNATMAKE
5597 GNATMAKE="$ac_cv_prog_GNATMAKE"
5600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler driver understands Ada" >&5
5601 $as_echo_n "checking whether compiler driver understands Ada... " >&6; }
5602 if ${acx_cv_cc_gcc_supports_ada+:} false; then :
5603 $as_echo_n "(cached) " >&6
5605 cat >conftest.adb <<EOF
5606 procedure conftest is begin null; end conftest;
5608 acx_cv_cc_gcc_supports_ada=no
5609 # There is a bug in old released versions of GCC which causes the
5610 # driver to exit successfully when the appropriate language module
5611 # has not been installed. This is fixed in 2.95.4, 3.0.2, and 3.1.
5612 # Therefore we must check for the error message as well as an
5613 # unsuccessful exit.
5614 # Other compilers, like HP Tru64 UNIX cc, exit successfully when
5615 # given a .adb file, but produce no object file. So we must check
5616 # if an object file was really produced to guard against this.
5617 errors=`(${CC} -c conftest.adb) 2>&1 || echo failure`
5618 if test x"$errors" = x && test -f conftest.$ac_objext; then
5619 acx_cv_cc_gcc_supports_ada=yes
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_cc_gcc_supports_ada" >&5
5624 $as_echo "$acx_cv_cc_gcc_supports_ada" >&6; }
5626 if test "x$GNATBIND" != xno && test "x$GNATMAKE" != xno && test x$acx_cv_cc_gcc_supports_ada != xno; then
5634 if test -n "$ac_tool_prefix"; then
5635 # Extract the first word of "${ac_tool_prefix}gdc", so it can be a program name with args.
5636 set dummy ${ac_tool_prefix}gdc; ac_word=$2
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5638 $as_echo_n "checking for $ac_word... " >&6; }
5639 if ${ac_cv_prog_GDC+:} false; then :
5640 $as_echo_n "(cached) " >&6
5642 if test -n "$GDC"; then
5643 ac_cv_prog_GDC="$GDC" # Let the user override the test.
5645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5649 test -z "$as_dir" && as_dir=.
5650 for ac_exec_ext in '' $ac_executable_extensions; do
5651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5652 ac_cv_prog_GDC="${ac_tool_prefix}gdc"
5653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5663 if test -n "$GDC"; then
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC" >&5
5665 $as_echo "$GDC" >&6; }
5667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5668 $as_echo "no" >&6; }
5673 if test -z "$ac_cv_prog_GDC"; then
5675 # Extract the first word of "gdc", so it can be a program name with args.
5676 set dummy gdc; ac_word=$2
5677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5678 $as_echo_n "checking for $ac_word... " >&6; }
5679 if ${ac_cv_prog_ac_ct_GDC+:} false; then :
5680 $as_echo_n "(cached) " >&6
5682 if test -n "$ac_ct_GDC"; then
5683 ac_cv_prog_ac_ct_GDC="$ac_ct_GDC" # Let the user override the test.
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5689 test -z "$as_dir" && as_dir=.
5690 for ac_exec_ext in '' $ac_executable_extensions; do
5691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5692 ac_cv_prog_ac_ct_GDC="gdc"
5693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5702 ac_ct_GDC=$ac_cv_prog_ac_ct_GDC
5703 if test -n "$ac_ct_GDC"; then
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_GDC" >&5
5705 $as_echo "$ac_ct_GDC" >&6; }
5707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5708 $as_echo "no" >&6; }
5711 if test "x$ac_ct_GDC" = x; then
5714 case $cross_compiling:$ac_tool_warned in
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5717 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5718 ac_tool_warned=yes ;;
5723 GDC="$ac_cv_prog_GDC"
5726 if test "x$GDC" != xno; then
5732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to compare bootstrapped objects" >&5
5733 $as_echo_n "checking how to compare bootstrapped objects... " >&6; }
5734 if ${gcc_cv_prog_cmp_skip+:} false; then :
5735 $as_echo_n "(cached) " >&6
5739 gcc_cv_prog_cmp_skip='tail -c +17 $$f1 > tmp-foo1; tail -c +17 $$f2 > tmp-foo2; cmp tmp-foo1 tmp-foo2'
5740 if cmp t1 t2 2 2 > /dev/null 2>&1; then
5741 if cmp t1 t2 1 1 > /dev/null 2>&1; then
5744 gcc_cv_prog_cmp_skip='cmp $$f1 $$f2 16 16'
5747 if cmp --ignore-initial=2 t1 t2 > /dev/null 2>&1; then
5748 if cmp --ignore-initial=1 t1 t2 > /dev/null 2>&1; then
5751 gcc_cv_prog_cmp_skip='cmp --ignore-initial=16 $$f1 $$f2'
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_prog_cmp_skip" >&5
5758 $as_echo "$gcc_cv_prog_cmp_skip" >&6; }
5759 do_compare="$gcc_cv_prog_cmp_skip"
5763 # Check whether --enable-bootstrap was given.
5764 if test "${enable_bootstrap+set}" = set; then :
5765 enableval=$enable_bootstrap;
5767 enable_bootstrap=default
5771 # Issue errors and warnings for invalid/strange bootstrap combinations.
5772 if test -r $srcdir/gcc/configure; then
5778 case "$have_compiler:$host:$target:$enable_bootstrap" in
5781 # Default behavior. Enable bootstrap if we have a compiler
5782 # and we are in a native configuration.
5783 yes:$build:$build:default)
5784 enable_bootstrap=yes ;;
5787 enable_bootstrap=no ;;
5789 # We have a compiler and we are in a native configuration, bootstrap is ok
5790 yes:$build:$build:yes)
5793 # Other configurations, but we have a compiler. Assume the user knows
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: trying to bootstrap a cross compiler" >&5
5797 $as_echo "$as_me: WARNING: trying to bootstrap a cross compiler" >&2;}
5800 # No compiler: if they passed --enable-bootstrap explicitly, fail
5802 as_fn_error $? "cannot bootstrap without a compiler" "$LINENO" 5 ;;
5804 # Fail if wrong command line
5806 as_fn_error $? "invalid option for --enable-bootstrap" "$LINENO" 5
5810 # When bootstrapping with GCC, build stage 1 in C++11 mode to ensure that a
5811 # C++11 compiler can still start the bootstrap. Otherwise, if building GCC,
5812 # require C++11 (or higher).
5813 if test "$enable_bootstrap:$GXX" = "yes:yes"; then
5814 CXX="$CXX -std=c++11"
5815 elif test "$have_compiler" = yes; then
5816 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
5818 ac_cpp='$CXXCPP $CPPFLAGS'
5819 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5820 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5821 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
5825 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
5826 if ${ax_cv_cxx_compile_cxx11+:} false; then :
5827 $as_echo_n "(cached) " >&6
5829 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5830 /* end confdefs.h. */
5833 // If the compiler admits that it is not ready for C++11, why torture it?
5834 // Hopefully, this will speed up the test.
5838 #error "This is not a C++ compiler"
5840 #elif __cplusplus < 201103L
5842 #error "This is not a C++11 compiler"
5849 namespace test_static_assert
5852 template <typename T>
5855 static_assert(sizeof(int) <= sizeof(T), "not big enough");
5860 namespace test_final_override
5869 struct Derived : public Base
5871 virtual ~Derived() override {}
5872 virtual void f() override {}
5877 namespace test_double_right_angle_brackets
5880 template < typename T >
5883 typedef check<void> single_type;
5884 typedef check<check<void>> double_type;
5885 typedef check<check<check<void>>> triple_type;
5886 typedef check<check<check<check<void>>>> quadruple_type;
5890 namespace test_decltype
5903 namespace test_type_deduction
5906 template < typename T1, typename T2 >
5909 static const bool value = false;
5912 template < typename T >
5913 struct is_same<T, T>
5915 static const bool value = true;
5918 template < typename T1, typename T2 >
5920 add(T1 a1, T2 a2) -> decltype(a1 + a2)
5926 test(const int c, volatile int v)
5928 static_assert(is_same<int, decltype(0)>::value == true, "");
5929 static_assert(is_same<int, decltype(c)>::value == false, "");
5930 static_assert(is_same<int, decltype(v)>::value == false, "");
5933 auto sumi = ac + av + 'x';
5934 auto sumf = ac + av + 1.0;
5935 static_assert(is_same<int, decltype(ac)>::value == true, "");
5936 static_assert(is_same<int, decltype(av)>::value == true, "");
5937 static_assert(is_same<int, decltype(sumi)>::value == true, "");
5938 static_assert(is_same<int, decltype(sumf)>::value == false, "");
5939 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
5940 return (sumf > 0.0) ? sumi : add(c, v);
5945 namespace test_noexcept
5948 int f() { return 0; }
5949 int g() noexcept { return 0; }
5951 static_assert(noexcept(f()) == false, "");
5952 static_assert(noexcept(g()) == true, "");
5956 namespace test_constexpr
5959 template < typename CharT >
5960 unsigned long constexpr
5961 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
5963 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
5966 template < typename CharT >
5967 unsigned long constexpr
5968 strlen_c(const CharT *const s) noexcept
5970 return strlen_c_r(s, 0UL);
5973 static_assert(strlen_c("") == 0UL, "");
5974 static_assert(strlen_c("1") == 1UL, "");
5975 static_assert(strlen_c("example") == 7UL, "");
5976 static_assert(strlen_c("another\0example") == 7UL, "");
5980 namespace test_rvalue_references
5986 static constexpr int value = N;
5989 answer<1> f(int&) { return answer<1>(); }
5990 answer<2> f(const int&) { return answer<2>(); }
5991 answer<3> f(int&&) { return answer<3>(); }
5998 static_assert(decltype(f(i))::value == 1, "");
5999 static_assert(decltype(f(c))::value == 2, "");
6000 static_assert(decltype(f(0))::value == 3, "");
6005 namespace test_uniform_initialization
6010 static const int zero {};
6011 static const int one {1};
6014 static_assert(test::zero == 0, "");
6015 static_assert(test::one == 1, "");
6019 namespace test_lambdas
6025 auto lambda1 = [](){};
6026 auto lambda2 = lambda1;
6034 auto a = [](int i, int j){ return i + j; }(1, 2);
6035 auto b = []() -> int { return '0'; }();
6036 auto c = [=](){ return a + b; }();
6037 auto d = [&](){ return c; }();
6038 auto e = [a, &b](int x) mutable {
6039 const auto identity = [](int y){ return y; };
6040 for (auto i = 0; i < a; ++i)
6042 return x + identity(a + b);
6044 return a + b + c + d + e;
6050 const auto nullary = [](){ return 0; };
6051 const auto unary = [](int x){ return x; };
6052 using nullary_t = decltype(nullary);
6053 using unary_t = decltype(unary);
6054 const auto higher1st = [](nullary_t f){ return f(); };
6055 const auto higher2nd = [unary](nullary_t f1){
6056 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6058 return higher1st(nullary) + higher2nd(nullary)(unary);
6063 namespace test_variadic_templates
6069 template <int N0, int... N1toN>
6070 struct sum<N0, N1toN...>
6072 static constexpr auto value = N0 + sum<N1toN...>::value;
6078 static constexpr auto value = 0;
6081 static_assert(sum<>::value == 0, "");
6082 static_assert(sum<1>::value == 1, "");
6083 static_assert(sum<23>::value == 23, "");
6084 static_assert(sum<1, 2>::value == 3, "");
6085 static_assert(sum<5, 5, 11>::value == 21, "");
6086 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6090 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6091 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6093 namespace test_template_alias_sfinae
6098 template<typename T>
6099 using member = typename T::member_type;
6101 template<typename T>
6104 template<typename T>
6105 void func(member<T>*) {}
6109 void test() { func<foo>(0); }
6113 } // namespace cxx11
6115 #endif // __cplusplus >= 201103L
6120 if ac_fn_cxx_try_compile "$LINENO"; then :
6121 ax_cv_cxx_compile_cxx11=yes
6123 ax_cv_cxx_compile_cxx11=no
6125 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
6128 $as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
6129 if test x$ax_cv_cxx_compile_cxx11 = xyes; then
6133 if test x$ac_success = xno; then
6134 for alternative in ${ax_cxx_compile_alternatives}; do
6135 switch="-std=gnu++${alternative}"
6136 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6138 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6139 if eval \${$cachevar+:} false; then :
6140 $as_echo_n "(cached) " >&6
6144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6145 /* end confdefs.h. */
6148 // If the compiler admits that it is not ready for C++11, why torture it?
6149 // Hopefully, this will speed up the test.
6153 #error "This is not a C++ compiler"
6155 #elif __cplusplus < 201103L
6157 #error "This is not a C++11 compiler"
6164 namespace test_static_assert
6167 template <typename T>
6170 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6175 namespace test_final_override
6184 struct Derived : public Base
6186 virtual ~Derived() override {}
6187 virtual void f() override {}
6192 namespace test_double_right_angle_brackets
6195 template < typename T >
6198 typedef check<void> single_type;
6199 typedef check<check<void>> double_type;
6200 typedef check<check<check<void>>> triple_type;
6201 typedef check<check<check<check<void>>>> quadruple_type;
6205 namespace test_decltype
6218 namespace test_type_deduction
6221 template < typename T1, typename T2 >
6224 static const bool value = false;
6227 template < typename T >
6228 struct is_same<T, T>
6230 static const bool value = true;
6233 template < typename T1, typename T2 >
6235 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6241 test(const int c, volatile int v)
6243 static_assert(is_same<int, decltype(0)>::value == true, "");
6244 static_assert(is_same<int, decltype(c)>::value == false, "");
6245 static_assert(is_same<int, decltype(v)>::value == false, "");
6248 auto sumi = ac + av + 'x';
6249 auto sumf = ac + av + 1.0;
6250 static_assert(is_same<int, decltype(ac)>::value == true, "");
6251 static_assert(is_same<int, decltype(av)>::value == true, "");
6252 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6253 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6254 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6255 return (sumf > 0.0) ? sumi : add(c, v);
6260 namespace test_noexcept
6263 int f() { return 0; }
6264 int g() noexcept { return 0; }
6266 static_assert(noexcept(f()) == false, "");
6267 static_assert(noexcept(g()) == true, "");
6271 namespace test_constexpr
6274 template < typename CharT >
6275 unsigned long constexpr
6276 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6278 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6281 template < typename CharT >
6282 unsigned long constexpr
6283 strlen_c(const CharT *const s) noexcept
6285 return strlen_c_r(s, 0UL);
6288 static_assert(strlen_c("") == 0UL, "");
6289 static_assert(strlen_c("1") == 1UL, "");
6290 static_assert(strlen_c("example") == 7UL, "");
6291 static_assert(strlen_c("another\0example") == 7UL, "");
6295 namespace test_rvalue_references
6301 static constexpr int value = N;
6304 answer<1> f(int&) { return answer<1>(); }
6305 answer<2> f(const int&) { return answer<2>(); }
6306 answer<3> f(int&&) { return answer<3>(); }
6313 static_assert(decltype(f(i))::value == 1, "");
6314 static_assert(decltype(f(c))::value == 2, "");
6315 static_assert(decltype(f(0))::value == 3, "");
6320 namespace test_uniform_initialization
6325 static const int zero {};
6326 static const int one {1};
6329 static_assert(test::zero == 0, "");
6330 static_assert(test::one == 1, "");
6334 namespace test_lambdas
6340 auto lambda1 = [](){};
6341 auto lambda2 = lambda1;
6349 auto a = [](int i, int j){ return i + j; }(1, 2);
6350 auto b = []() -> int { return '0'; }();
6351 auto c = [=](){ return a + b; }();
6352 auto d = [&](){ return c; }();
6353 auto e = [a, &b](int x) mutable {
6354 const auto identity = [](int y){ return y; };
6355 for (auto i = 0; i < a; ++i)
6357 return x + identity(a + b);
6359 return a + b + c + d + e;
6365 const auto nullary = [](){ return 0; };
6366 const auto unary = [](int x){ return x; };
6367 using nullary_t = decltype(nullary);
6368 using unary_t = decltype(unary);
6369 const auto higher1st = [](nullary_t f){ return f(); };
6370 const auto higher2nd = [unary](nullary_t f1){
6371 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6373 return higher1st(nullary) + higher2nd(nullary)(unary);
6378 namespace test_variadic_templates
6384 template <int N0, int... N1toN>
6385 struct sum<N0, N1toN...>
6387 static constexpr auto value = N0 + sum<N1toN...>::value;
6393 static constexpr auto value = 0;
6396 static_assert(sum<>::value == 0, "");
6397 static_assert(sum<1>::value == 1, "");
6398 static_assert(sum<23>::value == 23, "");
6399 static_assert(sum<1, 2>::value == 3, "");
6400 static_assert(sum<5, 5, 11>::value == 21, "");
6401 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6405 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6406 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6408 namespace test_template_alias_sfinae
6413 template<typename T>
6414 using member = typename T::member_type;
6416 template<typename T>
6419 template<typename T>
6420 void func(member<T>*) {}
6424 void test() { func<foo>(0); }
6428 } // namespace cxx11
6430 #endif // __cplusplus >= 201103L
6435 if ac_fn_cxx_try_compile "$LINENO"; then :
6440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443 eval ac_res=\$$cachevar
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6445 $as_echo "$ac_res" >&6; }
6446 if eval test x\$$cachevar = xyes; then
6448 if test -n "$CXXCPP" ; then
6449 CXXCPP="$CXXCPP $switch"
6457 if test x$ac_success = xno; then
6458 for alternative in ${ax_cxx_compile_alternatives}; do
6459 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
6460 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
6462 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
6463 if eval \${$cachevar+:} false; then :
6464 $as_echo_n "(cached) " >&6
6468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6469 /* end confdefs.h. */
6472 // If the compiler admits that it is not ready for C++11, why torture it?
6473 // Hopefully, this will speed up the test.
6477 #error "This is not a C++ compiler"
6479 #elif __cplusplus < 201103L
6481 #error "This is not a C++11 compiler"
6488 namespace test_static_assert
6491 template <typename T>
6494 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6499 namespace test_final_override
6508 struct Derived : public Base
6510 virtual ~Derived() override {}
6511 virtual void f() override {}
6516 namespace test_double_right_angle_brackets
6519 template < typename T >
6522 typedef check<void> single_type;
6523 typedef check<check<void>> double_type;
6524 typedef check<check<check<void>>> triple_type;
6525 typedef check<check<check<check<void>>>> quadruple_type;
6529 namespace test_decltype
6542 namespace test_type_deduction
6545 template < typename T1, typename T2 >
6548 static const bool value = false;
6551 template < typename T >
6552 struct is_same<T, T>
6554 static const bool value = true;
6557 template < typename T1, typename T2 >
6559 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6565 test(const int c, volatile int v)
6567 static_assert(is_same<int, decltype(0)>::value == true, "");
6568 static_assert(is_same<int, decltype(c)>::value == false, "");
6569 static_assert(is_same<int, decltype(v)>::value == false, "");
6572 auto sumi = ac + av + 'x';
6573 auto sumf = ac + av + 1.0;
6574 static_assert(is_same<int, decltype(ac)>::value == true, "");
6575 static_assert(is_same<int, decltype(av)>::value == true, "");
6576 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6577 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6578 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6579 return (sumf > 0.0) ? sumi : add(c, v);
6584 namespace test_noexcept
6587 int f() { return 0; }
6588 int g() noexcept { return 0; }
6590 static_assert(noexcept(f()) == false, "");
6591 static_assert(noexcept(g()) == true, "");
6595 namespace test_constexpr
6598 template < typename CharT >
6599 unsigned long constexpr
6600 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6602 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6605 template < typename CharT >
6606 unsigned long constexpr
6607 strlen_c(const CharT *const s) noexcept
6609 return strlen_c_r(s, 0UL);
6612 static_assert(strlen_c("") == 0UL, "");
6613 static_assert(strlen_c("1") == 1UL, "");
6614 static_assert(strlen_c("example") == 7UL, "");
6615 static_assert(strlen_c("another\0example") == 7UL, "");
6619 namespace test_rvalue_references
6625 static constexpr int value = N;
6628 answer<1> f(int&) { return answer<1>(); }
6629 answer<2> f(const int&) { return answer<2>(); }
6630 answer<3> f(int&&) { return answer<3>(); }
6637 static_assert(decltype(f(i))::value == 1, "");
6638 static_assert(decltype(f(c))::value == 2, "");
6639 static_assert(decltype(f(0))::value == 3, "");
6644 namespace test_uniform_initialization
6649 static const int zero {};
6650 static const int one {1};
6653 static_assert(test::zero == 0, "");
6654 static_assert(test::one == 1, "");
6658 namespace test_lambdas
6664 auto lambda1 = [](){};
6665 auto lambda2 = lambda1;
6673 auto a = [](int i, int j){ return i + j; }(1, 2);
6674 auto b = []() -> int { return '0'; }();
6675 auto c = [=](){ return a + b; }();
6676 auto d = [&](){ return c; }();
6677 auto e = [a, &b](int x) mutable {
6678 const auto identity = [](int y){ return y; };
6679 for (auto i = 0; i < a; ++i)
6681 return x + identity(a + b);
6683 return a + b + c + d + e;
6689 const auto nullary = [](){ return 0; };
6690 const auto unary = [](int x){ return x; };
6691 using nullary_t = decltype(nullary);
6692 using unary_t = decltype(unary);
6693 const auto higher1st = [](nullary_t f){ return f(); };
6694 const auto higher2nd = [unary](nullary_t f1){
6695 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
6697 return higher1st(nullary) + higher2nd(nullary)(unary);
6702 namespace test_variadic_templates
6708 template <int N0, int... N1toN>
6709 struct sum<N0, N1toN...>
6711 static constexpr auto value = N0 + sum<N1toN...>::value;
6717 static constexpr auto value = 0;
6720 static_assert(sum<>::value == 0, "");
6721 static_assert(sum<1>::value == 1, "");
6722 static_assert(sum<23>::value == 23, "");
6723 static_assert(sum<1, 2>::value == 3, "");
6724 static_assert(sum<5, 5, 11>::value == 21, "");
6725 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
6729 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
6730 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
6732 namespace test_template_alias_sfinae
6737 template<typename T>
6738 using member = typename T::member_type;
6740 template<typename T>
6743 template<typename T>
6744 void func(member<T>*) {}
6748 void test() { func<foo>(0); }
6752 } // namespace cxx11
6754 #endif // __cplusplus >= 201103L
6759 if ac_fn_cxx_try_compile "$LINENO"; then :
6764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767 eval ac_res=\$$cachevar
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6769 $as_echo "$ac_res" >&6; }
6770 if eval test x\$$cachevar = xyes; then
6772 if test -n "$CXXCPP" ; then
6773 CXXCPP="$CXXCPP $switch"
6779 if test x$ac_success = xyes; then
6786 ac_cpp='$CPP $CPPFLAGS'
6787 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6788 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6789 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6791 if test x$ax_cxx_compile_cxx11_required = xtrue; then
6792 if test x$ac_success = xno; then
6793 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
6796 if test x$ac_success = xno; then
6798 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
6799 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
6803 $as_echo "#define HAVE_CXX11 1" >>confdefs.h
6809 if test "${build}" != "${host}"; then
6810 ax_cxx_compile_alternatives="11 0x" ax_cxx_compile_cxx11_required=true
6812 ac_cpp='$CXXCPP $CPPFLAGS'
6813 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6814 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6815 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6817 ax_cv_cxx_compile_cxx11_orig_cxx="$CXX"
6818 ax_cv_cxx_compile_cxx11_orig_cxxflags="$CXXFLAGS"
6819 ax_cv_cxx_compile_cxx11_orig_cppflags="$CPPFLAGS"
6820 CXX="$CXX_FOR_BUILD"
6821 CXXFLAGS="$CXXFLAGS_FOR_BUILD"
6822 CPPFLAGS="$CPPFLAGS_FOR_BUILD"
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
6824 $as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
6825 if ${ax_cv_cxx_compile_cxx11_FOR_BUILD+:} false; then :
6826 $as_echo_n "(cached) " >&6
6828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6829 /* end confdefs.h. */
6832 // If the compiler admits that it is not ready for C++11, why torture it?
6833 // Hopefully, this will speed up the test.
6837 #error "This is not a C++ compiler"
6839 #elif __cplusplus < 201103L
6841 #error "This is not a C++11 compiler"
6848 namespace test_static_assert
6851 template <typename T>
6854 static_assert(sizeof(int) <= sizeof(T), "not big enough");
6859 namespace test_final_override
6868 struct Derived : public Base
6870 virtual ~Derived() override {}
6871 virtual void f() override {}
6876 namespace test_double_right_angle_brackets
6879 template < typename T >
6882 typedef check<void> single_type;
6883 typedef check<check<void>> double_type;
6884 typedef check<check<check<void>>> triple_type;
6885 typedef check<check<check<check<void>>>> quadruple_type;
6889 namespace test_decltype
6902 namespace test_type_deduction
6905 template < typename T1, typename T2 >
6908 static const bool value = false;
6911 template < typename T >
6912 struct is_same<T, T>
6914 static const bool value = true;
6917 template < typename T1, typename T2 >
6919 add(T1 a1, T2 a2) -> decltype(a1 + a2)
6925 test(const int c, volatile int v)
6927 static_assert(is_same<int, decltype(0)>::value == true, "");
6928 static_assert(is_same<int, decltype(c)>::value == false, "");
6929 static_assert(is_same<int, decltype(v)>::value == false, "");
6932 auto sumi = ac + av + 'x';
6933 auto sumf = ac + av + 1.0;
6934 static_assert(is_same<int, decltype(ac)>::value == true, "");
6935 static_assert(is_same<int, decltype(av)>::value == true, "");
6936 static_assert(is_same<int, decltype(sumi)>::value == true, "");
6937 static_assert(is_same<int, decltype(sumf)>::value == false, "");
6938 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
6939 return (sumf > 0.0) ? sumi : add(c, v);
6944 namespace test_noexcept
6947 int f() { return 0; }
6948 int g() noexcept { return 0; }
6950 static_assert(noexcept(f()) == false, "");
6951 static_assert(noexcept(g()) == true, "");
6955 namespace test_constexpr
6958 template < typename CharT >
6959 unsigned long constexpr
6960 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
6962 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
6965 template < typename CharT >
6966 unsigned long constexpr
6967 strlen_c(const CharT *const s) noexcept
6969 return strlen_c_r(s, 0UL);
6972 static_assert(strlen_c("") == 0UL, "");
6973 static_assert(strlen_c("1") == 1UL, "");
6974 static_assert(strlen_c("example") == 7UL, "");
6975 static_assert(strlen_c("another\0example") == 7UL, "");
6979 namespace test_rvalue_references
6985 static constexpr int value = N;
6988 answer<1> f(int&) { return answer<1>(); }
6989 answer<2> f(const int&) { return answer<2>(); }
6990 answer<3> f(int&&) { return answer<3>(); }
6997 static_assert(decltype(f(i))::value == 1, "");
6998 static_assert(decltype(f(c))::value == 2, "");
6999 static_assert(decltype(f(0))::value == 3, "");
7004 namespace test_uniform_initialization
7009 static const int zero {};
7010 static const int one {1};
7013 static_assert(test::zero == 0, "");
7014 static_assert(test::one == 1, "");
7018 namespace test_lambdas
7024 auto lambda1 = [](){};
7025 auto lambda2 = lambda1;
7033 auto a = [](int i, int j){ return i + j; }(1, 2);
7034 auto b = []() -> int { return '0'; }();
7035 auto c = [=](){ return a + b; }();
7036 auto d = [&](){ return c; }();
7037 auto e = [a, &b](int x) mutable {
7038 const auto identity = [](int y){ return y; };
7039 for (auto i = 0; i < a; ++i)
7041 return x + identity(a + b);
7043 return a + b + c + d + e;
7049 const auto nullary = [](){ return 0; };
7050 const auto unary = [](int x){ return x; };
7051 using nullary_t = decltype(nullary);
7052 using unary_t = decltype(unary);
7053 const auto higher1st = [](nullary_t f){ return f(); };
7054 const auto higher2nd = [unary](nullary_t f1){
7055 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7057 return higher1st(nullary) + higher2nd(nullary)(unary);
7062 namespace test_variadic_templates
7068 template <int N0, int... N1toN>
7069 struct sum<N0, N1toN...>
7071 static constexpr auto value = N0 + sum<N1toN...>::value;
7077 static constexpr auto value = 0;
7080 static_assert(sum<>::value == 0, "");
7081 static_assert(sum<1>::value == 1, "");
7082 static_assert(sum<23>::value == 23, "");
7083 static_assert(sum<1, 2>::value == 3, "");
7084 static_assert(sum<5, 5, 11>::value == 21, "");
7085 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7089 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7090 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7092 namespace test_template_alias_sfinae
7097 template<typename T>
7098 using member = typename T::member_type;
7100 template<typename T>
7103 template<typename T>
7104 void func(member<T>*) {}
7108 void test() { func<foo>(0); }
7112 } // namespace cxx11
7114 #endif // __cplusplus >= 201103L
7119 if ac_fn_cxx_try_compile "$LINENO"; then :
7120 ax_cv_cxx_compile_cxx11_FOR_BUILD=yes
7122 ax_cv_cxx_compile_cxx11_FOR_BUILD=no
7124 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11_FOR_BUILD" >&5
7127 $as_echo "$ax_cv_cxx_compile_cxx11_FOR_BUILD" >&6; }
7128 if test x$ax_cv_cxx_compile_cxx11_FOR_BUILD = xyes; then
7132 if test x$ac_success = xno; then
7133 for alternative in ${ax_cxx_compile_alternatives}; do
7134 switch="-std=gnu++${alternative}"
7135 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7137 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7138 if eval \${$cachevar+:} false; then :
7139 $as_echo_n "(cached) " >&6
7143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7144 /* end confdefs.h. */
7147 // If the compiler admits that it is not ready for C++11, why torture it?
7148 // Hopefully, this will speed up the test.
7152 #error "This is not a C++ compiler"
7154 #elif __cplusplus < 201103L
7156 #error "This is not a C++11 compiler"
7163 namespace test_static_assert
7166 template <typename T>
7169 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7174 namespace test_final_override
7183 struct Derived : public Base
7185 virtual ~Derived() override {}
7186 virtual void f() override {}
7191 namespace test_double_right_angle_brackets
7194 template < typename T >
7197 typedef check<void> single_type;
7198 typedef check<check<void>> double_type;
7199 typedef check<check<check<void>>> triple_type;
7200 typedef check<check<check<check<void>>>> quadruple_type;
7204 namespace test_decltype
7217 namespace test_type_deduction
7220 template < typename T1, typename T2 >
7223 static const bool value = false;
7226 template < typename T >
7227 struct is_same<T, T>
7229 static const bool value = true;
7232 template < typename T1, typename T2 >
7234 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7240 test(const int c, volatile int v)
7242 static_assert(is_same<int, decltype(0)>::value == true, "");
7243 static_assert(is_same<int, decltype(c)>::value == false, "");
7244 static_assert(is_same<int, decltype(v)>::value == false, "");
7247 auto sumi = ac + av + 'x';
7248 auto sumf = ac + av + 1.0;
7249 static_assert(is_same<int, decltype(ac)>::value == true, "");
7250 static_assert(is_same<int, decltype(av)>::value == true, "");
7251 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7252 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7253 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7254 return (sumf > 0.0) ? sumi : add(c, v);
7259 namespace test_noexcept
7262 int f() { return 0; }
7263 int g() noexcept { return 0; }
7265 static_assert(noexcept(f()) == false, "");
7266 static_assert(noexcept(g()) == true, "");
7270 namespace test_constexpr
7273 template < typename CharT >
7274 unsigned long constexpr
7275 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7277 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7280 template < typename CharT >
7281 unsigned long constexpr
7282 strlen_c(const CharT *const s) noexcept
7284 return strlen_c_r(s, 0UL);
7287 static_assert(strlen_c("") == 0UL, "");
7288 static_assert(strlen_c("1") == 1UL, "");
7289 static_assert(strlen_c("example") == 7UL, "");
7290 static_assert(strlen_c("another\0example") == 7UL, "");
7294 namespace test_rvalue_references
7300 static constexpr int value = N;
7303 answer<1> f(int&) { return answer<1>(); }
7304 answer<2> f(const int&) { return answer<2>(); }
7305 answer<3> f(int&&) { return answer<3>(); }
7312 static_assert(decltype(f(i))::value == 1, "");
7313 static_assert(decltype(f(c))::value == 2, "");
7314 static_assert(decltype(f(0))::value == 3, "");
7319 namespace test_uniform_initialization
7324 static const int zero {};
7325 static const int one {1};
7328 static_assert(test::zero == 0, "");
7329 static_assert(test::one == 1, "");
7333 namespace test_lambdas
7339 auto lambda1 = [](){};
7340 auto lambda2 = lambda1;
7348 auto a = [](int i, int j){ return i + j; }(1, 2);
7349 auto b = []() -> int { return '0'; }();
7350 auto c = [=](){ return a + b; }();
7351 auto d = [&](){ return c; }();
7352 auto e = [a, &b](int x) mutable {
7353 const auto identity = [](int y){ return y; };
7354 for (auto i = 0; i < a; ++i)
7356 return x + identity(a + b);
7358 return a + b + c + d + e;
7364 const auto nullary = [](){ return 0; };
7365 const auto unary = [](int x){ return x; };
7366 using nullary_t = decltype(nullary);
7367 using unary_t = decltype(unary);
7368 const auto higher1st = [](nullary_t f){ return f(); };
7369 const auto higher2nd = [unary](nullary_t f1){
7370 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7372 return higher1st(nullary) + higher2nd(nullary)(unary);
7377 namespace test_variadic_templates
7383 template <int N0, int... N1toN>
7384 struct sum<N0, N1toN...>
7386 static constexpr auto value = N0 + sum<N1toN...>::value;
7392 static constexpr auto value = 0;
7395 static_assert(sum<>::value == 0, "");
7396 static_assert(sum<1>::value == 1, "");
7397 static_assert(sum<23>::value == 23, "");
7398 static_assert(sum<1, 2>::value == 3, "");
7399 static_assert(sum<5, 5, 11>::value == 21, "");
7400 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7404 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7405 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7407 namespace test_template_alias_sfinae
7412 template<typename T>
7413 using member = typename T::member_type;
7415 template<typename T>
7418 template<typename T>
7419 void func(member<T>*) {}
7423 void test() { func<foo>(0); }
7427 } // namespace cxx11
7429 #endif // __cplusplus >= 201103L
7434 if ac_fn_cxx_try_compile "$LINENO"; then :
7439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 eval ac_res=\$$cachevar
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7444 $as_echo "$ac_res" >&6; }
7445 if eval test x\$$cachevar = xyes; then
7447 if test -n "$CXXCPP" ; then
7448 CXXCPP="$CXXCPP $switch"
7456 if test x$ac_success = xno; then
7457 for alternative in ${ax_cxx_compile_alternatives}; do
7458 for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
7459 cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_FOR_BUILD_$switch" | $as_tr_sh`
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
7461 $as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
7462 if eval \${$cachevar+:} false; then :
7463 $as_echo_n "(cached) " >&6
7467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7468 /* end confdefs.h. */
7471 // If the compiler admits that it is not ready for C++11, why torture it?
7472 // Hopefully, this will speed up the test.
7476 #error "This is not a C++ compiler"
7478 #elif __cplusplus < 201103L
7480 #error "This is not a C++11 compiler"
7487 namespace test_static_assert
7490 template <typename T>
7493 static_assert(sizeof(int) <= sizeof(T), "not big enough");
7498 namespace test_final_override
7507 struct Derived : public Base
7509 virtual ~Derived() override {}
7510 virtual void f() override {}
7515 namespace test_double_right_angle_brackets
7518 template < typename T >
7521 typedef check<void> single_type;
7522 typedef check<check<void>> double_type;
7523 typedef check<check<check<void>>> triple_type;
7524 typedef check<check<check<check<void>>>> quadruple_type;
7528 namespace test_decltype
7541 namespace test_type_deduction
7544 template < typename T1, typename T2 >
7547 static const bool value = false;
7550 template < typename T >
7551 struct is_same<T, T>
7553 static const bool value = true;
7556 template < typename T1, typename T2 >
7558 add(T1 a1, T2 a2) -> decltype(a1 + a2)
7564 test(const int c, volatile int v)
7566 static_assert(is_same<int, decltype(0)>::value == true, "");
7567 static_assert(is_same<int, decltype(c)>::value == false, "");
7568 static_assert(is_same<int, decltype(v)>::value == false, "");
7571 auto sumi = ac + av + 'x';
7572 auto sumf = ac + av + 1.0;
7573 static_assert(is_same<int, decltype(ac)>::value == true, "");
7574 static_assert(is_same<int, decltype(av)>::value == true, "");
7575 static_assert(is_same<int, decltype(sumi)>::value == true, "");
7576 static_assert(is_same<int, decltype(sumf)>::value == false, "");
7577 static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
7578 return (sumf > 0.0) ? sumi : add(c, v);
7583 namespace test_noexcept
7586 int f() { return 0; }
7587 int g() noexcept { return 0; }
7589 static_assert(noexcept(f()) == false, "");
7590 static_assert(noexcept(g()) == true, "");
7594 namespace test_constexpr
7597 template < typename CharT >
7598 unsigned long constexpr
7599 strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
7601 return *s ? strlen_c_r(s + 1, acc + 1) : acc;
7604 template < typename CharT >
7605 unsigned long constexpr
7606 strlen_c(const CharT *const s) noexcept
7608 return strlen_c_r(s, 0UL);
7611 static_assert(strlen_c("") == 0UL, "");
7612 static_assert(strlen_c("1") == 1UL, "");
7613 static_assert(strlen_c("example") == 7UL, "");
7614 static_assert(strlen_c("another\0example") == 7UL, "");
7618 namespace test_rvalue_references
7624 static constexpr int value = N;
7627 answer<1> f(int&) { return answer<1>(); }
7628 answer<2> f(const int&) { return answer<2>(); }
7629 answer<3> f(int&&) { return answer<3>(); }
7636 static_assert(decltype(f(i))::value == 1, "");
7637 static_assert(decltype(f(c))::value == 2, "");
7638 static_assert(decltype(f(0))::value == 3, "");
7643 namespace test_uniform_initialization
7648 static const int zero {};
7649 static const int one {1};
7652 static_assert(test::zero == 0, "");
7653 static_assert(test::one == 1, "");
7657 namespace test_lambdas
7663 auto lambda1 = [](){};
7664 auto lambda2 = lambda1;
7672 auto a = [](int i, int j){ return i + j; }(1, 2);
7673 auto b = []() -> int { return '0'; }();
7674 auto c = [=](){ return a + b; }();
7675 auto d = [&](){ return c; }();
7676 auto e = [a, &b](int x) mutable {
7677 const auto identity = [](int y){ return y; };
7678 for (auto i = 0; i < a; ++i)
7680 return x + identity(a + b);
7682 return a + b + c + d + e;
7688 const auto nullary = [](){ return 0; };
7689 const auto unary = [](int x){ return x; };
7690 using nullary_t = decltype(nullary);
7691 using unary_t = decltype(unary);
7692 const auto higher1st = [](nullary_t f){ return f(); };
7693 const auto higher2nd = [unary](nullary_t f1){
7694 return [unary, f1](unary_t f2){ return f2(unary(f1())); };
7696 return higher1st(nullary) + higher2nd(nullary)(unary);
7701 namespace test_variadic_templates
7707 template <int N0, int... N1toN>
7708 struct sum<N0, N1toN...>
7710 static constexpr auto value = N0 + sum<N1toN...>::value;
7716 static constexpr auto value = 0;
7719 static_assert(sum<>::value == 0, "");
7720 static_assert(sum<1>::value == 1, "");
7721 static_assert(sum<23>::value == 23, "");
7722 static_assert(sum<1, 2>::value == 3, "");
7723 static_assert(sum<5, 5, 11>::value == 21, "");
7724 static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
7728 // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
7729 // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
7731 namespace test_template_alias_sfinae
7736 template<typename T>
7737 using member = typename T::member_type;
7739 template<typename T>
7742 template<typename T>
7743 void func(member<T>*) {}
7747 void test() { func<foo>(0); }
7751 } // namespace cxx11
7753 #endif // __cplusplus >= 201103L
7758 if ac_fn_cxx_try_compile "$LINENO"; then :
7763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7766 eval ac_res=\$$cachevar
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7768 $as_echo "$ac_res" >&6; }
7769 if eval test x\$$cachevar = xyes; then
7771 if test -n "$CXXCPP" ; then
7772 CXXCPP="$CXXCPP $switch"
7778 if test x$ac_success = xyes; then
7783 CXX_FOR_BUILD="$CXX"
7784 CXXFLAGS_FOR_BUILD="$CXXFLAGS"
7785 CPPFLAGS_FOR_BUILD="$CPPFLAGS"
7786 CXX="$ax_cv_cxx_compile_cxx11_orig_cxx"
7787 CXXFLAGS="$ax_cv_cxx_compile_cxx11_orig_cxxflags"
7788 CPPFLAGS="$ax_cv_cxx_compile_cxx11_orig_cppflags"
7790 ac_cpp='$CPP $CPPFLAGS'
7791 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7792 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7793 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7795 if test x$ax_cxx_compile_cxx11_required = xtrue; then
7796 if test x$ac_success = xno; then
7797 as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
7800 if test x$ac_success = xno; then
7801 HAVE_CXX11_FOR_BUILD=0
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
7803 $as_echo "$as_me: No compiler with C++11 support was found" >&6;}
7805 HAVE_CXX11_FOR_BUILD=1
7807 $as_echo "#define HAVE_CXX11_FOR_BUILD 1" >>confdefs.h
7815 # Used for setting $lt_cv_objdir
7816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
7817 $as_echo_n "checking for objdir... " >&6; }
7818 if ${lt_cv_objdir+:} false; then :
7819 $as_echo_n "(cached) " >&6
7821 rm -f .libs 2>/dev/null
7822 mkdir .libs 2>/dev/null
7823 if test -d .libs; then
7826 # MS-DOS does not allow filenames that begin with a dot.
7829 rmdir .libs 2>/dev/null
7831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
7832 $as_echo "$lt_cv_objdir" >&6; }
7833 objdir=$lt_cv_objdir
7839 cat >>confdefs.h <<_ACEOF
7840 #define LT_OBJDIR "$lt_cv_objdir/"
7845 # Check for GMP, MPFR and MPC
7846 gmplibs="-lmpc -lmpfr -lgmp"
7850 # Specify a location for mpc
7851 # check for this first so it ends up on the link line before mpfr.
7853 # Check whether --with-mpc was given.
7854 if test "${with_mpc+set}" = set; then :
7859 # Check whether --with-mpc-include was given.
7860 if test "${with_mpc_include+set}" = set; then :
7861 withval=$with_mpc_include;
7865 # Check whether --with-mpc-lib was given.
7866 if test "${with_mpc_lib+set}" = set; then :
7867 withval=$with_mpc_lib;
7871 if test "x$with_mpc" != x; then
7872 gmplibs="-L$with_mpc/lib $gmplibs"
7873 gmpinc="-I$with_mpc/include $gmpinc"
7875 if test "x$with_mpc_include" != x; then
7876 gmpinc="-I$with_mpc_include $gmpinc"
7878 if test "x$with_mpc_lib" != x; then
7879 gmplibs="-L$with_mpc_lib $gmplibs"
7881 if test "x$with_mpc$with_mpc_include$with_mpc_lib" = x && test -d ${srcdir}/mpc; then
7882 gmplibs='-L$$r/$(HOST_SUBDIR)/mpc/src/'"$lt_cv_objdir $gmplibs"
7883 gmpinc='-I$$s/mpc/src '"$gmpinc"
7884 # Do not test the mpc version. Assume that it is sufficient, since
7885 # it is in the source tree, and the library has not been built yet
7886 # but it would be included on the link line in the version check below
7887 # hence making the test fail.
7891 # Specify a location for mpfr
7892 # check for this first so it ends up on the link line before gmp.
7894 # Check whether --with-mpfr-dir was given.
7895 if test "${with_mpfr_dir+set}" = set; then :
7896 withval=$with_mpfr_dir; as_fn_error $? "The --with-mpfr-dir=PATH option has been removed.
7897 Use --with-mpfr=PATH or --with-mpfr-include=PATH plus --with-mpfr-lib=PATH" "$LINENO" 5
7902 # Check whether --with-mpfr was given.
7903 if test "${with_mpfr+set}" = set; then :
7908 # Check whether --with-mpfr-include was given.
7909 if test "${with_mpfr_include+set}" = set; then :
7910 withval=$with_mpfr_include;
7914 # Check whether --with-mpfr-lib was given.
7915 if test "${with_mpfr_lib+set}" = set; then :
7916 withval=$with_mpfr_lib;
7920 if test "x$with_mpfr" != x; then
7921 gmplibs="-L$with_mpfr/lib $gmplibs"
7922 gmpinc="-I$with_mpfr/include $gmpinc"
7924 if test "x$with_mpfr_include" != x; then
7925 gmpinc="-I$with_mpfr_include $gmpinc"
7927 if test "x$with_mpfr_lib" != x; then
7928 gmplibs="-L$with_mpfr_lib $gmplibs"
7930 if test "x$with_mpfr$with_mpfr_include$with_mpfr_lib" = x && test -d ${srcdir}/mpfr; then
7931 # MPFR v3.1.0 moved the sources into a src sub-directory.
7932 if ! test -d ${srcdir}/mpfr/src; then
7933 as_fn_error $? "Building GCC with MPFR in the source tree is only handled for MPFR 3.1.0+." "$LINENO" 5
7935 gmplibs='-L$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir $gmplibs"
7936 gmpinc='-I$$r/$(HOST_SUBDIR)/mpfr/src -I$$s/mpfr/src '"$gmpinc"
7937 extra_mpc_mpfr_configure_flags='--with-mpfr-include=$$s/mpfr/src --with-mpfr-lib=$$r/$(HOST_SUBDIR)/mpfr/src/'"$lt_cv_objdir"
7938 # Do not test the mpfr version. Assume that it is sufficient, since
7939 # it is in the source tree, and the library has not been built yet
7940 # but it would be included on the link line in the version check below
7941 # hence making the test fail.
7945 # Specify a location for gmp
7947 # Check whether --with-gmp-dir was given.
7948 if test "${with_gmp_dir+set}" = set; then :
7949 withval=$with_gmp_dir; as_fn_error $? "The --with-gmp-dir=PATH option has been removed.
7950 Use --with-gmp=PATH or --with-gmp-include=PATH plus --with-gmp-lib=PATH" "$LINENO" 5
7955 # Check whether --with-gmp was given.
7956 if test "${with_gmp+set}" = set; then :
7961 # Check whether --with-gmp-include was given.
7962 if test "${with_gmp_include+set}" = set; then :
7963 withval=$with_gmp_include;
7967 # Check whether --with-gmp-lib was given.
7968 if test "${with_gmp_lib+set}" = set; then :
7969 withval=$with_gmp_lib;
7974 if test "x$with_gmp" != x; then
7975 gmplibs="-L$with_gmp/lib $gmplibs"
7976 gmpinc="-I$with_gmp/include $gmpinc"
7978 if test "x$with_gmp_include" != x; then
7979 gmpinc="-I$with_gmp_include $gmpinc"
7981 if test "x$with_gmp_lib" != x; then
7982 gmplibs="-L$with_gmp_lib $gmplibs"
7984 if test "x$with_gmp$with_gmp_include$with_gmp_lib" = x && test -d ${srcdir}/gmp; then
7985 gmplibs='-L$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir $gmplibs"
7986 gmpinc='-I$$r/$(HOST_SUBDIR)/gmp -I$$s/gmp '"$gmpinc"
7987 extra_mpfr_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7988 extra_mpc_gmp_configure_flags='--with-gmp-include=$$r/$(HOST_SUBDIR)/gmp --with-gmp-lib=$$r/$(HOST_SUBDIR)/gmp/'"$lt_cv_objdir"
7989 extra_isl_gmp_configure_flags='--with-gmp-builddir=$$r/$(HOST_SUBDIR)/gmp'
7990 # Do not test the gmp version. Assume that it is sufficient, since
7991 # it is in the source tree, and the library has not been built yet
7992 # but it would be included on the link line in the version check below
7993 # hence making the test fail.
7997 if test -d ${srcdir}/gcc && test "x$have_gmp" = xno; then
7999 saved_CFLAGS="$CFLAGS"
8000 CFLAGS="$CFLAGS $gmpinc"
8001 # Check for the recommended and required versions of GMP.
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of gmp.h" >&5
8003 $as_echo_n "checking for the correct version of gmp.h... " >&6; }
8005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8006 /* end confdefs.h. */
8012 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8013 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8014 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,2,3)
8022 if ac_fn_c_try_compile "$LINENO"; then :
8023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8024 /* end confdefs.h. */
8030 #define GCC_GMP_VERSION_NUM(a,b,c) (((a) << 16L) | ((b) << 8) | (c))
8031 #define GCC_GMP_VERSION GCC_GMP_VERSION_NUM(__GNU_MP_VERSION,__GNU_MP_VERSION_MINOR,__GNU_MP_VERSION_PATCHLEVEL)
8032 #if GCC_GMP_VERSION < GCC_GMP_VERSION_NUM(4,3,2)
8040 if ac_fn_c_try_compile "$LINENO"; then :
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8042 $as_echo "yes" >&6; }
8044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8045 $as_echo "buggy but acceptable" >&6; }
8047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8050 $as_echo "no" >&6; }; have_gmp=no
8052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8054 # If we have GMP, check the MPFR version.
8055 if test x"$have_gmp" = xyes; then
8056 # Check for the recommended and required versions of MPFR.
8057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpfr.h" >&5
8058 $as_echo_n "checking for the correct version of mpfr.h... " >&6; }
8059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8060 /* end confdefs.h. */
8067 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,0)
8075 if ac_fn_c_try_compile "$LINENO"; then :
8076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8077 /* end confdefs.h. */
8084 #if MPFR_VERSION < MPFR_VERSION_NUM(3,1,6)
8092 if ac_fn_c_try_compile "$LINENO"; then :
8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8094 $as_echo "yes" >&6; }
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8097 $as_echo "buggy but acceptable" >&6; }
8099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 $as_echo "no" >&6; }; have_gmp=no
8104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8107 # Check for the MPC header version.
8108 if test x"$have_gmp" = xyes ; then
8109 # Check for the recommended and required versions of MPC.
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of mpc.h" >&5
8111 $as_echo_n "checking for the correct version of mpc.h... " >&6; }
8112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8113 /* end confdefs.h. */
8119 #if MPC_VERSION < MPC_VERSION_NUM(0,8,0)
8127 if ac_fn_c_try_compile "$LINENO"; then :
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129 /* end confdefs.h. */
8135 #if MPC_VERSION < MPC_VERSION_NUM(0,8,1)
8143 if ac_fn_c_try_compile "$LINENO"; then :
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8145 $as_echo "yes" >&6; }
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: buggy but acceptable" >&5
8148 $as_echo "buggy but acceptable" >&6; }
8150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8153 $as_echo "no" >&6; }; have_gmp=no
8155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8158 # Now check the MPFR library.
8159 if test x"$have_gmp" = xyes; then
8161 LIBS="$LIBS $gmplibs"
8162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the correct version of the gmp/mpfr/mpc libraries" >&5
8163 $as_echo_n "checking for the correct version of the gmp/mpfr/mpc libraries... " >&6; }
8164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8165 /* end confdefs.h. */
8177 mpfr_atan2 (n, n, x, MPFR_RNDN);
8178 mpfr_erfc (n, x, MPFR_RNDN);
8179 mpfr_subnormalize (x, t, MPFR_RNDN);
8183 mpc_set_ui_ui (c, 1, 1, MPC_RNDNN);
8184 mpc_cosh (c, c, MPC_RNDNN);
8185 mpc_pow (c, c, c, MPC_RNDNN);
8186 mpc_acosh (c, c, MPC_RNDNN);
8193 if ac_fn_c_try_link "$LINENO"; then :
8194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8195 $as_echo "yes" >&6; }
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8198 $as_echo "no" >&6; }; have_gmp=no
8200 rm -f core conftest.err conftest.$ac_objext \
8201 conftest$ac_exeext conftest.$ac_ext
8205 CFLAGS="$saved_CFLAGS"
8207 # The library versions listed in the error message below should match
8208 # the HARD-minimums enforced above.
8209 if test x$have_gmp != xyes; then
8210 as_fn_error $? "Building GCC requires GMP 4.2+, MPFR 3.1.0+ and MPC 0.8.0+.
8211 Try the --with-gmp, --with-mpfr and/or --with-mpc options to specify
8212 their locations. Source code for these libraries can be found at
8213 their respective hosting sites as well as at
8214 https://gcc.gnu.org/pub/gcc/infrastructure/. See also
8215 http://gcc.gnu.org/install/prerequisites.html for additional info. If
8216 you obtained GMP, MPFR and/or MPC from a vendor distribution package,
8217 make sure that you have installed both the libraries and the header
8218 files. They may be located in separate packages." "$LINENO" 5
8222 # Flags needed for both GMP, MPFR and/or MPC.
8230 # Libraries to use for stage1 or when not bootstrapping.
8232 # Check whether --with-stage1-libs was given.
8233 if test "${with_stage1_libs+set}" = set; then :
8234 withval=$with_stage1_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8237 stage1_libs=$withval
8245 # Whether or not to use -static-libstdc++ and -static-libgcc. The
8246 # default is yes if gcc is being built; no otherwise. The reason for
8247 # this default is that gdb is sometimes linked against GNU Source
8248 # Highlight, which is a shared library that uses C++ exceptions. In
8249 # this case, -static-libstdc++ will cause crashes.
8251 # Check whether --with-static-standard-libraries was given.
8252 if test "${with_static_standard_libraries+set}" = set; then :
8253 withval=$with_static_standard_libraries;
8255 with_static_standard_libraries=auto
8258 if test "$with_static_standard_libraries" = auto; then
8259 with_static_standard_libraries=$have_compiler
8262 # Linker flags to use for stage1 or when not bootstrapping.
8264 # Check whether --with-stage1-ldflags was given.
8265 if test "${with_stage1_ldflags+set}" = set; then :
8266 withval=$with_stage1_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8269 stage1_ldflags=$withval
8273 # In stage 1, default to linking libstdc++ and libgcc statically with GCC
8274 # if supported. But if the user explicitly specified the libraries to use,
8275 # trust that they are doing what they want.
8276 if test "$with_static_standard_libraries" = yes -a "$stage1_libs" = "" \
8277 -a "$have_static_libs" = yes; then
8278 stage1_ldflags="-static-libstdc++ -static-libgcc"
8284 # Libraries to use for stage2 and later builds.
8286 # Check whether --with-boot-libs was given.
8287 if test "${with_boot_libs+set}" = set; then :
8288 withval=$with_boot_libs; if test "$withval" = "no" -o "$withval" = "yes"; then
8291 poststage1_libs=$withval
8299 # Linker flags to use for stage2 and later builds.
8301 # Check whether --with-boot-ldflags was given.
8302 if test "${with_boot_ldflags+set}" = set; then :
8303 withval=$with_boot_ldflags; if test "$withval" = "no" -o "$withval" = "yes"; then
8306 poststage1_ldflags=$withval
8310 # In stages 2 and 3, default to linking libstdc++ and libgcc
8311 # statically. But if the user explicitly specified the libraries to
8312 # use, trust that they are doing what they want.
8313 if test "$poststage1_libs" = ""; then
8314 poststage1_ldflags="-static-libstdc++ -static-libgcc"
8320 # GCC GRAPHITE dependency isl.
8321 # Basic setup is inlined here, actual checks are in config/isl.m4
8324 # Check whether --with-isl was given.
8325 if test "${with_isl+set}" = set; then :
8330 # Treat --without-isl as a request to disable
8331 # GRAPHITE support and skip all following checks.
8332 if test "x$with_isl" != "xno"; then
8336 # Check whether --with-isl-include was given.
8337 if test "${with_isl_include+set}" = set; then :
8338 withval=$with_isl_include;
8342 # Check whether --with-isl-lib was given.
8343 if test "${with_isl_lib+set}" = set; then :
8344 withval=$with_isl_lib;
8348 # Check whether --enable-isl-version-check was given.
8349 if test "${enable_isl_version_check+set}" = set; then :
8350 enableval=$enable_isl_version_check; ENABLE_ISL_CHECK=$enableval
8352 ENABLE_ISL_CHECK=yes
8356 # Initialize isllibs and islinc.
8365 isllibs="-L$with_isl/lib"
8366 islinc="-I$with_isl/include"
8369 if test "x${with_isl_include}" != x ; then
8370 islinc="-I$with_isl_include"
8372 if test "x${with_isl_lib}" != x; then
8373 isllibs="-L$with_isl_lib"
8375 if test "x${islinc}" = x && test "x${isllibs}" = x \
8376 && test -d ${srcdir}/isl; then
8377 isllibs='-L$$r/$(HOST_SUBDIR)/isl/'"$lt_cv_objdir"' '
8378 islinc='-I$$r/$(HOST_SUBDIR)/isl/include -I$$s/isl/include'
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using in-tree isl, disabling version check" >&5
8381 $as_echo "$as_me: WARNING: using in-tree isl, disabling version check" >&2;}
8384 isllibs="${isllibs} -lisl"
8388 if test "${ENABLE_ISL_CHECK}" = yes ; then
8389 _isl_saved_CFLAGS=$CFLAGS
8390 _isl_saved_LDFLAGS=$LDFLAGS
8391 _isl_saved_LIBS=$LIBS
8393 CFLAGS="${_isl_saved_CFLAGS} ${islinc} ${gmpinc}"
8394 LDFLAGS="${_isl_saved_LDFLAGS} ${isllibs} ${gmplibs}"
8395 LIBS="${_isl_saved_LIBS} -lisl -lgmp"
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isl 0.15 or later" >&5
8398 $as_echo_n "checking for isl 0.15 or later... " >&6; }
8399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8400 /* end confdefs.h. */
8401 #include <isl/schedule.h>
8405 isl_options_set_schedule_serialize_sccs (NULL, 0);
8410 if ac_fn_c_try_link "$LINENO"; then :
8415 rm -f core conftest.err conftest.$ac_objext \
8416 conftest$ac_exeext conftest.$ac_ext
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_isl" >&5
8418 $as_echo "$gcc_cv_isl" >&6; }
8420 if test "${gcc_cv_isl}" = no ; then
8421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: required isl version is 0.15 or later" >&5
8422 $as_echo "required isl version is 0.15 or later" >&6; }
8425 CFLAGS=$_isl_saved_CFLAGS
8426 LDFLAGS=$_isl_saved_LDFLAGS
8427 LIBS=$_isl_saved_LIBS
8435 if test "x${with_isl}" = xno; then
8436 graphite_requested=no
8437 elif test "x${with_isl}" != x \
8438 || test "x${with_isl_include}" != x \
8439 || test "x${with_isl_lib}" != x ; then
8440 graphite_requested=yes
8442 graphite_requested=no
8447 if test "${gcc_cv_isl}" = no ; then
8452 if test "${graphite_requested}" = yes \
8453 && test "x${isllibs}" = x \
8454 && test "x${islinc}" = x ; then
8456 as_fn_error $? "Unable to find a usable isl. See config.log for details." "$LINENO" 5
8462 # If the isl check failed, disable builds of in-tree variant of isl
8463 if test "x$with_isl" = xno ||
8464 test "x$gcc_cv_isl" = xno; then
8465 noconfigdirs="$noconfigdirs isl"
8472 # Check for LTO support.
8473 # Check whether --enable-lto was given.
8474 if test "${enable_lto+set}" = set; then :
8475 enableval=$enable_lto; enable_lto=$enableval
8477 enable_lto=yes; default_enable_lto=yes
8486 *-darwin* | *-aix* | *-cygwin* | *-mingw* | *-aout* | *-*coff* | \
8487 *-msdosdjgpp* | *-vms* | *-wince* | *-*-pe* | \
8488 alpha*-dec-osf* | *-interix* | hppa[12]*-*-hpux* | \
8497 if test $target_elf = yes; then :
8498 # ELF platforms build the lto-plugin always.
8499 build_lto_plugin=yes
8502 if test x"$default_enable_lto" = x"yes" ; then
8504 *-apple-darwin[912]* | *-cygwin* | *-mingw* | *djgpp*) ;;
8505 # On other non-ELF platforms, LTO has yet to be validated.
8509 # Apart from ELF platforms, only Windows and Darwin support LTO so far.
8510 # It would also be nice to check the binutils support, but we don't
8511 # have gcc_GAS_CHECK_FEATURE available here. For now, we'll just
8512 # warn during gcc/ subconfigure; unless you're bootstrapping with
8513 # -flto it won't be needed until after installation anyway.
8515 *-cygwin* | *-mingw* | *-apple-darwin* | *djgpp*) ;;
8516 *) if test x"$enable_lto" = x"yes"; then
8517 as_fn_error $? "LTO support is not enabled for this target." "$LINENO" 5
8522 # Among non-ELF, only Windows platforms support the lto-plugin so far.
8523 # Build it unless LTO was explicitly disabled.
8525 *-cygwin* | *-mingw*) build_lto_plugin=$enable_lto ;;
8532 # Check whether --enable-linker-plugin-configure-flags was given.
8533 if test "${enable_linker_plugin_configure_flags+set}" = set; then :
8534 enableval=$enable_linker_plugin_configure_flags; extra_linker_plugin_configure_flags=$enableval
8536 extra_linker_plugin_configure_flags=
8540 # Check whether --enable-linker-plugin-flags was given.
8541 if test "${enable_linker_plugin_flags+set}" = set; then :
8542 enableval=$enable_linker_plugin_flags; extra_linker_plugin_flags=$enableval
8544 extra_linker_plugin_flags=
8549 # Enable --enable-host-shared.
8550 # Checked early to determine whether jit is an 'all' language
8551 # Check whether --enable-host-shared was given.
8552 if test "${enable_host_shared+set}" = set; then :
8553 enableval=$enable_host_shared; host_shared=$enableval
8555 x86_64-*-darwin* | aarch64-*-darwin*)
8556 if test x$host_shared != xyes ; then
8557 # PIC is the default, and actually cannot be switched off.
8558 echo configure.ac: warning: PIC code is required for the configured target, host-shared setting ignored. 1>&2
8565 x86_64-*-darwin* | aarch64-*-darwin*) host_shared=yes ;;
8566 *) host_shared=no ;;
8572 # By default, C and C++ are the only stage 1 languages.
8573 stage1_languages=,c,
8575 # Target libraries that we bootstrap.
8576 bootstrap_target_libs=,target-libgcc,
8578 # Figure out what language subdirectories are present.
8579 # Look if the user specified --enable-languages="..."; if not, use
8580 # the environment variable $LANGUAGES if defined. $LANGUAGES might
8582 # NB: embedded tabs in this IF block -- do not untabify
8583 if test -d ${srcdir}/gcc; then
8584 if test x"${enable_languages+set}" != xset; then
8585 if test x"${LANGUAGES+set}" = xset; then
8586 enable_languages="${LANGUAGES}"
8587 echo configure.ac: warning: setting LANGUAGES is deprecated, use --enable-languages instead 1>&2
8589 enable_languages=default
8592 if test x"${enable_languages}" = x ||
8593 test x"${enable_languages}" = xyes;
8595 echo configure.ac: --enable-languages needs at least one language argument 1>&2
8599 enable_languages=`echo "${enable_languages}" | sed -e 's/[ ,][ ,]*/,/g' -e 's/,$//'`
8601 # 'f95' is the old name for the 'fortran' language. We issue a warning
8602 # and make the substitution.
8603 case ,${enable_languages}, in
8605 echo configure.ac: warning: 'f95' as language name is deprecated, use 'fortran' instead 1>&2
8606 enable_languages=`echo "${enable_languages}" | sed -e 's/f95/fortran/g'`
8610 # If bootstrapping, C++ must be enabled.
8611 case ",$enable_languages,:$enable_bootstrap" in
8614 if test -f ${srcdir}/gcc/cp/config-lang.in; then
8615 enable_languages="${enable_languages},c++"
8617 as_fn_error $? "bootstrapping requires c++ sources" "$LINENO" 5
8622 # First scan to see if an enabled language requires some other language.
8623 # We assume that a given config-lang.in will list all the language
8624 # front ends it requires, even if some are required indirectly.
8625 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8626 case ${lang_frag} in
8628 # The odd quoting in the next line works around
8629 # an apparent bug in bash 1.12 on linux.
8630 ${srcdir}/gcc/[*]/config-lang.in) ;;
8632 # From the config-lang.in, get $language, $lang_requires, and
8633 # $lang_requires_boot_languages.
8636 lang_requires_boot_languages=
8637 # set srcdir during sourcing lang_frag to the gcc dir.
8638 # Sadly overriding srcdir on the . line doesn't work in plain sh as it
8639 # polutes this shell
8640 saved_srcdir=${srcdir}
8641 srcdir=${srcdir}/gcc . ${lang_frag}
8642 srcdir=${saved_srcdir}
8643 for other in ${lang_requires} ${lang_requires_boot_languages}; do
8644 case ,${enable_languages}, in
8649 echo " \`$other' language required by \`$language'; enabling" 1>&2
8650 enable_languages="${enable_languages},${other}"
8654 for other in ${lang_requires_boot_languages} ; do
8655 if test "$other" != "c"; then
8656 case ,${enable_stage1_languages}, in
8661 case ,${enable_languages}, in
8663 echo " '$other' language required by '$language' in stage 1; enabling" 1>&2
8664 enable_stage1_languages="$enable_stage1_languages,${other}"
8675 new_enable_languages=,c,
8677 # If LTO is enabled, add the LTO front end.
8678 if test "$enable_lto" = "yes" ; then
8679 case ,${enable_languages}, in
8681 *) enable_languages="${enable_languages},lto" ;;
8683 if test "${build_lto_plugin}" = "yes" ; then
8684 configdirs="$configdirs lto-plugin"
8688 # If we're building an offloading compiler, add the LTO front end.
8689 if test x"$enable_as_accelerator_for" != x ; then
8690 case ,${enable_languages}, in
8692 *) enable_languages="${enable_languages},lto" ;;
8696 missing_languages=`echo ",$enable_languages," | sed -e s/,default,/,/ -e s/,all,/,/ -e s/,c,/,/ `
8697 potential_languages=,c,
8699 enabled_target_libs=
8700 disabled_target_libs=
8702 for lang_frag in ${srcdir}/gcc/*/config-lang.in .. ; do
8703 case ${lang_frag} in
8705 # The odd quoting in the next line works around
8706 # an apparent bug in bash 1.12 on linux.
8707 ${srcdir}/gcc/[*]/config-lang.in) ;;
8709 # From the config-lang.in, get $language, $target_libs,
8710 # $lang_dirs, $boot_language, and $build_by_default
8716 build_by_default=yes
8717 # set srcdir during sourcing. See above about save & restore
8718 saved_srcdir=${srcdir}
8719 srcdir=${srcdir}/gcc . ${lang_frag}
8720 srcdir=${saved_srcdir}
8721 if test x${language} = x; then
8722 echo "${lang_frag} doesn't set \$language." 1>&2
8726 if test "$language" = "c++"; then
8731 # C is always enabled, so no need to add it again
8732 if test "$language" != "c"; then
8733 case ,${enable_languages}, in
8735 # Language was explicitly selected; include it
8739 # All languages are enabled
8743 # 'default' was selected, select it if it is a default language
8744 add_this_lang=${build_by_default}
8749 # Disable languages that need other directories if these aren't available.
8750 for i in $subdir_requires; do
8751 test -f "$srcdir/gcc/$i/config-lang.in" && continue
8752 case ${add_this_lang} in
8754 # Specifically requested language; tell them.
8755 as_fn_error $? "The gcc/$i directory contains parts of $language but is missing" "$LINENO" 5
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The gcc/$i directory contains parts of $language but is missing" >&5
8759 $as_echo "$as_me: WARNING: The gcc/$i directory contains parts of $language but is missing" >&2;}
8760 add_this_lang=unsupported
8764 add_this_lang=unsupported
8769 # Disable Ada if no preexisting GNAT is available.
8770 case ${add_this_lang}:${language}:${have_gnat} in
8772 # Specifically requested language; tell them.
8773 as_fn_error $? "GNAT is required to build $language" "$LINENO" 5
8776 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GNAT is required to build $language" >&5
8777 $as_echo "$as_me: WARNING: GNAT is required to build $language" >&2;}
8778 add_this_lang=unsupported
8782 add_this_lang=unsupported
8786 # Disable D if no preexisting GDC is available.
8787 case ${add_this_lang}:${language}:${have_gdc} in
8789 # Specifically requested language; tell them.
8790 as_fn_error $? "GDC is required to build $language" "$LINENO" 5
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: GDC is required to build $language" >&5
8794 $as_echo "$as_me: WARNING: GDC is required to build $language" >&2;}
8795 add_this_lang=unsupported
8799 add_this_lang=unsupported
8803 # Disable jit if -enable-host-shared not specified
8804 # but not if building for Mingw. All code in Windows
8805 # is position independent code (PIC).
8809 case ${add_this_lang}:${language}:${host_shared} in
8811 # PR jit/64780: explicitly specify --enable-host-shared
8813 Enabling language \"jit\" requires --enable-host-shared.
8815 --enable-host-shared typically slows the rest of the compiler down by
8816 a few %, so you must explicitly enable it.
8818 If you want to build both the jit and the regular compiler, it is often
8819 best to do this via two separate configure/builds, in separate
8820 directories, to avoid imposing the performance cost of
8821 --enable-host-shared on the regular compiler." "$LINENO" 5
8824 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --enable-host-shared required to build $language" >&5
8825 $as_echo "$as_me: WARNING: --enable-host-shared required to build $language" >&2;}
8826 add_this_lang=unsupported
8830 add_this_lang=unsupported
8836 # Disable a language that is unsupported by the target.
8837 case "${add_this_lang}: $unsupported_languages " in
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ${language} not supported for this target" >&5
8842 $as_echo "$as_me: WARNING: ${language} not supported for this target" >&2;}
8843 add_this_lang=unsupported
8847 case $add_this_lang in
8849 # Remove language-dependent dirs.
8850 disabled_target_libs="$disabled_target_libs $target_libs"
8851 noconfigdirs="$noconfigdirs $lang_dirs"
8854 # Remove language-dependent dirs; still show language as supported.
8855 disabled_target_libs="$disabled_target_libs $target_libs"
8856 noconfigdirs="$noconfigdirs $lang_dirs"
8857 potential_languages="${potential_languages}${language},"
8860 new_enable_languages="${new_enable_languages}${language},"
8861 potential_languages="${potential_languages}${language},"
8862 missing_languages=`echo "$missing_languages" | sed "s/,$language,/,/"`
8863 enabled_target_libs="$enabled_target_libs $target_libs"
8864 case "${boot_language}:,$enable_stage1_languages," in
8865 yes:* | *:*,$language,* | *:*,yes, | *:*,all,)
8866 # Add to (comma-separated) list of stage 1 languages.
8867 case ",$stage1_languages," in
8868 *,$language,* | ,yes, | ,all,) ;;
8869 *) stage1_languages="${stage1_languages}${language}," ;;
8871 # We need to bootstrap any supporting libraries.
8872 bootstrap_target_libs=`echo "${bootstrap_target_libs}${target_libs}," | sed "s/ /,/g"`
8881 # Add target libraries which are only needed for disabled languages
8883 if test -n "$disabled_target_libs"; then
8884 for dir in $disabled_target_libs; do
8885 case " $enabled_target_libs " in
8887 *) noconfigdirs="$noconfigdirs $dir" ;;
8892 # Check whether --enable-stage1-languages was given.
8893 if test "${enable_stage1_languages+set}" = set; then :
8894 enableval=$enable_stage1_languages; case ,${enable_stage1_languages}, in
8896 # Set it to something that will have no effect in the loop below
8897 enable_stage1_languages=c ;;
8899 enable_stage1_languages=`echo $new_enable_languages | \
8900 sed -e "s/^,//" -e "s/,$//" ` ;;
8902 enable_stage1_languages=`echo ,$enable_stage1_languages, | \
8903 sed -e "s/,all,/$new_enable_languages/" -e "s/^,//" -e "s/,$//" ` ;;
8906 # Add "good" languages from enable_stage1_languages to stage1_languages,
8907 # while "bad" languages go in missing_languages. Leave no duplicates.
8908 for i in `echo $enable_stage1_languages | sed 's/,/ /g' `; do
8909 case $potential_languages in
8911 case $stage1_languages in
8913 *) stage1_languages="$stage1_languages$i," ;;
8916 case $missing_languages in
8918 *) missing_languages="$missing_languages$i," ;;
8925 # Remove leading/trailing commas that were added for simplicity
8926 potential_languages=`echo "$potential_languages" | sed -e "s/^,//" -e "s/,$//"`
8927 missing_languages=`echo "$missing_languages" | sed -e "s/^,//" -e "s/,$//"`
8928 stage1_languages=`echo "$stage1_languages" | sed -e "s/^,//" -e "s/,$//"`
8929 new_enable_languages=`echo "$new_enable_languages" | sed -e "s/^,//" -e "s/,$//"`
8931 if test "x$missing_languages" != x; then
8933 The following requested languages could not be built: ${missing_languages}
8934 Supported languages are: ${potential_languages}" "$LINENO" 5
8936 if test "x$new_enable_languages" != "x$enable_languages"; then
8937 echo The following languages will be built: ${new_enable_languages}
8938 enable_languages="$new_enable_languages"
8942 ac_configure_args=`echo " $ac_configure_args" | sed -e "s/ '--enable-languages=[^ ]*'//g" -e "s/$/ '--enable-languages="$enable_languages"'/" `
8945 # Handle --disable-<component> generically.
8946 for dir in $configdirs $build_configdirs $target_configdirs ; do
8947 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g -e s/-/_/g`
8948 varname=`echo $dirname | sed -e s/+/_/g`
8949 if eval test x\${enable_${varname}} "=" xno ; then
8950 noconfigdirs="$noconfigdirs $dir"
8954 # Check for Boehm's garbage collector
8955 # Check whether --enable-objc-gc was given.
8956 if test "${enable_objc_gc+set}" = set; then :
8957 enableval=$enable_objc_gc;
8961 # Check whether --with-target-bdw-gc was given.
8962 if test "${with_target_bdw_gc+set}" = set; then :
8963 withval=$with_target_bdw_gc;
8967 # Check whether --with-target-bdw-gc-include was given.
8968 if test "${with_target_bdw_gc_include+set}" = set; then :
8969 withval=$with_target_bdw_gc_include;
8973 # Check whether --with-target-bdw-gc-lib was given.
8974 if test "${with_target_bdw_gc_lib+set}" = set; then :
8975 withval=$with_target_bdw_gc_lib;
8979 case ,${enable_languages},:${enable_objc_gc} in *,objc,*:yes|*,objc,*:auto)
8980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for bdw garbage collector" >&5
8981 $as_echo_n "checking for bdw garbage collector... " >&6; }
8982 if test "x$with_target_bdw_gc$with_target_bdw_gc_include$with_target_bdw_gc_lib" = x; then
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using bdw-gc in default locations" >&5
8984 $as_echo "using bdw-gc in default locations" >&6; }
8986 if test "x$with_target_bdw_gc_include" = x && test "x$with_target_bdw_gc_lib" != x; then
8987 as_fn_error $? "found --with-target-bdw-gc-lib but --with-target-bdw-gc-include missing" "$LINENO" 5
8988 elif test "x$with_target_bdw_gc_include" != x && test "x$with_target_bdw_gc_lib" = x; then
8989 as_fn_error $? "found --with-target-bdw-gc-include but --with-target-bdw-gc-lib missing" "$LINENO" 5
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: using paths configured with --with-target-bdw-gc options" >&5
8992 $as_echo "using paths configured with --with-target-bdw-gc options" >&6; }
8997 # Disable libitm, libsanitizer, libvtv, liboffloadmic if we're not building C++
8998 case ,${enable_languages}, in
9000 # Disable libitm, libsanitizer if we're not building libstdc++
9001 case "${noconfigdirs}" in
9002 *target-libstdc++-v3*)
9003 noconfigdirs="$noconfigdirs target-libitm target-libsanitizer"
9009 noconfigdirs="$noconfigdirs target-liboffloadmic target-libitm target-libsanitizer target-libvtv"
9013 # If gcc/ is not in the source tree then we'll not be building a
9014 # target compiler, assume in that case we don't want to build any
9015 # target libraries or tools.
9017 # This was added primarily for the benefit for binutils-gdb who reuse
9018 # this configure script, but don't always have target tools available.
9019 if test ! -d ${srcdir}/gcc; then
9020 skipdirs="${skipdirs} ${target_configdirs}"
9023 # Remove the entries in $skipdirs and $noconfigdirs from $configdirs,
9024 # $build_configdirs and $target_configdirs.
9025 # If we have the source for $noconfigdirs entries, add them to $notsupp.
9028 for dir in . $skipdirs $noconfigdirs ; do
9029 dirname=`echo $dir | sed -e s/target-//g -e s/build-//g`
9030 if test $dir != . && echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9031 configdirs=`echo " ${configdirs} " | sed -e "s/ ${dir} / /"`
9032 if test -r $srcdir/$dirname/configure ; then
9033 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9036 notsupp="$notsupp $dir"
9040 if test $dir != . && echo " ${build_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9041 build_configdirs=`echo " ${build_configdirs} " | sed -e "s/ ${dir} / /"`
9042 if test -r $srcdir/$dirname/configure ; then
9043 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9046 notsupp="$notsupp $dir"
9050 if test $dir != . && echo " ${target_configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9051 target_configdirs=`echo " ${target_configdirs} " | sed -e "s/ ${dir} / /"`
9052 if test -r $srcdir/$dirname/configure ; then
9053 if echo " ${skipdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9056 notsupp="$notsupp $dir"
9062 # Quietly strip out all directories which aren't configurable in this tree.
9063 # This relies on all configurable subdirectories being autoconfiscated, which
9065 build_configdirs_all="$build_configdirs"
9067 for i in ${build_configdirs_all} ; do
9068 j=`echo $i | sed -e s/build-//g`
9069 if test -f ${srcdir}/$j/configure ; then
9070 build_configdirs="${build_configdirs} $i"
9074 configdirs_all="$configdirs"
9076 for i in ${configdirs_all} ; do
9077 if test -f ${srcdir}/$i/configure ; then
9078 configdirs="${configdirs} $i"
9082 target_configdirs_all="$target_configdirs"
9084 for i in ${target_configdirs_all} ; do
9085 j=`echo $i | sed -e s/target-//g`
9086 if test -f ${srcdir}/$j/configure ; then
9087 target_configdirs="${target_configdirs} $i"
9091 # libiberty-linker-plugin is special: it doesn't have its own source directory,
9092 # so we have to add it after the preceding checks.
9093 if test x"$extra_linker_plugin_flags$extra_linker_plugin_configure_flags" != x
9095 case " $configdirs " in
9097 # If we can build libiberty, we can also build libiberty-linker-plugin.
9098 configdirs="$configdirs libiberty-linker-plugin"
9099 extra_linker_plugin_configure_flags="$extra_linker_plugin_configure_flags \
9100 --with-libiberty=../libiberty-linker-plugin";;
9102 as_fn_error $? "libiberty missing" "$LINENO" 5;;
9106 # Sometimes we have special requirements for the host libiberty.
9107 extra_host_libiberty_configure_flags=
9108 extra_host_zlib_configure_flags=
9109 case " $configdirs " in
9110 *" lto-plugin "* | *" libcc1 "*)
9111 # When these are to be built as shared libraries, the same applies to
9113 extra_host_libiberty_configure_flags=--enable-shared
9116 # When bfd is to be built as a shared library, the same applies to
9118 if test "$enable_shared" = "yes"; then
9119 extra_host_zlib_configure_flags=--enable-host-shared
9126 # Produce a warning message for the subdirs we can't configure.
9127 # This isn't especially interesting in the Cygnus tree, but in the individual
9128 # FSF releases, it's important to let people know when their machine isn't
9129 # supported by the one or two programs in a package.
9131 if test -n "${notsupp}" && test -z "${norecursion}" ; then
9132 # If $appdirs is non-empty, at least one of those directories must still
9133 # be configured, or we error out. (E.g., if the gas release supports a
9134 # specified target in some subdirs but not the gas subdir, we shouldn't
9135 # pretend that all is well.)
9136 if test -n "$appdirs" ; then
9137 for dir in $appdirs ; do
9138 if test -r $dir/Makefile.in ; then
9139 if echo " ${configdirs} " | grep " ${dir} " >/dev/null 2>&1; then
9143 if echo " ${target_configdirs} " | grep " target-${dir} " >/dev/null 2>&1; then
9149 if test -n "$appdirs" ; then
9150 echo "*** This configuration is not supported by this package." 1>&2
9154 # Okay, some application will build, or we don't care to check. Still
9155 # notify of subdirs not getting built.
9156 echo "*** This configuration is not supported in the following subdirectories:" 1>&2
9157 echo " ${notsupp}" 1>&2
9158 echo " (Any other directories should still work fine.)" 1>&2
9166 # To find our prefix, in gcc_cv_tool_prefix.
9168 # The user is always right.
9169 if test "${PATH_SEPARATOR+set}" != set; then
9170 echo "#! /bin/sh" >conf$$.sh
9171 echo "exit 0" >>conf$$.sh
9173 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
9182 get_gcc_base_ver="cat"
9184 # Check whether --with-gcc-major-version-only was given.
9185 if test "${with_gcc_major_version_only+set}" = set; then :
9186 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
9187 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
9197 if test "x$exec_prefix" = xNONE; then
9198 if test "x$prefix" = xNONE; then
9199 gcc_cv_tool_prefix=$ac_default_prefix
9201 gcc_cv_tool_prefix=$prefix
9204 gcc_cv_tool_prefix=$exec_prefix
9207 # If there is no compiler in the tree, use the PATH only. In any
9208 # case, if there is no compiler in the tree nobody should use
9209 # AS_FOR_TARGET and LD_FOR_TARGET.
9210 if test x$host = x$build && test -f $srcdir/gcc/BASE-VER; then
9211 if test x$with_gcc_major_version_only = xyes ; then
9212 gcc_version=`sed -e 's/^\([0-9]*\).*$/\1/' $srcdir/gcc/BASE-VER`
9214 gcc_version=`cat $srcdir/gcc/BASE-VER`
9216 gcc_cv_tool_dirs="$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9217 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/libexec/gcc/$target_noncanonical$PATH_SEPARATOR"
9218 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9219 gcc_cv_tool_dirs="$gcc_cv_tool_dirs/usr/lib/gcc/$target_noncanonical$PATH_SEPARATOR"
9220 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin/$target_noncanonical/$gcc_version$PATH_SEPARATOR"
9221 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$gcc_cv_tool_prefix/$target_noncanonical/bin$PATH_SEPARATOR"
9226 if test x$build = x$target && test -n "$md_exec_prefix"; then
9227 gcc_cv_tool_dirs="$gcc_cv_tool_dirs$md_exec_prefix$PATH_SEPARATOR"
9235 # Check whether --with-build-sysroot was given.
9236 if test "${with_build_sysroot+set}" = set; then :
9237 withval=$with_build_sysroot; if test x"$withval" != x ; then
9238 SYSROOT_CFLAGS_FOR_TARGET="--sysroot=$withval"
9241 SYSROOT_CFLAGS_FOR_TARGET=
9247 # Check whether --with-debug-prefix-map was given.
9248 if test "${with_debug_prefix_map+set}" = set; then :
9249 withval=$with_debug_prefix_map; if test x"$withval" != x; then
9250 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9251 for debug_map in $withval; do
9252 DEBUG_PREFIX_CFLAGS_FOR_TARGET="$DEBUG_PREFIX_CFLAGS_FOR_TARGET -fdebug-prefix-map=$debug_map"
9256 DEBUG_PREFIX_CFLAGS_FOR_TARGET=
9261 # During gcc bootstrap, if we use some random cc for stage1 then CFLAGS
9262 # might be empty or "-g". We don't require a C++ compiler, so CXXFLAGS
9263 # might also be empty (or "-g", if a non-GCC C++ compiler is in the path).
9264 # We want to ensure that TARGET libraries (which we know are built with
9265 # gcc) are built with "-O2 -g", so include those options when setting
9266 # CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET.
9267 if test "x$CFLAGS_FOR_TARGET" = x; then
9268 if test "x${is_cross_compiler}" = xyes; then
9269 CFLAGS_FOR_TARGET="-g -O2"
9271 CFLAGS_FOR_TARGET=$CFLAGS
9274 *) CFLAGS_FOR_TARGET="-O2 $CFLAGS_FOR_TARGET" ;;
9277 *" -g "* | *" -g3 "*) ;;
9278 *) CFLAGS_FOR_TARGET="-g $CFLAGS_FOR_TARGET" ;;
9284 if test "x$CXXFLAGS_FOR_TARGET" = x; then
9285 if test "x${is_cross_compiler}" = xyes; then
9286 CXXFLAGS_FOR_TARGET="-g -O2"
9288 CXXFLAGS_FOR_TARGET=$CXXFLAGS
9289 case " $CXXFLAGS " in
9291 *) CXXFLAGS_FOR_TARGET="-O2 $CXXFLAGS_FOR_TARGET" ;;
9293 case " $CXXFLAGS " in
9294 *" -g "* | *" -g3 "*) ;;
9295 *) CXXFLAGS_FOR_TARGET="-g $CXXFLAGS_FOR_TARGET" ;;
9303 # Handle --with-headers=XXX. If the value is not "yes", the contents of
9304 # the named directory are copied to $(tooldir)/sys-include.
9305 if test x"${with_headers}" != x && test x"${with_headers}" != xno ; then
9306 if test x${is_cross_compiler} = xno ; then
9307 echo 1>&2 '***' --with-headers is only supported when cross compiling
9310 if test x"${with_headers}" != xyes ; then
9311 x=${gcc_cv_tool_prefix}
9312 copy_dirs="${copy_dirs} ${with_headers} $x/${target_noncanonical}/sys-include"
9316 # Handle --with-libs=XXX. If the value is not "yes", the contents of
9317 # the name directories are copied to $(tooldir)/lib. Multiple directories
9319 if test x"${with_libs}" != x && test x"${with_libs}" != xno ; then
9320 if test x${is_cross_compiler} = xno ; then
9321 echo 1>&2 '***' --with-libs is only supported when cross compiling
9324 if test x"${with_libs}" != xyes ; then
9325 # Copy the libraries in reverse order, so that files in the first named
9326 # library override files in subsequent libraries.
9327 x=${gcc_cv_tool_prefix}
9328 for l in ${with_libs}; do
9329 copy_dirs="$l $x/${target_noncanonical}/lib ${copy_dirs}"
9334 # Set with_gnu_as, with_gnu_ld, and with_system_zlib as appropriate.
9336 # This is done by determining whether or not the appropriate directory
9337 # is available, and by checking whether or not specific configurations
9338 # have requested that this magic not happen.
9340 # The command line options always override the explicit settings in
9341 # configure.ac, and the settings in configure.ac override this magic.
9343 # If the default for a toolchain is to use GNU as and ld, and you don't
9344 # want to do that, then you should use the --without-gnu-as and
9345 # --without-gnu-ld options for the configure script. Similarly, if
9346 # the default is to use the included zlib and you don't want to do that,
9347 # you should use the --with-system-zlib option for the configure script.
9349 if test x${use_gnu_as} = x &&
9350 echo " ${configdirs} " | grep " gas " > /dev/null 2>&1 ; then
9352 extra_host_args="$extra_host_args --with-gnu-as"
9355 if test x${use_gnu_ld} = x &&
9356 echo " ${configdirs} " | egrep " (go)?ld " > /dev/null 2>&1 ; then
9358 extra_host_args="$extra_host_args --with-gnu-ld"
9361 if test x${use_included_zlib} = x &&
9362 echo " ${configdirs} " | grep " zlib " > /dev/null 2>&1 ; then
9365 with_system_zlib=yes
9366 extra_host_args="$extra_host_args --with-system-zlib"
9369 # If using newlib, add --with-newlib to the extra_host_args so that gcc/configure
9370 # can detect this case.
9372 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " target-newlib " > /dev/null 2>&1 ; then
9374 extra_host_args="$extra_host_args --with-newlib"
9377 # Handle ${copy_dirs}
9378 set fnord ${copy_dirs}
9380 while test $# != 0 ; do
9381 if test -f $2/COPIED && test x"`cat $2/COPIED`" = x"$1" ; then
9384 echo Copying $1 to $2
9386 # Use the install script to create the directory and all required
9387 # parent directories.
9388 if test -d $2 ; then
9392 ${srcdir}/install-sh -c -m 644 config.temp $2/COPIED
9395 # Copy the directory, assuming we have tar.
9396 # FIXME: Should we use B in the second tar? Not all systems support it.
9397 (cd $1; tar -cf - .) | (cd $2; tar -xpf -)
9399 # It is the responsibility of the user to correctly adjust all
9400 # symlinks. If somebody can figure out how to handle them correctly
9401 # here, feel free to add the code.
9408 # Determine a target-dependent exec_prefix that the installed
9409 # gcc will search in. Keep this list sorted by triplet, with
9410 # the *-*-osname triplets last.
9413 i[34567]86-pc-msdosdjgpp*)
9414 md_exec_prefix=/dev/env/DJDIR/bin
9419 md_exec_prefix=/usr/ccs/bin
9423 extra_arflags_for_target=
9424 extra_nmflags_for_target=
9425 extra_ranlibflags_for_target=
9426 target_makefile_frag=/dev/null
9429 target_makefile_frag="config/mt-spu"
9431 mips*-sde-elf* | mips*-mti-elf* | mips*-img-elf*)
9432 target_makefile_frag="config/mt-sde"
9434 mipsisa*-*-elfoabi*)
9435 target_makefile_frag="config/mt-mips-elfoabi"
9437 mips*-*-*linux* | mips*-*-gnu*)
9438 target_makefile_frag="config/mt-mips-gnu"
9441 target_makefile_frag="config/mt-nios2-elf"
9444 target_makefile_frag="config/mt-android"
9446 *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
9447 target_makefile_frag="config/mt-gnu"
9449 *-*-aix4.[3456789]* | *-*-aix[56789].*)
9450 # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
9451 # commands to handle both 32-bit and 64-bit objects. These flags are
9452 # harmless if we're using GNU nm or ar.
9453 extra_arflags_for_target=" -X32_64"
9454 extra_nmflags_for_target=" -B -X32_64"
9458 alphaieee_frag=/dev/null
9461 # This just makes sure to use the -mieee option to build target libs.
9462 # This should probably be set individually by each library.
9463 alphaieee_frag="config/mt-alphaieee"
9467 # If --enable-target-optspace always use -Os instead of -O2 to build
9468 # the target libraries, similarly if it is not specified, use -Os
9469 # on selected platforms.
9470 ospace_frag=/dev/null
9471 case "${enable_target_optspace}:${target}" in
9473 ospace_frag="config/mt-ospace"
9476 ospace_frag="config/mt-d30v"
9478 :m32r-* | :d10v-* | :fr30-* | :i?86*-*-elfiamcu)
9479 ospace_frag="config/mt-ospace"
9484 echo "*** bad value \"${enable_target_optspace}\" for --enable-target-optspace flag; ignored" 1>&2
9488 # Some systems (e.g., one of the i386-aix systems the gas testers are
9489 # using) don't handle "\$" correctly, so don't use it here.
9490 tooldir='${exec_prefix}'/${target_noncanonical}
9491 build_tooldir=${tooldir}
9493 # Create a .gdbinit file which runs the one in srcdir
9494 # and tells GDB to look there for source files.
9496 if test -r ${srcdir}/.gdbinit ; then
9499 *) cat > ./.gdbinit <<EOF
9503 source ${srcdir}/.gdbinit
9509 # Make sure that the compiler is able to generate an executable. If it
9510 # can't, we are probably in trouble. We don't care whether we can run the
9511 # executable--we might be using a cross compiler--we only care whether it
9512 # can be created. At this point the main configure script has set CC.
9514 echo "int main () { return 0; }" > conftest.c
9515 ${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
9516 if test $? = 0 ; then
9517 if test -s conftest || test -s conftest.exe ; then
9523 echo 1>&2 "*** The command '${CC} -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c' failed."
9524 echo 1>&2 "*** You must set the environment variable CC to a working compiler."
9531 # Decide which environment variable is used to find dynamic libraries.
9533 *-*-hpux*) RPATH_ENVVAR=SHLIB_PATH ;;
9534 *-*-darwin*) RPATH_ENVVAR=DYLD_LIBRARY_PATH ;;
9535 *-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;;
9536 *) RPATH_ENVVAR=LD_LIBRARY_PATH ;;
9539 # On systems where the dynamic library environment variable is PATH,
9540 # gcc/ will put dynamic libraries into a subdirectory to avoid adding
9541 # built executables to PATH.
9542 if test "$RPATH_ENVVAR" = PATH; then
9543 GCC_SHLIB_SUBDIR=/shlib
9548 # Adjust the toplevel makefile according to whether bootstrap was selected.
9549 case $enable_bootstrap in
9551 bootstrap_suffix=bootstrap
9552 BUILD_CONFIG=bootstrap-debug
9555 bootstrap_suffix=no-bootstrap
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for default BUILD_CONFIG" >&5
9561 $as_echo_n "checking for default BUILD_CONFIG... " >&6; }
9564 # Check whether --with-build-config was given.
9565 if test "${with_build_config+set}" = set; then :
9566 withval=$with_build_config; case $with_build_config in
9567 yes) with_build_config= ;;
9568 no) with_build_config= BUILD_CONFIG= ;;
9573 if test "x${with_build_config}" != x; then
9574 BUILD_CONFIG=$with_build_config
9576 case $BUILD_CONFIG in
9578 if echo "int f (void) { return 0; }" > conftest.c &&
9579 ${CC} -c conftest.c &&
9580 mv conftest.o conftest.o.g0 &&
9581 ${CC} -c -g conftest.c &&
9582 mv conftest.o conftest.o.g &&
9583 ${srcdir}/contrib/compare-debug conftest.o.g0 conftest.o.g > /dev/null 2>&1; then
9588 rm -f conftest.c conftest.o conftest.o.g0 conftest.o.g
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BUILD_CONFIG" >&5
9593 $as_echo "$BUILD_CONFIG" >&6; }
9596 # Use same top-level configure hooks in libgcc/libstdc++/libvtv.
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-vtable-verify" >&5
9598 $as_echo_n "checking for --enable-vtable-verify... " >&6; }
9599 # Check whether --enable-vtable-verify was given.
9600 if test "${enable_vtable_verify+set}" = set; then :
9601 enableval=$enable_vtable_verify; case "$enableval" in
9602 yes) enable_vtable_verify=yes ;;
9603 no) enable_vtable_verify=no ;;
9604 *) enable_vtable_verify=no;;
9607 enable_vtable_verify=no
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_vtable_verify" >&5
9611 $as_echo "$enable_vtable_verify" >&6; }
9613 # Record target_configdirs and the configure arguments for target and
9614 # build configuration in Makefile.
9615 target_configdirs=`echo "${target_configdirs}" | sed -e 's/target-//g'`
9616 build_configdirs=`echo "${build_configdirs}" | sed -e 's/build-//g'`
9617 bootstrap_fixincludes=no
9619 # If we are building libgomp, bootstrap it.
9620 if echo " ${target_configdirs} " | grep " libgomp " > /dev/null 2>&1 ; then
9621 bootstrap_target_libs=${bootstrap_target_libs}target-libgomp,
9624 # If we are building libsanitizer and $BUILD_CONFIG contains bootstrap-asan
9625 # or bootstrap-ubsan, bootstrap it.
9626 if echo " ${target_configdirs} " | grep " libsanitizer " > /dev/null 2>&1; then
9627 case "$BUILD_CONFIG" in
9628 *bootstrap-hwasan* | *bootstrap-asan* | *bootstrap-ubsan* )
9629 bootstrap_target_libs=${bootstrap_target_libs}target-libsanitizer,
9630 bootstrap_fixincludes=yes
9635 # If we are building libvtv and --enable-vtable-verify, bootstrap it.
9636 if echo " ${target_configdirs} " | grep " libvtv " > /dev/null 2>&1 &&
9637 test "$enable_vtable_verify" != no; then
9638 bootstrap_target_libs=${bootstrap_target_libs}target-libvtv,
9641 # If we are building libatomic and the list of enabled languages includes the
9642 # D frontend, bootstrap it.
9643 if echo " ${target_configdirs} " | grep " libatomic " > /dev/null 2>&1; then
9644 case ,${enable_languages}, in
9646 bootstrap_target_libs=${bootstrap_target_libs}target-libatomic,
9651 # Determine whether gdb needs tk/tcl or not.
9652 # Use 'maybe' since enable_gdbtk might be true even if tk isn't available
9653 # and in that case we want gdb to be built without tk. Ugh!
9654 # In fact I believe gdb is the *only* package directly dependent on tk,
9655 # so we should be able to put the 'maybe's in unconditionally and
9656 # leave out the maybe dependencies when enable_gdbtk is false. I'm not
9657 # 100% sure that that's safe though.
9659 gdb_tk="maybe-all-tcl maybe-all-tk maybe-all-itcl maybe-all-libgui"
9660 case "$enable_gdbtk" in
9664 GDB_TK="${gdb_tk}" ;;
9666 # Only add the dependency on gdbtk when GDBtk is part of the gdb
9667 # distro. Eventually someone will fix this and move Insight, nee
9668 # gdbtk to a separate directory.
9669 if test -d ${srcdir}/gdb/gdbtk ; then
9676 CONFIGURE_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-configure-/g`
9677 INSTALL_GDB_TK=`echo ${GDB_TK} | sed s/-all-/-install-/g`
9679 # gdb and gdbserver depend on gnulib and gdbsupport, but as nothing
9680 # else does, only include them if one of these is built. The Makefile
9681 # provides the ordering, so it's enough here to add to the list.
9682 case " ${configdirs} " in
9684 configdirs="${configdirs} gnulib gdbsupport"
9687 configdirs="${configdirs} gnulib gdbsupport"
9690 configdirs="${configdirs} gnulib"
9694 # Strip out unwanted targets.
9696 # While at that, we remove Makefiles if we were started for recursive
9697 # configuration, so that the top-level Makefile reconfigures them,
9698 # like we used to do when configure itself was recursive.
9700 # Loop over modules. We used to use the "$extrasub" feature from Autoconf
9701 # but now we're fixing up the Makefile ourselves with the additional
9702 # commands passed to AC_CONFIG_FILES. Use separate variables
9703 # extrasub-{build,host,target} not because there is any reason to split
9704 # the substitutions up that way, but only to remain below the limit of
9705 # 99 commands in a script, for HP-UX sed.
9707 # Do not nest @if/@endif or @unless/@endunless pairs, because
9708 # configure will not warn you at all.
9710 case "$enable_bootstrap:$ENABLE_GOLD: $configdirs :,$stage1_languages," in
9711 yes:yes:*\ gold\ *:*,c++,*) ;;
9712 yes:yes:*\ gold\ *:*)
9713 as_fn_error $? "in a combined tree, bootstrapping with --enable-gold requires c++ in stage1_languages" "$LINENO" 5
9718 for module in ${build_configdirs} ; do
9719 if test -z "${no_recursion}" \
9720 && test -f ${build_subdir}/${module}/Makefile; then
9721 echo 1>&2 "*** removing ${build_subdir}/${module}/Makefile to force reconfigure"
9722 rm -f ${build_subdir}/${module}/Makefile
9724 extrasub_build="$extrasub_build
9725 /^@if build-$module\$/d
9726 /^@endif build-$module\$/d
9727 /^@unless build-$module\$/,/^@endunless build-$module\$/d
9728 /^@if build-$module-$bootstrap_suffix\$/d
9729 /^@endif build-$module-$bootstrap_suffix\$/d
9730 /^@unless build-$module-$bootstrap_suffix\$/,/^@endunless build-$module-$bootstrap_suffix\$/d"
9733 for module in ${configdirs} ; do
9734 if test -z "${no_recursion}"; then
9735 for file in stage*-${module}/Makefile prev-${module}/Makefile ${module}/Makefile; do
9736 if test -f ${file}; then
9737 echo 1>&2 "*** removing ${file} to force reconfigure"
9742 case ${module},${bootstrap_fixincludes} in
9743 fixincludes,no) host_bootstrap_suffix=no-bootstrap ;;
9744 *) host_bootstrap_suffix=$bootstrap_suffix ;;
9746 extrasub_host="$extrasub_host
9748 /^@endif $module\$/d
9749 /^@unless $module\$/,/^@endunless $module\$/d
9750 /^@if $module-$host_bootstrap_suffix\$/d
9751 /^@endif $module-$host_bootstrap_suffix\$/d
9752 /^@unless $module-$host_bootstrap_suffix\$/,/^@endunless $module-$host_bootstrap_suffix\$/d"
9755 for module in ${target_configdirs} ; do
9756 if test -z "${no_recursion}" \
9757 && test -f ${target_subdir}/${module}/Makefile; then
9758 echo 1>&2 "*** removing ${target_subdir}/${module}/Makefile to force reconfigure"
9759 rm -f ${target_subdir}/${module}/Makefile
9762 # We only bootstrap target libraries listed in bootstrap_target_libs.
9763 case $bootstrap_target_libs in
9764 *,target-$module,*) target_bootstrap_suffix=$bootstrap_suffix ;;
9765 *) target_bootstrap_suffix=no-bootstrap ;;
9768 extrasub_target="$extrasub_target
9769 /^@if target-$module\$/d
9770 /^@endif target-$module\$/d
9771 /^@unless target-$module\$/,/^@endunless target-$module\$/d
9772 /^@if target-$module-$target_bootstrap_suffix\$/d
9773 /^@endif target-$module-$target_bootstrap_suffix\$/d
9774 /^@unless target-$module-$target_bootstrap_suffix\$/,/^@endunless target-$module-$target_bootstrap_suffix\$/d"
9777 # Do the final fixup along with target modules.
9778 extrasub_target="$extrasub_target
9783 # Create the serialization dependencies. This uses a temporary file.
9785 # Check whether --enable-serial-configure was given.
9786 if test "${enable_serial_configure+set}" = set; then :
9787 enableval=$enable_serial_configure;
9791 case ${enable_serial_configure} in
9793 enable_serial_build_configure=yes
9794 enable_serial_host_configure=yes
9795 enable_serial_target_configure=yes
9799 # These force 'configure's to be done one at a time, to avoid problems
9800 # with contention over a shared config.cache.
9802 echo '# serdep.tmp' > serdep.tmp
9804 test "x${enable_serial_build_configure}" = xyes &&
9805 for item in ${build_configdirs} ; do
9808 *) echo "configure-build-${item}: configure-build-${olditem}" >> serdep.tmp ;;
9813 test "x${enable_serial_host_configure}" = xyes &&
9814 for item in ${configdirs} ; do
9817 *) echo "configure-${item}: configure-${olditem}" >> serdep.tmp ;;
9822 test "x${enable_serial_target_configure}" = xyes &&
9823 for item in ${target_configdirs} ; do
9826 *) echo "configure-target-${item}: configure-target-${olditem}" >> serdep.tmp ;;
9830 serialization_dependencies=serdep.tmp
9833 # Base args. Strip norecursion, cache-file, srcdir, host, build,
9834 # target, nonopt, and variable assignments. These are the ones we
9835 # might not want to pass down to subconfigures. The exception being
9836 # --cache-file=/dev/null, which is used to turn off the use of cache
9837 # files altogether, and which should be passed on to subconfigures.
9838 # Also strip program-prefix, program-suffix, and program-transform-name,
9839 # so that we can pass down a consistent program-transform-name.
9844 eval "set -- $ac_configure_args"
9847 if test X"$skip_next" = X"yes"; then
9851 if test X"$keep_next" = X"yes"; then
9854 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9856 baseargs="$baseargs '$ac_arg'"
9857 tbaseargs="$tbaseargs '$ac_arg'"
9862 # Handle separated arguments. Based on the logic generated by
9865 *=* | --config-cache | -C | -disable-* | --disable-* \
9866 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
9867 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
9868 | -with-* | --with-* | -without-* | --without-* | --x)
9882 --with-* | --without-*)
9883 libopt=`echo "$ac_arg" | sed -e 's,^--[^-_]*[-_],,' -e 's,=.*$,,'`
9887 lib=`echo "$libopt" | sed 's,[-_]include$,,'`
9890 lib=`echo "$libopt" | sed 's,[-_]lib$,,'`
9899 mpc | mpfr | gmp | isl)
9900 # If we're processing --with-$lib, --with-$lib-include or
9901 # --with-$lib-lib, for one of the libs above, and target is
9902 # different from host, don't pass the current argument to any
9903 # target library's configure.
9904 if test x$is_cross_compiler = xyes; then
9913 --cache-file=/dev/null | \
9914 -cache-file=/dev/null )
9915 # Handled here to avoid the test to skip args below.
9916 baseargs="$baseargs '$ac_arg'"
9917 tbaseargs="$tbaseargs '$ac_arg'"
9918 # Assert: $separate_arg should always be no.
9919 keep_next=$separate_arg
9935 -program-prefix* | \
9936 -program-suffix* | \
9937 -program-transform-name* )
9938 skip_next=$separate_arg
9942 # An option. Add it.
9945 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
9947 baseargs="$baseargs '$ac_arg'"
9948 if test X"$skip_targ" = Xno; then
9949 tbaseargs="$tbaseargs '$ac_arg'"
9951 keep_next=$separate_arg
9954 # Either a variable assignment, or a nonopt (triplet). Don't
9955 # pass it down; let the Makefile handle this.
9960 # Remove the initial space we just introduced and, as these will be
9961 # expanded by make, quote '$'.
9962 baseargs=`echo "x$baseargs" | sed -e 's/^x *//' -e 's,\\$,$$,g'`
9964 # Add in --program-transform-name, after --program-prefix and
9965 # --program-suffix have been applied to it. Autoconf has already
9966 # doubled dollar signs and backslashes in program_transform_name; we want
9967 # the backslashes un-doubled, and then the entire thing wrapped in single
9968 # quotes, because this will be expanded first by make and then by the shell.
9969 # Also, because we want to override the logic in subdir configure scripts to
9970 # choose program_transform_name, replace any s,x,x, with s,y,y,.
9971 sed -e "s,\\\\\\\\,\\\\,g; s,','\\\\'',g; s/s,x,x,/s,y,y,/" <<EOF_SED > conftestsed.out
9972 ${program_transform_name}
9974 gcc_transform_name=`cat conftestsed.out`
9975 rm -f conftestsed.out
9976 baseargs="$baseargs --program-transform-name='${gcc_transform_name}'"
9977 tbaseargs="$tbaseargs --program-transform-name='${gcc_transform_name}'"
9978 if test "$silent" = yes; then
9979 baseargs="$baseargs --silent"
9980 tbaseargs="$tbaseargs --silent"
9982 baseargs="$baseargs --disable-option-checking"
9983 tbaseargs="$tbaseargs --disable-option-checking"
9985 # Record and document user additions to sub configure arguments.
9990 # For the build-side libraries, we just need to pretend we're native,
9991 # and not use the same cache file. Multilibs are neither needed nor
9992 # desired. We can't even use the same cache file for all build-side
9993 # libraries, as they're compiled differently; some with C, some with
9994 # C++ or with different feature-enabling options.
9995 build_configargs="$build_configargs --cache-file=./config.cache ${baseargs}"
9997 # For host modules, accept cache file option, or specification as blank.
9998 case "${cache_file}" in
10000 cache_file_option="" ;;
10001 /* | [A-Za-z]:[\\/]* ) # absolute path
10002 cache_file_option="--cache-file=${cache_file}" ;;
10004 cache_file_option="--cache-file=../${cache_file}" ;;
10007 # Host dirs don't like to share a cache file either, horribly enough.
10008 # This seems to be due to autoconf 2.5x stupidity.
10009 host_configargs="$host_configargs --cache-file=./config.cache ${extra_host_args} ${baseargs}"
10011 target_configargs="$target_configargs ${tbaseargs}"
10013 # Passing a --with-cross-host argument lets the target libraries know
10014 # whether they are being built with a cross-compiler or being built
10015 # native. However, it would be better to use other mechanisms to make the
10016 # sorts of decisions they want to make on this basis. Please consider
10017 # this option to be deprecated. FIXME.
10018 if test x${is_cross_compiler} = xyes ; then
10019 target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}"
10022 # Special user-friendly check for native x86_64-linux build, if
10023 # multilib is not explicitly enabled.
10024 case "$target:$have_compiler:$host:$target:$enable_multilib" in
10025 x86_64-*linux*:yes:$build:$build:)
10026 # Make sure we have a development environment that handles 32-bit
10028 echo "int main () { return 0; }" > conftest.c
10029 ${CC} -m32 -o conftest ${CFLAGS} ${CPPFLAGS} ${LDFLAGS} conftest.c
10030 if test $? = 0 ; then
10031 if test -s conftest || test -s conftest.exe ; then
10036 if test x${dev64} != xyes ; then
10037 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
10042 # Default to --enable-multilib.
10043 if test x${enable_multilib} = x ; then
10044 target_configargs="--enable-multilib ${target_configargs}"
10047 # Pass --with-newlib if appropriate. Note that target_configdirs has
10048 # changed from the earlier setting of with_newlib.
10049 if test x${with_newlib} != xno && echo " ${target_configdirs} " | grep " newlib " > /dev/null 2>&1 && test -d ${srcdir}/newlib ; then
10050 target_configargs="--with-newlib ${target_configargs}"
10053 # Different target subdirs use different values of certain variables
10054 # (notably CXX). Worse, multilibs use *lots* of different values.
10055 # Worse yet, autoconf 2.5x makes some of these 'precious', meaning that
10056 # it doesn't automatically accept command-line overrides of them.
10057 # This means it's not safe for target subdirs to share a cache file,
10058 # which is disgusting, but there you have it. Hopefully this can be
10059 # fixed in future. It's still worthwhile to use a cache file for each
10060 # directory. I think.
10062 # Pass the appropriate --build, --host, --target and --cache-file arguments.
10063 # We need to pass --target, as newer autoconf's requires consistency
10064 # for target_alias and gcc doesn't manage it consistently.
10065 target_configargs="--cache-file=./config.cache ${target_configargs}"
10068 case " $target_configdirs " in
10070 case " $target_configargs " in
10071 *" --with-newlib "*)
10074 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include'
10078 # If we're not building GCC, don't discard standard headers.
10079 if test -d ${srcdir}/gcc; then
10080 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -nostdinc'
10082 if test "${build}" != "${host}"; then
10083 # On Canadian crosses, CC_FOR_TARGET will have already been set
10084 # by `configure', so we won't have an opportunity to add -Bgcc/
10085 # to it. This is right: we don't want to search that directory
10086 # for binaries, but we want the header files in there, so add
10088 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -isystem $$r/$(HOST_SUBDIR)/gcc/include -isystem $$r/$(HOST_SUBDIR)/gcc/include-fixed'
10090 # Someone might think of using the pre-installed headers on
10091 # Canadian crosses, in case the installed compiler is not fully
10092 # compatible with the compiler being built. In this case, it
10093 # would be better to flag an error than risking having
10094 # incompatible object files being constructed. We can't
10095 # guarantee that an error will be flagged, but let's hope the
10096 # compiler will do it, when presented with incompatible header
10101 case "${target}-${is_cross_compiler}" in
10102 i[3456789]86-*-linux*-no)
10103 # Here host == target, so we don't need to build gcc,
10104 # so we don't want to discard standard headers.
10105 FLAGS_FOR_TARGET=`echo " $FLAGS_FOR_TARGET " | sed -e 's/ -nostdinc / /'`
10108 # If we're building newlib, use its generic headers last, but search
10109 # for any libc-related directories first (so make it the last -B
10111 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/newlib/ -isystem $$r/$(TARGET_SUBDIR)/newlib/targ-include -isystem $$s/newlib/libc/include'
10113 # If we're building libgloss, find the startup file, simulator library
10114 # and linker script.
10115 case " $target_configdirs " in
10117 # Look for startup file, simulator library and maybe linker script.
10118 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$$r/$(TARGET_SUBDIR)/libgloss/'"$libgloss_dir"
10119 # Look for libnosys.a in case the target needs it.
10120 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/libgloss/libnosys'
10121 # Most targets have the linker script in the source directory.
10122 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$s/libgloss/'"$libgloss_dir"
10133 x86_64-*mingw* | *-w64-mingw*)
10134 # MinGW-w64 does not use newlib, nor does it use winsup. It may,
10135 # however, use a symlink named 'mingw' in ${prefix} .
10136 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L${prefix}/${target}/lib -L${prefix}/mingw/lib -isystem ${prefix}/${target}/include -isystem ${prefix}/mingw/include'
10139 # MinGW can't be handled as Cygwin above since it does not use newlib.
10140 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'
10144 # Allow the user to override the flags for
10145 # our build compiler if desired.
10146 if test x"${build}" = x"${host}" ; then
10147 CFLAGS_FOR_BUILD=${CFLAGS_FOR_BUILD-${CFLAGS}}
10148 CPPFLAGS_FOR_BUILD=${CPPFLAGS_FOR_BUILD-${CPPFLAGS}}
10149 CXXFLAGS_FOR_BUILD=${CXXFLAGS_FOR_BUILD-${CXXFLAGS}}
10150 LDFLAGS_FOR_BUILD=${LDFLAGS_FOR_BUILD-${LDFLAGS}}
10153 # On Canadian crosses, we'll be searching the right directories for
10154 # the previously-installed cross compiler, so don't bother to add
10155 # flags for directories within the install tree of the compiler
10156 # being built; programs in there won't even run.
10157 if test "${build}" = "${host}" && test -d ${srcdir}/gcc; then
10158 # Search for pre-installed headers if nothing else fits.
10159 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -B$(build_tooldir)/bin/ -B$(build_tooldir)/lib/ -isystem $(build_tooldir)/include -isystem $(build_tooldir)/sys-include'
10162 if test "x${use_gnu_ld}" = x &&
10163 echo " ${configdirs} " | grep " ld " > /dev/null ; then
10164 # Arrange for us to find uninstalled linker scripts.
10165 FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(HOST_SUBDIR)/ld'
10168 # Search for other target-specific linker scripts and such.
10169 case "${target}" in
10171 FLAGS_FOR_TARGET="$FLAGS_FOR_TARGET -mlibrary"
10175 # Makefile fragments.
10176 for frag in host_makefile_frag target_makefile_frag alphaieee_frag ospace_frag;
10178 eval fragval=\$$frag
10179 if test $fragval != /dev/null; then
10180 eval $frag=${srcdir}/$fragval
10188 # Miscellanea: directories, flags, etc.
10197 # Build module lists & subconfigure args.
10201 # Host module lists & subconfigure args.
10206 # Target module lists & subconfigure args.
10231 # Generate default definitions for YACC, M4, LEX and other programs that run
10232 # on the build machine. These are used if the Makefile can't locate these
10233 # programs in objdir.
10234 MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
10236 for ac_prog in 'bison -y' byacc yacc
10238 # Extract the first word of "$ac_prog", so it can be a program name with args.
10239 set dummy $ac_prog; ac_word=$2
10240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10241 $as_echo_n "checking for $ac_word... " >&6; }
10242 if ${ac_cv_prog_YACC+:} false; then :
10243 $as_echo_n "(cached) " >&6
10245 if test -n "$YACC"; then
10246 ac_cv_prog_YACC="$YACC" # Let the user override the test.
10248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10249 for as_dir in $PATH
10252 test -z "$as_dir" && as_dir=.
10253 for ac_exec_ext in '' $ac_executable_extensions; do
10254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10255 ac_cv_prog_YACC="$ac_prog"
10256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10265 YACC=$ac_cv_prog_YACC
10266 if test -n "$YACC"; then
10267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
10268 $as_echo "$YACC" >&6; }
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10271 $as_echo "no" >&6; }
10275 test -n "$YACC" && break
10277 test -n "$YACC" || YACC="$MISSING bison -y"
10279 case " $build_configdirs " in
10280 *" bison "*) YACC='$$r/$(BUILD_SUBDIR)/bison/tests/bison -y' ;;
10283 for ac_prog in bison
10285 # Extract the first word of "$ac_prog", so it can be a program name with args.
10286 set dummy $ac_prog; ac_word=$2
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10288 $as_echo_n "checking for $ac_word... " >&6; }
10289 if ${ac_cv_prog_BISON+:} false; then :
10290 $as_echo_n "(cached) " >&6
10292 if test -n "$BISON"; then
10293 ac_cv_prog_BISON="$BISON" # Let the user override the test.
10295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10296 for as_dir in $PATH
10299 test -z "$as_dir" && as_dir=.
10300 for ac_exec_ext in '' $ac_executable_extensions; do
10301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10302 ac_cv_prog_BISON="$ac_prog"
10303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10312 BISON=$ac_cv_prog_BISON
10313 if test -n "$BISON"; then
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5
10315 $as_echo "$BISON" >&6; }
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10318 $as_echo "no" >&6; }
10322 test -n "$BISON" && break
10324 test -n "$BISON" || BISON="$MISSING bison"
10326 case " $build_configdirs " in
10327 *" bison "*) BISON='$$r/$(BUILD_SUBDIR)/bison/tests/bison' ;;
10330 for ac_prog in gm4 gnum4 m4
10332 # Extract the first word of "$ac_prog", so it can be a program name with args.
10333 set dummy $ac_prog; ac_word=$2
10334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10335 $as_echo_n "checking for $ac_word... " >&6; }
10336 if ${ac_cv_prog_M4+:} false; then :
10337 $as_echo_n "(cached) " >&6
10339 if test -n "$M4"; then
10340 ac_cv_prog_M4="$M4" # Let the user override the test.
10342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10343 for as_dir in $PATH
10346 test -z "$as_dir" && as_dir=.
10347 for ac_exec_ext in '' $ac_executable_extensions; do
10348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10349 ac_cv_prog_M4="$ac_prog"
10350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10360 if test -n "$M4"; then
10361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $M4" >&5
10362 $as_echo "$M4" >&6; }
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10365 $as_echo "no" >&6; }
10369 test -n "$M4" && break
10371 test -n "$M4" || M4="$MISSING m4"
10373 case " $build_configdirs " in
10374 *" m4 "*) M4='$$r/$(BUILD_SUBDIR)/m4/m4' ;;
10377 for ac_prog in flex lex
10379 # Extract the first word of "$ac_prog", so it can be a program name with args.
10380 set dummy $ac_prog; ac_word=$2
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10382 $as_echo_n "checking for $ac_word... " >&6; }
10383 if ${ac_cv_prog_LEX+:} false; then :
10384 $as_echo_n "(cached) " >&6
10386 if test -n "$LEX"; then
10387 ac_cv_prog_LEX="$LEX" # Let the user override the test.
10389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10390 for as_dir in $PATH
10393 test -z "$as_dir" && as_dir=.
10394 for ac_exec_ext in '' $ac_executable_extensions; do
10395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10396 ac_cv_prog_LEX="$ac_prog"
10397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10406 LEX=$ac_cv_prog_LEX
10407 if test -n "$LEX"; then
10408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
10409 $as_echo "$LEX" >&6; }
10411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10412 $as_echo "no" >&6; }
10416 test -n "$LEX" && break
10418 test -n "$LEX" || LEX="$MISSING flex"
10420 case " $build_configdirs " in
10421 *" flex "*) LEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10422 *" lex "*) LEX='$$r/$(BUILD_SUBDIR)/lex/lex' ;;
10425 for ac_prog in flex
10427 # Extract the first word of "$ac_prog", so it can be a program name with args.
10428 set dummy $ac_prog; ac_word=$2
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10430 $as_echo_n "checking for $ac_word... " >&6; }
10431 if ${ac_cv_prog_FLEX+:} false; then :
10432 $as_echo_n "(cached) " >&6
10434 if test -n "$FLEX"; then
10435 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
10437 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10438 for as_dir in $PATH
10441 test -z "$as_dir" && as_dir=.
10442 for ac_exec_ext in '' $ac_executable_extensions; do
10443 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10444 ac_cv_prog_FLEX="$ac_prog"
10445 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10454 FLEX=$ac_cv_prog_FLEX
10455 if test -n "$FLEX"; then
10456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
10457 $as_echo "$FLEX" >&6; }
10459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10460 $as_echo "no" >&6; }
10464 test -n "$FLEX" && break
10466 test -n "$FLEX" || FLEX="$MISSING flex"
10468 case " $build_configdirs " in
10469 *" flex "*) FLEX='$$r/$(BUILD_SUBDIR)/flex/flex' ;;
10472 for ac_prog in makeinfo
10474 # Extract the first word of "$ac_prog", so it can be a program name with args.
10475 set dummy $ac_prog; ac_word=$2
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10477 $as_echo_n "checking for $ac_word... " >&6; }
10478 if ${ac_cv_prog_MAKEINFO+:} false; then :
10479 $as_echo_n "(cached) " >&6
10481 if test -n "$MAKEINFO"; then
10482 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test.
10484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10485 for as_dir in $PATH
10488 test -z "$as_dir" && as_dir=.
10489 for ac_exec_ext in '' $ac_executable_extensions; do
10490 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10491 ac_cv_prog_MAKEINFO="$ac_prog"
10492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10501 MAKEINFO=$ac_cv_prog_MAKEINFO
10502 if test -n "$MAKEINFO"; then
10503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEINFO" >&5
10504 $as_echo "$MAKEINFO" >&6; }
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10507 $as_echo "no" >&6; }
10511 test -n "$MAKEINFO" && break
10513 test -n "$MAKEINFO" || MAKEINFO="$MISSING makeinfo"
10515 case " $build_configdirs " in
10516 *" texinfo "*) MAKEINFO='$$r/$(BUILD_SUBDIR)/texinfo/makeinfo/makeinfo' ;;
10519 # For an installed makeinfo, we require it to be from texinfo 4.7 or
10520 # higher, else we use the "missing" dummy.
10521 if ${MAKEINFO} --version \
10522 | egrep 'texinfo[^0-9]*(4\.([7-9]|[1-9][0-9])|[5-9]|[1-9][0-9])' >/dev/null 2>&1; then
10525 MAKEINFO="$MISSING makeinfo"
10531 # FIXME: expect and dejagnu may become build tools?
10533 for ac_prog in expect
10535 # Extract the first word of "$ac_prog", so it can be a program name with args.
10536 set dummy $ac_prog; ac_word=$2
10537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10538 $as_echo_n "checking for $ac_word... " >&6; }
10539 if ${ac_cv_prog_EXPECT+:} false; then :
10540 $as_echo_n "(cached) " >&6
10542 if test -n "$EXPECT"; then
10543 ac_cv_prog_EXPECT="$EXPECT" # Let the user override the test.
10545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10546 for as_dir in $PATH
10549 test -z "$as_dir" && as_dir=.
10550 for ac_exec_ext in '' $ac_executable_extensions; do
10551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10552 ac_cv_prog_EXPECT="$ac_prog"
10553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10562 EXPECT=$ac_cv_prog_EXPECT
10563 if test -n "$EXPECT"; then
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPECT" >&5
10565 $as_echo "$EXPECT" >&6; }
10567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10568 $as_echo "no" >&6; }
10572 test -n "$EXPECT" && break
10574 test -n "$EXPECT" || EXPECT="expect"
10576 case " $configdirs " in
10578 test $host = $build && EXPECT='$$r/$(HOST_SUBDIR)/expect/expect'
10582 for ac_prog in runtest
10584 # Extract the first word of "$ac_prog", so it can be a program name with args.
10585 set dummy $ac_prog; ac_word=$2
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10587 $as_echo_n "checking for $ac_word... " >&6; }
10588 if ${ac_cv_prog_RUNTEST+:} false; then :
10589 $as_echo_n "(cached) " >&6
10591 if test -n "$RUNTEST"; then
10592 ac_cv_prog_RUNTEST="$RUNTEST" # Let the user override the test.
10594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10595 for as_dir in $PATH
10598 test -z "$as_dir" && as_dir=.
10599 for ac_exec_ext in '' $ac_executable_extensions; do
10600 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10601 ac_cv_prog_RUNTEST="$ac_prog"
10602 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10611 RUNTEST=$ac_cv_prog_RUNTEST
10612 if test -n "$RUNTEST"; then
10613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RUNTEST" >&5
10614 $as_echo "$RUNTEST" >&6; }
10616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10617 $as_echo "no" >&6; }
10621 test -n "$RUNTEST" && break
10623 test -n "$RUNTEST" || RUNTEST="runtest"
10625 case " $configdirs " in
10627 test $host = $build && RUNTEST='$$s/$(HOST_SUBDIR)/dejagnu/runtest'
10634 test -n "$host_alias" && ncn_tool_prefix=$host_alias-
10635 ncn_target_tool_prefix=
10636 test -n "$target_alias" && ncn_target_tool_prefix=$target_alias-
10640 if test -n "$AR"; then
10642 elif test -n "$ac_cv_prog_AR"; then
10646 if test -n "$ac_cv_prog_AR"; then
10647 for ncn_progname in ar; do
10648 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10649 set dummy ${ncn_progname}; ac_word=$2
10650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10651 $as_echo_n "checking for $ac_word... " >&6; }
10652 if ${ac_cv_prog_AR+:} false; then :
10653 $as_echo_n "(cached) " >&6
10655 if test -n "$AR"; then
10656 ac_cv_prog_AR="$AR" # Let the user override the test.
10658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10659 for as_dir in $PATH
10662 test -z "$as_dir" && as_dir=.
10663 for ac_exec_ext in '' $ac_executable_extensions; do
10664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10665 ac_cv_prog_AR="${ncn_progname}"
10666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10676 if test -n "$AR"; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10678 $as_echo "$AR" >&6; }
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10688 for ncn_progname in ar; do
10689 if test -n "$ncn_tool_prefix"; then
10690 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10691 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10693 $as_echo_n "checking for $ac_word... " >&6; }
10694 if ${ac_cv_prog_AR+:} false; then :
10695 $as_echo_n "(cached) " >&6
10697 if test -n "$AR"; then
10698 ac_cv_prog_AR="$AR" # Let the user override the test.
10700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10701 for as_dir in $PATH
10704 test -z "$as_dir" && as_dir=.
10705 for ac_exec_ext in '' $ac_executable_extensions; do
10706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10707 ac_cv_prog_AR="${ncn_tool_prefix}${ncn_progname}"
10708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10718 if test -n "$AR"; then
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10720 $as_echo "$AR" >&6; }
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10723 $as_echo "no" >&6; }
10728 if test -z "$ac_cv_prog_AR" && test $build = $host ; then
10729 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10730 set dummy ${ncn_progname}; ac_word=$2
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10732 $as_echo_n "checking for $ac_word... " >&6; }
10733 if ${ac_cv_prog_AR+:} false; then :
10734 $as_echo_n "(cached) " >&6
10736 if test -n "$AR"; then
10737 ac_cv_prog_AR="$AR" # Let the user override the test.
10739 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10740 for as_dir in $PATH
10743 test -z "$as_dir" && as_dir=.
10744 for ac_exec_ext in '' $ac_executable_extensions; do
10745 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10746 ac_cv_prog_AR="${ncn_progname}"
10747 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10757 if test -n "$AR"; then
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10759 $as_echo "$AR" >&6; }
10761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10762 $as_echo "no" >&6; }
10767 test -n "$ac_cv_prog_AR" && break
10770 if test -z "$ac_cv_prog_AR" ; then
10772 if test $build = $host ; then
10775 AR="${ncn_tool_prefix}$2"
10781 if test -n "$AS"; then
10783 elif test -n "$ac_cv_prog_AS"; then
10787 if test -n "$ac_cv_prog_AS"; then
10788 for ncn_progname in as; do
10789 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10790 set dummy ${ncn_progname}; ac_word=$2
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10792 $as_echo_n "checking for $ac_word... " >&6; }
10793 if ${ac_cv_prog_AS+:} false; then :
10794 $as_echo_n "(cached) " >&6
10796 if test -n "$AS"; then
10797 ac_cv_prog_AS="$AS" # Let the user override the test.
10799 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10800 for as_dir in $PATH
10803 test -z "$as_dir" && as_dir=.
10804 for ac_exec_ext in '' $ac_executable_extensions; do
10805 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10806 ac_cv_prog_AS="${ncn_progname}"
10807 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10817 if test -n "$AS"; then
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10819 $as_echo "$AS" >&6; }
10821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10822 $as_echo "no" >&6; }
10829 for ncn_progname in as; do
10830 if test -n "$ncn_tool_prefix"; then
10831 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10832 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10834 $as_echo_n "checking for $ac_word... " >&6; }
10835 if ${ac_cv_prog_AS+:} false; then :
10836 $as_echo_n "(cached) " >&6
10838 if test -n "$AS"; then
10839 ac_cv_prog_AS="$AS" # Let the user override the test.
10841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10842 for as_dir in $PATH
10845 test -z "$as_dir" && as_dir=.
10846 for ac_exec_ext in '' $ac_executable_extensions; do
10847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10848 ac_cv_prog_AS="${ncn_tool_prefix}${ncn_progname}"
10849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10859 if test -n "$AS"; then
10860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10861 $as_echo "$AS" >&6; }
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10864 $as_echo "no" >&6; }
10869 if test -z "$ac_cv_prog_AS" && test $build = $host ; then
10870 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10871 set dummy ${ncn_progname}; ac_word=$2
10872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10873 $as_echo_n "checking for $ac_word... " >&6; }
10874 if ${ac_cv_prog_AS+:} false; then :
10875 $as_echo_n "(cached) " >&6
10877 if test -n "$AS"; then
10878 ac_cv_prog_AS="$AS" # Let the user override the test.
10880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10881 for as_dir in $PATH
10884 test -z "$as_dir" && as_dir=.
10885 for ac_exec_ext in '' $ac_executable_extensions; do
10886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10887 ac_cv_prog_AS="${ncn_progname}"
10888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10898 if test -n "$AS"; then
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
10900 $as_echo "$AS" >&6; }
10902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10903 $as_echo "no" >&6; }
10908 test -n "$ac_cv_prog_AS" && break
10911 if test -z "$ac_cv_prog_AS" ; then
10913 if test $build = $host ; then
10916 AS="${ncn_tool_prefix}$2"
10922 if test -n "$DLLTOOL"; then
10923 ac_cv_prog_DLLTOOL=$DLLTOOL
10924 elif test -n "$ac_cv_prog_DLLTOOL"; then
10925 DLLTOOL=$ac_cv_prog_DLLTOOL
10928 if test -n "$ac_cv_prog_DLLTOOL"; then
10929 for ncn_progname in dlltool; do
10930 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
10931 set dummy ${ncn_progname}; ac_word=$2
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10933 $as_echo_n "checking for $ac_word... " >&6; }
10934 if ${ac_cv_prog_DLLTOOL+:} false; then :
10935 $as_echo_n "(cached) " >&6
10937 if test -n "$DLLTOOL"; then
10938 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10941 for as_dir in $PATH
10944 test -z "$as_dir" && as_dir=.
10945 for ac_exec_ext in '' $ac_executable_extensions; do
10946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10947 ac_cv_prog_DLLTOOL="${ncn_progname}"
10948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10957 DLLTOOL=$ac_cv_prog_DLLTOOL
10958 if test -n "$DLLTOOL"; then
10959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
10960 $as_echo "$DLLTOOL" >&6; }
10962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10963 $as_echo "no" >&6; }
10970 for ncn_progname in dlltool; do
10971 if test -n "$ncn_tool_prefix"; then
10972 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
10973 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
10974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10975 $as_echo_n "checking for $ac_word... " >&6; }
10976 if ${ac_cv_prog_DLLTOOL+:} false; then :
10977 $as_echo_n "(cached) " >&6
10979 if test -n "$DLLTOOL"; then
10980 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10982 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10983 for as_dir in $PATH
10986 test -z "$as_dir" && as_dir=.
10987 for ac_exec_ext in '' $ac_executable_extensions; do
10988 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10989 ac_cv_prog_DLLTOOL="${ncn_tool_prefix}${ncn_progname}"
10990 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10999 DLLTOOL=$ac_cv_prog_DLLTOOL
11000 if test -n "$DLLTOOL"; then
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11002 $as_echo "$DLLTOOL" >&6; }
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11005 $as_echo "no" >&6; }
11010 if test -z "$ac_cv_prog_DLLTOOL" && test $build = $host ; then
11011 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11012 set dummy ${ncn_progname}; ac_word=$2
11013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11014 $as_echo_n "checking for $ac_word... " >&6; }
11015 if ${ac_cv_prog_DLLTOOL+:} false; then :
11016 $as_echo_n "(cached) " >&6
11018 if test -n "$DLLTOOL"; then
11019 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11022 for as_dir in $PATH
11025 test -z "$as_dir" && as_dir=.
11026 for ac_exec_ext in '' $ac_executable_extensions; do
11027 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11028 ac_cv_prog_DLLTOOL="${ncn_progname}"
11029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11038 DLLTOOL=$ac_cv_prog_DLLTOOL
11039 if test -n "$DLLTOOL"; then
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11041 $as_echo "$DLLTOOL" >&6; }
11043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11044 $as_echo "no" >&6; }
11049 test -n "$ac_cv_prog_DLLTOOL" && break
11052 if test -z "$ac_cv_prog_DLLTOOL" ; then
11054 if test $build = $host ; then
11057 DLLTOOL="${ncn_tool_prefix}$2"
11063 if test -n "$DSYMUTIL"; then
11064 ac_cv_prog_DSYMUTIL=$DSYMUTIL
11065 elif test -n "$ac_cv_prog_DSYMUTIL"; then
11066 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11069 if test -n "$ac_cv_prog_DSYMUTIL"; then
11070 for ncn_progname in dsymutil; do
11071 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11072 set dummy ${ncn_progname}; ac_word=$2
11073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11074 $as_echo_n "checking for $ac_word... " >&6; }
11075 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11076 $as_echo_n "(cached) " >&6
11078 if test -n "$DSYMUTIL"; then
11079 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11082 for as_dir in $PATH
11085 test -z "$as_dir" && as_dir=.
11086 for ac_exec_ext in '' $ac_executable_extensions; do
11087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11088 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11098 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11099 if test -n "$DSYMUTIL"; then
11100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11101 $as_echo "$DSYMUTIL" >&6; }
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11104 $as_echo "no" >&6; }
11111 for ncn_progname in dsymutil; do
11112 if test -n "$ncn_tool_prefix"; then
11113 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11114 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11116 $as_echo_n "checking for $ac_word... " >&6; }
11117 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11118 $as_echo_n "(cached) " >&6
11120 if test -n "$DSYMUTIL"; then
11121 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11124 for as_dir in $PATH
11127 test -z "$as_dir" && as_dir=.
11128 for ac_exec_ext in '' $ac_executable_extensions; do
11129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11130 ac_cv_prog_DSYMUTIL="${ncn_tool_prefix}${ncn_progname}"
11131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11140 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11141 if test -n "$DSYMUTIL"; then
11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11143 $as_echo "$DSYMUTIL" >&6; }
11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11146 $as_echo "no" >&6; }
11151 if test -z "$ac_cv_prog_DSYMUTIL" && test $build = $host ; then
11152 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11153 set dummy ${ncn_progname}; ac_word=$2
11154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11155 $as_echo_n "checking for $ac_word... " >&6; }
11156 if ${ac_cv_prog_DSYMUTIL+:} false; then :
11157 $as_echo_n "(cached) " >&6
11159 if test -n "$DSYMUTIL"; then
11160 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
11162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11163 for as_dir in $PATH
11166 test -z "$as_dir" && as_dir=.
11167 for ac_exec_ext in '' $ac_executable_extensions; do
11168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11169 ac_cv_prog_DSYMUTIL="${ncn_progname}"
11170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11179 DSYMUTIL=$ac_cv_prog_DSYMUTIL
11180 if test -n "$DSYMUTIL"; then
11181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
11182 $as_echo "$DSYMUTIL" >&6; }
11184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11185 $as_echo "no" >&6; }
11190 test -n "$ac_cv_prog_DSYMUTIL" && break
11193 if test -z "$ac_cv_prog_DSYMUTIL" ; then
11195 if test $build = $host ; then
11198 DSYMUTIL="${ncn_tool_prefix}$2"
11204 if test -n "$LD"; then
11206 elif test -n "$ac_cv_prog_LD"; then
11210 if test -n "$ac_cv_prog_LD"; then
11211 for ncn_progname in ld; do
11212 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11213 set dummy ${ncn_progname}; ac_word=$2
11214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11215 $as_echo_n "checking for $ac_word... " >&6; }
11216 if ${ac_cv_prog_LD+:} false; then :
11217 $as_echo_n "(cached) " >&6
11219 if test -n "$LD"; then
11220 ac_cv_prog_LD="$LD" # Let the user override the test.
11222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11223 for as_dir in $PATH
11226 test -z "$as_dir" && as_dir=.
11227 for ac_exec_ext in '' $ac_executable_extensions; do
11228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11229 ac_cv_prog_LD="${ncn_progname}"
11230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11240 if test -n "$LD"; then
11241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11242 $as_echo "$LD" >&6; }
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11245 $as_echo "no" >&6; }
11252 for ncn_progname in ld; do
11253 if test -n "$ncn_tool_prefix"; then
11254 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11255 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11257 $as_echo_n "checking for $ac_word... " >&6; }
11258 if ${ac_cv_prog_LD+:} false; then :
11259 $as_echo_n "(cached) " >&6
11261 if test -n "$LD"; then
11262 ac_cv_prog_LD="$LD" # Let the user override the test.
11264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11265 for as_dir in $PATH
11268 test -z "$as_dir" && as_dir=.
11269 for ac_exec_ext in '' $ac_executable_extensions; do
11270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11271 ac_cv_prog_LD="${ncn_tool_prefix}${ncn_progname}"
11272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11282 if test -n "$LD"; then
11283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11284 $as_echo "$LD" >&6; }
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11287 $as_echo "no" >&6; }
11292 if test -z "$ac_cv_prog_LD" && test $build = $host ; then
11293 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11294 set dummy ${ncn_progname}; ac_word=$2
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11296 $as_echo_n "checking for $ac_word... " >&6; }
11297 if ${ac_cv_prog_LD+:} false; then :
11298 $as_echo_n "(cached) " >&6
11300 if test -n "$LD"; then
11301 ac_cv_prog_LD="$LD" # Let the user override the test.
11303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11304 for as_dir in $PATH
11307 test -z "$as_dir" && as_dir=.
11308 for ac_exec_ext in '' $ac_executable_extensions; do
11309 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11310 ac_cv_prog_LD="${ncn_progname}"
11311 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11321 if test -n "$LD"; then
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
11323 $as_echo "$LD" >&6; }
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326 $as_echo "no" >&6; }
11331 test -n "$ac_cv_prog_LD" && break
11334 if test -z "$ac_cv_prog_LD" ; then
11336 if test $build = $host ; then
11339 LD="${ncn_tool_prefix}$2"
11345 if test -n "$LIPO"; then
11346 ac_cv_prog_LIPO=$LIPO
11347 elif test -n "$ac_cv_prog_LIPO"; then
11348 LIPO=$ac_cv_prog_LIPO
11351 if test -n "$ac_cv_prog_LIPO"; then
11352 for ncn_progname in lipo; do
11353 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11354 set dummy ${ncn_progname}; ac_word=$2
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11356 $as_echo_n "checking for $ac_word... " >&6; }
11357 if ${ac_cv_prog_LIPO+:} false; then :
11358 $as_echo_n "(cached) " >&6
11360 if test -n "$LIPO"; then
11361 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11364 for as_dir in $PATH
11367 test -z "$as_dir" && as_dir=.
11368 for ac_exec_ext in '' $ac_executable_extensions; do
11369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11370 ac_cv_prog_LIPO="${ncn_progname}"
11371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11380 LIPO=$ac_cv_prog_LIPO
11381 if test -n "$LIPO"; then
11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11383 $as_echo "$LIPO" >&6; }
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11386 $as_echo "no" >&6; }
11393 for ncn_progname in lipo; do
11394 if test -n "$ncn_tool_prefix"; then
11395 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11396 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11398 $as_echo_n "checking for $ac_word... " >&6; }
11399 if ${ac_cv_prog_LIPO+:} false; then :
11400 $as_echo_n "(cached) " >&6
11402 if test -n "$LIPO"; then
11403 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11406 for as_dir in $PATH
11409 test -z "$as_dir" && as_dir=.
11410 for ac_exec_ext in '' $ac_executable_extensions; do
11411 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11412 ac_cv_prog_LIPO="${ncn_tool_prefix}${ncn_progname}"
11413 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11422 LIPO=$ac_cv_prog_LIPO
11423 if test -n "$LIPO"; then
11424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11425 $as_echo "$LIPO" >&6; }
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11428 $as_echo "no" >&6; }
11433 if test -z "$ac_cv_prog_LIPO" && test $build = $host ; then
11434 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11435 set dummy ${ncn_progname}; ac_word=$2
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11437 $as_echo_n "checking for $ac_word... " >&6; }
11438 if ${ac_cv_prog_LIPO+:} false; then :
11439 $as_echo_n "(cached) " >&6
11441 if test -n "$LIPO"; then
11442 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
11444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11445 for as_dir in $PATH
11448 test -z "$as_dir" && as_dir=.
11449 for ac_exec_ext in '' $ac_executable_extensions; do
11450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11451 ac_cv_prog_LIPO="${ncn_progname}"
11452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11461 LIPO=$ac_cv_prog_LIPO
11462 if test -n "$LIPO"; then
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
11464 $as_echo "$LIPO" >&6; }
11466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11467 $as_echo "no" >&6; }
11472 test -n "$ac_cv_prog_LIPO" && break
11475 if test -z "$ac_cv_prog_LIPO" ; then
11477 if test $build = $host ; then
11480 LIPO="${ncn_tool_prefix}$2"
11486 if test -n "$NM"; then
11488 elif test -n "$ac_cv_prog_NM"; then
11492 if test -n "$ac_cv_prog_NM"; then
11493 for ncn_progname in nm; do
11494 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11495 set dummy ${ncn_progname}; ac_word=$2
11496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11497 $as_echo_n "checking for $ac_word... " >&6; }
11498 if ${ac_cv_prog_NM+:} false; then :
11499 $as_echo_n "(cached) " >&6
11501 if test -n "$NM"; then
11502 ac_cv_prog_NM="$NM" # Let the user override the test.
11504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11505 for as_dir in $PATH
11508 test -z "$as_dir" && as_dir=.
11509 for ac_exec_ext in '' $ac_executable_extensions; do
11510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11511 ac_cv_prog_NM="${ncn_progname}"
11512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11522 if test -n "$NM"; then
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11524 $as_echo "$NM" >&6; }
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11527 $as_echo "no" >&6; }
11534 for ncn_progname in nm; do
11535 if test -n "$ncn_tool_prefix"; then
11536 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11537 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11539 $as_echo_n "checking for $ac_word... " >&6; }
11540 if ${ac_cv_prog_NM+:} false; then :
11541 $as_echo_n "(cached) " >&6
11543 if test -n "$NM"; then
11544 ac_cv_prog_NM="$NM" # Let the user override the test.
11546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11547 for as_dir in $PATH
11550 test -z "$as_dir" && as_dir=.
11551 for ac_exec_ext in '' $ac_executable_extensions; do
11552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11553 ac_cv_prog_NM="${ncn_tool_prefix}${ncn_progname}"
11554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11564 if test -n "$NM"; then
11565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11566 $as_echo "$NM" >&6; }
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11569 $as_echo "no" >&6; }
11574 if test -z "$ac_cv_prog_NM" && test $build = $host ; then
11575 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11576 set dummy ${ncn_progname}; ac_word=$2
11577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11578 $as_echo_n "checking for $ac_word... " >&6; }
11579 if ${ac_cv_prog_NM+:} false; then :
11580 $as_echo_n "(cached) " >&6
11582 if test -n "$NM"; then
11583 ac_cv_prog_NM="$NM" # Let the user override the test.
11585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11586 for as_dir in $PATH
11589 test -z "$as_dir" && as_dir=.
11590 for ac_exec_ext in '' $ac_executable_extensions; do
11591 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11592 ac_cv_prog_NM="${ncn_progname}"
11593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11603 if test -n "$NM"; then
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
11605 $as_echo "$NM" >&6; }
11607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11608 $as_echo "no" >&6; }
11613 test -n "$ac_cv_prog_NM" && break
11616 if test -z "$ac_cv_prog_NM" ; then
11618 if test $build = $host ; then
11621 NM="${ncn_tool_prefix}$2"
11627 if test -n "$RANLIB"; then
11628 ac_cv_prog_RANLIB=$RANLIB
11629 elif test -n "$ac_cv_prog_RANLIB"; then
11630 RANLIB=$ac_cv_prog_RANLIB
11633 if test -n "$ac_cv_prog_RANLIB"; then
11634 for ncn_progname in ranlib; do
11635 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11636 set dummy ${ncn_progname}; ac_word=$2
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638 $as_echo_n "checking for $ac_word... " >&6; }
11639 if ${ac_cv_prog_RANLIB+:} false; then :
11640 $as_echo_n "(cached) " >&6
11642 if test -n "$RANLIB"; then
11643 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646 for as_dir in $PATH
11649 test -z "$as_dir" && as_dir=.
11650 for ac_exec_ext in '' $ac_executable_extensions; do
11651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11652 ac_cv_prog_RANLIB="${ncn_progname}"
11653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11662 RANLIB=$ac_cv_prog_RANLIB
11663 if test -n "$RANLIB"; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11665 $as_echo "$RANLIB" >&6; }
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668 $as_echo "no" >&6; }
11675 for ncn_progname in ranlib; do
11676 if test -n "$ncn_tool_prefix"; then
11677 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11678 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11680 $as_echo_n "checking for $ac_word... " >&6; }
11681 if ${ac_cv_prog_RANLIB+:} false; then :
11682 $as_echo_n "(cached) " >&6
11684 if test -n "$RANLIB"; then
11685 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11688 for as_dir in $PATH
11691 test -z "$as_dir" && as_dir=.
11692 for ac_exec_ext in '' $ac_executable_extensions; do
11693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11694 ac_cv_prog_RANLIB="${ncn_tool_prefix}${ncn_progname}"
11695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11704 RANLIB=$ac_cv_prog_RANLIB
11705 if test -n "$RANLIB"; then
11706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11707 $as_echo "$RANLIB" >&6; }
11709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710 $as_echo "no" >&6; }
11715 if test -z "$ac_cv_prog_RANLIB" && test $build = $host ; then
11716 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11717 set dummy ${ncn_progname}; ac_word=$2
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11719 $as_echo_n "checking for $ac_word... " >&6; }
11720 if ${ac_cv_prog_RANLIB+:} false; then :
11721 $as_echo_n "(cached) " >&6
11723 if test -n "$RANLIB"; then
11724 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11727 for as_dir in $PATH
11730 test -z "$as_dir" && as_dir=.
11731 for ac_exec_ext in '' $ac_executable_extensions; do
11732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11733 ac_cv_prog_RANLIB="${ncn_progname}"
11734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11743 RANLIB=$ac_cv_prog_RANLIB
11744 if test -n "$RANLIB"; then
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11746 $as_echo "$RANLIB" >&6; }
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11749 $as_echo "no" >&6; }
11754 test -n "$ac_cv_prog_RANLIB" && break
11757 if test -z "$ac_cv_prog_RANLIB" ; then
11763 if test -n "$STRIP"; then
11764 ac_cv_prog_STRIP=$STRIP
11765 elif test -n "$ac_cv_prog_STRIP"; then
11766 STRIP=$ac_cv_prog_STRIP
11769 if test -n "$ac_cv_prog_STRIP"; then
11770 for ncn_progname in strip; do
11771 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11772 set dummy ${ncn_progname}; ac_word=$2
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11774 $as_echo_n "checking for $ac_word... " >&6; }
11775 if ${ac_cv_prog_STRIP+:} false; then :
11776 $as_echo_n "(cached) " >&6
11778 if test -n "$STRIP"; then
11779 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11782 for as_dir in $PATH
11785 test -z "$as_dir" && as_dir=.
11786 for ac_exec_ext in '' $ac_executable_extensions; do
11787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11788 ac_cv_prog_STRIP="${ncn_progname}"
11789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11798 STRIP=$ac_cv_prog_STRIP
11799 if test -n "$STRIP"; then
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11801 $as_echo "$STRIP" >&6; }
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11804 $as_echo "no" >&6; }
11811 for ncn_progname in strip; do
11812 if test -n "$ncn_tool_prefix"; then
11813 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11814 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11816 $as_echo_n "checking for $ac_word... " >&6; }
11817 if ${ac_cv_prog_STRIP+:} false; then :
11818 $as_echo_n "(cached) " >&6
11820 if test -n "$STRIP"; then
11821 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11824 for as_dir in $PATH
11827 test -z "$as_dir" && as_dir=.
11828 for ac_exec_ext in '' $ac_executable_extensions; do
11829 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11830 ac_cv_prog_STRIP="${ncn_tool_prefix}${ncn_progname}"
11831 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11840 STRIP=$ac_cv_prog_STRIP
11841 if test -n "$STRIP"; then
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11843 $as_echo "$STRIP" >&6; }
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11846 $as_echo "no" >&6; }
11851 if test -z "$ac_cv_prog_STRIP" && test $build = $host ; then
11852 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11853 set dummy ${ncn_progname}; ac_word=$2
11854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11855 $as_echo_n "checking for $ac_word... " >&6; }
11856 if ${ac_cv_prog_STRIP+:} false; then :
11857 $as_echo_n "(cached) " >&6
11859 if test -n "$STRIP"; then
11860 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11863 for as_dir in $PATH
11866 test -z "$as_dir" && as_dir=.
11867 for ac_exec_ext in '' $ac_executable_extensions; do
11868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11869 ac_cv_prog_STRIP="${ncn_progname}"
11870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11879 STRIP=$ac_cv_prog_STRIP
11880 if test -n "$STRIP"; then
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11882 $as_echo "$STRIP" >&6; }
11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11885 $as_echo "no" >&6; }
11890 test -n "$ac_cv_prog_STRIP" && break
11893 if test -z "$ac_cv_prog_STRIP" ; then
11899 if test -n "$WINDRES"; then
11900 ac_cv_prog_WINDRES=$WINDRES
11901 elif test -n "$ac_cv_prog_WINDRES"; then
11902 WINDRES=$ac_cv_prog_WINDRES
11905 if test -n "$ac_cv_prog_WINDRES"; then
11906 for ncn_progname in windres; do
11907 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11908 set dummy ${ncn_progname}; ac_word=$2
11909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11910 $as_echo_n "checking for $ac_word... " >&6; }
11911 if ${ac_cv_prog_WINDRES+:} false; then :
11912 $as_echo_n "(cached) " >&6
11914 if test -n "$WINDRES"; then
11915 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11918 for as_dir in $PATH
11921 test -z "$as_dir" && as_dir=.
11922 for ac_exec_ext in '' $ac_executable_extensions; do
11923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11924 ac_cv_prog_WINDRES="${ncn_progname}"
11925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11934 WINDRES=$ac_cv_prog_WINDRES
11935 if test -n "$WINDRES"; then
11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11937 $as_echo "$WINDRES" >&6; }
11939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11940 $as_echo "no" >&6; }
11947 for ncn_progname in windres; do
11948 if test -n "$ncn_tool_prefix"; then
11949 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
11950 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
11951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11952 $as_echo_n "checking for $ac_word... " >&6; }
11953 if ${ac_cv_prog_WINDRES+:} false; then :
11954 $as_echo_n "(cached) " >&6
11956 if test -n "$WINDRES"; then
11957 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11960 for as_dir in $PATH
11963 test -z "$as_dir" && as_dir=.
11964 for ac_exec_ext in '' $ac_executable_extensions; do
11965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11966 ac_cv_prog_WINDRES="${ncn_tool_prefix}${ncn_progname}"
11967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11976 WINDRES=$ac_cv_prog_WINDRES
11977 if test -n "$WINDRES"; then
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
11979 $as_echo "$WINDRES" >&6; }
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11982 $as_echo "no" >&6; }
11987 if test -z "$ac_cv_prog_WINDRES" && test $build = $host ; then
11988 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
11989 set dummy ${ncn_progname}; ac_word=$2
11990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11991 $as_echo_n "checking for $ac_word... " >&6; }
11992 if ${ac_cv_prog_WINDRES+:} false; then :
11993 $as_echo_n "(cached) " >&6
11995 if test -n "$WINDRES"; then
11996 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
11998 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11999 for as_dir in $PATH
12002 test -z "$as_dir" && as_dir=.
12003 for ac_exec_ext in '' $ac_executable_extensions; do
12004 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12005 ac_cv_prog_WINDRES="${ncn_progname}"
12006 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12015 WINDRES=$ac_cv_prog_WINDRES
12016 if test -n "$WINDRES"; then
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
12018 $as_echo "$WINDRES" >&6; }
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12021 $as_echo "no" >&6; }
12026 test -n "$ac_cv_prog_WINDRES" && break
12029 if test -z "$ac_cv_prog_WINDRES" ; then
12031 if test $build = $host ; then
12034 WINDRES="${ncn_tool_prefix}$2"
12040 if test -n "$WINDMC"; then
12041 ac_cv_prog_WINDMC=$WINDMC
12042 elif test -n "$ac_cv_prog_WINDMC"; then
12043 WINDMC=$ac_cv_prog_WINDMC
12046 if test -n "$ac_cv_prog_WINDMC"; then
12047 for ncn_progname in windmc; do
12048 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12049 set dummy ${ncn_progname}; ac_word=$2
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12051 $as_echo_n "checking for $ac_word... " >&6; }
12052 if ${ac_cv_prog_WINDMC+:} false; then :
12053 $as_echo_n "(cached) " >&6
12055 if test -n "$WINDMC"; then
12056 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12059 for as_dir in $PATH
12062 test -z "$as_dir" && as_dir=.
12063 for ac_exec_ext in '' $ac_executable_extensions; do
12064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12065 ac_cv_prog_WINDMC="${ncn_progname}"
12066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12075 WINDMC=$ac_cv_prog_WINDMC
12076 if test -n "$WINDMC"; then
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12078 $as_echo "$WINDMC" >&6; }
12080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12088 for ncn_progname in windmc; do
12089 if test -n "$ncn_tool_prefix"; then
12090 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12091 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12093 $as_echo_n "checking for $ac_word... " >&6; }
12094 if ${ac_cv_prog_WINDMC+:} false; then :
12095 $as_echo_n "(cached) " >&6
12097 if test -n "$WINDMC"; then
12098 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12101 for as_dir in $PATH
12104 test -z "$as_dir" && as_dir=.
12105 for ac_exec_ext in '' $ac_executable_extensions; do
12106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12107 ac_cv_prog_WINDMC="${ncn_tool_prefix}${ncn_progname}"
12108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12117 WINDMC=$ac_cv_prog_WINDMC
12118 if test -n "$WINDMC"; then
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12120 $as_echo "$WINDMC" >&6; }
12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12123 $as_echo "no" >&6; }
12128 if test -z "$ac_cv_prog_WINDMC" && test $build = $host ; then
12129 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12130 set dummy ${ncn_progname}; ac_word=$2
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12132 $as_echo_n "checking for $ac_word... " >&6; }
12133 if ${ac_cv_prog_WINDMC+:} false; then :
12134 $as_echo_n "(cached) " >&6
12136 if test -n "$WINDMC"; then
12137 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
12139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12140 for as_dir in $PATH
12143 test -z "$as_dir" && as_dir=.
12144 for ac_exec_ext in '' $ac_executable_extensions; do
12145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12146 ac_cv_prog_WINDMC="${ncn_progname}"
12147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12156 WINDMC=$ac_cv_prog_WINDMC
12157 if test -n "$WINDMC"; then
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
12159 $as_echo "$WINDMC" >&6; }
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12162 $as_echo "no" >&6; }
12167 test -n "$ac_cv_prog_WINDMC" && break
12170 if test -z "$ac_cv_prog_WINDMC" ; then
12172 if test $build = $host ; then
12175 WINDMC="${ncn_tool_prefix}$2"
12181 if test -n "$OBJCOPY"; then
12182 ac_cv_prog_OBJCOPY=$OBJCOPY
12183 elif test -n "$ac_cv_prog_OBJCOPY"; then
12184 OBJCOPY=$ac_cv_prog_OBJCOPY
12187 if test -n "$ac_cv_prog_OBJCOPY"; then
12188 for ncn_progname in objcopy; do
12189 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12190 set dummy ${ncn_progname}; ac_word=$2
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12192 $as_echo_n "checking for $ac_word... " >&6; }
12193 if ${ac_cv_prog_OBJCOPY+:} false; then :
12194 $as_echo_n "(cached) " >&6
12196 if test -n "$OBJCOPY"; then
12197 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12200 for as_dir in $PATH
12203 test -z "$as_dir" && as_dir=.
12204 for ac_exec_ext in '' $ac_executable_extensions; do
12205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12206 ac_cv_prog_OBJCOPY="${ncn_progname}"
12207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12216 OBJCOPY=$ac_cv_prog_OBJCOPY
12217 if test -n "$OBJCOPY"; then
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12219 $as_echo "$OBJCOPY" >&6; }
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12222 $as_echo "no" >&6; }
12229 for ncn_progname in objcopy; do
12230 if test -n "$ncn_tool_prefix"; then
12231 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12232 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12234 $as_echo_n "checking for $ac_word... " >&6; }
12235 if ${ac_cv_prog_OBJCOPY+:} false; then :
12236 $as_echo_n "(cached) " >&6
12238 if test -n "$OBJCOPY"; then
12239 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12242 for as_dir in $PATH
12245 test -z "$as_dir" && as_dir=.
12246 for ac_exec_ext in '' $ac_executable_extensions; do
12247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12248 ac_cv_prog_OBJCOPY="${ncn_tool_prefix}${ncn_progname}"
12249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12258 OBJCOPY=$ac_cv_prog_OBJCOPY
12259 if test -n "$OBJCOPY"; then
12260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12261 $as_echo "$OBJCOPY" >&6; }
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12264 $as_echo "no" >&6; }
12269 if test -z "$ac_cv_prog_OBJCOPY" && test $build = $host ; then
12270 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12271 set dummy ${ncn_progname}; ac_word=$2
12272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12273 $as_echo_n "checking for $ac_word... " >&6; }
12274 if ${ac_cv_prog_OBJCOPY+:} false; then :
12275 $as_echo_n "(cached) " >&6
12277 if test -n "$OBJCOPY"; then
12278 ac_cv_prog_OBJCOPY="$OBJCOPY" # Let the user override the test.
12280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12281 for as_dir in $PATH
12284 test -z "$as_dir" && as_dir=.
12285 for ac_exec_ext in '' $ac_executable_extensions; do
12286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12287 ac_cv_prog_OBJCOPY="${ncn_progname}"
12288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12297 OBJCOPY=$ac_cv_prog_OBJCOPY
12298 if test -n "$OBJCOPY"; then
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY" >&5
12300 $as_echo "$OBJCOPY" >&6; }
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12303 $as_echo "no" >&6; }
12308 test -n "$ac_cv_prog_OBJCOPY" && break
12311 if test -z "$ac_cv_prog_OBJCOPY" ; then
12313 if test $build = $host ; then
12316 OBJCOPY="${ncn_tool_prefix}$2"
12322 if test -n "$OBJDUMP"; then
12323 ac_cv_prog_OBJDUMP=$OBJDUMP
12324 elif test -n "$ac_cv_prog_OBJDUMP"; then
12325 OBJDUMP=$ac_cv_prog_OBJDUMP
12328 if test -n "$ac_cv_prog_OBJDUMP"; then
12329 for ncn_progname in objdump; do
12330 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12331 set dummy ${ncn_progname}; ac_word=$2
12332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12333 $as_echo_n "checking for $ac_word... " >&6; }
12334 if ${ac_cv_prog_OBJDUMP+:} false; then :
12335 $as_echo_n "(cached) " >&6
12337 if test -n "$OBJDUMP"; then
12338 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12341 for as_dir in $PATH
12344 test -z "$as_dir" && as_dir=.
12345 for ac_exec_ext in '' $ac_executable_extensions; do
12346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12347 ac_cv_prog_OBJDUMP="${ncn_progname}"
12348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12357 OBJDUMP=$ac_cv_prog_OBJDUMP
12358 if test -n "$OBJDUMP"; then
12359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12360 $as_echo "$OBJDUMP" >&6; }
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12363 $as_echo "no" >&6; }
12370 for ncn_progname in objdump; do
12371 if test -n "$ncn_tool_prefix"; then
12372 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12373 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12375 $as_echo_n "checking for $ac_word... " >&6; }
12376 if ${ac_cv_prog_OBJDUMP+:} false; then :
12377 $as_echo_n "(cached) " >&6
12379 if test -n "$OBJDUMP"; then
12380 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12383 for as_dir in $PATH
12386 test -z "$as_dir" && as_dir=.
12387 for ac_exec_ext in '' $ac_executable_extensions; do
12388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12389 ac_cv_prog_OBJDUMP="${ncn_tool_prefix}${ncn_progname}"
12390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12399 OBJDUMP=$ac_cv_prog_OBJDUMP
12400 if test -n "$OBJDUMP"; then
12401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12402 $as_echo "$OBJDUMP" >&6; }
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12405 $as_echo "no" >&6; }
12410 if test -z "$ac_cv_prog_OBJDUMP" && test $build = $host ; then
12411 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12412 set dummy ${ncn_progname}; ac_word=$2
12413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12414 $as_echo_n "checking for $ac_word... " >&6; }
12415 if ${ac_cv_prog_OBJDUMP+:} false; then :
12416 $as_echo_n "(cached) " >&6
12418 if test -n "$OBJDUMP"; then
12419 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12422 for as_dir in $PATH
12425 test -z "$as_dir" && as_dir=.
12426 for ac_exec_ext in '' $ac_executable_extensions; do
12427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12428 ac_cv_prog_OBJDUMP="${ncn_progname}"
12429 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12438 OBJDUMP=$ac_cv_prog_OBJDUMP
12439 if test -n "$OBJDUMP"; then
12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12441 $as_echo "$OBJDUMP" >&6; }
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12444 $as_echo "no" >&6; }
12449 test -n "$ac_cv_prog_OBJDUMP" && break
12452 if test -z "$ac_cv_prog_OBJDUMP" ; then
12454 if test $build = $host ; then
12457 OBJDUMP="${ncn_tool_prefix}$2"
12463 if test -n "$OTOOL"; then
12464 ac_cv_prog_OTOOL=$OTOOL
12465 elif test -n "$ac_cv_prog_OTOOL"; then
12466 OTOOL=$ac_cv_prog_OTOOL
12469 if test -n "$ac_cv_prog_OTOOL"; then
12470 for ncn_progname in otool; do
12471 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12472 set dummy ${ncn_progname}; ac_word=$2
12473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12474 $as_echo_n "checking for $ac_word... " >&6; }
12475 if ${ac_cv_prog_OTOOL+:} false; then :
12476 $as_echo_n "(cached) " >&6
12478 if test -n "$OTOOL"; then
12479 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12482 for as_dir in $PATH
12485 test -z "$as_dir" && as_dir=.
12486 for ac_exec_ext in '' $ac_executable_extensions; do
12487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12488 ac_cv_prog_OTOOL="${ncn_progname}"
12489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12498 OTOOL=$ac_cv_prog_OTOOL
12499 if test -n "$OTOOL"; then
12500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12501 $as_echo "$OTOOL" >&6; }
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12504 $as_echo "no" >&6; }
12511 for ncn_progname in otool; do
12512 if test -n "$ncn_tool_prefix"; then
12513 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12514 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12516 $as_echo_n "checking for $ac_word... " >&6; }
12517 if ${ac_cv_prog_OTOOL+:} false; then :
12518 $as_echo_n "(cached) " >&6
12520 if test -n "$OTOOL"; then
12521 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12524 for as_dir in $PATH
12527 test -z "$as_dir" && as_dir=.
12528 for ac_exec_ext in '' $ac_executable_extensions; do
12529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12530 ac_cv_prog_OTOOL="${ncn_tool_prefix}${ncn_progname}"
12531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12540 OTOOL=$ac_cv_prog_OTOOL
12541 if test -n "$OTOOL"; then
12542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12543 $as_echo "$OTOOL" >&6; }
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12551 if test -z "$ac_cv_prog_OTOOL" && test $build = $host ; then
12552 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12553 set dummy ${ncn_progname}; ac_word=$2
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12555 $as_echo_n "checking for $ac_word... " >&6; }
12556 if ${ac_cv_prog_OTOOL+:} false; then :
12557 $as_echo_n "(cached) " >&6
12559 if test -n "$OTOOL"; then
12560 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $PATH
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12569 ac_cv_prog_OTOOL="${ncn_progname}"
12570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12579 OTOOL=$ac_cv_prog_OTOOL
12580 if test -n "$OTOOL"; then
12581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12582 $as_echo "$OTOOL" >&6; }
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12585 $as_echo "no" >&6; }
12590 test -n "$ac_cv_prog_OTOOL" && break
12593 if test -z "$ac_cv_prog_OTOOL" ; then
12595 if test $build = $host ; then
12598 OTOOL="${ncn_tool_prefix}$2"
12604 if test -n "$READELF"; then
12605 ac_cv_prog_READELF=$READELF
12606 elif test -n "$ac_cv_prog_READELF"; then
12607 READELF=$ac_cv_prog_READELF
12610 if test -n "$ac_cv_prog_READELF"; then
12611 for ncn_progname in readelf; do
12612 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12613 set dummy ${ncn_progname}; ac_word=$2
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12615 $as_echo_n "checking for $ac_word... " >&6; }
12616 if ${ac_cv_prog_READELF+:} false; then :
12617 $as_echo_n "(cached) " >&6
12619 if test -n "$READELF"; then
12620 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12623 for as_dir in $PATH
12626 test -z "$as_dir" && as_dir=.
12627 for ac_exec_ext in '' $ac_executable_extensions; do
12628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12629 ac_cv_prog_READELF="${ncn_progname}"
12630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12639 READELF=$ac_cv_prog_READELF
12640 if test -n "$READELF"; then
12641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12642 $as_echo "$READELF" >&6; }
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12645 $as_echo "no" >&6; }
12652 for ncn_progname in readelf; do
12653 if test -n "$ncn_tool_prefix"; then
12654 # Extract the first word of "${ncn_tool_prefix}${ncn_progname}", so it can be a program name with args.
12655 set dummy ${ncn_tool_prefix}${ncn_progname}; ac_word=$2
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12657 $as_echo_n "checking for $ac_word... " >&6; }
12658 if ${ac_cv_prog_READELF+:} false; then :
12659 $as_echo_n "(cached) " >&6
12661 if test -n "$READELF"; then
12662 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12664 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12665 for as_dir in $PATH
12668 test -z "$as_dir" && as_dir=.
12669 for ac_exec_ext in '' $ac_executable_extensions; do
12670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12671 ac_cv_prog_READELF="${ncn_tool_prefix}${ncn_progname}"
12672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12681 READELF=$ac_cv_prog_READELF
12682 if test -n "$READELF"; then
12683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12684 $as_echo "$READELF" >&6; }
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12687 $as_echo "no" >&6; }
12692 if test -z "$ac_cv_prog_READELF" && test $build = $host ; then
12693 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12694 set dummy ${ncn_progname}; ac_word=$2
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12696 $as_echo_n "checking for $ac_word... " >&6; }
12697 if ${ac_cv_prog_READELF+:} false; then :
12698 $as_echo_n "(cached) " >&6
12700 if test -n "$READELF"; then
12701 ac_cv_prog_READELF="$READELF" # Let the user override the test.
12703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12704 for as_dir in $PATH
12707 test -z "$as_dir" && as_dir=.
12708 for ac_exec_ext in '' $ac_executable_extensions; do
12709 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12710 ac_cv_prog_READELF="${ncn_progname}"
12711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12720 READELF=$ac_cv_prog_READELF
12721 if test -n "$READELF"; then
12722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
12723 $as_echo "$READELF" >&6; }
12725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12726 $as_echo "no" >&6; }
12731 test -n "$ac_cv_prog_READELF" && break
12734 if test -z "$ac_cv_prog_READELF" ; then
12736 if test $build = $host ; then
12739 READELF="${ncn_tool_prefix}$2"
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -plugin option" >&5
12751 $as_echo_n "checking for -plugin option... " >&6; }
12753 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
12755 for plugin in $plugin_names; do
12756 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
12757 if test x$plugin_so = x$plugin; then
12758 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
12760 if test x$plugin_so != x$plugin; then
12761 plugin_option="--plugin $plugin_so"
12765 if test -n "$plugin_option"; then
12766 PLUGIN_OPTION="$plugin_option"
12767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $plugin_option" >&5
12768 $as_echo "$plugin_option" >&6; }
12770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12771 $as_echo "no" >&6; }
12775 RANLIB_PLUGIN_OPTION=
12776 if test -n "$PLUGIN_OPTION"; then
12777 if $AR --help 2>&1 | grep -q "\--plugin"; then
12778 AR_PLUGIN_OPTION="$PLUGIN_OPTION"
12780 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
12781 RANLIB_PLUGIN_OPTION="$PLUGIN_OPTION"
12789 # Check whether --with-build-time-tools was given.
12790 if test "${with_build_time_tools+set}" = set; then :
12791 withval=$with_build_time_tools; case x"$withval" in
12794 with_build_time_tools=
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: argument to --with-build-time-tools must be an absolute path" >&5
12796 $as_echo "$as_me: WARNING: argument to --with-build-time-tools must be an absolute path" >&2;}
12800 with_build_time_tools=
12806 if test -n "$CC_FOR_TARGET"; then
12807 ac_cv_prog_CC_FOR_TARGET=$CC_FOR_TARGET
12808 elif test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12809 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12812 if test -n "$ac_cv_prog_CC_FOR_TARGET"; then
12813 for ncn_progname in cc gcc; do
12814 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12815 set dummy ${ncn_progname}; ac_word=$2
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12817 $as_echo_n "checking for $ac_word... " >&6; }
12818 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12819 $as_echo_n "(cached) " >&6
12821 if test -n "$CC_FOR_TARGET"; then
12822 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12825 for as_dir in $PATH
12828 test -z "$as_dir" && as_dir=.
12829 for ac_exec_ext in '' $ac_executable_extensions; do
12830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12831 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12841 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12842 if test -n "$CC_FOR_TARGET"; then
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12844 $as_echo "$CC_FOR_TARGET" >&6; }
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12847 $as_echo "no" >&6; }
12854 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test -n "$with_build_time_tools"; then
12855 for ncn_progname in cc gcc; do
12856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
12857 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
12858 if test -x $with_build_time_tools/${ncn_progname}; then
12859 ac_cv_prog_CC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12861 $as_echo "yes" >&6; }
12864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12865 $as_echo "no" >&6; }
12870 if test -z "$ac_cv_prog_CC_FOR_TARGET"; then
12871 for ncn_progname in cc gcc; do
12872 if test -n "$ncn_target_tool_prefix"; then
12873 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
12874 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
12875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12876 $as_echo_n "checking for $ac_word... " >&6; }
12877 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12878 $as_echo_n "(cached) " >&6
12880 if test -n "$CC_FOR_TARGET"; then
12881 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12884 for as_dir in $PATH
12887 test -z "$as_dir" && as_dir=.
12888 for ac_exec_ext in '' $ac_executable_extensions; do
12889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12890 ac_cv_prog_CC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
12891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12900 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12901 if test -n "$CC_FOR_TARGET"; then
12902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12903 $as_echo "$CC_FOR_TARGET" >&6; }
12905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12906 $as_echo "no" >&6; }
12911 if test -z "$ac_cv_prog_CC_FOR_TARGET" && test $build = $target ; then
12912 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12913 set dummy ${ncn_progname}; ac_word=$2
12914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12915 $as_echo_n "checking for $ac_word... " >&6; }
12916 if ${ac_cv_prog_CC_FOR_TARGET+:} false; then :
12917 $as_echo_n "(cached) " >&6
12919 if test -n "$CC_FOR_TARGET"; then
12920 ac_cv_prog_CC_FOR_TARGET="$CC_FOR_TARGET" # Let the user override the test.
12922 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12923 for as_dir in $PATH
12926 test -z "$as_dir" && as_dir=.
12927 for ac_exec_ext in '' $ac_executable_extensions; do
12928 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12929 ac_cv_prog_CC_FOR_TARGET="${ncn_progname}"
12930 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12939 CC_FOR_TARGET=$ac_cv_prog_CC_FOR_TARGET
12940 if test -n "$CC_FOR_TARGET"; then
12941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_TARGET" >&5
12942 $as_echo "$CC_FOR_TARGET" >&6; }
12944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12945 $as_echo "no" >&6; }
12950 test -n "$ac_cv_prog_CC_FOR_TARGET" && break
12954 if test -z "$ac_cv_prog_CC_FOR_TARGET" ; then
12956 if test $build = $target ; then
12959 CC_FOR_TARGET="${ncn_target_tool_prefix}$2"
12962 CC_FOR_TARGET="$ac_cv_prog_CC_FOR_TARGET"
12967 if test -n "$CXX_FOR_TARGET"; then
12968 ac_cv_prog_CXX_FOR_TARGET=$CXX_FOR_TARGET
12969 elif test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12970 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
12973 if test -n "$ac_cv_prog_CXX_FOR_TARGET"; then
12974 for ncn_progname in c++ g++ cxx gxx; do
12975 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
12976 set dummy ${ncn_progname}; ac_word=$2
12977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12978 $as_echo_n "checking for $ac_word... " >&6; }
12979 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
12980 $as_echo_n "(cached) " >&6
12982 if test -n "$CXX_FOR_TARGET"; then
12983 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
12985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12986 for as_dir in $PATH
12989 test -z "$as_dir" && as_dir=.
12990 for ac_exec_ext in '' $ac_executable_extensions; do
12991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12992 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
12993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13002 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13003 if test -n "$CXX_FOR_TARGET"; then
13004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13005 $as_echo "$CXX_FOR_TARGET" >&6; }
13007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13008 $as_echo "no" >&6; }
13015 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test -n "$with_build_time_tools"; then
13016 for ncn_progname in c++ g++ cxx gxx; do
13017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13018 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13019 if test -x $with_build_time_tools/${ncn_progname}; then
13020 ac_cv_prog_CXX_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13022 $as_echo "yes" >&6; }
13025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13026 $as_echo "no" >&6; }
13031 if test -z "$ac_cv_prog_CXX_FOR_TARGET"; then
13032 for ncn_progname in c++ g++ cxx gxx; do
13033 if test -n "$ncn_target_tool_prefix"; then
13034 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13035 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13037 $as_echo_n "checking for $ac_word... " >&6; }
13038 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13039 $as_echo_n "(cached) " >&6
13041 if test -n "$CXX_FOR_TARGET"; then
13042 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13045 for as_dir in $PATH
13048 test -z "$as_dir" && as_dir=.
13049 for ac_exec_ext in '' $ac_executable_extensions; do
13050 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13051 ac_cv_prog_CXX_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13052 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13061 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13062 if test -n "$CXX_FOR_TARGET"; then
13063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13064 $as_echo "$CXX_FOR_TARGET" >&6; }
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13067 $as_echo "no" >&6; }
13072 if test -z "$ac_cv_prog_CXX_FOR_TARGET" && test $build = $target ; then
13073 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13074 set dummy ${ncn_progname}; ac_word=$2
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13076 $as_echo_n "checking for $ac_word... " >&6; }
13077 if ${ac_cv_prog_CXX_FOR_TARGET+:} false; then :
13078 $as_echo_n "(cached) " >&6
13080 if test -n "$CXX_FOR_TARGET"; then
13081 ac_cv_prog_CXX_FOR_TARGET="$CXX_FOR_TARGET" # Let the user override the test.
13083 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13084 for as_dir in $PATH
13087 test -z "$as_dir" && as_dir=.
13088 for ac_exec_ext in '' $ac_executable_extensions; do
13089 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13090 ac_cv_prog_CXX_FOR_TARGET="${ncn_progname}"
13091 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13100 CXX_FOR_TARGET=$ac_cv_prog_CXX_FOR_TARGET
13101 if test -n "$CXX_FOR_TARGET"; then
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_TARGET" >&5
13103 $as_echo "$CXX_FOR_TARGET" >&6; }
13105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13106 $as_echo "no" >&6; }
13111 test -n "$ac_cv_prog_CXX_FOR_TARGET" && break
13115 if test -z "$ac_cv_prog_CXX_FOR_TARGET" ; then
13116 set dummy c++ g++ cxx gxx
13117 if test $build = $target ; then
13118 CXX_FOR_TARGET="$2"
13120 CXX_FOR_TARGET="${ncn_target_tool_prefix}$2"
13123 CXX_FOR_TARGET="$ac_cv_prog_CXX_FOR_TARGET"
13128 if test -n "$GCC_FOR_TARGET"; then
13129 ac_cv_prog_GCC_FOR_TARGET=$GCC_FOR_TARGET
13130 elif test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13131 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13134 if test -n "$ac_cv_prog_GCC_FOR_TARGET"; then
13135 for ncn_progname in gcc; do
13136 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13137 set dummy ${ncn_progname}; ac_word=$2
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13139 $as_echo_n "checking for $ac_word... " >&6; }
13140 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13141 $as_echo_n "(cached) " >&6
13143 if test -n "$GCC_FOR_TARGET"; then
13144 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13147 for as_dir in $PATH
13150 test -z "$as_dir" && as_dir=.
13151 for ac_exec_ext in '' $ac_executable_extensions; do
13152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13153 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13163 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13164 if test -n "$GCC_FOR_TARGET"; then
13165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13166 $as_echo "$GCC_FOR_TARGET" >&6; }
13168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13169 $as_echo "no" >&6; }
13176 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13177 for ncn_progname in gcc; do
13178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13179 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13180 if test -x $with_build_time_tools/${ncn_progname}; then
13181 ac_cv_prog_GCC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13183 $as_echo "yes" >&6; }
13186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13187 $as_echo "no" >&6; }
13192 if test -z "$ac_cv_prog_GCC_FOR_TARGET"; then
13193 for ncn_progname in gcc; do
13194 if test -n "$ncn_target_tool_prefix"; then
13195 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13196 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13198 $as_echo_n "checking for $ac_word... " >&6; }
13199 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13200 $as_echo_n "(cached) " >&6
13202 if test -n "$GCC_FOR_TARGET"; then
13203 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13206 for as_dir in $PATH
13209 test -z "$as_dir" && as_dir=.
13210 for ac_exec_ext in '' $ac_executable_extensions; do
13211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13212 ac_cv_prog_GCC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13222 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13223 if test -n "$GCC_FOR_TARGET"; then
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13225 $as_echo "$GCC_FOR_TARGET" >&6; }
13227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13228 $as_echo "no" >&6; }
13233 if test -z "$ac_cv_prog_GCC_FOR_TARGET" && test $build = $target ; then
13234 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13235 set dummy ${ncn_progname}; ac_word=$2
13236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13237 $as_echo_n "checking for $ac_word... " >&6; }
13238 if ${ac_cv_prog_GCC_FOR_TARGET+:} false; then :
13239 $as_echo_n "(cached) " >&6
13241 if test -n "$GCC_FOR_TARGET"; then
13242 ac_cv_prog_GCC_FOR_TARGET="$GCC_FOR_TARGET" # Let the user override the test.
13244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13245 for as_dir in $PATH
13248 test -z "$as_dir" && as_dir=.
13249 for ac_exec_ext in '' $ac_executable_extensions; do
13250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13251 ac_cv_prog_GCC_FOR_TARGET="${ncn_progname}"
13252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13261 GCC_FOR_TARGET=$ac_cv_prog_GCC_FOR_TARGET
13262 if test -n "$GCC_FOR_TARGET"; then
13263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_FOR_TARGET" >&5
13264 $as_echo "$GCC_FOR_TARGET" >&6; }
13266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13267 $as_echo "no" >&6; }
13272 test -n "$ac_cv_prog_GCC_FOR_TARGET" && break
13276 if test -z "$ac_cv_prog_GCC_FOR_TARGET" ; then
13277 GCC_FOR_TARGET="${CC_FOR_TARGET}"
13279 GCC_FOR_TARGET="$ac_cv_prog_GCC_FOR_TARGET"
13284 if test -n "$GFORTRAN_FOR_TARGET"; then
13285 ac_cv_prog_GFORTRAN_FOR_TARGET=$GFORTRAN_FOR_TARGET
13286 elif test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13287 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13290 if test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13291 for ncn_progname in gfortran; do
13292 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13293 set dummy ${ncn_progname}; ac_word=$2
13294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13295 $as_echo_n "checking for $ac_word... " >&6; }
13296 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13297 $as_echo_n "(cached) " >&6
13299 if test -n "$GFORTRAN_FOR_TARGET"; then
13300 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303 for as_dir in $PATH
13306 test -z "$as_dir" && as_dir=.
13307 for ac_exec_ext in '' $ac_executable_extensions; do
13308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13309 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13319 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13320 if test -n "$GFORTRAN_FOR_TARGET"; then
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13322 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325 $as_echo "no" >&6; }
13332 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test -n "$with_build_time_tools"; then
13333 for ncn_progname in gfortran; do
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13335 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13336 if test -x $with_build_time_tools/${ncn_progname}; then
13337 ac_cv_prog_GFORTRAN_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13339 $as_echo "yes" >&6; }
13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13343 $as_echo "no" >&6; }
13348 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET"; then
13349 for ncn_progname in gfortran; do
13350 if test -n "$ncn_target_tool_prefix"; then
13351 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13352 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13354 $as_echo_n "checking for $ac_word... " >&6; }
13355 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13356 $as_echo_n "(cached) " >&6
13358 if test -n "$GFORTRAN_FOR_TARGET"; then
13359 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13362 for as_dir in $PATH
13365 test -z "$as_dir" && as_dir=.
13366 for ac_exec_ext in '' $ac_executable_extensions; do
13367 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13368 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13369 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13378 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13379 if test -n "$GFORTRAN_FOR_TARGET"; then
13380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13381 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13384 $as_echo "no" >&6; }
13389 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" && test $build = $target ; then
13390 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13391 set dummy ${ncn_progname}; ac_word=$2
13392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13393 $as_echo_n "checking for $ac_word... " >&6; }
13394 if ${ac_cv_prog_GFORTRAN_FOR_TARGET+:} false; then :
13395 $as_echo_n "(cached) " >&6
13397 if test -n "$GFORTRAN_FOR_TARGET"; then
13398 ac_cv_prog_GFORTRAN_FOR_TARGET="$GFORTRAN_FOR_TARGET" # Let the user override the test.
13400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13401 for as_dir in $PATH
13404 test -z "$as_dir" && as_dir=.
13405 for ac_exec_ext in '' $ac_executable_extensions; do
13406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13407 ac_cv_prog_GFORTRAN_FOR_TARGET="${ncn_progname}"
13408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13417 GFORTRAN_FOR_TARGET=$ac_cv_prog_GFORTRAN_FOR_TARGET
13418 if test -n "$GFORTRAN_FOR_TARGET"; then
13419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GFORTRAN_FOR_TARGET" >&5
13420 $as_echo "$GFORTRAN_FOR_TARGET" >&6; }
13422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13423 $as_echo "no" >&6; }
13428 test -n "$ac_cv_prog_GFORTRAN_FOR_TARGET" && break
13432 if test -z "$ac_cv_prog_GFORTRAN_FOR_TARGET" ; then
13434 if test $build = $target ; then
13435 GFORTRAN_FOR_TARGET="$2"
13437 GFORTRAN_FOR_TARGET="${ncn_target_tool_prefix}$2"
13440 GFORTRAN_FOR_TARGET="$ac_cv_prog_GFORTRAN_FOR_TARGET"
13445 if test -n "$GOC_FOR_TARGET"; then
13446 ac_cv_prog_GOC_FOR_TARGET=$GOC_FOR_TARGET
13447 elif test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13448 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13451 if test -n "$ac_cv_prog_GOC_FOR_TARGET"; then
13452 for ncn_progname in gccgo; do
13453 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13454 set dummy ${ncn_progname}; ac_word=$2
13455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13456 $as_echo_n "checking for $ac_word... " >&6; }
13457 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13458 $as_echo_n "(cached) " >&6
13460 if test -n "$GOC_FOR_TARGET"; then
13461 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13464 for as_dir in $PATH
13467 test -z "$as_dir" && as_dir=.
13468 for ac_exec_ext in '' $ac_executable_extensions; do
13469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13470 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13480 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13481 if test -n "$GOC_FOR_TARGET"; then
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13483 $as_echo "$GOC_FOR_TARGET" >&6; }
13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13486 $as_echo "no" >&6; }
13493 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13494 for ncn_progname in gccgo; do
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13496 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13497 if test -x $with_build_time_tools/${ncn_progname}; then
13498 ac_cv_prog_GOC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13500 $as_echo "yes" >&6; }
13503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13504 $as_echo "no" >&6; }
13509 if test -z "$ac_cv_prog_GOC_FOR_TARGET"; then
13510 for ncn_progname in gccgo; do
13511 if test -n "$ncn_target_tool_prefix"; then
13512 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13513 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13515 $as_echo_n "checking for $ac_word... " >&6; }
13516 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13517 $as_echo_n "(cached) " >&6
13519 if test -n "$GOC_FOR_TARGET"; then
13520 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13523 for as_dir in $PATH
13526 test -z "$as_dir" && as_dir=.
13527 for ac_exec_ext in '' $ac_executable_extensions; do
13528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13529 ac_cv_prog_GOC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13539 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13540 if test -n "$GOC_FOR_TARGET"; then
13541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13542 $as_echo "$GOC_FOR_TARGET" >&6; }
13544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13545 $as_echo "no" >&6; }
13550 if test -z "$ac_cv_prog_GOC_FOR_TARGET" && test $build = $target ; then
13551 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13552 set dummy ${ncn_progname}; ac_word=$2
13553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13554 $as_echo_n "checking for $ac_word... " >&6; }
13555 if ${ac_cv_prog_GOC_FOR_TARGET+:} false; then :
13556 $as_echo_n "(cached) " >&6
13558 if test -n "$GOC_FOR_TARGET"; then
13559 ac_cv_prog_GOC_FOR_TARGET="$GOC_FOR_TARGET" # Let the user override the test.
13561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13562 for as_dir in $PATH
13565 test -z "$as_dir" && as_dir=.
13566 for ac_exec_ext in '' $ac_executable_extensions; do
13567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13568 ac_cv_prog_GOC_FOR_TARGET="${ncn_progname}"
13569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13578 GOC_FOR_TARGET=$ac_cv_prog_GOC_FOR_TARGET
13579 if test -n "$GOC_FOR_TARGET"; then
13580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GOC_FOR_TARGET" >&5
13581 $as_echo "$GOC_FOR_TARGET" >&6; }
13583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13584 $as_echo "no" >&6; }
13589 test -n "$ac_cv_prog_GOC_FOR_TARGET" && break
13593 if test -z "$ac_cv_prog_GOC_FOR_TARGET" ; then
13595 if test $build = $target ; then
13596 GOC_FOR_TARGET="$2"
13598 GOC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13601 GOC_FOR_TARGET="$ac_cv_prog_GOC_FOR_TARGET"
13606 if test -n "$GDC_FOR_TARGET"; then
13607 ac_cv_prog_GDC_FOR_TARGET=$GDC_FOR_TARGET
13608 elif test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13609 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13612 if test -n "$ac_cv_prog_GDC_FOR_TARGET"; then
13613 for ncn_progname in gdc; do
13614 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13615 set dummy ${ncn_progname}; ac_word=$2
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13617 $as_echo_n "checking for $ac_word... " >&6; }
13618 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13619 $as_echo_n "(cached) " >&6
13621 if test -n "$GDC_FOR_TARGET"; then
13622 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13625 for as_dir in $PATH
13628 test -z "$as_dir" && as_dir=.
13629 for ac_exec_ext in '' $ac_executable_extensions; do
13630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13631 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13641 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13642 if test -n "$GDC_FOR_TARGET"; then
13643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13644 $as_echo "$GDC_FOR_TARGET" >&6; }
13646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13647 $as_echo "no" >&6; }
13654 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test -n "$with_build_time_tools"; then
13655 for ncn_progname in gdc; do
13656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13657 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13658 if test -x $with_build_time_tools/${ncn_progname}; then
13659 ac_cv_prog_GDC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13661 $as_echo "yes" >&6; }
13664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13665 $as_echo "no" >&6; }
13670 if test -z "$ac_cv_prog_GDC_FOR_TARGET"; then
13671 for ncn_progname in gdc; do
13672 if test -n "$ncn_target_tool_prefix"; then
13673 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13674 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13676 $as_echo_n "checking for $ac_word... " >&6; }
13677 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13678 $as_echo_n "(cached) " >&6
13680 if test -n "$GDC_FOR_TARGET"; then
13681 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13683 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13684 for as_dir in $PATH
13687 test -z "$as_dir" && as_dir=.
13688 for ac_exec_ext in '' $ac_executable_extensions; do
13689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13690 ac_cv_prog_GDC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13700 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13701 if test -n "$GDC_FOR_TARGET"; then
13702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13703 $as_echo "$GDC_FOR_TARGET" >&6; }
13705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13706 $as_echo "no" >&6; }
13711 if test -z "$ac_cv_prog_GDC_FOR_TARGET" && test $build = $target ; then
13712 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13713 set dummy ${ncn_progname}; ac_word=$2
13714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13715 $as_echo_n "checking for $ac_word... " >&6; }
13716 if ${ac_cv_prog_GDC_FOR_TARGET+:} false; then :
13717 $as_echo_n "(cached) " >&6
13719 if test -n "$GDC_FOR_TARGET"; then
13720 ac_cv_prog_GDC_FOR_TARGET="$GDC_FOR_TARGET" # Let the user override the test.
13722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13723 for as_dir in $PATH
13726 test -z "$as_dir" && as_dir=.
13727 for ac_exec_ext in '' $ac_executable_extensions; do
13728 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13729 ac_cv_prog_GDC_FOR_TARGET="${ncn_progname}"
13730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13739 GDC_FOR_TARGET=$ac_cv_prog_GDC_FOR_TARGET
13740 if test -n "$GDC_FOR_TARGET"; then
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDC_FOR_TARGET" >&5
13742 $as_echo "$GDC_FOR_TARGET" >&6; }
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13745 $as_echo "no" >&6; }
13750 test -n "$ac_cv_prog_GDC_FOR_TARGET" && break
13754 if test -z "$ac_cv_prog_GDC_FOR_TARGET" ; then
13756 if test $build = $target ; then
13757 GDC_FOR_TARGET="$2"
13759 GDC_FOR_TARGET="${ncn_target_tool_prefix}$2"
13762 GDC_FOR_TARGET="$ac_cv_prog_GDC_FOR_TARGET"
13767 cat > conftest.c << \EOF
13772 if ($GCC_FOR_TARGET -E conftest.c | grep gcc_yay) > /dev/null 2>&1; then
13773 have_gcc_for_target=yes
13775 GCC_FOR_TARGET=${ncn_target_tool_prefix}gcc
13776 have_gcc_for_target=no
13783 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13784 if test -n "$with_build_time_tools"; then
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ar in $with_build_time_tools" >&5
13786 $as_echo_n "checking for ar in $with_build_time_tools... " >&6; }
13787 if test -x $with_build_time_tools/ar; then
13788 AR_FOR_TARGET=`cd $with_build_time_tools && pwd`/ar
13789 ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AR_FOR_TARGET" >&5
13791 $as_echo "$ac_cv_path_AR_FOR_TARGET" >&6; }
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13794 $as_echo "no" >&6; }
13796 elif test $build != $host && test $have_gcc_for_target = yes; then
13797 AR_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ar`
13798 test $AR_FOR_TARGET = ar && AR_FOR_TARGET=
13799 test -n "$AR_FOR_TARGET" && ac_cv_path_AR_FOR_TARGET=$AR_FOR_TARGET
13802 if test -z "$ac_cv_path_AR_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
13803 # Extract the first word of "ar", so it can be a program name with args.
13804 set dummy ar; ac_word=$2
13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13806 $as_echo_n "checking for $ac_word... " >&6; }
13807 if ${ac_cv_path_AR_FOR_TARGET+:} false; then :
13808 $as_echo_n "(cached) " >&6
13810 case $AR_FOR_TARGET in
13812 ac_cv_path_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test with a path.
13815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13816 for as_dir in $gcc_cv_tool_dirs
13819 test -z "$as_dir" && as_dir=.
13820 for ac_exec_ext in '' $ac_executable_extensions; do
13821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13822 ac_cv_path_AR_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
13823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13833 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
13834 if test -n "$AR_FOR_TARGET"; then
13835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13836 $as_echo "$AR_FOR_TARGET" >&6; }
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13839 $as_echo "no" >&6; }
13844 if test -z "$ac_cv_path_AR_FOR_TARGET" ; then
13847 if test -n "$AR_FOR_TARGET"; then
13848 ac_cv_prog_AR_FOR_TARGET=$AR_FOR_TARGET
13849 elif test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13850 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13853 if test -n "$ac_cv_prog_AR_FOR_TARGET"; then
13854 for ncn_progname in ar; do
13855 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13856 set dummy ${ncn_progname}; ac_word=$2
13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13858 $as_echo_n "checking for $ac_word... " >&6; }
13859 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13860 $as_echo_n "(cached) " >&6
13862 if test -n "$AR_FOR_TARGET"; then
13863 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13866 for as_dir in $PATH
13869 test -z "$as_dir" && as_dir=.
13870 for ac_exec_ext in '' $ac_executable_extensions; do
13871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13872 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13882 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13883 if test -n "$AR_FOR_TARGET"; then
13884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13885 $as_echo "$AR_FOR_TARGET" >&6; }
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13888 $as_echo "no" >&6; }
13895 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test -n "$with_build_time_tools"; then
13896 for ncn_progname in ar; do
13897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
13898 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
13899 if test -x $with_build_time_tools/${ncn_progname}; then
13900 ac_cv_prog_AR_FOR_TARGET=$with_build_time_tools/${ncn_progname}
13901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13902 $as_echo "yes" >&6; }
13905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13906 $as_echo "no" >&6; }
13911 if test -z "$ac_cv_prog_AR_FOR_TARGET"; then
13912 for ncn_progname in ar; do
13913 if test -n "$ncn_target_tool_prefix"; then
13914 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
13915 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
13916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13917 $as_echo_n "checking for $ac_word... " >&6; }
13918 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13919 $as_echo_n "(cached) " >&6
13921 if test -n "$AR_FOR_TARGET"; then
13922 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13925 for as_dir in $PATH
13928 test -z "$as_dir" && as_dir=.
13929 for ac_exec_ext in '' $ac_executable_extensions; do
13930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13931 ac_cv_prog_AR_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
13932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13941 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13942 if test -n "$AR_FOR_TARGET"; then
13943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13944 $as_echo "$AR_FOR_TARGET" >&6; }
13946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13947 $as_echo "no" >&6; }
13952 if test -z "$ac_cv_prog_AR_FOR_TARGET" && test $build = $target ; then
13953 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
13954 set dummy ${ncn_progname}; ac_word=$2
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13956 $as_echo_n "checking for $ac_word... " >&6; }
13957 if ${ac_cv_prog_AR_FOR_TARGET+:} false; then :
13958 $as_echo_n "(cached) " >&6
13960 if test -n "$AR_FOR_TARGET"; then
13961 ac_cv_prog_AR_FOR_TARGET="$AR_FOR_TARGET" # Let the user override the test.
13963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13964 for as_dir in $PATH
13967 test -z "$as_dir" && as_dir=.
13968 for ac_exec_ext in '' $ac_executable_extensions; do
13969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13970 ac_cv_prog_AR_FOR_TARGET="${ncn_progname}"
13971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13980 AR_FOR_TARGET=$ac_cv_prog_AR_FOR_TARGET
13981 if test -n "$AR_FOR_TARGET"; then
13982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR_FOR_TARGET" >&5
13983 $as_echo "$AR_FOR_TARGET" >&6; }
13985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13986 $as_echo "no" >&6; }
13991 test -n "$ac_cv_prog_AR_FOR_TARGET" && break
13995 if test -z "$ac_cv_prog_AR_FOR_TARGET" ; then
13997 if test $build = $target ; then
14000 AR_FOR_TARGET="${ncn_target_tool_prefix}$2"
14003 AR_FOR_TARGET="$ac_cv_prog_AR_FOR_TARGET"
14007 AR_FOR_TARGET=$ac_cv_path_AR_FOR_TARGET
14013 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14014 if test -n "$with_build_time_tools"; then
14015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for as in $with_build_time_tools" >&5
14016 $as_echo_n "checking for as in $with_build_time_tools... " >&6; }
14017 if test -x $with_build_time_tools/as; then
14018 AS_FOR_TARGET=`cd $with_build_time_tools && pwd`/as
14019 ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_AS_FOR_TARGET" >&5
14021 $as_echo "$ac_cv_path_AS_FOR_TARGET" >&6; }
14023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14024 $as_echo "no" >&6; }
14026 elif test $build != $host && test $have_gcc_for_target = yes; then
14027 AS_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=as`
14028 test $AS_FOR_TARGET = as && AS_FOR_TARGET=
14029 test -n "$AS_FOR_TARGET" && ac_cv_path_AS_FOR_TARGET=$AS_FOR_TARGET
14032 if test -z "$ac_cv_path_AS_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14033 # Extract the first word of "as", so it can be a program name with args.
14034 set dummy as; ac_word=$2
14035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14036 $as_echo_n "checking for $ac_word... " >&6; }
14037 if ${ac_cv_path_AS_FOR_TARGET+:} false; then :
14038 $as_echo_n "(cached) " >&6
14040 case $AS_FOR_TARGET in
14042 ac_cv_path_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test with a path.
14045 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14046 for as_dir in $gcc_cv_tool_dirs
14049 test -z "$as_dir" && as_dir=.
14050 for ac_exec_ext in '' $ac_executable_extensions; do
14051 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14052 ac_cv_path_AS_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14053 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14063 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14064 if test -n "$AS_FOR_TARGET"; then
14065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14066 $as_echo "$AS_FOR_TARGET" >&6; }
14068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14069 $as_echo "no" >&6; }
14074 if test -z "$ac_cv_path_AS_FOR_TARGET" ; then
14077 if test -n "$AS_FOR_TARGET"; then
14078 ac_cv_prog_AS_FOR_TARGET=$AS_FOR_TARGET
14079 elif test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14080 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14083 if test -n "$ac_cv_prog_AS_FOR_TARGET"; then
14084 for ncn_progname in as; do
14085 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14086 set dummy ${ncn_progname}; ac_word=$2
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14088 $as_echo_n "checking for $ac_word... " >&6; }
14089 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14090 $as_echo_n "(cached) " >&6
14092 if test -n "$AS_FOR_TARGET"; then
14093 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14096 for as_dir in $PATH
14099 test -z "$as_dir" && as_dir=.
14100 for ac_exec_ext in '' $ac_executable_extensions; do
14101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14102 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14112 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14113 if test -n "$AS_FOR_TARGET"; then
14114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14115 $as_echo "$AS_FOR_TARGET" >&6; }
14117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14118 $as_echo "no" >&6; }
14125 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test -n "$with_build_time_tools"; then
14126 for ncn_progname in as; do
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14128 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14129 if test -x $with_build_time_tools/${ncn_progname}; then
14130 ac_cv_prog_AS_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14132 $as_echo "yes" >&6; }
14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14136 $as_echo "no" >&6; }
14141 if test -z "$ac_cv_prog_AS_FOR_TARGET"; then
14142 for ncn_progname in as; do
14143 if test -n "$ncn_target_tool_prefix"; then
14144 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14145 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14147 $as_echo_n "checking for $ac_word... " >&6; }
14148 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14149 $as_echo_n "(cached) " >&6
14151 if test -n "$AS_FOR_TARGET"; then
14152 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14155 for as_dir in $PATH
14158 test -z "$as_dir" && as_dir=.
14159 for ac_exec_ext in '' $ac_executable_extensions; do
14160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14161 ac_cv_prog_AS_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14171 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14172 if test -n "$AS_FOR_TARGET"; then
14173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14174 $as_echo "$AS_FOR_TARGET" >&6; }
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14177 $as_echo "no" >&6; }
14182 if test -z "$ac_cv_prog_AS_FOR_TARGET" && test $build = $target ; then
14183 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14184 set dummy ${ncn_progname}; ac_word=$2
14185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14186 $as_echo_n "checking for $ac_word... " >&6; }
14187 if ${ac_cv_prog_AS_FOR_TARGET+:} false; then :
14188 $as_echo_n "(cached) " >&6
14190 if test -n "$AS_FOR_TARGET"; then
14191 ac_cv_prog_AS_FOR_TARGET="$AS_FOR_TARGET" # Let the user override the test.
14193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14194 for as_dir in $PATH
14197 test -z "$as_dir" && as_dir=.
14198 for ac_exec_ext in '' $ac_executable_extensions; do
14199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14200 ac_cv_prog_AS_FOR_TARGET="${ncn_progname}"
14201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14210 AS_FOR_TARGET=$ac_cv_prog_AS_FOR_TARGET
14211 if test -n "$AS_FOR_TARGET"; then
14212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS_FOR_TARGET" >&5
14213 $as_echo "$AS_FOR_TARGET" >&6; }
14215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14216 $as_echo "no" >&6; }
14221 test -n "$ac_cv_prog_AS_FOR_TARGET" && break
14225 if test -z "$ac_cv_prog_AS_FOR_TARGET" ; then
14227 if test $build = $target ; then
14230 AS_FOR_TARGET="${ncn_target_tool_prefix}$2"
14233 AS_FOR_TARGET="$ac_cv_prog_AS_FOR_TARGET"
14237 AS_FOR_TARGET=$ac_cv_path_AS_FOR_TARGET
14243 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14244 if test -n "$with_build_time_tools"; then
14245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlltool in $with_build_time_tools" >&5
14246 $as_echo_n "checking for dlltool in $with_build_time_tools... " >&6; }
14247 if test -x $with_build_time_tools/dlltool; then
14248 DLLTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dlltool
14249 ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DLLTOOL_FOR_TARGET" >&5
14251 $as_echo "$ac_cv_path_DLLTOOL_FOR_TARGET" >&6; }
14253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14254 $as_echo "no" >&6; }
14256 elif test $build != $host && test $have_gcc_for_target = yes; then
14257 DLLTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dlltool`
14258 test $DLLTOOL_FOR_TARGET = dlltool && DLLTOOL_FOR_TARGET=
14259 test -n "$DLLTOOL_FOR_TARGET" && ac_cv_path_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14262 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14263 # Extract the first word of "dlltool", so it can be a program name with args.
14264 set dummy dlltool; ac_word=$2
14265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14266 $as_echo_n "checking for $ac_word... " >&6; }
14267 if ${ac_cv_path_DLLTOOL_FOR_TARGET+:} false; then :
14268 $as_echo_n "(cached) " >&6
14270 case $DLLTOOL_FOR_TARGET in
14272 ac_cv_path_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test with a path.
14275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14276 for as_dir in $gcc_cv_tool_dirs
14279 test -z "$as_dir" && as_dir=.
14280 for ac_exec_ext in '' $ac_executable_extensions; do
14281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14282 ac_cv_path_DLLTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14293 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14294 if test -n "$DLLTOOL_FOR_TARGET"; then
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14296 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14299 $as_echo "no" >&6; }
14304 if test -z "$ac_cv_path_DLLTOOL_FOR_TARGET" ; then
14307 if test -n "$DLLTOOL_FOR_TARGET"; then
14308 ac_cv_prog_DLLTOOL_FOR_TARGET=$DLLTOOL_FOR_TARGET
14309 elif test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14310 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14313 if test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14314 for ncn_progname in dlltool; do
14315 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14316 set dummy ${ncn_progname}; ac_word=$2
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14318 $as_echo_n "checking for $ac_word... " >&6; }
14319 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14320 $as_echo_n "(cached) " >&6
14322 if test -n "$DLLTOOL_FOR_TARGET"; then
14323 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14326 for as_dir in $PATH
14329 test -z "$as_dir" && as_dir=.
14330 for ac_exec_ext in '' $ac_executable_extensions; do
14331 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14332 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14333 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14342 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14343 if test -n "$DLLTOOL_FOR_TARGET"; then
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14345 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14348 $as_echo "no" >&6; }
14355 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14356 for ncn_progname in dlltool; do
14357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14358 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14359 if test -x $with_build_time_tools/${ncn_progname}; then
14360 ac_cv_prog_DLLTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14362 $as_echo "yes" >&6; }
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14366 $as_echo "no" >&6; }
14371 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET"; then
14372 for ncn_progname in dlltool; do
14373 if test -n "$ncn_target_tool_prefix"; then
14374 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14375 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14377 $as_echo_n "checking for $ac_word... " >&6; }
14378 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14379 $as_echo_n "(cached) " >&6
14381 if test -n "$DLLTOOL_FOR_TARGET"; then
14382 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14385 for as_dir in $PATH
14388 test -z "$as_dir" && as_dir=.
14389 for ac_exec_ext in '' $ac_executable_extensions; do
14390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14391 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14401 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14402 if test -n "$DLLTOOL_FOR_TARGET"; then
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14404 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14407 $as_echo "no" >&6; }
14412 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" && test $build = $target ; then
14413 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14414 set dummy ${ncn_progname}; ac_word=$2
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14416 $as_echo_n "checking for $ac_word... " >&6; }
14417 if ${ac_cv_prog_DLLTOOL_FOR_TARGET+:} false; then :
14418 $as_echo_n "(cached) " >&6
14420 if test -n "$DLLTOOL_FOR_TARGET"; then
14421 ac_cv_prog_DLLTOOL_FOR_TARGET="$DLLTOOL_FOR_TARGET" # Let the user override the test.
14423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14424 for as_dir in $PATH
14427 test -z "$as_dir" && as_dir=.
14428 for ac_exec_ext in '' $ac_executable_extensions; do
14429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14430 ac_cv_prog_DLLTOOL_FOR_TARGET="${ncn_progname}"
14431 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14440 DLLTOOL_FOR_TARGET=$ac_cv_prog_DLLTOOL_FOR_TARGET
14441 if test -n "$DLLTOOL_FOR_TARGET"; then
14442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL_FOR_TARGET" >&5
14443 $as_echo "$DLLTOOL_FOR_TARGET" >&6; }
14445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14446 $as_echo "no" >&6; }
14451 test -n "$ac_cv_prog_DLLTOOL_FOR_TARGET" && break
14455 if test -z "$ac_cv_prog_DLLTOOL_FOR_TARGET" ; then
14457 if test $build = $target ; then
14458 DLLTOOL_FOR_TARGET="$2"
14460 DLLTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14463 DLLTOOL_FOR_TARGET="$ac_cv_prog_DLLTOOL_FOR_TARGET"
14467 DLLTOOL_FOR_TARGET=$ac_cv_path_DLLTOOL_FOR_TARGET
14473 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14474 if test -n "$with_build_time_tools"; then
14475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dsymutil in $with_build_time_tools" >&5
14476 $as_echo_n "checking for dsymutil in $with_build_time_tools... " >&6; }
14477 if test -x $with_build_time_tools/dsymutil; then
14478 DSYMUTIL_FOR_TARGET=`cd $with_build_time_tools && pwd`/dsymutil
14479 ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_DSYMUTIL_FOR_TARGET" >&5
14481 $as_echo "$ac_cv_path_DSYMUTIL_FOR_TARGET" >&6; }
14483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14484 $as_echo "no" >&6; }
14486 elif test $build != $host && test $have_gcc_for_target = yes; then
14487 DSYMUTIL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=dsymutil`
14488 test $DSYMUTIL_FOR_TARGET = dsymutil && DSYMUTIL_FOR_TARGET=
14489 test -n "$DSYMUTIL_FOR_TARGET" && ac_cv_path_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14492 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14493 # Extract the first word of "dsymutil", so it can be a program name with args.
14494 set dummy dsymutil; ac_word=$2
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14496 $as_echo_n "checking for $ac_word... " >&6; }
14497 if ${ac_cv_path_DSYMUTIL_FOR_TARGET+:} false; then :
14498 $as_echo_n "(cached) " >&6
14500 case $DSYMUTIL_FOR_TARGET in
14502 ac_cv_path_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test with a path.
14505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14506 for as_dir in $gcc_cv_tool_dirs
14509 test -z "$as_dir" && as_dir=.
14510 for ac_exec_ext in '' $ac_executable_extensions; do
14511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14512 ac_cv_path_DSYMUTIL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14523 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14524 if test -n "$DSYMUTIL_FOR_TARGET"; then
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14526 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14529 $as_echo "no" >&6; }
14534 if test -z "$ac_cv_path_DSYMUTIL_FOR_TARGET" ; then
14537 if test -n "$DSYMUTIL_FOR_TARGET"; then
14538 ac_cv_prog_DSYMUTIL_FOR_TARGET=$DSYMUTIL_FOR_TARGET
14539 elif test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14540 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14543 if test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14544 for ncn_progname in dsymutil; do
14545 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14546 set dummy ${ncn_progname}; ac_word=$2
14547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14548 $as_echo_n "checking for $ac_word... " >&6; }
14549 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14550 $as_echo_n "(cached) " >&6
14552 if test -n "$DSYMUTIL_FOR_TARGET"; then
14553 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14556 for as_dir in $PATH
14559 test -z "$as_dir" && as_dir=.
14560 for ac_exec_ext in '' $ac_executable_extensions; do
14561 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14562 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14563 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14572 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14573 if test -n "$DSYMUTIL_FOR_TARGET"; then
14574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14575 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14578 $as_echo "no" >&6; }
14585 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test -n "$with_build_time_tools"; then
14586 for ncn_progname in dsymutil; do
14587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14588 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14589 if test -x $with_build_time_tools/${ncn_progname}; then
14590 ac_cv_prog_DSYMUTIL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14592 $as_echo "yes" >&6; }
14595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14596 $as_echo "no" >&6; }
14601 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET"; then
14602 for ncn_progname in dsymutil; do
14603 if test -n "$ncn_target_tool_prefix"; then
14604 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14605 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14607 $as_echo_n "checking for $ac_word... " >&6; }
14608 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14609 $as_echo_n "(cached) " >&6
14611 if test -n "$DSYMUTIL_FOR_TARGET"; then
14612 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14615 for as_dir in $PATH
14618 test -z "$as_dir" && as_dir=.
14619 for ac_exec_ext in '' $ac_executable_extensions; do
14620 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14621 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14631 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14632 if test -n "$DSYMUTIL_FOR_TARGET"; then
14633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14634 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14637 $as_echo "no" >&6; }
14642 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && test $build = $target ; then
14643 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14644 set dummy ${ncn_progname}; ac_word=$2
14645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14646 $as_echo_n "checking for $ac_word... " >&6; }
14647 if ${ac_cv_prog_DSYMUTIL_FOR_TARGET+:} false; then :
14648 $as_echo_n "(cached) " >&6
14650 if test -n "$DSYMUTIL_FOR_TARGET"; then
14651 ac_cv_prog_DSYMUTIL_FOR_TARGET="$DSYMUTIL_FOR_TARGET" # Let the user override the test.
14653 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14654 for as_dir in $PATH
14657 test -z "$as_dir" && as_dir=.
14658 for ac_exec_ext in '' $ac_executable_extensions; do
14659 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14660 ac_cv_prog_DSYMUTIL_FOR_TARGET="${ncn_progname}"
14661 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14670 DSYMUTIL_FOR_TARGET=$ac_cv_prog_DSYMUTIL_FOR_TARGET
14671 if test -n "$DSYMUTIL_FOR_TARGET"; then
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL_FOR_TARGET" >&5
14673 $as_echo "$DSYMUTIL_FOR_TARGET" >&6; }
14675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14676 $as_echo "no" >&6; }
14681 test -n "$ac_cv_prog_DSYMUTIL_FOR_TARGET" && break
14685 if test -z "$ac_cv_prog_DSYMUTIL_FOR_TARGET" ; then
14687 if test $build = $target ; then
14688 DSYMUTIL_FOR_TARGET="$2"
14690 DSYMUTIL_FOR_TARGET="${ncn_target_tool_prefix}$2"
14693 DSYMUTIL_FOR_TARGET="$ac_cv_prog_DSYMUTIL_FOR_TARGET"
14697 DSYMUTIL_FOR_TARGET=$ac_cv_path_DSYMUTIL_FOR_TARGET
14703 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14704 if test -n "$with_build_time_tools"; then
14705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld in $with_build_time_tools" >&5
14706 $as_echo_n "checking for ld in $with_build_time_tools... " >&6; }
14707 if test -x $with_build_time_tools/ld; then
14708 LD_FOR_TARGET=`cd $with_build_time_tools && pwd`/ld
14709 ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LD_FOR_TARGET" >&5
14711 $as_echo "$ac_cv_path_LD_FOR_TARGET" >&6; }
14713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14714 $as_echo "no" >&6; }
14716 elif test $build != $host && test $have_gcc_for_target = yes; then
14717 LD_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ld`
14718 test $LD_FOR_TARGET = ld && LD_FOR_TARGET=
14719 test -n "$LD_FOR_TARGET" && ac_cv_path_LD_FOR_TARGET=$LD_FOR_TARGET
14722 if test -z "$ac_cv_path_LD_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14723 # Extract the first word of "ld", so it can be a program name with args.
14724 set dummy ld; ac_word=$2
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14726 $as_echo_n "checking for $ac_word... " >&6; }
14727 if ${ac_cv_path_LD_FOR_TARGET+:} false; then :
14728 $as_echo_n "(cached) " >&6
14730 case $LD_FOR_TARGET in
14732 ac_cv_path_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test with a path.
14735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14736 for as_dir in $gcc_cv_tool_dirs
14739 test -z "$as_dir" && as_dir=.
14740 for ac_exec_ext in '' $ac_executable_extensions; do
14741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14742 ac_cv_path_LD_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14753 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14754 if test -n "$LD_FOR_TARGET"; then
14755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14756 $as_echo "$LD_FOR_TARGET" >&6; }
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14759 $as_echo "no" >&6; }
14764 if test -z "$ac_cv_path_LD_FOR_TARGET" ; then
14767 if test -n "$LD_FOR_TARGET"; then
14768 ac_cv_prog_LD_FOR_TARGET=$LD_FOR_TARGET
14769 elif test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14770 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14773 if test -n "$ac_cv_prog_LD_FOR_TARGET"; then
14774 for ncn_progname in ld; do
14775 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14776 set dummy ${ncn_progname}; ac_word=$2
14777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14778 $as_echo_n "checking for $ac_word... " >&6; }
14779 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14780 $as_echo_n "(cached) " >&6
14782 if test -n "$LD_FOR_TARGET"; then
14783 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14786 for as_dir in $PATH
14789 test -z "$as_dir" && as_dir=.
14790 for ac_exec_ext in '' $ac_executable_extensions; do
14791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14792 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14802 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14803 if test -n "$LD_FOR_TARGET"; then
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14805 $as_echo "$LD_FOR_TARGET" >&6; }
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14808 $as_echo "no" >&6; }
14815 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test -n "$with_build_time_tools"; then
14816 for ncn_progname in ld; do
14817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
14818 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
14819 if test -x $with_build_time_tools/${ncn_progname}; then
14820 ac_cv_prog_LD_FOR_TARGET=$with_build_time_tools/${ncn_progname}
14821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14822 $as_echo "yes" >&6; }
14825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14826 $as_echo "no" >&6; }
14831 if test -z "$ac_cv_prog_LD_FOR_TARGET"; then
14832 for ncn_progname in ld; do
14833 if test -n "$ncn_target_tool_prefix"; then
14834 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
14835 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
14836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14837 $as_echo_n "checking for $ac_word... " >&6; }
14838 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14839 $as_echo_n "(cached) " >&6
14841 if test -n "$LD_FOR_TARGET"; then
14842 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14845 for as_dir in $PATH
14848 test -z "$as_dir" && as_dir=.
14849 for ac_exec_ext in '' $ac_executable_extensions; do
14850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14851 ac_cv_prog_LD_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
14852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14861 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14862 if test -n "$LD_FOR_TARGET"; then
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14864 $as_echo "$LD_FOR_TARGET" >&6; }
14866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14867 $as_echo "no" >&6; }
14872 if test -z "$ac_cv_prog_LD_FOR_TARGET" && test $build = $target ; then
14873 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
14874 set dummy ${ncn_progname}; ac_word=$2
14875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14876 $as_echo_n "checking for $ac_word... " >&6; }
14877 if ${ac_cv_prog_LD_FOR_TARGET+:} false; then :
14878 $as_echo_n "(cached) " >&6
14880 if test -n "$LD_FOR_TARGET"; then
14881 ac_cv_prog_LD_FOR_TARGET="$LD_FOR_TARGET" # Let the user override the test.
14883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14884 for as_dir in $PATH
14887 test -z "$as_dir" && as_dir=.
14888 for ac_exec_ext in '' $ac_executable_extensions; do
14889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14890 ac_cv_prog_LD_FOR_TARGET="${ncn_progname}"
14891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14900 LD_FOR_TARGET=$ac_cv_prog_LD_FOR_TARGET
14901 if test -n "$LD_FOR_TARGET"; then
14902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD_FOR_TARGET" >&5
14903 $as_echo "$LD_FOR_TARGET" >&6; }
14905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14906 $as_echo "no" >&6; }
14911 test -n "$ac_cv_prog_LD_FOR_TARGET" && break
14915 if test -z "$ac_cv_prog_LD_FOR_TARGET" ; then
14917 if test $build = $target ; then
14920 LD_FOR_TARGET="${ncn_target_tool_prefix}$2"
14923 LD_FOR_TARGET="$ac_cv_prog_LD_FOR_TARGET"
14927 LD_FOR_TARGET=$ac_cv_path_LD_FOR_TARGET
14933 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14934 if test -n "$with_build_time_tools"; then
14935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lipo in $with_build_time_tools" >&5
14936 $as_echo_n "checking for lipo in $with_build_time_tools... " >&6; }
14937 if test -x $with_build_time_tools/lipo; then
14938 LIPO_FOR_TARGET=`cd $with_build_time_tools && pwd`/lipo
14939 ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_LIPO_FOR_TARGET" >&5
14941 $as_echo "$ac_cv_path_LIPO_FOR_TARGET" >&6; }
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14944 $as_echo "no" >&6; }
14946 elif test $build != $host && test $have_gcc_for_target = yes; then
14947 LIPO_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=lipo`
14948 test $LIPO_FOR_TARGET = lipo && LIPO_FOR_TARGET=
14949 test -n "$LIPO_FOR_TARGET" && ac_cv_path_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14952 if test -z "$ac_cv_path_LIPO_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
14953 # Extract the first word of "lipo", so it can be a program name with args.
14954 set dummy lipo; ac_word=$2
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14956 $as_echo_n "checking for $ac_word... " >&6; }
14957 if ${ac_cv_path_LIPO_FOR_TARGET+:} false; then :
14958 $as_echo_n "(cached) " >&6
14960 case $LIPO_FOR_TARGET in
14962 ac_cv_path_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test with a path.
14965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14966 for as_dir in $gcc_cv_tool_dirs
14969 test -z "$as_dir" && as_dir=.
14970 for ac_exec_ext in '' $ac_executable_extensions; do
14971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14972 ac_cv_path_LIPO_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
14973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14983 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
14984 if test -n "$LIPO_FOR_TARGET"; then
14985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
14986 $as_echo "$LIPO_FOR_TARGET" >&6; }
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14989 $as_echo "no" >&6; }
14994 if test -z "$ac_cv_path_LIPO_FOR_TARGET" ; then
14997 if test -n "$LIPO_FOR_TARGET"; then
14998 ac_cv_prog_LIPO_FOR_TARGET=$LIPO_FOR_TARGET
14999 elif test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15000 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15003 if test -n "$ac_cv_prog_LIPO_FOR_TARGET"; then
15004 for ncn_progname in lipo; do
15005 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15006 set dummy ${ncn_progname}; ac_word=$2
15007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15008 $as_echo_n "checking for $ac_word... " >&6; }
15009 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15010 $as_echo_n "(cached) " >&6
15012 if test -n "$LIPO_FOR_TARGET"; then
15013 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15016 for as_dir in $PATH
15019 test -z "$as_dir" && as_dir=.
15020 for ac_exec_ext in '' $ac_executable_extensions; do
15021 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15022 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15023 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15032 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15033 if test -n "$LIPO_FOR_TARGET"; then
15034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15035 $as_echo "$LIPO_FOR_TARGET" >&6; }
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15038 $as_echo "no" >&6; }
15045 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test -n "$with_build_time_tools"; then
15046 for ncn_progname in lipo; do
15047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15048 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15049 if test -x $with_build_time_tools/${ncn_progname}; then
15050 ac_cv_prog_LIPO_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15052 $as_echo "yes" >&6; }
15055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15056 $as_echo "no" >&6; }
15061 if test -z "$ac_cv_prog_LIPO_FOR_TARGET"; then
15062 for ncn_progname in lipo; do
15063 if test -n "$ncn_target_tool_prefix"; then
15064 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15065 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15067 $as_echo_n "checking for $ac_word... " >&6; }
15068 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15069 $as_echo_n "(cached) " >&6
15071 if test -n "$LIPO_FOR_TARGET"; then
15072 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15075 for as_dir in $PATH
15078 test -z "$as_dir" && as_dir=.
15079 for ac_exec_ext in '' $ac_executable_extensions; do
15080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15081 ac_cv_prog_LIPO_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15091 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15092 if test -n "$LIPO_FOR_TARGET"; then
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15094 $as_echo "$LIPO_FOR_TARGET" >&6; }
15096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15097 $as_echo "no" >&6; }
15102 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" && test $build = $target ; then
15103 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15104 set dummy ${ncn_progname}; ac_word=$2
15105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15106 $as_echo_n "checking for $ac_word... " >&6; }
15107 if ${ac_cv_prog_LIPO_FOR_TARGET+:} false; then :
15108 $as_echo_n "(cached) " >&6
15110 if test -n "$LIPO_FOR_TARGET"; then
15111 ac_cv_prog_LIPO_FOR_TARGET="$LIPO_FOR_TARGET" # Let the user override the test.
15113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15114 for as_dir in $PATH
15117 test -z "$as_dir" && as_dir=.
15118 for ac_exec_ext in '' $ac_executable_extensions; do
15119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15120 ac_cv_prog_LIPO_FOR_TARGET="${ncn_progname}"
15121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15130 LIPO_FOR_TARGET=$ac_cv_prog_LIPO_FOR_TARGET
15131 if test -n "$LIPO_FOR_TARGET"; then
15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO_FOR_TARGET" >&5
15133 $as_echo "$LIPO_FOR_TARGET" >&6; }
15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15136 $as_echo "no" >&6; }
15141 test -n "$ac_cv_prog_LIPO_FOR_TARGET" && break
15145 if test -z "$ac_cv_prog_LIPO_FOR_TARGET" ; then
15147 if test $build = $target ; then
15148 LIPO_FOR_TARGET="$2"
15150 LIPO_FOR_TARGET="${ncn_target_tool_prefix}$2"
15153 LIPO_FOR_TARGET="$ac_cv_prog_LIPO_FOR_TARGET"
15157 LIPO_FOR_TARGET=$ac_cv_path_LIPO_FOR_TARGET
15163 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15164 if test -n "$with_build_time_tools"; then
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nm in $with_build_time_tools" >&5
15166 $as_echo_n "checking for nm in $with_build_time_tools... " >&6; }
15167 if test -x $with_build_time_tools/nm; then
15168 NM_FOR_TARGET=`cd $with_build_time_tools && pwd`/nm
15169 ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_NM_FOR_TARGET" >&5
15171 $as_echo "$ac_cv_path_NM_FOR_TARGET" >&6; }
15173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15174 $as_echo "no" >&6; }
15176 elif test $build != $host && test $have_gcc_for_target = yes; then
15177 NM_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=nm`
15178 test $NM_FOR_TARGET = nm && NM_FOR_TARGET=
15179 test -n "$NM_FOR_TARGET" && ac_cv_path_NM_FOR_TARGET=$NM_FOR_TARGET
15182 if test -z "$ac_cv_path_NM_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15183 # Extract the first word of "nm", so it can be a program name with args.
15184 set dummy nm; ac_word=$2
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15186 $as_echo_n "checking for $ac_word... " >&6; }
15187 if ${ac_cv_path_NM_FOR_TARGET+:} false; then :
15188 $as_echo_n "(cached) " >&6
15190 case $NM_FOR_TARGET in
15192 ac_cv_path_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test with a path.
15195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15196 for as_dir in $gcc_cv_tool_dirs
15199 test -z "$as_dir" && as_dir=.
15200 for ac_exec_ext in '' $ac_executable_extensions; do
15201 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15202 ac_cv_path_NM_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15203 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15213 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15214 if test -n "$NM_FOR_TARGET"; then
15215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15216 $as_echo "$NM_FOR_TARGET" >&6; }
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15219 $as_echo "no" >&6; }
15224 if test -z "$ac_cv_path_NM_FOR_TARGET" ; then
15227 if test -n "$NM_FOR_TARGET"; then
15228 ac_cv_prog_NM_FOR_TARGET=$NM_FOR_TARGET
15229 elif test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15230 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15233 if test -n "$ac_cv_prog_NM_FOR_TARGET"; then
15234 for ncn_progname in nm; do
15235 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15236 set dummy ${ncn_progname}; ac_word=$2
15237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15238 $as_echo_n "checking for $ac_word... " >&6; }
15239 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15240 $as_echo_n "(cached) " >&6
15242 if test -n "$NM_FOR_TARGET"; then
15243 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15246 for as_dir in $PATH
15249 test -z "$as_dir" && as_dir=.
15250 for ac_exec_ext in '' $ac_executable_extensions; do
15251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15252 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15262 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15263 if test -n "$NM_FOR_TARGET"; then
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15265 $as_echo "$NM_FOR_TARGET" >&6; }
15267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15268 $as_echo "no" >&6; }
15275 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test -n "$with_build_time_tools"; then
15276 for ncn_progname in nm; do
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15278 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15279 if test -x $with_build_time_tools/${ncn_progname}; then
15280 ac_cv_prog_NM_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15282 $as_echo "yes" >&6; }
15285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15286 $as_echo "no" >&6; }
15291 if test -z "$ac_cv_prog_NM_FOR_TARGET"; then
15292 for ncn_progname in nm; do
15293 if test -n "$ncn_target_tool_prefix"; then
15294 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15295 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15297 $as_echo_n "checking for $ac_word... " >&6; }
15298 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15299 $as_echo_n "(cached) " >&6
15301 if test -n "$NM_FOR_TARGET"; then
15302 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15305 for as_dir in $PATH
15308 test -z "$as_dir" && as_dir=.
15309 for ac_exec_ext in '' $ac_executable_extensions; do
15310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15311 ac_cv_prog_NM_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15321 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15322 if test -n "$NM_FOR_TARGET"; then
15323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15324 $as_echo "$NM_FOR_TARGET" >&6; }
15326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15327 $as_echo "no" >&6; }
15332 if test -z "$ac_cv_prog_NM_FOR_TARGET" && test $build = $target ; then
15333 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15334 set dummy ${ncn_progname}; ac_word=$2
15335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15336 $as_echo_n "checking for $ac_word... " >&6; }
15337 if ${ac_cv_prog_NM_FOR_TARGET+:} false; then :
15338 $as_echo_n "(cached) " >&6
15340 if test -n "$NM_FOR_TARGET"; then
15341 ac_cv_prog_NM_FOR_TARGET="$NM_FOR_TARGET" # Let the user override the test.
15343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15344 for as_dir in $PATH
15347 test -z "$as_dir" && as_dir=.
15348 for ac_exec_ext in '' $ac_executable_extensions; do
15349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15350 ac_cv_prog_NM_FOR_TARGET="${ncn_progname}"
15351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15360 NM_FOR_TARGET=$ac_cv_prog_NM_FOR_TARGET
15361 if test -n "$NM_FOR_TARGET"; then
15362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM_FOR_TARGET" >&5
15363 $as_echo "$NM_FOR_TARGET" >&6; }
15365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15366 $as_echo "no" >&6; }
15371 test -n "$ac_cv_prog_NM_FOR_TARGET" && break
15375 if test -z "$ac_cv_prog_NM_FOR_TARGET" ; then
15377 if test $build = $target ; then
15380 NM_FOR_TARGET="${ncn_target_tool_prefix}$2"
15383 NM_FOR_TARGET="$ac_cv_prog_NM_FOR_TARGET"
15387 NM_FOR_TARGET=$ac_cv_path_NM_FOR_TARGET
15393 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15394 if test -n "$with_build_time_tools"; then
15395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objcopy in $with_build_time_tools" >&5
15396 $as_echo_n "checking for objcopy in $with_build_time_tools... " >&6; }
15397 if test -x $with_build_time_tools/objcopy; then
15398 OBJCOPY_FOR_TARGET=`cd $with_build_time_tools && pwd`/objcopy
15399 ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJCOPY_FOR_TARGET" >&5
15401 $as_echo "$ac_cv_path_OBJCOPY_FOR_TARGET" >&6; }
15403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15404 $as_echo "no" >&6; }
15406 elif test $build != $host && test $have_gcc_for_target = yes; then
15407 OBJCOPY_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objcopy`
15408 test $OBJCOPY_FOR_TARGET = objcopy && OBJCOPY_FOR_TARGET=
15409 test -n "$OBJCOPY_FOR_TARGET" && ac_cv_path_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15412 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15413 # Extract the first word of "objcopy", so it can be a program name with args.
15414 set dummy objcopy; ac_word=$2
15415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15416 $as_echo_n "checking for $ac_word... " >&6; }
15417 if ${ac_cv_path_OBJCOPY_FOR_TARGET+:} false; then :
15418 $as_echo_n "(cached) " >&6
15420 case $OBJCOPY_FOR_TARGET in
15422 ac_cv_path_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test with a path.
15425 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15426 for as_dir in $gcc_cv_tool_dirs
15429 test -z "$as_dir" && as_dir=.
15430 for ac_exec_ext in '' $ac_executable_extensions; do
15431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15432 ac_cv_path_OBJCOPY_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15443 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15444 if test -n "$OBJCOPY_FOR_TARGET"; then
15445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15446 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15449 $as_echo "no" >&6; }
15454 if test -z "$ac_cv_path_OBJCOPY_FOR_TARGET" ; then
15457 if test -n "$OBJCOPY_FOR_TARGET"; then
15458 ac_cv_prog_OBJCOPY_FOR_TARGET=$OBJCOPY_FOR_TARGET
15459 elif test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15460 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15463 if test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15464 for ncn_progname in objcopy; do
15465 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15466 set dummy ${ncn_progname}; ac_word=$2
15467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15468 $as_echo_n "checking for $ac_word... " >&6; }
15469 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15470 $as_echo_n "(cached) " >&6
15472 if test -n "$OBJCOPY_FOR_TARGET"; then
15473 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15476 for as_dir in $PATH
15479 test -z "$as_dir" && as_dir=.
15480 for ac_exec_ext in '' $ac_executable_extensions; do
15481 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15482 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15492 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15493 if test -n "$OBJCOPY_FOR_TARGET"; then
15494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15495 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15498 $as_echo "no" >&6; }
15505 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test -n "$with_build_time_tools"; then
15506 for ncn_progname in objcopy; do
15507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15508 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15509 if test -x $with_build_time_tools/${ncn_progname}; then
15510 ac_cv_prog_OBJCOPY_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15512 $as_echo "yes" >&6; }
15515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15516 $as_echo "no" >&6; }
15521 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET"; then
15522 for ncn_progname in objcopy; do
15523 if test -n "$ncn_target_tool_prefix"; then
15524 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15525 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15527 $as_echo_n "checking for $ac_word... " >&6; }
15528 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15529 $as_echo_n "(cached) " >&6
15531 if test -n "$OBJCOPY_FOR_TARGET"; then
15532 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15535 for as_dir in $PATH
15538 test -z "$as_dir" && as_dir=.
15539 for ac_exec_ext in '' $ac_executable_extensions; do
15540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15541 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15551 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15552 if test -n "$OBJCOPY_FOR_TARGET"; then
15553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15554 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15557 $as_echo "no" >&6; }
15562 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" && test $build = $target ; then
15563 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15564 set dummy ${ncn_progname}; ac_word=$2
15565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15566 $as_echo_n "checking for $ac_word... " >&6; }
15567 if ${ac_cv_prog_OBJCOPY_FOR_TARGET+:} false; then :
15568 $as_echo_n "(cached) " >&6
15570 if test -n "$OBJCOPY_FOR_TARGET"; then
15571 ac_cv_prog_OBJCOPY_FOR_TARGET="$OBJCOPY_FOR_TARGET" # Let the user override the test.
15573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15574 for as_dir in $PATH
15577 test -z "$as_dir" && as_dir=.
15578 for ac_exec_ext in '' $ac_executable_extensions; do
15579 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15580 ac_cv_prog_OBJCOPY_FOR_TARGET="${ncn_progname}"
15581 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15590 OBJCOPY_FOR_TARGET=$ac_cv_prog_OBJCOPY_FOR_TARGET
15591 if test -n "$OBJCOPY_FOR_TARGET"; then
15592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJCOPY_FOR_TARGET" >&5
15593 $as_echo "$OBJCOPY_FOR_TARGET" >&6; }
15595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15596 $as_echo "no" >&6; }
15601 test -n "$ac_cv_prog_OBJCOPY_FOR_TARGET" && break
15605 if test -z "$ac_cv_prog_OBJCOPY_FOR_TARGET" ; then
15607 if test $build = $target ; then
15608 OBJCOPY_FOR_TARGET="$2"
15610 OBJCOPY_FOR_TARGET="${ncn_target_tool_prefix}$2"
15613 OBJCOPY_FOR_TARGET="$ac_cv_prog_OBJCOPY_FOR_TARGET"
15617 OBJCOPY_FOR_TARGET=$ac_cv_path_OBJCOPY_FOR_TARGET
15623 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15624 if test -n "$with_build_time_tools"; then
15625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdump in $with_build_time_tools" >&5
15626 $as_echo_n "checking for objdump in $with_build_time_tools... " >&6; }
15627 if test -x $with_build_time_tools/objdump; then
15628 OBJDUMP_FOR_TARGET=`cd $with_build_time_tools && pwd`/objdump
15629 ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OBJDUMP_FOR_TARGET" >&5
15631 $as_echo "$ac_cv_path_OBJDUMP_FOR_TARGET" >&6; }
15633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15634 $as_echo "no" >&6; }
15636 elif test $build != $host && test $have_gcc_for_target = yes; then
15637 OBJDUMP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=objdump`
15638 test $OBJDUMP_FOR_TARGET = objdump && OBJDUMP_FOR_TARGET=
15639 test -n "$OBJDUMP_FOR_TARGET" && ac_cv_path_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15642 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15643 # Extract the first word of "objdump", so it can be a program name with args.
15644 set dummy objdump; ac_word=$2
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15646 $as_echo_n "checking for $ac_word... " >&6; }
15647 if ${ac_cv_path_OBJDUMP_FOR_TARGET+:} false; then :
15648 $as_echo_n "(cached) " >&6
15650 case $OBJDUMP_FOR_TARGET in
15652 ac_cv_path_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test with a path.
15655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15656 for as_dir in $gcc_cv_tool_dirs
15659 test -z "$as_dir" && as_dir=.
15660 for ac_exec_ext in '' $ac_executable_extensions; do
15661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15662 ac_cv_path_OBJDUMP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15673 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15674 if test -n "$OBJDUMP_FOR_TARGET"; then
15675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15676 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15679 $as_echo "no" >&6; }
15684 if test -z "$ac_cv_path_OBJDUMP_FOR_TARGET" ; then
15687 if test -n "$OBJDUMP_FOR_TARGET"; then
15688 ac_cv_prog_OBJDUMP_FOR_TARGET=$OBJDUMP_FOR_TARGET
15689 elif test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15690 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15693 if test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15694 for ncn_progname in objdump; do
15695 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15696 set dummy ${ncn_progname}; ac_word=$2
15697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15698 $as_echo_n "checking for $ac_word... " >&6; }
15699 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15700 $as_echo_n "(cached) " >&6
15702 if test -n "$OBJDUMP_FOR_TARGET"; then
15703 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15706 for as_dir in $PATH
15709 test -z "$as_dir" && as_dir=.
15710 for ac_exec_ext in '' $ac_executable_extensions; do
15711 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15712 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15722 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15723 if test -n "$OBJDUMP_FOR_TARGET"; then
15724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15725 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15728 $as_echo "no" >&6; }
15735 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test -n "$with_build_time_tools"; then
15736 for ncn_progname in objdump; do
15737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15738 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15739 if test -x $with_build_time_tools/${ncn_progname}; then
15740 ac_cv_prog_OBJDUMP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15742 $as_echo "yes" >&6; }
15745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15746 $as_echo "no" >&6; }
15751 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET"; then
15752 for ncn_progname in objdump; do
15753 if test -n "$ncn_target_tool_prefix"; then
15754 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15755 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15757 $as_echo_n "checking for $ac_word... " >&6; }
15758 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15759 $as_echo_n "(cached) " >&6
15761 if test -n "$OBJDUMP_FOR_TARGET"; then
15762 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15765 for as_dir in $PATH
15768 test -z "$as_dir" && as_dir=.
15769 for ac_exec_ext in '' $ac_executable_extensions; do
15770 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15771 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
15772 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15781 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15782 if test -n "$OBJDUMP_FOR_TARGET"; then
15783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15784 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15787 $as_echo "no" >&6; }
15792 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" && test $build = $target ; then
15793 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15794 set dummy ${ncn_progname}; ac_word=$2
15795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15796 $as_echo_n "checking for $ac_word... " >&6; }
15797 if ${ac_cv_prog_OBJDUMP_FOR_TARGET+:} false; then :
15798 $as_echo_n "(cached) " >&6
15800 if test -n "$OBJDUMP_FOR_TARGET"; then
15801 ac_cv_prog_OBJDUMP_FOR_TARGET="$OBJDUMP_FOR_TARGET" # Let the user override the test.
15803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15804 for as_dir in $PATH
15807 test -z "$as_dir" && as_dir=.
15808 for ac_exec_ext in '' $ac_executable_extensions; do
15809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15810 ac_cv_prog_OBJDUMP_FOR_TARGET="${ncn_progname}"
15811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15820 OBJDUMP_FOR_TARGET=$ac_cv_prog_OBJDUMP_FOR_TARGET
15821 if test -n "$OBJDUMP_FOR_TARGET"; then
15822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP_FOR_TARGET" >&5
15823 $as_echo "$OBJDUMP_FOR_TARGET" >&6; }
15825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15826 $as_echo "no" >&6; }
15831 test -n "$ac_cv_prog_OBJDUMP_FOR_TARGET" && break
15835 if test -z "$ac_cv_prog_OBJDUMP_FOR_TARGET" ; then
15837 if test $build = $target ; then
15838 OBJDUMP_FOR_TARGET="$2"
15840 OBJDUMP_FOR_TARGET="${ncn_target_tool_prefix}$2"
15843 OBJDUMP_FOR_TARGET="$ac_cv_prog_OBJDUMP_FOR_TARGET"
15847 OBJDUMP_FOR_TARGET=$ac_cv_path_OBJDUMP_FOR_TARGET
15853 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15854 if test -n "$with_build_time_tools"; then
15855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for otool in $with_build_time_tools" >&5
15856 $as_echo_n "checking for otool in $with_build_time_tools... " >&6; }
15857 if test -x $with_build_time_tools/otool; then
15858 OTOOL_FOR_TARGET=`cd $with_build_time_tools && pwd`/otool
15859 ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_OTOOL_FOR_TARGET" >&5
15861 $as_echo "$ac_cv_path_OTOOL_FOR_TARGET" >&6; }
15863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15864 $as_echo "no" >&6; }
15866 elif test $build != $host && test $have_gcc_for_target = yes; then
15867 OTOOL_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=otool`
15868 test $OTOOL_FOR_TARGET = otool && OTOOL_FOR_TARGET=
15869 test -n "$OTOOL_FOR_TARGET" && ac_cv_path_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15872 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
15873 # Extract the first word of "otool", so it can be a program name with args.
15874 set dummy otool; ac_word=$2
15875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15876 $as_echo_n "checking for $ac_word... " >&6; }
15877 if ${ac_cv_path_OTOOL_FOR_TARGET+:} false; then :
15878 $as_echo_n "(cached) " >&6
15880 case $OTOOL_FOR_TARGET in
15882 ac_cv_path_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test with a path.
15885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15886 for as_dir in $gcc_cv_tool_dirs
15889 test -z "$as_dir" && as_dir=.
15890 for ac_exec_ext in '' $ac_executable_extensions; do
15891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15892 ac_cv_path_OTOOL_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
15893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15903 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
15904 if test -n "$OTOOL_FOR_TARGET"; then
15905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15906 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15909 $as_echo "no" >&6; }
15914 if test -z "$ac_cv_path_OTOOL_FOR_TARGET" ; then
15917 if test -n "$OTOOL_FOR_TARGET"; then
15918 ac_cv_prog_OTOOL_FOR_TARGET=$OTOOL_FOR_TARGET
15919 elif test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15920 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15923 if test -n "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15924 for ncn_progname in otool; do
15925 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
15926 set dummy ${ncn_progname}; ac_word=$2
15927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15928 $as_echo_n "checking for $ac_word... " >&6; }
15929 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15930 $as_echo_n "(cached) " >&6
15932 if test -n "$OTOOL_FOR_TARGET"; then
15933 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15936 for as_dir in $PATH
15939 test -z "$as_dir" && as_dir=.
15940 for ac_exec_ext in '' $ac_executable_extensions; do
15941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15942 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
15943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15952 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
15953 if test -n "$OTOOL_FOR_TARGET"; then
15954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
15955 $as_echo "$OTOOL_FOR_TARGET" >&6; }
15957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15958 $as_echo "no" >&6; }
15965 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test -n "$with_build_time_tools"; then
15966 for ncn_progname in otool; do
15967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
15968 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
15969 if test -x $with_build_time_tools/${ncn_progname}; then
15970 ac_cv_prog_OTOOL_FOR_TARGET=$with_build_time_tools/${ncn_progname}
15971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15972 $as_echo "yes" >&6; }
15975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15976 $as_echo "no" >&6; }
15981 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET"; then
15982 for ncn_progname in otool; do
15983 if test -n "$ncn_target_tool_prefix"; then
15984 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
15985 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
15986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15987 $as_echo_n "checking for $ac_word... " >&6; }
15988 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
15989 $as_echo_n "(cached) " >&6
15991 if test -n "$OTOOL_FOR_TARGET"; then
15992 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
15994 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15995 for as_dir in $PATH
15998 test -z "$as_dir" && as_dir=.
15999 for ac_exec_ext in '' $ac_executable_extensions; do
16000 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16001 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16011 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16012 if test -n "$OTOOL_FOR_TARGET"; then
16013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16014 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16017 $as_echo "no" >&6; }
16022 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" && test $build = $target ; then
16023 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16024 set dummy ${ncn_progname}; ac_word=$2
16025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16026 $as_echo_n "checking for $ac_word... " >&6; }
16027 if ${ac_cv_prog_OTOOL_FOR_TARGET+:} false; then :
16028 $as_echo_n "(cached) " >&6
16030 if test -n "$OTOOL_FOR_TARGET"; then
16031 ac_cv_prog_OTOOL_FOR_TARGET="$OTOOL_FOR_TARGET" # Let the user override the test.
16033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16034 for as_dir in $PATH
16037 test -z "$as_dir" && as_dir=.
16038 for ac_exec_ext in '' $ac_executable_extensions; do
16039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16040 ac_cv_prog_OTOOL_FOR_TARGET="${ncn_progname}"
16041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16050 OTOOL_FOR_TARGET=$ac_cv_prog_OTOOL_FOR_TARGET
16051 if test -n "$OTOOL_FOR_TARGET"; then
16052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL_FOR_TARGET" >&5
16053 $as_echo "$OTOOL_FOR_TARGET" >&6; }
16055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16056 $as_echo "no" >&6; }
16061 test -n "$ac_cv_prog_OTOOL_FOR_TARGET" && break
16065 if test -z "$ac_cv_prog_OTOOL_FOR_TARGET" ; then
16067 if test $build = $target ; then
16068 OTOOL_FOR_TARGET="$2"
16070 OTOOL_FOR_TARGET="${ncn_target_tool_prefix}$2"
16073 OTOOL_FOR_TARGET="$ac_cv_prog_OTOOL_FOR_TARGET"
16077 OTOOL_FOR_TARGET=$ac_cv_path_OTOOL_FOR_TARGET
16083 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16084 if test -n "$with_build_time_tools"; then
16085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ranlib in $with_build_time_tools" >&5
16086 $as_echo_n "checking for ranlib in $with_build_time_tools... " >&6; }
16087 if test -x $with_build_time_tools/ranlib; then
16088 RANLIB_FOR_TARGET=`cd $with_build_time_tools && pwd`/ranlib
16089 ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_RANLIB_FOR_TARGET" >&5
16091 $as_echo "$ac_cv_path_RANLIB_FOR_TARGET" >&6; }
16093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16094 $as_echo "no" >&6; }
16096 elif test $build != $host && test $have_gcc_for_target = yes; then
16097 RANLIB_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=ranlib`
16098 test $RANLIB_FOR_TARGET = ranlib && RANLIB_FOR_TARGET=
16099 test -n "$RANLIB_FOR_TARGET" && ac_cv_path_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16102 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16103 # Extract the first word of "ranlib", so it can be a program name with args.
16104 set dummy ranlib; ac_word=$2
16105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16106 $as_echo_n "checking for $ac_word... " >&6; }
16107 if ${ac_cv_path_RANLIB_FOR_TARGET+:} false; then :
16108 $as_echo_n "(cached) " >&6
16110 case $RANLIB_FOR_TARGET in
16112 ac_cv_path_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test with a path.
16115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16116 for as_dir in $gcc_cv_tool_dirs
16119 test -z "$as_dir" && as_dir=.
16120 for ac_exec_ext in '' $ac_executable_extensions; do
16121 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16122 ac_cv_path_RANLIB_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16133 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16134 if test -n "$RANLIB_FOR_TARGET"; then
16135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16136 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16139 $as_echo "no" >&6; }
16144 if test -z "$ac_cv_path_RANLIB_FOR_TARGET" ; then
16147 if test -n "$RANLIB_FOR_TARGET"; then
16148 ac_cv_prog_RANLIB_FOR_TARGET=$RANLIB_FOR_TARGET
16149 elif test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16150 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16153 if test -n "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16154 for ncn_progname in ranlib; do
16155 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16156 set dummy ${ncn_progname}; ac_word=$2
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16158 $as_echo_n "checking for $ac_word... " >&6; }
16159 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16160 $as_echo_n "(cached) " >&6
16162 if test -n "$RANLIB_FOR_TARGET"; then
16163 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16166 for as_dir in $PATH
16169 test -z "$as_dir" && as_dir=.
16170 for ac_exec_ext in '' $ac_executable_extensions; do
16171 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16172 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16173 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16182 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16183 if test -n "$RANLIB_FOR_TARGET"; then
16184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16185 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16188 $as_echo "no" >&6; }
16195 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test -n "$with_build_time_tools"; then
16196 for ncn_progname in ranlib; do
16197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16198 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16199 if test -x $with_build_time_tools/${ncn_progname}; then
16200 ac_cv_prog_RANLIB_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16202 $as_echo "yes" >&6; }
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16206 $as_echo "no" >&6; }
16211 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET"; then
16212 for ncn_progname in ranlib; do
16213 if test -n "$ncn_target_tool_prefix"; then
16214 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16215 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16217 $as_echo_n "checking for $ac_word... " >&6; }
16218 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16219 $as_echo_n "(cached) " >&6
16221 if test -n "$RANLIB_FOR_TARGET"; then
16222 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16225 for as_dir in $PATH
16228 test -z "$as_dir" && as_dir=.
16229 for ac_exec_ext in '' $ac_executable_extensions; do
16230 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16231 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16232 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16241 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16242 if test -n "$RANLIB_FOR_TARGET"; then
16243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16244 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16247 $as_echo "no" >&6; }
16252 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" && test $build = $target ; then
16253 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16254 set dummy ${ncn_progname}; ac_word=$2
16255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16256 $as_echo_n "checking for $ac_word... " >&6; }
16257 if ${ac_cv_prog_RANLIB_FOR_TARGET+:} false; then :
16258 $as_echo_n "(cached) " >&6
16260 if test -n "$RANLIB_FOR_TARGET"; then
16261 ac_cv_prog_RANLIB_FOR_TARGET="$RANLIB_FOR_TARGET" # Let the user override the test.
16263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16264 for as_dir in $PATH
16267 test -z "$as_dir" && as_dir=.
16268 for ac_exec_ext in '' $ac_executable_extensions; do
16269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16270 ac_cv_prog_RANLIB_FOR_TARGET="${ncn_progname}"
16271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16280 RANLIB_FOR_TARGET=$ac_cv_prog_RANLIB_FOR_TARGET
16281 if test -n "$RANLIB_FOR_TARGET"; then
16282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB_FOR_TARGET" >&5
16283 $as_echo "$RANLIB_FOR_TARGET" >&6; }
16285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16286 $as_echo "no" >&6; }
16291 test -n "$ac_cv_prog_RANLIB_FOR_TARGET" && break
16295 if test -z "$ac_cv_prog_RANLIB_FOR_TARGET" ; then
16297 if test $build = $target ; then
16298 RANLIB_FOR_TARGET="$2"
16300 RANLIB_FOR_TARGET="${ncn_target_tool_prefix}$2"
16303 RANLIB_FOR_TARGET="$ac_cv_prog_RANLIB_FOR_TARGET"
16307 RANLIB_FOR_TARGET=$ac_cv_path_RANLIB_FOR_TARGET
16313 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16314 if test -n "$with_build_time_tools"; then
16315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readelf in $with_build_time_tools" >&5
16316 $as_echo_n "checking for readelf in $with_build_time_tools... " >&6; }
16317 if test -x $with_build_time_tools/readelf; then
16318 READELF_FOR_TARGET=`cd $with_build_time_tools && pwd`/readelf
16319 ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_READELF_FOR_TARGET" >&5
16321 $as_echo "$ac_cv_path_READELF_FOR_TARGET" >&6; }
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16324 $as_echo "no" >&6; }
16326 elif test $build != $host && test $have_gcc_for_target = yes; then
16327 READELF_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=readelf`
16328 test $READELF_FOR_TARGET = readelf && READELF_FOR_TARGET=
16329 test -n "$READELF_FOR_TARGET" && ac_cv_path_READELF_FOR_TARGET=$READELF_FOR_TARGET
16332 if test -z "$ac_cv_path_READELF_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16333 # Extract the first word of "readelf", so it can be a program name with args.
16334 set dummy readelf; ac_word=$2
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16336 $as_echo_n "checking for $ac_word... " >&6; }
16337 if ${ac_cv_path_READELF_FOR_TARGET+:} false; then :
16338 $as_echo_n "(cached) " >&6
16340 case $READELF_FOR_TARGET in
16342 ac_cv_path_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test with a path.
16345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16346 for as_dir in $gcc_cv_tool_dirs
16349 test -z "$as_dir" && as_dir=.
16350 for ac_exec_ext in '' $ac_executable_extensions; do
16351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16352 ac_cv_path_READELF_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16363 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16364 if test -n "$READELF_FOR_TARGET"; then
16365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16366 $as_echo "$READELF_FOR_TARGET" >&6; }
16368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16369 $as_echo "no" >&6; }
16374 if test -z "$ac_cv_path_READELF_FOR_TARGET" ; then
16377 if test -n "$READELF_FOR_TARGET"; then
16378 ac_cv_prog_READELF_FOR_TARGET=$READELF_FOR_TARGET
16379 elif test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16380 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16383 if test -n "$ac_cv_prog_READELF_FOR_TARGET"; then
16384 for ncn_progname in readelf; do
16385 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16386 set dummy ${ncn_progname}; ac_word=$2
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16388 $as_echo_n "checking for $ac_word... " >&6; }
16389 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16390 $as_echo_n "(cached) " >&6
16392 if test -n "$READELF_FOR_TARGET"; then
16393 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16395 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16396 for as_dir in $PATH
16399 test -z "$as_dir" && as_dir=.
16400 for ac_exec_ext in '' $ac_executable_extensions; do
16401 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16402 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16403 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16412 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16413 if test -n "$READELF_FOR_TARGET"; then
16414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16415 $as_echo "$READELF_FOR_TARGET" >&6; }
16417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16418 $as_echo "no" >&6; }
16425 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test -n "$with_build_time_tools"; then
16426 for ncn_progname in readelf; do
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16428 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16429 if test -x $with_build_time_tools/${ncn_progname}; then
16430 ac_cv_prog_READELF_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16432 $as_echo "yes" >&6; }
16435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16436 $as_echo "no" >&6; }
16441 if test -z "$ac_cv_prog_READELF_FOR_TARGET"; then
16442 for ncn_progname in readelf; do
16443 if test -n "$ncn_target_tool_prefix"; then
16444 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16445 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16447 $as_echo_n "checking for $ac_word... " >&6; }
16448 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16449 $as_echo_n "(cached) " >&6
16451 if test -n "$READELF_FOR_TARGET"; then
16452 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16455 for as_dir in $PATH
16458 test -z "$as_dir" && as_dir=.
16459 for ac_exec_ext in '' $ac_executable_extensions; do
16460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16461 ac_cv_prog_READELF_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16471 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16472 if test -n "$READELF_FOR_TARGET"; then
16473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16474 $as_echo "$READELF_FOR_TARGET" >&6; }
16476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16477 $as_echo "no" >&6; }
16482 if test -z "$ac_cv_prog_READELF_FOR_TARGET" && test $build = $target ; then
16483 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16484 set dummy ${ncn_progname}; ac_word=$2
16485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16486 $as_echo_n "checking for $ac_word... " >&6; }
16487 if ${ac_cv_prog_READELF_FOR_TARGET+:} false; then :
16488 $as_echo_n "(cached) " >&6
16490 if test -n "$READELF_FOR_TARGET"; then
16491 ac_cv_prog_READELF_FOR_TARGET="$READELF_FOR_TARGET" # Let the user override the test.
16493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16494 for as_dir in $PATH
16497 test -z "$as_dir" && as_dir=.
16498 for ac_exec_ext in '' $ac_executable_extensions; do
16499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16500 ac_cv_prog_READELF_FOR_TARGET="${ncn_progname}"
16501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16510 READELF_FOR_TARGET=$ac_cv_prog_READELF_FOR_TARGET
16511 if test -n "$READELF_FOR_TARGET"; then
16512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF_FOR_TARGET" >&5
16513 $as_echo "$READELF_FOR_TARGET" >&6; }
16515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16516 $as_echo "no" >&6; }
16521 test -n "$ac_cv_prog_READELF_FOR_TARGET" && break
16525 if test -z "$ac_cv_prog_READELF_FOR_TARGET" ; then
16527 if test $build = $target ; then
16528 READELF_FOR_TARGET="$2"
16530 READELF_FOR_TARGET="${ncn_target_tool_prefix}$2"
16533 READELF_FOR_TARGET="$ac_cv_prog_READELF_FOR_TARGET"
16537 READELF_FOR_TARGET=$ac_cv_path_READELF_FOR_TARGET
16543 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16544 if test -n "$with_build_time_tools"; then
16545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strip in $with_build_time_tools" >&5
16546 $as_echo_n "checking for strip in $with_build_time_tools... " >&6; }
16547 if test -x $with_build_time_tools/strip; then
16548 STRIP_FOR_TARGET=`cd $with_build_time_tools && pwd`/strip
16549 ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_STRIP_FOR_TARGET" >&5
16551 $as_echo "$ac_cv_path_STRIP_FOR_TARGET" >&6; }
16553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16554 $as_echo "no" >&6; }
16556 elif test $build != $host && test $have_gcc_for_target = yes; then
16557 STRIP_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=strip`
16558 test $STRIP_FOR_TARGET = strip && STRIP_FOR_TARGET=
16559 test -n "$STRIP_FOR_TARGET" && ac_cv_path_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16562 if test -z "$ac_cv_path_STRIP_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16563 # Extract the first word of "strip", so it can be a program name with args.
16564 set dummy strip; ac_word=$2
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16566 $as_echo_n "checking for $ac_word... " >&6; }
16567 if ${ac_cv_path_STRIP_FOR_TARGET+:} false; then :
16568 $as_echo_n "(cached) " >&6
16570 case $STRIP_FOR_TARGET in
16572 ac_cv_path_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test with a path.
16575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16576 for as_dir in $gcc_cv_tool_dirs
16579 test -z "$as_dir" && as_dir=.
16580 for ac_exec_ext in '' $ac_executable_extensions; do
16581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16582 ac_cv_path_STRIP_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16593 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16594 if test -n "$STRIP_FOR_TARGET"; then
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16596 $as_echo "$STRIP_FOR_TARGET" >&6; }
16598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16599 $as_echo "no" >&6; }
16604 if test -z "$ac_cv_path_STRIP_FOR_TARGET" ; then
16607 if test -n "$STRIP_FOR_TARGET"; then
16608 ac_cv_prog_STRIP_FOR_TARGET=$STRIP_FOR_TARGET
16609 elif test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16610 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16613 if test -n "$ac_cv_prog_STRIP_FOR_TARGET"; then
16614 for ncn_progname in strip; do
16615 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16616 set dummy ${ncn_progname}; ac_word=$2
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16618 $as_echo_n "checking for $ac_word... " >&6; }
16619 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16620 $as_echo_n "(cached) " >&6
16622 if test -n "$STRIP_FOR_TARGET"; then
16623 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16626 for as_dir in $PATH
16629 test -z "$as_dir" && as_dir=.
16630 for ac_exec_ext in '' $ac_executable_extensions; do
16631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16632 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16642 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16643 if test -n "$STRIP_FOR_TARGET"; then
16644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16645 $as_echo "$STRIP_FOR_TARGET" >&6; }
16647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16648 $as_echo "no" >&6; }
16655 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test -n "$with_build_time_tools"; then
16656 for ncn_progname in strip; do
16657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16658 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16659 if test -x $with_build_time_tools/${ncn_progname}; then
16660 ac_cv_prog_STRIP_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16662 $as_echo "yes" >&6; }
16665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16666 $as_echo "no" >&6; }
16671 if test -z "$ac_cv_prog_STRIP_FOR_TARGET"; then
16672 for ncn_progname in strip; do
16673 if test -n "$ncn_target_tool_prefix"; then
16674 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16675 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16677 $as_echo_n "checking for $ac_word... " >&6; }
16678 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16679 $as_echo_n "(cached) " >&6
16681 if test -n "$STRIP_FOR_TARGET"; then
16682 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16685 for as_dir in $PATH
16688 test -z "$as_dir" && as_dir=.
16689 for ac_exec_ext in '' $ac_executable_extensions; do
16690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16691 ac_cv_prog_STRIP_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16701 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16702 if test -n "$STRIP_FOR_TARGET"; then
16703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16704 $as_echo "$STRIP_FOR_TARGET" >&6; }
16706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16707 $as_echo "no" >&6; }
16712 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" && test $build = $target ; then
16713 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16714 set dummy ${ncn_progname}; ac_word=$2
16715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16716 $as_echo_n "checking for $ac_word... " >&6; }
16717 if ${ac_cv_prog_STRIP_FOR_TARGET+:} false; then :
16718 $as_echo_n "(cached) " >&6
16720 if test -n "$STRIP_FOR_TARGET"; then
16721 ac_cv_prog_STRIP_FOR_TARGET="$STRIP_FOR_TARGET" # Let the user override the test.
16723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16724 for as_dir in $PATH
16727 test -z "$as_dir" && as_dir=.
16728 for ac_exec_ext in '' $ac_executable_extensions; do
16729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16730 ac_cv_prog_STRIP_FOR_TARGET="${ncn_progname}"
16731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16740 STRIP_FOR_TARGET=$ac_cv_prog_STRIP_FOR_TARGET
16741 if test -n "$STRIP_FOR_TARGET"; then
16742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP_FOR_TARGET" >&5
16743 $as_echo "$STRIP_FOR_TARGET" >&6; }
16745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16746 $as_echo "no" >&6; }
16751 test -n "$ac_cv_prog_STRIP_FOR_TARGET" && break
16755 if test -z "$ac_cv_prog_STRIP_FOR_TARGET" ; then
16757 if test $build = $target ; then
16758 STRIP_FOR_TARGET="$2"
16760 STRIP_FOR_TARGET="${ncn_target_tool_prefix}$2"
16763 STRIP_FOR_TARGET="$ac_cv_prog_STRIP_FOR_TARGET"
16767 STRIP_FOR_TARGET=$ac_cv_path_STRIP_FOR_TARGET
16773 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16774 if test -n "$with_build_time_tools"; then
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windres in $with_build_time_tools" >&5
16776 $as_echo_n "checking for windres in $with_build_time_tools... " >&6; }
16777 if test -x $with_build_time_tools/windres; then
16778 WINDRES_FOR_TARGET=`cd $with_build_time_tools && pwd`/windres
16779 ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDRES_FOR_TARGET" >&5
16781 $as_echo "$ac_cv_path_WINDRES_FOR_TARGET" >&6; }
16783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16784 $as_echo "no" >&6; }
16786 elif test $build != $host && test $have_gcc_for_target = yes; then
16787 WINDRES_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windres`
16788 test $WINDRES_FOR_TARGET = windres && WINDRES_FOR_TARGET=
16789 test -n "$WINDRES_FOR_TARGET" && ac_cv_path_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16792 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
16793 # Extract the first word of "windres", so it can be a program name with args.
16794 set dummy windres; ac_word=$2
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16796 $as_echo_n "checking for $ac_word... " >&6; }
16797 if ${ac_cv_path_WINDRES_FOR_TARGET+:} false; then :
16798 $as_echo_n "(cached) " >&6
16800 case $WINDRES_FOR_TARGET in
16802 ac_cv_path_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test with a path.
16805 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16806 for as_dir in $gcc_cv_tool_dirs
16809 test -z "$as_dir" && as_dir=.
16810 for ac_exec_ext in '' $ac_executable_extensions; do
16811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16812 ac_cv_path_WINDRES_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
16813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16823 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
16824 if test -n "$WINDRES_FOR_TARGET"; then
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16826 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16829 $as_echo "no" >&6; }
16834 if test -z "$ac_cv_path_WINDRES_FOR_TARGET" ; then
16837 if test -n "$WINDRES_FOR_TARGET"; then
16838 ac_cv_prog_WINDRES_FOR_TARGET=$WINDRES_FOR_TARGET
16839 elif test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16840 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16843 if test -n "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16844 for ncn_progname in windres; do
16845 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16846 set dummy ${ncn_progname}; ac_word=$2
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16848 $as_echo_n "checking for $ac_word... " >&6; }
16849 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16850 $as_echo_n "(cached) " >&6
16852 if test -n "$WINDRES_FOR_TARGET"; then
16853 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16855 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16856 for as_dir in $PATH
16859 test -z "$as_dir" && as_dir=.
16860 for ac_exec_ext in '' $ac_executable_extensions; do
16861 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16862 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16863 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16872 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16873 if test -n "$WINDRES_FOR_TARGET"; then
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16875 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16878 $as_echo "no" >&6; }
16885 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test -n "$with_build_time_tools"; then
16886 for ncn_progname in windres; do
16887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
16888 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
16889 if test -x $with_build_time_tools/${ncn_progname}; then
16890 ac_cv_prog_WINDRES_FOR_TARGET=$with_build_time_tools/${ncn_progname}
16891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16892 $as_echo "yes" >&6; }
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16896 $as_echo "no" >&6; }
16901 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET"; then
16902 for ncn_progname in windres; do
16903 if test -n "$ncn_target_tool_prefix"; then
16904 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
16905 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
16906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16907 $as_echo_n "checking for $ac_word... " >&6; }
16908 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16909 $as_echo_n "(cached) " >&6
16911 if test -n "$WINDRES_FOR_TARGET"; then
16912 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16915 for as_dir in $PATH
16918 test -z "$as_dir" && as_dir=.
16919 for ac_exec_ext in '' $ac_executable_extensions; do
16920 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16921 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
16922 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16931 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16932 if test -n "$WINDRES_FOR_TARGET"; then
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16934 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16937 $as_echo "no" >&6; }
16942 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" && test $build = $target ; then
16943 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
16944 set dummy ${ncn_progname}; ac_word=$2
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16946 $as_echo_n "checking for $ac_word... " >&6; }
16947 if ${ac_cv_prog_WINDRES_FOR_TARGET+:} false; then :
16948 $as_echo_n "(cached) " >&6
16950 if test -n "$WINDRES_FOR_TARGET"; then
16951 ac_cv_prog_WINDRES_FOR_TARGET="$WINDRES_FOR_TARGET" # Let the user override the test.
16953 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16954 for as_dir in $PATH
16957 test -z "$as_dir" && as_dir=.
16958 for ac_exec_ext in '' $ac_executable_extensions; do
16959 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16960 ac_cv_prog_WINDRES_FOR_TARGET="${ncn_progname}"
16961 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16970 WINDRES_FOR_TARGET=$ac_cv_prog_WINDRES_FOR_TARGET
16971 if test -n "$WINDRES_FOR_TARGET"; then
16972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES_FOR_TARGET" >&5
16973 $as_echo "$WINDRES_FOR_TARGET" >&6; }
16975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16976 $as_echo "no" >&6; }
16981 test -n "$ac_cv_prog_WINDRES_FOR_TARGET" && break
16985 if test -z "$ac_cv_prog_WINDRES_FOR_TARGET" ; then
16987 if test $build = $target ; then
16988 WINDRES_FOR_TARGET="$2"
16990 WINDRES_FOR_TARGET="${ncn_target_tool_prefix}$2"
16993 WINDRES_FOR_TARGET="$ac_cv_prog_WINDRES_FOR_TARGET"
16997 WINDRES_FOR_TARGET=$ac_cv_path_WINDRES_FOR_TARGET
17003 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17004 if test -n "$with_build_time_tools"; then
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for windmc in $with_build_time_tools" >&5
17006 $as_echo_n "checking for windmc in $with_build_time_tools... " >&6; }
17007 if test -x $with_build_time_tools/windmc; then
17008 WINDMC_FOR_TARGET=`cd $with_build_time_tools && pwd`/windmc
17009 ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_WINDMC_FOR_TARGET" >&5
17011 $as_echo "$ac_cv_path_WINDMC_FOR_TARGET" >&6; }
17013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17014 $as_echo "no" >&6; }
17016 elif test $build != $host && test $have_gcc_for_target = yes; then
17017 WINDMC_FOR_TARGET=`$GCC_FOR_TARGET --print-prog-name=windmc`
17018 test $WINDMC_FOR_TARGET = windmc && WINDMC_FOR_TARGET=
17019 test -n "$WINDMC_FOR_TARGET" && ac_cv_path_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17022 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" && test -n "$gcc_cv_tool_dirs"; then
17023 # Extract the first word of "windmc", so it can be a program name with args.
17024 set dummy windmc; ac_word=$2
17025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17026 $as_echo_n "checking for $ac_word... " >&6; }
17027 if ${ac_cv_path_WINDMC_FOR_TARGET+:} false; then :
17028 $as_echo_n "(cached) " >&6
17030 case $WINDMC_FOR_TARGET in
17032 ac_cv_path_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test with a path.
17035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17036 for as_dir in $gcc_cv_tool_dirs
17039 test -z "$as_dir" && as_dir=.
17040 for ac_exec_ext in '' $ac_executable_extensions; do
17041 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17042 ac_cv_path_WINDMC_FOR_TARGET="$as_dir/$ac_word$ac_exec_ext"
17043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17053 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17054 if test -n "$WINDMC_FOR_TARGET"; then
17055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17056 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17059 $as_echo "no" >&6; }
17064 if test -z "$ac_cv_path_WINDMC_FOR_TARGET" ; then
17067 if test -n "$WINDMC_FOR_TARGET"; then
17068 ac_cv_prog_WINDMC_FOR_TARGET=$WINDMC_FOR_TARGET
17069 elif test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17070 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17073 if test -n "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17074 for ncn_progname in windmc; do
17075 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17076 set dummy ${ncn_progname}; ac_word=$2
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17078 $as_echo_n "checking for $ac_word... " >&6; }
17079 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17080 $as_echo_n "(cached) " >&6
17082 if test -n "$WINDMC_FOR_TARGET"; then
17083 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17085 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17086 for as_dir in $PATH
17089 test -z "$as_dir" && as_dir=.
17090 for ac_exec_ext in '' $ac_executable_extensions; do
17091 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17092 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17093 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17102 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17103 if test -n "$WINDMC_FOR_TARGET"; then
17104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17105 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17108 $as_echo "no" >&6; }
17115 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test -n "$with_build_time_tools"; then
17116 for ncn_progname in windmc; do
17117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ncn_progname} in $with_build_time_tools" >&5
17118 $as_echo_n "checking for ${ncn_progname} in $with_build_time_tools... " >&6; }
17119 if test -x $with_build_time_tools/${ncn_progname}; then
17120 ac_cv_prog_WINDMC_FOR_TARGET=$with_build_time_tools/${ncn_progname}
17121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17122 $as_echo "yes" >&6; }
17125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17126 $as_echo "no" >&6; }
17131 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET"; then
17132 for ncn_progname in windmc; do
17133 if test -n "$ncn_target_tool_prefix"; then
17134 # Extract the first word of "${ncn_target_tool_prefix}${ncn_progname}", so it can be a program name with args.
17135 set dummy ${ncn_target_tool_prefix}${ncn_progname}; ac_word=$2
17136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17137 $as_echo_n "checking for $ac_word... " >&6; }
17138 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17139 $as_echo_n "(cached) " >&6
17141 if test -n "$WINDMC_FOR_TARGET"; then
17142 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17144 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17145 for as_dir in $PATH
17148 test -z "$as_dir" && as_dir=.
17149 for ac_exec_ext in '' $ac_executable_extensions; do
17150 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17151 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_target_tool_prefix}${ncn_progname}"
17152 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17161 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17162 if test -n "$WINDMC_FOR_TARGET"; then
17163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17164 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17167 $as_echo "no" >&6; }
17172 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" && test $build = $target ; then
17173 # Extract the first word of "${ncn_progname}", so it can be a program name with args.
17174 set dummy ${ncn_progname}; ac_word=$2
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
17176 $as_echo_n "checking for $ac_word... " >&6; }
17177 if ${ac_cv_prog_WINDMC_FOR_TARGET+:} false; then :
17178 $as_echo_n "(cached) " >&6
17180 if test -n "$WINDMC_FOR_TARGET"; then
17181 ac_cv_prog_WINDMC_FOR_TARGET="$WINDMC_FOR_TARGET" # Let the user override the test.
17183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17184 for as_dir in $PATH
17187 test -z "$as_dir" && as_dir=.
17188 for ac_exec_ext in '' $ac_executable_extensions; do
17189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17190 ac_cv_prog_WINDMC_FOR_TARGET="${ncn_progname}"
17191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
17200 WINDMC_FOR_TARGET=$ac_cv_prog_WINDMC_FOR_TARGET
17201 if test -n "$WINDMC_FOR_TARGET"; then
17202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC_FOR_TARGET" >&5
17203 $as_echo "$WINDMC_FOR_TARGET" >&6; }
17205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17206 $as_echo "no" >&6; }
17211 test -n "$ac_cv_prog_WINDMC_FOR_TARGET" && break
17215 if test -z "$ac_cv_prog_WINDMC_FOR_TARGET" ; then
17217 if test $build = $target ; then
17218 WINDMC_FOR_TARGET="$2"
17220 WINDMC_FOR_TARGET="${ncn_target_tool_prefix}$2"
17223 WINDMC_FOR_TARGET="$ac_cv_prog_WINDMC_FOR_TARGET"
17227 WINDMC_FOR_TARGET=$ac_cv_path_WINDMC_FOR_TARGET
17231 RAW_CXX_FOR_TARGET="$CXX_FOR_TARGET"
17233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ar" >&5
17234 $as_echo_n "checking where to find the target ar... " >&6; }
17235 if test "x${build}" != "x${host}" ; then
17236 if expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17237 # We already found the complete path
17238 ac_dir=`dirname $AR_FOR_TARGET`
17239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17240 $as_echo "pre-installed in $ac_dir" >&6; }
17242 # Canadian cross, just use what we found
17243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17244 $as_echo "pre-installed" >&6; }
17248 case " ${configdirs} " in
17253 if test $ok = yes; then
17254 # An in-tree tool is available and we can use it
17255 AR_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ar'
17256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17257 $as_echo "just compiled" >&6; }
17258 elif expr "x$AR_FOR_TARGET" : "x/" > /dev/null; then
17259 # We already found the complete path
17260 ac_dir=`dirname $AR_FOR_TARGET`
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17262 $as_echo "pre-installed in $ac_dir" >&6; }
17263 elif test "x$target" = "x$host"; then
17264 # We can use an host tool
17265 AR_FOR_TARGET='$(AR)'
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17267 $as_echo "host tool" >&6; }
17269 # We need a cross tool
17270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17271 $as_echo "pre-installed" >&6; }
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target as" >&5
17276 $as_echo_n "checking where to find the target as... " >&6; }
17277 if test "x${build}" != "x${host}" ; then
17278 if expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17279 # We already found the complete path
17280 ac_dir=`dirname $AS_FOR_TARGET`
17281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17282 $as_echo "pre-installed in $ac_dir" >&6; }
17284 # Canadian cross, just use what we found
17285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17286 $as_echo "pre-installed" >&6; }
17290 case " ${configdirs} " in
17295 if test $ok = yes; then
17296 # An in-tree tool is available and we can use it
17297 AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gas/as-new'
17298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17299 $as_echo "just compiled" >&6; }
17300 elif expr "x$AS_FOR_TARGET" : "x/" > /dev/null; then
17301 # We already found the complete path
17302 ac_dir=`dirname $AS_FOR_TARGET`
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17304 $as_echo "pre-installed in $ac_dir" >&6; }
17305 elif test "x$target" = "x$host"; then
17306 # We can use an host tool
17307 AS_FOR_TARGET='$(AS)'
17308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17309 $as_echo "host tool" >&6; }
17311 # We need a cross tool
17312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17313 $as_echo "pre-installed" >&6; }
17317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target cc" >&5
17318 $as_echo_n "checking where to find the target cc... " >&6; }
17319 if test "x${build}" != "x${host}" ; then
17320 if expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17321 # We already found the complete path
17322 ac_dir=`dirname $CC_FOR_TARGET`
17323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17324 $as_echo "pre-installed in $ac_dir" >&6; }
17326 # Canadian cross, just use what we found
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17328 $as_echo "pre-installed" >&6; }
17332 case " ${configdirs} " in
17337 if test $ok = yes; then
17338 # An in-tree tool is available and we can use it
17339 CC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17341 $as_echo "just compiled" >&6; }
17342 elif expr "x$CC_FOR_TARGET" : "x/" > /dev/null; then
17343 # We already found the complete path
17344 ac_dir=`dirname $CC_FOR_TARGET`
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17346 $as_echo "pre-installed in $ac_dir" >&6; }
17347 elif test "x$target" = "x$host"; then
17348 # We can use an host tool
17349 CC_FOR_TARGET='$(CC)'
17350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17351 $as_echo "host tool" >&6; }
17353 # We need a cross tool
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17355 $as_echo "pre-installed" >&6; }
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++" >&5
17360 $as_echo_n "checking where to find the target c++... " >&6; }
17361 if test "x${build}" != "x${host}" ; then
17362 if expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17363 # We already found the complete path
17364 ac_dir=`dirname $CXX_FOR_TARGET`
17365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17366 $as_echo "pre-installed in $ac_dir" >&6; }
17368 # Canadian cross, just use what we found
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17370 $as_echo "pre-installed" >&6; }
17374 case " ${configdirs} " in
17378 case ,${enable_languages}, in
17382 if test $ok = yes; then
17383 # An in-tree tool is available and we can use it
17384 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'
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17386 $as_echo "just compiled" >&6; }
17387 elif expr "x$CXX_FOR_TARGET" : "x/" > /dev/null; then
17388 # We already found the complete path
17389 ac_dir=`dirname $CXX_FOR_TARGET`
17390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17391 $as_echo "pre-installed in $ac_dir" >&6; }
17392 elif test "x$target" = "x$host"; then
17393 # We can use an host tool
17394 CXX_FOR_TARGET='$(CXX)'
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17396 $as_echo "host tool" >&6; }
17398 # We need a cross tool
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17400 $as_echo "pre-installed" >&6; }
17404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target c++ for libstdc++" >&5
17405 $as_echo_n "checking where to find the target c++ for libstdc++... " >&6; }
17406 if test "x${build}" != "x${host}" ; then
17407 if expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17408 # We already found the complete path
17409 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17411 $as_echo "pre-installed in $ac_dir" >&6; }
17413 # Canadian cross, just use what we found
17414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17415 $as_echo "pre-installed" >&6; }
17419 case " ${configdirs} " in
17423 case ,${enable_languages}, in
17427 if test $ok = yes; then
17428 # An in-tree tool is available and we can use it
17429 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'
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17431 $as_echo "just compiled" >&6; }
17432 elif expr "x$RAW_CXX_FOR_TARGET" : "x/" > /dev/null; then
17433 # We already found the complete path
17434 ac_dir=`dirname $RAW_CXX_FOR_TARGET`
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17436 $as_echo "pre-installed in $ac_dir" >&6; }
17437 elif test "x$target" = "x$host"; then
17438 # We can use an host tool
17439 RAW_CXX_FOR_TARGET='$(CXX)'
17440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17441 $as_echo "host tool" >&6; }
17443 # We need a cross tool
17444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17445 $as_echo "pre-installed" >&6; }
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dlltool" >&5
17450 $as_echo_n "checking where to find the target dlltool... " >&6; }
17451 if test "x${build}" != "x${host}" ; then
17452 if expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17453 # We already found the complete path
17454 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17456 $as_echo "pre-installed in $ac_dir" >&6; }
17458 # Canadian cross, just use what we found
17459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17460 $as_echo "pre-installed" >&6; }
17464 case " ${configdirs} " in
17469 if test $ok = yes; then
17470 # An in-tree tool is available and we can use it
17471 DLLTOOL_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/dlltool'
17472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17473 $as_echo "just compiled" >&6; }
17474 elif expr "x$DLLTOOL_FOR_TARGET" : "x/" > /dev/null; then
17475 # We already found the complete path
17476 ac_dir=`dirname $DLLTOOL_FOR_TARGET`
17477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17478 $as_echo "pre-installed in $ac_dir" >&6; }
17479 elif test "x$target" = "x$host"; then
17480 # We can use an host tool
17481 DLLTOOL_FOR_TARGET='$(DLLTOOL)'
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17483 $as_echo "host tool" >&6; }
17485 # We need a cross tool
17486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17487 $as_echo "pre-installed" >&6; }
17491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target dsymutil" >&5
17492 $as_echo_n "checking where to find the target dsymutil... " >&6; }
17493 if test "x${build}" != "x${host}" ; then
17494 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17495 # We already found the complete path
17496 ac_dir=`dirname $DSYMUTIL_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; }
17500 # Canadian cross, just use what we found
17501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17502 $as_echo "pre-installed" >&6; }
17505 if expr "x$DSYMUTIL_FOR_TARGET" : "x/" > /dev/null; then
17506 # We already found the complete path
17507 ac_dir=`dirname $DSYMUTIL_FOR_TARGET`
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17509 $as_echo "pre-installed in $ac_dir" >&6; }
17510 elif test "x$target" = "x$host"; then
17511 # We can use an host tool
17512 DSYMUTIL_FOR_TARGET='$(DSYMUTIL)'
17513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17514 $as_echo "host tool" >&6; }
17516 # We need a cross tool
17517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17518 $as_echo "pre-installed" >&6; }
17522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gcc" >&5
17523 $as_echo_n "checking where to find the target gcc... " >&6; }
17524 if test "x${build}" != "x${host}" ; then
17525 if expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17526 # We already found the complete path
17527 ac_dir=`dirname $GCC_FOR_TARGET`
17528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17529 $as_echo "pre-installed in $ac_dir" >&6; }
17531 # Canadian cross, just use what we found
17532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17533 $as_echo "pre-installed" >&6; }
17537 case " ${configdirs} " in
17542 if test $ok = yes; then
17543 # An in-tree tool is available and we can use it
17544 GCC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/xgcc -B$$r/$(HOST_SUBDIR)/gcc/'
17545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17546 $as_echo "just compiled" >&6; }
17547 elif expr "x$GCC_FOR_TARGET" : "x/" > /dev/null; then
17548 # We already found the complete path
17549 ac_dir=`dirname $GCC_FOR_TARGET`
17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17551 $as_echo "pre-installed in $ac_dir" >&6; }
17552 elif test "x$target" = "x$host"; then
17553 # We can use an host tool
17554 GCC_FOR_TARGET='$()'
17555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17556 $as_echo "host tool" >&6; }
17558 # We need a cross tool
17559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17560 $as_echo "pre-installed" >&6; }
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gfortran" >&5
17565 $as_echo_n "checking where to find the target gfortran... " >&6; }
17566 if test "x${build}" != "x${host}" ; then
17567 if expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17568 # We already found the complete path
17569 ac_dir=`dirname $GFORTRAN_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; }
17573 # Canadian cross, just use what we found
17574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17575 $as_echo "pre-installed" >&6; }
17579 case " ${configdirs} " in
17583 case ,${enable_languages}, in
17587 if test $ok = yes; then
17588 # An in-tree tool is available and we can use it
17589 GFORTRAN_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gfortran -B$$r/$(HOST_SUBDIR)/gcc/'
17590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17591 $as_echo "just compiled" >&6; }
17592 elif expr "x$GFORTRAN_FOR_TARGET" : "x/" > /dev/null; then
17593 # We already found the complete path
17594 ac_dir=`dirname $GFORTRAN_FOR_TARGET`
17595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17596 $as_echo "pre-installed in $ac_dir" >&6; }
17597 elif test "x$target" = "x$host"; then
17598 # We can use an host tool
17599 GFORTRAN_FOR_TARGET='$(GFORTRAN)'
17600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17601 $as_echo "host tool" >&6; }
17603 # We need a cross tool
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17605 $as_echo "pre-installed" >&6; }
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gccgo" >&5
17610 $as_echo_n "checking where to find the target gccgo... " >&6; }
17611 if test "x${build}" != "x${host}" ; then
17612 if expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17613 # We already found the complete path
17614 ac_dir=`dirname $GOC_FOR_TARGET`
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17616 $as_echo "pre-installed in $ac_dir" >&6; }
17618 # Canadian cross, just use what we found
17619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17620 $as_echo "pre-installed" >&6; }
17624 case " ${configdirs} " in
17628 case ,${enable_languages}, in
17632 if test $ok = yes; then
17633 # An in-tree tool is available and we can use it
17634 GOC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gccgo -B$$r/$(HOST_SUBDIR)/gcc/'
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17636 $as_echo "just compiled" >&6; }
17637 elif expr "x$GOC_FOR_TARGET" : "x/" > /dev/null; then
17638 # We already found the complete path
17639 ac_dir=`dirname $GOC_FOR_TARGET`
17640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17641 $as_echo "pre-installed in $ac_dir" >&6; }
17642 elif test "x$target" = "x$host"; then
17643 # We can use an host tool
17644 GOC_FOR_TARGET='$(GOC)'
17645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17646 $as_echo "host tool" >&6; }
17648 # We need a cross tool
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17650 $as_echo "pre-installed" >&6; }
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target gdc" >&5
17655 $as_echo_n "checking where to find the target gdc... " >&6; }
17656 if test "x${build}" != "x${host}" ; then
17657 if expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17658 # We already found the complete path
17659 ac_dir=`dirname $GDC_FOR_TARGET`
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17661 $as_echo "pre-installed in $ac_dir" >&6; }
17663 # Canadian cross, just use what we found
17664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17665 $as_echo "pre-installed" >&6; }
17669 case " ${configdirs} " in
17673 case ,${enable_languages}, in
17677 if test $ok = yes; then
17678 # An in-tree tool is available and we can use it
17679 GDC_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/gdc -B$$r/$(HOST_SUBDIR)/gcc/'
17680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17681 $as_echo "just compiled" >&6; }
17682 elif expr "x$GDC_FOR_TARGET" : "x/" > /dev/null; then
17683 # We already found the complete path
17684 ac_dir=`dirname $GDC_FOR_TARGET`
17685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17686 $as_echo "pre-installed in $ac_dir" >&6; }
17687 elif test "x$target" = "x$host"; then
17688 # We can use an host tool
17689 GDC_FOR_TARGET='$(GDC)'
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17691 $as_echo "host tool" >&6; }
17693 # We need a cross tool
17694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17695 $as_echo "pre-installed" >&6; }
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ld" >&5
17700 $as_echo_n "checking where to find the target ld... " >&6; }
17701 if test "x${build}" != "x${host}" ; then
17702 if expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17703 # We already found the complete path
17704 ac_dir=`dirname $LD_FOR_TARGET`
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17706 $as_echo "pre-installed in $ac_dir" >&6; }
17708 # Canadian cross, just use what we found
17709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17710 $as_echo "pre-installed" >&6; }
17714 case " ${configdirs} " in
17719 if test $ok = yes; then
17720 # An in-tree tool is available and we can use it
17721 LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/ld/ld-new'
17722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17723 $as_echo "just compiled" >&6; }
17724 elif expr "x$LD_FOR_TARGET" : "x/" > /dev/null; then
17725 # We already found the complete path
17726 ac_dir=`dirname $LD_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 LD_FOR_TARGET='$(LD)'
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 lipo" >&5
17742 $as_echo_n "checking where to find the target lipo... " >&6; }
17743 if test "x${build}" != "x${host}" ; then
17744 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17745 # We already found the complete path
17746 ac_dir=`dirname $LIPO_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; }
17755 if expr "x$LIPO_FOR_TARGET" : "x/" > /dev/null; then
17756 # We already found the complete path
17757 ac_dir=`dirname $LIPO_FOR_TARGET`
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17759 $as_echo "pre-installed in $ac_dir" >&6; }
17760 elif test "x$target" = "x$host"; then
17761 # We can use an host tool
17762 LIPO_FOR_TARGET='$(LIPO)'
17763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17764 $as_echo "host tool" >&6; }
17766 # We need a cross tool
17767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17768 $as_echo "pre-installed" >&6; }
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target nm" >&5
17773 $as_echo_n "checking where to find the target nm... " >&6; }
17774 if test "x${build}" != "x${host}" ; then
17775 if expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17776 # We already found the complete path
17777 ac_dir=`dirname $NM_FOR_TARGET`
17778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17779 $as_echo "pre-installed in $ac_dir" >&6; }
17781 # Canadian cross, just use what we found
17782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17783 $as_echo "pre-installed" >&6; }
17787 case " ${configdirs} " in
17792 if test $ok = yes; then
17793 # An in-tree tool is available and we can use it
17794 NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/nm-new'
17795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17796 $as_echo "just compiled" >&6; }
17797 elif expr "x$NM_FOR_TARGET" : "x/" > /dev/null; then
17798 # We already found the complete path
17799 ac_dir=`dirname $NM_FOR_TARGET`
17800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17801 $as_echo "pre-installed in $ac_dir" >&6; }
17802 elif test "x$target" = "x$host"; then
17803 # We can use an host tool
17804 NM_FOR_TARGET='$(NM)'
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17806 $as_echo "host tool" >&6; }
17808 # We need a cross tool
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17810 $as_echo "pre-installed" >&6; }
17814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objcopy" >&5
17815 $as_echo_n "checking where to find the target objcopy... " >&6; }
17816 if test "x${build}" != "x${host}" ; then
17817 if expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17818 # We already found the complete path
17819 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17821 $as_echo "pre-installed in $ac_dir" >&6; }
17823 # Canadian cross, just use what we found
17824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17825 $as_echo "pre-installed" >&6; }
17829 case " ${configdirs} " in
17834 if test $ok = yes; then
17835 # An in-tree tool is available and we can use it
17836 OBJCOPY_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objcopy'
17837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17838 $as_echo "just compiled" >&6; }
17839 elif expr "x$OBJCOPY_FOR_TARGET" : "x/" > /dev/null; then
17840 # We already found the complete path
17841 ac_dir=`dirname $OBJCOPY_FOR_TARGET`
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17843 $as_echo "pre-installed in $ac_dir" >&6; }
17844 elif test "x$target" = "x$host"; then
17845 # We can use an host tool
17846 OBJCOPY_FOR_TARGET='$(OBJCOPY)'
17847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17848 $as_echo "host tool" >&6; }
17850 # We need a cross tool
17851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17852 $as_echo "pre-installed" >&6; }
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target objdump" >&5
17857 $as_echo_n "checking where to find the target objdump... " >&6; }
17858 if test "x${build}" != "x${host}" ; then
17859 if expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17860 # We already found the complete path
17861 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17863 $as_echo "pre-installed in $ac_dir" >&6; }
17865 # Canadian cross, just use what we found
17866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17867 $as_echo "pre-installed" >&6; }
17871 case " ${configdirs} " in
17876 if test $ok = yes; then
17877 # An in-tree tool is available and we can use it
17878 OBJDUMP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/objdump'
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17880 $as_echo "just compiled" >&6; }
17881 elif expr "x$OBJDUMP_FOR_TARGET" : "x/" > /dev/null; then
17882 # We already found the complete path
17883 ac_dir=`dirname $OBJDUMP_FOR_TARGET`
17884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17885 $as_echo "pre-installed in $ac_dir" >&6; }
17886 elif test "x$target" = "x$host"; then
17887 # We can use an host tool
17888 OBJDUMP_FOR_TARGET='$(OBJDUMP)'
17889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17890 $as_echo "host tool" >&6; }
17892 # We need a cross tool
17893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17894 $as_echo "pre-installed" >&6; }
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target otool" >&5
17899 $as_echo_n "checking where to find the target otool... " >&6; }
17900 if test "x${build}" != "x${host}" ; then
17901 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17902 # We already found the complete path
17903 ac_dir=`dirname $OTOOL_FOR_TARGET`
17904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17905 $as_echo "pre-installed in $ac_dir" >&6; }
17907 # Canadian cross, just use what we found
17908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17909 $as_echo "pre-installed" >&6; }
17912 if expr "x$OTOOL_FOR_TARGET" : "x/" > /dev/null; then
17913 # We already found the complete path
17914 ac_dir=`dirname $OTOOL_FOR_TARGET`
17915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17916 $as_echo "pre-installed in $ac_dir" >&6; }
17917 elif test "x$target" = "x$host"; then
17918 # We can use an host tool
17919 OTOOL_FOR_TARGET='$(OTOOL)'
17920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17921 $as_echo "host tool" >&6; }
17923 # We need a cross tool
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17925 $as_echo "pre-installed" >&6; }
17929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target ranlib" >&5
17930 $as_echo_n "checking where to find the target ranlib... " >&6; }
17931 if test "x${build}" != "x${host}" ; then
17932 if expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17933 # We already found the complete path
17934 ac_dir=`dirname $RANLIB_FOR_TARGET`
17935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17936 $as_echo "pre-installed in $ac_dir" >&6; }
17938 # Canadian cross, just use what we found
17939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17940 $as_echo "pre-installed" >&6; }
17944 case " ${configdirs} " in
17949 if test $ok = yes; then
17950 # An in-tree tool is available and we can use it
17951 RANLIB_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/ranlib'
17952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17953 $as_echo "just compiled" >&6; }
17954 elif expr "x$RANLIB_FOR_TARGET" : "x/" > /dev/null; then
17955 # We already found the complete path
17956 ac_dir=`dirname $RANLIB_FOR_TARGET`
17957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17958 $as_echo "pre-installed in $ac_dir" >&6; }
17959 elif test "x$target" = "x$host"; then
17960 # We can use an host tool
17961 RANLIB_FOR_TARGET='$(RANLIB)'
17962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
17963 $as_echo "host tool" >&6; }
17965 # We need a cross tool
17966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17967 $as_echo "pre-installed" >&6; }
17971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target readelf" >&5
17972 $as_echo_n "checking where to find the target readelf... " >&6; }
17973 if test "x${build}" != "x${host}" ; then
17974 if expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17975 # We already found the complete path
17976 ac_dir=`dirname $READELF_FOR_TARGET`
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
17978 $as_echo "pre-installed in $ac_dir" >&6; }
17980 # Canadian cross, just use what we found
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
17982 $as_echo "pre-installed" >&6; }
17986 case " ${configdirs} " in
17991 if test $ok = yes; then
17992 # An in-tree tool is available and we can use it
17993 READELF_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/readelf'
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
17995 $as_echo "just compiled" >&6; }
17996 elif expr "x$READELF_FOR_TARGET" : "x/" > /dev/null; then
17997 # We already found the complete path
17998 ac_dir=`dirname $READELF_FOR_TARGET`
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18000 $as_echo "pre-installed in $ac_dir" >&6; }
18001 elif test "x$target" = "x$host"; then
18002 # We can use an host tool
18003 READELF_FOR_TARGET='$(READELF)'
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18005 $as_echo "host tool" >&6; }
18007 # We need a cross tool
18008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18009 $as_echo "pre-installed" >&6; }
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target strip" >&5
18014 $as_echo_n "checking where to find the target strip... " >&6; }
18015 if test "x${build}" != "x${host}" ; then
18016 if expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18017 # We already found the complete path
18018 ac_dir=`dirname $STRIP_FOR_TARGET`
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18020 $as_echo "pre-installed in $ac_dir" >&6; }
18022 # Canadian cross, just use what we found
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18024 $as_echo "pre-installed" >&6; }
18028 case " ${configdirs} " in
18033 if test $ok = yes; then
18034 # An in-tree tool is available and we can use it
18035 STRIP_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/strip-new'
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18037 $as_echo "just compiled" >&6; }
18038 elif expr "x$STRIP_FOR_TARGET" : "x/" > /dev/null; then
18039 # We already found the complete path
18040 ac_dir=`dirname $STRIP_FOR_TARGET`
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18042 $as_echo "pre-installed in $ac_dir" >&6; }
18043 elif test "x$target" = "x$host"; then
18044 # We can use an host tool
18045 STRIP_FOR_TARGET='$(STRIP)'
18046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18047 $as_echo "host tool" >&6; }
18049 # We need a cross tool
18050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18051 $as_echo "pre-installed" >&6; }
18055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windres" >&5
18056 $as_echo_n "checking where to find the target windres... " >&6; }
18057 if test "x${build}" != "x${host}" ; then
18058 if expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18059 # We already found the complete path
18060 ac_dir=`dirname $WINDRES_FOR_TARGET`
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18062 $as_echo "pre-installed in $ac_dir" >&6; }
18064 # Canadian cross, just use what we found
18065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18066 $as_echo "pre-installed" >&6; }
18070 case " ${configdirs} " in
18075 if test $ok = yes; then
18076 # An in-tree tool is available and we can use it
18077 WINDRES_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windres'
18078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18079 $as_echo "just compiled" >&6; }
18080 elif expr "x$WINDRES_FOR_TARGET" : "x/" > /dev/null; then
18081 # We already found the complete path
18082 ac_dir=`dirname $WINDRES_FOR_TARGET`
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18084 $as_echo "pre-installed in $ac_dir" >&6; }
18085 elif test "x$target" = "x$host"; then
18086 # We can use an host tool
18087 WINDRES_FOR_TARGET='$(WINDRES)'
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18089 $as_echo "host tool" >&6; }
18091 # We need a cross tool
18092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18093 $as_echo "pre-installed" >&6; }
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find the target windmc" >&5
18098 $as_echo_n "checking where to find the target windmc... " >&6; }
18099 if test "x${build}" != "x${host}" ; then
18100 if expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18101 # We already found the complete path
18102 ac_dir=`dirname $WINDMC_FOR_TARGET`
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18104 $as_echo "pre-installed in $ac_dir" >&6; }
18106 # Canadian cross, just use what we found
18107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18108 $as_echo "pre-installed" >&6; }
18112 case " ${configdirs} " in
18117 if test $ok = yes; then
18118 # An in-tree tool is available and we can use it
18119 WINDMC_FOR_TARGET='$$r/$(HOST_SUBDIR)/binutils/windmc'
18120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: just compiled" >&5
18121 $as_echo "just compiled" >&6; }
18122 elif expr "x$WINDMC_FOR_TARGET" : "x/" > /dev/null; then
18123 # We already found the complete path
18124 ac_dir=`dirname $WINDMC_FOR_TARGET`
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed in $ac_dir" >&5
18126 $as_echo "pre-installed in $ac_dir" >&6; }
18127 elif test "x$target" = "x$host"; then
18128 # We can use an host tool
18129 WINDMC_FOR_TARGET='$(WINDMC)'
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: host tool" >&5
18131 $as_echo "host tool" >&6; }
18133 # We need a cross tool
18134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: pre-installed" >&5
18135 $as_echo "pre-installed" >&6; }
18143 # Certain tools may need extra flags.
18144 AR_FOR_TARGET=${AR_FOR_TARGET}${extra_arflags_for_target}
18145 RANLIB_FOR_TARGET=${RANLIB_FOR_TARGET}${extra_ranlibflags_for_target}
18146 NM_FOR_TARGET=${NM_FOR_TARGET}${extra_nmflags_for_target}
18148 # When building target libraries, except in a Canadian cross, we use
18149 # the same toolchain as the compiler we just built.
18150 COMPILER_AS_FOR_TARGET='$(AS_FOR_TARGET)'
18151 COMPILER_LD_FOR_TARGET='$(LD_FOR_TARGET)'
18152 COMPILER_NM_FOR_TARGET='$(NM_FOR_TARGET)'
18153 if test $host = $build; then
18154 case " $configdirs " in
18156 COMPILER_AS_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/as'
18157 COMPILER_LD_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/collect-ld'
18158 COMPILER_NM_FOR_TARGET='$$r/$(HOST_SUBDIR)/gcc/nm'${extra_nmflags_for_target}
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
18168 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
18169 # Check whether --enable-maintainer-mode was given.
18170 if test "${enable_maintainer_mode+set}" = set; then :
18171 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
18173 USE_MAINTAINER_MODE=no
18176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
18177 $as_echo "$USE_MAINTAINER_MODE" >&6; }
18180 if test "$USE_MAINTAINER_MODE" = yes; then
18181 MAINTAINER_MODE_TRUE=
18182 MAINTAINER_MODE_FALSE='#'
18184 MAINTAINER_MODE_TRUE='#'
18185 MAINTAINER_MODE_FALSE=
18187 MAINT=$MAINTAINER_MODE_TRUE
18189 # ---------------------
18190 # GCC bootstrap support
18191 # ---------------------
18193 # Stage specific cflags for build.
18198 yes) stage1_cflags="-g -Wa,-J" ;;
18199 *) stage1_cflags="-g -J" ;;
18205 # Enable --enable-checking in stage1 of the compiler.
18206 # Check whether --enable-stage1-checking was given.
18207 if test "${enable_stage1_checking+set}" = set; then :
18208 enableval=$enable_stage1_checking; stage1_checking=--enable-checking=${enable_stage1_checking}
18210 if test "x$enable_checking" = xno || test "x$enable_checking" = x; then
18211 # For --disable-checking or implicit --enable-checking=release, avoid
18212 # setting --enable-checking=gc in the default stage1 checking for LTO
18213 # bootstraps. See PR62077.
18214 case $BUILD_CONFIG in
18216 stage1_checking=--enable-checking=release,misc,gimple,rtlflag,tree,types;;
18218 stage1_checking=--enable-checking=yes,types;;
18220 if test "x$enable_checking" = x && \
18221 test -d ${srcdir}/gcc && \
18222 test x"`cat ${srcdir}/gcc/DEV-PHASE`" = xexperimental; then
18223 stage1_checking=--enable-checking=yes,types,extra
18226 stage1_checking=--enable-checking=$enable_checking,types
18232 # Enable -Werror in bootstrap stage2 and later.
18233 # Check whether --enable-werror was given.
18234 if test "${enable_werror+set}" = set; then :
18235 enableval=$enable_werror;
18236 case ${enable_werror} in
18237 yes) stage2_werror_flag="--enable-werror-always" ;;
18238 *) stage2_werror_flag="" ;;
18243 if test -d ${srcdir}/gcc && test x"`cat $srcdir/gcc/DEV-PHASE`" = xexperimental; then
18244 case $BUILD_CONFIG in
18246 stage2_werror_flag="--enable-werror-always" ;;
18248 stage2_werror_flag="--enable-werror-always" ;;
18257 # Specify what files to not compare during bootstrap.
18259 compare_exclusions="gcc/cc*-checksum\$(objext) | gcc/ada/*tools/*"
18261 hppa*64*-*-hpux*) ;;
18262 hppa*-*-hpux*) compare_exclusions="$compare_exclusions | */libgcc/lib2funcs* | gcc/function-tests.o" ;;
18263 powerpc*-ibm-aix*) compare_exclusions="$compare_exclusions | *libgomp*\$(objext)" ;;
18267 ac_config_files="$ac_config_files Makefile"
18269 cat >confcache <<\_ACEOF
18270 # This file is a shell script that caches the results of configure
18271 # tests run on this system so they can be shared between configure
18272 # scripts and configure runs, see configure's option --config-cache.
18273 # It is not useful on other systems. If it contains results you don't
18274 # want to keep, you may remove or edit it.
18276 # config.status only pays attention to the cache file if you give it
18277 # the --recheck option to rerun configure.
18279 # `ac_cv_env_foo' variables (set or unset) will be overridden when
18280 # loading this file, other *unset* `ac_cv_foo' will be assigned the
18281 # following values.
18285 # The following way of writing the cache mishandles newlines in values,
18286 # but we know of no workaround that is simple, portable, and efficient.
18287 # So, we kill variables containing newlines.
18288 # Ultrix sh set writes to stderr and can't be redirected directly,
18289 # and sets the high bit in the cache file unless we assign to the vars.
18291 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
18292 eval ac_val=\$$ac_var
18296 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
18297 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
18300 _ | IFS | as_nl) ;; #(
18301 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
18302 *) { eval $ac_var=; unset $ac_var;} ;;
18308 case $as_nl`(ac_space=' '; set) 2>&1` in #(
18309 *${as_nl}ac_space=\ *)
18310 # `set' does not quote correctly, so add quotes: double-quote
18311 # substitution turns \\\\ into \\, and sed turns \\ into \.
18314 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
18317 # `set' quotes correctly as required by POSIX, so do not add quotes.
18318 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
18327 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
18329 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
18331 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
18332 if test -w "$cache_file"; then
18333 if test "x$cache_file" != "x/dev/null"; then
18334 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
18335 $as_echo "$as_me: updating cache $cache_file" >&6;}
18336 if test ! -f "$cache_file" || test -h "$cache_file"; then
18337 cat confcache >"$cache_file"
18339 case $cache_file in #(
18341 mv -f confcache "$cache_file"$$ &&
18342 mv -f "$cache_file"$$ "$cache_file" ;; #(
18344 mv -f confcache "$cache_file" ;;
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
18350 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
18355 test "x$prefix" = xNONE && prefix=$ac_default_prefix
18356 # Let make expand exec_prefix.
18357 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
18359 # Transform confdefs.h into DEFS.
18360 # Protect against shell expansion while executing Makefile rules.
18361 # Protect against Makefile macro expansion.
18363 # If the first sed substitution is executed (which looks for macros that
18364 # take arguments), then branch to the quote section. Otherwise,
18365 # look for a macro that doesn't take arguments.
18375 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
18377 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
18381 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
18394 DEFS=`sed -n "$ac_script" confdefs.h`
18400 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
18401 # 1. Remove the extension, and $U if already installed.
18402 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
18403 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
18404 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
18405 # will be set to the directory where LIBOBJS objects are built.
18406 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
18407 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
18409 LIBOBJS=$ac_libobjs
18411 LTLIBOBJS=$ac_ltlibobjs
18415 : "${CONFIG_STATUS=./config.status}"
18417 ac_clean_files_save=$ac_clean_files
18418 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
18420 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
18422 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
18424 # Generated by $as_me.
18425 # Run this file to recreate the current configuration.
18426 # Compiler output produced by configure, useful for debugging
18427 # configure, is in config.log if it exists.
18430 ac_cs_recheck=false
18433 SHELL=\${CONFIG_SHELL-$SHELL}
18436 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
18437 ## -------------------- ##
18438 ## M4sh Initialization. ##
18439 ## -------------------- ##
18441 # Be more Bourne compatible
18442 DUALCASE=1; export DUALCASE # for MKS sh
18443 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18446 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
18447 # is contrary to our usage. Disable this feature.
18448 alias -g '${1+"$@"}'='"$@"'
18449 setopt NO_GLOB_SUBST
18451 case `(set -o) 2>/dev/null` in #(
18463 # Printing a long string crashes Solaris 7 /usr/bin/printf.
18464 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
18465 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
18466 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
18467 # Prefer a ksh shell builtin over an external printf program on Solaris,
18468 # but without wasting forks for bash or zsh.
18469 if test -z "$BASH_VERSION$ZSH_VERSION" \
18470 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
18471 as_echo='print -r --'
18472 as_echo_n='print -rn --'
18473 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
18474 as_echo='printf %s\n'
18475 as_echo_n='printf %s'
18477 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
18478 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
18479 as_echo_n='/usr/ucb/echo -n'
18481 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
18482 as_echo_n_body='eval
18486 expr "X$arg" : "X\\(.*\\)$as_nl";
18487 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
18489 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
18491 export as_echo_n_body
18492 as_echo_n='sh -c $as_echo_n_body as_echo'
18494 export as_echo_body
18495 as_echo='sh -c $as_echo_body as_echo'
18498 # The user is always right.
18499 if test "${PATH_SEPARATOR+set}" != set; then
18501 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
18502 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
18509 # We need space, tab and new line, in precisely that order. Quoting is
18510 # there to prevent editors from complaining about space-tab.
18511 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
18512 # splitting by setting IFS to empty value.)
18515 # Find who we are. Look in the path if we contain no directory separator.
18518 *[\\/]* ) as_myself=$0 ;;
18519 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18520 for as_dir in $PATH
18523 test -z "$as_dir" && as_dir=.
18524 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
18530 # We did not find ourselves, most probably we were run as `sh COMMAND'
18531 # in which case we are not to be found in the path.
18532 if test "x$as_myself" = x; then
18535 if test ! -f "$as_myself"; then
18536 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
18540 # Unset variables that we do not need and which cause bugs (e.g. in
18541 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
18542 # suppresses any "Segmentation fault" message there. '((' could
18543 # trigger a bug in pdksh 5.2.14.
18544 for as_var in BASH_ENV ENV MAIL MAILPATH
18545 do eval test x\${$as_var+set} = xset \
18546 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
18559 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
18562 # as_fn_error STATUS ERROR [LINENO LOG_FD]
18563 # ----------------------------------------
18564 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
18565 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
18566 # script with STATUS, using 1 if that was 0.
18569 as_status=$1; test $as_status -eq 0 && as_status=1
18571 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
18572 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
18574 $as_echo "$as_me: error: $2" >&2
18575 as_fn_exit $as_status
18579 # as_fn_set_status STATUS
18580 # -----------------------
18581 # Set $? to STATUS, without forking.
18582 as_fn_set_status ()
18585 } # as_fn_set_status
18587 # as_fn_exit STATUS
18588 # -----------------
18589 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
18593 as_fn_set_status $1
18599 # Portably unset VAR.
18602 { eval $1=; unset $1;}
18604 as_unset=as_fn_unset
18605 # as_fn_append VAR VALUE
18606 # ----------------------
18607 # Append the text in VALUE to the end of the definition contained in VAR. Take
18608 # advantage of any shell optimizations that allow amortized linear growth over
18609 # repeated appends, instead of the typical quadratic growth present in naive
18611 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
18612 eval 'as_fn_append ()
18623 # as_fn_arith ARG...
18624 # ------------------
18625 # Perform arithmetic evaluation on the ARGs, and store the result in the
18626 # global $as_val. Take advantage of shells that can avoid forks. The arguments
18627 # must be portable across $(()) and expr.
18628 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
18629 eval 'as_fn_arith ()
18636 as_val=`expr "$@" || test $? -eq 1`
18641 if expr a : '\(a\)' >/dev/null 2>&1 &&
18642 test "X`expr 00001 : '.*\(...\)'`" = X001; then
18648 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
18649 as_basename=basename
18654 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
18660 as_me=`$as_basename -- "$0" ||
18661 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
18662 X"$0" : 'X\(//\)$' \| \
18663 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
18665 sed '/^.*\/\([^/][^/]*\)\/*$/{
18679 # Avoid depending upon Character Ranges.
18680 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
18681 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
18682 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
18683 as_cr_digits='0123456789'
18684 as_cr_alnum=$as_cr_Letters$as_cr_digits
18686 ECHO_C= ECHO_N= ECHO_T=
18687 case `echo -n x` in #(((((
18689 case `echo 'xy\c'` in
18690 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
18692 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
18699 rm -f conf$$ conf$$.exe conf$$.file
18700 if test -d conf$$.dir; then
18701 rm -f conf$$.dir/conf$$.file
18704 mkdir conf$$.dir 2>/dev/null
18706 if (echo >conf$$.file) 2>/dev/null; then
18707 if ln -s conf$$.file conf$$ 2>/dev/null; then
18709 # ... but there are two gotchas:
18710 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
18711 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
18712 # In both cases, we have to default to `cp -pR'.
18713 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
18715 elif ln conf$$.file conf$$ 2>/dev/null; then
18723 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
18724 rmdir conf$$.dir 2>/dev/null
18729 # Create "$as_dir" as a directory, including parents if necessary.
18734 -*) as_dir=./$as_dir;;
18736 test -d "$as_dir" || eval $as_mkdir_p || {
18740 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
18741 *) as_qdir=$as_dir;;
18743 as_dirs="'$as_qdir' $as_dirs"
18744 as_dir=`$as_dirname -- "$as_dir" ||
18745 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
18746 X"$as_dir" : 'X\(//\)[^/]' \| \
18747 X"$as_dir" : 'X\(//\)$' \| \
18748 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
18749 $as_echo X"$as_dir" |
18750 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
18754 /^X\(\/\/\)[^/].*/{
18767 test -d "$as_dir" && break
18769 test -z "$as_dirs" || eval "mkdir $as_dirs"
18770 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
18774 if mkdir -p . 2>/dev/null; then
18775 as_mkdir_p='mkdir -p "$as_dir"'
18777 test -d ./-p && rmdir ./-p
18782 # as_fn_executable_p FILE
18783 # -----------------------
18784 # Test if FILE is an executable regular file.
18785 as_fn_executable_p ()
18787 test -f "$1" && test -x "$1"
18788 } # as_fn_executable_p
18789 as_test_x='test -x'
18790 as_executable_p=as_fn_executable_p
18792 # Sed expression to map a string onto a valid CPP name.
18793 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
18795 # Sed expression to map a string onto a valid variable name.
18796 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
18800 ## ----------------------------------- ##
18801 ## Main body of $CONFIG_STATUS script. ##
18802 ## ----------------------------------- ##
18804 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
18806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18807 # Save the log message, to keep $0 and so on meaningful, and to
18808 # report actual input values of CONFIG_FILES etc. instead of their
18809 # values after options handling.
18811 This file was extended by $as_me, which was
18812 generated by GNU Autoconf 2.69. Invocation command line was
18814 CONFIG_FILES = $CONFIG_FILES
18815 CONFIG_HEADERS = $CONFIG_HEADERS
18816 CONFIG_LINKS = $CONFIG_LINKS
18817 CONFIG_COMMANDS = $CONFIG_COMMANDS
18820 on `(hostname || uname -n) 2>/dev/null | sed 1q`
18825 case $ac_config_files in *"
18826 "*) set x $ac_config_files; shift; ac_config_files=$*;;
18831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18832 # Files that config.status was made for.
18833 config_files="$ac_config_files"
18837 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18839 \`$as_me' instantiates files and other configuration actions
18840 from templates according to the current configuration. Unless the files
18841 and actions are specified as TAGs, all are instantiated by default.
18843 Usage: $0 [OPTION]... [TAG]...
18845 -h, --help print this help, then exit
18846 -V, --version print version number and configuration settings, then exit
18847 --config print configuration, then exit
18848 -q, --quiet, --silent
18849 do not print progress messages
18850 -d, --debug don't remove temporary files
18851 --recheck update $as_me by reconfiguring in the same conditions
18852 --file=FILE[:TEMPLATE]
18853 instantiate the configuration file FILE
18855 Configuration files:
18858 Report bugs to the package provider."
18861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18862 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
18865 configured by $0, generated by GNU Autoconf 2.69,
18866 with options \\"\$ac_cs_config\\"
18868 Copyright (C) 2012 Free Software Foundation, Inc.
18869 This config.status script is free software; the Free Software Foundation
18870 gives unlimited permission to copy, distribute and modify it."
18876 test -n "\$AWK" || AWK=awk
18879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18880 # The default lists apply if the user does not specify any file.
18886 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18887 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
18891 ac_option=`expr "X$1" : 'X\([^=]*\)='`
18903 # Handling of the options.
18904 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
18906 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
18907 $as_echo "$ac_cs_version"; exit ;;
18908 --config | --confi | --conf | --con | --co | --c )
18909 $as_echo "$ac_cs_config"; exit ;;
18910 --debug | --debu | --deb | --de | --d | -d )
18912 --file | --fil | --fi | --f )
18915 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
18916 '') as_fn_error $? "missing file argument" ;;
18918 as_fn_append CONFIG_FILES " '$ac_optarg'"
18919 ac_need_defaults=false;;
18920 --he | --h | --help | --hel | -h )
18921 $as_echo "$ac_cs_usage"; exit ;;
18922 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
18923 | -silent | --silent | --silen | --sile | --sil | --si | --s)
18926 # This is an error.
18927 -*) as_fn_error $? "unrecognized option: \`$1'
18928 Try \`$0 --help' for more information." ;;
18930 *) as_fn_append ac_config_targets " $1"
18931 ac_need_defaults=false ;;
18937 ac_configure_extra_args=
18939 if $ac_cs_silent; then
18941 ac_configure_extra_args="$ac_configure_extra_args --silent"
18945 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18946 if \$ac_cs_recheck; then
18947 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
18949 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
18950 CONFIG_SHELL='$SHELL'
18951 export CONFIG_SHELL
18956 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18960 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
18961 ## Running $as_me. ##
18967 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
18971 extrasub_build="$extrasub_build"
18972 extrasub_host="$extrasub_host"
18973 extrasub_target="$extrasub_target"
18977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
18979 # Handling of arguments.
18980 for ac_config_target in $ac_config_targets
18982 case $ac_config_target in
18983 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
18985 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
18990 # If the user did not use the arguments to specify the items to instantiate,
18991 # then the envvar interface is used. Set only those that are not.
18992 # We use the long form for the default assignment because of an extremely
18993 # bizarre bug on SunOS 4.1.3.
18994 if $ac_need_defaults; then
18995 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
18998 # Have a temporary directory for convenience. Make it in the build tree
18999 # simply because there is no reason against having it here, and in addition,
19000 # creating and moving files from /tmp can sometimes cause problems.
19001 # Hook for its removal unless debugging.
19002 # Note that there is a small window in which the directory will not be cleaned:
19003 # after its creation but before its name has been assigned to `$tmp'.
19007 trap 'exit_status=$?
19008 : "${ac_tmp:=$tmp}"
19009 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
19011 trap 'as_fn_exit 1' 1 2 13 15
19013 # Create a (secure) tmp directory for tmp files.
19016 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
19020 tmp=./conf$$-$RANDOM
19021 (umask 077 && mkdir "$tmp")
19022 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
19025 # Set up the scripts for CONFIG_FILES section.
19026 # No need to generate them if there are no CONFIG_FILES.
19027 # This happens for instance with `./config.status config.h'.
19028 if test -n "$CONFIG_FILES"; then
19030 if $AWK 'BEGIN { getline <"/dev/null" }' </dev/null 2>/dev/null; then
19031 ac_cs_awk_getline=:
19032 ac_cs_awk_pipe_init=
19033 ac_cs_awk_read_file='
19034 while ((getline aline < (F[key])) > 0)
19037 ac_cs_awk_pipe_fini=
19039 ac_cs_awk_getline=false
19040 ac_cs_awk_pipe_init="print \"cat <<'|#_!!_#|' &&\""
19041 ac_cs_awk_read_file='
19043 print "cat " F[key] " &&"
19044 '$ac_cs_awk_pipe_init
19045 # The final `:' finishes the AND list.
19046 ac_cs_awk_pipe_fini='END { print "|#_!!_#|"; print ":" }'
19048 ac_cr=`echo X | tr X '\015'`
19049 # On cygwin, bash can eat \r inside `` if the user requested igncr.
19050 # But we know of no other shell where ac_cr would be empty at this
19051 # point, so we can use a bashism as a fallback.
19052 if test "x$ac_cr" = x; then
19053 eval ac_cr=\$\'\\r\'
19055 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
19056 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
19059 ac_cs_awk_cr=$ac_cr
19062 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
19065 # Create commands to substitute file output variables.
19067 echo "cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1" &&
19068 echo 'cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&' &&
19069 echo "$ac_subst_files" | sed 's/.*/F["&"]="$&"/' &&
19072 } >conf$$files.sh &&
19073 . ./conf$$files.sh ||
19074 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19075 rm -f conf$$files.sh
19078 echo "cat >conf$$subs.awk <<_ACEOF" &&
19079 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
19081 } >conf$$subs.sh ||
19082 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19083 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
19085 for ac_last_try in false false false false false :; do
19086 . ./conf$$subs.sh ||
19087 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19089 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
19090 if test $ac_delim_n = $ac_delim_num; then
19092 elif $ac_last_try; then
19093 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
19095 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
19098 rm -f conf$$subs.sh
19100 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19101 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
19105 s/^/S["/; s/!.*/"]=/
19115 s/\(.\{148\}\)..*/\1/
19117 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
19122 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19129 s/\(.\{148\}\)..*/\1/
19131 s/["\\]/\\&/g; s/^/"/; s/$/"/
19135 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
19140 ' <conf$$subs.awk | sed '
19145 ' >>$CONFIG_STATUS || ac_write_fail=1
19146 rm -f conf$$subs.awk
19147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19149 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
19150 for (key in S) S_is_set[key] = 1
19152 \$ac_cs_awk_pipe_init
19156 nfields = split(line, field, "@")
19158 len = length(field[1])
19159 for (i = 2; i < nfields; i++) {
19161 keylen = length(key)
19162 if (S_is_set[key]) {
19164 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
19165 len += length(value) + length(field[++i])
19170 if (nfields == 3 && !substed) {
19172 if (F[key] != "" && line ~ /^[ ]*@.*@[ ]*$/) {
19173 \$ac_cs_awk_read_file
19179 \$ac_cs_awk_pipe_fini
19182 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19183 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
19184 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
19187 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
19188 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
19191 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
19192 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
19193 # trailing colons and then remove the whole line if VPATH becomes empty
19194 # (actually we leave an empty line to preserve line numbers).
19195 if test "x$srcdir" = x.; then
19196 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
19214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19215 fi # test -n "$CONFIG_FILES"
19218 eval set X " :F $CONFIG_FILES "
19223 :[FHLC]) ac_mode=$ac_tag; continue;;
19225 case $ac_mode$ac_tag in
19227 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
19228 :[FH]-) ac_tag=-:-;;
19229 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
19246 -) ac_f="$ac_tmp/stdin";;
19247 *) # Look for the file first in the build tree, then in the source tree
19248 # (if the path is not absolute). The absolute path cannot be DOS-style,
19249 # because $ac_f cannot contain `:'.
19253 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
19255 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
19257 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
19258 as_fn_append ac_file_inputs " '$ac_f'"
19261 # Let's still pretend it is `configure' which instantiates (i.e., don't
19262 # use $as_me), people would be surprised to read:
19263 # /* config.h. Generated by config.status. */
19264 configure_input='Generated from '`
19265 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
19267 if test x"$ac_file" != x-; then
19268 configure_input="$ac_file. $configure_input"
19269 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
19270 $as_echo "$as_me: creating $ac_file" >&6;}
19272 # Neutralize special characters interpreted by sed in replacement strings.
19273 case $configure_input in #(
19274 *\&* | *\|* | *\\* )
19275 ac_sed_conf_input=`$as_echo "$configure_input" |
19276 sed 's/[\\\\&|]/\\\\&/g'`;; #(
19277 *) ac_sed_conf_input=$configure_input;;
19281 *:-:* | *:-) cat >"$ac_tmp/stdin" \
19282 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
19287 ac_dir=`$as_dirname -- "$ac_file" ||
19288 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
19289 X"$ac_file" : 'X\(//\)[^/]' \| \
19290 X"$ac_file" : 'X\(//\)$' \| \
19291 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
19292 $as_echo X"$ac_file" |
19293 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
19297 /^X\(\/\/\)[^/].*/{
19310 as_dir="$ac_dir"; as_fn_mkdir_p
19314 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
19316 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
19317 # A ".." for each directory in $ac_dir_suffix.
19318 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
19319 case $ac_top_builddir_sub in
19320 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
19321 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
19324 ac_abs_top_builddir=$ac_pwd
19325 ac_abs_builddir=$ac_pwd$ac_dir_suffix
19326 # for backward compatibility:
19327 ac_top_builddir=$ac_top_build_prefix
19330 .) # We are building in place.
19332 ac_top_srcdir=$ac_top_builddir_sub
19333 ac_abs_top_srcdir=$ac_pwd ;;
19334 [\\/]* | ?:[\\/]* ) # Absolute name.
19335 ac_srcdir=$srcdir$ac_dir_suffix;
19336 ac_top_srcdir=$srcdir
19337 ac_abs_top_srcdir=$srcdir ;;
19338 *) # Relative name.
19339 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
19340 ac_top_srcdir=$ac_top_build_prefix$srcdir
19341 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
19343 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
19353 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
19354 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
19358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19359 # If the template does not know about datarootdir, expand it.
19360 # FIXME: This hack should be removed a few years after 2.60.
19361 ac_datarootdir_hack=; ac_datarootdir_seen=
19372 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
19373 *datarootdir*) ac_datarootdir_seen=yes;;
19374 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
19375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
19376 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
19378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19379 ac_datarootdir_hack='
19380 s&@datadir@&$datadir&g
19381 s&@docdir@&$docdir&g
19382 s&@infodir@&$infodir&g
19383 s&@localedir@&$localedir&g
19384 s&@mandir@&$mandir&g
19385 s&\\\${datarootdir}&$datarootdir&g' ;;
19389 # Neutralize VPATH when `$srcdir' = `.'.
19390 # Shell code in configure.ac might set extrasub.
19391 # FIXME: do we really want to maintain this feature?
19392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
19393 ac_sed_extra="$ac_vpsub
19396 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
19398 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
19399 s|@configure_input@|$ac_sed_conf_input|;t t
19400 s&@top_builddir@&$ac_top_builddir_sub&;t t
19401 s&@top_build_prefix@&$ac_top_build_prefix&;t t
19402 s&@srcdir@&$ac_srcdir&;t t
19403 s&@abs_srcdir@&$ac_abs_srcdir&;t t
19404 s&@top_srcdir@&$ac_top_srcdir&;t t
19405 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
19406 s&@builddir@&$ac_builddir&;t t
19407 s&@abs_builddir@&$ac_abs_builddir&;t t
19408 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
19409 s&@INSTALL@&$ac_INSTALL&;t t
19410 $ac_datarootdir_hack
19412 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" |
19413 if $ac_cs_awk_getline; then
19414 $AWK -f "$ac_tmp/subs.awk"
19416 $AWK -f "$ac_tmp/subs.awk" | $SHELL
19418 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19420 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
19421 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
19422 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
19423 "$ac_tmp/out"`; test -z "$ac_out"; } &&
19424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19425 which seems to be undefined. Please make sure it is defined" >&5
19426 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
19427 which seems to be undefined. Please make sure it is defined" >&2;}
19429 rm -f "$ac_tmp/stdin"
19431 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
19432 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
19434 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
19442 case $ac_file$ac_mode in
19443 "Makefile":F) sed "$extrasub_build" Makefile |
19444 sed "$extrasub_host" |
19445 sed "$extrasub_target" > mf$$
19446 mv -f mf$$ Makefile ;;
19454 ac_clean_files=$ac_clean_files_save
19456 test $ac_write_fail = 0 ||
19457 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
19460 # configure is writing to config.log, and then calls config.status.
19461 # config.status does its own redirection, appending to config.log.
19462 # Unfortunately, on DOS this fails, as config.log is still kept open
19463 # by configure, so config.status won't be able to write to it; its
19464 # output is simply discarded. So we exec the FD to /dev/null,
19465 # effectively closing config.log, so it can be properly (re)opened and
19466 # appended to by config.status. When coming back to configure, we
19467 # need to make the FD available again.
19468 if test "$no_create" != yes; then
19470 ac_config_status_args=
19471 test "$silent" = yes &&
19472 ac_config_status_args="$ac_config_status_args --quiet"
19474 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
19476 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
19477 # would make configure fail if this is the last instruction.
19478 $ac_cs_success || as_fn_exit 1
19480 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
19481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
19482 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}